From matthew@okcomputer.org Fri Dec 01 02:00:52 2000
Received: from adsl-64-162-56-154.dsl.snfc21.pacbell.net ([64.162.56.154] helo=warsaw.okcomputer.org)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 141kBg-0005B7-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 02:00:52 -0500
Received: from matthew (helo=localhost)
	by warsaw.okcomputer.org with local-esmtp (Exim 3.12 #1 (Debian))
	id 141kBd-0006ZU-00
	for <autoconf@gnu.org>; Thu, 30 Nov 2000 23:00:49 -0800
Date: Thu, 30 Nov 2000 23:00:49 -0800 (PST)
From: Matthew Whitworth <matthew@okcomputer.org>
To: autoconf@gnu.org
Subject: trying to get AC_PATH_PROG into config.h...
Message-ID: <Pine.LNX.4.21.0011302254250.25246-100000@warsaw.okcomputer.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I'm writing a program that invokes external programs via popen(), and I'm
trying to autoconfiscate the package.  I have been trying to use the
AC_PATH_PROG macro to locate a program.  It seems to be working while the
configure script is running and the value is available in Makefile.in, but
I'm not exactly sure how to get the value (the full path to the program)
in my config.h (where I really need it).

>From configure.in:
...
AC_PATH_PROG(PINGPATH, ping)
...

>From acconfig.h:
...
/* path to the ping program */
#undef PINGPATH
...

>From ./configure output:
...
checking for ping... /bin/ping
...

So configure is finding it, but the value never gets into config.h (and
therefore never gets into my program).  I've been looking for examples in
other packages, but can't seem to find anything.

Thanks in advance,

Matthew

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matthew whitworth
matthew@okcomputer.org

Between here and there is better than either here or there!



From daniele@ripe.net Fri Dec 01 04:46:50 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 141mmH-0002PC-00; Fri, 01 Dec 2000 04:46:49 -0500
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id KAA11663;
	Fri, 1 Dec 2000 10:41:17 +0100 (CET)
Date: Fri, 1 Dec 2000 10:41:17 +0100 (CET)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: FYI: AS_EXIT (Was: Backquotes in quotes in backquotes)
In-Reply-To: <mv4elztpbfh.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10012011033300.1074-101000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1293669435-1663580017-975663272=:1074"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1293669435-1663580017-975663272=:1074
Content-Type: TEXT/PLAIN; charset=US-ASCII

Good morning, then...

Here's your breakfast.:)

Have fun!

Cheers,

D.

On 30 Nov 2000, Akim Demaille wrote:

> >>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:
> 
> Daniele> Good night:)
> 
> Good night.  Tomorrow I'll have a job for you :)
> 
> cd tests
> mv testsuite testsuite.old
> sed 's/cp -f/mv -f/' <testsuite.old >testsuite
> chmod +x testsuite
> ./testsuite
> 
> Who knows...  I find this state-ls stuff very suspicious, and, what a
> chance, I included in the doc today some notes on the portability of
> `cp -f' on Solaris...  Good candidate :)
> 

--1293669435-1663580017-975663272=:1074
Content-Type: APPLICATION/octet-stream; name="testsuite.out.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.4.05L.10012011034320.1074@x51.ripe.net>
Content-Description: 
Content-Disposition: attachment; filename="testsuite.out.gz"

H4sICPduJzoAA3Rlc3RzdWl0ZS5vdXQA7F1tc9u2sv58+CswzZnrtmPJBN/p
Np7rOG7qaWJnYue2/aTSEiTxhCJ1+WLH9/T897sLUgIBUbTMvNalZuKIWGAB
PsACuw9A6unTHT/aFcvyMJ6RrAhzRqZJSoIiT8ZJPN0nNyzNwiQmxtDyr7Vd
VT7VtMtkwUgOmjOyCGfznFwzEs7iJGUTEk7JXVKQSRLv5WQe3EDGOSNZMs1v
g5SR23k4nmOStgjGaZIRTMyK5TLJoHCecLXkWzacDfdJQH5K0jwNYjJOFssw
Yul3Q03TXllZMQtS+EqHZHiwqC6D/NAn5Sd5pxmKyPbWIlQwh9JmlWWOcmoQ
IkpbdZFj1kV2XeTbdZF2XGFLroOMkSi4Y9hKB0tgymY9bl1kS/V4dZHv1EW+
pND06004fc/GRR5cRywj32Jfz1kwYek+7/diOQlyNhwOEUeqo5o8SaIM9Rg1
8CiVRG5dZEgi6lQICPUkZf9bhCnU/+L8LYFu1VZjI2ZBSv4QZT1rT6OmrM+n
nfUZugv6LPmuDL27PsMDfbasz9YFFI4kMnVbiFxZZDpC5Mki1xQiXxJZOhX9
ujJkHF7hbJjlQV5k0ItPnpDBB37Ikyeo5moeZgDHOMc5IZmCMaZ5ka4MHWR5
eoctACNdBO8YWQ/2ZZpMijGr1EyDMMJsf5QtBQ17JBun4TLP9ivzXxRg4zGD
+QdmiOWSxUNCzqYkiRnWW6qBKSJb1c1zol7QEObYFPY+T9mCRXckXCyhnUGc
Q4kg53NP+SnVpAzFfA5CBfx+EnJdzAarefC/Z3ExTNLZkDR+SjUfA2LNqAyO
w8oHu7ueragiquYcFBmKyLfWIlNVaNKVyFJEhumthtLL5JZEgGlUTavQWwdL
ACpNxizLsO/KuRlGl8FHfzX7lmp45T8dn708fV4ZjCTe0wxHKWOKBruKyBEi
TxHRcvRvqwnEUBU3mIwtoP/DcTUhlfpMfUPE2yHpU8R7mkk3SllupdDYENl+
JTI3RC6tRNaGyGtvBk6Kpr1RyvdaS/kwVZnOJhqGVTbD3RRZeptCEINGr6GY
V2psgB5XKVw8N6E3TL0UbeJruG4p2sTXxOHc0mEmDAFrE3vToqXGTexNxy9t
4PIuzoP3ON2s/JB4ws0hYjmLwQxQVC6dMAlBMiwcaBBW2TO8NB8CYmW0HFnk
1ESuLHIrkXxvQgy35cklvPYS0PuWL5eordm2Louo3qqMQs/bVCkiliLbUESG
EJmKSKxttqWILCFSMKViHbUVTKlYR20F02oy3XpTAKqtgEqFT2gr6FG/XZu/
pzkKqkY7qgag6iioGrS9CIxvR0HbEGg7CtqGQNtR0Das9opgznGUXjBELzhK
LxhOuzYHtCm9Y7T3jgG94yi9Y3jtRWDMO0qvrXxY9KyV3jGF3+YqvWC29wLO
Mq7SC6bRXsSAIkrvmGZ7EVg5XaXXTGEjrtI7pt2uzQZtSq/VfFBX6R2zvXdM
6B1X6R2zvXdM6B1X6R1T9I6n9I4lesdTescSM4+n9ILV3gsW9IKn9IIlbMRT
0LYE2p6CttWOtgVoewralkDbU9C22tG2AG1PQdsSM5WnoGoJVH0F1Vqs4iuo
2gJVX0HVFjOMr6BnC/R8BT1boOera6SYSXwFJVug5Cso2e0o2YCSr6BUi/F9
BSW7fT63YT6nugKfo7cVcXQsosDq0FUDqK7A6hhCpMAqnH2qK7AKB5nqCqxV
5M1FquvhtLbcwZYrcDuu0KbA6nhCpMDq+GsRVdBzdSFSUHIFSlRByRUoUQUl
V6BEFZRcgRJVUHIFSlRByXWESHXQBBpUQcMVaFAFjYon2ebV4RgzFJS81jHm
4RgzFPQ8gZ6hoOcZrdoM1Kag6glUDQVVT6BqKKh6AlVDQdUTqBoKqp5A1VD9
W6+15UjEGAranhh7poKqL8aeqaDnC/RMBT1fjD1TQckXKJkKSiIcp6aCki9Q
MhWUfIGSqaDkC5RMBSW/FSWMAamphgECJWsjDNArkXYyZ+N3nNxBEkVwZROy
ZnGGYVyStUHMkD0sQ7mKURSR0O48W60o0naGrM7prg6ntzIsFGlud3WcVLRk
dV53ddhJZRQp0vzu6nBSKSNPkVbFd13UYexHy3C1lki766Ooz1P0Gd314RxW
hrq1RLO7PhMpXl3RZ3XXh5S2rZhGFdB20oe2YSu2UUXBnfShcdiKcVShcyd9
aB22Yh1VXN1JH6fcFfOogvFO+tA+bMU+jO72gVE8tRX7MLrbB4b41Fbsw+hu
Hwbah63Yh9HdPpDQpY5iH0Z3+0CmgTqKfRjd7cNA+3AU+zC62wdyF9RR7MPo
bh9IbFBHsQ+ju33wLSlHsQ+ju30YaB+OYh9md/sw0T4cxT7M7vaB5At1FPsw
u9sHMjPUUezD7G4fSNtQV7EPs7t94CYEdRX7MLvbBxJB1FXsw+xuHybah6vY
h9ndPpBaoq5iH2Z3+0DeSfs1Dfle6R8Thjt95+fDbF7bhDw/J08JzDlghjDS
obMAX7gFyyAW/PWIrRPbJbZPHJ1AQA8hOMTTEB9DHAyRK0SoEIlCWAkxIsSC
EHJBMASRDbjt4GujTw3hOIHYkECwB/8M+OcRcOX38VAE03Y/aLE+cHH65s3F
m0Nyyc9wFHFWjHGjblpE+wS6MpkSQLDaKsVNToDn4XVov85ZXG2XInalokor
3/INIW4IY5ZmeCMkTnKyYCluwUZhlvOMWlwsrnmGIONbruU137aeB/EM+u+a
5beMVxSxIGPlvssyZbyeofaMkTEEGXBrWOcsvGEE4hHMClFJFHGlYTxN0kXA
t6lxu3cGLQmuk4Lv8i6G2u+QtgjuIN8N7pnPcPwE8R1uU19HbLE6oTJlLCJ4
TgJrghvKkn0oUu5Qa2M8v4GV8XZx3KH4TTgBVVBhMiFZHpRALRMAZqjVWjUk
5Dy53ZchvA2h+deMMH4+A5KDGaDJD+FcJxnAOHzACZxPcaonr3SekHfs7jZJ
J5nGrbBhC3g4HGpK0uG6BWSw3lofTMKUDIdkEJF/BvkoS8eQ0Fyy2mp7cNk8
WVayp/8U33mDq7hVG69iW8RpNh5D6/E/kX47Z9DVKe/vk/VRIwIYvMsw8x3L
NjPfMh4N495hJvbRMXucbM1dZGWMzfg8JuraqAWbmlz/i41z6OPpNHyPORJZ
ztYnfWp5NquGWyUBTBgw9ZHBrLEmzJIsuUGBLZSZyfH55Rk5KW8oBlNmbAIT
i1QuiKtcA0Qbhn91QCXLG6sJY4AITx9V32Qpwo3fb5IIrChiaxUpC/jAXPVp
dfZFCKrkuYYHLaqLKJlp/EDLFFRhIs5dGZ8HFjB3BjgXVedWJuT6bt0TGU4A
EdPSIo6FbhhG+xyacEL4mjJDGUwkazE/EgP6yQImQ/g61LSznNzCPMibWVZS
2uS+mANuw3yukaP6cCWahsdvUpwuh7BgsWHM8kNNK+JgwchgAUtXVsRWsUpI
IcEeeqvLDC4vi/jicpVwAwkvGEzb4XhEdc82vIFONe2gyNKD6zA+qLItUe8y
SMdaPfU3PgOAxrssZ4u16vME5sGnaiO1N+WcXjXoF5bGLDp73lj/q2A8hxGw
vplnRXZ1t8TrH4v4XZzcxkfaJZQJIinpbYY9VE+5OH31BBJ07SINoVPwO9XO
i8XJ67f8a3k7cF9zIn3KigUMPMfgnSQtSjF0zQ17fzBjeXaX4TQPYm2e4GwJ
31W1ZYWL6v5kyaqyJCuP38hlijjEuZtJZbTXx1c/w5eDbJkk0cEkiENA+WAC
Nx8lwSQ7GN9kA0PXdUpNnXqmdVD2ysFqHj3gy89h5/LdS354zYhXlIyDCPEp
L3+jVFzwL+urYnx9eDBPFmxdFxfBxHZw+fb81wzMXWQejzO80NZ2d+jr7iFR
p8W63PAPwW3Jiig/VESU2nqtbNt6IpVybK6JDBI+kfCjr/BZfR+OCTn6L1su
Ao0oZwvucNVFHhXt4xNnTeYbDe1rXsLkcpbQietaXeRuV7ltnasrMKhX3f1Y
vmfllo067sp9Gaah9Jm0aEpZLX+36hxTVJfIEk+pbGMFlrJ73kN719Q9Ubck
oE4D2PLKLuU3rfXNDmZtt2ta5lZ0TcfZtIhtjkK9oIWeGeat6h9cGG1tsEy/
PspqzkYtj6Va53bno17OprSOxD0tsQ19Kxq2qSstWHkxtTyW85DabEfU1qDM
pUqFqosk5fYfcqOOrtyodgIrFiM3Aay5eHb8UPsT+nc0vhnBn8p6R7O4eLoH
ufckISC+kVrezdO98v+6ZNV2pQiLb0YnJ6OMga6N1JsgKthG+k8vj19cNpYo
JY2lroswmoyCKAyypqJ1cWN5XPe3F69JG0tDzAhuxPbyknxTw3vG3ktlcLbD
lEQkwSo3G+HXHJB7ugcjQpGNx6OZAv4qPcsnY1TPR8qETbPh/LA+alwDppXt
/vg6I0yMYQ4+Waej0lrNb0f/GW6QxZOVl16r8F5vepWvwaHWNCnLIaxmbu3W
1hHFRrw5DnIM/XM2gP4aBmBeDUGpyIQH+Xked9+bONqPJMgH3KQH3Nr5NYyD
YlleU3vfcCbUAIHoguoC2wMOy4/1COdHEYDUvw95vpL8wlMt2bx26UiX1Jcu
DTmzYciXnnRp8kuHTiy8Mxg8LE23cgaHrWfGvzD38WVrXzEvxyejqze/j16e
nf8y+unt+UmFZcPB+A0CBtK6MjDrol0oGF6452A6cjA9s9EzGz2z0TMbPbPR
Mxs9s/E5mQ3P2byDVdTcdh8WbRjYWwu+hbhlCpPl5B//+Mc0TCFryqYsZTEs
zRrJ7hbXCUyVIET0wpiv6NozNpokYOuTUTgd3SVFOorC6/FoDhFhMJoWMX8+
d4Sr2AQk79goR2fgACL3g3yxBPO/mOq//ToZJlo0OSTTIA+iQ1jmeF2r6hFr
cNaTNBuS84QkRb4sYE1PwxxiLXQHamYYRTDsYDBGEyieF7D0TQgtI7zNwK/a
8sSAMg0W6CUcak8wtCHU9B3yzTrrN9qTMB5HBSy334hQ5xtY1b4nF7BYpHyr
FXwaANsAbCCGimHJBMV5kuN6ij7LTQJeSxCXtzIk5PsD0IqqyGg0XkZFhv80
DCDTmHxzAnVCJBlOsY5f0ZQZbkun5JqNA7yAWqr3GSyCvHxLQXXLhFeZTHHz
F9qDjjkyBTkeiY0nmDEmYY4vM5gVCwZqRDtvkyLC3WLc/g2Wy+iubCevuFtX
f/vdDxo0VcMdebjQ/t1xyKAeQvBfdZP6D9p/uhJBPX/zBfibbTyNzRePR8nT
uJ59L0/Dg9J7iRol15qp2Rp0H/KT8m2B/DHYOF2d92D8xSarkzqt5b4a+uHk
59OTX0Yvz56VKDQ+Q19yD0rig8iHxrI7sw8bpXv64SMcARknGXogg2jRsxM9
O9GzEz078dnYCWq2sxOm3cJONEWP97ITLn0wO+Ha29kJt4Wd8DqxE0Z9e1Zm
Jwzd/EB2wrB2owvquG+wEyphsJ2dsO0d2Ql/GzvhWg9iJ3zrwewEtbawE0YT
u9TCTlj6zuzEdu7HRE6rCzthIlF2G6S4gh7yjFE45ks1hqIZx47HrQMkG6q4
EPfiIJboxFWg13Dfp8ZMmGGxyL9CZsI1e2ZCZiawYzd5hlXqJmtQp8h09ZyM
8C3lQ0LubqMcypEGIs7pPNTrakz3o5yD+Vz0x8vnW4utRH8D2iQKr0cL6I5M
6YWPSaf8SZ6UEyL5+fh/TjEmfgVubZ1kcfTHSrJ43CVrIFk2Yu9mlqUl28MP
xFD/4xyIcejENpVzKo0Ex2HbK+es/qyKTBb9fHr8/PTNZYVn09sOGwgj7wMI
I++DCCOvJ4w+nDCaJ7fo5aRFXN2/eHtoklZQkcGpXDXYXZgM543NXnXhaJUD
8ej5p55/6vmnnn/q+aeef+r5p8/JP7n1WlsXeznwX9FWp3LNBxN2cxAXUUSM
o3U6+uASG0C7F+YP+dRMlPseNbGhnn+rfBF5z9z/gAY4Lc8NbdQueTsfrw31
XViu+hAZtKyABY47Q1AzuLlgJUl6tyMzZpu7MGPr1B+l6o+0rRDBlPKVEy0n
r19vL7eS/Q2oljLKGtU6djR/uhcnGzm4SaFsJ0YGIORkDIz0j8/VXF49P7sY
/SzTNY7rP1a6xpeO+2yja7zd6Bqvma5xAnff044UuuZIpWuMgD/CBIIaXXNU
p2uO6pHaUY2uOZLpmiP5+aUj+fmlI/n5pSP5+aUj+fmlI/n5pSP5+SXLCRwK
iRIv1MRjtPFCXs8LKbzQq9NXzwQv1PR7Fg28ELqrXXmhVdluvBCW7nmhL8EL
lQ9xr35rA6fOTaBKny0t4BYgfZQN73bJFCc9ldRTST2V1FNJ/YNW9SL9g1YS
ldQ/aPW5XiGzM5Vk+s4HUEnrZ7S6sCi63UolUdXCG9yXjUcxujbGMfRuB8Ec
9VhLXbbxJh3Vs5JyO259GNz3WhnX2V4vf3KjxVmrZ3Z1e/dqyVn9iA8eV9qT
Hodx0LkvK0PvaA4eVZyAD4fvJiX8qSjyBzIau3Fijk934MTq90b+zQ9wwXfy
w3/ID5pyqkrKOk2SHzT4A3jcc87KpdZfiVB7lLRY+cIcCc9yWI3KTh3xTh3F
iUyZNeWBv1+YO7u8en6yOs4Bbu8Gqfbm7cnV6PfTy9El/pXZNc80Hym7Zuj4
rPC97BrfaLufXZOzrdm1hlzTGayNZO/J3rpK8ifhaRCP7dX7aq+FY/nbPLN2
9fvr0xXZ1Phbpw1sE8Xdsq5007pwN76JF+8Jp6+ZcMLXet/LMbVkiJNS3hNQ
PQHVE1A9AdUTUD0B1RNQPQHVE1DqLSAfInFO/oM4J6+Fc2rjumTC6SF1unR7
nW7DabO1PyhltB5Q5X0cl2vBzJmF/8fwUcDlMgrxh2cSfAQxjHHmihjEXvho
3I4sl7vTya8HsFzgaH77bQ0J8v13RP9OorcwS3UL9ZzfybnaSTHb60mxr48U
+2RU1iodR/YIBlxTckWz4VCSabi6lA/hD+HHzs6v2kkzhTCT3jf9qAgzauo7
EGacANmBMVPybaPMeLaHc2aNVNFjJ83UX/gqf3pZfs7RpE3veTIf9pbp5sId
3/Rk9m+a7n/tq2fKeqasZ8p6pqxnynqmrGfKPiFT1v/aV/9rX/2vfX1d/Er/
a1+f/Ne+NkPOXd5wZLa8Sbo5uH7sFMPxyej4zYvR6fnxs5enFRAl13IHsdl7
RMGtCAaR8DBuQS23O61QL7kLo9CHpH1I2oekfUj6SULS7a7YX9WB2eJP+M5j
3fGAoHXbjkd9qdniSTRnUZwIde38m/gPr99cvHhz/KoCwZNB8FQH4oEPj6vl
OjgQOz403jsQvQPROxC9A9E7EB/kQHiP9let+Lvu2h2I7c8XNWf5G/zyuGnt
2/aE+ut0cJNquSypjC3pt6WcttQUR8rpUOnKkq6kO3IknY5UuytpcaWbc03p
ypauJJ2upNOTtHhSOU8q58tXfvmz7fuOMTEs8UZs/iUpcs1x9h13YriQwidA
9O+GSTSRryFjs1umvidJSPp3JK0fWjs+vzg/Ozl+OboCP/f0qoTS1mUoqa66
uPSBT6xtFOzg5NIHPqnG1xSSlQ4XnrHDsx3cMxuATzLIkgiWqswAB6t2LjvL
H1aiXDl2K9O737373bvfvfv9iY+UeLZf28HdmAXrOd3aMx7Nc5bI68kv45Un
ynpGf3elvl5XujmX1rPS+9RuD0A4Bk/3mkrtyZnKEOC+rH/VgGZ9QD7BzfP2
exQtuC9nWdduudo1btsB1s3HS9n691K2dPsB9S15+pirj7k+S8y1GShsDbqo
3kdd66hr9PLi/MXo+cXb9akEW9lZoRvHEmjXcwm0+8EEuuPJhP5Zh3uedYgS
+AIGdt0/YdCHg3042IeD/RMG/RMG/RMGX8sTBrXlWTr+r/sf6bw6VjAqK+iP
oH/5I+hbnqwvf2FXuObKD+0a3mNlIVycY+9hIf6/vSttaxvZ0p/Dr9BNf8Aw
GKTSnk7yPARM4mkCDCZbz8xVCy/gG2P5SnbS7ukfP6dKkl2lzbIgmNgnT3di
SVWlUq3nfessJTTHlALVsTTA2QDdsSPqeaF59rb5ewzz7EQr2CmYZ1eFeXZ1
mGcjzFuND0g+DfXPA/f7f9GH3qjru2PPR7SIaBHRIqJFRIuIFhEtrh4trqPn
xoVCiGiQbj0QJo7fhIj4RyLiHxzhNEI3iRin+tqe19vK4vN6uwRStguQcgoj
bgBSPm4cnTqtLy2n1Xx72mxFiqhG4nyZpBRRSVVFVFJdEZVgyISHORUFJOEE
/ZsBgEUAlO2BC7sNHUf9oQS3h+5g/5ZGCwdIEIw7+7cYxAChMEJhhMIIhREK
IxReORSusIOLAFl+OLfzqgW1/oOrzTa8M6wQ7Kq1Xt+HCk5gKe1T3E6lgKiw
nVQptQYs1Xzufqc7HPd7fWhgyAhY2fPpVu0NB1P4q91NlcBGAi1kVmNAOe5o
1HVhr+oP9/l3Fvm+V01Swvf97O5L+PwDqjUPt1/zt6OOeL11sCuddcdvWsdR
X4F8wncgtM1M1JKk3QMooxfivA9nIJIfO++2fpFmxcZJ4VWAu/q9pKP99q3r
S7t3wQ1sVrs1/j3/ISk7C/znq7bgnK8qyUA/0+FeLfpdR6Jh1UfvAi21vqfr
5sLTdVJCx59k6/jnAOVN4Qy+fLlqfI7pAiXRCkqKLljScXwqYxW6AB3GPwxd
0Bt0WWb6r/hkOv3uuyO6gdUHvUEqM6SXvMl4NBmHU9/3POYrnpY3nabrMp2O
YWWgu70rjTzY1rp4Do/kA5IPSD48HvmgqMXkg6oXkA9Z4HAh+WAqS5MP1H44
j3zID7ym2FYl8oHw7qNF8oHI6j3JB6KVYwP4dk+RD0k+IJ980PWS5IOdRz6Y
2lLkg60tTT4oWg75QLLIowLyQZNLkw/51I5qJsmHUA7gQSPHliQfakqSGRKF
BiGtaqcbKyvcIM0opRpOK/gKXRioWYKJqHLMUXixtMI/1jM6IkN6ETJpGfM8
M5Yi+7qU93jyIMf/j4W9T49zs8WPNgCzD/rXTm/ghCO+ZEy808bnV9t0Fj2A
l3coxaFj+9V2OIgzHoej1okGbLHuQYj5nIvz5tlV4zKhe2CurXc2myz0zkby
PcXnpEnwCCkEvQE8QuPtZeOCKspEbaAl2kBLsQhaVRZBq84iaMgiPJ6OPqJ8
RPmI8hHlo4oBqhigigFq2y+pbT8aveAKeiGdeVQovg0FA+hEkNpgxHj+9KnD
5/WCwY+jI8+D0fV1XGctdlzH4rYtAqNaARhNAbFNAKNcqDLDSDSAkUKiRlUk
alRHogZGG0EMhRgKMRRGG3mMcGVrqxdHyGK9OKOECGEUiBCpHXQDRIgT03Q+
XR5eXDQuW1EzJJzvkJR3UVLVuyip7l2UoHfRh1GMuzFN1iimmd0oJ54/hrko
meYjtk7GS/PyQ8VLsPbUNzzMjmsPtlqoDXsUH5773l3cCvVvYuNw9Rj0r33Y
MLrsu6X66WxHgQfxJf+TbWFw4wD6oE7/zXJbfkD2bX2f8MVdU52CRBkwD24I
1Ri4y60eld3qd7BmDtjiAMnumLfYgQfLECxxAQiz1C7BD9oeFWxhlfZd7g6K
3Chyo8iNIvcjKCcuOLZQC44tjErHFubyxxZm/rGFnX9sQeRqxxZEzj22IPJ9
jy1IyWMLteDYQit/bKGXPLYwc48tzOWOLezljy2UvGMLsuSxhVb62ELPP7bQ
SFIbkwljXALN4KZE4pkQsKeU4CZkpwGtqQgltt7sQ3ppBUWq6ps9NTSr4CNt
rdLU0Gwjb2podtanl5UnRfsxNWqFtvDt8aeHly9gElCBiaqRdehJTH8IABxE
lV+iMxnYV/jkUGaIoNq33leQXLrh1T9hXx/Wh5M7uldL1NLRbQPmlACF1v65
Q1VKB+417Fo9WFs70n+z3a/eY9V7L502Pv8v/w6tZJUKDEbDPTC+RW0wqe0m
LVRyHGi8I8fZ4r4hNtgMs8GFqFSau5DpqpI1twTpXVQ1nfdJ/SarV2Zapfmj
TjczTgRLYAGhDHoWXaYixmwUJZRjv6UnFE02R+sMAyi2bSsy0aSaHwp4O1KN
1eekdVLn08v7kFzPSL8DoqHbYfL/qNsOwq9ZHo0csNxbdF1bWMWtKuX3TFPh
W6T+70kf+qTemdyNrqlkyz+j7RfVot6b/fKkg2+ufzC+G4GI4V+cfTc7+8EW
m+rlWjarfjvx4sBQRLilLixqf4tfYE58gEBSY9hZ3FtR00US0gFAmPpHqf5f
UwouxO973/w4OL7ez/7mRCEvKHaQPsE637r1RpIh2faBbB0oVqWeanuDAawi
hFXti3Sxx6PeF3PMS2vNDfoqb/LHCv3CSjn7cc6oZgeMGA3qn93KRV53AeZA
7geE80myYIbus7p6hvjpLyphDNrRr2rfAwt15baAdtgadGBkeb3xd7q5MqAZ
Omv4MIYte9wHTF6H5yxzvXF6ItW0fVnwj2AYnPI/5Vn4R0kBKIt3EXIw/w+4
1D76Uvvhc2AcXa/vUmtNPirdxFI7+2ZcatdpqZ119dottRaPF1dIVXM1EvRN
S1DXQmaqQ1pGALflDKInyzqtDcuiw357q2ufcHf6EKO3Z8+ehZ6G/G6v63eH
7W5nSwqmd9feQJLgIUVbUB7l2bd6nnft+lLhH26ku/qfJ54bjayeO3YHMMDC
kuOX0Zbv+r7nB/tU4TCCQ9/9/hiGMwVNHN4P16kXEqDT0AMPLOJKeIScPlku
cFFkWUYJF0XU8dA5rPB+H57QcwXoBCIxQ6+hO6AFjz3quIidG3zzAPvCqGKf
MvNDFELZ9mgwCej/W/SE2h9Kz4+ex2gW3vGpy3w8Mc9D1922Gzp8Gkt3/Ztb
+Nsdt28ZnRA5HWKv9HqSy+pD0TBVDBhDD7mwI0FC6rgpkFz/BoA+FDOv53dv
QoMqw2QeUMdOg2lYT/biqGNrO78mHCJxDwp9H/2MU4Cvvi7/dNWvOoMd6FCn
5Aw+9RX30/WTm8G2quAMTs3gsGMz5/D8UfEs/gmnAV99nrMtfQD9xLXZqWJM
RhZ6Ozt97ltONkZnno5Oset4F3r0aSz2vdouO064/DAKg1fbKxv393NrFz6D
4QMPTbOkLTxtstwH315t17/l2r3TgXry4eyoRsXtvbPD940dJnlLv/wiORnp
nMyEDjfPCfPTspbqhUTTFlsolAhqR7KD2pl7VsfYeim54zoDRXW6nYbXMOsm
o/Ba0feI0VEIPJh3aXRBa9Mfzi+oHk58QfXeuN/7LF0Ywl2RhRj1iiwEolcU
IZ69QsTEhIiXQlB5RbXC6PAdzZiHhmdyTFqBMDfQOzEx0PtME5NOwsPT0/Oj
w6gdrUQ7WilFTKuqIqZVXRHTQkXM1cT/o01Df7sDujmFIQ5S9Y8eogdCVPJD
JT9U8kPfBHwW9E0gKACibwL0TVDsm4BXmbMTHZgUR0TlL7Ok38Ckchd/lJVU
7tKTTh3DV4vKWxmuK8u82JATffnE6ak1I44mw7YT9qbDlvqSfgfv7Ywhvh8N
5rgOtyXiGYZQzXkHglLmE9HVoEU1zNeTO1FUspA7sUpwJ1Ymd5IDhTfBNJMS
Ao3Ly/NL5/DKOW2eRZ4ezITfRTUVuUCtGrlArR65QMXIBQ9joMlOwhxoZEoK
YhhDxPGI4xHHI45HHI84fuU4PrU/C0mtZbBnJTUi4d1S9h9OjWhK/jU9f3pq
ROViFSa0acRPr8l7Evz3/Hn0z+IYgaowiRHdP3JEAaH7RL2QHxUkUF5bZ0im
sdAZklrCub+a7dzfcM09a+t1QlvhdVJbgbiKvqfY8GDeAdFFpK3wmgcir+c4
gf9NtRV01TUUuMkrEaRBbq4SgaqgEoHAGZycvT+8OnoXNSRJNCRJsQWkKltA
qrMFBNmCB2ELYhYeKlUPxlMosDdkqq/IHCBzgMwBMgfIHCBzgMzBk2AOcvdq
EamWDbkn1kVqDiV6jMpMR/+guHn7hchOQFX/ANHQOQEp2qF63ttMzb49gDHX
kWohCREa0cDgo5t/VNxOqpxaA1ZoPne/0x2O+70+tCtk9Lsjz6c7tDccTOGv
djdVAhsAtJBZnQGEuaMRyPYBVGA/8U4tqvtp4/C4efbWOW5eVqn9jI6gmC+S
ICLuQjiuLWYv7BLsxezuy1geu33N2IzajvR/IJkz0FmLnkm15+7u8z3puXvd
pozGjvQPuik/+/vveITUnnd2D3YVmqZzEBzQH0JXshz0ztl5KPsLeVnZfybz
SH9LiSbNeu+fYeaD6cFf1QrYbbMS2gelK7CTIG802UTyZqWqGVFnxroZj8He
MNds68neCKog2ewNKcHekHx9iTTo3xR9iZNWo/HbedQKaqIV1BT1oValPtTq
1IeK1MeDUB/O6eHl2wbbTVrnHy6PGhJbzqRht0vnME0yoIsdm99B8htZUOig
2/3qobEEUiVIlSBVglQJUiVIlTwNqmS5vV3kCgy+Row2ya+Vpph5404THNjO
xQUhzayvlzQ30HQLzQ1WjGlZb5Y0NFjSnAD2b4eNTzo8ncCb+O1I6aHIoiDE
LqLdgG6uq88F2IkX+lygWGkhDlYLcHAKAW4KDn7buDo9Pzw+/Pg2agk90RJ6
CgvrVbGwXh0L64iFV+NM4PCs1YSkUZ/NEHI6XFR3TIVo91s2Bh/RWedAos4U
gFy/nYWyv7I03og62BrCYGDXy75s1hazJLB9/nvShz1Ugh3hpt9BhQdE8Yji
EcU/WlyjpEF0AsVrSj6KN7JQ8uK4RhlG1QtQvJUbvEWx8/EYi09UKa5RbvAW
IpcO3pKD4lW5HKzWCuI1aUnH8/ko3lDKvc7U81C8lfSBXIjiVTnDB+QCFE/k
vLhG1nIoXjPKonhdz0fxQiCn0i4PNNmq7rVAI2b1zDoP/jNcHpDkDM8QmkTn
BVr1yhiUYarkuUDLp63SkRbm8hOfzpSrKZ0opiLnvtxMxblKSotCamOZKlSy
nkm+Xsr4w1nPvOv/1nO7T856xlTlEvonB7uxFBaNVqhMxDU4TjCeXIMESldy
5vz2FoRzgLeDqdTrfp87vg32GHYECReEnbY7ZF8z6MN6yfRmmP/bVJvWdn6V
rrsD73vszDfWg3EDkMbGVA1mk/wDZ7VP+KS229thVwlDJ6j51WwnDKOhTKOu
CyLNJspFRtpNQdQ9MIr6d6NBl1YtYN1GW2/w3Z0GbDCFXdY4O299aUH1WiD3
cGXQTdhtjycuHQNUlu+wIgJIBW+kVMXY9Rl4YsU4TtwmsMv7d9BpTP7v09Ek
MRZu1lNSHKysFg47J9kgO9Lff6cSOelkW1xEskHQ3eqBlJtM9CsXrazAGMw0
5TwxxbSSPH8meuWzWHJJDjjKK6UWUUvJXcGJzOithSs4kc2SLqRntRArAQXk
V4K581kCigt52aY4B/btF3SlDCZU9Y9ibfiiMHSd50+FfLr9Myl9HV1c5OeL
n2XmPD3OzRg/2hRKfj5MEr2YeOqEwyzhXpqmSa4IYpJwK4QlptNOvICaKIYz
fT7fH8sHUc6RQOvq+Mh51zg8bly20j6GTptvfmtdHV6ln8yZX+EkgZhraw9J
7BL2kHqJkwS94CQhxZ9v0EnCxdvLi6gZEr6dVTN1jGBWPUYwqx8jmHiMcO9j
BG5bH934I2nMGOqhN5N4UU8OGXZk2JFhRz05IQvqyQksPerJPZae3MINWyTK
q2qqaTpqqq0cFtMOdigX+rD6ajnQMxL5nY/nIC2I6mjsQGEdQSSs1uZCEFki
BJCaHQIoBz1tCoh8z3wiR62QcOarpuLaqFXj2qjV49qoGNfmiauixebzd8xJ
N6JRRKOIRhGNIhpFNIpodPVodB1C3CRn+CJ9r5nKVhV9L1LywD6l76Wa+fpe
WvITRKFJSGtW1PkyLBMZgdUyAmFvZobKyT/jfloH2CEiTATJkdfV6QuR9cVO
X0oEyVELguSkcfWmsAvnb1pXh0e/hc1gJXzfaCmHt1pVh7dadYe3Gjq8fRiv
L941jP321wDNvRD+I/xH+I/wH+E/wv+Vw39+axZSLRUUh89oUl8NYYmAK0op
jd8/6Mz87uzVzxP2GcHYn8AYip5Lu3fdu1+jC6fnd7s1uLFXYyYeuzuSvIOB
aZ42lo767nG8mipre3xuGguPz7USXk21Aq+maWS3KQC31bj6+ObDiXPZ+Ni4
bDWOo/ZI6KRrKZ8uWlWfLlp1ny4a+nR5OGVsWOS+XU96M5Wu0FTP7zIogC5P
EAMjBkYMjBgYMTBi4NVj4HKbdgr9/ZBgLzBvvrs+3aBfSCM3YKMN6iMR6uLg
j6iG29GePPKY9wWp53t3zBHDDR2osPN6kzFs2G1XnEf5patZpccFstLjV+WW
/jAhWoylQrQE407fizxTNHuz/rt1g8hBRNhzdETfueO9CJ3tUxcHIjcgScx7
AwhVsCQPZgXMB8JMcgsl+MN52UEoQNy503BAMQ8LQbcLBQAcYqV0OjAMA9rE
9I1hCX2q8T+WnOb56ZuTPfrvGf2XutBtnp/Qn7SciHwYesO/ur4XOmeQqHRW
i761Bk0A3bE3K2hGYNBX7UkAPlrN36PwLOzNtA1qCou7O5qM27Xt//G396Sw
GHaXJZB3fn327Bk0ypk3rCe+lXoLuPkmwYzphjUSg74oMhIjKyVGoqHhxN32
SHFf7LVlSJhvkWKGpISVulZgpZ5mBDaGIbm6PDo/PY2aIWFnoaWs1LWqVupa
dSt1Da3UHzbmbTD2qVsttARAGgRpEKRBkAZBGgRpkNXTIBlbtMgeZLgxLmWJ
Lquod75iSBh2Z6bi+Y8xRWe64pFwnzBFJ2RtkSJ1Kr0AKZYwRdcKTNHTEGkD
kGJojOC8P/zP88uwGexEM+gppKhXRYp6daSoI1JcgS36jL6fBgfM/fH+7czv
LgVtne63rPAmNPndV/rwFpEoIlFEoohEHy8GSco5tIhEVb0AiWYhhcUxSDKM
RhcgUSrM5CHRfFNWxc6KYVEmBkmuc28iq/dEokQrBw3V/CgZRE2Cw3wkqusl
kaidh0TNZAiGYiRqZyhrL0CiipaDREkWk1AUg0QujUTzcb5q8m9dIgbJPSy5
NaJUz6wrYpigVAySrCFbIKEImbVlQopUCqkRvVUq+sOF1Ajeve+o7ScXUkMn
9nL6AvP2f50M3xAdtUcNU5P3JJkdhxfYAOg6yVuydD3JNXLippDQsO8xCG35
p2JWqjvbXy9OJrb1nwYOGxLObY4zAEjAxqtz60QDs9xh/o9yDcAQuNM8c97/
dtz4KPI6pr6uEW+JrCyMeKuX4HX0Al4nTWhsDq9z1Tw/evupedb6PWoLO9EW
dorcsauSO3Z1csdGcufe5M7Feav5GYasf9f30l9bmfqJC5yLVfMxheQOkjtI
7iC5g2oGQhZUMxDIHVQzeCw1A0EEeBAFA+aZMO/dtl2JWCL3gOWado/IuLpq
FRJLupK1QhTIP0JuE4MCrA72/zC0Ht+nfMHIC/p/OtGAyHg+7nvtm+8gw/7l
9IdxuhkBkafebxJ9TcE97D/WQnBvlwD3dgG4TwHaDQD3zbMrRzGcN82rVtgK
iiyLzWDISVxvyBVxfZyxAq6nWRHXP+UAAn0uhl18P+j/xaI+R880hPcI7xHe
I7xHeI/wHuE9xhPAeAJSUoYSEhgW3/PsZfm9b5gFr7L4NY0TywT4aFeMYsiC
u8Vv1pCuWIWWwiNGJJgRFTCMvJ4Do+jVtja/TXUhwpuV4he0mr83zk8oMKV4
YT7IbNVaU3KDKLayiNyg+HcRuSGmmZEb5p7VMbZeSu64zlaAOlXLCq9h/E1G
4bWi7yl2RyHwYN5h0QWtDYhXL3k89nIOl/jf+5DOUDq6CjdhTNJlNI9WeCGd
HDZPG8fSsOv60h/8o+1C1uURGJLVvp3jZ943z5qf4yY0Ek1opJgZoyozY1Rn
ZgxkZlbDzNz1h/0/4+XmFt1VIsOCDAsyLGgdw2dB6xjhGVrHoHUMR6EsYR2T
FjhEcuU+TI8KzS+Wff+IFMtanYjvf70lVFA3hHn9xAkONOAQqBHWs07YnVSF
4vFNMwQibm09MNraQg+MjINexGIY+SoaGRB4A3Q0Li7P3zqXh2enzTdRMygJ
VRUzZXthVrW9MKvbXpgVbC9gTA361xS7hr8QvyJ+RfyK+PWH41fLSnpVixeg
OYSVOWE/epov+v3s8hMn3YR7zavt8JvzhRlZlddVmCGWukiYMUvom5oF+qYZ
u/imCDNfDo+OokYgiXMhK6VualVVN7Wqq5taFdRNr/uBN6SSDPsh1acoy6As
g7IMyjI/XpbRk0wdW4L4FLxJ0Wx9WnNhhu4yr7bjr80VY2x7ba1miLbQasYq
oVhiZSuW5G3gGyDFXLbexZ+fCJtqkZT8QqrKL6S6/ELKyS8ooKCAggIKCig/
REBZP/EiT4LQ11U1VSHKQtVUq0Tgcasg8HjGFroBEkTrS4vqODcuLy4b8Hfc
FFaiKayUNGFVlSas6tKEtRwbEmtc/PKPUIuHOrQMbrvQZUEbRto4QG9PKH+g
/IHyx6MRJJqdoRCWuzzxOQ2jrC+Wn1Wo4f2OsPDBI78Lfxcrstjm2uqxhHao
xSKPVULksYpEntQ+vwEiz6fmVcyaqInvt1Nyjl1VzrGryzl2STkHpRaUWlBq
QakFWZN7sSbG+rImZCFrYpcQIexsEaK0QS8xHsag92W4xdSpEW9wy10awqVi
C5dETEyIeGkJlyq7VJU9Xe8oxuy+qvOpVJO/0oQCNfGZULou1EQXUupCpQ0h
paEIV5pwJXy7IZRpCG83hVJModamKlwJX2sKZZpCmZZQiiXks4R8tnjFvtZQ
9gzSIcrcRpv98CbjLcPYM8wO0eAOWyypJLjvDTriNSTMk+Nyrbpta+VW3f8P
rxQYIyVVAgA=
--1293669435-1663580017-975663272=:1074--


From larsa@sim.no Fri Dec 01 07:32:53 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 141pMy-0003C0-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 07:32:52 -0500
Received: (qmail 2547 invoked by uid 2000); 1 Dec 2000 12:32:50 -0000
Date: Fri, 1 Dec 2000 13:32:50 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Pavel Roskin <proski@gnu.org>
Cc: Paul Eggert <eggert@twinsun.com>, akim@epita.fr, dmorgan@symark.com,
  autoconf@gnu.org
Subject: Re: expr ... and `expr ...` return different results on QNX 4.2.5
Message-ID: <20001201133250.A2488@sim.no>
References: <200011301803.KAA11281@ruby.twinsun.com> <Pine.LNX.4.30.0011301607450.13905-100000@fonzie.nine.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.30.0011301607450.13905-100000@fonzie.nine.com>; from proski@gnu.org on Thu, Nov 30, 2000 at 04:28:13PM -0500
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, Nov 30, 2000 at 04:28:13PM -0500, Pavel Roskin wrote:
: Hello!
: 
: > Yes.  I wouldn't bother doing that.  Just tell them to get a working
: > shell.  You have to draw the line somewhere.
: 
: That's correct. We cannot support command.com anyway :-)

...darn - I was just about to start a `comfigure' branch... ;)

: How about this:
: 
: ac_output=`command || echo "===ERROR==="`
: case $ac_output in
:   *===ERROR===)
:     AC_MSG_ERROR([command failed]) ;;
:   *) ;;
: esac

How about something like this:

ac_output=`command`
command >/dev/null 2>/dev/null

The second re-run ought to be conditional on this problem to optimize the
configure script, so if someone knows how to write a condition test that won't
affect $?, raise your voice (keyboard)...

  Lars J


From assar@assaris.sics.se Fri Dec 01 08:05:52 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 141pst-00047V-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 08:05:52 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id OAA25056;
	Fri, 1 Dec 2000 14:05:55 +0100 (CET)
	(envelope-from assar)
To: Matthew Whitworth <matthew@okcomputer.org>
Cc: autoconf@gnu.org
Subject: Re: trying to get AC_PATH_PROG into config.h...
References: <Pine.LNX.4.21.0011302254250.25246-100000@warsaw.okcomputer.org>
From: Assar Westerlund <assar@sics.se>
Date: 01 Dec 2000 14:05:54 +0100
In-Reply-To: Matthew Whitworth's message of "Thu, 30 Nov 2000 23:00:49 -0800 (PST)"
Message-ID: <5litp4e1fx.fsf@assaris.sics.se>
Lines: 20
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Matthew Whitworth <matthew@okcomputer.org> writes:
> I'm writing a program that invokes external programs via popen(), and I'm
> trying to autoconfiscate the package.  I have been trying to use the
> AC_PATH_PROG macro to locate a program.  It seems to be working while the
> configure script is running and the value is available in Makefile.in, but
> I'm not exactly sure how to get the value (the full path to the program)
> in my config.h (where I really need it).

There's a different between AC_SUBST:ing and AC_DEFINE:ing.

Something like the configure.in below should probably do what you
want.

/assar

AC_INIT(configure.in)
AC_CONFIG_HEADER(config.h)
AC_PATH_PROG(PINGPATH, ping)
AC_DEFINE_UNQUOTED(PINGPATH, "$PINGPATH", [path to ping])
AC_OUTPUT(Makefile)


From simons@computer.org Fri Dec 01 11:15:42 2000
Received: from mailout02.sul.t-online.com ([194.25.134.17])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 141sqb-0001qx-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 11:15:41 -0500
Received: from fwd06.sul.t-online.com 
	by mailout02.sul.t-online.com with smtp 
	id 141sqS-0003ta-06; Fri, 01 Dec 2000 17:15:32 +0100
Received: from petium.cys.de (520030447190-0001@[62.153.19.33]) by fmrl06.sul.t-online.com
	with esmtp id 141sqN-0zhHLkC; Fri, 1 Dec 2000 17:15:27 +0100
Received: (from simons@localhost)
	by petium.cys.de id eB1GEPI09637;
	Fri, 1 Dec 2000 17:14:25 +0100
Date: Fri, 1 Dec 2000 17:14:25 +0100
Message-Id: <200012011614.eB1GEPI09637@petium.cys.de>
From: Peter Simons <simons@computer.org>
To: autoconf@gnu.org
Subject: Moving the autoconf archive to Red Hat
X-Sender: 520030447190-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi everybody,

due to a change of jobs, I am losing access to research.cys.de -- the
current home of the autoconf macro archive. I could in fact move the
archive to some other site (http://cryp.to/), but I wonder whether it
wouldn't be smarter to use the oportunity to host the autoconf archive
somewhere on <http://sources.redhat.com/autoconf/>.

Would it be possible to create a CVS repository to which I'd have
remote access to? I have all macros under CVS control, including a
makefile that will convert them to HTML and create the web server on
the fly. All that I need is "make", "perl" and some ISO C++ compiler,
e.g. gcc 2.95.

	-peter


From matthew@okcomputer.org Fri Dec 01 12:21:31 2000
Received: from adsl-64-162-56-154.dsl.snfc21.pacbell.net ([64.162.56.154] helo=warsaw.okcomputer.org)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 141tsJ-0003uJ-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 12:21:31 -0500
Received: from matthew (helo=localhost)
	by warsaw.okcomputer.org with local-esmtp (Exim 3.12 #1 (Debian))
	id 141tsE-0006xm-00; Fri, 01 Dec 2000 09:21:26 -0800
Date: Fri, 1 Dec 2000 09:21:26 -0800 (PST)
From: Matthew Whitworth <matthew@okcomputer.org>
To: Assar Westerlund <assar@sics.se>
cc: autoconf@gnu.org
Subject: Re: trying to get AC_PATH_PROG into config.h...
In-Reply-To: <5litp4e1fx.fsf@assaris.sics.se>
Message-ID: <Pine.LNX.4.21.0012010919360.26385-100000@warsaw.okcomputer.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 1 Dec 2000, Assar Westerlund wrote:

> AC_PATH_PROG(PINGPATH, ping)
> AC_DEFINE_UNQUOTED(PINGPATH, "$PINGPATH", [path to ping])

Worked like a charm!  Thanks tons.

>From config.h:

/* path to ping */
#define PINGPATH "/bin/ping"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matthew whitworth
matthew@okcomputer.org

Between here and there is better than either here or there!




From cgf@redhat.com Fri Dec 01 12:35:18 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 141u5d-00047r-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 12:35:17 -0500
Received: from rtl.cygnus.com (loony.cygnus.com [205.180.230.181])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id JAA12938;
	Fri, 1 Dec 2000 09:35:15 -0800 (PST)
Received: (from cgf@localhost)
	by rtl.cygnus.com (8.9.3/8.8.7) id MAA24117;
	Fri, 1 Dec 2000 12:34:17 -0500
Date: Fri, 1 Dec 2000 12:34:17 -0500
From: Christopher Faylor <cgf@redhat.com>
To: Peter Simons <simons@computer.org>
Cc: autoconf@gnu.org
Subject: Re: Moving the autoconf archive to Red Hat
Message-ID: <20001201123417.D23843@redhat.com>
Mail-Followup-To: Peter Simons <simons@computer.org>, autoconf@gnu.org
References: <200012011614.eB1GEPI09637@petium.cys.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <200012011614.eB1GEPI09637@petium.cys.de>; from simons@computer.org on Fri, Dec 01, 2000 at 05:14:25PM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Fri, Dec 01, 2000 at 05:14:25PM +0100, Peter Simons wrote:
>Hi everybody,
>
>due to a change of jobs, I am losing access to research.cys.de -- the
>current home of the autoconf macro archive. I could in fact move the
>archive to some other site (http://cryp.to/), but I wonder whether it
>wouldn't be smarter to use the oportunity to host the autoconf archive
>somewhere on <http://sources.redhat.com/autoconf/>.
>
>Would it be possible to create a CVS repository to which I'd have
>remote access to? I have all macros under CVS control, including a
>makefile that will convert them to HTML and create the web server on
>the fly. All that I need is "make", "perl" and some ISO C++ compiler,
>e.g. gcc 2.95.

I'm happy to do this (I'm one of the site administrators for
sources.redhat.com), but wouldn't it make more sense to move things to
subversions.gnu.org?  That's where the current repository is located,
AFAICT.

cgf


From earnie_boyd@yahoo.com Fri Dec 01 12:51:27 2000
Received: from web116.mail.yahoo.com ([205.180.60.89] helo=web116.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 141uLH-0004f9-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 12:51:27 -0500
Received: (qmail 21294 invoked by uid 60001); 1 Dec 2000 17:51:23 -0000
Message-ID: <20001201175123.21293.qmail@web116.yahoomail.com>
Received: from [150.159.224.8] by web116.yahoomail.com; Fri, 01 Dec 2000 09:51:23 PST
Date: Fri, 1 Dec 2000 09:51:23 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: Moving the autoconf archive to Red Hat
To: Christopher Faylor <cgf@redhat.com>, Peter Simons <simons@computer.org>
Cc: autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Christopher Faylor <cgf@redhat.com> wrote:
> On Fri, Dec 01, 2000 at 05:14:25PM +0100, Peter Simons wrote:
> >Hi everybody,
> >
> >due to a change of jobs, I am losing access to research.cys.de -- the
> >current home of the autoconf macro archive. I could in fact move the
> >archive to some other site (http://cryp.to/), but I wonder whether it
> >wouldn't be smarter to use the oportunity to host the autoconf archive
> >somewhere on <http://sources.redhat.com/autoconf/>.
> >
> >Would it be possible to create a CVS repository to which I'd have
> >remote access to? I have all macros under CVS control, including a
> >makefile that will convert them to HTML and create the web server on
> >the fly. All that I need is "make", "perl" and some ISO C++ compiler,
> >e.g. gcc 2.95.
> 
> I'm happy to do this (I'm one of the site administrators for
> sources.redhat.com), but wouldn't it make more sense to move things to
> subversions.gnu.org?  That's where the current repository is located,
> AFAICT.
> 

Don't get confused here, Chris.  Peter is not talking about autoconf itself but
a repository of m4 macros that he has collected from contributors that are not
included with autoconf.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From cgf@redhat.com Fri Dec 01 13:19:25 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 141umL-00059N-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 13:19:25 -0500
Received: from rtl.cygnus.com (loony.cygnus.com [205.180.230.181])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA17239;
	Fri, 1 Dec 2000 10:19:22 -0800 (PST)
Received: (from cgf@localhost)
	by rtl.cygnus.com (8.9.3/8.8.7) id NAA24340;
	Fri, 1 Dec 2000 13:18:24 -0500
Date: Fri, 1 Dec 2000 13:18:24 -0500
From: Christopher Faylor <cgf@redhat.com>
To: Earnie Boyd <earnie_boyd@yahoo.com>
Cc: Peter Simons <simons@computer.org>, autoconf@gnu.org
Subject: Re: Moving the autoconf archive to Red Hat
Message-ID: <20001201131824.A24294@redhat.com>
Mail-Followup-To: Earnie Boyd <earnie_boyd@yahoo.com>,
	Peter Simons <simons@computer.org>, autoconf@gnu.org
References: <20001201175123.21293.qmail@web116.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <20001201175123.21293.qmail@web116.yahoomail.com>; from earnie_boyd@yahoo.com on Fri, Dec 01, 2000 at 09:51:23AM -0800
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Fri, Dec 01, 2000 at 09:51:23AM -0800, Earnie Boyd wrote:
>--- Christopher Faylor <cgf@redhat.com> wrote:
>> On Fri, Dec 01, 2000 at 05:14:25PM +0100, Peter Simons wrote:
>> >Hi everybody,
>> >
>> >due to a change of jobs, I am losing access to research.cys.de -- the
>> >current home of the autoconf macro archive. I could in fact move the
>> >archive to some other site (http://cryp.to/), but I wonder whether it
>> >wouldn't be smarter to use the oportunity to host the autoconf archive
>> >somewhere on <http://sources.redhat.com/autoconf/>.
>> >
>> >Would it be possible to create a CVS repository to which I'd have
>> >remote access to? I have all macros under CVS control, including a
>> >makefile that will convert them to HTML and create the web server on
>> >the fly. All that I need is "make", "perl" and some ISO C++ compiler,
>> >e.g. gcc 2.95.
>> 
>> I'm happy to do this (I'm one of the site administrators for
>> sources.redhat.com), but wouldn't it make more sense to move things to
>> subversions.gnu.org?  That's where the current repository is located,
>> AFAICT.
>> 
>
>Don't get confused here, Chris.  Peter is not talking about autoconf itself but
>a repository of m4 macros that he has collected from contributors that are not
>included with autoconf.

I'm aware of this.  I thought it might be best to keep the macros close
to the actual repository as long as we were thinking about moving them.

But, I would be happy to set up a repository, regardless.

cgf


From proski@speakeasy.org Fri Dec 01 21:04:26 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14222M-0003hL-00
	for <autoconf@gnu.org>; Fri, 01 Dec 2000 21:04:26 -0500
Received: (qmail 7604 invoked by uid 24233); 2 Dec 2000 02:04:25 -0000
Date: Fri, 1 Dec 2000 21:04:59 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Akim Demaille <akim@epita.fr>
cc: David Morgan <dmorgan@symark.com>, APatche <autoconf-patches@gnu.org>,
  "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: FYI: `Document' qnx (Was: Various systems)
In-Reply-To: <mv4k89lts0q.fsf_-_@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012012049290.8634-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> 	* doc/autoconf.texi (Systemology): New section.
> 	Some about QNX 4.

Please undo this patch. We should not document operating systems in the
Autoconf manual.

> +@sc{qnx} is a realtime operating system running on Intel architecture
> +meant to be scalable from the small embedded systems to hundred
> +processor super-computer.  It claims to be @sc{posix} certified. More

What if QNX is ported to ARM? What if hundreds CPUs become thousands? What
if somebody buys QNX? What if it forks?

In short, autoconf.texi is not the best place to keep this kind of
information.

> +information is available on the @href{www.qnx.com, @sc{qnx} home page},
> +including the @href{http://support.qnx.com/support/docs/qnx4/, @sc{qnx}

I bet that nobody who needs that URL will search for it in the Autoconf
documentation.

I don't know any autoconf related issues directly related to the OS except
maybe the command line lenght limit and executability of shell scripts.

Everything else belongs to "Shellology" or "Limitation of usual tools"
or to yet to be written "Quirks in system headers" and "Quirks in system
libraries".

Finally, it's not the autoconf's way to deal with static OS'es. The
autoconf's way is to deal with known problems in possibly unknown
combinations :-)

Regards,
Pavel Roskin



From harlan@bali.trilogy.com Sat Dec 02 02:16:35 2000
Received: from bali.trilogy.com ([149.74.161.104])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1426uQ-00048D-00
	for <autoconf@gnu.org>; Sat, 02 Dec 2000 02:16:35 -0500
Received: from bali.trilogy.com (localhost [127.0.0.1])
	by bali.trilogy.com (Postfix) with ESMTP id 36E04172AC
	for <autoconf@gnu.org>; Sat,  2 Dec 2000 01:16:21 -0600 (CST)
To: autoconf@gnu.org
Subject: ..._AS_... name problem with CVS autoconf
User-Agent: EMH/1.10.0 REMI/1.14.2 (=?ISO-8859-1?Q?Hokuhoku-=D2shima?=)
 Chao/1.14.1 (=?ISO-8859-1?Q?Rokujiz=F2?=) APEL/10.2  XEmacs/21.1 (patch 12)
 (Channel Islands) (sparc-sun-solaris2.8)
MIME-Version: 1.0 (generated by REMI 1.14.2 - =?ISO-8859-1?Q?=22Hokuhoku-=D2?=
 =?ISO-8859-1?Q?shima=22?=)
Content-Type: text/plain; charset=US-ASCII
Date: Sat, 02 Dec 2000 01:16:21 -0600
Message-ID: <19262.975741381@bali.trilogy.com>
From: Harlan Stenn <harlan@bali.trilogy.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

The following configure.in doesn't work with the latest CVS autoconf:

---
dnl -*- fundamental -*-
AC_INIT(properties/SERunner.properties.in)

# AS Queue name
WS_AS_QUEUE=ibmas_$USER
AC_SUBST(WS_AS_QUEUE,	$WS_AS_QUEUE)

AC_OUTPUT
--

(it's a simplified copy of a larger configure.in we're using).

This is under Solaris 2.8.

The message I get is:

harlan@hawaii> autoconf
configure.in:5: error: undefined macro: WS_AS_QUEUE
harlan@hawaii> 

If we change the _AS_... to, say, _AS... it works just fine.

H


From simons@computer.org Sat Dec 02 04:56:31 2000
Received: from mailout05.sul.t-online.com ([194.25.134.82])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1429PD-000884-00
	for <autoconf@gnu.org>; Sat, 02 Dec 2000 04:56:31 -0500
Received: from fwd06.sul.t-online.com 
	by mailout05.sul.t-online.com with smtp 
	id 1429PA-0007QP-00; Sat, 02 Dec 2000 10:56:28 +0100
Received: from petium.cys.de (520030447190-0001@[62.153.17.76]) by fmrl06.sul.t-online.com
	with esmtp id 1429P9-0W3IS8C; Sat, 2 Dec 2000 10:56:27 +0100
Received: (from simons@localhost)
	by petium.cys.de id eB29g2v10480;
	Sat, 2 Dec 2000 10:42:02 +0100
Date: Sat, 2 Dec 2000 10:42:02 +0100
Message-Id: <200012020942.eB29g2v10480@petium.cys.de>
From: Peter Simons <simons@computer.org>
To: cgf@redhat.com
CC: autoconf@gnu.org
In-reply-to: <20001201123417.D23843@redhat.com> (message from Christopher
	Faylor on Fri, 1 Dec 2000 12:34:17 -0500)
Subject: Re: Moving the autoconf archive to Red Hat
References: <200012011614.eB1GEPI09637@petium.cys.de> <20001201123417.D23843@redhat.com>
X-Sender: 520030447190-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Christopher Faylor writes:

 > I'm happy to do this [...]

Great! I'll contact you via private e-mail to discuss the details
then. Thanks for the quick reply!

	-peter


From gooday@okongcomp.com Sat Dec 02 11:41:26 2000
Received: from [211.110.63.96] (helo=z2r0z8)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 142Fj3-0006UJ-00
	for <autoconf@gnu.org>; Sat, 02 Dec 2000 11:41:26 -0500
Date: Sun, 03 Dec 2000 01:37:50 +0900
From: "±è¿©¼·"<gooday@okongcomp.com>
To: autoconf@gnu.org
Subject: ¼ÒÇüÁø°øÆßÇª ¹× ¼ÒÇüÄÞÇª·¹»þ Àü¹® ¾÷Ã¼ [¿À°øÄÞÇª]ÀÔ´Ï´Ù.
X-AD2000-Serial: 1038
X-AD2000-Register: "±è¿©¼·" <gooday@okongcomp.com>
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="---=AD_2000_BOUNDARY_00bed300dd4b0129f700ab6f00d147"
Message-Id: <E142Fj3-0006UJ-00@fencepost.gnu.org>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

-----=AD_2000_BOUNDARY_00bed300dd4b0129f700ab6f00d147
Content-Type: text/html
Content-Transfer-Encoding: base64

PEhUTUw+DQo8SEVBRD4NCjxNRVRBIE5BTUU9IkdFTkVSQVRPUiIgQ29udGVudD0iTWljcm9z
b2Z0IERIVE1MIEVkaXRpbmcgQ29udHJvbCI+DQo8VElUTEU+PC9USVRMRT4NCjwvSEVBRD4N
CjxCT0RZPg0KPFA+IDwvUD4NCjxQIGFsaWduPWNlbnRlcj5bv8Cw+Mb7x6pdtMIgvNLH/MTe
x6q3ubv+ILnXILzSx/zB+LD4xt/HqsDHILTruO2758DUtM+02S48L1A+DQo8UCBhbGlnbj1j
ZW50ZXI+PEEgaHJlZj0iaHR0cDovL3d3dy5va29uZ2NvbXAuY29tIj53d3cub2tvbmdjb21w
LmNvbTwvQT48L1A+DQo8UCBhbGlnbj1jZW50ZXI+PEEgaHJlZj0iaHR0cDovL3d3dy5va29u
Z2NvbXAuY29tIj48SU1HIGFsdD0iIiBoc3BhY2U9MCANCnNyYz0iY2lkOjAwZWU4YjAxMTRh
MTAxNzQ3ODAwZDY0ZTAxMDU5YyIgYWxpZ249YWJzTWlkZGxlIA0KYm9yZGVyPTA+PC9BPjwv
UD4NCjxQIGFsaWduPWNlbnRlcj48QSBocmVmPSJodHRwOi8vd3d3Lm9rb25nY29tcC5jb20i
Pnd3dy5va29uZ2NvbXAuY29tIDwvQT48L1A+DQo8UCBhbGlnbj1jZW50ZXI+PEZPTlQgc2l6
ZT0yPiZuYnNwO7HXtOu3ziDIuL3Fx8+/qSDB1r3DuOkgtNnAvbrOxc0guN7Az8DMILChwfYg
vsq9wLTPtNkuPC9GT05UPjwvUD4NCjxQIGFsaWduPWNlbnRlcj48Rk9OVCBzaXplPTI+sKi7
5yDH1bTPtNk8L0ZPTlQ+PC9QPg0KPC9CT0RZPg0KPC9IVE1MPg0K

-----=AD_2000_BOUNDARY_00bed300dd4b0129f700ab6f00d147
Content-Type: image/gif;name="sub1_img_1.gif"
Content-Transfer-Encoding: base64
Content-ID: <00ee8b0114a101747800d64e01059c>

R0lGODlhfABhAPf/AAAAAMDAwM/soAD9/+BTVF8nKOKJjfqtr/HQ1v3y9Pja4OPG0Pvi69K3wuvT
3cesuObM2Ne/yu3b5MC+v7uir5WBjFhNU/Pd6ezV5MvIytrG1KyZp6GQnf3t+fjo9PPh7/70/Hlt
d8i2xWxfauXT4+DP3+zc6wYCBurW6j86PxIREv76/tnX2a2rrbSztIR6hc690AoGC19XYTQwNdnK
3beovL+wxO3i8ZOJmObb6+LW6SIgJCopK0hDTs7F2KmiusC6z/Xz+xcWG/r5/puXrwICBrCwx/T0
9XN1j4yOqEtOZGVpgnuBoVZddeLm9QMFCyYtP5aiv87V5s7R1jA7S9jg7Onv+BEcKwMLFBpPirHE
2SZwtAcTHh0nMEGKyVyf2jRGVQQKDfb7/D99fxr6/ib2+j7m6ErJyjVlZgL+/g7+/jLy8gIGBkij
oyY2Nvr+/pO0pg4SEHmkigYKBnKSaDxMN0tcRCYtHxwdG1xrSLPOjJ20esbimml3UzY6Kv7++r66
n9jQtv779h4WCvHh3vzt69YrJTkeHf3U05EsLBIODv76+v7+/vr6+urq6t/f3w4ODgoKCgYGBgIC
AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAEALAAAAAB8AGEA
QAj/AAMIHEiwoMGDCBMqXMiwocOHEAs+qgIEAgIFKCQs2NACwgUJFGo8aADBxoaRFDZQiOCgJQkH
EGAuaAlBAoMIFERoiABDAw0tPqpIGWrlSBCEb44oDdCo0UCnR6pMmXI0otUAR6a4sHEDBQoTJrya
+EDjB5GzRGqQKEHCqw4Ma0vQmEtDLg2fEPKyhcuWxFoTFEI8CvBGjBUpGkR4cNBgwQMRFDjY0FDD
BgwOG34w4VCDCY4fLypQgPEg5kyQNWAscOJEKBEvX75oeROxEYsWHEWOjLAAQwkcFlJQ6cKFy5Ud
V7gIwcKc+RUkTLxAR0KdOpMNNmrg8LwhQgQORmqI/7CBo0KIEKKTKBmhIwDoDx08AHmR2ocPJktC
IFmCA0iIHkoAiIQNL+yXRRZbbIGgFwx+scEEEwzWkAQKeLDCCiB0AAIICWwIwgos8HBFE0QY8YMR
KHJAgCEstujiiywmYsgIMihho409yHDeCDyeV0FpDDBQSAIBMGLkQBcKosAiAh3xQGqJmUVBAw9Q
8EAJItRQwQwpMOGDI4w8xIIFcczAgQMefODBmmzigMcOHLwQRhFYKGHBIHj0YMFyIzjyhhVV+KCF
iWYpoUgMMUjCwwgVYGZej432sAMekKQwBSN/FCKQGE78gAMOWM7w5gwyvNCCCC+M8AIHQPiAIhE4
vP8QAo1K4ABDEptV0KgIJXjwR0FxrLFGHIrEYawbYwwwhiKQkGFGHCk0+ywkwkKywxkDdJHCHNhC
IgS2Y6AhgwtwlGsHGmOke8a6Z7SR7hhu9ADJGOyesYazyr4QgJo3CKVDhiB4AMEChazZQQdALLFE
DRse/IFXftlgwwU3/CBaDUCUIIWuGbjQgKYGTRDsAGp0EYIjGWSAxwAstzzAGdSuAYkLQlChbr1l
DBDHCo+EEEcbyho7wLAzbOBAHGSUAQYYZqThRsyQCKVFFUN0kAK2wg5rbxwv8xBCsstCgnXLkGBw
AQZfKzsDED2AHYIDDDyAXga/DhTCGWnk7TLLaQz/7ccLbaRxRiSQQBIJGgOYMQMNMkyS+LvplrEG
GzI0MUIIocXwMh4NaLAADW1HQrjhkewQcyQVvHBSAxKIQKa1KShiLyRdd8ACGGqYUTgkinRRBhmQ
vNAFFSlQAEENVAghCdgyRNBCBUm44EjdDK1gwSQAQGJHH3t0T0ceeAAAAA86oECDD0AAkd0PSBSB
Rx/wxy9//H4A0IUSYFChv/5QAPD+/ADsQ/0s4IELxEQBGMDABvwXQADWbwcj8IyszmMBKihhCdCJ
FQnClBBHQAIAd+CDAEZIwhLSQXwteEMjjuAIRzyCBTMAwB5KSEMaotAFLmhBC2C1AxnW8IcCEB8Q
/8YDBEIxQXzdS6ISlWgHAKQgCUkgwg+maIRWaSAxNpgAC5yikBSA0A9gDKMYxSg+hMgAAJPIgx5+
yAc6KCJ7EjJI+OqwRiCOsA8AEAwLUjYBHOKwBfg5ox9IuAcAPIEKGMTBH3WoQxdkwBFH4OBVJknJ
SlpFkpbM5ECqkAQg2MQBGHCAd0gAgQiohDdAoI0mV8nKhxyhBkHwwA3YtKYPXMABOXBCCXzQgAhg
4ANqSpMHGKAACXzkAiXQAAo0QAEKLCAvC3imNGcSSgw0QAQxgYAGMlADDZggAp1rgA1K4AANvCSZ
GHBMShqwFrPl4C4RyMADHrCAlSxgIlJwgiZBJP+CG4BFAl8xgQ5MoAGznCUJNgDmmhIITIDmAGIP
hYtfJlqCilqUBDfwz3ZwQATrMIEJP9iADJDQqwZUoAFz0UCVREIBImzgpc3cAAfKYwMaWEEMQdAB
DDQDGy+g4UAJWpAXVMmQQNEgfSgyURQOSoQoAAEHPQRAEZ7AHON0AQpQSIFWC8DVRHD1q2AN6yFC
4IF0rkAghRiSIARx1gD8agUH68ANcnADHcjFCA1oAAWM4AMa1ECKRohCEviqhSgwQUFb+ILEWqDF
IwgEkwhpxCMm4IAMaehgtUwTCFoQhxjsoAfo4QBjWUCII1AvACv4wx8EsQgQMAARDNDBXWCgvvX/
mSUJMuXAFHGFnxBwYCUIMAFmIzCBKpAAfbfdTxPyp78U9EBPpSpPqkYAK9DIAAeONUiwhmWsOOAh
BW6DRBnKUKwu5I5S1eIB3qhQODOoIQ7X0pkKOFCYILTQZ5BAQ73aQDgebIBrLRPW0JgnhSnUYFBR
iMINhmCFD5SgBugzEQd0m4QmQOGqFmyCwjCIhBqQZT8ieECqKmAEGDigEJA1CCNwALYXOOACNIjT
BrxpAhUISwUb2EEIWoADDrBADGK42gAgoYVyyUEOdBgDHZYsBzdgaw5LXnL37oCtvbFsDDhYBAM6
IJALeWiYl42rD34ggYMlQEMN6wAJbKDNKLzg/wVE8AECSSBiG0BSko9ww3jbEAc0rGFZXTiDGtAQ
AvEOgAwkQxzLZHa1rDna0XyOA++6S2ljccAFP2NXF3CwXUUMc00bUu8AFAECR+BB0GvomgvAUK91
KUJ2o2YACeKLBjWcIQ4WSNYA0oCHB0yACCGYgiBSjBBGaOAsSNCwElIABiXIgEdIwMEGcOCG5oQh
DE+ganOeUISpYkE5O4CCnlSFmRo0AAYwQC4RkrCfJVABClc4TgpwkJKULKADEKjgDCygGAZc4ANT
KJEWzoduGIggrzXYAMZKQKXUfaoC+flBDSggAWIT5AUA6AMJ9SC+jmt8hHrAnh9ziJsXRBWESf/s
A/Y+LgA8jgAICZeiQXs4QzveEQAjCFKQDhiBEIiP5XgEQAnFR4UmhEBURbgCGJbAhCSMIAVKSIIP
SuCIhXix4+Ib5AgLifUyGgTjeCjhHvLgBzvQoYR4TEELHcGCKfBRfDYnIR4tgJuZSreHdFBiHQXA
hyWK7y56nXBaSO5IMLXyIUZ6g2oXb/HDM4UFE2Ck5CfvSBZAshGNdzxBHOGEgEOn6VEwwlCqUBXN
m/70BQmCFTzXzGYa/AEOQEEEDh6SZj6gJ7CaAPqAMCjea0ELU3jETTOP+tMfwQhBAEEwx6OBEtxy
Ad5pgEDRFxkoPVMmeck+TMC5m5jQpCUtkYD/BLS5AAUQAgZ7lUKggHA+LZAGOyj6gfp9sB3I4CCp
uQTU1BzfCJRNoK5s8VAZQVA/MGE4EEU+4BcQgwIYkBEBBVAYYEy2JH4XUIEV6GAZowEc8AAR8AI9
YDkbAAMN0AIpkRaWUQIQoAAfsBZzYREYUBckoAM38AFXdFwwYAOPAQM1sIELsFNaMBST9Ae2MQEf
YAIPFRZhcQNlgRZJUANfgQI5ABYCZVF90RYURVEVRRd1UQOgtR1vRh3lRgNtcQMw0FR09Sk18AM6
SAM68AMQAAMbIAJAcAE+IFisowOkBAPhIRoNsAFZ0FNbEAW18QgZsCZzBYVtQRYbcBYVsCdC/8AD
kNgFx9EDphInFUBvDqAmJhBNDhAWJCABGJADfpEDMCADChMCHTUCHPZXI4AEOsAIwJYDG2IES/AD
6RNjnvFRJxICTWAj9NEbGPAAY8AgDKIgCJIgSRAFWoB4LDBF06YwTdCL+AMGPbA/UKAC3ZZt3YYF
KiAE3igEKrADPMAlAGI50PZ5TaeLJjAEHhBLdPUB5SRYNQABDABsEgBXP1CLaegDIZACI9CLSAAD
TGAjzbYwMmABSnCMXrAFPZUEjJUyVccQiyABG3IhQxBLa2IFNzBXH9AAhwAAWHBVS9Ns0SgDiXCS
KJmSKnmSBcCSBTADMzACKFZ6gpAAHZIAaf+VKQwQADhZCIjwkz3JQR3wFWmCAg/AAQ2QIb6xU2kB
GToyBRH5EJKVAfDhIWmGWSAgAjzQAzXQAbGkkQiACAdwAAZgAARwlisCI4ZAAHtlULxFHfmxABJA
AyFmA7wnWKsicd2kABUgA1MyT/PUGA5ACOdDAjBWA6khAQ0wUznxAkqABDsWRxDxBhIwARhwMBlS
S7PUJveTjsm2XFilBJhTARPXTAcXASnIAAmgWm/ACK1pJCtwkVFhBOwWjQECXaHxW86nAK5CW0ZA
BEwQAksQICkwAzlyOZgTK282AlCABHHiIyFAb0RCEG9gAW3QarfGPA8QB1WmBm2ABzAQM3H/8AIn
0AaIljgm8y0DMAdTkhcSQAiFkGvp4mhnkC5g8AJC4DJrwC1/pixhQImpE4f0lBcJEAEWIAMw4JWd
8gI8EJKU+Ft2qQVFZFisghk6IiuNuAEf0FYDsV1xMBB/8ALJUp+0cwY78AGKUC0xowiSICyKMAR1
ADbcoixoYAeAEAiBQAjwmQJmEDRx0AWphgYZMASK8DhjcJ32AjYp0BgNUAJBkia3xAAasAEQUDAe
MASEYAExiRlWolRNlQQv4FcKRwSygoMUYBI/YAUFMQP2YgbsEi5uwwFA2jK64wJQswExUGUkQwV1
wJ3rOQdmd2R7UAfo8i49CjnwQgen9qdz/9CoLbYICvAhGAICqLUYFxAfHoCpDTACImACFbUTIiAC
EaABl1EDo8o4M4ADNyABJiACFVAivYIQE4AsaPACGTBh8SQDfiYsZyAELUAtZuCrO0AF2MkubuAI
E8BqxdouM8ACcNAFYJAuaDAHbsAGa/As8IMGfTABR8ACL5ACkBgcbTAsL9MDIoAsiLoD36IGihBK
dBktpCICI5AsbfA2jLEq3ZRdWOECM+CnwxI4ShMHIyCnakAGZ9CjSEoGMoMDkXAFXcA7iWMskqMI
L4ADu3poa5AzklOvjwAJuUMs2MJewrIzqMUIGCJqpAYC6rUGRXoGPCCiQQNr15lqihBM6v9pBicQ
AtGqLCnwAAzQApjxAISweROgnDwANn8jKy/gAiXQA2hgBueZO2eABhbgA15kZYsWPNEKOUYqrYpw
pOxiBsIitjJTQB1wZiDApkOzBmqQBi7aNSuwCCOABufJN2TQBS/rO2XQBRYQCWUwaGBjARXwAw+A
Ay3wCFzkEH9QJagSCUi6Lm3QBTLQKi/ABvCCRpOQuWiABimAGTagEzAAXmAwAm+piqcYWhRgAZs7
ubS5H0igEpLhGBwwAzyAB2MABjigJiKwA/pVL2AwAzUwEyRAA0+iARWABESALG4wAjJlq1bxCCvg
AxUwAjOwHFgQA1egBEwgWB+lMO02Bvj/Y2FYdWFdUL7xdr5CYBzxxgXMwW0x0I1CII7GaQEHKgP2
e5D0uwQ2ECRAEI0bYEw9Nys7oAjxS47QZb+qAoeNorQhUCoy0ANIgFsXoBCMMAVodHY2pwcfxAOf
YRkYYAIX0AIAoHVxh0c9wFsfRR1KMMJxd3MpMCRn628SIMIkbHN4pHQp0ASyIgMzoARNEMFQ1ITT
iRAhCgB5QEJ88EEdV3MCwHUkJ3k84ENAJEIkJD4cEAIWsAEmcBc8/EUYLAB0AEZfjEc7sBNXBAO8
oQFw18J4xAMpgAVQ0ARNhxY/UFMq5QOJmxB/MAUfhD1+kEQnJD6TMAJEVRCMcHWDQAd7/zdCfVc/
KDR5OhTFGddA8uPIJYCHcVECMcTEcSc+J2IZPnBFD/BSNoBDE2B4CXHIUtzCXkcQRVwHJQQ+4kNH
JHRCKWDIf8AIa7x1eid3k0B3kOwCPYAH3agCLLx1APCNeCAEFbCIU7RILVB4hawQewwh1nzN2Awh
1OwmXYd1kCADUYkQLSDJ3dx1L1A3R2IkKNNILoBxWLcDcBDNkucCExB8kVR8+Hx4QuhCbTcVU8EC
j+AIeZzPBF3QBt0QjgAESfCDbHEDLkBvDyAxVTTQB13REOEELOACGnATMOAVQEAELVACJnCUprqY
ylhFVVAFNyUGxGfR+GwFTiAFHoAA9P9IAhNQAmQBBBrQh9nxGNoRhxFQURZRTAiAAA5wXOuWjETw
e1Og0kA2BC3t0g5xBE4wAd0EAZjBEiXQKv6UAekGGVUShytxF9mnfaQafaJ6fS0RSnmBARYRAScC
BCdiBa75Bo6g0k4wKBMABFXAAlpwFFbgArxnFigyBUZQBcV3BBo6Fv+GWWviANlRGd6kJhHQTWaD
Ag4QTdGkVyPhAAqQ2SyhAQOTTTDhAKTxABogSlZSJYD5TCLwAwdnH0BghCSgAEFCAohhl+g2MDBw
XByhBfrUSrbhA/40FmvCAGvCcFSSEjZQPhcAwtD9b8Bk3PExF56NfQugARggAiohmIz/EZgksCYS
UAKVPRIYYE6tI4c32EycoQH2oQEbiW6QoRIqQQEnEsp+Ms0QkRU4ZIQ6kAMAjgJt4QOwAkWfwYZV
iIefWhcoCAEJhAJnE0qgZALiFySFoIgcUJv36QM2AMJ1QQMDQ6olcN6lRALvJOAs4RjXBAGf9gGs
WgI6WBlpGFKHraYRsQL+N1cm4E8fPBZLeBY44IQMCIUm4BdUuBZGbhdZKNpX9KkRYAOXQ95VkhI/
4AMSMKVEYAMUgANNoBiIOWZLBUU/IFg/QLwkkI8cUNmTEQE+YG4MsAgrwABIABtf4AVaENVPQYj+
BIVFKIU/vm5OaIRgUYSiiIeYbIUV/yVRmYyCbGECpRjBuVIg1PEDwUgBwSVQHrBmfOUDciiGPsAT
KCKqnj4eNQUBcpgEGOSYQJUgsLGMDvEGhPgBM4gB//1QZNFSZ2GJJzG9pfIAJiBLbu18RgjgUVjk
bGEXdUGGqvJRZMph9FFhTEACAdACI0ADN8DpIYAd4rFRn/Kb+zGwLL4hOYABSUDnC3kgCHKMW4Dn
b8AC/VTcabKRHlAWcWIBxIEFVyAEXYAcXSAE7+tZHIYD80QBurKBmeipNfgB/KgfTAArTIAEqvgD
FYYEKOAeL2ACGVIDSGCLPgADkk4dRAADSECQTYADkEEBL7AgrJ4gDOkFUyAGb6Dfkf81WTsEpjRy
kDySAld1YclRHNlGVcYBBfqjYR71UUZ/9EfPGSaeA2PmjEfpmE1Q8RsQAh+QIRPwAjbQ8TTwAvcr
x0CABM9lIwMCjequ7l5ABDnkAiyA52KAVMD58A9fHdbhdEIgPlNFJ1UVvz0Pjt44CIdwCGFVAAeq
ihsPAoWgAAPBJALBjmtChz5wAQpwAZ6ShpaxH8/JBDsl6dGYjz686l4QBQ9gygF9BJiH0DogS3bF
gnNhH/ZxAxTwkd6mvuIGID3QVSvpVS0Z+Fw1Vpl6AWHyB6+FCAmgAAqQAIxQCDsZAIKgWgMxBM7f
AR/gBLaEAjqAh81nhB4AAjmgVE7/dZSNFRHHf2YXMv5WuSFZOglcAAafF8SyIiMwcvsqaQHP1QPO
VQELUNTw2Va/f1aYAhABFiUohIgBokIKDiQIECBBhAgkJP5IIoIBhAgigNTYIKJCCihJWDBqWNLk
SZNHWFwAsWIFCJgdOsRckWGGkh82gOyEYYCAIaBBhQ4NSgAHEyRLlDZpouQFkSRJmyoB00NGBQoP
IkhQgGCBggSLxK4oyWjRAhE0METYsOGBiLdaRVDoAebFhCMo9aI8MmWCgw4JPMyU2cHDYRAudkDh
cEEQI5KMyK74A4KgAkQHNPskQMDAARg2RNf4QQRqEtQcOFR4ESLEiwobIHz4gELH/xQYCowwQY2j
wggZFiyk6GFBRogKqjm0rSCDw4MKFpq8SBJiwyOSe/cycjQBQ2HDgj8cHsyBC5YnANiEmaQIDw8L
HBo00CBBAgOGJiMPAWHYgxMdfNiJohBGcO0FHIiowQgbYNAABogcSKCFEGDASASOVsMBtSSgYgIp
3nCwYIQRLEAChxEqqOC1CBrRTq8/ugOMMP/GOyyBCsLgIYQMWMhAiiqqkMIIIph4QSnXXoNNOQqa
jFAB/BbJboU3qnzDiiq0iII3pJYYgYIGHFigtQ1qgGEnI6LYEgmplHCziSVwwKGHHnwgIrkmYRNh
CJQyGGEGHgKFb4QxBmhjBEI22P8BEkZTmOADPNYwY4cKurhCkhgkYeOKS89QAwwW/mDkDUZEZYGD
FyBZY9U12thBCRle4GEMWsdAI5I2zCi0jRQ4iAABQsISZIggrPAAghaiSKLLJmTYoQgVlKhBBA18
+AEJqnpQYonlUF3RuuckCOKkONZQg9VV4yh0jBBSaGOAMtogY4AxRlB1jThkoEINNc4wY4AzduDh
jAEgYYEFGGCY6wEhBnD4YYjPCIEHRSpeFZIz1lgXDKWU6AHOFyiYC4JHmqDihQccLMEGMIQQggfi
jsPzgQc28MGHFzhArTXWaugApXLXUMSkF9ZNARKAhZAgaEZXVSQSM9SAxBE/3kX/A2OH10ghspII
hZfVAcyIxIYMIgmbVjTQMENjenk4ghHDWuIvAZkaeOGDAFY44gicOUizyC6VUooJHzSIoEjWcFCt
oxpoyK4hRdIt6YgQCnUY6TPw+ODepteABGoyIDlihnfHiITgSNygQw46Wu8jjzu6mBfiNuJ4IQNF
IB6gX7bHkOGHxVugIIKWVugAAg1MwGB5EmqYYQckqtCBBgFtaJICDnAogYYkNvjBCCPsluGBGkog
y6RyyVh7jTIcLn1igs9Q21ALOJcBjQHWQMNTM+bAg+D8+QEQe3ABIHawBt0lcAx2+F/+0NW+Mbxg
BQoAwUlAwAAMOMAB46GNBzTQ/yARQGgBCECBCS6AARM0IAKHAcISKoADG1zAAy0IWQiIYAKTuGAG
KogDHmaQghD0YF0hGBMk0GArSDSGcxugGBVoBQk7yEEIBAtD66xIhz7YoQ5bnMMZ0jAHLdqhDxUw
IMFqRSszSpAlDelPTBjAgJgYpgMuGIEjGrKCIHwAAyRAwQ1gYDMgcKAGSQADBy5CAhG8wAYkGNde
jpABDrTABW4YgxtacAEfjEAFjOLBBiTAg7TNYANd6EEKBBWoOIBhDDs4giOIkIIu3OEOnLoCD1I5
hjrIIQ9adIMWnTgHYAJzB5XMwAVBQJKaWOCHithBCzyQARy8xjUVsAETVRCC+/84wAQkiIAGKpQE
FUhiBg+wzwOs44IpuEgvFmhDGswQBzE4IgMZsMAY2sAqXYGBcy0QAhrQxap5ic4F/vwnq87QgwSw
Mw0LBRgeIrGqKo6hD3CwwgqKdgaMniEOGYsDwHhQgTGkYQAiddgR/wUJGX4ApIYaQQ3qSa8ROOAC
GaBmj9SZw42GDV5uGMEEJhACI2bMDG14qLk85wIhvMuBrOJXHALgiBCoy1AqwN8ZFGGBeaIhDWeY
wx12da84lOoPb4DJwAYQhx4qImO5OwMPikYvWRGsYgSDhAlow06AqaAGs6JXCCBwgQeopgH5aYgj
UnCGeZWhC3FQqxrcCQa8tgH/El1Qg67GUAbP9aANGSXYGjAqqTOMwQIELWirQhAAs5KhffgKWhxe
MpiyEkwFHVjBwMgQv48WCrNrIIM7eTsARVyAAQ+ABBnm1YUmVA5gY+gBBGrAARkYAG8lacQLeNgD
r7GrBYvqgQtSBYbQMqpzKnhBGNhwxjPeCmsJhNga3ICDFKC1YnGABNNoQ5bYnjUOKgCv5zzqCA7M
AK1HpBV4C4aBEYChsqejlyTWpYgRbGACG3CBI95gEg6oslbxS68MRkmGfqERgWiQwRSUAACATWIS
AADAJFYlCdYUiESYgwSJRvACszlst2Y4wz0954FjvqQDI7gnj0ObMczxYAWO/4hDGchwNUVAYgzn
UkEKzIWGHkRABngoQ2jppQQiQDJFjzhfQ1xgS0UwtmLzRSskQkABSPxrtwgkQxdCQIMloJi9a1DB
D0qzLCTEAGA7WAJsYryBBjgIAjSgAdOaAAUozGAGMgBTAy5w6R6sFWA9uIADePAuMjCVXhZwQAQm
QIP5+KCaMliXBSiguArf9EUmKcQGkrCiF/RgB0LAww56AEMY0AAHXAgDFrAQhjAUgcVFiIEQBFac
19xYZAk709+ishQZQHtFBkqQmURgg/ksIDAVmEEPGtOBi5CbUTtIQQUiUgINPAguNmDCD+xGogq0
AAfOkUAhElDmWTsCBQtKE/+2qACGg4NB4QrvgaW48HAucKoLkIbCFSJOS4gbGwtccDYPinPj5TwA
CDrB0JaW0BSmyCA4HEiABB5NBQs84AMKwAAKNMCBJtUgAj5g9M2AADwK2GABiKDAC2DDhBBwyDQU
qOCsA/CIEEQCAMpm8YqXDQUj7EQL4FOTspDQA6uzWOwtHjsArkBxKHRB7ZzCQtndvmwAfEkCJ6RB
Cd7YgBC8Xe8/3ABrUOWaEVhFCU1ggpwc4HQZsLgPfBBA4x3f+D1AAgA80EAHnXADEtCACADww+M9
//g+AIAKgmOKm6jA+c+nPvQzYIAHPtBpEkiAAqhPvedD72vFIaE1FtBWE5D/UPjC3+BFf3gBAO7w
+D3UwQ9+oAPjG08HAMRBNb5RHKoAgIc+ZF/72t+D40OPkyj8QFmoybPeFe99AFjAA61ngHAvMHvs
dx/y2Qe9HwAABWftYIdd2NaHqJMgGvCAF2GE4usDx4M+ANgBFTC+x2OxFnhACGwBHhi7zoM8FpM/
AcgDFoMB6OIAKdgII5hADKw9AQi9EFAACcggiIAABxA7A2y80AOABmQxC3iBHXgC5FoC3uAAJlgC
JIABeMsL7XgDHACASHA+yNuDPdCDx6sDAJgBFpiCDPApFzgzABhBEhQAFvu7nKmBB5hAOlBCJmw8
PRBDx9MDFmsLIiiNMrEB/xbLQvS7AjAgvCRQEz/LicIxkyn4A6ebAqmDhOb7vD2wPwAIAVIpiz9o
hBR4OzzwgzvQuwh8QCvEQhJksRKAgBKQCAcogRkwvuX7RFAMRRbrkDU0AhHwAXh7APpwgQkgM6db
RAp0vD0YuxXbi0dgMTsgQcZDwBGYwip0AQh8QzgsQQD4NRwokxCCgU6kxNpjMUbbngiomQSxgV9k
ASF8kUVkxtRjMZQgQAB4QQFAw7EDx1lMgQAYlUTcG0cQxsYLRTpAPwuIxAfUtbKrQAGYxbIbJwrY
ANP4AWCUxAywMKcLgGwcxsbjRpRogRZ7xyzkAzyYBBnYCxYbwywMPRmoQq551LePOTF7nEVIODgo
oIIEkcR/bIEJsMbH6UNYNL+ymwDtSDwWuwMxyr48IEQAgIRH0I4WwAOWLLsXeINGaIRWcoRH8Atg
JILyKzshQIIkkKQIrMIMeIQj4MOBPAmqrMpZK5UpQBWjMzoccEmsHMiUNAl5kkdg/MWnnIAecYS3
CUu3fEu4jMtZa4SinAC0hMAqnIApcIRGgAy5/EvADEy3jIxEFIS9OYK+PEe5DAgAO6==

-----=AD_2000_BOUNDARY_00bed300dd4b0129f700ab6f00d147--




From jouvin@lal.in2p3.fr Sun Dec 03 17:14:30 2000
Received: from asa.lal.in2p3.fr ([134.158.91.28])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 142hOw-0005W3-00
	for <autoconf@gnu.org>; Sun, 03 Dec 2000 17:14:30 -0500
Received: from PC-LEHUEROU (Mix-Aubervilliers-103-4-47.abo.wanadoo.fr [193.249.163.47])
	by asa.lal.in2p3.fr (8.9.3/8.9.1) with ESMTP id XAA23991
	for <autoconf@gnu.org>; Sun, 3 Dec 2000 23:14:26 +0100 (MET)
Date: Sun, 03 Dec 2000 23:14:56 +0100
From: Michel Jouvin <jouvin@lal.in2p3.fr>
To: autoconf@gnu.org
Subject: Autoconf oddities on Compaq Tru64
Message-ID: <927720675.975885296@PC-LEHUEROU>
X-Mailer: Mulberry/2.0.5 (Win32)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi,

This is quite a long time I am experiencing problems with configure
scripts on Tru64 because the -l is inserted before -L when adding
additional libraries not in the standard search path.

Trying to understand why I recently discovered it was done by
AC_CHECK_LIB macro in Autoconf acgeneral.m4 file. Is there any reason
for that. This is a problem on Tru64 because the linker requires the
 -L before the -l that needs it.

As a temporary workaround, I changed that behaviour but I'd like to
know if there is some side effect and, if not, if this is possible to
have this change inserted in a future release of autoconf.

Thanks in advance for your answer.

Michel

     *************************************************************
     * Michel Jouvin                 Email : jouvin@lal.in2p3.fr *
     * LAL / CNRS                    Fax : +33 1 69079404        *
     * B.P. 34                                                   *
     * 91898 Orsay Cedex                                         *
     * France                                                    *
     *************************************************************


     *************************************************************
     * Michel Jouvin                 Email : jouvin@lal.in2p3.fr *
     * LAL / CNRS                    Fax : +33 1 69079404        *
     * B.P. 34                                                   *
     * 91898 Orsay Cedex                                         *
     * France                                                    *
     *************************************************************




From peter_e@gmx.net Sun Dec 03 17:51:56 2000
Received: from mailout02.sul.t-online.com ([194.25.134.17])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 142hz9-0006pB-00
	for <autoconf@gnu.org>; Sun, 03 Dec 2000 17:51:56 -0500
Received: from fwd05.sul.t-online.com 
	by mailout02.sul.t-online.com with smtp 
	id 142hz1-0000uU-02; Sun, 03 Dec 2000 23:51:47 +0100
Received: from peter.localdomain (520083510237-0001@[212.185.245.160]) by fmrl05.sul.t-online.com
	with esmtp id 142hz0-1lQMdsC; Sun, 3 Dec 2000 23:51:46 +0100
Date: Sun, 3 Dec 2000 23:57:57 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: Michel Jouvin <jouvin@lal.in2p3.fr>
cc:  <autoconf@gnu.org>
Subject: Re: Autoconf oddities on Compaq Tru64
In-Reply-To: <927720675.975885296@PC-LEHUEROU>
Message-ID: <Pine.LNX.4.30.0012032352150.937-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Michel Jouvin writes:

> This is quite a long time I am experiencing problems with configure
> scripts on Tru64 because the -l is inserted before -L when adding
> additional libraries not in the standard search path.

Put the -L options in LDFLAGS.

> Trying to understand why I recently discovered it was done by
> AC_CHECK_LIB macro in Autoconf acgeneral.m4 file. Is there any reason
> for that.

It's the same reason really: the -l options need to be in dependency
order, at least on some systems.  Therefore, the libraries you check for
later (and which might depend on the ones you checked for earlier) need to
appear before the earlier ones on the link command line.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From redial1@bettergolf.net Mon Dec 04 04:14:45 2000
Received: from ts005d48.atl-ga.concentric.net ([64.1.54.252] helo=unknown)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 142rht-0008JL-00
	for <autoconf@gnu.org>; Mon, 04 Dec 2000 04:14:45 -0500
From:  <redial1@bettergolf.net>
To: <autoconf@gnu.org>
Date: Mon, 4 Dec 2000 00:38:32
Message-Id: <779.881937.728208@>
Subject: updated pricing
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Vortex Supplies

Toner Supplies at discount prices
Laser Printer Toner Cartridges 
Fax and Copier Cartridges

Order now direct from the company that sells wholesale to
your local retail stores and save up to 30% on your purchase.

Order by phone:1-888-288-9043
Order by fax: 1-888-977-1577

*** E-mail removal line: 1-888-248-4930 ***

Pay by check, credit card or Purchase Order.

If your order is by check please leave your check number (Mail 
check when you receive merchandise)
If your order is by credit card please leave your card number + 
expiration date 
If your order is by P.O. please leave your shipping/billing 
addresses and you Purchase Order number.


Current Prices are as follows:  
                                
Cartridges for Hewlett Packard printers:    
                                
4L,4p,1100 and series 2 cartridges are now $49 
2p cartridges are $54            
3si cartridges are $75           
4000 and 2100 cartridges are $79 
5000 and 8100 cartridges are $135
5p, 6p, 5mp and 6mp cartridges are $59

Cartridges for Apple printers

Pro 600 or 16-600 cartridges are now $69 
Laser writer select 300,320 and 360 cartridges are $69
Laser writer 300 and 320 cartridges are $54
Laser writer NT, 2nt, 2f, 2g and LS cartridges are $54
Laser writer personal 12-640 cartridges are $79

Cartridges for Hewlett Packard laser fax printers:

Laser fax 500,700,5000,7000,fx1 and fx2 cartridges are now $59
Laser fax fx3 cartridges are $69
Our laser fax fx4 cartridges are $79

Cartridges for Lexmark and IBM printers

Optra 4019 and 4029 are now $125
optra r,r+ and optra s cartridges are $135
optra e cartridges are $59

Our cartridges for canon copiers

PC 3, 6re, 7 and 11 (A30) are now $69
PC 300,320,700,720 and 760 (E-40) are $89

90 day extended warranty included on all products.

 
 
 
 
 
 
 
 
 
 
 
 


From akim@epita.fr Tue Dec 05 04:06:44 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143E3f-0006no-00; Tue, 05 Dec 2000 04:06:43 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA06637
	Tue, 5 Dec 2000 10:05:58 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143E9i-0000pE-00; Tue, 05 Dec 2000 10:12:58 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143E9f-0002Gr-00; Tue, 05 Dec 2000 10:12:55 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: David Morgan <dmorgan@symark.com>, APatche <autoconf-patches@gnu.org>,
        "autoconf@gnu.org" <autoconf@gnu.org>
Subject: Re: FYI: `Document' qnx (Was: Various systems)
References: <Pine.LNX.4.30.0012012049290.8634-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 10:12:55 +0100
In-Reply-To: Pavel Roskin's message of "Fri, 1 Dec 2000 21:04:59 -0500 (EST)"
Message-ID: <mv4ofyrz0x4.fsf@nostromo.lrde.epita.fr>
Lines: 60
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> Hello, Akim!
>> * doc/autoconf.texi (Systemology): New section.  Some about QNX 4.

Pavel> Please undo this patch. We should not document operating
Pavel> systems in the Autoconf manual.

Why not?  I mean, I understand people who would say it does not belong
to the Autoconf Reference Manual, but otoh the Autoconf documentation
aims at providing the user of Autoconf with the answers to the
question she is likely to wonder.

Documenting the shells is one good thing, and I think documenting
systems is good too.  Beginners should be aware there are things named
AIX, HPUX etc. out there.

>> +@sc{qnx} is a realtime operating system running on Intel
>> architecture +meant to be scalable from the small embedded systems
>> to hundred +processor super-computer.  It claims to be @sc{posix}
>> certified. More

Pavel> What if QNX is ported to ARM? What if hundreds CPUs become
Pavel> thousands? What if somebody buys QNX? What if it forks?

I don't get your point.

Pavel> In short, autoconf.texi is not the best place to keep this kind
Pavel> of information.

>> +information is available on the @href{www.qnx.com, @sc{qnx} home
>> page}, +including the
>> @href{http://support.qnx.com/support/docs/qnx4/, @sc{qnx}

Pavel> I bet that nobody who needs that URL will search for it in the
Pavel> Autoconf documentation.

Of course they won't: there was no such information before.  Now they
know they're likely to find answers in there.

Pavel> I don't know any autoconf related issues directly related to
Pavel> the OS except maybe the command line lenght limit and
Pavel> executability of shell scripts.

That's not the only point, it's also about knowing where you are
working, not just your tools.  It's about curiosity.

Pavel> Everything else belongs to "Shellology" or "Limitation of usual
Pavel> tools" or to yet to be written "Quirks in system headers" and
Pavel> "Quirks in system libraries".

I very much agree the real content is and will be there.  There must
be listed and classified the failures we know, and certainly not in
Shellology nor Systemology.

Pavel> Finally, it's not the autoconf's way to deal with static
Pavel> OS'es. The autoconf's way is to deal with known problems in
Pavel> possibly unknown combinations :-)

:)


From akim@epita.fr Tue Dec 05 04:43:09 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143Ecv-0008Jo-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 04:43:09 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA10718
	Tue, 5 Dec 2000 10:42:09 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143Eij-00010Q-00; Tue, 05 Dec 2000 10:49:09 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143Eih-0002MG-00; Tue, 05 Dec 2000 10:49:07 +0100
To: Harlan Stenn <harlan@bali.trilogy.com>
Cc: autoconf@gnu.org
Subject: Re: ..._AS_... name problem with CVS autoconf
References: <19262.975741381@bali.trilogy.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 10:49:07 +0100
In-Reply-To: Harlan Stenn's message of "Sat, 02 Dec 2000 01:16:21 -0600"
Message-ID: <mv4aeabyz8s.fsf@nostromo.lrde.epita.fr>
Lines: 29
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| The following configure.in doesn't work with the latest CVS autoconf:
| 
| ---
| dnl -*- fundamental -*-
| AC_INIT(properties/SERunner.properties.in)
| 
| # AS Queue name
| WS_AS_QUEUE=ibmas_$USER
| AC_SUBST(WS_AS_QUEUE,	$WS_AS_QUEUE)
| 
| AC_OUTPUT
| --
| 
| (it's a simplified copy of a larger configure.in we're using).
| 
| This is under Solaris 2.8.
| 
| The message I get is:
| 
| harlan@hawaii> autoconf
| configure.in:5: error: undefined macro: WS_AS_QUEUE
| harlan@hawaii> 
| 
| If we change the _AS_... to, say, _AS... it works just fine.

This is a known issue, and there is a patch in the queue which removes
this warning.  Yes, it looks like an error, but it's a ``warning'' in
the sense that the configure is fully functional.


From akim@epita.fr Tue Dec 05 04:44:25 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143Ee9-0008Kv-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 04:44:25 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA10774
	Tue, 5 Dec 2000 10:43:08 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143Ejg-000116-00; Tue, 05 Dec 2000 10:50:08 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143Eje-0002MQ-00; Tue, 05 Dec 2000 10:50:06 +0100
To: Christopher Faylor <cgf@redhat.com>
Cc: Peter Simons <simons@computer.org>, autoconf@gnu.org
Subject: Re: Moving the autoconf archive to Red Hat
References: <200012011614.eB1GEPI09637@petium.cys.de>
	<20001201123417.D23843@redhat.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 10:50:06 +0100
In-Reply-To: Christopher Faylor's message of "Fri, 1 Dec 2000 12:34:17 -0500"
Message-ID: <mv466kzyz75.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Christopher" == Christopher Faylor <cgf@redhat.com> writes:

Christopher> I'm happy to do this (I'm one of the site administrators
Christopher> for sources.redhat.com), but wouldn't it make more sense
Christopher> to move things to subversions.gnu.org?  That's where the
Christopher> current repository is located, AFAICT.

Yes indeed, and I too think it would be more reasonable to have it on
subversions.


From akim@epita.fr Tue Dec 05 04:47:49 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143EhR-0008Ow-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 04:47:49 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA10999
	Tue, 5 Dec 2000 10:45:43 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143EmB-00012M-00; Tue, 05 Dec 2000 10:52:43 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143Em9-0002Mm-00; Tue, 05 Dec 2000 10:52:41 +0100
To: Earnie Boyd <earnie_boyd@yahoo.com>
Cc: autoconf@gnu.org
Subject: Re: Fwd: Guess what...
References: <20001201031442.15558.qmail@web106.yahoomail.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 10:52:41 +0100
In-Reply-To: Earnie Boyd's message of "Thu, 30 Nov 2000 19:14:42 -0800 (PST)"
Message-ID: <mv41yvnyz2u.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Earnie" == Earnie Boyd <earnie_boyd@yahoo.com> writes:

Akim> We can have 2.50 in September, or at worst October if autothings
Akim> go wrong.

Earnie> Hey Akim, did you mean 2001 for this?  ;^)

I meant 1900 :)


From akim@epita.fr Tue Dec 05 04:48:49 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143EiO-0008Pp-00; Tue, 05 Dec 2000 04:48:48 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA11259
	Tue, 5 Dec 2000 10:48:02 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143EoQ-00014k-00; Tue, 05 Dec 2000 10:55:02 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143EoN-0002My-00; Tue, 05 Dec 2000 10:54:59 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: Paul Eggert <eggert@twinsun.com>, <dmorgan@symark.com>, <autoconf@gnu.org>
Subject: Re: expr ... and `expr ...` return different results on QNX 4.2.5
References: <Pine.LNX.4.30.0011301607450.13905-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 10:54:59 +0100
In-Reply-To: Pavel Roskin's message of "Thu, 30 Nov 2000 16:28:13 -0500 (EST)"
Message-ID: <mv4wvdfxkek.fsf@nostromo.lrde.epita.fr>
Lines: 33
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| Hello!
| > Yes.  I wouldn't bother doing that.  Just tell them to get a working
| > shell.  You have to draw the line somewhere.
| 
| That's correct. We cannot support command.com anyway :-)
| 
| > If you want to quote chapter and verse, you can tell them that
| > POSIX.2-1992 section 3.9.1 page 136 lines 755-759 says that x=`FOO`
| > must yield FOO's exit status.  Any shell that doesn't do this is
| > seriously broken.
| 
| That's not the autoconf's way. The autoconf's way is to find a better
| shell on that system, e.g. /bin/sh5 or /bin/ksh. If it fails then it's Ok
| for autoconf to fail.
| 
| But I still hope to work around those issues with QNX 4.25 somehow.
| How about this:
| 
| ac_output=`command || echo "===ERROR==="`
| case $ac_output in
|   *===ERROR===)
|     AC_MSG_ERROR([command failed]) ;;
|   *) ;;
| esac

This is atrocious :)

My personal opinion on this issue is that this feature is just too
essential and too primitive for us to try to work around it.  I'd say
`best effort', i.e., a *warning* is issued at the beginning, stating
that there might be problems because of the shell.  But let's give a
chance of running to configure.


From akim@epita.fr Tue Dec 05 04:49:57 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143EjV-0008QS-00; Tue, 05 Dec 2000 04:49:57 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA11358
	Tue, 5 Dec 2000 10:49:10 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143EpW-00015p-00; Tue, 05 Dec 2000 10:56:10 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143EpT-0002N8-00; Tue, 05 Dec 2000 10:56:07 +0100
To: "Lars J. Aas" <larsa@sim.no>
Cc: Pavel Roskin <proski@gnu.org>, Paul Eggert <eggert@twinsun.com>,
        dmorgan@symark.com, autoconf@gnu.org
Subject: Re: expr ... and `expr ...` return different results on QNX 4.2.5
References: <200011301803.KAA11281@ruby.twinsun.com>
	<Pine.LNX.4.30.0011301607450.13905-100000@fonzie.nine.com>
	<20001201133250.A2488@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 10:56:07 +0100
In-Reply-To: "Lars J. Aas"'s message of "Fri, 1 Dec 2000 13:32:50 +0100"
Message-ID: <mv4sno3xkco.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:

Lars> The second re-run ought to be conditional on this problem to
Lars> optimize the configure script, so if someone knows how to write
Lars> a condition test that won't affect $?, raise your voice
Lars> (keyboard)...

Let's try to avoid this dependency when we can, but too much is too
much.  There is necessarily a line to draw somewhere.  We already have
enough burden to deal with, let's not look for some more.


From akim@epita.fr Tue Dec 05 08:42:05 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143IM9-0001o4-00; Tue, 05 Dec 2000 08:42:05 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA15626
	Tue, 5 Dec 2000 14:41:20 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143ISF-0002Gj-00; Tue, 05 Dec 2000 14:48:23 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143ISC-0003kI-00; Tue, 05 Dec 2000 14:48:20 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: Daniele Arena <daniele@ripe.net>, <autoconf@gnu.org>,
        APatche <autoconf-patches@gnu.org>
Subject: Re: FYI: AS_EXIT (Was: Backquotes in quotes in backquotes)
References: <Pine.LNX.4.30.0011301355440.7667-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 14:48:20 +0100
In-Reply-To: Pavel Roskin's message of "Thu, 30 Nov 2000 14:00:21 -0500 (EST)"
Message-ID: <mv4zoibuggr.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> I'm afraid it's quite over the top. I would leave the case for
Pavel> 0.  Actually, I was planning to introduce a special case for $? 
Pavel> that would be just "exit".

It seems overkill to me.

>> # So we set $? by executing "exit N" in the subshell and then exit.
>> # "false" is used for exit code 1 (default), ":" is used for 0

Pavel> If you insist, make sure to remove this line.

Was done, thanks.


From akim@epita.fr Tue Dec 05 08:57:40 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143IbE-0003MX-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 08:57:40 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA17147
	Tue, 5 Dec 2000 14:56:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143IhG-0002OH-00; Tue, 05 Dec 2000 15:03:54 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143IhF-0004Nv-00; Tue, 05 Dec 2000 15:03:53 +0100
To: "Steven G. Johnson" <stevenj@alum.mit.edu>
Cc: autoconf@gnu.org
Subject: Re: AC_PROG_F77 thinks my compiler is g77 (it's not!)
References: <Pine.LNX.4.21.0011142213020.566-100000@gil-galad.mit.edu>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 15:03:52 +0100
In-Reply-To: "Steven G. Johnson"'s message of "Tue, 14 Nov 2000 22:46:39 -0500 (EST)"
Message-ID: <mv4vgszufqv.fsf@nostromo.lrde.epita.fr>
Lines: 70
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| Paul Martinolich wrote:
| > The _AC_COMPILER_GNU macro uses the cpp statements:
| > [...] 
| > to determine if the compile is a GNU compiler.  In strict Fortran,
| > these statements are illegal!  Unfortunately, I don't believe there
| > is a way (in strict Fortran) to determine those characteristics of
| > the compiler.
| 
| (I think you're missing the point.  It's fine that other compilers will
| choke on this--that will cause the test to correctly fail.  We only need
| it to work for one compiler, g77.)
| 
| Anyway, I see that Akim has checked in fixes for this problem...
| Unfortunately, it is still broken.  Now it doesn't think *any* compiler is
| g77, including g77 itself.
| 
| The problem is that the test program is compiled as conftest.f, which
| isn't run through the preprocessor by g77--it needs to be called
| conftest.fpp or conftest.F.  I'm not sure what the right way to fix this
| is.  The simplest thing would to be to simply change ac_ext temporarily
| just before calling _AC_LANG_COMPILER_GNU for Fortran:
| 
| diff -u -r1.89 aclang.m4
| --- aclang.m4	2000/11/14 11:06:37	1.89
| +++ aclang.m4	2000/11/15 03:33:58
| @@ -1029,7 +1029,10 @@
|                    [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc])]) 
|  _AC_LANG_COMPILER_WORKS
| +ac_ext_SAVE="$ac_ext"
| +ac_ext=F
|  _AC_LANG_COMPILER_GNU
| +ac_ext="$ac_ext_SAVE"
|  G77=`test $ac_compiler_gnu = yes && echo yes`
|  AC_EXPAND_ONCE([_AC_OBJEXT])
|  AC_EXPAND_ONCE([_AC_EXEEXT])
| 
| This is a bit ugly, though, since _AC_LANG_COMPILER_GNU then does not work
| on its own for Fortran; I'm not sure where the right place to put it would
| be.  (In the long term, you may want some way of telling AC_COMPILE*
| whether or not you want to use the preprocessor too, at least for
| Fortran?)  In any case, though, you don't need to worry about using the
| "right" filename extension for preprocessing in all compilers, since it
| only has to work for g77 (and fail for other compilers).

I'm very much in favor of this patch.  I agree it is not right in the
absolute since _AC_LANG_COMPILER_GNU is not ``complete''.  But otoh,
it's also because the task in itself is not right: we're trying to
measure something which is not what we will actually be using.

In the long run, the answer will probably be to stop depending upon
GNUness of the compiler to pass -O2 -g: we should just try some sort
of

for options in "-O2 -g" "-O -g" "-g" "";
do
  see if it works OK
done

But I'd say it is too late for 2.50 (unless someone thinks we should
do that *now*).

| PS. I wonder if a better way than #ifdef'ing __GNUC__ would be to just run
| the compiler with --version and look for "GNU Fortran" on the first line?

I'm not sure all the GNU compilers always supported some --version.

I am applying your patch, comments are, as always, most welcome.

        Akim


From bwilson@tensilica.com Tue Dec 05 13:02:05 2000
Received: from [38.170.141.29] (helo=mail-in.hq.tensilica.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143MPk-0002tN-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 13:02:04 -0500
Received: from tensilica.com (IDENT:bwilson@avocet.hq.tensilica.com [192.168.10.15])
	by mail-in.hq.tensilica.com (8.9.3/8.9.3) with ESMTP id KAA15946
	for <autoconf@gnu.org>; Tue, 5 Dec 2000 10:02:03 -0800
Message-ID: <3A2D2D9B.C7D1C05@tensilica.com>
Date: Tue, 05 Dec 2000 10:02:03 -0800
From: Bob Wilson <bwilson@tensilica.com>
Organization: Tensilica, Inc.
X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.12-20 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: autoconf@gnu.org
Subject: patch for autoconf when CFLAGS includes -MD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I ran into a problem with autoconf 2.13 when CFLAGS is set to include
-MD.  The acspecific code for detecting EXEEXT gets confused and thinks
that the ".d" file is the executable.  This patch causes it to exclude
".d" in the same way as other suffixes that it knows about.  Please
include this change in your next release if you think it looks OK.

2000-12-05  Bob Wilson  <bwilson@tensilica.com>

        * acspecific.m4: Ignore .d files produced by CFLAGS=-MD when
        detecting the executable filename extension.

diff -ur autoconf-2.13/acspecific.m4 acspecific.m4
--- autoconf-2.13/acspecific.m4 Tue Jan  5 05:27:52 1999
+++ acspecific.m4       Wed Aug  2 09:20:13 2000
@@ -2659,7 +2659,7 @@
   if AC_TRY_EVAL(ac_link); then
     for file in conftest.*; do
       case $file in
-      *.c | *.o | *.obj) ;;
+      *.c | *.o | *.obj | *.d) ;;
       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
       esac
     done

By the way, the same problem exists in libtool 1.3.5.  I am submitting
the following patch to the libtool maintainers, but I thought you might
also want to have it:

2000-12-05  Bob Wilson  <bwilson@tensilica.com>

        * ltconfig.in: Ignore .d files produced by CFLAGS=-MD when
        detecting the executable filename extension.

diff -ur libtool-1.3.5/ltconfig.in ltconfig.in
--- libtool-1.3.5/ltconfig.in   Fri May 26 18:58:57 2000
+++ ltconfig.in Wed Aug  2 11:06:10 2000
@@ -633,7 +633,7 @@

     for ac_file in conftest.*; do
       case $ac_file in
-      *.c | *.err | *.$objext ) ;;
+      *.c | *.err | *.$objext | *.d ) ;;
       *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
       esac
     done

-- 
Bob Wilson                      Tel: (408) 327-7312
Tensilica, Inc.                 Fax: (408) 986-8919
3255-6 Scott Blvd.              email: bwilson@tensilica.com
Santa Clara, CA 95054


From akim@epita.fr Tue Dec 05 13:07:12 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143MUi-0002zM-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 13:07:12 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA19685
	Tue, 5 Dec 2000 19:06:23 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143Mal-0003tS-00; Tue, 05 Dec 2000 19:13:27 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.16 #1 (Debian))
	id 143Maj-00055F-00; Tue, 05 Dec 2000 19:13:25 +0100
To: Bob Wilson <bwilson@tensilica.com>
Cc: autoconf@gnu.org
Subject: Re: patch for autoconf when CFLAGS includes -MD
References: <3A2D2D9B.C7D1C05@tensilica.com>
From: Akim Demaille <akim@epita.fr>
Date: 05 Dec 2000 19:13:25 +0100
In-Reply-To: Bob Wilson's message of "Tue, 05 Dec 2000 10:02:03 -0800"
Message-ID: <mv4y9xuspmi.fsf@nostromo.lrde.epita.fr>
Lines: 1
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Thanks, we will apply it.


From proski@speakeasy.org Tue Dec 05 17:23:28 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143QUi-000352-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 17:23:28 -0500
Received: (qmail 19841 invoked by uid 24233); 5 Dec 2000 22:23:26 -0000
Date: Tue, 5 Dec 2000 17:24:02 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Akim Demaille <akim@epita.fr>
cc: <autoconf@gnu.org>
Subject: Re: FYI: `Document' qnx (Was: Various systems)
In-Reply-To: <mv4ofyrz0x4.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012051649540.2286-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> Pavel> Please undo this patch. We should not document operating
> Pavel> systems in the Autoconf manual.
>
> Why not?  I mean, I understand people who would say it does not belong
> to the Autoconf Reference Manual, but otoh the Autoconf documentation
> aims at providing the user of Autoconf with the answers to the
> question she is likely to wonder.

I'm worried about the political side of the problem. Once QNX is there
other people will want to put other OS'es into the manual.

> Documenting the shells is one good thing, and I think documenting
> systems is good too.  Beginners should be aware there are things named
> AIX, HPUX etc. out there.

The problem is that the documentation for programs, especially for
commercial programs tends not to mention the existing problems, at least
from the point of view of an Autoconf developer, i.e. I don't expect to
see the description of the shell bugs on the HP-UX site.

Notably, the problem with the error status after foo=`bar` is not
described in the sh documentation on the QNX site.

> Pavel> What if QNX is ported to ARM? What if hundreds CPUs become
> Pavel> thousands? What if somebody buys QNX? What if it forks?
>
> I don't get your point.

I mean, you cannot document everything. The world changes. Restrict
yourself to the relevant facts. "Hundreds processors" are not relevant and
sound like advertizing. And I sound like RMS :-)

Document limitations, not achievements.

> That's not the only point, it's also about knowing where you are
> working, not just your tools.  It's about curiosity.

QNX is a good system and many of its features should be emulated by free
software, but the Autoconf manual is just a wrong place for that.

> Pavel> Everything else belongs to "Shellology" or "Limitation of usual
> Pavel> tools" or to yet to be written "Quirks in system headers" and
> Pavel> "Quirks in system libraries".
>
> I very much agree the real content is and will be there.  There must
> be listed and classified the failures we know, and certainly not in
> Shellology nor Systemology.

Ok. If you insist on having the Systemology section I'll try to put more
relevant content there. I'm updating my .plan

Regards,
Pavel Roskin



From matthew@okcomputer.org Tue Dec 05 17:45:27 2000
Received: from adsl-64-162-56-154.dsl.snfc21.pacbell.net ([64.162.56.154] helo=warsaw.okcomputer.org)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143Qpz-0003yH-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 17:45:27 -0500
Received: from matthew (helo=localhost)
	by warsaw.okcomputer.org with local-esmtp (Exim 3.12 #1 (Debian))
	id 143Qpr-0003nd-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 14:45:19 -0800
Date: Tue, 5 Dec 2000 14:45:19 -0800 (PST)
From: Matthew Whitworth <matthew@okcomputer.org>
To: autoconf@gnu.org
Subject: autoconfiscating getopt_long()...
Message-ID: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

The GNU coding standards document says "[u]se getopt_long to decode
arguments, unless the argument syntax makes this unreasonable."  Generally
I'm all for this and wish more programs did.  However, most UNIX-like
systems don't support getopt_long() out-of-the-box, which means one should
include an implementation of the function in their source tree.

I have examined several packages that use getopt_long(), including several
GNU packages, and none of them autoconfiscate this function the same way.  
Actually, few of them even autoconfiscate it at all -- most simply compile
and link it unconditionally (I find getopt.c, getopt1.c and getopt.h
thrown in with all the other source files).  I have also seen a lot of
code in which the authors call AC_CHECK_FUNCS(getopt) and then make no use
of the result in their source.  I have yet to see anyone explicitly check
for getopt_long().

I'm starting to think that I'm missing something....

Does anyone have a tried-and-true autoconf/getopt_long() technique?  I'm
currently playing around with AC_REPLACE_FUNCS(), but I don't seem to have
the source code just right yet.

Thanks!

Matthew

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matthew whitworth
matthew@okcomputer.org

Between here and there is better than either here or there!





From harlan@bali.trilogy.com Tue Dec 05 17:57:29 2000
Received: from bali.trilogy.com ([149.74.161.104])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143R1d-00048D-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 17:57:29 -0500
Received: from bali.trilogy.com (localhost [127.0.0.1])
	by bali.trilogy.com (Postfix) with ESMTP
	id D0F51172A3; Tue,  5 Dec 2000 16:57:24 -0600 (CST)
To: Akim Demaille <akim@epita.fr>
Cc: Harlan Stenn <harlan@bali.trilogy.com>, autoconf@gnu.org,
	harlan@bali.trilogy.com
Subject: Re: ..._AS_... name problem with CVS autoconf 
In-Reply-To: Your message of "05 Dec 2000 10:49:07 +0100."
             <mv4aeabyz8s.fsf@nostromo.lrde.epita.fr> 
User-Agent: EMH/1.10.0 REMI/1.14.2 (=?ISO-8859-1?Q?Hokuhoku-=D2shima?=)
 Chao/1.14.1 (=?ISO-8859-1?Q?Rokujiz=F2?=) APEL/10.2  XEmacs/21.1 (patch 12)
 (Channel Islands) (sparc-sun-solaris2.8)
MIME-Version: 1.0 (generated by REMI 1.14.2 - =?ISO-8859-1?Q?=22Hokuhoku-=D2?=
 =?ISO-8859-1?Q?shima=22?=)
Content-Type: text/plain; charset=US-ASCII
Date: Tue, 05 Dec 2000 16:57:24 -0600
Message-ID: <12555.976057044@bali.trilogy.com>
From: Harlan Stenn <harlan@bali.trilogy.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Thanks!

H


From eggert@twinsun.com Tue Dec 05 18:05:44 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143R9Z-0004Fs-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 18:05:41 -0500
Received: from ruby.twinsun.com ([192.54.239.31]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id PAA13224; Tue, 5 Dec 2000 15:05:38 -0800 (PST)
Received: (eggert@localhost) by ruby.twinsun.com (8.9.3+Sun/8.9.3) id PAA17418; Tue, 5 Dec 2000 15:05:37 -0800 (PST)
Date: Tue, 5 Dec 2000 15:05:37 -0800 (PST)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200012052305.PAA17418@ruby.twinsun.com>
To: matthew@okcomputer.org
CC: autoconf@gnu.org
In-reply-to: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org>
	(matthew@okcomputer.org)
Subject: Re: autoconfiscating getopt_long()...
References:  <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> From: Matthew Whitworth <matthew@okcomputer.org>
> Date: Tue, 5 Dec 2000 14:45:19 -0800 (PST)

> I have examined several packages that use getopt_long(), including
> several GNU packages, and none of them autoconfiscate this function
> the same way.  Actually, few of them even autoconfiscate it at all
> -- most simply compile and link it unconditionally

I suspect that's just tradition dating back to when getopt_long was
invariably absent from the C library.

> Does anyone have a tried-and-true autoconf/getopt_long() technique?  I'm
> currently playing around with AC_REPLACE_FUNCS(), but I don't seem to have
> the source code just right yet.

If you figure it out, please send it in so that the autoconf folks can
use it.  It'd be nice to have it done right.


From matthew@okcomputer.org Tue Dec 05 18:22:21 2000
Received: from adsl-64-162-56-154.dsl.snfc21.pacbell.net ([64.162.56.154] helo=warsaw.okcomputer.org)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143RPg-0004yP-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 18:22:21 -0500
Received: from matthew by warsaw.okcomputer.org with local (Exim 3.12 #1 (Debian))
	id 143RPP-000599-00; Tue, 05 Dec 2000 15:22:03 -0800
Date: Tue, 5 Dec 2000 15:22:03 -0800
From: Matthew Whitworth <matthew@okcomputer.org>
To: Paul Eggert <eggert@twinsun.com>
Cc: matthew@okcomputer.org, autoconf@gnu.org
Subject: Re: autoconfiscating getopt_long()...
Message-ID: <20001205152203.A16313@warsaw>
References: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org> <200012052305.PAA17418@ruby.twinsun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
In-Reply-To: <200012052305.PAA17418@ruby.twinsun.com>; from eggert@twinsun.com on Tue, Dec 05, 2000 at 15:05:37 -0800
X-Mailer: Balsa 1.0.0
Content-Length: 1847
Lines: 60
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

What I have done so far (and it seems to work), is to copy getopt.c and
getopt.h to getopt_long.c and getopt_long.h, and then to use the following
snippets:

configure.in:
AC_REPLACE_FUNCS(getopt_long)

Makefile.am:
useless_SOURCES=useless.c getopt_long.h tailor.h
dnl This condionally links getopt_long.o
useless_LDADD=@LIBOBJS@

useless.c:
#ifndef HAVE_GETOPT_LONG
#  include "getopt_long.h"
#else
#  include <getopt.h>
#endif

I have no idea what tailor.h does yet, but getopt.h #includes it.  And I
didn't do anything with getopt1.c 'cause I didn't know what the hell it
was.  I'll be looking at those two later.

I'm happy with this solution so far (I've only used it for 45 minutes!).  I
was really just wondering why no one else seemed to do it.  I'm still
paranoid that I'm missing something.

Thanks!

Matthew


On 2000.12.05 15:05:37 -0800 Paul Eggert wrote:
> > From: Matthew Whitworth <matthew@okcomputer.org>
> > Date: Tue, 5 Dec 2000 14:45:19 -0800 (PST)
> 
> > I have examined several packages that use getopt_long(), including
> > several GNU packages, and none of them autoconfiscate this function
> > the same way.  Actually, few of them even autoconfiscate it at all
> > -- most simply compile and link it unconditionally
> 
> I suspect that's just tradition dating back to when getopt_long was
> invariably absent from the C library.
> 
> > Does anyone have a tried-and-true autoconf/getopt_long() technique? 
> I'm
> > currently playing around with AC_REPLACE_FUNCS(), but I don't seem to
> have
> > the source code just right yet.
> 
> If you figure it out, please send it in so that the autoconf folks can
> use it.  It'd be nice to have it done right.
> 

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matthew whitworth
matthew@okcomputer.org

Between here and there is better than either here or there!


From tege@swox.com Tue Dec 05 18:54:04 2000
Received: from king.swox.se ([212.247.3.130])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143RuO-0005xf-00
	for <autoconf@gnu.org>; Tue, 05 Dec 2000 18:54:04 -0500
Received: by king.swox.se (Postfix, from userid 1001)
	id B0F0E3288; Wed,  6 Dec 2000 00:54:02 +0100 (CET)
To: autoconf@gnu.org
Cc: user42@zip.com.au
Subject: Shell crash on SunOS 4.1.3
From: Torbjorn Granlund <tege@swox.com>
Date: 06 Dec 2000 00:54:02 +0100
Message-ID: <86puj6zap1.fsf@king.swox.se>
Lines: 33
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Running configure from the current GMP working sources,
SunOS 4.1.3 /bin/sh catches a segfault.

I tracked down the problem to some lines in the newly generated
config.status:

  # If the user did not use the arguments to specify the items to instantia=
te,
  # then the envvar interface is used.  Set only those that are not.
  if $ac_need_defaults; then
    CONFIG_FILES=3D${CONFIG_FILES=3D"$config_files"}
    CONFIG_HEADERS=3D${CONFIG_HEADERS=3D"$config_headers"}
    CONFIG_LINKS=3D${CONFIG_LINKS=3D"$config_links"}
    CONFIG_COMMANDS=3D${CONFIG_COMMANDS=3D"$config_commands"}
  fi

The crash happens on the 2nd line after `then'.  Adding `set -x' to
config.status yield this output (last lines):

ac_need_defaults=3D:
+ test 0 !=3D 0=20
+ :=20
CONFIG_FILES=3DMakefile mpf/Makefile mpz/Makefile mpn/Makefile mpq/Makefile=
   mpf/tests/Makefile mpz/tests/Makefile mpq/tests/Makefile mpn/tests/Makef=
ile   tests/Makefile tests/rand/Makefile demos/Makefile tune/Makefile   mpb=
sd/Makefile mpbsd/tests/Makefile mpfr/Makefile mpfr/tests/Makefile
CONFIG_HEADERS=3D config.h:config.in

Has anybody encountered a similar problem before?  I weird workaround
is to instatiate ac_need_defaults to `true' instead of `:'.  Also,
just inserting a `true' or `:' after `then' helps.

(Yes, SunOS 4.1.3 is an obsolete version of an obsolete OS, but I'd
like to support GNU MP even on such systems if possible.)

--
Torbj=F6rn


From duret_g@lrde.epita.fr Wed Dec 06 04:58:10 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143bKz-00073f-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 04:58:10 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA13356 for <autoconf@gnu.org> 
	EPITA Paris France Wed, 6 Dec 2000 10:57:24 GMT
Received: from phobos.lrde.epita.fr ([10.223.13.38] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143bRE-00075a-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 11:04:36 +0100
Received: from adl by phobos.lrde.epita.fr with local (Exim 3.16 #1)
	id 143bRD-0008OH-00; Wed, 06 Dec 2000 11:04:35 +0100
To: autoconf@gnu.org
Subject: Re: autoconfiscating getopt_long()...
References: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org>
	<200012052305.PAA17418@ruby.twinsun.com>
	<20001205152203.A16313@warsaw>
From: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
X-Home-Page: http://www.epita.fr/~duret_g/
X-Attribution: adl
Organization: LRDE/EPITA  http://www.lrde.epita.fr/
Date: 06 Dec 2000 11:04:35 +0100
In-Reply-To: Matthew Whitworth's message of "Tue, 5 Dec 2000 15:22:03 -0800"
Message-ID: <mvbwvddrhl8.fsf@phobos.lrde.epita.fr>
Lines: 41
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>> "Matthew" == Matthew Whitworth <matthew@okcomputer.org> writes:

 Matthew> What I have done so far (and it seems to work), is to
 Matthew> copy getopt.c and getopt.h to getopt_long.c and
 Matthew> getopt_long.h, and then to use the following snippets:

 Matthew> configure.in:
 Matthew> AC_REPLACE_FUNCS(getopt_long)

Does someone here handle the FreeBSD case in some way?  What about:

AC_CHECK_FUNCS([getopt_long],,
[#FreeBSD has a gnugetopt library for this:
  AC_CHECK_LIB([gnugetopt],[getopt_long],
[AC_DEFINE([HAVE_GETOPT_LONG])],
[# use the gnu replacement
AC_LIBOBJ(getopt)
AC_LIBOBJ(getopt1)])])

 Matthew> Makefile.am:
 Matthew> useless_SOURCES=useless.c getopt_long.h tailor.h
 Matthew> dnl This condionally links getopt_long.o
 Matthew> useless_LDADD=@LIBOBJS@

 Matthew> useless.c:
 Matthew> #ifndef HAVE_GETOPT_LONG
 Matthew> #  include "getopt_long.h"
 Matthew> #else
 Matthew> #  include <getopt.h>
 Matthew> #endif

 Matthew> I have no idea what tailor.h does yet, but getopt.h
 Matthew> #includes it.

I don't see any use of getopt.h in the version of getopt I use.

[...]

PS: http://sources.redhat.com/ml/automake/2000-09/msg00036.html
-- 
Alexandre Duret-Lutz


From akim@epita.fr Wed Dec 06 05:01:10 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143bNu-00077D-00; Wed, 06 Dec 2000 05:01:10 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA13656
	Wed, 6 Dec 2000 11:00:25 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143bU9-00076P-00; Wed, 06 Dec 2000 11:07:37 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143bU7-0001W3-00; Wed, 06 Dec 2000 11:07:35 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: <autoconf@gnu.org>
Subject: Re: FYI: `Document' qnx (Was: Various systems)
References: <Pine.LNX.4.30.0012051649540.2286-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 11:07:35 +0100
In-Reply-To: Pavel Roskin's message of "Tue, 5 Dec 2000 17:24:02 -0500 (EST)"
Message-ID: <mv4lmttrhg8.fsf@nostromo.lrde.epita.fr>
Lines: 52
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> I'm worried about the political side of the problem. Once QNX
Pavel> is there other people will want to put other OS'es into the
Pavel> manual.

That's definitely my wish!


Pavel> The problem is that the documentation for programs, especially
Pavel> for commercial programs tends not to mention the existing
Pavel> problems, at least from the point of view of an Autoconf
Pavel> developer, i.e. I don't expect to see the description of the
Pavel> shell bugs on the HP-UX site.

Yes, I agree.  This is not exactly the point.  What I want, is some
form of small database on what you might be willing to know when your
start working on portability.  For instance, I'd like to list all the
OSes we know, and their release dates.


Pavel> Notably, the problem with the error status after foo=`bar` is
Pavel> not described in the sh documentation on the QNX site.

They might not even not know it.



Pavel> I mean, you cannot document everything. The world
Pavel> changes. Restrict yourself to the relevant facts. "Hundreds
Pavel> processors" are not relevant and sound like advertizing. And I
Pavel> sound like RMS :-)

Yeah, I agree my text is not too good.  The thing is I'm not a user,
and I heavily inspired myself from the QNX site itself.  I'd prefer
that some user, such as Daniele, do it, but an impetus is needed, and
I meant to make it.


>> I very much agree the real content is and will be there.  There
>> must be listed and classified the failures we know, and certainly
>> not in Shellology nor Systemology.

Pavel> Ok. If you insist on having the Systemology section I'll try to
Pavel> put more relevant content there. I'm updating my .plan

I insist on the fact that I understand your point.  I still want to do
something like this because I think some people might be interested in
such things.  For instance, do you know since when large file support
is in SunOS?  There are questions like this that I'd like to see
answered somewhere.  And then, naturally, I believe the Autoconf
documentation is a good place for this.


From daniele@ripe.net Wed Dec 06 05:16:48 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143bd1-0007s1-00; Wed, 06 Dec 2000 05:16:47 -0500
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id LAA02061;
	Wed, 6 Dec 2000 11:16:23 +0100 (CET)
Date: Wed, 6 Dec 2000 11:16:23 +0100 (CET)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: FYI: `Document' qnx (Was: Various systems)
In-Reply-To: <mv4lmttrhg8.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10012061108450.19254-100000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim,

If you allow me a word as a complete outsider, I personally think that
your wish to maintain documentation for every OS is extremely nice and
denotes a lot of courage, because maintaining such a thing can be hell. I
think this is Pavel's point: that this effort can fade in time, and we
would just have an obsolete documentation about old OSs.

And maybe the autoconf documentation isn't really the right place where
people would look for it; for my part, I would love for example to have a
website where there is a DB of the various OSs with their characteristics,
portability issues, etc. Does anyone know if there is such a thing? If
there is not, would there be a valorous volunteer that would set it up?:)

Just my 0.02Euro.

Cheers,

Daniele.


On 6 Dec 2000, Akim Demaille wrote:

> >>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:
> 
> Pavel> I'm worried about the political side of the problem. Once QNX
> Pavel> is there other people will want to put other OS'es into the
> Pavel> manual.
> 
> That's definitely my wish!
> 
> 
> Pavel> The problem is that the documentation for programs, especially
> Pavel> for commercial programs tends not to mention the existing
> Pavel> problems, at least from the point of view of an Autoconf
> Pavel> developer, i.e. I don't expect to see the description of the
> Pavel> shell bugs on the HP-UX site.
> 
> Yes, I agree.  This is not exactly the point.  What I want, is some
> form of small database on what you might be willing to know when your
> start working on portability.  For instance, I'd like to list all the
> OSes we know, and their release dates.
> 
> 
> Pavel> Notably, the problem with the error status after foo=`bar` is
> Pavel> not described in the sh documentation on the QNX site.
> 
> They might not even not know it.
> 
> 
> 
> Pavel> I mean, you cannot document everything. The world
> Pavel> changes. Restrict yourself to the relevant facts. "Hundreds
> Pavel> processors" are not relevant and sound like advertizing. And I
> Pavel> sound like RMS :-)
> 
> Yeah, I agree my text is not too good.  The thing is I'm not a user,
> and I heavily inspired myself from the QNX site itself.  I'd prefer
> that some user, such as Daniele, do it, but an impetus is needed, and
> I meant to make it.
> 
> 
> >> I very much agree the real content is and will be there.  There
> >> must be listed and classified the failures we know, and certainly
> >> not in Shellology nor Systemology.
> 
> Pavel> Ok. If you insist on having the Systemology section I'll try to
> Pavel> put more relevant content there. I'm updating my .plan
> 
> I insist on the fact that I understand your point.  I still want to do
> something like this because I think some people might be interested in
> such things.  For instance, do you know since when large file support
> is in SunOS?  There are questions like this that I'd like to see
> answered somewhere.  And then, naturally, I believe the Autoconf
> documentation is a good place for this.
> 
> 




From akim@epita.fr Wed Dec 06 06:10:36 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143cT5-0004Xr-00; Wed, 06 Dec 2000 06:10:35 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA21819
	Wed, 6 Dec 2000 12:09:50 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143cZK-0007db-00; Wed, 06 Dec 2000 12:17:02 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143cZH-00023L-00; Wed, 06 Dec 2000 12:16:59 +0100
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org
Subject: Re: FYI: `Document' qnx (Was: Various systems)
References: <Pine.BSI.4.05L.10012061108450.19254-100000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 12:16:59 +0100
In-Reply-To: Daniele Arena's message of "Wed, 6 Dec 2000 11:16:23 +0100 (CET)"
Message-ID: <mv4itoxpzo4.fsf@nostromo.lrde.epita.fr>
Lines: 21
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> If you allow me a word as a complete outsider, I personally
Daniele> think that your wish to maintain documentation for every OS
Daniele> is extremely nice and denotes a lot of courage, because
Daniele> maintaining such a thing can be hell. I think this is Pavel's
Daniele> point: that this effort can fade in time, and we would just
Daniele> have an obsolete documentation about old OSs.

In fact I don't agree too much about this argument.  Old data is
extremely pertinent for Autoconf, such information lasts by nature.

Daniele> And maybe the autoconf documentation isn't really the right
Daniele> place where people would look for it; for my part, I would
Daniele> love for example to have a website where there is a DB of the
Daniele> various OSs with their characteristics, portability issues,
Daniele> etc. Does anyone know if there is such a thing? If there is
Daniele> not, would there be a valorous volunteer that would set it
Daniele> up?:)

Sure: help us complete the Autoconf documentation and put it on the web :)


From akim@epita.fr Wed Dec 06 06:27:24 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143cjM-0005Lj-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 06:27:24 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA23630
	Wed, 6 Dec 2000 12:26:33 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143cpV-0007iv-00; Wed, 06 Dec 2000 12:33:45 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143cpS-0002Kc-00; Wed, 06 Dec 2000 12:33:42 +0100
To: Torbjorn Granlund <tege@swox.com>
Cc: autoconf@gnu.org, user42@zip.com.au
Subject: Re: Shell crash on SunOS 4.1.3
References: <86puj6zap1.fsf@king.swox.se>
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 12:33:42 +0100
In-Reply-To: Torbjorn Granlund's message of "06 Dec 2000 00:54:02 +0100"
Message-ID: <mv4aea9pyw9.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by hermes.epita.fr id MAA23630
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Torbjorn" =3D=3D Torbjorn Granlund <tege@swox.com> writes:

Torbjorn> Running configure from the current GMP working sources,
Torbjorn> SunOS 4.1.3 /bin/sh catches a segfault.

Thanks a lot.  I'm working on it, which means I first try to get this
*(*=A3&$ test suite work properly on SunOS.  I don't think there is a
test which exercises the bug, afaics.  Could I ask you to write a
dummy configure.in which triggers the bug on your system?

Thanks in advance!


From akim@epita.fr Wed Dec 06 06:28:47 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143ckg-0005d8-00; Wed, 06 Dec 2000 06:28:47 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA23736
	Wed, 6 Dec 2000 12:28:01 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143cqv-0007jp-00; Wed, 06 Dec 2000 12:35:13 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143cqt-0002Kr-00; Wed, 06 Dec 2000 12:35:11 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: Lars Hecking <lhecking@nmrc.ie>, autoconf@gnu.org
Subject: Re: OpenBSD 2.7
References: <Pine.LNX.4.21.0011071951360.20043-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 12:35:11 +0100
In-Reply-To: Pavel Roskin's message of "Tue, 7 Nov 2000 20:10:35 -0500 (EST)"
Message-ID: <mv466kxpyts.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| Now we have this in the top-level Makefile.am:
| 
| # Follow the version number changes.
| $(bin_SCRIPTS): configure.in
| 
| When BSD make scans for rules to make autoconf it picks the explicit rule
| first, but it's empty. I believe that there is no way to use the suffix
| rule in BSD make if an explicit rule is present.

I just observed the same failure from SunOS' stock make.


From proski@gnu.org Wed Dec 06 07:29:56 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143dhs-0007RP-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 07:29:56 -0500
Received: from xdial28.channel1.com (IDENT:proski@xdial28.channel1.com [205.240.180.28])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id HAA24580;
	Wed, 6 Dec 2000 07:27:55 -0500 (EST)
X-Envelope-To: 	
Date: Wed, 6 Dec 2000 07:26:09 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender: proski@woburn.localdomain
To: Akim Demaille <akim@epita.fr>
cc: Lars Hecking <lhecking@nmrc.ie>, autoconf@gnu.org
Subject: Re: OpenBSD 2.7
In-Reply-To: <mv466kxpyts.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.21.0012060722030.922-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> | Now we have this in the top-level Makefile.am:
> | 
> | # Follow the version number changes.
> | $(bin_SCRIPTS): configure.in
> | 
> | When BSD make scans for rules to make autoconf it picks the explicit rule
> | first, but it's empty. I believe that there is no way to use the suffix
> | rule in BSD make if an explicit rule is present.
> 
> I just observed the same failure from SunOS' stock make.

So let's remove the explicit rule. It's only helpful to maintainers, but
they are supposed to clean up the working directory from time to time.

Another solution would be AM_MAINTAINER_MODE in configure.in and @MAINT@
before the explicit rule, but I believe it's an overkill.

Regards,
Pavel Roskin



From bje@redhat.com Wed Dec 06 08:11:32 2000
Received: from moshpit.cygnus.com ([203.24.38.233] helo=mailhub.air.net.au)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143eM7-00007a-00; Wed, 06 Dec 2000 08:11:32 -0500
Received: by mailhub.air.net.au (Postfix, from userid 501)
	id 7E6102E12; Thu,  7 Dec 2000 00:11:26 +1100 (EST)
Received: from localhost (localhost [127.0.0.1])
	by mailhub.air.net.au (Postfix) with ESMTP
	id 63D042E11; Thu,  7 Dec 2000 00:11:26 +1100 (EST)
Date: Thu, 7 Dec 2000 00:11:26 +1100 (EST)
From: Ben Elliston <bje@redhat.com>
X-Sender:  <bje@moshpit.cygnus.com>
To: <config-patches@gnu.org>
Cc: <autoconf@gnu.org>, <libtool@gnu.org>, <awander@gwdg.de>
Subject: config.guess Linux overhaul
Message-ID: <Pine.LNX.4.30.0012062357470.12513-100000@moshpit.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

It's that time again.  The config.guess script is losing on GNU/Linux and
this time, I'm going to fix it.

Background: on many GNU/Linux systems, config.guess uses the output of `ld
--help' to determine which architecture, object file format and C library
version the build system uses.  The script loses because it assumes that the
primary configuration will appear first in the `supported emulations:'
printed by ld(1).

This is flawed because a) this is not a meaningful constraint and b) some
distributions, such as Caldera OpenLinux, provide a linker that has support
for linking in many, many environments (like coff-z8k, if that grabs you!).

Instead, I am seeking to replace this cruft with a cleaner and more portable
alternative.  After much deliberation, the best I have come up with is to
use file(1) from GNU fileutils, which is *very* likely to be present on
every GNU/Linux system.  The one drawback here is that it doesn't help me
determine the version of libc installed on the system--and there may even be
multiple versions.  Which is the "primary"?  The one that the current C
compiler will link against?

Comments, please.

Ben



From akim@epita.fr Wed Dec 06 09:10:30 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143fHB-0001yx-00; Wed, 06 Dec 2000 09:10:30 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA10801
	Wed, 6 Dec 2000 15:09:42 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143fNP-0008Oj-00; Wed, 06 Dec 2000 15:16:55 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143fNM-0000ZY-00; Wed, 06 Dec 2000 15:16:52 +0100
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org,
        APatche <autoconf-patches@gnu.org>
Subject: FYI: Egrep and test suite (Was: FYI: AS_EXIT)
References: <Pine.BSI.4.05L.10012011033300.1074-101000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 15:16:52 +0100
In-Reply-To: Daniele Arena's message of "Fri, 1 Dec 2000 10:41:17 +0100 (CET)"
Message-ID: <mv4itoxocrv.fsf@nostromo.lrde.epita.fr>
Lines: 231
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Daniele, I've just killed another suspicious part of the test suite
which might be responsible for a big part of the failures we observed.
Would it be possible that you run it again?

The ``bad'' news is that I couldn't find in your logs the error
messages `egrep' should have printed.  One hope though: how do you
build the logs you send us?  It is extremely important that you
include stderr, which basically means

        ./testsuite >testsuite.log 2>&1

FYI, here is the patch.


Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>
	The SunOS' egrep fails to process properly the `egrep' invocations
	of the test suite.

	* tests/aclocal.m4 (AC_STATE_SAVE): If egrep fails, remove the
	output file.
	* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't check `state-*'
	if the files are not present.

	* m4sugar.m4 (m4_join): Rename as...
	(m4_smash): this.
	* tests/aclocal.m4 (join): Move as...
	* m4sugar.m4 (m4_flatten): this.
	* autoconf.sh (trace.m4): Rename m4_smash as m4_flatten.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.644
diff -u -u -r1.644 acgeneral.m4
--- acgeneral.m4 2000/12/06 08:58:42 1.644
+++ acgeneral.m4 2000/12/06 14:01:52
@@ -511,7 +511,7 @@
 #    ive  ], [-Var-])end
 #    => -active--b--active-end
 m4_define([AC_FOREACH],
-[m4_foreach([$1], m4_split(m4_strip(m4_join([$2]))), [$3])])
+[m4_foreach([$1], m4_split(m4_strip(m4_flatten([$2]))), [$3])])
 
 
 
Index: autoconf.sh
===================================================================
RCS file: /cvs/autoconf/autoconf.sh,v
retrieving revision 1.109
diff -u -u -r1.109 autoconf.sh
--- autoconf.sh 2000/12/06 10:53:58 1.109
+++ autoconf.sh 2000/12/06 14:01:53
@@ -434,7 +434,7 @@
   # MODE can be:
   #  `at'       -- the elements are enclosed in brackets.
   #  `star'     -- the elements are listed as are.
-  #  `percent'  -- the elements are `smashed': spaces are singled out,
+  #  `percent'  -- the elements are `flattened': spaces are singled out,
   #                and no new line remains.
   define([_at_at],
          [at_ifelse([$#], [1], [],
@@ -442,15 +442,15 @@
                     [[[$2]][$1]$0([$1], at_shift(at_shift($@)))])])
   define([_at_percent],
          [at_ifelse([$#], [1], [],
-                    [$#], [2], [at_smash([$2])],
-                    [at_smash([$2])[$1]$0([$1], at_shift(at_shift($@)))])])
+                    [$#], [2], [at_flatten([$2])],
+                    [at_flatten([$2])[$1]$0([$1], at_shift(at_shift($@)))])])
   define([_at_star],
          [at_ifelse([$#], [1], [],
                     [$#], [2], [[$2]],
                     [[$2][$1]$0([$1], at_shift(at_shift($@)))])])
 
-  # Smash quotes its result.
-  define([at_smash],
+  # FLATTEN quotes its result.
+  define([at_flatten],
          [at_patsubst(at_patsubst(at_patsubst([[[$1]]],
                                               [\\
   ]),
@@ -535,7 +535,7 @@
     # $*, list of unquoted effective arguments.
     if (arg == "*")
       return "]at_star([" (separator ? separator : ",") "], $@)["
-    # $%, list of smashed unquoted effective arguments.
+    # $%, list of flattened unquoted effective arguments.
     if (arg == "%")
       return "]at_percent([" (separator ? separator : ":") "], $@)["
   }
Index: m4sugar.m4
===================================================================
RCS file: /cvs/autoconf/m4sugar.m4,v
retrieving revision 2.30
diff -u -u -r2.30 m4sugar.m4
--- m4sugar.m4 2000/12/06 08:58:42 2.30
+++ m4sugar.m4 2000/12/06 14:01:57
@@ -1333,17 +1333,17 @@
 
 
 
-# m4_join(STRING)
+# m4_flatten(STRING)
 # ---------------
 # If STRING contains end of lines, replace them with spaces.  If there
 # are backslashed end of lines, remove them.  This macro is safe with
 # active symbols.
 #    m4_define(active, ACTIVE)
-#    m4_join([active
+#    m4_flatten([active
 #    act\
 #    ive])end
 #    => active activeend
-m4_define([m4_join],
+m4_define([m4_flatten],
 [m4_translit(m4_patsubst([[[$1]]], [\\
 ]), [
 ], [ ])])
@@ -1378,6 +1378,17 @@
 
 
 
+# m4_join(SEP, ARG1, ARG2...)
+# ---------------------------
+# Produce ARG1SEPARG2...SEPARGn.
+m4_defun([m4_join],
+[m4_case([$#],
+         [1], [],
+         [2], [[$2]],
+         [[$2][$1]m4_join([$1], m4_shift(m4_shift($@)))])])
+
+
+
 # m4_append(MACRO-NAME, STRING)
 # -----------------------------
 # Redefine MACRO-NAME to hold its former content plus STRING at the
@@ -1484,7 +1495,7 @@
 m4_if(m4_eval(m4_Cursor > m4_len(m4_Prefix)),
       1, [m4_define([m4_Cursor], m4_len(m4_Prefix))
 m4_Prefix])[]dnl
-m4_foreach_quoted([m4_Word], (m4_split(m4_strip(m4_join([$1])))),
+m4_foreach_quoted([m4_Word], (m4_split(m4_strip(m4_flatten([$1])))),
 [m4_define([m4_Cursor], m4_eval(m4_Cursor + len(m4_Word) + 1))dnl
 dnl New line if too long, else insert a space unless it is the first
 dnl of the words.
Index: tests/aclocal.m4
===================================================================
RCS file: /cvs/autoconf/tests/aclocal.m4,v
retrieving revision 1.8
diff -u -u -r1.8 aclocal.m4
--- tests/aclocal.m4 2000/12/06 08:58:42 1.8
+++ tests/aclocal.m4 2000/12/06 14:01:57
@@ -1,16 +1,6 @@
 # actest.m4                                              -*- autoconf -*-
 # Additional Autoconf macros to ease testing.
 
-# join(SEP, ARG1, ARG2...)
-# ------------------------
-# Produce ARG1SEPARG2...SEPARGn.
-define([join],
-[m4_case([$#],
-         [1], [],
-         [2], [[$2]],
-         [[$2][$1]join([$1], m4_shift(m4_shift($@)))])])
-
-
 # AC_STATE_SAVE(FILE)
 # ------------------
 # Save the environment, but the variables we are allowed to touch.
@@ -28,10 +18,9 @@
 #   Some variables some shells use and change
 # - POW_LIB
 #   From acfunctions.m4.
-AC_DEFUN([AC_STATE_SAVE],
+m4_defun([AC_STATE_SAVE],
 [(set) 2>&1 |
-  egrep -v -e \
-'join([|],
+  egrep -v -e 'm4_join([|],
       [^ac_],
       [^(CC|CFLAGS|CPP|GCC|CXX|CXXFLAGS|CXXCPP|GXX|F77|FFLAGS|FLIBS|G77)=],
       [^(LIBS|LIBOBJS|LDFLAGS)=],
@@ -46,11 +35,14 @@
       [^(AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC)=],
       [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' |
   # There maybe variables spread on several lines, eg IFS, remove the dead
-  # lines
+  # lines.
   fgrep = >state-env.$1
-  rm -f state-ls.$1
-  ls -1 | grep -v '^state' | sort > state-ls.$1
-])
+# Some `egrep' choke on such a big regex (e.g., SunOS 4.1.3).  In this
+# case just don't pay attention to the env.
+test $? = 0 || rm -f state-env.$1
+
+ls -1 | grep -v '^state' | sort >state-ls.$1
+])# AC_STATE_SAVE
 
 
 
@@ -58,7 +50,7 @@
 # ----------------
 # Related VALUE to NAME both with AC_SUBST and AC_DEFINE.  This is
 # used in the torture tests.
-AC_DEFUN([AC_DEFUBST],
+m4_defun([AC_DEFUBST],
 [AC_DUMMY_VAR($1)="AC_DEFUBST_VALUE"
 AC_DEFINE_UNQUOTED(AC_DUMMY_VAR($1),
                    "$AC_DUMMY_VAR($1)",
Index: tests/atspecific.m4
===================================================================
RCS file: /cvs/autoconf/tests/atspecific.m4,v
retrieving revision 1.31
diff -u -u -r1.31 atspecific.m4
--- tests/atspecific.m4 2000/12/06 08:58:42 1.31
+++ tests/atspecific.m4 2000/12/06 14:01:57
@@ -72,9 +72,11 @@
 
 dnl Some tests might exit prematurely when they find a problem, in
 dnl which case `env-after' is probably missing.  Don't check it then.
-if test -f state-env.after; then
+if test -f state-env.before -a -f state-env.after; then
   mv -f state-env.before expout
   AT_CHECK([cat state-env.after], 0, expout)
+fi
+if test -f state-ls.before -a -f state-ls.after; then
   mv -f state-ls.before expout
   AT_CHECK([cat state-ls.after], 0, expout)
 fi


From daniele@ripe.net Wed Dec 06 09:28:53 2000
Received: from birch.ripe.net ([193.0.1.96])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143fYy-0002jU-00; Wed, 06 Dec 2000 09:28:53 -0500
Received: from x51.ripe.net (x51.ripe.net [193.0.1.51])
	by birch.ripe.net (8.8.8/8.8.8) with ESMTP id PAA15069;
	Wed, 6 Dec 2000 15:28:19 +0100 (CET)
Date: Wed, 6 Dec 2000 15:28:19 +0100 (CET)
From: Daniele Arena <daniele@ripe.net>
To: Akim Demaille <akim@epita.fr>
cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org,
        APatche <autoconf-patches@gnu.org>
Subject: Re: FYI: Egrep and test suite (Was: FYI: AS_EXIT)
In-Reply-To: <mv4itoxocrv.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.BSI.4.05L.10012061525480.19254-100000@x51.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi Akim,

On 6 Dec 2000, Akim Demaille wrote:

> Daniele, I've just killed another suspicious part of the test suite
> which might be responsible for a big part of the failures we observed.
> Would it be possible that you run it again?

Sorry, I really can't run it right now, my schedule is *too* tight. As
soon as I have some spare minutes, I'll do it. Maybe not before next week,
though. Sorry.:(

> The ``bad'' news is that I couldn't find in your logs the error
> messages `egrep' should have printed.  One hope though: how do you
> build the logs you send us?  It is extremely important that you
> include stderr, which basically means
> 
>         ./testsuite >testsuite.log 2>&1

Hm. No, I just ran the testsuite like that, everything should be in.
Strange...

Cheers,

D.




From akim@epita.fr Wed Dec 06 10:14:38 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143gHF-0003yS-00; Wed, 06 Dec 2000 10:14:38 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA18169
	Wed, 6 Dec 2000 16:13:49 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143gNT-0000Ta-00; Wed, 06 Dec 2000 16:21:03 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143gNQ-00011f-00; Wed, 06 Dec 2000 16:21:00 +0100
To: Daniele Arena <daniele@ripe.net>
Cc: Pavel Roskin <proski@gnu.org>, autoconf@gnu.org,
        APatche <autoconf-patches@gnu.org>
Subject: Re: FYI: Egrep and test suite (Was: FYI: AS_EXIT)
References: <Pine.BSI.4.05L.10012061525480.19254-100000@x51.ripe.net>
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 16:20:59 +0100
In-Reply-To: Daniele Arena's message of "Wed, 6 Dec 2000 15:28:19 +0100 (CET)"
Message-ID: <mv4itoxmv8k.fsf@nostromo.lrde.epita.fr>
Lines: 62
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Daniele" == Daniele Arena <daniele@ripe.net> writes:

Daniele> Sorry, I really can't run it right now, my schedule is *too*
Daniele> tight. As soon as I have some spare minutes, I'll do
Daniele> it. Maybe not before next week, though. Sorry.:(

OK, no problems.  Thanks for your efforts anyway!


Daniele> Hm. No, I just ran the testsuite like that, everything should
Daniele> be in.  Strange...

So maybe it's something else, I don't know.

Well, the previous patch was not enough actually, I'm applying this:

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>
	* tests/aclocal.m4 (AT_STATE_SAVE): Don't even try to preserve
	egrep error messages, AT_CHECK will find them.

Index: tests/aclocal.m4
===================================================================
RCS file: /cvs/autoconf/tests/aclocal.m4,v
retrieving revision 1.9
diff -u -u -r1.9 aclocal.m4
--- tests/aclocal.m4 2000/12/06 14:05:47 1.9
+++ tests/aclocal.m4 2000/12/06 15:13:10
@@ -15,9 +15,17 @@
 # - AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC
 #   AC_PROGs from acspecific
 # - _|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS
-#   Some variables some shells use and change
+#   Some variables some shells use and change.
+#   `.[*#?].' catches `$#' etc. which are displayed like this:
+#      | '!'=18186
+#      | '#'=0
+#      | '$'=6908
 # - POW_LIB
 #   From acfunctions.m4.
+#
+# Some `egrep' choke on such a big regex (e.g., SunOS 4.1.3).  In this
+# case just don't pay attention to the env.  It would be great
+# to keep the error message but we can't: that would break AT_CHECK.
 m4_defun([AC_STATE_SAVE],
 [(set) 2>&1 |
   egrep -v -e 'm4_join([|],
@@ -33,12 +41,10 @@
       [^(f77_(case|underscore))=],
       [^(ALLOCA|GETLOADAVG_LIBS|KMEM_GROUP|NEED_SETGID|POW_LIB)=],
       [^(AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC)=],
-      [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' |
+      [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' 2>/dev/null |
   # There maybe variables spread on several lines, eg IFS, remove the dead
   # lines.
   fgrep = >state-env.$1
-# Some `egrep' choke on such a big regex (e.g., SunOS 4.1.3).  In this
-# case just don't pay attention to the env.
 test $? = 0 || rm -f state-env.$1
 
 ls -1 | grep -v '^state' | sort >state-ls.$1



From akim@epita.fr Wed Dec 06 10:27:28 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143gTg-0004Bg-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 10:27:28 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA19692 for <autoconf@gnu.org> 
	EPITA Paris France Wed, 6 Dec 2000 16:26:43 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143gZx-0000bw-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 16:33:57 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143gZv-00014g-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 16:33:55 +0100
To: Autoconf List <autoconf@gnu.org>
Subject: Snapshot
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 16:33:55 +0100
Message-ID: <mv47l5dmun0.fsf@nostromo.lrde.epita.fr>
Lines: 18
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by hermes.epita.fr id QAA19692
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I intend to make the 2.49b snapshot this (French) afternoon.  I still
have to apply a couple of patches, one for config.*, and another for
AT_CHECK (the one which is waiting to be debated.  I'm applying it
anyway because it makes the test suite more robust.  If someone
doesn't agree with this patch, we have the space between 2.49b and
2.50 to adjust AT_CHECK).


This basically means that if there is a known problem which you _want_
(not would like) to see fixed _now_, please answer in this thread.


There are pending issues which will be fixed between 2.49b and 2.50,
such as the )*(&msdos=A3*%&^*aix^*$sunos=A3%^ EXEEXT and OBJEXT issues,
but I won't address them in 2.49b.

        Akim


From bkorb@sco.com Wed Dec 06 10:40:47 2000
Received: from sco.sco.com ([132.147.128.9])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143ggY-00050w-00; Wed, 06 Dec 2000 10:40:46 -0500
Received: from tahoe.sco.COM(132.147.152.5), claiming to be "tahoe.pdev.sco.com"
 via SMTP by sco.sco.COM, id smtpdAAAa000r2; Wed Dec  6 07:19:36 2000
Received: from ellen.pdev.sco.com by tahoe.sco.com id aa26435;
          6 Dec 2000 7:19 PST
Message-ID: <3A2E596D.63F2CBBE@sco.com>
Date: Wed, 06 Dec 2000 07:21:17 -0800
From: Bruce Korb <bkorb@sco.COM>
Organization: The Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; U; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Ben Elliston <bje@redhat.com>
CC: config-patches@gnu.org, autoconf@gnu.org, libtool@gnu.org, 
    awander@gwdg.de
Subject: Re: config.guess Linux overhaul
References: <Pine.LNX.4.30.0012062357470.12513-100000@moshpit.cygnus.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Ben Elliston wrote:
> 
> It's that time again.  The config.guess script is losing on
> GNU/Linux and this time, I'm going to fix it.

Great.  Thanks.  Just don't break the fallback position
cruft.  :-)


From akim@epita.fr Wed Dec 06 12:54:07 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143ila-0001FH-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 12:54:06 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA06711 for <autoconf@gnu.org> 
	EPITA Paris France Wed, 6 Dec 2000 18:53:21 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143irs-0001aY-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 19:00:36 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143irr-00024a-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 19:00:35 +0100
To: Autoconf List <autoconf@gnu.org>
Subject: Autoconf 2.49b
From: Akim Demaille <akim@epita.fr>
Date: 06 Dec 2000 19:00:34 +0100
Message-ID: <mv4hf4hig59.fsf@nostromo.lrde.epita.fr>
Lines: 32
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

[I will post this announcement on gnu.utils.bug tomorrow, unless
someone beats me.  I'm waiting for the snapshot to be available to do
that.]

A snapshot of CVS Autoconf is available at

        ftp://alpha.gnu.org/gnu/autoconf/autoconf-2.49b.tar.gz

There are a few pending issues that will have to be addressed before
the release, so you are encouraged not to make any release of packages
depending upon this version of Autoconf.

Nevertheless, please start using it for your development sources.  The
release will be made ``quite real soon now'' (before February?), and
your testing is very important for us *now*.

Of course, another way to help us consists in running the test suite,
in particular if your architecture is known to be tough.  Reports
should be sent to bug-autoconf@gnu.org.

The documentation has changed too, and aims at providing all the
information portabilists may want to know.  But it's not finished and
your help would be particularly appreciated: if you know some issues
which are not in the documentation, please send the patches to
autoconf-patches@gnu.org.  Please don't send `rough' information, the
queue is already heavily loaded and we don't really have enough time
to convert rough information into decent Texinfo snippets.

For the Autoconf Team (Alexandre, Jim, Paul, Pavel, Tom)

        Akim


From matthew@okcomputer.org Wed Dec 06 12:58:16 2000
Received: from adsl-64-162-56-154.dsl.snfc21.pacbell.net ([64.162.56.154] helo=warsaw.okcomputer.org)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143ipc-0001Js-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 12:58:16 -0500
Received: from matthew by warsaw.okcomputer.org with local (Exim 3.12 #1 (Debian))
	id 143iox-0006NI-00; Wed, 06 Dec 2000 09:57:35 -0800
Date: Wed, 6 Dec 2000 09:57:34 -0800
From: Matthew Whitworth <matthew@okcomputer.org>
To: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
Cc: autoconf@gnu.org
Subject: Re: autoconfiscating getopt_long()...
Message-ID: <20001206095734.A24462@warsaw>
References: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org> <200012052305.PAA17418@ruby.twinsun.com> <20001205152203.A16313@warsaw> <mvbwvddrhl8.fsf@phobos.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
In-Reply-To: <mvbwvddrhl8.fsf@phobos.lrde.epita.fr>; from duret_g@lrde.epita.fr on Wed, Dec 06, 2000 at 02:04:35 -0800
X-Mailer: Balsa 1.0.0
Content-Length: 1403
Lines: 45
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 2000.12.06 02:04:35 -0800 Alexandre Duret-Lutz wrote:
> Does someone here handle the FreeBSD case in some way?  What about:
> 
> AC_CHECK_FUNCS([getopt_long],,
> [#FreeBSD has a gnugetopt library for this:
>   AC_CHECK_LIB([gnugetopt],[getopt_long],
> [AC_DEFINE([HAVE_GETOPT_LONG])],
> [# use the gnu replacement
> AC_LIBOBJ(getopt)
> AC_LIBOBJ(getopt1)])])

This is great!  That's exactly what I was looking for.

> I don't see any use of getopt.h in the version of getopt I use.

I snagged my versions of getopt.c and getopt1.c out of the libiberty source
tree in the binutils package:

matthew@warsaw:~/libiberty$ grep "getopt.h" getopt*.c
getopt.c:#include "getopt.h"
getopt1.c:#include "getopt.h"

Plus, the source file calling getopt_long() needs prototypes and all those
structure definitions.

I didn't see any RCS or CVS version numbers in either file, but the
copyright dates go to '97.  If there's a standard version for including in
other projects, please let me know!

> PS: http://sources.redhat.com/ml/automake/2000-09/msg00036.html

Thanks for including this link -- I had searched the autoconf archive
pretty hard before I posted, but hadn't thought about searching the
automake archive as well.

Cheers!

Matthew

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matthew whitworth
matthew@okcomputer.org

Between here and there is better than either here or there!


From duret_g@lrde.epita.fr Wed Dec 06 13:20:25 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143jB3-0002bp-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 13:20:25 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA08969
	Wed, 6 Dec 2000 19:19:31 GMT
Received: from phobos.lrde.epita.fr ([10.223.13.38] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143jHD-0001kL-00; Wed, 06 Dec 2000 19:26:47 +0100
Received: from adl by phobos.lrde.epita.fr with local (Exim 3.16 #1)
	id 143jHB-0000Yg-00; Wed, 06 Dec 2000 19:26:45 +0100
To: Matthew Whitworth <matthew@okcomputer.org>
Cc: autoconf@gnu.org
Subject: Re: autoconfiscating getopt_long()...
References: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org>
	<200012052305.PAA17418@ruby.twinsun.com>
	<20001205152203.A16313@warsaw> <mvbwvddrhl8.fsf@phobos.lrde.epita.fr>
	<20001206095734.A24462@warsaw>
From: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>
X-Home-Page: http://www.epita.fr/~duret_g/
X-Attribution: adl
Organization: LRDE/EPITA  http://www.lrde.epita.fr/
Date: 06 Dec 2000 19:26:45 +0100
In-Reply-To: Matthew Whitworth's message of "Wed, 6 Dec 2000 09:57:34 -0800"
Message-ID: <mvbd7f5o17e.fsf@phobos.lrde.epita.fr>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>> "Matthew" == Matthew Whitworth <matthew@okcomputer.org> writes:

[...]

 >> I don't see any use of getopt.h in the version of getopt I use.

Sorry, I meant "I don't see any use of `tailor.h' in getopt".  

[...]

 Matthew> I didn't see any RCS or CVS version numbers in either
 Matthew> file, but the copyright dates go to '97.  If there's a
 Matthew> standard version for including in other projects,
 Matthew> please let me know!

getopt comes from GNU libc:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/posix/?cvsroot=glibc

[...]

-- 
Alexandre Duret-Lutz


From oliva@lsd.ic.unicamp.br Wed Dec 06 13:47:22 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143jb6-0003Gg-00; Wed, 06 Dec 2000 13:47:21 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eB6Ik7O23633;
	Wed, 6 Dec 2000 16:46:07 -0200
To: Ben Elliston <bje@redhat.com>
Cc: <config-patches@gnu.org>, <autoconf@gnu.org>, <libtool@gnu.org>,
   <awander@gwdg.de>
Subject: Re: config.guess Linux overhaul
References: <Pine.LNX.4.30.0012062357470.12513-100000@moshpit.cygnus.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 06 Dec 2000 16:46:06 -0200
In-Reply-To: Ben Elliston's message of "Thu, 7 Dec 2000 00:11:26 +1100 (EST)"
Message-ID: <orofyptmkx.fsf@guarana.lsd.ic.unicamp.br>
Lines: 26
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec  6, 2000, Ben Elliston <bje@redhat.com> wrote:

> Background: on many GNU/Linux systems, config.guess uses the output of `ld
> --help' to determine which architecture, object file format and C library
> version the build system uses.

> Instead, I am seeking to replace this cruft with a cleaner and more portable
> alternative.  After much deliberation, the best I have come up with is to
> use file(1) from GNU fileutils, which is *very* likely to be present on
> every GNU/Linux system.

Not really.  Libtool has gone down that path, and I regret that
immensely.  Every week or so, we get a bogus bug report about `file'
not being present or not printing what we expected it to print,
because of translations, modified magic files, etc.  Please don't
propagate the same mistake to config.guess.

Can't you just rely upon `uname -m' on GNU/Linux, at least for the
architecture.  WRT object file format and C library version, is there
any reason why testing for __ELF__ and __GLIBC__ isn't enough?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From matthew@okcomputer.org Wed Dec 06 14:19:13 2000
Received: from adsl-64-162-56-154.dsl.snfc21.pacbell.net ([64.162.56.154] helo=warsaw.okcomputer.org)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143k5x-0004aM-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 14:19:13 -0500
Received: from matthew by warsaw.okcomputer.org with local (Exim 3.12 #1 (Debian))
	id 143k5v-0007HR-00
	for <autoconf@gnu.org>; Wed, 06 Dec 2000 11:19:11 -0800
Date: Wed, 6 Dec 2000 11:19:11 -0800
From: Matthew Whitworth <matthew@okcomputer.org>
To: autoconf@gnu.org
Subject: Re: autoconfiscating getopt_long()...
Message-ID: <20001206111911.A27982@warsaw>
References: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org> <200012052305.PAA17418@ruby.twinsun.com> <20001205152203.A16313@warsaw> <mvbwvddrhl8.fsf@phobos.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
In-Reply-To: <mvbwvddrhl8.fsf@phobos.lrde.epita.fr>; from duret_g@lrde.epita.fr on Wed, Dec 06, 2000 at 02:04:35 -0800
X-Mailer: Balsa 1.0.0
Content-Length: 948
Lines: 33
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 2000.12.06 02:04:35 -0800 Alexandre Duret-Lutz wrote:
> PS: http://sources.redhat.com/ml/automake/2000-09/msg00036.html

Okay, here's the quote to end all quotes from the follow-up to the 
automake URL you sent me.

-----

From http://sources.redhat.com/ml/automake/2000-09/msg00039.html:

I have never actually come across the AC_REPLACE_GNU_GETOPT macro...
the files getopt.c, getopt.h and getopt1.c have their own magic to
#define away the body of their own code if the compilation environment
provides an implementation of its own.

In short, the solution is to add the three files mentioned above to
your project and compile them in unconditionally.  They will take care
of themselves.

-----

I *was* missing something all along!

Thanks everyone for your help!

Matthew

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
matthew whitworth
matthew@okcomputer.org

Between here and there is better than either here or there!


From akim@epita.fr Thu Dec 07 03:59:36 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143wts-0005sn-00; Thu, 07 Dec 2000 03:59:36 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA21356
	Thu, 7 Dec 2000 09:58:32 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143wzx-0003e7-00; Thu, 07 Dec 2000 10:05:53 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143wzu-0002o5-00; Thu, 07 Dec 2000 10:05:50 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: Lars Hecking <lhecking@nmrc.ie>, autoconf@gnu.org
Subject: Re: OpenBSD 2.7
References: <Pine.LNX.4.21.0012060722030.922-100000@woburn.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 10:05:49 +0100
In-Reply-To: Pavel Roskin's message of "Wed, 6 Dec 2000 07:26:09 -0500 (EST)"
Message-ID: <mv43dg0iosy.fsf@nostromo.lrde.epita.fr>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> So let's remove the explicit rule. It's only helpful to
Pavel> maintainers, but they are supposed to clean up the working
Pavel> directory from time to time.

Grmph.  I wish Automake could expand this by itself.

Pavel, I believe you understood quite well the make bug which is
triggered by our Makefile.  Could you specify it in the documentation?

Pavel> Another solution would be AM_MAINTAINER_MODE in configure.in
Pavel> and @MAINT@ before the explicit rule, but I believe it's an
Pavel> overkill.

Over my dead body :)  I'm strongly opposed to the maintainer mode.


From akim@epita.fr Thu Dec 07 04:00:13 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143wuT-0005v6-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 04:00:13 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA21502 for <autoconf@gnu.org> 
	EPITA Paris France Thu, 7 Dec 2000 09:59:29 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143x0s-0003eZ-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 10:06:50 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143x0q-00030m-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 10:06:49 +0100
To: Autoconf List <autoconf@gnu.org>
Subject: Re: Autoconf 2.49b
References: <mv4hf4hig59.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 10:06:48 +0100
In-Reply-To: Akim Demaille's message of "06 Dec 2000 19:00:34 +0100"
Message-ID: <mv4y9xsha6v.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Akim" == Akim Demaille <akim@epita.fr> writes:

Akim> [I will post this announcement on gnu.utils.bug tomorrow, unless
Akim> someone beats me.  I'm waiting for the snapshot to be available
Akim> to do that.]

Akim> A snapshot of CVS Autoconf is available at

Akim>         ftp://alpha.gnu.org/gnu/autoconf/autoconf-2.49b.tar.gz

Sorry for the delays.  Now it's really there.


From akim@epita.fr Thu Dec 07 04:19:30 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143xD8-0006Q1-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 04:19:30 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA22981
	Thu, 7 Dec 2000 10:18:17 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143xJ4-0003jR-00; Thu, 07 Dec 2000 10:25:38 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143xFp-00036p-00; Thu, 07 Dec 2000 10:22:17 +0100
To: Paul Eggert <eggert@twinsun.com>
Cc: matthew@okcomputer.org, autoconf@gnu.org
Subject: Re: autoconfiscating getopt_long()...
References: <Pine.LNX.4.21.0012051401570.13484-100000@warsaw.okcomputer.org>
	<200012052305.PAA17418@ruby.twinsun.com>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 10:22:16 +0100
In-Reply-To: Paul Eggert's message of "Tue, 5 Dec 2000 15:05:37 -0800 (PST)"
Message-ID: <mv4puj4h9h3.fsf@nostromo.lrde.epita.fr>
Lines: 38
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Paul" == Paul Eggert <eggert@twinsun.com> writes:

>> From: Matthew Whitworth <matthew@okcomputer.org> Date: Tue, 5 Dec
>> 2000 14:45:19 -0800 (PST)

>> I have examined several packages that use getopt_long(), including
>> several GNU packages, and none of them autoconfiscate this function
>> the same way.  Actually, few of them even autoconfiscate it at all
>> -- most simply compile and link it unconditionally

Paul> I suspect that's just tradition dating back to when getopt_long
Paul> was invariably absent from the C library.

Well, maybe, but today that's the recommended way to do it since the
files themselves take care of being `empty' when getopt is already
installed.

/* Comment out all this code if we are using the GNU C Library, and are not
   actually compiling the library itself.  This code is part of the GNU C
   Library, but also included in many other GNU distributions.  Compiling
   and linking in this code is a waste when using the GNU C library
   (especially if it is a shared library).  Rather than having every GNU
   program understand `configure --with-gnu-libc' and omit the object files,
   it is simpler to just do this in the source for each such file.  */

#define GETOPT_INTERFACE_VERSION 2
#if !defined _LIBC && defined __GLIBC__ && __GLIBC__ >= 2
# include <gnu-versions.h>
# if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION
#  define ELIDE_CODE
# endif
#endif

#ifndef ELIDE_CODE

/* THE IMPLEMENTATION OF GETOPT. */

#endif  /* Not ELIDE_CODE.  */


From akim@epita.fr Thu Dec 07 05:19:15 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143y8x-0008Tv-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 05:19:15 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA00670 for <autoconf@gnu.org> 
	EPITA Paris France Thu, 7 Dec 2000 11:18:31 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143yFM-00048e-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 11:25:52 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143yFL-000390-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 11:25:51 +0100
To: Autoconf List <autoconf@gnu.org>
Subject: AC_INIT/3
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 11:25:51 +0100
Message-ID: <mv4r93kfryo.fsf@nostromo.lrde.epita.fr>
Lines: 42
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi,

Before 2.50, we need to decide the interface we give to the arguments
given to AC_INIT.  For instance, it seems reasonable to me to have

AC_INIT([Autoconf], [2.50], [bug-autoconf@gnu.org])
AM_INIT_AUTOMAKE

and that's all.  Which means we must pass `Autoconf' and `2.50' to
Automake.  And in fact, we even need to be able to compute the lower
case form of `Autoconf' to pass `autoconf' to AM_INIT_AUTOMAKE.

As already quite known, I'm in favor of literals, which means no

AC_INIT($package, $version, $bug)

so it is perfectly valid to compute on the argument given to AC_INIT.

Now the question: should we keep only M4 values:

m4_define([_AC_INIT_PACKAGE],
[m4_define([AC_PACKAGE_NAME],     [$1])
m4_define([AC_PACKAGE_VERSION],   [$2])
m4_define([AC_PACKAGE_STRING],    [$1 $2])
m4_define([AC_PACKAGE_BUGREPORT], [$3])
])

or we should also provide the variables which are set by Automake:

m4_define([_AC_INIT_PACKAGE],
[m4_define([AC_PACKAGE_NAME],     [$1])
PACKAGE='m4_lower([$1])'
m4_define([AC_PACKAGE_VERSION],   [$2])
VERSION='$2'
m4_define([AC_PACKAGE_STRING],    [$1 $2])
m4_define([AC_PACKAGE_BUGREPORT], [$3])
])

Thanks!

        Akim


From akim@epita.fr Thu Dec 07 05:38:39 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 143yRj-0000Lr-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 05:38:39 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA02933
	Thu, 7 Dec 2000 11:37:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 143yY6-0004Fn-00; Thu, 07 Dec 2000 11:45:14 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 143yY4-00039m-00; Thu, 07 Dec 2000 11:45:12 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 11:45:12 +0100
In-Reply-To: Mo DeJong's message of "Thu, 30 Nov 2000 12:55:00 -0800 (PST)"
Message-ID: <mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
Lines: 23
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:

Mo> I have to admit that I am a bit confused about what is going on
Mo> with the _AC_CYGWIN and _AC_MINGW32 macros. I was under the
Mo> impression that they were required for _AC_EXEEXT or _AC_OBJEXT,
Mo> but it seems like the addition of these new patches will mean the
Mo> obj and exe extension will not need to depend on _AC_CYGWIN or
Mo> _AC_MINGW32. I am wondering if the code that checks for $CYGWIN in
Mo> this macro can just be removed? 

These lines are my main grief against these macros: they are causing
many problems.  But in addition they are the sources of the bizarre
status of OBJEXT and EXEEXT: these lines clearly defines them as
*host* characteristics, while the next lines are *build*
characteristics.

OBJEXT and EXEEXT are my 2.50 nightmare.  I hope we will be able to
have something clear and functional.  I first need to summarize what
people said, then define precisely what they are (build, or host?),
and finally implement what's been chosen.

Let's not hurry.  First, summarize, there are *zillions* of messages
about this.


From mortene@sim.no Thu Dec 07 05:49:43 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143ycR-00014x-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 05:49:43 -0500
Received: (qmail 3638 invoked by uid 1114); 7 Dec 2000 10:49:41 -0000
To: autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com> <mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
From: Morten Eriksen <mortene@sim.no>
Organization: Systems in Motion
Date: 07 Dec 2000 11:49:41 +0100
In-Reply-To: Akim Demaille's message of "07 Dec 2000 11:45:12 +0100"
Message-ID: <51wvdcbj5m.fsf@nfs.trh.sim.no>
Lines: 12
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.4
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille <akim@epita.fr> writes:

> OBJEXT and EXEEXT [...] define precisely what they are (build, or
> host?), [...]

Just wanted to add my 0.02 Kroner: after pondering this issue for a
while, I tend to believe we should first and foremost view them as
characteristics of the _compiler_ -- screw looking at the host and
build system. :-)

Regards,
Morten


From akim@epita.fr Thu Dec 07 07:45:15 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1440QE-00017z-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 07:45:14 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA15722
	Thu, 7 Dec 2000 13:44:29 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1440We-0004mG-00; Thu, 07 Dec 2000 13:51:52 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1440Wb-0003TQ-00; Thu, 07 Dec 2000 13:51:49 +0100
To: Morten Eriksen <mortene@sim.no>
Cc: autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
	<mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
	<51wvdcbj5m.fsf@nfs.trh.sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 13:51:49 +0100
In-Reply-To: Morten Eriksen's message of "07 Dec 2000 11:49:41 +0100"
Message-ID: <mv47l5cfl7e.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:

Morten> Akim Demaille <akim@epita.fr> writes:
>> OBJEXT and EXEEXT [...] define precisely what they are (build, or
>> host?), [...]

Morten> Just wanted to add my 0.02 Kroner: after pondering this issue
Morten> for a while, I tend to believe we should first and foremost
Morten> view them as characteristics of the _compiler_ -- screw
Morten> looking at the host and build system. :-)

That's what I call a build characteristic.


From meyering@ascend.com Thu Dec 07 08:49:43 2000
Received: from drawbridge.ascend.com ([198.4.92.1])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1441Qd-0002yN-00; Thu, 07 Dec 2000 08:49:43 -0500
Received: from fw-ext.ascend.com (fw-ext [198.4.92.5])
	by drawbridge.ascend.com (8.9.1a/8.9.1) with SMTP id FAA24256;
	Thu, 7 Dec 2000 05:41:35 -0800 (PST)
Received: from russet.ascend.com by fw-ext.ascend.com
          via smtpd (for drawbridge.ascend.com [198.4.92.1]) with SMTP; 7 Dec 2000 13:49:41 UT
Received: from petie.ascend.com (petie.ascend.com [192.207.23.114])
	by russet.ascend.com (8.9.1a/8.9.1) with ESMTP id FAA11967;
	Thu, 7 Dec 2000 05:49:40 -0800 (PST)
Received: from ixi.eng.ascend.com (ixi.eng.ascend.com [172.27.61.1])
	by petie.ascend.com (8.8.8+Sun/8.8.8) with ESMTP id FAA02977;
	Thu, 7 Dec 2000 05:49:38 -0800 (PST)
Received: (from meyering@localhost)
	by ixi.eng.ascend.com (8.9.3/8.9.3) id OAA11484;
	Thu, 7 Dec 2000 14:49:36 +0100
X-Authentication-Warning: ixi.eng.ascend.com: meyering set sender to meyering@ascend.com using -f
To: Akim Demaille <akim@epita.fr>
Cc: Pavel Roskin <proski@gnu.org>, Lars Hecking <lhecking@nmrc.ie>,
        autoconf@gnu.org
Subject: Re: OpenBSD 2.7
References: <Pine.LNX.4.21.0012060722030.922-100000@woburn.localdomain>
	<mv43dg0iosy.fsf@nostromo.lrde.epita.fr>
From: Jim Meyering <meyering@ascend.com>
In-Reply-To: Akim Demaille's message of "07 Dec 2000 10:05:49 +0100"
Date: 07 Dec 2000 14:49:36 +0100
Message-ID: <uryvgswnxxr.fsf@ixi.eng.ascend.com>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille <akim@epita.fr> wrote:

| >>>>> "Pavel" =3D=3D Pavel Roskin <proski@gnu.org> writes:
|
| Pavel> So let's remove the explicit rule. It's only helpful to
| Pavel> maintainers, but they are supposed to clean up the working
| Pavel> directory from time to time.
|
| Grmph.  I wish Automake could expand this by itself.
|
| Pavel, I believe you understood quite well the make bug which is
| triggered by our Makefile.  Could you specify it in the documentation?
|
| Pavel> Another solution would be AM_MAINTAINER_MODE in configure.in
| Pavel> and @MAINT@ before the explicit rule, but I believe it's an
| Pavel> overkill.
|
| Over my dead body :)  I'm strongly opposed to the maintainer mode.

Likewise :-)  I really regret introducing that.
I should have reacted more quickly to Fran=E7ois' objection to it.
If only...


From akim@epita.fr Thu Dec 07 10:03:02 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1442ZZ-0005B2-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 10:03:01 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA06475 for <autoconf@gnu.org> 
	EPITA Paris France Thu, 7 Dec 2000 16:01:45 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1442fU-0005KT-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 16:09:08 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1442fS-00057S-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 16:09:06 +0100
To: Autoconf List <autoconf@gnu.org>
Subject: AC_PATH_XTRA
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 16:09:05 +0100
Message-ID: <mv4puj4e0a6.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

The doc says:

 - Macro: AC_PATH_XTRA
     An enhanced version of `AC_PATH_X'.  It adds the C compiler flags
     that X needs to output variable `X_CFLAGS', and the X linker flags
     to `X_LIBS'.  If X is not available, adds `-DX_DISPLAY_MISSING' to
     `X_CFLAGS'.

but it adds nothing to X_CFLAGS: it AC_DEFINE's this symbol.  So
should we adjust the doc, or the code?  Autoconf 2.13 already has this
inconsistency.  In practice X_CFLAGS contains only one `-I' at most.


From proski@speakeasy.org Thu Dec 07 10:19:52 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1442pr-0005dN-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 10:19:51 -0500
Received: (qmail 15130 invoked by uid 24233); 7 Dec 2000 15:19:47 -0000
Date: Thu, 7 Dec 2000 10:20:22 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Akim Demaille <akim@epita.fr>
cc: Lars Hecking <lhecking@nmrc.ie>, <autoconf@gnu.org>
Subject: Re: OpenBSD 2.7
In-Reply-To: <mv43dg0iosy.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012071007570.856-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> Pavel> So let's remove the explicit rule. It's only helpful to
> Pavel> maintainers, but they are supposed to clean up the working
> Pavel> directory from time to time.
>
> Grmph.  I wish Automake could expand this by itself.

Actually, it should. The scripts are created by config.status, hence they
depend on config.status. This rule would be sufficient, since
config.status is already rebuilt whenever configure.in is touched.

In general, Automake should add a dependency on config.status for every
file created by it.

It's easy to blame Automake, however, it's unclear whether Automake will
be able to generate something better than what we have now. We have a
suffix rule and we know that it will have no effect for BSD make when an
explicit rule is present.

This means that Automake will have to generate explicit rules for every
script.

In fact, we can "generate" them right now by hand.

Regards,
Pavel Roskin



From lhecking@nmrc.ucc.ie Thu Dec 07 10:23:29 2000
Received: from nmrc.ucc.ie ([143.239.64.1])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1442tN-0005l9-00; Thu, 07 Dec 2000 10:23:29 -0500
Received: from localhost (localhost [127.0.0.1])
	by mailhost.nmrc.ucc.ie (Postfix) with ESMTP
	id 64482EED0; Thu,  7 Dec 2000 15:23:02 +0000 (GMT)
Date: Thu, 7 Dec 2000 15:22:27 +0000
From: Lars Hecking <lhecking@nmrc.ie>
To: Pavel Roskin <proski@gnu.org>
Cc: Akim Demaille <akim@epita.fr>, autoconf@gnu.org
Subject: Re: OpenBSD 2.7
Message-ID: <20001207152227.A11125@nmrc.ie>
Mail-Followup-To: Pavel Roskin <proski@gnu.org>,
	Akim Demaille <akim@epita.fr>, autoconf@gnu.org
References: <mv43dg0iosy.fsf@nostromo.lrde.epita.fr> <Pine.LNX.4.30.0012071007570.856-100000@fonzie.nine.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
In-Reply-To: <Pine.LNX.4.30.0012071007570.856-100000@fonzie.nine.com>; from proski@gnu.org on Thu, Dec 07, 2000 at 10:20:22AM -0500
Mail-Copies-To: never
X-Virus-Scanned: by AMaViS at NMRC, Ireland
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

 Argh!!!!!

 Please stop CC'ing me in this thread! I am subscribed to this list!!

Pavel Roskin writes:
> Hello, Akim!
> 
> > Pavel> So let's remove the explicit rule. It's only helpful to
> > Pavel> maintainers, but they are supposed to clean up the working
> > Pavel> directory from time to time.
> >
> > Grmph.  I wish Automake could expand this by itself.



From Andrej.Borsenkow@mow.siemens.ru Thu Dec 07 10:40:46 2000
Received: from david.siemens.de ([192.35.17.14])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1443A5-0006iD-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 10:40:46 -0500
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de)
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
	by david.siemens.de (8.11.0/8.11.0) with ESMTP id eB7Fegu22846
	for <autoconf@gnu.org>; Thu, 7 Dec 2000 16:40:42 +0100 (MET)
Received: from MOWD019A.mow.siemens.ru ([139.24.18.3])
	by mail2.siemens.de (8.11.0/8.11.0) with ESMTP id eB7Fefn12241
	for <autoconf@gnu.org>; Thu, 7 Dec 2000 16:40:42 +0100 (MET)
Received: from mw1g17c (mw1g17c.mow.siemens.ru [149.202.201.33]) by MOWD019A.mow.siemens.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id YMPS1B4C; Thu, 7 Dec 2000 18:47:58 +0300
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: <autoconf@gnu.org>
Subject: Current CVS - test suite needs gawk???
Date: Thu, 7 Dec 2000 18:40:40 +0300
Message-ID: <000b01c06064$0d7c4d20$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

After updating CVS I cannot run testsuite anymore. Every test ends with nawk
error:

nawk: Tempcell list is curdled
nawk: Source line number 7

I could run testsuite sometimes ago ... around 2.49a IIRC.

As a related matter - testsuite --help chokes on egrep, it does not like

(|banner-1|...)

(it is initial `(|' that cause the problem). If I remove initial space from

at_tests_all=" banner-1 ..."

all's well.

-andrej

Have a nice DOS!
B >>



From earnie_boyd@yahoo.com Thu Dec 07 11:13:24 2000
Received: from web113.mail.yahoo.com ([205.180.60.84] helo=web113.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1443fg-0007U7-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 11:13:24 -0500
Received: (qmail 19104 invoked by uid 60001); 7 Dec 2000 16:13:22 -0000
Message-ID: <20001207161322.19103.qmail@web113.yahoomail.com>
Received: from [150.159.224.8] by web113.yahoomail.com; Thu, 07 Dec 2000 08:13:22 PST
Date: Thu, 7 Dec 2000 08:13:22 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: OpenBSD 2.7
To: Lars Hecking <lhecking@nmrc.ie>, Pavel Roskin <proski@gnu.org>
Cc: Akim Demaille <akim@epita.fr>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Lars Hecking <lhecking@nmrc.ie> wrote:
> 
>  Argh!!!!!
> 
>  Please stop CC'ing me in this thread! I am subscribed to this list!!
> 

Speaking only for myself and not for anyone else, I'll have to say that you'll
have to fix that problem yourself with a Reply-To: field back to this list. 
Lists such as this one, warrants replies to all addressees as it is an open
list and often the poster will not be a list member.  I don't have time to
filter out any particular one person from the address fields.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From akim@epita.fr Thu Dec 07 11:16:54 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1443j3-00084K-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 11:16:54 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA16287
	Thu, 7 Dec 2000 17:12:05 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1443lY-0005jC-00; Thu, 07 Dec 2000 17:19:28 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1443lW-0005sC-00; Thu, 07 Dec 2000 17:19:26 +0100
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
Cc: <autoconf@gnu.org>
Subject: Re: Current CVS - test suite needs gawk???
References: <000b01c06064$0d7c4d20$21c9ca95@mow.siemens.ru>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 17:19:26 +0100
In-Reply-To: "Andrej Borsenkow"'s message of "Thu, 7 Dec 2000 18:40:40 +0300"
Message-ID: <mv44s0gdx0x.fsf@nostromo.lrde.epita.fr>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| After updating CVS I cannot run testsuite anymore. Every test ends with nawk
| error:
| 
| nawk: Tempcell list is curdled
| nawk: Source line number 7
| 
| I could run testsuite sometimes ago ... around 2.49a IIRC.

I don't understand.  I'll need help here.  For a start, an sh -x of
./testsuite 1.

| As a related matter - testsuite --help chokes on egrep, it does not like
| 
| (|banner-1|...)

Bummer, I thought I had taken care of this.  Thanks!


From Andrej.Borsenkow@mow.siemens.ru Thu Dec 07 11:26:58 2000
Received: from goliath.siemens.de ([194.138.37.131])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1443sn-0008Fi-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 11:26:58 -0500
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de)
Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11])
	by goliath.siemens.de (8.11.0/8.11.0) with ESMTP id eB7GQtl24841;
	Thu, 7 Dec 2000 17:26:55 +0100 (MET)
Received: from MOWD019A.mow.siemens.ru ([139.24.18.3])
	by mail2.siemens.de (8.11.0/8.11.0) with ESMTP id eB7GQs527167;
	Thu, 7 Dec 2000 17:26:54 +0100 (MET)
Received: from mw1g17c (mw1g17c.mow.siemens.ru [149.202.201.33]) by MOWD019A.mow.siemens.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id YMPS1BY7; Thu, 7 Dec 2000 19:34:11 +0300
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Akim Demaille" <akim@epita.fr>
Cc: <autoconf@gnu.org>
Subject: RE: Current CVS - test suite needs gawk???
Date: Thu, 7 Dec 2000 19:26:53 +0300
Message-ID: <001401c0606a$822d4a60$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-Reply-To: <mv44s0gdx0x.fsf@nostromo.lrde.epita.fr>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> | After updating CVS I cannot run testsuite anymore. Every test
> ends with nawk
> | error:
> |
> | nawk: Tempcell list is curdled
> | nawk: Source line number 7
> |
> | I could run testsuite sometimes ago ... around 2.49a IIRC.
>
> I don't understand.  I'll need help here.  For a start, an sh -x of
> ./testsuite 1.
>

Neither do I :-) testsuite -x follows:


     1. /tools/src/autoconf/tests/m4sugar.at:9...
+ cat
+ cat
+ set +vx
/tools/src/autoconf/tests/m4sugar.at:48: autoconf --autoconf-dir .. -l
$at_srcdir -o-
at_status=1
+ set +vx
0a1,3
> + autoconf --autoconf-dir .. -l /u3/u1/src/autoconf/tests -o-
> nawk: Tempcell list is curdled
> nawk: Source line number 7
1,15d0
< /* Short string */
<
< /* Much longer
<    string */
<
<   --short Short doc.
<
<   --too-wide
<           Short doc.
<
<   --too-wide
<           Super long
<           documentation.
<
< First, second , third, [,quoted]
Exit code was 1, expected 0
     1. /tools/src/autoconf/tests/m4sugar.at:9: FAILED near `m4sugar.at:48'

Writing `debug-NN.sh' scripts, NN = 1, done

-andrej



From peter_e@gmx.net Thu Dec 07 11:44:01 2000
Received: from mailout01.sul.t-online.com ([194.25.134.80])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14449J-0000a6-00; Thu, 07 Dec 2000 11:44:01 -0500
Received: from fwd03.sul.t-online.com 
	by mailout01.sul.t-online.com with smtp 
	id 14449H-0001G3-03; Thu, 07 Dec 2000 17:43:59 +0100
Received: from peter.localdomain (520083510237-0001@[212.185.245.80]) by fmrl03.sul.t-online.com
	with esmtp id 144494-1KmXr6C; Thu, 7 Dec 2000 17:43:46 +0100
Date: Thu, 7 Dec 2000 17:50:04 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: Pavel Roskin <proski@gnu.org>
cc: Akim Demaille <akim@epita.fr>,  <autoconf@gnu.org>
Subject: Re: OpenBSD 2.7
In-Reply-To: <Pine.LNX.4.30.0012071007570.856-100000@fonzie.nine.com>
Message-ID: <Pine.LNX.4.30.0012071739490.780-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Pavel Roskin writes:

> In general, Automake should add a dependency on config.status for every
> file created by it.

(The scripts are not created by config.status, but anyway...)

All these dependencies with config.status, configure, Makefile.in, etc.
are really cute but when you think about it in order for them to be really
useful every target file under makefile control needs to depend on the
makefile used to build it.  For example, the rule might have changed, or
the tool to build it is now another.  Otherwise, why are you recreating
the makefiles at all?

Of course doing that is not a feasible option, so before long you're going
to have to realize that complete dependencies are not practical.  It
sounds very absurd anyway if you make changes in the build system and
expect the very same build system to recover from that.

I.e., you might want to consider removing the explicit rule.  How often
does one change the version number?

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From larsa@sim.no Thu Dec 07 11:45:51 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1444B5-0000hT-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 11:45:51 -0500
Received: (qmail 8590 invoked by uid 2000); 7 Dec 2000 16:45:50 -0000
Date: Thu, 7 Dec 2000 17:45:50 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: autoconf@gnu.org
Subject: Re: OpenBSD 2.7
Message-ID: <20001207174549.A8387@sim.no>
Reply-To: autoconf@gnu.org
References: <20001207161322.19103.qmail@web113.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20001207161322.19103.qmail@web113.yahoomail.com>; from earnie_boyd@yahoo.com on Thu, Dec 07, 2000 at 08:13:22AM -0800
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, Dec 07, 2000 at 08:13:22AM -0800, Earnie Boyd wrote:
: --- Lars Hecking <lhecking@nmrc.ie> wrote:
: >  Please stop CC'ing me in this thread!
: 
: Speaking only for myself and not for anyone else, I'll have to say that you'll
: have to fix that problem yourself with a Reply-To: field back to this list. 

Good point and thanks for the tip.  This has bothered me too from time to time -
now I might remember how to avoid it...

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From akim@epita.fr Thu Dec 07 12:00:12 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1444Ox-0000u4-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 12:00:11 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA21372
	Thu, 7 Dec 2000 17:55:24 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1444RU-0005yB-00; Thu, 07 Dec 2000 18:02:48 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1444RS-0005yX-00; Thu, 07 Dec 2000 18:02:46 +0100
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>,
        Mike Brennan <brennan@whidbey.com>
Cc: <autoconf@gnu.org>
Subject: nawk portability problem (Was: Current CVS - test suite needs gawk???)
References: <001401c0606a$822d4a60$21c9ca95@mow.siemens.ru>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 18:02:45 +0100
In-Reply-To: "Andrej Borsenkow"'s message of "Thu, 7 Dec 2000 19:26:53 +0300"
Message-ID: <mv4u28gcgga.fsf@nostromo.lrde.epita.fr>
Lines: 36
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

OK, so the problem is an AWK portability issue.  Since these guys are
maintainer tools, I won't fight to have them perfect.  But if you
could try to see what makes it unhappy, maybe there is a way out.

The problem is in finalize.awk.  To create it, just run

echo AC_INTI >configure.in
autoconf -d
and look for /tmp/ac*/finalize.awk

Here is the top of it.  It complains about line 7, and frankly, I
don't understand the error message.

     1  # Load the list of tokens which escape the forbidden patterns.
     2  BEGIN {
     3    # Be sure the read GAWK documentation to understand the parens
     4    # around `tmp "/forbidden.rx"'.
     5    while ((getline pattern < (tmp "/forbidden.rx")) > 0)
     6      forbidden = (forbidden ? forbidden "|" : "") pattern
     7    close (tmp "/forbidden.rx")
     8    if (verbose)
     9      errprint("autoconf: forbidden: " forbidden)
    10  
    11    while ((getline pattern < (tmp "/allowed.rx")) > 0)
    12      allowed = (allowed ? allowed "|" : "") pattern
    13    close (tmp "/allowed.rx")
    14    if (verbose)
    15      errprint("autoconf: allowed: " allowed)
    16  }

| nawk: Tempcell list is curdled
| nawk: Source line number 7

The stock nawk on Debian unstable works fine with this, and there is
not `curdled' in the man page.  Maybe the author can help us?


From akim@epita.fr Thu Dec 07 12:17:06 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1444fK-0001Bv-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 12:17:06 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA23626 for <autoconf@gnu.org> 
	EPITA Paris France Thu, 7 Dec 2000 18:16:22 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1444Xu-00061g-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 18:09:26 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1444Xt-0005zE-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 18:09:25 +0100
To: autoconf@gnu.org
Subject: Re: OpenBSD 2.7
References: <20001207161322.19103.qmail@web113.yahoomail.com>
	<20001207174549.A8387@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 18:09:25 +0100
In-Reply-To: "Lars J. Aas"'s message of "Thu, 7 Dec 2000 17:45:50 +0100"
Message-ID: <mv4lmtscg56.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:

Lars> Good point and thanks for the tip.  This has bothered me too
Lars> from time to time - now I might remember how to avoid it...

This is not nice, and I find this even bad: what about the other
people who are in CC: you are deciding they have to get lost.

Why don't you use (just like Lars did) to

Mail-Copies-To: never


From eggert@twinsun.com Thu Dec 07 13:05:24 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1445Q3-00032z-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 13:05:23 -0500
Received: from ruby.twinsun.com ([192.54.239.31]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id KAA10863; Thu, 7 Dec 2000 10:04:48 -0800 (PST)
Received: (eggert@localhost) by ruby.twinsun.com (8.9.3+Sun/8.9.3) id KAA02686; Thu, 7 Dec 2000 10:04:48 -0800 (PST)
Date: Thu, 7 Dec 2000 10:04:48 -0800 (PST)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200012071804.KAA02686@ruby.twinsun.com>
To: akim@epita.fr
CC: Andrej.Borsenkow@mow.siemens.ru, autoconf@gnu.org
In-reply-to: <mv4u28gcgga.fsf@nostromo.lrde.epita.fr> (akim@epita.fr)
Subject: Re: nawk portability problem (Was: Current CVS - test suite needs gawk???)
References: <001401c0606a$822d4a60$21c9ca95@mow.siemens.ru> <mv4u28gcgga.fsf@nostromo.lrde.epita.fr>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> From: Akim Demaille <akim@epita.fr>
> User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

> | nawk: Tempcell list is curdled
> | nawk: Source line number 7

> The stock nawk on Debian unstable works fine with this, and there is
> not `curdled' in the man page.  Maybe the author can help us?

I don't have the nawk source code, but my guess is that it has
something to do with a bug in nawk, a bug that is caught by some
internal checking code.  On Solaris 8, "strings /usr/bin/nawk" outputs:

...
## tfree %.8s %06o %s
tempcell list is curdled
no space for temporaries
## gtemp %.8s %06o
...

which looks like storage allocation debugging code to me.

Since this problem occurs only for maintainers, I wouldn't worry about
it.  You can tell maintainers to get a working awk.


PS.  I'm not sure why you cc'ed to mawk's author -- it's not his fault.  :-)


From akim@epita.fr Thu Dec 07 13:54:24 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1446BT-00050w-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 13:54:24 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA01749
	Thu, 7 Dec 2000 19:49:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1446EH-0006PR-00; Thu, 07 Dec 2000 19:57:17 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1446EE-000609-00; Thu, 07 Dec 2000 19:57:14 +0100
To: Paul Eggert <eggert@twinsun.com>
Cc: Andrej.Borsenkow@mow.siemens.ru, autoconf@gnu.org,
        Mike Brennan <brennan@whidbey.com>
Subject: Re: nawk portability problem (Was: Current CVS - test suite needs gawk???)
References: <001401c0606a$822d4a60$21c9ca95@mow.siemens.ru>
	<mv4u28gcgga.fsf@nostromo.lrde.epita.fr>
	<200012071804.KAA02686@ruby.twinsun.com>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 19:57:13 +0100
In-Reply-To: Paul Eggert's message of "Thu, 7 Dec 2000 10:04:48 -0800 (PST)"
Message-ID: <mv4d7f4cb5i.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Paul" == Paul Eggert <eggert@twinsun.com> writes:

Paul> PS.  I'm not sure why you cc'ed to mawk's author -- it's not his
Paul> fault.  :-)

Apologies :(  I just `man nawk' on my system, and did not realize it
was mawk's man page.  Sorry about this Mike.


From proski@speakeasy.org Thu Dec 07 13:56:43 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1446Di-00054B-00
	for <autoconf@gnu.org>; Thu, 07 Dec 2000 13:56:42 -0500
Received: (qmail 2808 invoked by uid 24233); 7 Dec 2000 18:56:40 -0000
Date: Thu, 7 Dec 2000 13:57:14 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Peter Eisentraut <peter_e@gmx.net>
cc: <autoconf@gnu.org>
Subject: Re: OpenBSD 2.7
In-Reply-To: <Pine.LNX.4.30.0012071739490.780-100000@peter.localdomain>
Message-ID: <Pine.LNX.4.30.0012071349560.1743-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Peter!

> > In general, Automake should add a dependency on config.status for every
> > file created by it.
>
> (The scripts are not created by config.status, but anyway...)

You are right. Perhaps I didn't sleep enough this night :-/

> Of course doing that is not a feasible option, so before long you're going
> to have to realize that complete dependencies are not practical.  It
> sounds very absurd anyway if you make changes in the build system and
> expect the very same build system to recover from that.

Indeed, if I have a project in C and the version is hardcoded in one of
the object files, the executable will not be rebuilt when I touch
configure.in.

Doing otherwise would mean either rebuilding the whole project or
determining by some magic which object files have the version hardcoded.

> I.e., you might want to consider removing the explicit rule.  How often
> does one change the version number?

I already suggested it, but with your arguments I feel much better about
doing so.

Regards,
Pavel Roskin



From akim@epita.fr Thu Dec 07 14:01:12 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1446I4-000598-00; Thu, 07 Dec 2000 14:01:12 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id UAA02553
	Thu, 7 Dec 2000 20:00:28 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1446OX-0006XY-00; Thu, 07 Dec 2000 20:07:53 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1446OV-00060y-00; Thu, 07 Dec 2000 20:07:51 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: Peter Eisentraut <peter_e@gmx.net>, <autoconf@gnu.org>
Subject: Re: OpenBSD 2.7
References: <Pine.LNX.4.30.0012071349560.1743-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 07 Dec 2000 20:07:51 +0100
In-Reply-To: Pavel Roskin's message of "Thu, 7 Dec 2000 13:57:14 -0500 (EST)"
Message-ID: <mv4vgswaw3c.fsf@nostromo.lrde.epita.fr>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

>> I.e., you might want to consider removing the explicit rule.  How
>> often does one change the version number?

Pavel> I already suggested it, but with your arguments I feel much
Pavel> better about doing so.

Sorry, but I do not want to break valid rules due to stupid systems.
If you want to expand by hand, fine with me.  If you want to remove
valid dependencies, I won't agree.


From peter_e@gmx.net Thu Dec 07 14:30:09 2000
Received: from mailout06.sul.t-online.com ([194.25.134.19])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1446k4-000696-00; Thu, 07 Dec 2000 14:30:08 -0500
Received: from fwd01.sul.t-online.com 
	by mailout06.sul.t-online.com with smtp 
	id 1446k3-0007PY-02; Thu, 07 Dec 2000 20:30:07 +0100
Received: from peter.localdomain (520083510237-0001@[212.185.245.123]) by fmrl01.sul.t-online.com
	with esmtp id 1446js-0AgyumC; Thu, 7 Dec 2000 20:29:56 +0100
Date: Thu, 7 Dec 2000 20:36:15 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: Pavel Roskin <proski@gnu.org>
cc:  <autoconf@gnu.org>
Subject: Re: OpenBSD 2.7
In-Reply-To: <Pine.LNX.4.21.0011071951360.20043-100000@fonzie.nine.com>
Message-ID: <Pine.LNX.4.30.0012072033540.780-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Pavel Roskin writes:

> 4) Include the dependency on configure.in in the suffix rule. I'm afraid
> it's impossible.

This actually works in BSD make, but maybe not everywhere else.

(The dependency should be on Makefile anyway.)

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From mdejong@cygnus.com Fri Dec 08 04:11:17 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 144JYj-0007fO-00
	for <autoconf@gnu.org>; Fri, 08 Dec 2000 04:11:17 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id BAA28997
	for <autoconf@gnu.org>; Fri, 8 Dec 2000 01:11:15 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id BAA14491; Fri, 8 Dec 2000 01:11:14 -0800 (PST)
Date: Fri, 8 Dec 2000 01:11:14 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Problem with AC_CHECK_FUNCS() and new versions of g++
Message-ID: <Pine.SOL.3.91.1001208005443.13369G-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi all.

I seem to have run into a big problem with newer versions
of g++, it seems to be a bit more strict about the code
it allows and this is causing AC_CHECK_FUNCS() to fail.

I have some code like this:

AC_CHECK_FUNCS(mkdir, , AC_MSG_ERROR([No mkdir() function found]))

This gets translated to a conftest.c of:

#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
   builtin and then its argument prototype would still apply.  */
char mkdir ();
char (*f) ();

int
main ()
{
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_mkdir) || defined (__stub___mkdir)
choke me
#else
f = mkdir;
#endif

  ;
  return 0;
}

It works fine with gcc, but not g++.

% gcc -c conftest.c

% g++ -c conftest.c
conftest.c: In function `int main ()':
conftest.c:20: cannot convert `char () (...)' to `char (*) ()' in
assignment

Older versions of g++ work just fine.
This one came with my Red Hat 6.2 install.

% /usr/bin/g++ -c conftest.c 

Now for the strange part. This seemingly
silly change fixes things.

@@ -5,7 +5,7 @@
 #endif
 /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
-char mkdir ();
+char mkdir (void);
 char (*f) ();

% g++ -c conftest.c


So what do folks think? Should the AC_CHECK_FUNCS
macro be changed to use "... func (void)" like this?
Of course, it might be better to change g++ to
not generate this error, I am not sure at this
point.

cheers
Mo DeJong
Red Hat Inc


From akim@epita.fr Fri Dec 08 08:28:06 2000
Received: from hermes.epita.fr ([194.98.116.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 144NZF-0003S5-00
	for <autoconf@gnu.org>; Fri, 08 Dec 2000 08:28:05 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA25053
	Fri, 8 Dec 2000 14:27:05 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 144Nfa-0000qF-00; Fri, 08 Dec 2000 14:34:38 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 144NfY-0006Mk-00; Fri, 08 Dec 2000 14:34:36 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: Problem with AC_CHECK_FUNCS() and new versions of g++
References: <Pine.SOL.3.91.1001208005443.13369G-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 08 Dec 2000 14:34:35 +0100
In-Reply-To: Mo DeJong's message of "Fri, 8 Dec 2000 01:11:14 -0800 (PST)"
Message-ID: <mv466kvavf8.fsf@nostromo.lrde.epita.fr>
Lines: 41
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| #include <assert.h>
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char mkdir ();
| char (*f) ();

BTW, I never quite understood this comment.  Could someone explain it
to me?  Does gcc have functions which are `enabled' only when the
first prototype it sees is compatible?

| int
| main ()
| {
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */

I'd love details on this comment too, I don't understand it too well.
Am I understanding that if __stub_foo exists, it means that foo
doesn't really exist?

| #if defined (__stub_mkdir) || defined (__stub___mkdir)
| choke me
| #else
| f = mkdir;
| #endif
| 
|   ;
|   return 0;
| }
| 
| It works fine with gcc, but not g++.

I just tried with `2.95.2' and `2.97 20001101 (experimental)', and
both work properly.  Do you have additional flags?  What compiler
exactly are you using?


From eggert@twinsun.com Fri Dec 08 12:23:26 2000
Received: from alcor.twinsun.com ([198.147.65.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 144REx-00030e-00
	for <autoconf@gnu.org>; Fri, 08 Dec 2000 12:23:23 -0500
Received: from ruby.twinsun.com ([192.54.239.31]) by alcor.twinsun.com (8.9.3/8.9.3) with ESMTP id JAA19503; Fri, 8 Dec 2000 09:23:15 -0800 (PST)
Received: (eggert@localhost) by ruby.twinsun.com (8.9.3+Sun/8.9.3) id JAA04328; Fri, 8 Dec 2000 09:23:15 -0800 (PST)
Date: Fri, 8 Dec 2000 09:23:15 -0800 (PST)
From: Paul Eggert <eggert@twinsun.com>
Message-Id: <200012081723.JAA04328@ruby.twinsun.com>
To: akim@epita.fr
CC: mdejong@cygnus.com, autoconf@gnu.org
In-reply-to: <mv466kvavf8.fsf@nostromo.lrde.epita.fr> (akim@epita.fr)
Subject: Re: Problem with AC_CHECK_FUNCS() and new versions of g++
References: <Pine.SOL.3.91.1001208005443.13369G-100000@cse.cygnus.com> <mv466kvavf8.fsf@nostromo.lrde.epita.fr>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> From: Akim Demaille <akim@epita.fr>
> Date: 08 Dec 2000 14:34:35 +0100
> 
> | #include <assert.h>
> | /* Override any gcc2 internal prototype to avoid an error.  */
> | #ifdef __cplusplus
> | extern "C"
> | #endif
> | /* We use char because int might match the return type of a gcc2
> |    builtin and then its argument prototype would still apply.  */
> | char mkdir ();
> | char (*f) ();
> 
> BTW, I never quite understood this comment.  Could someone explain it
> to me?
> first prototype it sees is compatible?

This comment highlights a confusing botch in autoconf.

Here's an example of the problem.  Consider the following C program,
generated by AC_TRY_LINK_FUNC(abs):

  int abs ();
  main () { return abs (); }

This program does not conform to the C standard, as the C standard
does not let you redefine builtin C functions.  So GCC warns about it.

To disable this warning, AC_TRY_LINK_FUNC does this instead:

  char abs ();
  int main () { return abs (); }

This program doesn't conform to the C standard, either!  But GCC does
not warn about it so it's good enough for GCC users.

The real problem is that the autoconf AC_TRY_LINK_FUNC macro is
unportable, and is using the wrong assumptions.  There is no reliable
way in general to see whether you can link a C function without
knowing the function's prototype.  AC_TRY_LINK_FUNC is a hack that
sort of works, most of the time, but does not work in general.

AC_CHECK_FUNC, AC_TRY_LINK_FUNC, etc. should have arguments specifying
the function prototype, and should generate output that looks like
this instead:

  ... define PROTO in the usual way ...
  int abs PROTO ((int));
  int (*p) PROTO ((int)) = abs;

It's too late to fix this now for the next autoconf release, but
this problem will fester until fixed.


> Am I understanding that if __stub_foo exists, it means that foo
> doesn't really exist?

No, it means that foo exists, but if invoked foo will always fail with
ENOSYS.


From oliva@lsd.ic.unicamp.br Fri Dec 08 19:33:40 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 144XxL-0000CU-00
	for <autoconf@gnu.org>; Fri, 08 Dec 2000 19:33:39 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eB90XJ130043;
	Fri, 8 Dec 2000 22:33:19 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
	<mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
	<51wvdcbj5m.fsf@nfs.trh.sim.no>
	<mv47l5cfl7e.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 08 Dec 2000 22:33:19 -0200
In-Reply-To: Akim Demaille's message of "07 Dec 2000 13:51:49 +0100"
Message-ID: <orbsuml9gw.fsf@guarana.lsd.ic.unicamp.br>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec  7, 2000, Akim Demaille <akim@epita.fr> wrote:

>>>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:
Morten> Akim Demaille <akim@epita.fr> writes:
>>> OBJEXT and EXEEXT [...] define precisely what they are (build, or
>>> host?), [...]

Morten> Just wanted to add my 0.02 Kroner: after pondering this issue
Morten> for a while, I tend to believe we should first and foremost
Morten> view them as characteristics of the _compiler_ -- screw
Morten> looking at the host and build system. :-)

> That's what I call a build characteristic.

Wrong.  The compiler is supposed to follow conventions of the host,
not of the build machine.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From woods@proven.weird.com Sat Dec 09 16:21:31 2000
Received: from most.weird.com ([204.92.254.2])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 144rQw-0000jv-00
	for <autoconf@gnu.org>; Sat, 09 Dec 2000 16:21:31 -0500
Received: from proven.weird.com([204.92.254.15]) (2087 bytes) by most.weird.com
	via sendmail with P:esmtp/R:bind_hosts/T:inet_zone_bind_smtp
	(sender: <woods@proven.weird.com>) (ident <[GvKunnSbvxRfmC3thu7zhUOY32vUmKlQ]> using rfc1413)
	id <m144rQr-000gCAC@most.weird.com>
	for <autoconf@gnu.org>; Sat, 9 Dec 2000 16:21:25 -0500 (EST)
	(Smail-3.2.0.112-Pre 2000-Feb-17 #10 built 2000-Nov-22)
Received: by proven.weird.com (Postfix, from userid 1000)
	id 1B2E14; Sat,  9 Dec 2000 16:21:19 -0500 (EST)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: woods@weird.com (Greg A. Woods)
To: autoconf@gnu.org
Cc: Andrej.Borsenkow@mow.siemens.ru, 
Subject: Re: nawk portability problem (Was: Current CVS - test suite needs gawk???)
In-Reply-To: <200012071804.KAA02686@ruby.twinsun.com>
References: <001401c0606a$822d4a60$21c9ca95@mow.siemens.ru>
	<mv4u28gcgga.fsf@nostromo.lrde.epita.fr>
	<200012071804.KAA02686@ruby.twinsun.com>
X-Mailer: VM 6.87 under Emacs 21.0.90.1
Reply-To: autoconf@gnu.org (GNU AUtoconf Mailing List)
Organization: Planix, Inc.; Toronto, Ontario; Canada
Message-Id: <20001209212119.1B2E14@proven.weird.com>
Date: Sat,  9 Dec 2000 16:21:19 -0500 (EST)
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

[ On Thursday, December 7, 2000 at 10:04:48 (-0800), Paul Eggert wrote: ]
> Subject: Re: nawk portability problem (Was: Current CVS - test suite needs gawk???)
>
> Since this problem occurs only for maintainers, I wouldn't worry about
> it.  You can tell maintainers to get a working awk.

They might try by first ensuring they have the most recent release of
nawk.  It is freeware and it is very well maintained by one of its
original authors, and the current release is dated Nov. 27, 2000.

	http://plan9.bell-labs.com/cm/cs/who/bwk/awkcode.txt
or
	http://plan9.bell-labs.com/cm/cs/who/bwk/awk.tar.gz

There's a note in the FIXES file from the nawk source distribution
stating that a function call memory leak was fixed on April 21, 2000.  I
don't know if that'll fix the bug referred to in this thread, or not.

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>


From akim@epita.fr Tue Dec 12 04:13:16 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145lUq-0000UJ-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 04:13:16 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA16536
	Tue, 12 Dec 2000 10:12:08 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 145lbg-0005It-00; Tue, 12 Dec 2000 10:20:20 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 145lah-0001iS-00; Tue, 12 Dec 2000 10:19:19 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
	<mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
	<51wvdcbj5m.fsf@nfs.trh.sim.no>
	<mv47l5cfl7e.fsf@nostromo.lrde.epita.fr>
	<orbsuml9gw.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 12 Dec 2000 10:19:19 +0100
In-Reply-To: Alexandre Oliva's message of "08 Dec 2000 22:33:19 -0200"
Message-ID: <mv43dfuro88.fsf@nostromo.lrde.epita.fr>
Lines: 33
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| On Dec  7, 2000, Akim Demaille <akim@epita.fr> wrote:
| >>>>>> "Morten" == Morten Eriksen <mortene@sim.no> writes:
| Morten> Akim Demaille <akim@epita.fr> writes:
| >>> OBJEXT and EXEEXT [...] define precisely what they are (build, or
| >>> host?), [...]
| 
| Morten> Just wanted to add my 0.02 Kroner: after pondering this issue
| Morten> for a while, I tend to believe we should first and foremost
| Morten> view them as characteristics of the _compiler_ -- screw
| Morten> looking at the host and build system. :-)
| 
| > That's what I call a build characteristic.
| 
| Wrong.  The compiler is supposed to follow conventions of the host,
| not of the build machine.

Well, I suppose this means Morten is right to be willing to introduce
some more vocabulary.  Why do you say it's host related?  Because
indeed when we ask something from the compiler, when it's a cross
compiler, it talks about the host machine.

But in the present case, what extensions a cross compiler is using,
IMHO, is not necessarily directly linked to the extensions of the host
platform.  If, when cross-compiling to Cygwin or whatever, gcc using
`.o', that's fine, we just don't care.  That's why I meant to call
this a build property: it explains how the processes run on `build'
are.  The compiler is just one such program.

Then there are the environments that, when cross-compiling, are
pushing the host preferences during the build process.  That's where
the confusion is (or, if not confusion, just disagreement on the
vocabulary to use).


From akim@epita.fr Tue Dec 12 04:14:42 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145lW6-0000Ud-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 04:14:35 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA16646
	Tue, 12 Dec 2000 10:13:17 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 145lco-0005Jd-00; Tue, 12 Dec 2000 10:21:30 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 145lbp-0001if-00; Tue, 12 Dec 2000 10:20:29 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
	<mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
	<51wvdcbj5m.fsf@nfs.trh.sim.no>
	<mv47l5cfl7e.fsf@nostromo.lrde.epita.fr>
	<orbsuml9gw.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 12 Dec 2000 10:20:29 +0100
In-Reply-To: Alexandre Oliva's message of "08 Dec 2000 22:33:19 -0200"
Message-ID: <mv4y9xmq9lu.fsf@nostromo.lrde.epita.fr>
Lines: 241
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Here are the most relevant messages I have from earlier threads.

----------------------------------------------------------------------

* host or build characteristic?

** Earnie

OBJEXT is only a build feature while EXEEXT is both a build feature
and a host feature.

** Bernard answers

Even more precisely:

OBJEXT is a feature of the host-compiler running on the build-system
EXEEXT is a host-system feature

The whole problem with the AC_EXEEXT macro is that when build==host==cygwin,
the compiler GENERATES a conftest.exe file, but "ls conftest" or "test -f
conftest" will find "conftest.exe" (and ls will report "conftest.exe"'s name
as "conftest") but, as Earnie said, "rm conftest" will FAIL...

** Eric Christopher

They are (IMHO, of course) related to the output of the compiler on the
platform that is being built for in one case and the host building for
the other.  So a solaris cross cygwin compiler would define EXEEXT to be
.exe, however, OBJEXT would be .o because it was compiled on a solaris
box.  On a cygwin box, compiling natively EXEEXT would still be .exe,
however, OBJEXT would be .obj since the object files are residing on the
cygwin box.  Similarly a cygwin cross solaris toolchain (a weird, but
possible thing) would have EXEEXT be blank, and OBJEXT would be defined
as .obj since we're compiling on windows as the host.

** Ralf

1) cross (cross-tools)
configure --build=`config.guess` --host=i386-cygwin

2) target-native (`config.guess` := yyy, target-tools/libs)
CC=i386-cygwin-gcc configure --build=i386-cygwin --host=i386-cygwin

Further issues arise when installing *.[o|obj] files: i.e. a compiler's
chain's startup files or customized startup files (a very common case for
embedded systems).

** Alexandre answers

I suppose a compiler that targets Cygwin will create .obj object files
regardless of its host platform.  I.e., when using a Cygwin compiler (such
that --host=cygwin), you'd get OBJEXT=.obj, regardless of the build
platform, on which the compiler runs.

** Mo answers

No, it depends in what your compiler outputs.

% cat tmp.c
int i;

% i386-mingw32msvc-gcc -c tmp.c

% ls tmp.*
tmp.c  tmp.o

% ./i586-cygwin32-gcc -c tmp.c

% ls tmp.*
tmp.c  tmp.o

You would only get a .obj file if you were using VC++.

** Christopher Faylor answers

Correct.  To the best of my knowledge, Cygwin has never produced objects
with a .obj extension.  Since it is supposed to be emulating a UNIX
environment, there is no need to do this.

The .exe extension on executable files is a requirement of the "OS", however,
so we can't avoid using that, unfortunately.

** Ralf answers to Alexandre

> I suppose a compiler that targets Cygwin will create .obj object files
> regardless of its host platform.  I.e., when using a Cygwin compiler
> (such that --host=cygwin), you'd get OBJEXT=.obj, regardless of the
> build platform, on which the compiler runs.

Hmm, I don't think so.

# uname
Linux

# /opt/cygwin/bin/i386-pc-cygwin-gcc -c hello.c
# ls
hello.c hello.o

# /opt/cygwin/bin/i386-pc-cygwin-gcc hello.c
# ls
a.exe hello.c

# /opt/cygwin/bin/i386-pc-cygwin-gcc --version
2.95.2-5

** Mo

I always assumed that EXEEXT and OBJEXT were based on
the host. After all, they should depend on the
output of the compiler, right? If CC_FOR_BUILD
support was recently added, perhaps we need something
like EXEEXT_FOR_BUILD and OBJEXT_FOR_BUILD.

VC++ (native)
EXEEXT=.exe
OBJEXT=.obj

gcc (cross mingw or cygwin)
EXEEXT=.exe
OBJEXT=.o


* Problems to solve

** Mo

At any rate, my real problem is that I have a configure.in that needs
to check the ac_cv_mingw32 and ac_cv_cygwin variables in order to work
properly. These variables are never getting set because the _AC_CYGWIN
macro is not getting run.

** Akim

Mo> I have to admit that I am a bit confused about what is going on
Mo> with the _AC_CYGWIN and _AC_MINGW32 macros. I was under the
Mo> impression that they were required for _AC_EXEEXT or _AC_OBJEXT,
Mo> but it seems like the addition of these new patches will mean the
Mo> obj and exe extension will not need to depend on _AC_CYGWIN or
Mo> _AC_MINGW32. I am wondering if the code that checks for $CYGWIN in
Mo> this macro can just be removed?

These lines are my main grief against these macros: they are causing
many problems.  But in addition they are the sources of the bizarre
status of OBJEXT and EXEEXT: these lines clearly defines them as
*host* characteristics, while the next lines are *build*
characteristics.

** Earnie

For those using the Cygwin compiler toolset for MinGW, yes the distinction
between Cygwin and MinGW isn't necessary, the environment is Cygwin even if the
compiler set is the MinGW set.

There a those, me included, using Amol's port of zsh to WinNT with a native
build of fileutils, textutils and the like, this is where the MinGW distinction
is going to matter.

IMO, treat detecting Cygwin and MinGW as you would for "normal" unix.  The
result will need to set special variables such as ac_exeext.


* Alternative detection

** Using uname

*** Earnie

Cygwin comes with uname which reports:
CYGWIN_NT-4.0 DU147636 1.1.0(0.17/3/2) 2000-03-01 00:15:19 i686 unknown

For MinGW I have a uname hack which reports:
MINGW_WinNT DU147636 3 0 i686 unknown

*** Eli answers

Sounds a bit dangerous to me: what if someone uses Mingw, but uname is
from Cygwin?  I understand that many Mingw developers use Cygwin
toolchain (except the compiler and Binutils).

How about running "gcc -v --version" and looking at the output?

*** Earnie answers

There is full email support for MinGW users, see my .sig.  Also, most MinGW
users are using it for Win32 native developement and aren't really doing
./configure.  Some are, and those that are know how to make it work.  Also,
the http://www.mingw.org page has a nice FAQ which can be modified as
needed.

The current version of config.guess/sub without modification return
i686-pc-mingw32 for my configuration and returns i686-pc-cygwin for my
Cygwin configuration.

BTW, gcc --version only return 2.95.2 and gcc -v does contain the characters
mingw when returning the name of the specs file; but I don't like this.


** Using pwd

*** Alexandre

if (cd c:\\ && cd .. && test `pwd` = "C:\\") 2> /dev/null

*** Felix Lee answers

there doesn't have to be a c:.  I've seen a system where the only disk is a
hard drive named a:.

*** Earnie

Yes, C: isn't guaranteed to be a valid device.  It's not specific to djgpp,
cygwin or mingw.

*** Eli answers

This should work with any DOS/Windows environment, it's not specific to any
of the three (DJGPP, Mingw, or Cygwin).  So it cannot reliably distinguish
between these three.

In addition, `pwd' will report "c:/", at least with the DJGPP port of
Bash.

*** Earnie

NO!!  That is shell dependent.  Yuck, yuck, yuck.


* TODO

** Earnie

BTW, since your supporting MinGW, the IFS value when searching the PATH needs
to be ';' instead of ':'.



Local Variables:
mode: outline
fill-column: 76
End:


From akim@epita.fr Tue Dec 12 04:27:23 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145liU-00010y-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 04:27:22 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA18022
	Tue, 12 Dec 2000 10:26:19 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 145lpQ-0005NA-00; Tue, 12 Dec 2000 10:34:32 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 145loR-0001is-00; Tue, 12 Dec 2000 10:33:31 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
	<mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
	<51wvdcbj5m.fsf@nfs.trh.sim.no>
	<mv47l5cfl7e.fsf@nostromo.lrde.epita.fr>
	<orbsuml9gw.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 12 Dec 2000 10:33:31 +0100
In-Reply-To: Alexandre Oliva's message of "08 Dec 2000 22:33:19 -0200"
Message-ID: <mv4u28aq904.fsf_-_@nostromo.lrde.epita.fr>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Maybe we should just make the difference between cross-compilation or
not?  Here is what I propose.


1. AC_INIT uses uname to compute CYGWIN32, MINGW32 and EMXOS2,
   hence OBJEXT and EXEEXT.

2. AC_LANG_COMPILER if cross-compiling runs the old Cygwin32 etc.
   tests which involve a compilation (__CYGWIN32__).  It changes OBJEXT
   and EXEEXT if needed.

I don't think we need the test we used to perform (compiling and
checking for the names the compiler leaves around).  But if we want to
run this test, then only when not cross-compiling.

There are other things which might be considered.  After all, when
cross-compiling, how about checking $host to compute CYGWIN32 etc?
This would relieve us from having to compile something.  Sure it is
not `clean', but anyway we are already using tables for this case.
There's no way to be sure of the extensions used on the host platform,
since we'd need to run something on it.


From peter_e@gmx.net Tue Dec 12 11:32:58 2000
Received: from mailout06.sul.t-online.com ([194.25.134.19])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145sMM-0003Rk-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 11:32:58 -0500
Received: from fwd03.sul.t-online.com 
	by mailout06.sul.t-online.com with smtp 
	id 145sJz-0008Q3-00; Tue, 12 Dec 2000 17:30:31 +0100
Received: from peter.localdomain (520083510237-0001@[212.185.245.50]) by fmrl03.sul.t-online.com
	with esmtp id 145sJp-0EuDNQC; Tue, 12 Dec 2000 17:30:21 +0100
Date: Tue, 12 Dec 2000 17:36:53 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: Akim Demaille <akim@epita.fr>
cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Morten Eriksen <mortene@sim.no>, 
     <autoconf@gnu.org>
Subject: Re: AC_OBJEXT again
In-Reply-To: <mv4y9xmq9lu.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille writes:

> * host or build characteristic?

It's neither, nor should it matter.  It's a feature of the compiler.  If
there's an alternative Cygwin compiler that generates .com files, then
that's what EXEEXT is.  If there's a regular Unix compiler that generates
a file 'foo.bazoo' when invoked 'cc ... -o foo', then EXEEXT='.bazoo'.
Also, a compiler suite could theoretically choose just about anything for
OBJEXT, since those files go from the compiler to the linker and neither
the host nor the build operating system or CPU care.

Any solution that uses 'uname', preprocessor symbols, or other random
features of a particular affected system is not going to be general.
That's the imake way.

If Cygwin treats conftest and conftest.exe equivalent in some situations
then you only need to find a sitation where this is not the case and test
with that.  Using cp or rm instead of test -f would be good candidates.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From akim@epita.fr Tue Dec 12 12:17:14 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145t39-0004ri-00; Tue, 12 Dec 2000 12:17:12 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA11401
	Tue, 12 Dec 2000 18:16:26 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 145tAQ-0007WU-00; Tue, 12 Dec 2000 18:24:42 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 145t9l-0005WN-00; Tue, 12 Dec 2000 18:24:01 +0100
To: libtool@gnu.org, Autoconf List <autoconf@gnu.org>,
        Automake List <automake@gnu.org>
Subject: CVS Autotools
From: Akim Demaille <akim@epita.fr>
Date: 12 Dec 2000 18:24:01 +0100
Message-ID: <mv41yvdlfim.fsf@nostromo.lrde.epita.fr>
Lines: 3
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I'm happy to say that running the test suites of both Libtools and of
Automake with CVS Autoconf works fine.


From oliva@lsd.ic.unicamp.br Tue Dec 12 12:32:47 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145tI8-0005lo-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 12:32:45 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBCHTpm02253;
	Tue, 12 Dec 2000 15:29:51 -0200
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Akim Demaille <akim@epita.fr>, Morten Eriksen <mortene@sim.no>,
   <autoconf@gnu.org>
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 12 Dec 2000 15:29:50 -0200
In-Reply-To: Peter Eisentraut's message of "Tue, 12 Dec 2000 17:36:53 +0100 (CET)"
Message-ID: <orr93dbl9t.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 12, 2000, Peter Eisentraut <peter_e@gmx.net> wrote:

> Akim Demaille writes:
>> * host or build characteristic?

> It's neither, nor should it matter.  It's a feature of the compiler.

I wholeheartedly agree.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Tue Dec 12 12:48:44 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145tXf-0006MM-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 12:48:44 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA14536
	Tue, 12 Dec 2000 18:43:52 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 145taz-0007gu-00; Tue, 12 Dec 2000 18:52:09 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 145ta8-0005ZM-00; Tue, 12 Dec 2000 18:51:16 +0100
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Morten Eriksen <mortene@sim.no>,
        <autoconf@gnu.org>
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 12 Dec 2000 18:51:15 +0100
In-Reply-To: Peter Eisentraut's message of "Tue, 12 Dec 2000 17:36:53 +0100 (CET)"
Message-ID: <mv4k895jzos.fsf@nostromo.lrde.epita.fr>
Lines: 33
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Peter" == Peter Eisentraut <peter_e@gmx.net> writes:

Peter> Akim Demaille writes:
>> * host or build characteristic?

Peter> It's neither, nor should it matter.  It's a feature of the
Peter> compiler.  If there's an alternative Cygwin compiler that
Peter> generates .com files, then that's what EXEEXT is.  If there's a
Peter> regular Unix compiler that generates a file 'foo.bazoo' when
Peter> invoked 'cc ... -o foo', then EXEEXT='.bazoo'.  Also, a
Peter> compiler suite could theoretically choose just about anything
Peter> for OBJEXT, since those files go from the compiler to the
Peter> linker and neither the host nor the build operating system or
Peter> CPU care.

What you describe is precisely what I meant by `build': there is not a
single reference to the host in what you describe.  That's also why
just testing the compiler is not what everybody wants.  Why?  Because
some people might use a cross-compiler which produces foo, not
foo.exe, while the machine on which the executable will be installed
needs to be installed as foo.exe.

Peter> Any solution that uses 'uname', preprocessor symbols, or other
Peter> random features of a particular affected system is not going to
Peter> be general.  That's the imake way.

What I described is the rationale for departing from the Autoconf
philosophy: we want to adjust ourselves to something we just can't
check: the host environment.



Why isn't `install' which takes care of this on the *host* machine?


From Tim.Power@reuters.com Tue Dec 12 12:59:48 2000
Received: from eufig1.rit.reuters.com ([194.205.123.3])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145tiN-0006tA-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 12:59:47 -0500
Received: from [196.7.183.5] by eufig1.rit.reuters.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 12 Dec 2000 17:56:59 UT
Received: from eupig1 (unverified) by euvig1.dtc.lon.ime.reuters.com
 (Content Technologies SMTPRS 2.0.15) with ESMTP id <B0009869836@euvig1.dtc.lon.ime.reuters.com> for <autoconf@gnu.org>;
 Tue, 12 Dec 2000 17:53:35 +0000
Message-Id: <B0009869836@euvig1.dtc.lon.ime.reuters.com>
Received: from eungw1.dtc.lon.ime.reuters.com ([132.70.1.161])
 by eupig1.dtc.lon.ime.reuters.com (PMDF V5.2-31 #39917)
 with SMTP id <0G5G00IWFUYYE4@eupig1.dtc.lon.ime.reuters.com> for
 autoconf@gnu.org; Tue, 12 Dec 2000 17:52:10 +0000 (GMT)
Received: by
 eungw1.dtc.lon.ime.reuters.com(Lotus SMTP MTA v4.6.3  (733.2 10-16-1998))
  id 802569B3.0062D2D2 ; Tue, 12 Dec 2000 17:59:24 +0000
Date: Tue, 12 Dec 2000 18:03:56 +0000
From: Tim Power <Tim.Power@reuters.com>
Subject: Config error for Darwin (Mac OS/X)
To: autoconf@gnu.org
MIME-Version: 1.0
X-Lotus-FromDomain: REUTERS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>


I get a sed error, unescaped line termination character during the final stage
of the ./configure on Darwin, it is trying to write the makefiles... has anyone
found a solution to this?


-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.


From oliva@lsd.ic.unicamp.br Tue Dec 12 13:03:26 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145tlr-0006wg-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 13:03:24 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBCI2NO25084;
	Tue, 12 Dec 2000 16:02:23 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
   <autoconf@gnu.org>
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
	<mv4k895jzos.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 12 Dec 2000 16:02:21 -0200
In-Reply-To: Akim Demaille's message of "12 Dec 2000 18:51:15 +0100"
Message-ID: <or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br>
Lines: 25
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 12, 2000, Akim Demaille <akim@epita.fr> wrote:

> What you describe is precisely what I meant by `build': there is not a
> single reference to the host in what you describe.

Nope, the output of the compiler follows conventions of the host
machine, so it's a characteristic of the host.

> Because some people might use a cross-compiler which produces foo,
> not foo.exe, while the machine on which the executable will be
> installed needs to be installed as foo.exe.

Such a cross-compiler would be a broken compiler.  I don't know of any
such cross-compilers, so this point is moot.

> Why isn't `install' which takes care of this on the *host* machine?

Because install isn't part of a cross-build environment, so it knows
only about the build machine, not the host machine?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From corsepiu@faw.uni-ulm.de Tue Dec 12 13:21:13 2000
Received: from www.faw.uni-ulm.de ([134.60.100.4])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145u37-0007LH-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 13:21:13 -0500
Received: (qmail 10647 invoked from network); 12 Dec 2000 18:21:06 -0000
Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174)
  by www-intern.faw.uni-ulm.de with SMTP; 12 Dec 2000 18:21:06 -0000
Received: (qmail 792 invoked by uid 0); 12 Dec 2000 18:21:05 -0000
Received: from dialin52.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.52)
  by mailserv.faw.uni-ulm.de with SMTP; 12 Dec 2000 18:21:05 -0000
Message-ID: <3A366CC4.1AE8421E@faw.uni-ulm.de>
Date: Tue, 12 Dec 2000 19:21:56 +0100
From: Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Reply-To: corsepiu@faw.uni-ulm.de
Organization: Ralf Corsepius
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-SMP i686)
X-Accept-Language: German/Germany, de-DE, en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
 	Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001130121323.11629D-100000@cse.cygnus.com>
			<mv4n1e8fr2f.fsf@nostromo.lrde.epita.fr>
			<51wvdcbj5m.fsf@nfs.trh.sim.no>
			<mv47l5cfl7e.fsf@nostromo.lrde.epita.fr>
			<orbsuml9gw.fsf@guarana.lsd.ic.unicamp.br> <mv4u28aq904.fsf_-_@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille wrote:
> 
> Maybe we should just make the difference between cross-compilation or
> not?  Here is what I propose.
> 
> 1. AC_INIT uses uname to compute CYGWIN32, MINGW32 and EMXOS2,
>    hence OBJEXT and EXEEXT.
> 
> 2. AC_LANG_COMPILER if cross-compiling runs the old Cygwin32 etc.
>    tests which involve a compilation (__CYGWIN32__).  It changes OBJEXT
>    and EXEEXT if needed.
> 
This seems like heading into the wrong direction to me.
 
Morten's thought currently seems to be convincing to me:
Let's try to regard EXEEXT and OBJEXT as a tool's characteristics,
and do neither regard it as build nor host system characteristic.
EXEEXT and OBJEXT should be overrideable however.

Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de


From proski@speakeasy.org Tue Dec 12 13:32:18 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145uDq-0008AH-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 13:32:18 -0500
Received: (qmail 9507 invoked by uid 24233); 12 Dec 2000 18:32:14 -0000
Date: Tue, 12 Dec 2000 13:32:58 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: <autoconf@gnu.org>
Subject: Re: autoconf/161
In-Reply-To: <20001212173201.27675.qmail@sourceware.cygnus.com>
Message-ID: <Pine.LNX.4.30.0012121326250.1504-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 12 Dec 2000 proski@sources.redhat.com wrote:

>      The problem still exists in CVS in AC_LANG_SOURCE(C++)
>      It doesn't appear that the testsuite can catch this problem.

What is really scary is that the testsuite doesn't test C++ at all (but it
has few tests for Fortran 77).

Is it intentional or should it be fixed?

I guess few simple C++ tests wouldn't hurt, as well as a test for language
selection with AC_LANG.

Regards,
Pavel Roskin



From akim@epita.fr Tue Dec 12 13:44:53 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145uQ1-0008Mc-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 13:44:53 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id TAA02267
	Tue, 12 Dec 2000 19:40:32 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 145uCX-0007td-00; Tue, 12 Dec 2000 19:30:57 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 145uBh-0005aG-00; Tue, 12 Dec 2000 19:30:05 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
        <autoconf@gnu.org>
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
	<mv4k895jzos.fsf@nostromo.lrde.epita.fr>
	<or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 12 Dec 2000 19:30:05 +0100
In-Reply-To: Alexandre Oliva's message of "12 Dec 2000 16:02:21 -0200"
Message-ID: <mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>
Lines: 38
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Dec 12, 2000, Akim Demaille <akim@epita.fr> wrote:
>> What you describe is precisely what I meant by `build': there is
>> not a single reference to the host in what you describe.

Alexandre> Nope, the output of the compiler follows conventions of the
Alexandre> host machine, so it's a characteristic of the host.

Come on Alexandre!  I agree the cross compiler has to use the host
ints, chars etc.  But I doubt all the cross compilers in the world do
propagate the right extension by default.

There is the extensions the compiler will use by default.  Call it a
compiler feature if you feel better with it, but at least there is
nothing _necessarily_ linked to host here.  It's a build feature, a
feature measured on the build machine: the default name of the
executables created by the compiler.

Now there is the extensions used by the host.

If the cross-compiler foo is selecting by default the names
corresponding to the host, then fine.

If the cross-compiler bar running under Unix still produces non .exe
by default, then we have to over ride its preference.


>> Because some people might use a cross-compiler which produces foo,
>> not foo.exe, while the machine on which the executable will be
>> installed needs to be installed as foo.exe.

Alexandre> Such a cross-compiler would be a broken compiler.  I don't
Alexandre> know of any such cross-compilers, so this point is moot.

Ah!!!  Then you are telling me we just don't care about __CYGWIN32__
etc.  Then that's fine with me, that's all I wanted to hear.  All we
want to know is the default extensions used by the compiler.  Fine.


From akim@lrde.epita.fr Tue Dec 12 15:18:54 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145vsx-0003We-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 15:18:52 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id VAA08533
	Tue, 12 Dec 2000 21:13:51 GMT
From: akim@lrde.epita.fr
Received: from akim by goa.lrde.epita.fr with local (Exim 3.12 #1 (Debian))
	id 145vw8-0008Ip-00; Tue, 12 Dec 2000 21:22:08 +0100
Date: Tue, 12 Dec 2000 21:22:08 +0100
To: Akim Demaille <akim@epita.fr>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
        Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
        autoconf@gnu.org
Subject: Re: AC_OBJEXT again
Message-ID: <20001212212208.A31811@lrde.epita.fr>
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain> <mv4k895jzos.fsf@nostromo.lrde.epita.fr> <or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br> <mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Tue, Dec 12, 2000 at 07:30:05PM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, Dec 12, 2000 at 07:30:05PM +0100, Akim Demaille wrote:
> 
> Alexandre> Such a cross-compiler would be a broken compiler.  I don't
> Alexandre> know of any such cross-compilers, so this point is moot.
> 
> Ah!!!  Then you are telling me we just don't care about __CYGWIN32__
> etc.  Then that's fine with me, that's all I wanted to hear.  All we
> want to know is the default extensions used by the compiler.  Fine.
> 

Here is my proposal.

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>
	
	EXEEXT and OBJEXT don't need to know $CYGWIN etc.
	
	* acspecific.m4 (AC_EXEEXT, AC_OBJEXT, _AC_EXEEXT, _AC_OBJEXT):
	Move as...
	* aclang.m4 (AC_EXEEXT, AC_OBJEXT, _AC_COMPILER_EXEEXT)
	(_AC_COMPILER_OBJEXT): these.
	(_AC_COMPILER_EXEEXT): Use _AC_LINK_IFELSE.
	Don't depend upon $CYGWIN and the like.
	(_AC_COMPILER_OBJEXT): Model after _AC_COMPILER_EXEEXT.
	Skip more extensions.
	Use _AC_COMPILE_IFELSE.
	
Index: aclang.m4
--- aclang.m4 Tue, 12 Dec 2000 20:23:51 +0100 akim (ace/b/32_aclang.m4 1.5.3.54 644)
+++ aclang.m4 Tue, 12 Dec 2000 21:05:26 +0100 akim (ace/b/32_aclang.m4 1.5.3.54 644)
@@ -613,11 +613,11 @@ AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
 [m4_divert_push([KILL])
 
 AC_BEFORE([$0], [_AC_LANG_COMPILER_WORKS])
-AC_BEFORE([$0], [_AC_EXEEXT])
+AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])
 
 m4_define([_AC_LANG_COMPILER_WORKS], [cross_compiling=maybe])
 
-m4_define([_AC_EXEEXT], [EXEEXT=])
+m4_define([_AC_COMPILER_EXEEXT], [EXEEXT=])
 
 m4_define([AC_LINK_IFELSE],
 [AC_FATAL([All the tests involving linking were disabled by $0])])
@@ -626,6 +626,86 @@ m4_define([AC_LINK_IFELSE],
 ])# # AC_NO_EXECUTABLES
 
 
+
+# ----------------------------- #
+# Computing EXEEXT and OBJEXT.  #
+# ----------------------------- #
+
+
+# Files to ignore
+# ---------------
+# Ignore .d files produced by CFLAGS=-MD.
+#
+# On UWIN (which uses a cc wrapper for MSVC), the compiler also generates
+# a .pdb file
+#
+# When the w32 free Borland C++ command line compiler links a program
+# (conftest.exe), it also produces a file named `conftest.tds' in
+# addition to `conftest.obj'
+
+
+# We must not AU define them, because autoupdate would them remove
+# them, which is right, but Automake 1.4 would remove the support for
+# $(EXEEXT) etc.
+# FIXME: Remove this once Automake fixed.
+AC_DEFUN([AC_EXEEXT],   [])
+AC_DEFUN([AC_OBJEXT],   [])
+
+
+# _AC_COMPILER_EXEEXT
+# -------------------
+# Check for the extension used for executables.  It compiles a test
+# executable.  If this is called, the executable extensions will be
+# automatically used by link commands run by the configure script.
+#
+# This macro is called by AC_LANG_COMPILER, the latter being required
+# by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
+m4_define([_AC_COMPILER_EXEEXT],
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+[# If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
+       break;;
+  esac
+done],
+              [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and link])])
+rm -f conftest$ac_cv_exeext])
+AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl
+ac_exeext=$EXEEXT
+])# _AC_COMPILER_EXEEXT
+
+
+# _AC_COMPILER_OBJEXT
+# -------------------
+# Check the object extension used by the compiler: typically `.o' or
+# `.obj'.  If this is called, some other behaviour will change,
+# determined by ac_objext.
+#
+# This macro is called by AC_LANG_COMPILER, the latter being required
+# by the AC_COMPILE_IFELSE macros, so use _AC_COMPILE_IFELSE.
+m4_define([_AC_COMPILER_OBJEXT],
+[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+       break;;
+  esac
+done],
+                     [AC_MSG_ERROR([cannot compute OBJEXT: cannot compile])])
+rm -f conftest.$ac_cv_objext])
+AC_SUBST([OBJEXT], [$ac_cv_objext])dnl
+ac_objext=$OBJEXT
+])# _AC_COMPILER_OBJEXT
+
+
 # -------------------- #
 # 3b. The C compiler.  #
 # -------------------- #
@@ -752,8 +832,8 @@ AC_DEFUN([AC_PROG_CC],
 _AC_LANG_COMPILER_WORKS
 _AC_LANG_COMPILER_GNU
 GCC=`test $ac_compiler_gnu = yes && echo yes`
-AC_EXPAND_ONCE([_AC_OBJEXT])
-AC_EXPAND_ONCE([_AC_EXEEXT])
+AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl
+AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl
 _AC_PROG_CC_G
 AC_LANG_POP
 ])# AC_PROG_CC
@@ -945,8 +1025,8 @@ AC_DEFUN([AC_PROG_CXX],
 _AC_LANG_COMPILER_WORKS
 _AC_LANG_COMPILER_GNU
 GXX=`test $ac_compiler_gnu = yes && echo yes`
-AC_EXPAND_ONCE([_AC_OBJEXT])
-AC_EXPAND_ONCE([_AC_EXEEXT])
+AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl
+AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl
 _AC_PROG_CXX_G
 AC_LANG_POP
 ])# AC_PROG_CXX
@@ -1044,8 +1124,8 @@ AC_DEFUN([AC_PROG_F77],
 _AC_LANG_COMPILER_GNU
 ac_ext=$ac_save_ext
 G77=`test $ac_compiler_gnu = yes && echo yes`
-AC_EXPAND_ONCE([_AC_OBJEXT])
-AC_EXPAND_ONCE([_AC_EXEEXT])
+AC_EXPAND_ONCE([_AC_COMPILER_OBJEXT])[]dnl
+AC_EXPAND_ONCE([_AC_COMPILER_EXEEXT])[]dnl
 _AC_PROG_F77_G
 AC_LANG_POP
 ])# AC_PROG_F77
Index: acspecific.m4
--- acspecific.m4 Tue, 12 Dec 2000 20:23:51 +0100 akim (ace/25_acspecific 1.114 644)
+++ acspecific.m4 Tue, 12 Dec 2000 20:31:32 +0100 akim (ace/25_acspecific 1.114 644)
@@ -1189,90 +1189,6 @@ m4_define([_AC_MINGW32],
 AU_DEFUN([AC_MINGW32],  [])
 
 
-# We must not AU define them, because autoupdate would them remove
-# them, which is right, but Automake 1.4 would remove the support for
-# $(EXEEXT) etc.
-# FIXME: Remove this once Automake fixed.
-AC_DEFUN([AC_EXEEXT],   [])
-AC_DEFUN([AC_OBJEXT],   [])
-
-
-# _AC_EXEEXT
-# ----------
-# Check for the extension used for executables.  This knows that we
-# add .exe for Cygwin or mingw32.  Otherwise, it compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
-#
-# Ignore .d files produced by CFLAGS=-MD.
-#
-# On UWIN (which uses a cc wrapper for MSVC), the compiler also generates
-# a .pdb file
-#
-# This macro is called by AC_LANG_COMPILER, the latter being required
-# by the AC_COMPILE_IFELSE macros, so use AC_TRY_EVAL.
-m4_define([_AC_EXEEXT],
-[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[cN $MINGW32 $EMXOS2" in
-  *yes*) ac_cv_exeext=.exe ;;
-  *)
-    AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
-    if AC_TRY_EVAL(ac_link); then
-      # If both `conftest.exe' and `conftest' are `present' (well, observable)
-      # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
-      # work properly (i.e., refer to `conftest.exe'), while it won't with
-      # `rm'.
-      for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
-    	case $ac_file in
-    	  *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
-    	  *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
-    	     break;;
-    	esac
-      done
-      rm -f conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-    else
-      AC_MSG_ERROR([cannot compile and link])
-    fi
-    ;;
-esac])
-AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl
-ac_exeext=$EXEEXT
-])# _AC_EXEEXT
-
-
-# _AC_OBJEXT
-# ----------
-# Check the object extension used by the compiler: typically .o or
-# .obj.  If this is called, some other behaviour will change,
-# determined by ac_objext.
-#
-# When the w32 free Borland C++ command line compiler links a program
-# (conftest.exe), it also produces a file named `conftest.tds' in
-# addition to `conftest.obj'
-#
-# Ignore .d files produced by CFLAGS=-MD.
-#
-# This macro is called by AC_LANG_COMPILER, the latter being required
-# by the AC_COMPILE_IFELSE macros, so use AC_TRY_EVAL.
-m4_define([_AC_OBJEXT],
-[AC_CACHE_CHECK([for object suffix], ac_cv_objext,
-[AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
-if AC_TRY_EVAL(ac_compile); then
-  for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
-    case $ac_file in
-      *.$ac_ext | *.tds | *.d ) ;;
-      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
-         break;;
-    esac
-  done
-  rm -f conftest.$ac_objext conftest.$ac_ext
-else
-  AC_MSG_ERROR([cannot compile])
-fi])
-AC_SUBST(OBJEXT, $ac_cv_objext)dnl
-ac_objext=$ac_cv_objext
-])# _AC_OBJEXT
-
 
 
 ## -------------------------- ##
Index: doc/autoconf.texi
--- doc/autoconf.texi Tue, 12 Dec 2000 20:23:51 +0100 akim (ace/16_autoconf.t 1.61.2.91 644)
+++ doc/autoconf.texi Tue, 12 Dec 2000 21:13:31 +0100 akim (ace/16_autoconf.t 1.61.2.91 644)
@@ -4056,16 +4056,17 @@ @node Compilers and Preprocessors, C Com
 the output of the compiler, typically to the empty string if Unix and
 @samp{.exe} if Win32 or OS/2.
 
-@ovindex CYGWIN
-@ovindex EMXOS2
-@ovindex MINGW32
-They also set the shell variable @code{CYGWIN} to @samp{yes} if run in
-the Cygwin environment, @code{EMXOS2} to @samp{yes} if in the EMX
-environment on OS/2, and @code{MINGW32} to @samp{yes} with the MingW32
-compiler.
+@c FIXME:
+@c @ovindex CYGWIN
+@c @ovindex EMXOS2
+@c @ovindex MINGW32
+@c They also set the shell variable @code{CYGWIN} to @samp{yes} if run in
+@c the Cygwin environment, @code{EMXOS2} to @samp{yes} if in the EMX
+@c environment on OS/2, and @code{MINGW32} to @samp{yes} with the MingW32
+@c compiler.
 
 @ovindex OBJEXT
-Finally, they define the output variable @code{OBJEXT} based on the
+They also define the output variable @code{OBJEXT} based on the
 output of the compiler, after .c files have been excluded, typically
 to @samp{o} if Unix, @samp{obj} if Win32.
 



=========================================================================

There remains just one question: what shall we do out of AC_CYGWIN etc.

Frankly, the more I think about them, the more I think they were a mistake
introduced just for AC_EXEEXT and AC_OBJEXT: it allowed to guess the
system type without requiring config.guess.

Today it seems to me that if one depends upon knowing whether the host
is cygwin etc., then she should use AC_CANONICAL_HOST and case over
$host.  I propose either the pure removal of AC_CYGWIN etc. with an
error message telling how to write properly (not too good :), or
simply AU define them as

AC_REQUIRE([AC_CANONICAL_HOST])
if $host_os is cygwin; then
  CYGWIN=yes
else
  CYGWIN=no
fi

etc.



Mo, you are one of the people who most wanted AC_CYGWIN back.  Why
don't you depend on the host type?



From harinath@cs.umn.edu Tue Dec 12 15:20:25 2000
Received: from mail.cs.umn.edu ([128.101.36.200])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145vuS-0003aR-00; Tue, 12 Dec 2000 15:20:24 -0500
Received: from han.cs.umn.edu (IDENT:root@han.cs.umn.edu [128.101.35.134])
	by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id OAA20670;
	Tue, 12 Dec 2000 14:20:23 -0600 (CST)
Received: (from harinath@localhost)
	by han.cs.umn.edu (8.9.3/8.9.0) id OAA09526;
	Tue, 12 Dec 2000 14:20:23 -0600
X-Authentication-Warning: han.cs.umn.edu: harinath set sender to harinath@cs.umn.edu using -f
To: Akim Demaille <akim@epita.fr>
Cc: libtool@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: CVS Autotools
References: <mv41yvdlfim.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
From: Raja R Harinath <harinath@cs.umn.edu>
Date: 12 Dec 2000 14:20:23 -0600
In-Reply-To: <mv41yvdlfim.fsf@nostromo.lrde.epita.fr>
Message-ID: <d9g0jtbddk.fsf@han.cs.umn.edu>
Lines: 35
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.92
MIME-Version: 1.0
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi,

Akim Demaille <akim@epita.fr> writes:
> I'm happy to say that running the test suites of both Libtools and of
> Automake with CVS Autoconf works fine.

The following simple configure.in seems to be causing problems, with
the latest CVS libtool from the multi-language-branch, and CVS
autoconf.

  AC_INIT

  AC_PROG_LIBTOOL

  AC_PROG_CXX

  AC_OUTPUT

It produces:

  configure.in:5: error: AC_LANG_ASSERT: current language is not C++:  C
  ../../aclang.m4:909: AC_PROG_CXXCPP is expanded from...
  configure.in:5: AC_PROG_CXXCPP is required by...
  ./aclocal.m4:786: _AC_LIBTOOL_CXX is expanded from...
  configure.in:5: _AC_LIBTOOL_CXX is required by...
  ./aclocal.m4:759: AC_LIBTOOL_CXX is expanded from...
  configure.in:5: the top level

AC_LIBTOOL_CXX has an AC_REQUIRE({AC_PROG_CXXCPP]) in it.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


From oliva@lsd.ic.unicamp.br Tue Dec 12 15:29:29 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145w3D-0003fU-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 15:29:28 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBCKRjw12954;
	Tue, 12 Dec 2000 18:27:45 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
   <autoconf@gnu.org>
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
	<mv4k895jzos.fsf@nostromo.lrde.epita.fr>
	<or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br>
	<mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 12 Dec 2000 18:27:45 -0200
In-Reply-To: Akim Demaille's message of "12 Dec 2000 19:30:05 +0100"
Message-ID: <or66kp9ygu.fsf@guarana.lsd.ic.unicamp.br>
Lines: 20
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 12, 2000, Akim Demaille <akim@epita.fr> wrote:

> If the cross-compiler bar running under Unix still produces non .exe
> by default, then we have to over ride its preference.

Please find one such cross-compiler before speculating on their
existence.  All compilers I know of that generate executables for
MS-Windows-based platforms generate .EXE extensions.

> Ah!!!  Then you are telling me we just don't care about __CYGWIN32__
> etc.  Then that's fine with me, that's all I wanted to hear.  All we
> want to know is the default extensions used by the compiler.  Fine.

Yep.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Tue Dec 12 15:57:08 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145wTz-00048H-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 15:57:07 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBCKubA14369;
	Tue, 12 Dec 2000 18:56:37 -0200
To: akim@lrde.epita.fr
Cc: Akim Demaille <akim@epita.fr>, Peter Eisentraut <peter_e@gmx.net>,
   Morten Eriksen <mortene@sim.no>, autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
	<mv4k895jzos.fsf@nostromo.lrde.epita.fr>
	<or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br>
	<mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>
	<20001212212208.A31811@lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 12 Dec 2000 18:56:37 -0200
In-Reply-To: akim@lrde.epita.fr's message of "Tue, 12 Dec 2000 21:22:08 +0100"
Message-ID: <orwvd58ika.fsf@guarana.lsd.ic.unicamp.br>
Lines: 25
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 12, 2000, akim@lrde.epita.fr wrote:

> 	EXEEXT and OBJEXT don't need to know $CYGWIN etc.
	
Ok, but I'd rather have the macros renamed to either _AC_HOST_???EXT
or _AC_CC_???EXT (and only test with the C compiler).

But I'm also a bit unsure as to whether we should use _AC_LINK_IFELSE,
given that this macro will tell the compiler to create an executable
named `conftest', and this may disable whatever default extension the
compiler might have selected.  The bad side of this is that, if we
leave the decision up to the compiler, we'll get a.out or a.exe, which
is out of autoconf's file namespace.

> There remains just one question: what shall we do out of AC_CYGWIN etc.

> simply AU define them as [...]

Yep.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From mdejong@cygnus.com Tue Dec 12 17:46:46 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145yC6-0001O2-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 17:46:46 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id OAA29418
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 14:46:45 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id OAA16581; Tue, 12 Dec 2000 14:46:44 -0800 (PST)
Date: Tue, 12 Dec 2000 14:46:44 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
In-Reply-To: <mv4u28aq904.fsf_-_@nostromo.lrde.epita.fr>
Message-ID: <Pine.SOL.3.91.1001212143021.16315B-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 12 Dec 2000, Akim Demaille wrote:

> I don't think we need the test we used to perform (compiling and
> checking for the names the compiler leaves around).  But if we want to
> run this test, then only when not cross-compiling.
> 
> There are other things which might be considered.  After all, when
> cross-compiling, how about checking $host to compute CYGWIN32 etc?
> This would relieve us from having to compile something.  Sure it is
> not `clean', but anyway we are already using tables for this case.
> There's no way to be sure of the extensions used on the host platform,
> since we'd need to run something on it.

If I was compiling with a Linux cross mingw compiler, then
that would work, since I would pass --host=i386-mingw32msvc
to the configure script, it would find i386-mingw32msvc-gcc.

But would this still work if I wanted to compile with
the mingw compiler under Cygwin? The mingw native
compiler is also named gcc, so what --host triple
would I need to pass to the configure script? It
seems like I would need to pass something for the
--host argument, otherwise the configure script
would not think it was a cross compile. Is this
even a cross compile? Well sort of. (ugh)

If I did not pass a host triple, would the
configure script detect Cygwin even though
CC was set to the mingw compiler? That
seems like the logical thing to do if we
only use uname. Problem is, if configure
sets a bunch of Cygwin #defines and then
tries to exec the mingw compiler,
all hell will break loose.

Mo DeJong
Red Hat Inc


From earnie_boyd@yahoo.com Tue Dec 12 18:36:37 2000
Received: from web113.mail.yahoo.com ([205.180.60.84] helo=web113.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145yyL-0003Ev-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 18:36:37 -0500
Received: (qmail 26250 invoked by uid 60001); 12 Dec 2000 23:36:36 -0000
Message-ID: <20001212233636.26249.qmail@web113.yahoomail.com>
Received: from [150.159.224.8] by web113.yahoomail.com; Tue, 12 Dec 2000 15:36:36 PST
Date: Tue, 12 Dec 2000 15:36:36 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
To: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Mo DeJong <mdejong@cygnus.com> wrote:
> 
> But would this still work if I wanted to compile with
> the mingw compiler under Cygwin? The mingw native
> compiler is also named gcc, so what --host triple
> would I need to pass to the configure script? It
> seems like I would need to pass something for the
> --host argument, otherwise the configure script
> would not think it was a cross compile. Is this
> even a cross compile? Well sort of. (ugh)
> 

You would need to
  CC='gcc -mno-cygwin' configure --host=i386-mingw32msvc

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From mdejong@cygnus.com Tue Dec 12 19:00:20 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145zLI-0004Fh-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 19:00:20 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id QAA05643
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 16:00:19 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id QAA17084; Tue, 12 Dec 2000 16:00:19 -0800 (PST)
Date: Tue, 12 Dec 2000 16:00:19 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
In-Reply-To: <20001212233636.26249.qmail@web113.yahoomail.com>
Message-ID: <Pine.SOL.3.91.1001212154129.16315D@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, 12 Dec 2000, Earnie Boyd wrote:

> --- Mo DeJong <mdejong@cygnus.com> wrote:
> > 
> > But would this still work if I wanted to compile with
> > the mingw compiler under Cygwin? The mingw native
> > compiler is also named gcc, so what --host triple
> > would I need to pass to the configure script? It
> > seems like I would need to pass something for the
> > --host argument, otherwise the configure script
> > would not think it was a cross compile. Is this
> > even a cross compile? Well sort of. (ugh)
> > 
> 
> You would need to
>   CC='gcc -mno-cygwin' configure --host=i386-mingw32msvc

Actually, that is yet another wrinkle. I was talking
about using the mingw compiler, not the Cygwin compiler
in mingw mode. In some cases, you just can't use
the Cygwin gcc in mingw mode. For example, C++ code
can not be compiled with Cygwin in mingw mode without
linking to the Cygwin c++ lib (which needs cygwin1.dll).

Me thinks that all of this nastiness is the reason that
AC_CYGWIN was created in the first place. You just
can't figure out what mode the Cygwin compiler is in
by looking at the output of uname. You need to actually
compile something, since the compiler's mode can depend
on the CFLAGS. I guess the question is, should we
try to compile something and the set the $host if the
user did not, or do we just expect that the user is
going to pass the correct --host?

Mo DeJong
Red Hat Inc


From earnie_boyd@yahoo.com Tue Dec 12 19:30:15 2000
Received: from web117.mail.yahoo.com ([205.180.60.91] helo=web117.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145zoE-0005WL-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 19:30:14 -0500
Received: (qmail 3305 invoked by uid 60001); 13 Dec 2000 00:30:13 -0000
Message-ID: <20001213003013.3304.qmail@web117.yahoomail.com>
Received: from [150.159.224.8] by web117.yahoomail.com; Tue, 12 Dec 2000 16:30:13 PST
Date: Tue, 12 Dec 2000 16:30:13 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
To: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Mo DeJong <mdejong@cygnus.com> wrote:
> On Tue, 12 Dec 2000, Earnie Boyd wrote:
> 
> > --- Mo DeJong <mdejong@cygnus.com> wrote:
> > > 
> > > But would this still work if I wanted to compile with
> > > the mingw compiler under Cygwin? The mingw native
> > > compiler is also named gcc, so what --host triple
> > > would I need to pass to the configure script? It
> > > seems like I would need to pass something for the
> > > --host argument, otherwise the configure script
> > > would not think it was a cross compile. Is this
> > > even a cross compile? Well sort of. (ugh)
> > > 
> > 
> > You would need to
> >   CC='gcc -mno-cygwin' configure --host=i386-mingw32msvc
> 
> Actually, that is yet another wrinkle. I was talking
> about using the mingw compiler, not the Cygwin compiler
> in mingw mode. In some cases, you just can't use
> the Cygwin gcc in mingw mode. For example, C++ code
> can not be compiled with Cygwin in mingw mode without
> linking to the Cygwin c++ lib (which needs cygwin1.dll).
> 
> Me thinks that all of this nastiness is the reason that
> AC_CYGWIN was created in the first place. You just
> can't figure out what mode the Cygwin compiler is in
> by looking at the output of uname. You need to actually
> compile something, since the compiler's mode can depend
> on the CFLAGS. I guess the question is, should we
> try to compile something and the set the $host if the
> user did not, or do we just expect that the user is
> going to pass the correct --host?
> 

Expect the user to supply the correct --host.  The output of uname is build
specific so therefore you must be specific about what it is you want for host
if host!=build.  AC_CYGWIN and AC_MINGW should disappear.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From oliva@lsd.ic.unicamp.br Tue Dec 12 19:50:16 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14607b-0005o7-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 19:50:16 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBD0o9B22568;
	Tue, 12 Dec 2000 22:50:09 -0200
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001212154129.16315D@cse.cygnus.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 12 Dec 2000 22:50:07 -0200
In-Reply-To: Mo DeJong's message of "Tue, 12 Dec 2000 16:00:19 -0800 (PST)"
Message-ID: <orzoi15em8.fsf@guarana.lsd.ic.unicamp.br>
Lines: 13
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 12, 2000, Mo DeJong <mdejong@cygnus.com> wrote:

> I guess the question is, should we try to compile something and the
> set the $host if the user did not, or do we just expect that the
> user is going to pass the correct --host?

Methinks config.guess should do it.  Can't it tell cygwin from mingw?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From earnie_boyd@yahoo.com Tue Dec 12 20:01:56 2000
Received: from web106.mail.yahoo.com ([205.180.60.73] helo=web106.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1460Iu-0005z4-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 20:01:56 -0500
Received: (qmail 16086 invoked by uid 60001); 13 Dec 2000 01:01:55 -0000
Message-ID: <20001213010155.16085.qmail@web106.yahoomail.com>
Received: from [150.159.224.8] by web106.yahoomail.com; Tue, 12 Dec 2000 17:01:55 PST
Date: Tue, 12 Dec 2000 17:01:55 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:
> On Dec 12, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
> 
> > I guess the question is, should we try to compile something and the
> > set the $host if the user did not, or do we just expect that the
> > user is going to pass the correct --host?
> 
> Methinks config.guess should do it.  Can't it tell cygwin from mingw?
> 

With an appropriate uname, yes.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From oliva@lsd.ic.unicamp.br Tue Dec 12 23:05:06 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1463A9-0004ud-00
	for <autoconf@gnu.org>; Tue, 12 Dec 2000 23:05:05 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBD44wA28856;
	Wed, 13 Dec 2000 02:04:58 -0200
To: Earnie Boyd <earnie_boyd@yahoo.com>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
References: <20001213010155.16085.qmail@web106.yahoomail.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 13 Dec 2000 02:04:58 -0200
In-Reply-To: Earnie Boyd's message of "Tue, 12 Dec 2000 17:01:55 -0800 (PST)"
Message-ID: <oraea155lh.fsf@guarana.lsd.ic.unicamp.br>
Lines: 21
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 12, 2000, Earnie Boyd <earnie_boyd@yahoo.com> wrote:

> --- Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:
>> On Dec 12, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
>> 
>> > I guess the question is, should we try to compile something and the
>> > set the $host if the user did not, or do we just expect that the
>> > user is going to pass the correct --host?
>> 
>> Methinks config.guess should do it.  Can't it tell cygwin from mingw?
>> 

> With an appropriate uname, yes.

It could use $CC_FOR_BUILD instead.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Wed Dec 13 07:33:53 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146B6X-0002CA-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 07:33:53 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA07296
	Wed, 13 Dec 2000 13:32:16 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146BD8-0002Gs-00; Wed, 13 Dec 2000 13:40:42 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146BCI-0001Qx-00; Wed, 13 Dec 2000 13:39:50 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
        autoconf@gnu.org
Subject: Re: AC_OBJEXT again
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
	<mv4k895jzos.fsf@nostromo.lrde.epita.fr>
	<or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br>
	<mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>
	<20001212212208.A31811@lrde.epita.fr>
	<orwvd58ika.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 13:39:49 +0100
In-Reply-To: Alexandre Oliva's message of "12 Dec 2000 18:56:37 -0200"
Message-ID: <mv4bsugbilm.fsf@nostromo.lrde.epita.fr>
Lines: 31
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| On Dec 12, 2000, akim@lrde.epita.fr wrote:
| > 	EXEEXT and OBJEXT don't need to know $CYGWIN etc.
|         
| Ok, but I'd rather have the macros renamed to either _AC_HOST_???EXT
| or _AC_CC_???EXT (and only test with the C compiler).

I'm applying the patch as a starting point, these points are still to
be discussed.

Why should we limit ourselves to AC_PROG_CC?  Technically it might be
a bit tricky to introduce asymmetry between the AC_LANG_COMPILER, but
I'm not sure to understand well the point either...

| But I'm also a bit unsure as to whether we should use _AC_LINK_IFELSE,
| given that this macro will tell the compiler to create an executable
| named `conftest', and this may disable whatever default extension the
| compiler might have selected.

Good point.

| The bad side of this is that, if we
| leave the decision up to the compiler, we'll get a.out or a.exe, which
| is out of autoconf's file namespace.

Bad point.

So the real question is, what happens when you use -o conftest?  Will
the cross-compiler and native Win compilers produce conftest, or/and
conftest.exe?  As long as conftest.exe is created when one `-o
conftest', we're doing good.


From akim@epita.fr Wed Dec 13 07:35:58 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146B8Y-0002Es-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 07:35:58 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA07511
	Wed, 13 Dec 2000 13:35:08 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146BFt-0002HV-00; Wed, 13 Dec 2000 13:43:33 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146BFN-0001RS-00; Wed, 13 Dec 2000 13:43:01 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001212143021.16315B-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 13:43:00 +0100
In-Reply-To: Mo DeJong's message of "Tue, 12 Dec 2000 14:46:44 -0800 (PST)"
Message-ID: <mv47l54bigb.fsf@nostromo.lrde.epita.fr>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:

Mo> But would this still work if I wanted to compile with the mingw
Mo> compiler under Cygwin? The mingw native compiler is also named
Mo> gcc, so what --host triple would I need to pass to the configure
Mo> script? It seems like I would need to pass something for the
Mo> --host argument, otherwise the configure script would not think it
Mo> was a cross compile. Is this even a cross compile? Well sort
Mo> of. (ugh)

The name of the C compiler is tied to $host.  Sure it tries $host-gcc
etc., but you can set $host on the one hand, and CC on the other.  So
I don't think there are any problems here.

Mo> If I did not pass a host triple, would the configure script detect
Mo> Cygwin even though CC was set to the mingw compiler? That seems
Mo> like the logical thing to do if we only use uname. Problem is, if
Mo> configure sets a bunch of Cygwin #defines and then tries to exec
Mo> the mingw compiler, all hell will break loose.

As long as $host != $build, there is cross compilation.  We no longer
depend upon the compiler to test cross compilation situations.


From akim@epita.fr Wed Dec 13 07:38:00 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146BAV-0002b0-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 07:38:00 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA07770
	Wed, 13 Dec 2000 13:37:15 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146BHx-0002Jf-00; Wed, 13 Dec 2000 13:45:41 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146BHR-0001Ry-00; Wed, 13 Dec 2000 13:45:09 +0100
To: Tim Power <Tim.Power@reuters.com>
Cc: autoconf@gnu.org
Subject: Re: Config error for Darwin (Mac OS/X)
References: <B0009869836@euvig1.dtc.lon.ime.reuters.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 13:45:09 +0100
In-Reply-To: Tim Power's message of "Tue, 12 Dec 2000 18:03:56 +0000"
Message-ID: <mv43dfsbicq.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Tim" == Tim Power <Tim.Power@reuters.com> writes:

Tim> I get a sed error, unescaped line termination character during
Tim> the final stage of the ./configure on Darwin, it is trying to
Tim> write the makefiles... has anyone found a solution to this?

Hi,

Could you provide some background?  What are you talking about?  What
package?  What version?  What traces?  What error message from sed?


From akim@epita.fr Wed Dec 13 07:39:29 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146BBw-0002yj-00; Wed, 13 Dec 2000 07:39:28 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id NAA07904
	Wed, 13 Dec 2000 13:38:42 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146BJL-0002LO-00; Wed, 13 Dec 2000 13:47:07 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146BIp-0001SB-00; Wed, 13 Dec 2000 13:46:35 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: <autoconf@gnu.org>
Subject: Re: autoconf/161
References: <Pine.LNX.4.30.0012121326250.1504-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 13:46:35 +0100
In-Reply-To: Pavel Roskin's message of "Tue, 12 Dec 2000 13:32:58 -0500 (EST)"
Message-ID: <mv4y9xka3pw.fsf@nostromo.lrde.epita.fr>
Lines: 15
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Pavel" == Pavel Roskin <proski@gnu.org> writes:

Pavel> What is really scary is that the testsuite doesn't test C++ at
Pavel> all (but it has few tests for Fortran 77).

Pavel> Is it intentional or should it be fixed?

Should be fixed.  I'd suggest a huge configure.in which contains all
the macros of syntax.at.  Experience might later tell us this is
unrealistic, but let's try that first.

Pavel> I guess few simple C++ tests wouldn't hurt, as well as a test
Pavel> for language selection with AC_LANG.

This would be good too.


From akim@epita.fr Wed Dec 13 08:15:25 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Bki-0003pl-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 08:15:24 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA11392
	Wed, 13 Dec 2000 14:14:29 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146Bry-0002Uc-00; Wed, 13 Dec 2000 14:22:54 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146BrT-0004eU-00; Wed, 13 Dec 2000 14:22:23 +0100
To: Tim Power <Tim.Power@reuters.com>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: Config error for Darwin (Mac OS/X)
References: <B0009902077@euvig1.dtc.lon.ime.reuters.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 14:22:22 +0100
In-Reply-To: Tim Power's message of "Wed, 13 Dec 2000 12:55:57 +0000"
Message-ID: <mv4ofyga229.fsf@nostromo.lrde.epita.fr>
Lines: 31
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| OpenLDAP 2.0.7
| 
| The error happens when it is trying to read in all the makefiles and
| substitute the variables for teh values that it has found during the
| configure.  The configure works perfectly expect for the makefile bit.
| 
| "sed: 45: conftest.s1: unescaped newline inside substitute pattern"
| this error happens for each Makefile it attempts to perform the
| substitution on.
| 
| The for loop after the definition of $CONFIG_FILES is where the error
| is generated.  It is either:
| 
| ac_file_in='echo "$ac_file"| sed 's%[^:]*:%%'`     or
| ac_file=`echo "$ac_file"| sed 's%:.*%%'`;;

What generation of Autoconf generated that configure?  It looks like
code from 2.13.  Please, download
ftp://alpha.gnu.org/gnu/cvs/autoconf.tar.gz, regenerate the configure
from OpenLDAP with this Autoconf, and tell us if the bug is still
present.


BTW, according to the error message, the error is not in those two
lines, but in the file named `conftest.s1'.


Finally, (now that I switched my brains on), just remember you are not
allowed to have newlines in substitutions.  Can you show what you
actually typed?  Do you happen to have directories with \n in the name?


From larsa@sim.no Wed Dec 13 08:51:19 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146CJS-0005Ll-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 08:51:18 -0500
Received: (qmail 16975 invoked by uid 2000); 13 Dec 2000 13:51:13 -0000
Date: Wed, 13 Dec 2000 14:51:13 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: akim@lrde.epita.fr
Cc: Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
  Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
  autoconf@gnu.org
Subject: Re: AC_OBJEXT again
Message-ID: <20001213145113.A16201@sim.no>
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain> <mv4k895jzos.fsf@nostromo.lrde.epita.fr> <or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br> <mv41yvdjxw2.fsf@nostromo.lrde.epita.fr> <20001212212208.A31811@lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20001212212208.A31811@lrde.epita.fr>; from akim@lrde.epita.fr on Tue, Dec 12, 2000 at 09:22:08PM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, Dec 12, 2000 at 09:22:08PM +0100, akim@lrde.epita.fr wrote:
: +# Ignore .d files produced by CFLAGS=-MD.
: +#
: +# On UWIN (which uses a cc wrapper for MSVC), the compiler also generates
: +# a .pdb file
: +#
: +# When the w32 free Borland C++ command line compiler links a program
: +# (conftest.exe), it also produces a file named `conftest.tds' in
: +# addition to `conftest.obj'

Regardnig the .tds file created with the Borland compiler wrapper, it is
actually a problem that lies elsewhere.

The problem is that the compile test is invoked like this:

  $CC -o conftest -c conftest.c

The compiler wrappers we've written does pretty basic translation between
standard options and native compiler options.  The -o option on the above
line triggers the linking of an executable, which causes all sorts of
other files to be created, including the .exe file which becomes the
current OBJEXT on our projects when we compile on Cygwin :-(.  When we've
tweaked the wrappers to parse "-c" as "compile only", this problem will
hopefully be fixed.

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From earnie_boyd@yahoo.com Wed Dec 13 09:01:39 2000
Received: from web119.mail.yahoo.com ([205.180.60.120] helo=web119.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146CTS-0005VP-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 09:01:38 -0500
Received: (qmail 24108 invoked by uid 60001); 13 Dec 2000 14:01:36 -0000
Message-ID: <20001213140136.24107.qmail@web119.yahoomail.com>
Received: from [216.192.155.2] by web119.yahoomail.com; Wed, 13 Dec 2000 06:01:36 PST
Date: Wed, 13 Dec 2000 06:01:36 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_OBJEXT again
To: Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>,
  autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Akim Demaille <akim@epita.fr> wrote:
> 
> So the real question is, what happens when you use -o conftest?  Will
> the cross-compiler and native Win compilers produce conftest, or/and
> conftest.exe?  As long as conftest.exe is created when one `-o
> conftest', we're doing good.
> 

AFAIKT, we're doing good.  -o conftest will produce conftest.exe assuming we're
linking.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From earnie_boyd@yahoo.com Wed Dec 13 09:03:38 2000
Received: from web119.mail.yahoo.com ([205.180.60.120] helo=web119.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146CVO-0005WK-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 09:03:38 -0500
Received: (qmail 24321 invoked by uid 60001); 13 Dec 2000 14:03:37 -0000
Message-ID: <20001213140337.24320.qmail@web119.yahoomail.com>
Received: from [216.192.155.2] by web119.yahoomail.com; Wed, 13 Dec 2000 06:03:37 PST
Date: Wed, 13 Dec 2000 06:03:37 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:
> On Dec 12, 2000, Earnie Boyd <earnie_boyd@yahoo.com> wrote:
> 
> > --- Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:
> >> On Dec 12, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
> >> 
> >> > I guess the question is, should we try to compile something and the
> >> > set the $host if the user did not, or do we just expect that the
> >> > user is going to pass the correct --host?
> >> 
> >> Methinks config.guess should do it.  Can't it tell cygwin from mingw?
> >> 
> 
> > With an appropriate uname, yes.
> 
> It could use $CC_FOR_BUILD instead.
> 

Does config.guess use the value of CC_FOR_BUILD?  How will that help when
CC_FOR_BUILD==gcc?

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From akim@epita.fr Wed Dec 13 10:28:19 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146DpL-0000aM-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 10:28:19 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA10200
	Wed, 13 Dec 2000 16:27:29 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146Dwi-0003Lr-00; Wed, 13 Dec 2000 16:35:56 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146DwC-0000Bx-00; Wed, 13 Dec 2000 16:35:24 +0100
To: Tim Power <Tim.Power@reuters.com>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: Config error for Darwin (Mac OS/X)
References: <B0009907922@euvig1.dtc.lon.ime.reuters.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 16:35:24 +0100
In-Reply-To: Tim Power's message of "Wed, 13 Dec 2000 14:57:49 +0000"
Message-ID: <mv4k8949vwj.fsf@nostromo.lrde.epita.fr>
Lines: 13
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Tim" == Tim Power <Tim.Power@reuters.com> writes:

Tim> It is autoconf 2.13.

Tim> Ok so I've downloaded the file, untar'ed it.  But I'm at a bit of
Tim> a loss on how to get it to generate a new OpenLDAP configure
Tim> file... A bit of a novice u c.

Well, please first complain to the maintainers of OpenLDAP, explain
precisely what happens, and include all the information I asked you
(for instance you still don't show the line you typed).  If you don't
give them more information than you gave us, they won't be able to
help you either.  They will know is Autoconf is guilty or not.


From akim@epita.fr Wed Dec 13 10:47:28 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146E7p-0001bm-00; Wed, 13 Dec 2000 10:47:26 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA12285
	Wed, 13 Dec 2000 16:46:35 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146EFB-0003Tc-00; Wed, 13 Dec 2000 16:55:01 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146EEg-0000CM-00; Wed, 13 Dec 2000 16:54:30 +0100
To: autoconf@gnu.org, APatche <autoconf-patches@gnu.org>
Subject: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.LNX.4.30.0012121713350.1538-100000@peter.localdomain>
	<mv4k895jzos.fsf@nostromo.lrde.epita.fr>
	<or4s09bjrm.fsf@guarana.lsd.ic.unicamp.br>
	<mv41yvdjxw2.fsf@nostromo.lrde.epita.fr>
	<20001212212208.A31811@lrde.epita.fr>
	<orwvd58ika.fsf@guarana.lsd.ic.unicamp.br>
	<mv4bsugbilm.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 16:54:30 +0100
In-Reply-To: Akim Demaille's message of "13 Dec 2000 13:39:49 +0100"
Message-ID: <mv47l549v0p.fsf_-_@nostromo.lrde.epita.fr>
Lines: 272
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Here is my proposal.


Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>
	Put back AC_CYGWIN etc. under the responsibility of the
	configure.in maintainer, but discourage its use.

	* acspecific.m4 (_AC_CYGWIN, _AC_MINGW32, _AC_EMXOS2): Rename as...
	(AC_CYGWIN, AC_MINGW32, AC_EMXOS2): these.
	AU defined on top of AC_CANONICAL_HOST and $host_os.
	* tests/mktests.sh (update_exclude_list): Add AC_CYGWIN,
	AC_MINGW32, and AC_EMXOS2.

Index: acoldnames.m4
===================================================================
RCS file: /cvs/autoconf/acoldnames.m4,v
retrieving revision 1.14
diff -u -u -r1.14 acoldnames.m4
--- acoldnames.m4 2000/10/16 18:25:56 1.14
+++ acoldnames.m4 2000/12/13 13:20:29
@@ -77,6 +77,7 @@
 AU_ALIAS([AC_WORDS_BIGENDIAN],	[AC_C_BIGENDIAN])
 AU_ALIAS([AC_YYTEXT_POINTER],	[AC_DECL_YYTEXT])
 AU_ALIAS([AM_CYGWIN32],		[AC_CYGWIN32])
+AU_ALIAS([AC_CYGWIN32],         [AC_CYGWIN])
 AU_ALIAS([AM_EXEEXT],		[AC_EXEEXT])
 # We cannot do this, because in libtool.m4 yet they provide
 # this update.  Some solution is needed.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.323
diff -u -u -r1.323 acspecific.m4
--- acspecific.m4 2000/12/13 12:36:54 1.323
+++ acspecific.m4 2000/12/13 13:20:29
@@ -1138,55 +1138,50 @@
 ## ------------------------------------ ##
 
 
-
-# _AC_CYGWIN
-# ----------
+# AC_CYGWIN
+# ---------
 # Check for Cygwin.  This is a way to set the right value for
 # EXEEXT.
-m4_define([_AC_CYGWIN],
-[AC_CACHE_CHECK(for Cygwin environment, ac_cv_cygwin,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
-[#ifndef __CYGWIN__
-# define __CYGWIN__ __CYGWIN32__
-#endif
-return __CYGWIN__;])],
-                   [ac_cv_cygwin=yes],
-                   [ac_cv_cygwin=no])])
-test "$ac_cv_cygwin" = yes && CYGWIN=yes[]dnl
-])# _AC_CYGWIN
+AU_DEFUN([AC_CYGWIN],
+[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+AC_DIAGNOSE([obsolete],
+            [$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
+case $host_os in
+  *cygwin* ) CYGWIN=yes;;
+         * ) CYGWIN=no;;
+esac
+])# AC_CYGWIN
 
 
-# _AC_EMXOS2
-# ----------
+# AC_EMXOS2
+# ---------
 # Check for EMX on OS/2.  This is another way to set the right value
 # for EXEEXT.
-m4_define([_AC_EMXOS2],
-[AC_CACHE_CHECK(for EMX OS/2 environment, ac_cv_emxos2,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __EMX__;])],
-                   [ac_cv_emxos2=yes],
-                   [ac_cv_emxos2=no])])
-test "$ac_cv_emxos2" = yes && EMXOS2=yes[]dnl
-])# _AC_EMXOS2
+AU_DEFUN([AC_EMXOS2],
+[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+AC_DIAGNOSE([obsolete],
+            [$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
+case $host_os in
+  *emx* ) EMXOS2=yes;;
+      * ) EMXOS2=no;;
+esac
+])# AC_EMXOS2
 
 
-# _AC_MINGW32
-# -----------
+# AC_MINGW32
+# ----------
 # Check for mingw32.  This is another way to set the right value for
 # EXEEXT.
-m4_define([_AC_MINGW32],
-[AC_CACHE_CHECK(for mingw32 environment, ac_cv_mingw32,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [return __MINGW32__;])],
-                   [ac_cv_mingw32=yes],
-                   [ac_cv_mingw32=no])])
-test "$ac_cv_mingw32" = yes && MINGW32=yes[]dnl
-])# _AC_MINGW32
-
+AU_DEFUN([AC_MINGW32],
+[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+AC_DIAGNOSE([obsolete],
+            [$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
+case $host_os in
+  *mingw32* ) MINGW32=yes;;
+          * ) MINGW32=no;;
+esac
+])# AC_MINGW32
 
-# The user is no longer supposed to call these macros.
-AU_DEFUN([AC_CYGWIN],   [])
-AU_DEFUN([AC_CYGWIN32], [])
-AU_DEFUN([AC_EMXOS2],   [])
-AU_DEFUN([AC_MINGW32],  [])
 
 
 
Index: doc/autoconf.texi
===================================================================
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.405
diff -u -u -r1.405 autoconf.texi
--- doc/autoconf.texi 2000/12/13 12:36:54 1.405
+++ doc/autoconf.texi 2000/12/13 13:20:47
@@ -4056,15 +4056,6 @@
 the output of the compiler, typically to the empty string if Unix and
 @samp{.exe} if Win32 or OS/2.
 
-@c FIXME:
-@c @ovindex CYGWIN
-@c @ovindex EMXOS2
-@c @ovindex MINGW32
-@c They also set the shell variable @code{CYGWIN} to @samp{yes} if run in
-@c the Cygwin environment, @code{EMXOS2} to @samp{yes} if in the EMX
-@c environment on OS/2, and @code{MINGW32} to @samp{yes} with the MingW32
-@c compiler.
-
 @ovindex OBJEXT
 They also define the output variable @code{OBJEXT} based on the
 output of the compiler, after .c files have been excluded, typically
@@ -8876,9 +8867,18 @@
 
 @defmac AC_CYGWIN
 @maindex CYGWIN
-Checked for the Cygwin environment in which case the shell variable
-@code{CYGWIN} is set to @samp{yes}.  @code{AC_EXEEXT} now handles this
-task.
+Check for the Cygwin environment in which case the shell variable
+@code{CYGWIN} is set to @samp{yes}.  Don't use this macro, the dignified
+means to check the nature of the host is using
+@code{AC_CANONICAL_HOST}.  As a matter of fact this macro is defined as:
+
+@example
+AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+case $host_os in
+  *cygwin* ) CYGWIN=yes;;
+         * ) CYGWIN=no;;
+esac
+@end example
 @end defmac
 
 @defmac AC_DECL_YYTEXT
@@ -8921,26 +8921,15 @@
 @defmac AC_EXEEXT
 @maindex EXEEXT
 @ovindex EXEEXT
-@ovindex CYGWIN
-@ovindex EMXOS2
-@ovindex MINGW32
 Defined the output variable @code{EXEEXT} based on the output of the
-compiler.  Typically set to empty string if Unix and @samp{.exe} if
-Win32 or OS/2.
-
-This macro sets the shell variable @code{CYGWIN} to @samp{yes} if run in
-the Cygwin environment, @code{EMXOS2} to @samp{yes} if in the EMX
-environment on OS/2, and @code{MINGW32} to @samp{yes} with the MingW32
-compiler.
-
-Now handled by the macros checking for the compiler.
+compiler, which is now done automatically.  Typically set to empty
+string if Unix and @samp{.exe} if Win32 or OS/2.
 @end defmac
 
 @defmac AC_EMXOS2
 @maindex EMXOS2
-Checks for the EMX environment on OS/2 in which case the shell variable
-@code{EMXOS2} is set to @samp{yes}.  @code{AC_EXEEXT} now handles this
-task.
+Similar to @code{AC_CYGWIN} but checks for the EMX environment on OS/2
+and sets @code{EMXOS2}.
 @end defmac
 
 @defmac AC_ERROR
@@ -9142,9 +9131,8 @@
 
 @defmac AC_MINGW32
 @maindex MINGW32
-Checked for the MingW32 compiler environment, in which case the shell
-variable @code{MINGW32} is set to @samp{yes}.  @code{AC_EXEEXT} now
-handles this task.
+Similar to @code{AC_CYGWIN} but checks for the MingW32 compiler
+environment and sets @code{MINGW32}.
 @end defmac
 
 @defmac AC_MINUS_C_MINUS_O
@@ -9168,7 +9156,7 @@
 Defined the output variable @code{OBJEXT} based on the output of the
 compiler, after .c files have been excluded.  Typically set to @samp{o}
 if Unix, @samp{obj} if Win32.  Now the compiler checking macros handle
-this.
+this automatically.
 @end defmac
 
 @defmac AC_OBSOLETE (@var{this-macro-name}, @ovar{suggestion})
Index: tests/mktests.sh
===================================================================
RCS file: /cvs/autoconf/tests/mktests.sh,v
retrieving revision 1.12
diff -u -u -r1.12 mktests.sh
--- tests/mktests.sh 2000/12/07 15:21:55 1.12
+++ tests/mktests.sh 2000/12/13 13:20:47
@@ -170,9 +170,12 @@
 #    need arguments and are tested elsewhere.
 # AC_INIT and AC_OUTPUT
 #    are already in `configure.in'.
+# AC_CYGWIN, AC_MINGW32, AC_EMXOS2
+#    are using AC_REQUIRE.
 update_exclude_list='^AC_LANG_RESTORE$
 ^AC_LINK_FILES|AC_PREREQ$
-^AC_(INIT|OUTPUT)$'
+^AC_(INIT|OUTPUT)$
+^AC_(CYGWIN|MINGW32|EMXOS2)$'
 
 # syntax_exclude_egrep --
 # Build a single egrep pattern out of filter_macros_list.
Index: tests/update.at
===================================================================
RCS file: /cvs/autoconf/tests/update.at,v
retrieving revision 1.3
diff -u -u -r1.3 update.at
--- tests/update.at 2000/11/29 14:58:44 1.3
+++ tests/update.at 2000/12/13 13:20:47
@@ -6,12 +6,9 @@
 AT_CHECK_UPDATE([AC_CHECKING])
 AT_CHECK_UPDATE([AC_CHECK_TOOL_PREFIX])
 AT_CHECK_UPDATE([AC_COMPILE_CHECK])
-AT_CHECK_UPDATE([AC_CYGWIN])
-AT_CHECK_UPDATE([AC_CYGWIN32])
 AT_CHECK_UPDATE([AC_DECL_YYTEXT])
 AT_CHECK_UPDATE([AC_DIR_HEADER])
 AT_CHECK_UPDATE([AC_DYNIX_SEQ])
-AT_CHECK_UPDATE([AC_EMXOS2])
 AT_CHECK_UPDATE([AC_ENABLE])
 AT_CHECK_UPDATE([AC_F77_NAME_MANGLING])
 AT_CHECK_UPDATE([AC_HAVE_LIBRARY])
@@ -24,7 +21,6 @@
 AT_CHECK_UPDATE([AC_LANG_SAVE])
 AT_CHECK_UPDATE([AC_LONG_64_BITS])
 AT_CHECK_UPDATE([AC_MEMORY_H])
-AT_CHECK_UPDATE([AC_MINGW32])
 AT_CHECK_UPDATE([AC_OUTPUT_COMMANDS])
 AT_CHECK_UPDATE([AC_RSH])
 AT_CHECK_UPDATE([AC_SCO_INTL])


From akim@epita.fr Wed Dec 13 10:50:28 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146EAl-0001gs-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 10:50:27 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA12609
	Wed, 13 Dec 2000 16:49:41 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146EIB-0003Vp-00; Wed, 13 Dec 2000 16:58:07 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146EHh-0000Cf-00; Wed, 13 Dec 2000 16:57:37 +0100
To: Tim Power <Tim.Power@reuters.com>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: Config error for Darwin (Mac OS/X)
References: <B0009910170@euvig1.dtc.lon.ime.reuters.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 16:57:36 +0100
In-Reply-To: Tim Power's message of "Wed, 13 Dec 2000 15:35:51 +0000"
Message-ID: <mv4y9xk8gb3.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Tim" == Tim Power <Tim.Power@reuters.com> writes:

Tim> All I typed was ./configure if that is what u mean.

Tim> Ok I'll do that and thanks for your help.  Seems no one has
Tim> started trying to port it to Darwin yet.

I doubt it is related to Darwin in any way.  Please, send us the file
named config.status.  And keep the CC to the list, please.


From Tim.Power@reuters.com Wed Dec 13 11:21:39 2000
Received: from eufig1.rit.reuters.com ([194.205.123.3])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146Eew-0002XJ-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 11:21:39 -0500
Received: from [196.7.183.5] by eufig1.rit.reuters.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 13 Dec 2000 16:18:47 UT
Received: from eupig1 (unverified) by euvig1.dtc.lon.ime.reuters.com
 (Content Technologies SMTPRS 2.0.15) with ESMTP id <B0009913074@euvig1.dtc.lon.ime.reuters.com>;
 Wed, 13 Dec 2000 16:15:20 +0000
Message-Id: <B0009913074@euvig1.dtc.lon.ime.reuters.com>
Received: from eungw1.dtc.lon.ime.reuters.com ([132.70.1.161])
 by eupig1.dtc.lon.ime.reuters.com (PMDF V5.2-31 #39917)
 with SMTP id <0G5I0045TL37O6@eupig1.dtc.lon.ime.reuters.com>; Wed,
 13 Dec 2000 16:13:56 +0000 (GMT)
Received: by
 eungw1.dtc.lon.ime.reuters.com(Lotus SMTP MTA v4.6.3  (733.2 10-16-1998))
  id 802569B4.0059D298 ; Wed, 13 Dec 2000 16:21:06 +0000
Date: Wed, 13 Dec 2000 16:25:35 +0000
From: Tim Power <Tim.Power@reuters.com>
Subject: Re: Config error for Darwin (Mac OS/X)
To: Akim Demaille <akim@epita.fr>
Cc: autoconf@gnu.org
MIME-Version: 1.0
X-Lotus-FromDomain: REUTERS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>


Here it is (config.status):

#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host localhost:
#
# ./configure
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
for ac_option
do
  case "$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running ${CONFIG_SHELL-/bin/sh} ./configure  --no-create
--no-recursion"
    exec ${CONFIG_SHELL-/bin/sh} ./configure  --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    echo "./config.status generated by autoconf version 2.13.1"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "$ac_cs_usage"; exit 0 ;;
  *) echo "$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=.
ac_given_INSTALL="/usr/bin/install -c"

trap 'rm -fr Makefile doc/Makefile doc/man/Makefile doc/man/man1/Makefile
doc/man/man3/Makefile doc/man/man5/Makefile doc/man/man8/Makefile
clients/Makefile clients/finger/Makefile clients/fax500/Makefile
clients/gopher/Makefile clients/mail500/Makefile clients/rcpt500/Makefile
clients/ud/Makefile clients/maildap/Makefile clients/tools/Makefile
include/Makefile libraries/Makefile            libraries/libavl/Makefile
servers/slapd/Makefile servers/slapd/back-dnssrv/Makefile
servers/slapd/back-ldap/Makefile servers/slapd/back-ldbm/Makefile
servers/slapd/back-passwd/Makefile servers/slapd/back-shell/Makefile
servers/slapd/back-sql/Makefile servers/slapd/shell-backends/Makefile
servers/slapd/tools/Makefile servers/slurpd/Makefile tests/Makefile
tests/progs/Makefile contrib/Makefile contrib/saucer/Makefile
include/portable.h include/ldap_features.h include/lber_types.h conftest*; exit
1' 1 2 15

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
/^[        ]*VPATH[            ]*=[^:]*$/d

s%@SHELL@%/bin/sh%g
s%@CFLAGS@%-g -O2%g
s%@CPPFLAGS@%%g
s%@CXXFLAGS@%%g
s%@FFLAGS@%%g
s%@DEFS@%-DHAVE_CONFIG_H%g
s%@LDFLAGS@%%g
s%@LIBS@%%g
s%@exec_prefix@%${prefix}%g
s%@prefix@%/usr/local%g
s%@program_transform_name@%s,x,x,%g
s%@bindir@%${exec_prefix}/bin%g
s%@sbindir@%${exec_prefix}/sbin%g
s%@libexecdir@%${exec_prefix}/libexec%g
s%@datadir@%${prefix}/share%g
s%@sysconfdir@%${prefix}/etc%g
s%@sharedstatedir@%${prefix}/com%g
s%@localstatedir@%${prefix}/var%g
s%@libdir@%${exec_prefix}/lib%g
s%@includedir@%${prefix}/include%g
s%@oldincludedir@%/usr/include%g
s%@infodir@%${prefix}/info%g
s%@mandir@%${prefix}/man%g
s%@host@%powerpc-apple-darwin1.2%g
s%@host_alias@%powerpc-apple-darwin1.2%g
s%@host_cpu@%powerpc%g
s%@host_vendor@%apple%g
s%@host_os@%darwin1.2%g
s%@target@%powerpc-apple-darwin1.2%g
s%@target_alias@%powerpc-apple-darwin1.2%g
s%@target_cpu@%powerpc%g
s%@target_vendor@%apple%g
s%@target_os@%darwin1.2%g
s%@build@%powerpc-apple-darwin1.2%g
s%@build_alias@%powerpc-apple-darwin1.2%g
s%@build_cpu@%powerpc%g
s%@build_vendor@%apple%g
s%@build_os@%darwin1.2%g
s%@INSTALL_PROGRAM@%${INSTALL}%g
s%@INSTALL_SCRIPT@%${INSTALL}%g
s%@INSTALL_DATA@%${INSTALL} -m 644%g
s%@PACKAGE@%OpenLDAP%g
s%@VERSION@%2.0.7-Release%g
s%@ACLOCAL@%/opt/ldap/build
/opt/ldap/build/missing aclocal%g
s%@AUTOCONF@%autoconf%g
s%@AUTOMAKE@%/opt/ldap/build
/opt/ldap/build/missing automake%g
s%@AUTOHEADER@%autoheader%g
s%@MAKEINFO@%/opt/ldap/build
/opt/ldap/build/missing makeinfo%g
s%@install_sh@%/opt/ldap/build
/opt/ldap/build/install.sh%g
s%@AMTAR@%gnutar%g
s%@AWK@%gawk%g
s%@AMTARFLAGS@%o%g
s%@SET_MAKE@%%g
s%@top_builddir@%/opt/ldap%g
s%@ldap_subdir@%/openldap%g
s%@CC@%cc%g
s%@RANLIB@%ranlib%g
s%@LN_S@%ln -s%g
s%@DLLTOOL@%%g
s%@AS@%%g
s%@OBJDUMP@%%g
s%@LIBTOOL@%$(SHELL) $(top_builddir)/libtool%g
s%@LN_H@%ln%g
s%@SENDMAIL@%/usr/sbin/sendmail%g
s%@EDITOR@%/usr/bin/vi%g
s%@FINGER@%/usr/bin/finger%g
s%@CPP@%cc -E -traditional-cpp%g
s%@EXEEXT@%%g
s%@OBJEXT@%o%g
s%@OL_MKDEP@%cc%g
s%@OL_MKDEP_FLAGS@%-M%g
s%@LIBOBJS@% setproctitle.o%g
s%@LIBSRCS@% setproctitle.c%g
s%@PLAT@%UNIX%g
s%@LIB_LINKAGE@%STAT%g
s%@LT_LIB_LINKAGE@%static%g
s%@DYN_EXT@%so%g
s%@BUILD_SLAPD@%yes%g
s%@BUILD_DNSSRV@%no%g
s%@BUILD_LDAP@%no%g
s%@BUILD_LDBM@%yes%g
s%@BUILD_PASSWD@%no%g
s%@BUILD_SHELL@%no%g
s%@BUILD_SQL@%no%g
s%@BUILD_DNSSRV_DYNAMIC@%static%g
s%@BUILD_LDAP_DYNAMIC@%static%g
s%@BUILD_LDBM_DYNAMIC@%static%g
s%@BUILD_PASSWD_DYNAMIC@%static%g
s%@BUILD_SHELL_DYNAMIC@%static%g
s%@BUILD_SQL_DYNAMIC@%static%g
s%@BUILD_SLURPD@%yes%g
s%@LDAP_LIBS@%%g
s%@LDIF_LIBS@%%g
s%@SLAPD_LIBS@%%g
s%@SLURPD_LIBS@%%g
s%@LDBM_LIBS@%%g
s%@LTHREAD_LIBS@% %g
s%@LUTIL_LIBS@%%g
s%@WRAP_LIBS@%%g
s%@LINK_BINS_DYNAMIC@%no%g
s%@SLAPD_MODULES_CPPFLAGS@%%g
s%@SLAPD_MODULES_LDFLAGS@%%g
s%@SLAPD_MODULES_LIST@%%g
s%@KRB4_LIBS@%%g
s%@KRB5_LIBS@%%g
s%@READLINE_LIBS@%%g
s%@SASL_LIBS@%%g
s%@TERMCAP_LIBS@%%g
s%@TLS_LIBS@%%g
s%@MODULES_LIBS@%%g
s%@AUTH_LIBS@%%g
s%@SLAPD_SQL_LDFLAGS@%%g
s%@SLAPD_SQL_LIBS@%%g
s%@SLAPD_SQL_INCLUDES@%%g

CEOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi

CONFIG_FILES=${CONFIG_FILES-"Makefile:build/top.mk:Makefile.in:build/dir.mk
doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk
doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk
doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk
doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk
doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk
doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk
clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk
clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk
clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk
clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk
clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk
clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk
clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk
clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk
clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk
include/Makefile:build/top.mk:include/Makefile.in
libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk
libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk


libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk


libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk


libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk


libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk


libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk


libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk


libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk

      servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk
servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk
servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk

servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk

servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk

servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk

servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk

servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk

servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk

servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk
tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk
tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk
contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk
contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk
"}
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

  case "$ac_given_INSTALL" in
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  esac

  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'`
by configure."
  case "$ac_file" in
  *[Mm]akefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:%
$ac_given_srcdir/%g"`
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([        ]*\)#\([             ]*define[           ][
]*\)'
ac_dB='\([           ][        ]*\)[^          ]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([        ]*\)#\([             ]*\)undef\([             ][
 ]*\)'
ac_uB='\([           ]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([        ]*\)#\([             ]*\)undef\([             ][
 ]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

if test "${CONFIG_HEADERS+set}" != set; then
  CONFIG_HEADERS="include/portable.h include/ldap_features.h
include/lber_types.h"
fi
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  case "$ac_file" in
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:%
$ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}OPENLDAP_PACKAGE${ac_dB}OPENLDAP_PACKAGE${ac_dC}"OpenLDAP"${ac_dD}
${ac_uA}OPENLDAP_PACKAGE${ac_uB}OPENLDAP_PACKAGE${ac_uC}"OpenLDAP"${ac_uD}
${ac_eA}OPENLDAP_PACKAGE${ac_eB}OPENLDAP_PACKAGE${ac_eC}"OpenLDAP"${ac_eD}
${ac_dA}OPENLDAP_VERSION${ac_dB}OPENLDAP_VERSION${ac_dC}"2.0.7-Release"${ac_dD}
${ac_uA}OPENLDAP_VERSION${ac_uB}OPENLDAP_VERSION${ac_uC}"2.0.7-Release"${ac_uD}
${ac_eA}OPENLDAP_VERSION${ac_eB}OPENLDAP_VERSION${ac_eC}"2.0.7-Release"${ac_eD}
${ac_dA}HAVE_MKVERSION${ac_dB}HAVE_MKVERSION${ac_dC}1${ac_dD}
${ac_uA}HAVE_MKVERSION${ac_uB}HAVE_MKVERSION${ac_uC}1${ac_uD}
${ac_eA}HAVE_MKVERSION${ac_eB}HAVE_MKVERSION${ac_eC}1${ac_eD}
${ac_dA}EXEEXT${ac_dB}EXEEXT${ac_dC}""${ac_dD}
${ac_uA}EXEEXT${ac_uB}EXEEXT${ac_uC}""${ac_uD}
${ac_eA}EXEEXT${ac_eB}EXEEXT${ac_eC}""${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
${ac_eA}STDC_HEADERS${ac_eB}STDC_HEADERS${ac_eC}1${ac_eD}
${ac_dA}HAVE_DIRENT_H${ac_dB}HAVE_DIRENT_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_DIRENT_H${ac_uB}HAVE_DIRENT_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_DIRENT_H${ac_eB}HAVE_DIRENT_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_WAIT_H${ac_dB}HAVE_SYS_WAIT_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_WAIT_H${ac_uB}HAVE_SYS_WAIT_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_WAIT_H${ac_eB}HAVE_SYS_WAIT_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_POSIX_TERMIOS${ac_dB}HAVE_POSIX_TERMIOS${ac_dC}1${ac_dD}
${ac_uA}HAVE_POSIX_TERMIOS${ac_uB}HAVE_POSIX_TERMIOS${ac_uC}1${ac_uD}
${ac_eA}HAVE_POSIX_TERMIOS${ac_eB}HAVE_POSIX_TERMIOS${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_ARPA_INET_H${ac_dB}HAVE_ARPA_INET_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_ARPA_INET_H${ac_uB}HAVE_ARPA_INET_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_ARPA_INET_H${ac_eB}HAVE_ARPA_INET_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_ARPA_NAMESER_H${ac_dB}HAVE_ARPA_NAMESER_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_ARPA_NAMESER_H${ac_uB}HAVE_ARPA_NAMESER_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_ARPA_NAMESER_H${ac_eB}HAVE_ARPA_NAMESER_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_ASSERT_H${ac_dB}HAVE_ASSERT_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_ASSERT_H${ac_uB}HAVE_ASSERT_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_ASSERT_H${ac_eB}HAVE_ASSERT_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_ERRNO_H${ac_dB}HAVE_ERRNO_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_ERRNO_H${ac_uB}HAVE_ERRNO_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_ERRNO_H${ac_eB}HAVE_ERRNO_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_FCNTL_H${ac_dB}HAVE_FCNTL_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_FCNTL_H${ac_uB}HAVE_FCNTL_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_FCNTL_H${ac_eB}HAVE_FCNTL_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_GRP_H${ac_dB}HAVE_GRP_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_GRP_H${ac_uB}HAVE_GRP_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_GRP_H${ac_eB}HAVE_GRP_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_LIMITS_H${ac_dB}HAVE_LIMITS_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_LIMITS_H${ac_uB}HAVE_LIMITS_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_LIMITS_H${ac_eB}HAVE_LIMITS_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_LOCALE_H${ac_dB}HAVE_LOCALE_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_LOCALE_H${ac_uB}HAVE_LOCALE_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_LOCALE_H${ac_eB}HAVE_LOCALE_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_NETINET_TCP_H${ac_dB}HAVE_NETINET_TCP_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_NETINET_TCP_H${ac_uB}HAVE_NETINET_TCP_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_NETINET_TCP_H${ac_eB}HAVE_NETINET_TCP_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_MEMORY_H${ac_dB}HAVE_MEMORY_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_MEMORY_H${ac_uB}HAVE_MEMORY_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_MEMORY_H${ac_eB}HAVE_MEMORY_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_PWD_H${ac_dB}HAVE_PWD_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_PWD_H${ac_uB}HAVE_PWD_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_PWD_H${ac_eB}HAVE_PWD_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_RESOLV_H${ac_dB}HAVE_RESOLV_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_RESOLV_H${ac_uB}HAVE_RESOLV_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_RESOLV_H${ac_eB}HAVE_RESOLV_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SGTTY_H${ac_dB}HAVE_SGTTY_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SGTTY_H${ac_uB}HAVE_SGTTY_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SGTTY_H${ac_eB}HAVE_SGTTY_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_STDDEF_H${ac_dB}HAVE_STDDEF_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_STDDEF_H${ac_uB}HAVE_STDDEF_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_STDDEF_H${ac_eB}HAVE_STDDEF_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRING_H${ac_dB}HAVE_STRING_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRING_H${ac_uB}HAVE_STRING_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRING_H${ac_eB}HAVE_STRING_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRINGS_H${ac_dB}HAVE_STRINGS_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRINGS_H${ac_uB}HAVE_STRINGS_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRINGS_H${ac_eB}HAVE_STRINGS_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SYSEXITS_H${ac_dB}HAVE_SYSEXITS_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYSEXITS_H${ac_uB}HAVE_SYSEXITS_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYSEXITS_H${ac_eB}HAVE_SYSEXITS_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_FILE_H${ac_dB}HAVE_SYS_FILE_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_FILE_H${ac_uB}HAVE_SYS_FILE_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_FILE_H${ac_eB}HAVE_SYS_FILE_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_FILIO_H${ac_dB}HAVE_SYS_FILIO_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_FILIO_H${ac_uB}HAVE_SYS_FILIO_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_FILIO_H${ac_eB}HAVE_SYS_FILIO_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_ERRNO_H${ac_dB}HAVE_SYS_ERRNO_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_ERRNO_H${ac_uB}HAVE_SYS_ERRNO_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_ERRNO_H${ac_eB}HAVE_SYS_ERRNO_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SYS_IOCTL_H${ac_dB}HAVE_SYS_IOCTL_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_IOCTL_H${ac_uB}HAVE_SYS_IOCTL_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_IOCTL_H${ac_eB}HAVE_SYS_IOCTL_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_PARAM_H${ac_dB}HAVE_SYS_PARAM_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_PARAM_H${ac_uB}HAVE_SYS_PARAM_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_PARAM_H${ac_eB}HAVE_SYS_PARAM_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_RESOURCE_H${ac_dB}HAVE_SYS_RESOURCE_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_RESOURCE_H${ac_uB}HAVE_SYS_RESOURCE_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_RESOURCE_H${ac_eB}HAVE_SYS_RESOURCE_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_SELECT_H${ac_dB}HAVE_SYS_SELECT_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_SELECT_H${ac_uB}HAVE_SYS_SELECT_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_SELECT_H${ac_eB}HAVE_SYS_SELECT_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SYS_SOCKET_H${ac_dB}HAVE_SYS_SOCKET_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_SOCKET_H${ac_uB}HAVE_SYS_SOCKET_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_SOCKET_H${ac_eB}HAVE_SYS_SOCKET_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_SYSLOG_H${ac_dB}HAVE_SYS_SYSLOG_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_SYSLOG_H${ac_uB}HAVE_SYS_SYSLOG_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_SYSLOG_H${ac_eB}HAVE_SYS_SYSLOG_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_TIME_H${ac_dB}HAVE_SYS_TIME_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_TIME_H${ac_uB}HAVE_SYS_TIME_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_TIME_H${ac_eB}HAVE_SYS_TIME_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_TYPES_H${ac_dB}HAVE_SYS_TYPES_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_TYPES_H${ac_uB}HAVE_SYS_TYPES_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_TYPES_H${ac_eB}HAVE_SYS_TYPES_H${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SYSLOG_H${ac_dB}HAVE_SYSLOG_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYSLOG_H${ac_uB}HAVE_SYSLOG_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYSLOG_H${ac_eB}HAVE_SYSLOG_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_TERMIOS_H${ac_dB}HAVE_TERMIOS_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_TERMIOS_H${ac_uB}HAVE_TERMIOS_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_TERMIOS_H${ac_eB}HAVE_TERMIOS_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_UNISTD_H${ac_eB}HAVE_UNISTD_H${ac_eC}1${ac_eD}
${ac_dA}SELECT_TYPE_ARG1${ac_dB}SELECT_TYPE_ARG1${ac_dC}int${ac_dD}
${ac_uA}SELECT_TYPE_ARG1${ac_uB}SELECT_TYPE_ARG1${ac_uC}int${ac_uD}
${ac_eA}SELECT_TYPE_ARG1${ac_eB}SELECT_TYPE_ARG1${ac_eC}int${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}SELECT_TYPE_ARG234${ac_dB}SELECT_TYPE_ARG234${ac_dC}(fd_set *)${ac_dD}
${ac_uA}SELECT_TYPE_ARG234${ac_uB}SELECT_TYPE_ARG234${ac_uC}(fd_set *)${ac_uD}
${ac_eA}SELECT_TYPE_ARG234${ac_eB}SELECT_TYPE_ARG234${ac_eC}(fd_set *)${ac_eD}
${ac_dA}SELECT_TYPE_ARG5${ac_dB}SELECT_TYPE_ARG5${ac_dC}(struct timeval
*)${ac_dD}
${ac_uA}SELECT_TYPE_ARG5${ac_uB}SELECT_TYPE_ARG5${ac_uC}(struct timeval
*)${ac_uD}
${ac_eA}SELECT_TYPE_ARG5${ac_eB}SELECT_TYPE_ARG5${ac_eC}(struct timeval
*)${ac_eD}
${ac_dA}HAVE_REGEX_H${ac_dB}HAVE_REGEX_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_REGEX_H${ac_uB}HAVE_REGEX_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_REGEX_H${ac_eB}HAVE_REGEX_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_RES_QUERY${ac_dB}HAVE_RES_QUERY${ac_dC}1${ac_dD}
${ac_uA}HAVE_RES_QUERY${ac_uB}HAVE_RES_QUERY${ac_uC}1${ac_uD}
${ac_eA}HAVE_RES_QUERY${ac_eB}HAVE_RES_QUERY${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SYS_UN_H${ac_dB}HAVE_SYS_UN_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_UN_H${ac_uB}HAVE_SYS_UN_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_UN_H${ac_eB}HAVE_SYS_UN_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_OPENSSL_SSL_H${ac_dB}HAVE_OPENSSL_SSL_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_OPENSSL_SSL_H${ac_uB}HAVE_OPENSSL_SSL_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_OPENSSL_SSL_H${ac_eB}HAVE_OPENSSL_SSL_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_PTHREAD_H${ac_dB}HAVE_PTHREAD_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_PTHREAD_H${ac_uB}HAVE_PTHREAD_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_PTHREAD_H${ac_eB}HAVE_PTHREAD_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_PTHREADS_FINAL${ac_dB}HAVE_PTHREADS_FINAL${ac_dC}1${ac_dD}
${ac_uA}HAVE_PTHREADS_FINAL${ac_uB}HAVE_PTHREADS_FINAL${ac_uC}1${ac_uD}
${ac_eA}HAVE_PTHREADS_FINAL${ac_eB}HAVE_PTHREADS_FINAL${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SCHED_H${ac_dB}HAVE_SCHED_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_SCHED_H${ac_uB}HAVE_SCHED_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_SCHED_H${ac_eB}HAVE_SCHED_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_PTHREADS${ac_dB}HAVE_PTHREADS${ac_dC}1${ac_dD}
${ac_uA}HAVE_PTHREADS${ac_uB}HAVE_PTHREADS${ac_uC}1${ac_uD}
${ac_eA}HAVE_PTHREADS${ac_eB}HAVE_PTHREADS${ac_eC}1${ac_eD}
${ac_dA}HAVE_SCHED_YIELD${ac_dB}HAVE_SCHED_YIELD${ac_dC}1${ac_dD}
${ac_uA}HAVE_SCHED_YIELD${ac_uB}HAVE_SCHED_YIELD${ac_uC}1${ac_uD}
${ac_eA}HAVE_SCHED_YIELD${ac_eB}HAVE_SCHED_YIELD${ac_eC}1${ac_eD}
${ac_dA}HAVE_PTHREAD_DETACH${ac_dB}HAVE_PTHREAD_DETACH${ac_dC}1${ac_dD}
${ac_uA}HAVE_PTHREAD_DETACH${ac_uB}HAVE_PTHREAD_DETACH${ac_uC}1${ac_uD}
${ac_eA}HAVE_PTHREAD_DETACH${ac_eB}HAVE_PTHREAD_DETACH${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_YIELDING_SELECT${ac_dB}HAVE_YIELDING_SELECT${ac_dC}1${ac_dD}
${ac_uA}HAVE_YIELDING_SELECT${ac_uB}HAVE_YIELDING_SELECT${ac_uC}1${ac_uD}
${ac_eA}HAVE_YIELDING_SELECT${ac_eB}HAVE_YIELDING_SELECT${ac_eC}1${ac_eD}
${ac_dA}REENTRANT${ac_dB}REENTRANT${ac_dC}1${ac_dD}
${ac_uA}REENTRANT${ac_uB}REENTRANT${ac_uC}1${ac_uD}
${ac_eA}REENTRANT${ac_eB}REENTRANT${ac_eC}1${ac_eD}
${ac_dA}_REENTRANT${ac_dB}_REENTRANT${ac_dC}1${ac_dD}
${ac_uA}_REENTRANT${ac_uB}_REENTRANT${ac_uC}1${ac_uD}
${ac_eA}_REENTRANT${ac_eB}_REENTRANT${ac_eC}1${ac_eD}
${ac_dA}THREAD_SAFE${ac_dB}THREAD_SAFE${ac_dC}1${ac_dD}
${ac_uA}THREAD_SAFE${ac_uB}THREAD_SAFE${ac_uC}1${ac_uD}
${ac_eA}THREAD_SAFE${ac_eB}THREAD_SAFE${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}_THREAD_SAFE${ac_dB}_THREAD_SAFE${ac_dC}1${ac_dD}
${ac_uA}_THREAD_SAFE${ac_uB}_THREAD_SAFE${ac_uC}1${ac_uD}
${ac_eA}_THREAD_SAFE${ac_eB}_THREAD_SAFE${ac_eC}1${ac_eD}
${ac_dA}THREADSAFE${ac_dB}THREADSAFE${ac_dC}1${ac_dD}
${ac_uA}THREADSAFE${ac_uB}THREADSAFE${ac_uC}1${ac_uD}
${ac_eA}THREADSAFE${ac_eB}THREADSAFE${ac_eC}1${ac_eD}
${ac_dA}_THREADSAFE${ac_dB}_THREADSAFE${ac_dC}1${ac_dD}
${ac_uA}_THREADSAFE${ac_uB}_THREADSAFE${ac_uC}1${ac_uD}
${ac_eA}_THREADSAFE${ac_eB}_THREADSAFE${ac_eC}1${ac_eD}
${ac_dA}_SGI_MP_SOURCE${ac_dB}_SGI_MP_SOURCE${ac_dC}1${ac_dD}
${ac_uA}_SGI_MP_SOURCE${ac_uB}_SGI_MP_SOURCE${ac_uC}1${ac_uD}
${ac_eA}_SGI_MP_SOURCE${ac_eB}_SGI_MP_SOURCE${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE${ac_dB}LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE${ac_dC}1${ac_dD}

${ac_uA}LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE${ac_uB}LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE${ac_uC}1${ac_uD}

${ac_eA}LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE${ac_eB}LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE${ac_eC}1${ac_eD}

${ac_dA}HAVE_DB_H${ac_dB}HAVE_DB_H${ac_dC}1${ac_dD}
${ac_uA}HAVE_DB_H${ac_uB}HAVE_DB_H${ac_uC}1${ac_uD}
${ac_eA}HAVE_DB_H${ac_eB}HAVE_DB_H${ac_eC}1${ac_eD}
${ac_dA}HAVE_BERKELEY_DB${ac_dB}HAVE_BERKELEY_DB${ac_dC}1${ac_dD}
${ac_uA}HAVE_BERKELEY_DB${ac_uB}HAVE_BERKELEY_DB${ac_uC}1${ac_uD}
${ac_eA}HAVE_BERKELEY_DB${ac_eB}HAVE_BERKELEY_DB${ac_eC}1${ac_eD}
${ac_dA}LDBM_USE_DBBTREE${ac_dB}LDBM_USE_DBBTREE${ac_dC}1${ac_dD}
${ac_uA}LDBM_USE_DBBTREE${ac_uB}LDBM_USE_DBBTREE${ac_uC}1${ac_uD}
${ac_eA}LDBM_USE_DBBTREE${ac_eB}LDBM_USE_DBBTREE${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}NO_TERMCAP${ac_dB}NO_TERMCAP${ac_dC}1${ac_dD}
${ac_uA}NO_TERMCAP${ac_uB}NO_TERMCAP${ac_uC}1${ac_uD}
${ac_eA}NO_TERMCAP${ac_eB}NO_TERMCAP${ac_eC}1${ac_eD}
${ac_dA}HAVE_CRYPT${ac_dB}HAVE_CRYPT${ac_dC}1${ac_dD}
${ac_uA}HAVE_CRYPT${ac_uB}HAVE_CRYPT${ac_uC}1${ac_uD}
${ac_eA}HAVE_CRYPT${ac_eB}HAVE_CRYPT${ac_eC}1${ac_eD}
${ac_dA}HAVE_PTRDIFF_T${ac_dB}HAVE_PTRDIFF_T${ac_dC}1${ac_dD}
${ac_uA}HAVE_PTRDIFF_T${ac_uB}HAVE_PTRDIFF_T${ac_uC}1${ac_uD}
${ac_eA}HAVE_PTRDIFF_T${ac_eB}HAVE_PTRDIFF_T${ac_eC}1${ac_eD}
${ac_dA}RETSIGTYPE${ac_dB}RETSIGTYPE${ac_dC}void${ac_dD}
${ac_uA}RETSIGTYPE${ac_uB}RETSIGTYPE${ac_uC}void${ac_uD}
${ac_eA}RETSIGTYPE${ac_eB}RETSIGTYPE${ac_eC}void${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}socklen_t${ac_dB}socklen_t${ac_dC}int${ac_dD}
${ac_uA}socklen_t${ac_uB}socklen_t${ac_uC}int${ac_uD}
${ac_eA}socklen_t${ac_eB}socklen_t${ac_eC}int${ac_eD}
${ac_dA}HAVE_ST_BLKSIZE${ac_dB}HAVE_ST_BLKSIZE${ac_dC}1${ac_dD}
${ac_uA}HAVE_ST_BLKSIZE${ac_uB}HAVE_ST_BLKSIZE${ac_uC}1${ac_uD}
${ac_eA}HAVE_ST_BLKSIZE${ac_eB}HAVE_ST_BLKSIZE${ac_eC}1${ac_eD}
${ac_dA}TIME_WITH_SYS_TIME${ac_dB}TIME_WITH_SYS_TIME${ac_dC}1${ac_dD}
${ac_uA}TIME_WITH_SYS_TIME${ac_uB}TIME_WITH_SYS_TIME${ac_uC}1${ac_uD}
${ac_eA}TIME_WITH_SYS_TIME${ac_eB}TIME_WITH_SYS_TIME${ac_eC}1${ac_eD}
${ac_dA}HAVE_PW_GECOS${ac_dB}HAVE_PW_GECOS${ac_dC}1${ac_dD}
${ac_uA}HAVE_PW_GECOS${ac_uB}HAVE_PW_GECOS${ac_uC}1${ac_uD}
${ac_eA}HAVE_PW_GECOS${ac_eB}HAVE_PW_GECOS${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_PW_PASSWD${ac_dB}HAVE_PW_PASSWD${ac_dC}1${ac_dD}
${ac_uA}HAVE_PW_PASSWD${ac_uB}HAVE_PW_PASSWD${ac_uC}1${ac_uD}
${ac_eA}HAVE_PW_PASSWD${ac_eB}HAVE_PW_PASSWD${ac_eC}1${ac_eD}
${ac_dA}WORDS_BIGENDIAN${ac_dB}WORDS_BIGENDIAN${ac_dC}1${ac_dD}
${ac_uA}WORDS_BIGENDIAN${ac_uB}WORDS_BIGENDIAN${ac_uC}1${ac_uD}
${ac_eA}WORDS_BIGENDIAN${ac_eB}WORDS_BIGENDIAN${ac_eC}1${ac_eD}
${ac_dA}SIZEOF_SHORT${ac_dB}SIZEOF_SHORT${ac_dC}2${ac_dD}
${ac_uA}SIZEOF_SHORT${ac_uB}SIZEOF_SHORT${ac_uC}2${ac_uD}
${ac_eA}SIZEOF_SHORT${ac_eB}SIZEOF_SHORT${ac_eC}2${ac_eD}
${ac_dA}SIZEOF_INT${ac_dB}SIZEOF_INT${ac_dC}4${ac_dD}
${ac_uA}SIZEOF_INT${ac_uB}SIZEOF_INT${ac_uC}4${ac_uD}
${ac_eA}SIZEOF_INT${ac_eB}SIZEOF_INT${ac_eC}4${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}SIZEOF_LONG${ac_dB}SIZEOF_LONG${ac_dC}4${ac_dD}
${ac_uA}SIZEOF_LONG${ac_uB}SIZEOF_LONG${ac_uC}4${ac_uD}
${ac_eA}SIZEOF_LONG${ac_eB}SIZEOF_LONG${ac_eC}4${ac_eD}
${ac_dA}LBER_INT_T${ac_dB}LBER_INT_T${ac_dC}int${ac_dD}
${ac_uA}LBER_INT_T${ac_uB}LBER_INT_T${ac_uC}int${ac_uD}
${ac_eA}LBER_INT_T${ac_eB}LBER_INT_T${ac_eC}int${ac_eD}
${ac_dA}LBER_LEN_T${ac_dB}LBER_LEN_T${ac_dC}long${ac_dD}
${ac_uA}LBER_LEN_T${ac_uB}LBER_LEN_T${ac_uC}long${ac_uD}
${ac_eA}LBER_LEN_T${ac_eB}LBER_LEN_T${ac_eC}long${ac_eD}
${ac_dA}LBER_SOCKET_T${ac_dB}LBER_SOCKET_T${ac_dC}int${ac_dD}
${ac_uA}LBER_SOCKET_T${ac_uB}LBER_SOCKET_T${ac_uC}int${ac_uD}
${ac_eA}LBER_SOCKET_T${ac_eB}LBER_SOCKET_T${ac_eC}int${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}LBER_TAG_T${ac_dB}LBER_TAG_T${ac_dC}long${ac_dD}
${ac_uA}LBER_TAG_T${ac_uB}LBER_TAG_T${ac_uC}long${ac_uD}
${ac_eA}LBER_TAG_T${ac_eB}LBER_TAG_T${ac_eC}long${ac_eD}
${ac_dA}HAVE_STRFTIME${ac_dB}HAVE_STRFTIME${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRFTIME${ac_uB}HAVE_STRFTIME${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRFTIME${ac_eB}HAVE_STRFTIME${ac_eC}1${ac_eD}
${ac_dA}HAVE_INET_ATON${ac_dB}HAVE_INET_ATON${ac_dC}1${ac_dD}
${ac_uA}HAVE_INET_ATON${ac_uB}HAVE_INET_ATON${ac_uC}1${ac_uD}
${ac_eA}HAVE_INET_ATON${ac_eB}HAVE_INET_ATON${ac_eC}1${ac_eD}
${ac_dA}HAVE_VPRINTF${ac_dB}HAVE_VPRINTF${ac_dC}1${ac_dD}
${ac_uA}HAVE_VPRINTF${ac_uB}HAVE_VPRINTF${ac_uC}1${ac_uD}
${ac_eA}HAVE_VPRINTF${ac_eB}HAVE_VPRINTF${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_VSNPRINTF${ac_dB}HAVE_VSNPRINTF${ac_dC}1${ac_dD}
${ac_uA}HAVE_VSNPRINTF${ac_uB}HAVE_VSNPRINTF${ac_uC}1${ac_uD}
${ac_eA}HAVE_VSNPRINTF${ac_eB}HAVE_VSNPRINTF${ac_eC}1${ac_eD}
${ac_dA}HAVE_VSPRINTF${ac_dB}HAVE_VSPRINTF${ac_dC}1${ac_dD}
${ac_uA}HAVE_VSPRINTF${ac_uB}HAVE_VSPRINTF${ac_uC}1${ac_uD}
${ac_eA}HAVE_VSPRINTF${ac_eB}HAVE_VSPRINTF${ac_eC}1${ac_eD}
${ac_dA}HAVE_BCOPY${ac_dB}HAVE_BCOPY${ac_dC}1${ac_dD}

${ac_uA}HAVE_BCOPY${ac_uB}HAVE_BCOPY${ac_uC}1${ac_uD}
${ac_eA}HAVE_BCOPY${ac_eB}HAVE_BCOPY${ac_eC}1${ac_eD}
${ac_dA}HAVE_CHROOT${ac_dB}HAVE_CHROOT${ac_dC}1${ac_dD}
${ac_uA}HAVE_CHROOT${ac_uB}HAVE_CHROOT${ac_uC}1${ac_uD}
${ac_eA}HAVE_CHROOT${ac_eB}HAVE_CHROOT${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_ENDGRENT${ac_dB}HAVE_ENDGRENT${ac_dC}1${ac_dD}
${ac_uA}HAVE_ENDGRENT${ac_uB}HAVE_ENDGRENT${ac_uC}1${ac_uD}
${ac_eA}HAVE_ENDGRENT${ac_eB}HAVE_ENDGRENT${ac_eC}1${ac_eD}
${ac_dA}HAVE_ENDPWENT${ac_dB}HAVE_ENDPWENT${ac_dC}1${ac_dD}
${ac_uA}HAVE_ENDPWENT${ac_uB}HAVE_ENDPWENT${ac_uC}1${ac_uD}
${ac_eA}HAVE_ENDPWENT${ac_eB}HAVE_ENDPWENT${ac_eC}1${ac_eD}
${ac_dA}HAVE_FLOCK${ac_dB}HAVE_FLOCK${ac_dC}1${ac_dD}
${ac_uA}HAVE_FLOCK${ac_uB}HAVE_FLOCK${ac_uC}1${ac_uD}
${ac_eA}HAVE_FLOCK${ac_eB}HAVE_FLOCK${ac_eC}1${ac_eD}
${ac_dA}HAVE_GETDTABLESIZE${ac_dB}HAVE_GETDTABLESIZE${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETDTABLESIZE${ac_uB}HAVE_GETDTABLESIZE${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETDTABLESIZE${ac_eB}HAVE_GETDTABLESIZE${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_GETGRGID${ac_dB}HAVE_GETGRGID${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETGRGID${ac_uB}HAVE_GETGRGID${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETGRGID${ac_eB}HAVE_GETGRGID${ac_eC}1${ac_eD}
${ac_dA}HAVE_GETHOSTNAME${ac_dB}HAVE_GETHOSTNAME${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETHOSTNAME${ac_uB}HAVE_GETHOSTNAME${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETHOSTNAME${ac_eB}HAVE_GETHOSTNAME${ac_eC}1${ac_eD}
${ac_dA}HAVE_GETPASS${ac_dB}HAVE_GETPASS${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETPASS${ac_uB}HAVE_GETPASS${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETPASS${ac_eB}HAVE_GETPASS${ac_eC}1${ac_eD}
${ac_dA}HAVE_GETPWUID${ac_dB}HAVE_GETPWUID${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETPWUID${ac_uB}HAVE_GETPWUID${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETPWUID${ac_eB}HAVE_GETPWUID${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_GETPWNAM${ac_dB}HAVE_GETPWNAM${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETPWNAM${ac_uB}HAVE_GETPWNAM${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETPWNAM${ac_eB}HAVE_GETPWNAM${ac_eC}1${ac_eD}
${ac_dA}HAVE_GETTIMEOFDAY${ac_dB}HAVE_GETTIMEOFDAY${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETTIMEOFDAY${ac_uB}HAVE_GETTIMEOFDAY${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETTIMEOFDAY${ac_eB}HAVE_GETTIMEOFDAY${ac_eC}1${ac_eD}
${ac_dA}HAVE_INITGROUPS${ac_dB}HAVE_INITGROUPS${ac_dC}1${ac_dD}
${ac_uA}HAVE_INITGROUPS${ac_uB}HAVE_INITGROUPS${ac_uC}1${ac_uD}
${ac_eA}HAVE_INITGROUPS${ac_eB}HAVE_INITGROUPS${ac_eC}1${ac_eD}
${ac_dA}HAVE_MEMCPY${ac_dB}HAVE_MEMCPY${ac_dC}1${ac_dD}
${ac_uA}HAVE_MEMCPY${ac_uB}HAVE_MEMCPY${ac_uC}1${ac_uD}
${ac_eA}HAVE_MEMCPY${ac_eB}HAVE_MEMCPY${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_MEMMOVE${ac_dB}HAVE_MEMMOVE${ac_dC}1${ac_dD}
${ac_uA}HAVE_MEMMOVE${ac_uB}HAVE_MEMMOVE${ac_uC}1${ac_uD}
${ac_eA}HAVE_MEMMOVE${ac_eB}HAVE_MEMMOVE${ac_eC}1${ac_eD}
${ac_dA}HAVE_MKSTEMP${ac_dB}HAVE_MKSTEMP${ac_dC}1${ac_dD}
${ac_uA}HAVE_MKSTEMP${ac_uB}HAVE_MKSTEMP${ac_uC}1${ac_uD}
${ac_eA}HAVE_MKSTEMP${ac_eB}HAVE_MKSTEMP${ac_eC}1${ac_eD}
${ac_dA}HAVE_PIPE${ac_dB}HAVE_PIPE${ac_dC}1${ac_dD}
${ac_uA}HAVE_PIPE${ac_uB}HAVE_PIPE${ac_uC}1${ac_uD}
${ac_eA}HAVE_PIPE${ac_eB}HAVE_PIPE${ac_eC}1${ac_eD}
${ac_dA}HAVE_READ${ac_dB}HAVE_READ${ac_dC}1${ac_dD}
${ac_uA}HAVE_READ${ac_uB}HAVE_READ${ac_uC}1${ac_uD}
${ac_eA}HAVE_READ${ac_eB}HAVE_READ${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_RECV${ac_dB}HAVE_RECV${ac_dC}1${ac_dD}
${ac_uA}HAVE_RECV${ac_uB}HAVE_RECV${ac_uC}1${ac_uD}
${ac_eA}HAVE_RECV${ac_eB}HAVE_RECV${ac_eC}1${ac_eD}
${ac_dA}HAVE_RECVFROM${ac_dB}HAVE_RECVFROM${ac_dC}1${ac_dD}
${ac_uA}HAVE_RECVFROM${ac_uB}HAVE_RECVFROM${ac_uC}1${ac_uD}
${ac_eA}HAVE_RECVFROM${ac_eB}HAVE_RECVFROM${ac_eC}1${ac_eD}
${ac_dA}HAVE_SETGID${ac_dB}HAVE_SETGID${ac_dC}1${ac_dD}
${ac_uA}HAVE_SETGID${ac_uB}HAVE_SETGID${ac_uC}1${ac_uD}
${ac_eA}HAVE_SETGID${ac_eB}HAVE_SETGID${ac_eC}1${ac_eD}
${ac_dA}HAVE_SETEGID${ac_dB}HAVE_SETEGID${ac_dC}1${ac_dD}
${ac_uA}HAVE_SETEGID${ac_uB}HAVE_SETEGID${ac_uC}1${ac_uD}
${ac_eA}HAVE_SETEGID${ac_eB}HAVE_SETEGID${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SETSID${ac_dB}HAVE_SETSID${ac_dC}1${ac_dD}
${ac_uA}HAVE_SETSID${ac_uB}HAVE_SETSID${ac_uC}1${ac_uD}
${ac_eA}HAVE_SETSID${ac_eB}HAVE_SETSID${ac_eC}1${ac_eD}
${ac_dA}HAVE_SETUID${ac_dB}HAVE_SETUID${ac_dC}1${ac_dD}
${ac_uA}HAVE_SETUID${ac_uB}HAVE_SETUID${ac_uC}1${ac_uD}
${ac_eA}HAVE_SETUID${ac_eB}HAVE_SETUID${ac_eC}1${ac_eD}
${ac_dA}HAVE_SETEUID${ac_dB}HAVE_SETEUID${ac_dC}1${ac_dD}
${ac_uA}HAVE_SETEUID${ac_uB}HAVE_SETEUID${ac_uC}1${ac_uD}
${ac_eA}HAVE_SETEUID${ac_eB}HAVE_SETEUID${ac_eC}1${ac_eD}
${ac_dA}HAVE_SIGACTION${ac_dB}HAVE_SIGACTION${ac_dC}1${ac_dD}
${ac_uA}HAVE_SIGACTION${ac_uB}HAVE_SIGACTION${ac_uC}1${ac_uD}
${ac_eA}HAVE_SIGACTION${ac_eB}HAVE_SIGACTION${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SIGNAL${ac_dB}HAVE_SIGNAL${ac_dC}1${ac_dD}
${ac_uA}HAVE_SIGNAL${ac_uB}HAVE_SIGNAL${ac_uC}1${ac_uD}
${ac_eA}HAVE_SIGNAL${ac_eB}HAVE_SIGNAL${ac_eC}1${ac_eD}
${ac_dA}HAVE_SNPRINTF${ac_dB}HAVE_SNPRINTF${ac_dC}1${ac_dD}
${ac_uA}HAVE_SNPRINTF${ac_uB}HAVE_SNPRINTF${ac_uC}1${ac_uD}
${ac_eA}HAVE_SNPRINTF${ac_eB}HAVE_SNPRINTF${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRDUP${ac_dB}HAVE_STRDUP${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRDUP${ac_uB}HAVE_STRDUP${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRDUP${ac_eB}HAVE_STRDUP${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRERROR${ac_dB}HAVE_STRERROR${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRERROR${ac_uB}HAVE_STRERROR${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRERROR${ac_eB}HAVE_STRERROR${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_STRPBRK${ac_dB}HAVE_STRPBRK${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRPBRK${ac_uB}HAVE_STRPBRK${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRPBRK${ac_eB}HAVE_STRPBRK${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRRCHR${ac_dB}HAVE_STRRCHR${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRRCHR${ac_uB}HAVE_STRRCHR${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRRCHR${ac_eB}HAVE_STRRCHR${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRSEP${ac_dB}HAVE_STRSEP${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRSEP${ac_uB}HAVE_STRSEP${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRSEP${ac_eB}HAVE_STRSEP${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRSTR${ac_dB}HAVE_STRSTR${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRSTR${ac_uB}HAVE_STRSTR${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRSTR${ac_eB}HAVE_STRSTR${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_STRTOL${ac_dB}HAVE_STRTOL${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRTOL${ac_uB}HAVE_STRTOL${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRTOL${ac_eB}HAVE_STRTOL${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRTOUL${ac_dB}HAVE_STRTOUL${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRTOUL${ac_uB}HAVE_STRTOUL${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRTOUL${ac_eB}HAVE_STRTOUL${ac_eC}1${ac_eD}
${ac_dA}HAVE_STRSPN${ac_dB}HAVE_STRSPN${ac_dC}1${ac_dD}
${ac_uA}HAVE_STRSPN${ac_uB}HAVE_STRSPN${ac_uC}1${ac_uD}
${ac_eA}HAVE_STRSPN${ac_eB}HAVE_STRSPN${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYSCONF${ac_dB}HAVE_SYSCONF${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYSCONF${ac_uB}HAVE_SYSCONF${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYSCONF${ac_eB}HAVE_SYSCONF${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_WAITPID${ac_dB}HAVE_WAITPID${ac_dC}1${ac_dD}
${ac_uA}HAVE_WAITPID${ac_uB}HAVE_WAITPID${ac_uC}1${ac_uD}
${ac_eA}HAVE_WAITPID${ac_eB}HAVE_WAITPID${ac_eC}1${ac_eD}
${ac_dA}HAVE_WAIT4${ac_dB}HAVE_WAIT4${ac_dC}1${ac_dD}
${ac_uA}HAVE_WAIT4${ac_uB}HAVE_WAIT4${ac_uC}1${ac_uD}
${ac_eA}HAVE_WAIT4${ac_eB}HAVE_WAIT4${ac_eC}1${ac_eD}
${ac_dA}HAVE_WRITE${ac_dB}HAVE_WRITE${ac_dC}1${ac_dD}
${ac_uA}HAVE_WRITE${ac_uB}HAVE_WRITE${ac_uC}1${ac_uD}
${ac_eA}HAVE_WRITE${ac_eB}HAVE_WRITE${ac_eC}1${ac_eD}
${ac_dA}HAVE_SEND${ac_dB}HAVE_SEND${ac_dC}1${ac_dD}
${ac_uA}HAVE_SEND${ac_uB}HAVE_SEND${ac_uC}1${ac_uD}
${ac_eA}HAVE_SEND${ac_eB}HAVE_SEND${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}HAVE_SENDTO${ac_dB}HAVE_SENDTO${ac_dC}1${ac_dD}
${ac_uA}HAVE_SENDTO${ac_uB}HAVE_SENDTO${ac_uC}1${ac_uD}
${ac_eA}HAVE_SENDTO${ac_eB}HAVE_SENDTO${ac_eC}1${ac_eD}
${ac_dA}HAVE_GETOPT${ac_dB}HAVE_GETOPT${ac_dC}1${ac_dD}
${ac_uA}HAVE_GETOPT${ac_uB}HAVE_GETOPT${ac_uC}1${ac_uD}
${ac_eA}HAVE_GETOPT${ac_eB}HAVE_GETOPT${ac_eC}1${ac_eD}
${ac_dA}HAVE_TEMPNAM${ac_dB}HAVE_TEMPNAM${ac_dC}1${ac_dD}
${ac_uA}HAVE_TEMPNAM${ac_uB}HAVE_TEMPNAM${ac_uC}1${ac_uD}
${ac_eA}HAVE_TEMPNAM${ac_eB}HAVE_TEMPNAM${ac_eC}1${ac_eD}
${ac_dA}HAVE_SYS_ERRLIST${ac_dB}HAVE_SYS_ERRLIST${ac_dC}1${ac_dD}
${ac_uA}HAVE_SYS_ERRLIST${ac_uB}HAVE_SYS_ERRLIST${ac_uC}1${ac_uD}
${ac_eA}HAVE_SYS_ERRLIST${ac_eB}HAVE_SYS_ERRLIST${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}LDAP_DEBUG${ac_dB}LDAP_DEBUG${ac_dC}1${ac_dD}
${ac_uA}LDAP_DEBUG${ac_uB}LDAP_DEBUG${ac_uC}1${ac_uD}
${ac_eA}LDAP_DEBUG${ac_eB}LDAP_DEBUG${ac_eC}1${ac_eD}
${ac_dA}LDAP_SYSLOG${ac_dB}LDAP_SYSLOG${ac_dC}1${ac_dD}
${ac_uA}LDAP_SYSLOG${ac_uB}LDAP_SYSLOG${ac_uC}1${ac_uD}
${ac_eA}LDAP_SYSLOG${ac_eB}LDAP_SYSLOG${ac_eC}1${ac_eD}
${ac_dA}LDAP_PROCTITLE${ac_dB}LDAP_PROCTITLE${ac_dC}1${ac_dD}
${ac_uA}LDAP_PROCTITLE${ac_uB}LDAP_PROCTITLE${ac_uC}1${ac_uD}
${ac_eA}LDAP_PROCTITLE${ac_eB}LDAP_PROCTITLE${ac_eC}1${ac_eD}
${ac_dA}LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS${ac_dB}LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS${ac_dC}LDAP_VENDOR_VERSION${ac_dD}

${ac_uA}LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS${ac_uB}LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS${ac_uC}LDAP_VENDOR_VERSION${ac_uD}

${ac_eA}LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS${ac_eB}LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS${ac_eC}LDAP_VENDOR_VERSION${ac_eD}

CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}LDAP_PF_LOCAL${ac_dB}LDAP_PF_LOCAL${ac_dC}1${ac_dD}
${ac_uA}LDAP_PF_LOCAL${ac_uB}LDAP_PF_LOCAL${ac_uC}1${ac_uD}
${ac_eA}LDAP_PF_LOCAL${ac_eB}LDAP_PF_LOCAL${ac_eC}1${ac_eD}
${ac_dA}SLAPD_CLEARTEXT${ac_dB}SLAPD_CLEARTEXT${ac_dC}1${ac_dD}
${ac_uA}SLAPD_CLEARTEXT${ac_uB}SLAPD_CLEARTEXT${ac_uC}1${ac_uD}
${ac_eA}SLAPD_CLEARTEXT${ac_eB}SLAPD_CLEARTEXT${ac_eC}1${ac_eD}
${ac_dA}SLAPD_CRYPT${ac_dB}SLAPD_CRYPT${ac_dC}1${ac_dD}
${ac_uA}SLAPD_CRYPT${ac_uB}SLAPD_CRYPT${ac_uC}1${ac_uD}
${ac_eA}SLAPD_CRYPT${ac_eB}SLAPD_CRYPT${ac_eC}1${ac_eD}
${ac_dA}SLAPD_RLOOKUPS${ac_dB}SLAPD_RLOOKUPS${ac_dC}1${ac_dD}
${ac_uA}SLAPD_RLOOKUPS${ac_uB}SLAPD_RLOOKUPS${ac_uC}1${ac_uD}
${ac_eA}SLAPD_RLOOKUPS${ac_eB}SLAPD_RLOOKUPS${ac_eC}1${ac_eD}
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  cat > conftest.frag <<CEOF
${ac_dA}SLAPD_LDBM${ac_dB}SLAPD_LDBM${ac_dC}1${ac_dD}
${ac_uA}SLAPD_LDBM${ac_uB}SLAPD_LDBM${ac_uC}1${ac_uD}
${ac_eA}SLAPD_LDBM${ac_eB}SLAPD_LDBM${ac_eC}1${ac_eD}
s%^[            ]*#[           ]*undef[             ][
]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in

  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done



date > stamp-h
echo Please \"make depend\" to build dependencies

exit 0



|--------+----------------------->
|        |          Akim Demaille|
|        |          <akim@epita.f|
|        |          r>           |
|        |                       |
|        |          13/12/2000   |
|        |          15:57        |
|        |                       |
|--------+----------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     Tim Power/LON/GB/Reuters@Reuters                             |
  |       cc:     Autoconf List <autoconf@gnu.org>                             |
  |       Subject:     Re: Config error for Darwin (Mac OS/X)                  |
  |       Header:      Internal Use Only                                       |
  >----------------------------------------------------------------------------|






>>>>> "Tim" == Tim Power <Tim.Power@reuters.com> writes:

Tim> All I typed was ./configure if that is what u mean.

Tim> Ok I'll do that and thanks for your help.  Seems no one has
Tim> started trying to port it to Darwin yet.

I doubt it is related to Darwin in any way.  Please, send us the file
named config.status.  And keep the CC to the list, please.



-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.


From akim@epita.fr Wed Dec 13 11:27:02 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146EkA-0002eD-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 11:27:02 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA17074
	Wed, 13 Dec 2000 17:26:15 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146Era-0003iN-00; Wed, 13 Dec 2000 17:34:42 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146Er5-0000G9-00; Wed, 13 Dec 2000 17:34:11 +0100
To: Tim Power <Tim.Power@reuters.com>
Cc: autoconf@gnu.org
Subject: Re: Config error for Darwin (Mac OS/X)
References: <B0009913074@euvig1.dtc.lon.ime.reuters.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 17:34:11 +0100
In-Reply-To: Tim Power's message of "Wed, 13 Dec 2000 16:25:35 +0000"
Message-ID: <mv4n1e0701o.fsf@nostromo.lrde.epita.fr>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| # Protect against being on the right side of a sed subst in config.status.
| sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
|  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
| /^[        ]*VPATH[            ]*=[^:]*$/d
| 
| s%@SHELL@%/bin/sh%g
[...]
| s%@AUTOMAKE@%/opt/ldap/build
| /opt/ldap/build/missing automake%g

OK, here is your problem: you have the f*king CDPATH set.  Unset it,
and retry.

$ bash
$ unset CDPATH
$ ./configure

        Akim


From Tim.Power@reuters.com Wed Dec 13 11:53:24 2000
Received: from eufig1.rit.reuters.com ([194.205.123.3])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146F9g-00034P-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 11:53:24 -0500
Received: from [196.7.183.5] by eufig1.rit.reuters.com
          via smtpd (for fencepost.gnu.org [199.232.76.164]) with SMTP; 13 Dec 2000 16:50:33 UT
Received: from eupig1 (unverified) by euvig1.dtc.lon.ime.reuters.com
 (Content Technologies SMTPRS 2.0.15) with ESMTP id <B0009914622@euvig1.dtc.lon.ime.reuters.com>;
 Wed, 13 Dec 2000 16:47:08 +0000
Message-Id: <B0009914622@euvig1.dtc.lon.ime.reuters.com>
Received: from eungw1.dtc.lon.ime.reuters.com ([132.70.1.161])
 by eupig1.dtc.lon.ime.reuters.com (PMDF V5.2-31 #39917)
 with SMTP id <0G5I006KJMK8BQ@eupig1.dtc.lon.ime.reuters.com>; Wed,
 13 Dec 2000 16:45:44 +0000 (GMT)
Received: by
 eungw1.dtc.lon.ime.reuters.com(Lotus SMTP MTA v4.6.3  (733.2 10-16-1998))
  id 802569B4.005CB9B9 ; Wed, 13 Dec 2000 16:52:48 +0000
Date: Wed, 13 Dec 2000 16:57:22 +0000
From: Tim Power <Tim.Power@reuters.com>
Subject: Re: Config error for Darwin (Mac OS/X)
To: Akim Demaille <akim@epita.fr>
Cc: autoconf@gnu.org
MIME-Version: 1.0
X-Lotus-FromDomain: REUTERS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>





I don't really follow... when I type 'env' I have no environment variable
CDPATH, I do as u suggest but I don't have bash, so I try it with bourne, but
there is to my mind no var to clear....

What do you see there that I don't?

I get the same error...

Tim
|--------+----------------------->
|        |          Akim Demaille|
|        |          <akim@epita.f|
|        |          r>           |
|        |                       |
|        |          13/12/2000   |
|        |          16:34        |
|        |                       |
|--------+----------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     Tim Power/LON/GB/Reuters@Reuters                             |
  |       cc:     autoconf@gnu.org                                             |
  |       Subject:     Re: Config error for Darwin (Mac OS/X)                  |
  |       Header:      Internal Use Only                                       |
  >----------------------------------------------------------------------------|







| # Protect against being on the right side of a sed subst in config.status.
| sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
|  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
| /^[        ]*VPATH[            ]*=[^:]*$/d
|
| s%@SHELL@%/bin/sh%g
[...]
| s%@AUTOMAKE@%/opt/ldap/build
| /opt/ldap/build/missing automake%g

OK, here is your problem: you have the f*king CDPATH set.  Unset it,
and retry.

$ bash
$ unset CDPATH
$ ./configure

        Akim



-----------------------------------------------------------------
        Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.


From akim@epita.fr Wed Dec 13 11:57:44 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146FDr-00038v-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 11:57:43 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA20488
	Wed, 13 Dec 2000 17:56:50 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146FLB-0003u5-00; Wed, 13 Dec 2000 18:05:17 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146FKg-0000Nq-00; Wed, 13 Dec 2000 18:04:46 +0100
To: Tim Power <Tim.Power@reuters.com>
Cc: autoconf@gnu.org
Subject: Re: Config error for Darwin (Mac OS/X)
References: <B0009914622@euvig1.dtc.lon.ime.reuters.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 18:04:46 +0100
In-Reply-To: Tim Power's message of "Wed, 13 Dec 2000 16:57:22 +0000"
Message-ID: <mv41yvc6ymp.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Tim" == Tim Power <Tim.Power@reuters.com> writes:

Tim> I don't really follow... when I type 'env' I have no environment
Tim> variable CDPATH, I do as u suggest but I don't have bash, so I
Tim> try it with bourne, but there is to my mind no var to clear....

I'm sure you have some stuff that makes `cd' verbose.  Find a means to
have `cd' silent.  `cd' must not display the directory where you
land.


From proski@speakeasy.org Wed Dec 13 11:58:24 2000
Received: from grace.speakeasy.org ([216.254.0.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146FEV-00039X-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 11:58:24 -0500
Received: (qmail 1451 invoked by uid 24233); 13 Dec 2000 16:58:21 -0000
Date: Wed, 13 Dec 2000 11:59:06 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Akim Demaille <akim@epita.fr>
cc: Tim Power <Tim.Power@reuters.com>, Autoconf List <autoconf@gnu.org>
Subject: Re: Config error for Darwin (Mac OS/X)
In-Reply-To: <mv4ofyga229.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012131149500.10823-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> What generation of Autoconf generated that configure?  It looks like
> code from 2.13.  Please, download
> ftp://alpha.gnu.org/gnu/cvs/autoconf.tar.gz, regenerate the configure
> from OpenLDAP with this Autoconf, and tell us if the bug is still
> present.

This is a very risky suggestion. Unfortunately, most of quite large
projects, like OpenLDAP, require some modifications before they can switch
to CVS Autoconf.

The most common problem is underquoting, which is the case for OpenLDAP.
Also the new Autoconf found a misuse of AC_DEFINE inside AC_CONFIG_CACHE.

Finally, bash (and maybe other shells too) doesn't like the construct that
Autoconf makes from

AC_INIT
if true; then
 AC_MSG_ERROR([LinuxThreads header/library mismatch]);
fi
AC_OUTPUT

if true; then
 { { echo "$as_me:844: error: LinuxThreads header/library mismatch" >&5
echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
   { (exit 1); exit; }; }
;
fi

$ ./configure
./configure: syntax error near unexpected token `;'
./configure: ./configure: line 847: `;'

It's obviously the latest semicolon, which comes from the semicolon on the
end of AC_MSG_ERROR.

So, there are enough problems with OpenLDAP without playing with Mac OSX.

Regards,
Pavel Roskin



From akim@epita.fr Wed Dec 13 12:05:25 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146FLI-0004Tr-00; Wed, 13 Dec 2000 12:05:25 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA21368
	Wed, 13 Dec 2000 18:04:20 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146FSR-0003x3-00; Wed, 13 Dec 2000 18:12:47 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146FRl-0000OB-00; Wed, 13 Dec 2000 18:12:05 +0100
To: Pavel Roskin <proski@gnu.org>
Cc: Tim Power <Tim.Power@reuters.com>, Autoconf List <autoconf@gnu.org>
Subject: Re: Config error for Darwin (Mac OS/X)
References: <Pine.LNX.4.30.0012131149500.10823-100000@fonzie.nine.com>
From: Akim Demaille <akim@epita.fr>
Date: 13 Dec 2000 18:12:05 +0100
In-Reply-To: Pavel Roskin's message of "Wed, 13 Dec 2000 11:59:06 -0500 (EST)"
Message-ID: <mv4wvd45jq2.fsf@nostromo.lrde.epita.fr>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| if true; then
|  { { echo "$as_me:844: error: LinuxThreads header/library mismatch" >&5
| echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
|    { (exit 1); exit; }; }
| ;
| fi
| 
| $ ./configure
| ./configure: syntax error near unexpected token `;'
| ./configure: ./configure: line 847: `;'
| 
| It's obviously the latest semicolon, which comes from the semicolon on the
| end of AC_MSG_ERROR.

The problem is a missing space before the ; IMHO.  Could you try if it
fixes the problem and adjust Autoconf?


From Dautrevaux@microprocess.com Wed Dec 13 13:33:30 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146GiY-0008A7-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 13:33:30 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKMW9>; Wed, 13 Dec 2000 19:20:38 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E188@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Alexandre Oliva
	 <oliva@lsd.ic.unicamp.br>
Cc: Peter Eisentraut <peter_e@gmx.net>, Morten Eriksen <mortene@sim.no>, 
	autoconf@gnu.org
Subject: RE: AC_OBJEXT again
Date: Wed, 13 Dec 2000 19:20:07 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Wednesday, December 13, 2000 1:40 PM
> To: Alexandre Oliva
> Cc: Peter Eisentraut; Morten Eriksen; autoconf@gnu.org
> Subject: Re: AC_OBJEXT again
> 

		<snipped> 
> | But I'm also a bit unsure as to whether we should use 
> _AC_LINK_IFELSE,
> | given that this macro will tell the compiler to create an executable
> | named `conftest', and this may disable whatever default 
> extension the
> | compiler might have selected.
> 
> Good point.
> 
> | The bad side of this is that, if we
> | leave the decision up to the compiler, we'll get a.out or 
> a.exe, which
> | is out of autoconf's file namespace.
> 
> Bad point.
> 
> So the real question is, what happens when you use -o conftest?  Will
> the cross-compiler and native Win compilers produce conftest, or/and
> conftest.exe?  As long as conftest.exe is created when one `-o
> conftest', we're doing good.


Problem in fact is that, IMNSHO, EXEEXT is a HOST OS characteristic; I think
it's not too difficult to think of a Win32 cross-compiler hosted on UNIX
that obey strictly the '-o conftest' options, expecting its user to *know*
that Win32 *needs* the file to be named conftest.exe, and thus thinking it
will use '-o conftest.exe' :-)

Remember the need for AC_EXEEXT is mainly in generating the Makefile so that
we can put the right extension in the rules targets so that the '-o $@' and
install rulles will be correct.

In fact as long as the compiler accepts to generate 'conftest.foobar' when
given '-o conftest.foobar' and the HOST needs a file to be named
'xxx.foobar' so that to execute it then all is OK; OTOH, if '-o
conftest.foobar' fails or generate plain 'conftest' fo such a host, then the
compiler is broken (and we thus may need to rewrite the compile rule to use
'-o `basename $@ .foobar`' and add an "mv `basename $@ .foobar` $@"...
(don't laugh! I've had to do this kind of trick trying to work with some
braindead cross-compiler :-])

So I think EXEEXT should use the HOST name and a (config.exeext?) table
knowing that some known hosts link "*-cygwin*" or "*-mingw*"... *need*
".exe", *then* check that "-o conftest.exe" really creates conftest.exe.

On the contrary OBJEXT is really a BUILD (in fact compiler) characteristic,
so the proposed patch is fine.

Regards,

	Bernard


> 

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From Dautrevaux@microprocess.com Wed Dec 13 13:40:45 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146GpZ-0008Fh-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 13:40:45 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKMXC>; Wed, 13 Dec 2000 19:27:53 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E189@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Earnie Boyd' <earnie_boyd@yahoo.com>, Alexandre Oliva
	 <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: RE: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
Date: Wed, 13 Dec 2000 19:27:22 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Wednesday, December 13, 2000 2:02 AM
> To: Alexandre Oliva; Mo DeJong
> Cc: autoconf@gnu.org
> Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
> 
> 
> --- Alexandre Oliva <oliva@lsd.ic.unicamp.br> wrote:
> > On Dec 12, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
> > 
> > > I guess the question is, should we try to compile 
> something and the
> > > set the $host if the user did not, or do we just expect that the
> > > user is going to pass the correct --host?
> > 
> > Methinks config.guess should do it.  Can't it tell cygwin 
> from mingw?
> > 
> 
> With an appropriate uname, yes.
> 


Nooo..., config.guess guesses the BUILD system, not the HOST one, except if
running the mingw compiler using a mingw-bash and a mingw-uname and
mingw-make, outside of cygwin; otherwise you *need* config.guess to detect
you're running under cygwin as build platform :-)

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From Dautrevaux@microprocess.com Wed Dec 13 13:45:00 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Gtf-0008Hd-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 13:45:00 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKMXG>; Wed, 13 Dec 2000 19:32:08 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E18A@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: RE: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
Date: Wed, 13 Dec 2000 19:31:12 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Wednesday, December 13, 2000 1:43 PM
> To: Mo DeJong
> Cc: autoconf@gnu.org
> Subject: Re: OBJ and EXE and cross-compilation (Was: AC_OBJEXT again)
> 
> 
> >>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:
> 
> Mo> But would this still work if I wanted to compile with the mingw
> Mo> compiler under Cygwin? The mingw native compiler is also named
> Mo> gcc, so what --host triple would I need to pass to the configure
> Mo> script? It seems like I would need to pass something for the
> Mo> --host argument, otherwise the configure script would not think it
> Mo> was a cross compile. Is this even a cross compile? Well sort
> Mo> of. (ugh)
> 
> The name of the C compiler is tied to $host.  Sure it tries $host-gcc
> etc., but you can set $host on the one hand, and CC on the other.  So
> I don't think there are any problems here.
> 
> Mo> If I did not pass a host triple, would the configure script detect
> Mo> Cygwin even though CC was set to the mingw compiler? That seems
> Mo> like the logical thing to do if we only use uname. Problem is, if
> Mo> configure sets a bunch of Cygwin #defines and then tries to exec
> Mo> the mingw compiler, all hell will break loose.
> 
> As long as $host != $build, there is cross compilation.  We no longer
> depend upon the compiler to test cross compilation situations.
> 

And thus YES you MUST pass --host in this case, as this IS
cross-compilation; in fact I ALWAYS pass --host and --build in all cases as
I use a script to call $srcdir/configure that detect the host and build
names from where I am building :-)

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From earnie_boyd@yahoo.com Wed Dec 13 15:13:17 2000
Received: from web109.mail.yahoo.com ([205.180.60.76] helo=web109.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146IH6-0003fB-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 15:13:16 -0500
Received: (qmail 11179 invoked by uid 60001); 13 Dec 2000 20:13:15 -0000
Message-ID: <20001213201315.11178.qmail@web109.yahoomail.com>
Received: from [150.159.224.8] by web109.yahoomail.com; Wed, 13 Dec 2000 12:13:15 PST
Date: Wed, 13 Dec 2000 12:13:15 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
To: Akim Demaille <akim@epita.fr>, autoconf@gnu.org,
  APatche <autoconf-patches@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Akim Demaille <akim@epita.fr> wrote:
> 
> Here is my proposal.
> 
> 
-8<-

I have a problem with
-8<-
>  
>  @defmac AC_CYGWIN
>  @maindex CYGWIN
> -Checked for the Cygwin environment in which case the shell variable
> -@code{CYGWIN} is set to @samp{yes}.  @code{AC_EXEEXT} now handles this
> -task.
> +Check for the Cygwin environment in which case the shell variable
> +@code{CYGWIN} is set to @samp{yes}.  Don't use this macro, the dignified
> +means to check the nature of the host is using
> +@code{AC_CANONICAL_HOST}.  As a matter of fact this macro is defined as:
> +
> +@example
> +AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
> +case $host_os in
> +  *cygwin* ) CYGWIN=yes;;
> +         * ) CYGWIN=no;;
> +esac
> +@end example
>  @end defmac
> 
in that the variable CYGWIN is used by Cygwin to control Cygwin
characteristics.  It is not a variable that should be set arbitrarily to some
arbitrary value.  Perhaps use ACYGWIN instead.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From oliva@lsd.ic.unicamp.br Wed Dec 13 16:53:32 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Jq5-0007zU-00; Wed, 13 Dec 2000 16:53:30 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBDLrDK23483;
	Wed, 13 Dec 2000 19:53:13 -0200
To: Earnie Boyd <earnie_boyd@yahoo.com>
Cc: Akim Demaille <akim@epita.fr>, autoconf@gnu.org,
   APatche <autoconf-patches@gnu.org>
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <20001213201315.11178.qmail@web109.yahoomail.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 13 Dec 2000 19:53:10 -0200
In-Reply-To: Earnie Boyd's message of "Wed, 13 Dec 2000 12:13:15 -0800 (PST)"
Message-ID: <org0jsxa2h.fsf@guarana.lsd.ic.unicamp.br>
Lines: 20
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 13, 2000, Earnie Boyd <earnie_boyd@yahoo.com> wrote:

> --- Akim Demaille <akim@epita.fr> wrote:
>> 
>> Here is my proposal.

Ok with me.

> in that the variable CYGWIN is used by Cygwin to control Cygwin
> characteristics.

One more reason to obsolete this macro.  Since it's supplied only for
backware-compatibility issues, and its use is strongly discouraged, I
think we can go with that.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From emf@prettyhatemachine.obfuscation.org Wed Dec 13 22:26:52 2000
Received: from hiro.obfuscation.org ([63.121.51.132])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146P2i-0003xs-00
	for <autoconf@gnu.org>; Wed, 13 Dec 2000 22:26:52 -0500
Received: (qmail 20807 invoked from network); 14 Dec 2000 03:26:37 -0000
Received: from prettyhatemachine.obfuscation.org (63.121.51.133)
  by hiro.obfuscation.org with SMTP; 14 Dec 2000 03:26:37 -0000
Received: (from emf@localhost)
	by prettyhatemachine.obfuscation.org (8.9.3+Sun/8.9.1) id WAA18734
	for autoconf@gnu.org; Wed, 13 Dec 2000 22:26:34 -0500 (EST)
Date: Wed, 13 Dec 2000 22:26:33 -0500
From: emf <emf@prettyhatemachine.obfuscation.org>
To: autoconf@gnu.org
Subject: errrr.. bug in 2.13 with AC_REPLACE_FUNCS() ?
Message-ID: <20001213222633.J24054@prettyhatemachine.obfuscation.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

With autoconf 2.13  (built with gnu m4 1.4)


The following:
AC_CHECK_FUNC(strtok, AC_DEFINE(HAVE_STRTOK), LIBOBJS="$LIBOBJS strtok.o")
or
AC_REPLACE_FUNCS(strtok, strtok.o)
or 
AC_REPLACE_FUNCS(strtok)

Results in:

autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_FD_CC
***BUG in Autoconf--please report*** AC_FD_CC
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_MSG
/usr/local/bin/autoheader: Symbol `HAVE_STRTOK' is not covered by /usr/local/share/autoconf/acconfig.h ./acconfig.h

(the last autoheader error only applies to the AC_CHECK_FUNC style)

and it produces this sort of cruft for ./configure:

#! /bin/sh

 && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&AC_FD_CC
  cat conftest.$ac_ext >&AC_FD_CC
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&AC_FD_MSG
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJ
KLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&AC_FD_MSG
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
fi
done



Am i a doofus, or is this a bug?

Thanks..

-- 
.emf.


From mdejong@cygnus.com Wed Dec 13 22:30:03 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146P5n-0004b7-00; Wed, 13 Dec 2000 22:30:03 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id TAA24314;
	Wed, 13 Dec 2000 19:30:01 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id TAA25609; Wed, 13 Dec 2000 19:30:01 -0800 (PST)
Date: Wed, 13 Dec 2000 19:30:01 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf-patches@gnu.org
cc: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
In-Reply-To: <mv47l549v0p.fsf_-_@nostromo.lrde.epita.fr>
Message-ID: <Pine.SOL.3.91.1001213192356.23919F-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> Here is my proposal.
> 
> 
> Index: ChangeLog
> from  Akim Demaille  <akim@epita.fr>
> 	Put back AC_CYGWIN etc. under the responsibility of the
> 	configure.in maintainer, but discourage its use.
> 
> 	* acspecific.m4 (_AC_CYGWIN, _AC_MINGW32, _AC_EMXOS2): Rename as...
> 	(AC_CYGWIN, AC_MINGW32, AC_EMXOS2): these.
> 	AU defined on top of AC_CANONICAL_HOST and $host_os.
> 	* tests/mktests.sh (update_exclude_list): Add AC_CYGWIN,
> 	AC_MINGW32, and AC_EMXOS2.


Here is something I do not quite get, I was under the
impression that AC_CYGWIN, AC_MINGW32, and the like
were being run when AC_PROG_CC was run. This new patch
does not seem to run them anymore.


I did a little testing with this patch.

...
checking build system type... i686-pc-linux-gnu
checking host system type... i386-pc-mingw32msvc
checking for i386-mingw32msvc-g++... i386-mingw32msvc-g++
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking whether we are using the GNU C++ compiler... yes
checking for object suffix... o
checking for executable suffix... 
checking whether i386-mingw32msvc-g++ accepts -g... yes

Strange part is, my cross compiler is not writing out
a .exe file, so the system thinks that the EXEEXT
is "".

% ./i386-mingw32msvc-gcc -o run tmp.c

% ls -la run*
-rwxrwxr-x    1 mo       mo          14581 Dec 13 18:26 run

% file run
run: MS Windows PE 32-bit Intel 80386 console executable not relocatable

I am at a loss to explain that one. I would think that a
Linux cross mingw compiler would need to output a .exe
file, but it does not.

Mo DeJong
Red Hat Inc


From oliva@lsd.ic.unicamp.br Wed Dec 13 22:39:48 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146PFE-0005Bl-00; Wed, 13 Dec 2000 22:39:48 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBE3dff16922;
	Thu, 14 Dec 2000 01:39:41 -0200
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001213192356.23919F-100000@cse.cygnus.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 14 Dec 2000 01:39:40 -0200
In-Reply-To: Mo DeJong's message of "Wed, 13 Dec 2000 19:30:01 -0800 (PST)"
Message-ID: <or66knu0w3.fsf@guarana.lsd.ic.unicamp.br>
Lines: 21
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 14, 2000, Mo DeJong <mdejong@cygnus.com> wrote:

> I am at a loss to explain that one. I would think that a
> Linux cross mingw compiler would need to output a .exe
> file, but it does not.

Well, then I think it's a bug in the cross compiler.  Incidentally, I
do have a patch for GCC that fixed the extension conventions, but it
can't be applied because it breaks the build because of
autoconf-related issues.  Catch 22 :-(

I guess we'll have to retain the host checking of Cygwin, Mingw and
OS2 and explicitly set EXEEXT to .exe if host is any of these :-(

Too bad...

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From mdejong@cygnus.com Thu Dec 14 03:23:52 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Tg7-0007ez-00; Thu, 14 Dec 2000 03:23:51 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id AAA07416;
	Thu, 14 Dec 2000 00:23:50 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id AAA27312; Thu, 14 Dec 2000 00:23:49 -0800 (PST)
Date: Thu, 14 Dec 2000 00:23:49 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
cc: autoconf-patches@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
In-Reply-To: <or66knu0w3.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <Pine.SOL.3.91.1001214001453.27134A-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 14 Dec 2000, Alexandre Oliva wrote:

> On Dec 14, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
> 
> > I am at a loss to explain that one. I would think that a
> > Linux cross mingw compiler would need to output a .exe
> > file, but it does not.
> 
> Well, then I think it's a bug in the cross compiler.  Incidentally, I
> do have a patch for GCC that fixed the extension conventions, but it
> can't be applied because it breaks the build because of
> autoconf-related issues.  Catch 22 :-(
> 
> I guess we'll have to retain the host checking of Cygwin, Mingw and
> OS2 and explicitly set EXEEXT to .exe if host is any of these :-(
> 
> Too bad...

Boy, the problems with these macros just don't stop. I have
now re-discovered that when you do not include a call
to AC_OBJEXT or AC_EXEEXT, automake acts differently.

Here is a quick diff of a Makefile.in generated by
automake before and after the AC_OBJEXT and AC_EXEEXT
are removed ( correct me if I am wrong here, but
I was under the impressiong that calling AC_PROG_CC
would call these macros by default ).

@@ -173,12 +176,16 @@
 CPPFLAGS = 
 LDFLAGS = 
 LIBS = 
-am_jikes_OBJECTS =  ast.o body.o bytecode.o case.o code.o control.o \
-decl.o definite.o depend.o diagnose.o double.o dump.o error.o expr.o \
-getclass.o incrmnt.o init.o javaact.o jikes.o jikesapi.o long.o \
-lookup.o lpginput.o modifier.o op.o option.o parser.o scanner.o \
-segment.o set.o stream.o symbol.o system.o tab.o unparse.o unzip.o \
-zip.o platform.o
+am_jikes_OBJECTS =  ast.$(OBJEXT) body.$(OBJEXT) bytecode.$(OBJEXT) \
+case.$(OBJEXT) code.$(OBJEXT) control.$(OBJEXT) decl.$(OBJEXT) \
+definite.$(OBJEXT) depend.$(OBJEXT) diagnose.$(OBJEXT) double.$(OBJEXT) \
+dump.$(OBJEXT) error.$(OBJEXT) expr.$(OBJEXT) getclass.$(OBJEXT) \
+incrmnt.$(OBJEXT) init.$(OBJEXT) javaact.$(OBJEXT) jikes.$(OBJEXT) \
+jikesapi.$(OBJEXT) long.$(OBJEXT) lookup.$(OBJEXT) lpginput.$(OBJEXT) \
+modifier.$(OBJEXT) op.$(OBJEXT) option.$(OBJEXT) parser.$(OBJEXT) \
+scanner.$(OBJEXT) segment.$(OBJEXT) set.$(OBJEXT) stream.$(OBJEXT) \


@@ -286,11 +294,13 @@
 
 maintainer-clean-compile:
 
-jikes: $(jikes_OBJECTS) $(jikes_DEPENDENCIES)
-       @rm -f jikes
+jikes$(EXEEXT): $(jikes_OBJECTS) $(jikes_DEPENDENCIES)
+       @rm -f jikes$(EXEEXT)


Note how removing the macros calls just flat out
breaks automake generated files in this
respect. The combination of the compiler
not generating a foo.exe when called with
-o foo and automake blowing up makes
me think this patch needs a bit more work.

Mo DeJong
Red Hat Inc


From akim@epita.fr Thu Dec 14 04:10:46 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UPV-0000nf-00; Thu, 14 Dec 2000 04:10:46 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA16583
	Thu, 14 Dec 2000 10:09:57 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146UX1-0006TP-00; Thu, 14 Dec 2000 10:18:31 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146UWM-0000wA-00; Thu, 14 Dec 2000 10:17:50 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org, autoconf-patches@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214001453.27134A-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 10:17:50 +0100
In-Reply-To: Mo DeJong's message of "Thu, 14 Dec 2000 00:23:49 -0800 (PST)"
Message-ID: <mv4lmtj4b0h.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:

Mo> Boy, the problems with these macros just don't stop. I have now
Mo> re-discovered that when you do not include a call to AC_OBJEXT or
Mo> AC_EXEEXT, automake acts differently.

Right.  Do not remove them until Automake is fixed.  They are defined
to nothing for this reason.


From akim@epita.fr Thu Dec 14 04:12:09 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UQq-0000o5-00; Thu, 14 Dec 2000 04:12:09 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA16691
	Thu, 14 Dec 2000 10:11:21 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146UYN-0006UA-00; Thu, 14 Dec 2000 10:19:55 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146UXh-0000wI-00; Thu, 14 Dec 2000 10:19:13 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001213192356.23919F-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 10:19:13 +0100
In-Reply-To: Mo DeJong's message of "Wed, 13 Dec 2000 19:30:01 -0800 (PST)"
Message-ID: <mv4hf474ay6.fsf@nostromo.lrde.epita.fr>
Lines: 5
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| % ./i386-mingw32msvc-gcc -o run tmp.c

What happens if you don't -o?  And are there any problems with run
instead of run.exe?  Why is it wrong?


From akim@epita.fr Thu Dec 14 04:14:23 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UT0-0000q6-00; Thu, 14 Dec 2000 04:14:23 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA16800
	Thu, 14 Dec 2000 10:13:18 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146UaG-0006WA-00; Thu, 14 Dec 2000 10:21:52 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146UZQ-0000wO-00; Thu, 14 Dec 2000 10:21:00 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf-patches@gnu.org, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001213192356.23919F-100000@cse.cygnus.com>
	<or66knu0w3.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 10:21:00 +0100
In-Reply-To: Alexandre Oliva's message of "14 Dec 2000 01:39:40 -0200"
Message-ID: <mv4d7ev4av7.fsf@nostromo.lrde.epita.fr>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> Well, then I think it's a bug in the cross compiler.
Alexandre> Incidentally, I do have a patch for GCC that fixed the
Alexandre> extension conventions, but it can't be applied because it
Alexandre> breaks the build because of autoconf-related issues.  Catch
Alexandre> 22 :-(

Any way out?

Alexandre> I guess we'll have to retain the host checking of Cygwin,
Alexandre> Mingw and OS2 and explicitly set EXEEXT to .exe if host is
Alexandre> any of these :-(

We don't need to test them all!  For instance CYGWIN should not be
reactivated.


From mdejong@cygnus.com Thu Dec 14 04:17:09 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UVg-0000t4-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 04:17:08 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id BAA08982
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 01:17:07 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id BAA27520; Thu, 14 Dec 2000 01:17:07 -0800 (PST)
Date: Thu, 14 Dec 2000 01:17:07 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
In-Reply-To: <mv4lmtj4b0h.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.SOL.3.91.1001214011421.27134B-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 14 Dec 2000, Akim Demaille wrote:

> >>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:
> 
> Mo> Boy, the problems with these macros just don't stop. I have now
> Mo> re-discovered that when you do not include a call to AC_OBJEXT or
> Mo> AC_EXEEXT, automake acts differently.
> 
> Right.  Do not remove them until Automake is fixed.  They are defined
> to nothing for this reason.

Ok.

Well, what if we did this? It kind of puts the hack back in
but it does it without keeping the AC_CYGWIN macros and
without compiling anything.

Another possibility would be to only do this in the case
of a cross compile, I think the native tools write a .exe
but I could be wrong about that.

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.95
diff -u -r1.95 aclang.m4
--- aclang.m4	2000/12/13 12:36:54	1.95
+++ aclang.m4	2000/12/14 09:12:32
@@ -662,7 +662,18 @@
 # by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
 m4_define([_AC_COMPILER_EXEEXT],
 [AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+[
+# Yes, we know this is a hack, but there are cygwin and
+# mingw cross compilers that do not correctly add the
+# .exe to an executable linked like so "gcc -o foo foo.c"
+# so we need this special case for those broken compilers.
+case $host_os in
+  *cygwin*) ac_cv_exeext=.exe ;;
+  *mingw*) ac_cv_exeext=.exe ;;
+  *emx*) ac_cv_exeext=.exe ;;
+esac
+if test "x$ac_cv_exeext" = "" ; then
+_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
 [# If both `conftest.exe' and `conftest' are `present' (well, observable)
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -676,6 +687,7 @@
 done],
               [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and 
link])])
 rm -f conftest$ac_cv_exeext])
+fi
 AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl
 ac_exeext=$EXEEXT
 ])# _AC_COMPILER_EXEEXT


Mo DeJong
Red Hat Inc


From mdejong@cygnus.com Thu Dec 14 04:20:15 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UYg-0000yM-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 04:20:14 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id BAA09066
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 01:20:13 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id BAA27533; Thu, 14 Dec 2000 01:20:13 -0800 (PST)
Date: Thu, 14 Dec 2000 01:20:13 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
In-Reply-To: <mv4hf474ay6.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.SOL.3.91.1001214011755.27134C-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 14 Dec 2000, Akim Demaille wrote:

> | % ./i386-mingw32msvc-gcc -o run tmp.c
> 
> What happens if you don't -o?  And are there any problems with run
> instead of run.exe?  Why is it wrong?

Drum roll please ...

% rm *.exe
% ./i386-mingw32msvc-gcc tmp.c
mo(~/project/install/Xmingwin/bin)% ls *.exe
a.exe

% rm *.exe
% i586-cygwin32-gcc tmp.c
% ls *.exe
a.exe

Mo DeJong
Red Hat Inc


From akim@epita.fr Thu Dec 14 04:34:59 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Umw-0001Ok-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 04:34:58 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA18567
	Thu, 14 Dec 2000 10:34:04 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146UuM-0006gw-00; Thu, 14 Dec 2000 10:42:38 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146Utr-0000y2-00; Thu, 14 Dec 2000 10:42:07 +0100
To: emf <emf@prettyhatemachine.obfuscation.org>
Cc: autoconf@gnu.org
Subject: Re: errrr.. bug in 2.13 with AC_REPLACE_FUNCS() ?
References: <20001213222633.J24054@prettyhatemachine.obfuscation.org>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 10:42:07 +0100
In-Reply-To: emf's message of "Wed, 13 Dec 2000 22:26:33 -0500"
Message-ID: <mv4vgsn2vbk.fsf@nostromo.lrde.epita.fr>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| With autoconf 2.13  (built with gnu m4 1.4)
| The following:
| AC_CHECK_FUNC(strtok, AC_DEFINE(HAVE_STRTOK), LIBOBJS="$LIBOBJS strtok.o")
| or
| AC_REPLACE_FUNCS(strtok, strtok.o)
| or 
| AC_REPLACE_FUNCS(strtok)
| 
| Results in:
| 
| autoconf: Undefined macros:
| ***BUG in Autoconf--please report*** AC_FD_CC
| ***BUG in Autoconf--please report*** AC_FD_CC
| ***BUG in Autoconf--please report*** AC_FD_MSG
| ***BUG in Autoconf--please report*** AC_FD_MSG

IIRC in 2.13 these guys are defined inside AC_INIT, i.e., I very
highly suspect you have no AC_INIT on top of your file.  This is bad.


From akim@epita.fr Thu Dec 14 04:37:24 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UpH-0001WM-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 04:37:23 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA18657
	Thu, 14 Dec 2000 10:36:37 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146Uwq-0006hr-00; Thu, 14 Dec 2000 10:45:12 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146UwK-0000yA-00; Thu, 14 Dec 2000 10:44:40 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214011755.27134C-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 10:44:40 +0100
In-Reply-To: Mo DeJong's message of "Thu, 14 Dec 2000 01:20:13 -0800 (PST)"
Message-ID: <mv4r93b2v7b.fsf@nostromo.lrde.epita.fr>
Lines: 27
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| On 14 Dec 2000, Akim Demaille wrote:
| > | % ./i386-mingw32msvc-gcc -o run tmp.c
| > 
| > What happens if you don't -o?  And are there any problems with run
| > instead of run.exe?  Why is it wrong?
| 
| Drum roll please ...
| 
| % rm *.exe
| % ./i386-mingw32msvc-gcc tmp.c
| mo(~/project/install/Xmingwin/bin)% ls *.exe
| a.exe
| 
| % rm *.exe
| % i586-cygwin32-gcc tmp.c
| % ls *.exe
| a.exe

Yipeeeeeeee|  Hey Alexandre, did you see that!?!

Wow, I think this is the first time a MingWinEMX/32 message makes me
happy :)


Also, please Mo, for my own information, what is wrong with `run'
instead of `run.exe'?


From akim@epita.fr Thu Dec 14 04:38:24 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146UqF-0001Xa-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 04:38:24 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA18685
	Thu, 14 Dec 2000 10:37:34 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146Uxk-0006ih-00; Thu, 14 Dec 2000 10:46:08 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146UxF-0000yN-00; Thu, 14 Dec 2000 10:45:37 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214011421.27134B-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 10:45:37 +0100
In-Reply-To: Mo DeJong's message of "Thu, 14 Dec 2000 01:17:07 -0800 (PST)"
Message-ID: <mv4n1dz2v5q.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:

Mo> Well, what if we did this? It kind of puts the hack back in but it
Mo> does it without keeping the AC_CYGWIN macros and without compiling
Mo> anything.

The problem is that you require AC_CANONICAL_HOST, hence you require
config.guess and config.sub.  This is what we are trying to avoid.


From mdejong@cygnus.com Thu Dec 14 04:48:50 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146V0L-0002LY-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 04:48:50 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id BAA09954
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 01:48:48 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id BAA27655; Thu, 14 Dec 2000 01:48:48 -0800 (PST)
Date: Thu, 14 Dec 2000 01:48:48 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
In-Reply-To: <mv4r93b2v7b.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 14 Dec 2000, Akim Demaille wrote:

> | On 14 Dec 2000, Akim Demaille wrote:
> | > | % ./i386-mingw32msvc-gcc -o run tmp.c
> | > 
> | > What happens if you don't -o?  And are there any problems with run
> | > instead of run.exe?  Why is it wrong?
> | 
> | Drum roll please ...
> | 
> | % rm *.exe
> | % ./i386-mingw32msvc-gcc tmp.c
> | mo(~/project/install/Xmingwin/bin)% ls *.exe
> | a.exe
> | 
> | % rm *.exe
> | % i586-cygwin32-gcc tmp.c
> | % ls *.exe
> | a.exe
> 
> Yipeeeeeeee|  Hey Alexandre, did you see that!?!
> 
> Wow, I think this is the first time a MingWinEMX/32 message makes me
> happy :)

Glad I could help. 
 
> Also, please Mo, for my own information, what is wrong with `run'
> instead of `run.exe'?

Beats me, looks like a bug in the compiler. It really should
check to see if there is a .exe extension on the -o argument
and add one if not found. But, since there is no way to
rely on this being fixed in autoconf, me thinks we need
to check for the a.out or a.exe. Is there going to be
a problem with compilers other than gcc? Do they
also use a.out or a.exe as the default output name?

Mo DeJong
Red Hat Inc


From Dautrevaux@microprocess.com Thu Dec 14 06:33:48 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Wdv-0000yU-00; Thu, 14 Dec 2000 06:33:47 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKM7D>; Thu, 14 Dec 2000 11:05:34 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E18C@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Alexandre Oliva' <oliva@lsd.ic.unicamp.br>, Mo DeJong
	 <mdejong@cygnus.com>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
Subject: RE: AC_CYGWIN etc. (Was: AC_OBJEXT again)
Date: Thu, 14 Dec 2000 11:04:58 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Alexandre Oliva [mailto:oliva@lsd.ic.unicamp.br]
> Sent: Thursday, December 14, 2000 4:40 AM
> To: Mo DeJong
> Cc: autoconf-patches@gnu.org; autoconf@gnu.org
> Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
> 
> 
> On Dec 14, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
> 
> > I am at a loss to explain that one. I would think that a
> > Linux cross mingw compiler would need to output a .exe
> > file, but it does not.
> 
> Well, then I think it's a bug in the cross compiler.  

No so much ;-(

Don't forget we look at the output of
	$(CC) -o conftest conftest.c

It's arguably a well defined and documented feature of almost all compilers
that the generated output file will be named "conftest".

In fact we are just tricked by some cygwin/mingw compilers that try to be
smart enough to allow people NOT using autotools to not bother with the
'.exe' HOST requirement.

It coudl well be argued that this is a bug in the cygwin/mingw compilers
(I'm not even sure that its documented that '-o conftest' will generate '-o
conftest.exe'. Note that this open a new category of questions:

gcc -o conftest.x conftest.c    ---> conftest.x or conftest.x.exe or
conftest.exe ???
gcc -o conftest.o -c conftest.c ---> conftest.o (NOT conftest.o.exe I
hope...)

I think a well behaved compiler just obey what the user asks for, so "gcc -o
conftest conftest.c" should create "conftest"; if I generate for Win32, it's
a host characteristics that say that the exe MUST be called "conftest.exe",
so it's the role of autotools to generate the proper "gcc -o conftest.exe
conftest.c" rule :-)

Note that in fact all this thread is about AC_EXEEXT, not AC_OBJEXT. The two
are quite different and AC_OBJEXT does not cause ANY problem: it's a
characteristic of th ehost-compiler when run on the build machine, so trying
to compile and looking at the gernerated suffix is OK and could only fail if
we can't find a (cross) compiler.

> Incidentally, I
> do have a patch for GCC that fixed the extension conventions, but it
> can't be applied because it breaks the build because of
> autoconf-related issues.  Catch 22 :-(

Anyway, being clever in gcc only simplify the life of people compiling by
hand; once using autoconf and the like, it's the role of autoconf HOST
definition to cure that. 

> 
> I guess we'll have to retain the host checking of Cygwin, Mingw and
> OS2 and explicitly set EXEEXT to .exe if host is any of these :-(
> 
> Too bad...

Not too bad, just needed. 

We can't expect ALL cross-compilers be smart enough to not trust their user;
we may even find some that *refuse* a "$(CC) -o conftest conftest.c"
command, just because they *know* you should have given them the ".exe"
suffix and want to be sure you do not use the cross-compiler accidently
while wanting to use the native one...

Just my 2 cents

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Thu Dec 14 06:37:01 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146Wh2-00012S-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 06:37:00 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA00267
	Thu, 14 Dec 2000 12:35:40 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146Wo3-0007OA-00; Thu, 14 Dec 2000 12:44:15 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146WnX-0002WT-00; Thu, 14 Dec 2000 12:43:43 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 14 Dec 2000 12:43:43 +0100
In-Reply-To: Mo DeJong's message of "Thu, 14 Dec 2000 01:48:48 -0800 (PST)"
Message-ID: <mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mo" == Mo DeJong <mdejong@cygnus.com> writes:

Mo> Beats me, looks like a bug in the compiler. It really should check
Mo> to see if there is a .exe extension on the -o argument and add one
Mo> if not found. But, since there is no way to rely on this being
Mo> fixed in autoconf, me thinks we need to check for the a.out or
Mo> a.exe. Is there going to be a problem with compilers other than
Mo> gcc? Do they also use a.out or a.exe as the default output name?

I plan to have the two tests: the a.exe one (in a conftestdir as was
to be suggested by Alexandre), and the -o conftest$ac_exeext one.

As for the other cross compilers, let them receive our signal: we are
setting a standard they have to follow :)


From earnie_boyd@yahoo.com Thu Dec 14 10:22:19 2000
Received: from web117.mail.yahoo.com ([205.180.60.91] helo=web117.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146aD4-00017Y-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 10:22:18 -0500
Received: (qmail 21215 invoked by uid 60001); 14 Dec 2000 15:22:15 -0000
Message-ID: <20001214152215.21213.qmail@web117.yahoomail.com>
Received: from [216.192.135.163] by web117.yahoomail.com; Thu, 14 Dec 2000 07:22:14 PST
Date: Thu, 14 Dec 2000 07:22:14 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: RE: AC_CYGWIN etc. (Was: AC_OBJEXT again)
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>,
  'Alexandre Oliva' <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>
Cc: autoconf-patches@gnu.org, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Bernard Dautrevaux <Dautrevaux@microprocess.com> wrote:
> > -----Original Message-----
> > From: Alexandre Oliva [mailto:oliva@lsd.ic.unicamp.br]
> > Sent: Thursday, December 14, 2000 4:40 AM
> > To: Mo DeJong
> > Cc: autoconf-patches@gnu.org; autoconf@gnu.org
> > Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
> > 
> > 
> > On Dec 14, 2000, Mo DeJong <mdejong@cygnus.com> wrote:
> > 
> > > I am at a loss to explain that one. I would think that a
> > > Linux cross mingw compiler would need to output a .exe
> > > file, but it does not.
> > 
> > Well, then I think it's a bug in the cross compiler.  
> 
> No so much ;-(
> 
> Don't forget we look at the output of
> 	$(CC) -o conftest conftest.c
> 
> It's arguably a well defined and documented feature of almost all compilers
> that the generated output file will be named "conftest".
> 
> In fact we are just tricked by some cygwin/mingw compilers that try to be
> smart enough to allow people NOT using autotools to not bother with the
> '.exe' HOST requirement.
> 
> It coudl well be argued that this is a bug in the cygwin/mingw compilers
> (I'm not even sure that its documented that '-o conftest' will generate '-o
> conftest.exe'. Note that this open a new category of questions:
> 

I tried to make this argument four or five years ago.  The auto-extension was
introduced in B18.  It is actually ld that creates the file name with the
extention and gcc is passing along a switch to cause the .exe extention to
happen.  Even in the native version I can use ld directly and get foo not
foo.exe for -o foo.

If you `gcc -o run. tst.c' no extention is created as gcc thinks there already
is one.  Mo, you should check to make sure that you didn't do this.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From proski@gnu.org Thu Dec 14 10:24:39 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 146aFL-00019u-00; Thu, 14 Dec 2000 10:24:39 -0500
Date: Thu, 14 Dec 2000 10:25:26 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>, 
    Akim Demaille <akim@epita.fr>
cc:  <autoconf@gnu.org>
Subject: RE: Expanded rules for scripts
In-Reply-To: <17B78BDF120BD411B70100500422FC6309E191@IIS000>
Message-ID: <Pine.LNX.4.30.0012141001540.838-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Bernard and Akim!

> But anyway the documentation patch should be enhanced as it was not
> clear enough.

Well, it was unclear enough to confuse at least two people :-/

Let me explain in more words (but this can be too verbose for the
documentation).

It's portable to use suffix rules. It doesn't matter whether it's a
double-suffix rule like this:

.c.o:
	cc -c $<

or a single-suffix rule like this:

.sh:
	$(editsh) $< > $@

I'm not aware of any differences in the way how single-suffix and
double-suffix rules are handled.

What I was talking about, and what lead me into expanding the rules is a
limitation of the suffix rules, that, to my best knowledge (please correct
me if you can!!!) cannot be worked around except by writing explicit
rules.

As the GNU make manual puts it:

=====================================
   Suffix rules cannot have any prerequisites of their own.  If they
have any, they are treated as normal files with funny names, not as
suffix rules.  Thus, the rule:

     .c.o: foo.h
             $(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<

tells how to make the file `.c.o' from the prerequisite file `foo.h'
=====================================

You cannot make the target of the suffix rule depend on anything else
other then the "corresponding implicit prerequisite".

Along with the above example, there is another _bad_ way of adding
prerequisites to the suffix rules without overriding them, which was until
recently exploited by Autoconf.

I mean an explicit rule without commands, something like this:

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<

$(SOURCES): foo.h

This would work as expected with GNU make, but is will break with BSD
make. It will not just break, it will break badly, because it is not the
explicit rule that in ignored by BSD make - it is the suffix rule. Thus
the commands in the suffix rule will not be run by the BSD make.

This certainly doesn't belong to the section "Limitations of Usual Tools"
of the Autoconf manual. That section describes how to write portable
tests.

And this is how to write portable makefiles, so it belongs to
make-stds.texi or maybe also to the Automake manual.

Regards,
Pavel Roskin



From proski@gnu.org Thu Dec 14 11:26:48 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 146bDU-0003NS-00; Thu, 14 Dec 2000 11:26:48 -0500
Date: Thu, 14 Dec 2000 11:27:35 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@fonzie.nine.com>
To: Akim Demaille <akim@epita.fr>
cc: Autoconf List <autoconf@gnu.org>
Subject: Re: Config error for Darwin (Mac OS/X)
In-Reply-To: <mv4wvd45jq2.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012141109260.17335-100000@fonzie.nine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> The problem is a missing space before the ; IMHO.  Could you try if it
> fixes the problem and adjust Autoconf?

It doesn't help. Both bash 1.14.7 and bash 2.03 don't like stray
semicolons, either preceded by spaces or not. Ash 0.2 and zsh 3.0.7 don't
notice them.

A colon would help, but it doesn't belong here.

The best solution would be not to add a newline at the end of
AC_MSG_ERROR. Autoconf-2.13 did not add it:

if true; then
 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
fi

so it should be reasonably safe.

In fact, the final "dnl" in AS_ERROR disappeared very recently (two days
ago!), in the revision 1.19 of m4sh.m4:

 # AS_ERROR(ERROR, [EXIT-STATUS = 1])
 # ----------------------------------
 m4_define([AS_ERROR],
-[{m4_ifset([AC_LOG_FD],
-           [_AS_ECHO([$as_me:__oline__: error: $1], [AS_MESSAGE_LOG_FD])
-])[]dnl
-  _AS_ECHO([$as_me: error: $1], 2)
-  AS_EXIT([$2]); }[]dnl
+[{ AS_MESSAGE([error: $1], [2])
+   AS_EXIT([$2]); }
 ])# AS_ERROR

with the log message:

revision 1.19
date: 2000/12/12 10:53:41;  author: akim;  state: Exp;  lines: +8 -15
AS_ERROR was not properly saving data in the log file.
* sh.m4 (AS_WARN, AS_ERROR): Use AS_MESSAGE.
(_AS_ECHO): Fix quotation.
(AS_MESSAGE): Use `as_me'.
* acgeneral.m4: More banners in the log.
(_AC_INIT_DEFAULTS): Compute as_me before using it.

I assume that the removal of dnl was unintentional, so I'm reverting it.
The patch goes to Autoconf-patches@gnu.org

Regards,
Pavel Roskin



From oliva@lsd.ic.unicamp.br Thu Dec 14 12:32:59 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146cFV-0006uz-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 12:32:58 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBEHTaA14276;
	Thu, 14 Dec 2000 15:29:36 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
	<mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 14 Dec 2000 15:29:35 -0200
In-Reply-To: Akim Demaille's message of "14 Dec 2000 12:43:43 +0100"
Message-ID: <or8zpiq5c0.fsf@guarana.lsd.ic.unicamp.br>
Lines: 21
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 14, 2000, Akim Demaille <akim@epita.fr> wrote:

> I plan to have the two tests: the a.exe one (in a conftestdir as was
> to be suggested by Alexandre), and the -o conftest$ac_exeext one.

To be sincere, I hadn't thought of this option.  But, now that you
mentioned, I see it may introduce other (unlikely, I agree) problems
in itself.  Think of CC, CPPFLAGS, CFLAGS, LDFLAGS or LIBS containing
some options that reference relative filenames.  If you enter
conftestdir, these options may break the compilation/linking.  Ugh!

> As for the other cross compilers, let them receive our signal: we are
> setting a standard they have to follow :)

This doesn't fit in very well with autoconf's standards :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Thu Dec 14 12:33:31 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146cFq-0006ve-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 12:33:30 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBEHQqo11103;
	Thu, 14 Dec 2000 15:26:52 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214011755.27134C-100000@cse.cygnus.com>
	<mv4r93b2v7b.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 14 Dec 2000 15:26:51 -0200
In-Reply-To: Akim Demaille's message of "14 Dec 2000 10:44:40 +0100"
Message-ID: <ord7euq5gk.fsf@guarana.lsd.ic.unicamp.br>
Lines: 22
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 14, 2000, Akim Demaille <akim@epita.fr> wrote:

> | % i586-cygwin32-gcc tmp.c
> | % ls *.exe
> | a.exe

> Yipeeeeeeee|  Hey Alexandre, did you see that!?!

Yep.  I knew about it.  I even mentioned this fact a few days ago:
GCC on MS-Windows will generate a.exe instead of a.out.  The problem
is that a.out and a.exe are outside the file name space of autoconf.
The user might well have an a.exe program in their tree that they
wouldn't want configure to overwrite/remove.

Maybe we should just rule the user shouldn't have a program named `a'
and be done with it?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Thu Dec 14 12:33:01 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146cFQ-0006v7-00; Thu, 14 Dec 2000 12:33:00 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBEHWcY17857;
	Thu, 14 Dec 2000 15:32:38 -0200
To: Pavel Roskin <proski@gnu.org>
Cc: Bernard Dautrevaux <Dautrevaux@microprocess.com>,
   Akim Demaille <akim@epita.fr>, <autoconf@gnu.org>
Subject: Re: Expanded rules for scripts
References: <Pine.LNX.4.30.0012141001540.838-100000@fonzie.nine.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 14 Dec 2000 15:32:35 -0200
In-Reply-To: Pavel Roskin's message of "Thu, 14 Dec 2000 10:25:26 -0500 (EST)"
Message-ID: <or4s06q570.fsf@guarana.lsd.ic.unicamp.br>
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 14, 2000, Pavel Roskin <proski@gnu.org> wrote:

> You cannot make the target of the suffix rule depend on anything else
> other then the "corresponding implicit prerequisite".

Do you have an example of something that breaks with this?  I've heard
about this before, but all I know of is a bug in FreeBSD make that has
broken some suffix rules lately.

Will it still break if the implicit dependency that comes with the
suffix rule is duplicated in the explicit dependences, i.e.:

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<

foo.o: foo.c foo.h

> This would work as expected with GNU make, but is will break with BSD
> make. It will not just break, it will break badly, because it is not the
> explicit rule that in ignored by BSD make - it is the suffix rule. Thus
> the commands in the suffix rule will not be run by the BSD make.

Doesn't it even report the fact that it doesn't know how to build
foo.o?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From larsa@sim.no Thu Dec 14 14:07:15 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146dil-0001j6-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 14:07:15 -0500
Received: (qmail 30748 invoked by uid 2000); 14 Dec 2000 19:07:14 -0000
Date: Thu, 14 Dec 2000 20:07:14 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Akim Demaille <akim@epita.fr>, Mo DeJong <mdejong@cygnus.com>,
  autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
Message-ID: <20001214200713.A30646@sim.no>
References: <Pine.SOL.3.91.1001214011755.27134C-100000@cse.cygnus.com> <mv4r93b2v7b.fsf@nostromo.lrde.epita.fr> <ord7euq5gk.fsf@guarana.lsd.ic.unicamp.br>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <ord7euq5gk.fsf@guarana.lsd.ic.unicamp.br>; from oliva@lsd.ic.unicamp.br on Thu, Dec 14, 2000 at 03:26:51PM -0200
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, Dec 14, 2000 at 03:26:51PM -0200, Alexandre Oliva wrote:
: Maybe we should just rule the user shouldn't have a program named `a'
: and be done with it?

I want to have a program called `a'.  I just want to issue the command
`a coke', and then a gorgeous delivery girl should enter with one.  Can
I have that?  Is that OK?  ;-)

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From assar@assaris.sics.se Thu Dec 14 22:39:55 2000
Received: from dyna225-119.nada.kth.se ([130.237.225.119] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146lit-0005Ii-00
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 22:39:55 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id EAA04927;
	Fri, 15 Dec 2000 04:40:03 +0100 (CET)
	(envelope-from assar)
To: Autoconf List <autoconf@gnu.org>
Subject: is $* the complete path?
From: Assar Westerlund <assar@sics.se>
Date: 15 Dec 2000 04:40:02 +0100
Message-ID: <5lu2864ajx.fsf@assaris.sics.se>
Lines: 36
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

While building the current autoconf with gnu-make 3.75 I've had
problems in `man', since $* did get expanded to the complete path of
the dependency and not just the file name.  I've seen similar
behaviour from other instances of make, and while not knowing what is
the correct way for making to behave here I think some extra care
doesn't hurt.  I added the appended patch which seems to make things
work better.  Comments?

/assar

Index: man/Makefile.am
===================================================================
RCS file: /cvs/autoconf/man/Makefile.am,v
retrieving revision 1.2
diff -u -w -u -w -r1.2 Makefile.am
--- man/Makefile.am	2000/12/06 16:02:59	1.2
+++ man/Makefile.am	2000/12/15 03:39:23
@@ -24,13 +24,14 @@
 SUFFIXES = .x .1
 
 .x.1:
-	@if test -f $(top_builddir)/$*; then \
+	@f=`basename $*`; \
+	if test -f $(top_builddir)/$$f; then \
 	  echo "Updating man page $@"; \
 	  $(HELP2MAN) \
-	    --include=$(srcdir)/$*.x \
+	    --include=$(srcdir)/$$f.x \
 	    --include=$(srcdir)/common.x \
 	    --output=$@ \
-	    $(top_builddir)/$*; \
+	    $(top_builddir)/$$f; \
 	else \
 	  echo "WARNING: The man page $@ cannot be updated yet."; \
 	  echo "         Retry once the corresponding executable is built."; \



From harlan@bali.trilogy.com Fri Dec 15 01:28:04 2000
Received: from bali.trilogy.com ([149.74.161.104])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146oLc-0002PG-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 01:28:04 -0500
Received: from bali.trilogy.com (localhost [127.0.0.1])
	by bali.trilogy.com (Postfix) with ESMTP id 5019E172A3
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 00:27:54 -0600 (CST)
To: autoconf@gnu.org
Subject: CVS autoconf, config.{sub,guess}, and "make install"
User-Agent: EMH/1.10.0 REMI/1.14.2 (=?ISO-8859-1?Q?Hokuhoku-=D2shima?=)
 Chao/1.14.1 (=?ISO-8859-1?Q?Rokujiz=F2?=) APEL/10.2  XEmacs/21.1 (patch 12)
 (Channel Islands) (sparc-sun-solaris2.8)
MIME-Version: 1.0 (generated by REMI 1.14.2 - =?ISO-8859-1?Q?=22Hokuhoku-=D2?=
 =?ISO-8859-1?Q?shima=22?=)
Content-Type: text/plain; charset=US-ASCII
Date: Fri, 15 Dec 2000 00:27:54 -0600
Message-ID: <9341.976861674@bali.trilogy.com>
From: Harlan Stenn <harlan@bali.trilogy.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

The current CVS autoconf does not "make install" properly if builddir !=
srcdir.

The following fragment is from man/Makefile:

 ...
 # Independent from this package.
 config.guess.1: $(srcdir)/config.guess.x  $(top_srcdir)/config.guess
 config.sub.1:   $(srcdir)/config.sub.x    $(top_srcdir)/config.sub

 .x.1:
        @if test -f $(top_builddir)/$*; then \

If the package is being built outside of the source tree, the .x.1 rule
looks for the programs in top_builddir, but the dependency lines look
for the programs in srcdir.

H


From oliva@lsd.ic.unicamp.br Fri Dec 15 01:46:40 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146odb-0002eM-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 01:46:39 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBF6kWm09452;
	Fri, 15 Dec 2000 04:46:32 -0200
To: "Lars J. Aas" <larsa@sim.no>
Cc: Akim Demaille <akim@epita.fr>, Mo DeJong <mdejong@cygnus.com>,
   autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214011755.27134C-100000@cse.cygnus.com>
	<mv4r93b2v7b.fsf@nostromo.lrde.epita.fr>
	<ord7euq5gk.fsf@guarana.lsd.ic.unicamp.br>
	<20001214200713.A30646@sim.no>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 15 Dec 2000 04:46:25 -0200
In-Reply-To: "Lars J. Aas"'s message of "Thu, 14 Dec 2000 20:07:14 +0100"
Message-ID: <orsnnqgp1a.fsf@guarana.lsd.ic.unicamp.br>
Lines: 28
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 14, 2000, "Lars J. Aas" <larsa@sim.no> wrote:

> On Thu, Dec 14, 2000 at 03:26:51PM -0200, Alexandre Oliva wrote:
> : Maybe we should just rule the user shouldn't have a program named `a'
> : and be done with it?

> I want to have a program called `a'.

Well, then you must not place it in the directory in which you run
`configure' on MS-Windows systems, otherwise the program would be
removed and you'd have to rebuild it later on.

> I just want to issue the command `a coke', and then a gorgeous
> delivery girl should enter with one.  Can I have that?  Is that OK?
> ;-)

:-)

Not really.  Since the problem would only show up when `a.exe' is in
the current directory, you'd have had to type `./a coke', which isn't
as funny :-)  Unless MS-Windows searches `.' by default regardless of
PATH.  I seem to recall it does.  But does it matter in this case?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From psmith@baynetworks.com Fri Dec 15 01:48:00 2000
Received: from ns1.baynetworks.com ([134.177.3.20] helo=baynet.baynetworks.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146oet-0002eu-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 01:47:59 -0500
Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84])
	by baynet.baynetworks.com (8.9.1/8.9.1) with ESMTP id WAA19770
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 22:46:17 -0800 (PST)
Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6])
	by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id BAA02516
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 01:47:53 -0500 (EST)
Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127])
	by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP
	id BAA25216; Fri, 15 Dec 2000 01:47:53 -0500
	for <autoconf@gnu.org>
Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian))
	id 146oee-0002Cy-00; Fri, 15 Dec 2000 01:47:44 -0500
From: "Paul D. Smith" <psmith@gnu.org>
To: Assar Westerlund <assar@sics.se>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se>
In-Reply-To: Assar Westerlund's message of "15 Dec 2000 04:40:02 +0100"
Reply-To: psmith@gnu.org
Organization: GNU's Not Unix!
Date: 15 Dec 2000 01:47:44 -0500
Message-ID: <p5y9ximb8v.fsf@lemming.engeast.baynetworks.com>
Lines: 20
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

%% Assar Westerlund <assar@sics.se> writes:

  aw> While building the current autoconf with gnu-make 3.75 I've had
  aw> problems in `man', since $* did get expanded to the complete path of
  aw> the dependency and not just the file name.  I've seen similar
  aw> behaviour from other instances of make, and while not knowing what is
  aw> the correct way for making to behave here I think some extra care
  aw> doesn't hurt.

The $* variable always expands to the entire part of the target filename
which _doesn't_ match the suffix.

If the suffix is ".x" and the target is "foo.x", then $* is foo.  If the
target is "/bar/baz/biz/foo.x", then $* is /bar/baz/biz/foo.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


From assar@assaris.sics.se Fri Dec 15 02:02:08 2000
Received: from dyna225-119.nada.kth.se ([130.237.225.119] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146osZ-00039c-00; Fri, 15 Dec 2000 02:02:07 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id IAA05995;
	Fri, 15 Dec 2000 08:02:14 +0100 (CET)
	(envelope-from assar)
To: psmith@gnu.org
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se> <p5y9ximb8v.fsf@lemming.engeast.baynetworks.com>
From: Assar Westerlund <assar@sics.se>
Date: 15 Dec 2000 08:02:13 +0100
In-Reply-To: "Paul D. Smith"'s message of "15 Dec 2000 01:47:44 -0500"
Message-ID: <5l3dfq416y.fsf@assaris.sics.se>
Lines: 40
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

"Paul D. Smith" <psmith@gnu.org> writes:

> %% Assar Westerlund <assar@sics.se> writes:
> 
>   aw> While building the current autoconf with gnu-make 3.75 I've had
>   aw> problems in `man', since $* did get expanded to the complete path of
>   aw> the dependency and not just the file name.  I've seen similar
>   aw> behaviour from other instances of make, and while not knowing what is
>   aw> the correct way for making to behave here I think some extra care
>   aw> doesn't hurt.
> 
> The $* variable always expands to the entire part of the target filename
> which _doesn't_ match the suffix.

> If the suffix is ".x" and the target is "foo.x", then $* is foo.  If the
> target is "/bar/baz/biz/foo.x", then $* is /bar/baz/biz/foo.

Weird.  I had the following case (hopefully these parts of the
Makefile are enough), from autoconf's man/Makefile.am:

srcdir = /a/long/path/man
top_srcdir = /a/long/path
VPATH = /a/long/path/man

top_builddir = ..

.x.1:
        if test -f $(top_builddir)/$*; then \
        ...

and I was getting:

if test -f ..//a/long/path/man/autoconf; then \

Since the target should have been "autoconf.1", I don't see why the
vpath gets added to $* ?

And is using basename a reasonably solution in this case?

/assar


From psmith@baynetworks.com Fri Dec 15 02:37:44 2000
Received: from ns2.baynetworks.com ([134.177.3.16] helo=southpass.baynetworks.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146pR2-0004Ia-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 02:37:44 -0500
Received: from mailhost.BayNetworks.COM (h8754.s84f5.BayNetworks.COM [132.245.135.84])
	by southpass.baynetworks.com (8.9.1/8.9.1) with ESMTP id XAA20752
	for <autoconf@gnu.org>; Thu, 14 Dec 2000 23:28:51 -0800 (PST)
Received: from pobox.engeast.BayNetworks.COM (pobox.engeast.baynetworks.com [192.32.61.6])
	by mailhost.BayNetworks.COM (8.9.1/8.8.8) with ESMTP id CAA04334
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 02:37:42 -0500 (EST)
Received: from lemming.engeast.baynetworks.com (lemming [192.32.150.127])
	by pobox.engeast.BayNetworks.COM (SMI-8.6/BNET-97/04/24-S) with SMTP
	id CAA26107; Fri, 15 Dec 2000 02:37:42 -0500
	for <autoconf@gnu.org>
Received: from psmith by lemming.engeast.baynetworks.com with local (Exim 3.16 #1 (Debian))
	id 146pR0-0002eJ-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 02:37:42 -0500
From: "Paul D. Smith" <psmith@gnu.org>
To: Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se>
	<p5y9ximb8v.fsf@lemming.engeast.baynetworks.com>
	<5l3dfq416y.fsf@assaris.sics.se>
In-Reply-To: Assar Westerlund's message of "15 Dec 2000 08:02:13 +0100"
Reply-To: psmith@gnu.org
Organization: GNU's Not Unix!
Date: 15 Dec 2000 02:37:42 -0500
Message-ID: <p5hf46m8xl.fsf@lemming.engeast.baynetworks.com>
Lines: 49
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

%% Assar Westerlund <assar@sics.se> writes:

  >> The $* variable always expands to the entire part of the target filename
  >> which _doesn't_ match the suffix.

  aw> Weird.  I had the following case (hopefully these parts of the
  aw> Makefile are enough), from autoconf's man/Makefile.am:

  aw> srcdir = /a/long/path/man
  aw> top_srcdir = /a/long/path
  aw> VPATH = /a/long/path/man

  aw> top_builddir = ..

  aw> .x.1:
  aw>         if test -f $(top_builddir)/$*; then \
  aw>         ...

  aw> and I was getting:

  aw> if test -f ..//a/long/path/man/autoconf; then \

  aw> Since the target should have been "autoconf.1", I don't see why the
  aw> vpath gets added to $* ?

Because the target _is_ the VPATH-expanded name, by the time the command
script is evaluated.  That's how VPATH works: the names of the target
and prerequisites are expanded to be their VPATH versions if they are
found, and the automatic variables ($@, $*, $<, $^, etc.) are set using
those expanded values.

Since VPATH doesn't change the command script contents directly,
automatic variables are the _only_ way the command script can use VPATH
pathnames at all.

That's one major reason why VPATH is essentially useless in most SysV
and at least earlier BSD makes: most of these makes don't allow the use
of (most) automatic variables in explicit rules; they're only allowed in
implicit rules.  Stupid, but...

  aw> And is using basename a reasonably solution in this case?

I think it is.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


From oliva@lsd.ic.unicamp.br Fri Dec 15 02:39:55 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146pT9-0004LJ-00; Fri, 15 Dec 2000 02:39:55 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBF7dmq00709;
	Fri, 15 Dec 2000 05:39:48 -0200
To: Assar Westerlund <assar@sics.se>
Cc: psmith@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se>
	<p5y9ximb8v.fsf@lemming.engeast.baynetworks.com>
	<5l3dfq416y.fsf@assaris.sics.se>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 15 Dec 2000 05:39:45 -0200
In-Reply-To: Assar Westerlund's message of "15 Dec 2000 08:02:13 +0100"
Message-ID: <ory9xi2kvy.fsf@guarana.lsd.ic.unicamp.br>
Lines: 11
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 15, 2000, Assar Westerlund <assar@sics.se> wrote:

> And is using basename a reasonably solution in this case?

basename is not portable.  You should use sed instead.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Fri Dec 15 03:25:37 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146qBM-0005zF-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 03:25:36 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA22078
	Fri, 15 Dec 2000 09:24:37 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146qIq-0002ij-00; Fri, 15 Dec 2000 09:33:20 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146qIL-0003iH-00; Fri, 15 Dec 2000 09:32:49 +0100
To: Harlan Stenn <harlan@bali.trilogy.com>
Cc: autoconf@gnu.org
Subject: Re: CVS autoconf, config.{sub,guess}, and "make install"
References: <9341.976861674@bali.trilogy.com>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 09:32:48 +0100
In-Reply-To: Harlan Stenn's message of "Fri, 15 Dec 2000 00:27:54 -0600"
Message-ID: <mv4puiut77z.fsf@nostromo.lrde.epita.fr>
Lines: 34
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Thanks Harlan, I'm checking this in.

        Akim

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>
	* man/Makefile.am (.x.1): Fix to work properly with
	builddir != srcdir.

Index: man/Makefile.am
===================================================================
RCS file: /cvs/autoconf/man/Makefile.am,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.am
--- man/Makefile.am 2000/12/06 16:02:59 1.2
+++ man/Makefile.am 2000/12/15 08:24:22
@@ -24,13 +24,14 @@
 SUFFIXES = .x .1
 
 .x.1:
-	@if test -f $(top_builddir)/$*; then \
+	test -f $(top_builddir)/$* && prog=$(top_builddir)/$*; \
+	test -f $(top_srcdir)/$* && prog=$(top_srcdir)/$*; \
+	if test -n "$$prog"; then \
 	  echo "Updating man page $@"; \
 	  $(HELP2MAN) \
 	    --include=$(srcdir)/$*.x \
 	    --include=$(srcdir)/common.x \
-	    --output=$@ \
-	    $(top_builddir)/$*; \
+	    --output=$@ $$prog; \
 	else \
 	  echo "WARNING: The man page $@ cannot be updated yet."; \
 	  echo "         Retry once the corresponding executable is built."; \


From akim@epita.fr Fri Dec 15 03:32:00 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146qHX-00065y-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 03:31:59 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA22585
	Fri, 15 Dec 2000 09:30:49 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146qOr-0002ka-00; Fri, 15 Dec 2000 09:39:33 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146qOB-0003j9-00; Fri, 15 Dec 2000 09:38:51 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
	<mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
	<or8zpiq5c0.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 09:38:51 +0100
In-Reply-To: Alexandre Oliva's message of "14 Dec 2000 15:29:35 -0200"
Message-ID: <mv4lmtit6xw.fsf@nostromo.lrde.epita.fr>
Lines: 32
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Dec 14, 2000, Akim Demaille <akim@epita.fr> wrote:
>> I plan to have the two tests: the a.exe one (in a conftestdir as
>> was to be suggested by Alexandre), and the -o conftest$ac_exeext
>> one.

Alexandre> To be sincere, I hadn't thought of this option.  But, now
Alexandre> that you mentioned, I see it may introduce other (unlikely,
Alexandre> I agree) problems in itself.  Think of CC, CPPFLAGS,
Alexandre> CFLAGS, LDFLAGS or LIBS containing some options that
Alexandre> reference relative filenames.  If you enter conftestdir,
Alexandre> these options may break the compilation/linking.  Ugh!

Very nice point, but after some more thought I don't think it matters
at all.  I mean this is very very early in the process, there is
nothing in confdefs.h, and since configure is being run, we are
probably not using anything from the package itself.  So remain only
absolute parameters (installed headers, libs etc) which should not be
affected by conftestdir.

But maybe I'm not really considering the real problems, I trust you.

Then, frankly, using a.out and a.exe doesn't sound that bad to me.  If
you want we can save and restore them.

>> As for the other cross compilers, let them receive our signal: we
>> are setting a standard they have to follow :)

Alexandre> This doesn't fit in very well with autoconf's standards :-)

Huh?  Then there might be something points I didn't catch properly :)


From oliva@lsd.ic.unicamp.br Fri Dec 15 03:48:18 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146qXJ-0006w1-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 03:48:18 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBF8mBZ12116;
	Fri, 15 Dec 2000 06:48:11 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
	<mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
	<or8zpiq5c0.fsf@guarana.lsd.ic.unicamp.br>
	<mv4lmtit6xw.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 15 Dec 2000 06:48:11 -0200
In-Reply-To: Akim Demaille's message of "15 Dec 2000 09:38:51 +0100"
Message-ID: <or8zpi2hpw.fsf@guarana.lsd.ic.unicamp.br>
Lines: 27
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 15, 2000, Akim Demaille <akim@epita.fr> wrote:

> So remain only absolute parameters (installed headers, libs etc)
> which should not be affected by conftestdir.

Someone might have some reason (stupidity? :-) to use relative
pathnames in environment variables that affect configure.  I'm not
sure we should support this case, though.

> Then, frankly, using a.out and a.exe doesn't sound that bad to me.  If
> you want we can save and restore them.

Sounds reasonable.

Anyway, it's not like such files are going to be lost forever.  If
you're running configure, it will overwrite some files in the build
tree anyway (config.h, Makefile, etc), and, if you have a.exe in the
build tree, built off your Makefile, it's probably easy enough to
rebuild it.

But saving and restoring doesn't sound bad either...

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Fri Dec 15 03:50:50 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146qZl-0006zj-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 03:50:50 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA24014
	Fri, 15 Dec 2000 09:49:58 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146qhN-0002pr-00; Fri, 15 Dec 2000 09:58:41 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146qgh-0004j2-00; Fri, 15 Dec 2000 09:57:59 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
	<mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
	<or8zpiq5c0.fsf@guarana.lsd.ic.unicamp.br>
	<mv4lmtit6xw.fsf@nostromo.lrde.epita.fr>
	<or8zpi2hpw.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 09:57:58 +0100
In-Reply-To: Alexandre Oliva's message of "15 Dec 2000 06:48:11 -0200"
Message-ID: <mv4hf46t621.fsf@nostromo.lrde.epita.fr>
Lines: 5
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> But saving and restoring doesn't sound bad either...

OK, I'll go for this.


From akim@epita.fr Fri Dec 15 04:34:39 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146rGA-0000TZ-00; Fri, 15 Dec 2000 04:34:39 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA27447
	Fri, 15 Dec 2000 10:33:41 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146rNh-00031V-00; Fri, 15 Dec 2000 10:42:25 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146rMr-0005Hi-00; Fri, 15 Dec 2000 10:41:33 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org,
        APatche <autoconf-patches@gnu.org>
Subject: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
	<mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
	<or8zpiq5c0.fsf@guarana.lsd.ic.unicamp.br>
	<mv4lmtit6xw.fsf@nostromo.lrde.epita.fr>
	<or8zpi2hpw.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 10:41:33 +0100
In-Reply-To: Alexandre Oliva's message of "15 Dec 2000 06:48:11 -0200"
Message-ID: <mv4d7eut41e.fsf_-_@nostromo.lrde.epita.fr>
Lines: 103
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Here is my proposal.  Mo, could you give it a try?  Thanks!

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>
	* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
	(_AC_COMPILER_EXEEXT_O): Extracted from...
	(_AC_COMPILER_EXEEXT): here.  Adjust.

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.97
diff -u -u -r1.97 aclang.m4
--- aclang.m4 2000/12/15 07:49:13 1.97
+++ aclang.m4 2000/12/15 09:31:15
@@ -652,22 +652,48 @@
 AC_DEFUN([AC_OBJEXT],   [])
 
 
-# _AC_COMPILER_EXEEXT
-# -------------------
-# Check for the extension used for executables.  It compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
-#
-# This macro is called by AC_LANG_COMPILER, the latter being required
-# by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
-m4_define([_AC_COMPILER_EXEEXT],
-[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+# _AC_COMPILER_EXEEXT_DEFAULT
+# ---------------------------
+# Check for the extension used for the default name for executables.
+m4_define([_AC_COMPILER_EXEEXT_DEFAULT],
+[# Try without -o first, disregard a.out.
+ac_link_save=$ac_link
+ac_link=`echo "$ac_link" | sed ['s/ -o *conftest[^ ]*//']`
+if ls a.* >/dev/null 2>&1; then
+  rm -rf conftestdir
+  mkdir conftestdir
+  mv a.* conftestdir
+fi
+AS_IFELSE([AC_TRY_EVAL(ac_link)],
+          [for ac_file in `ls a.exe a.* 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
+       break;;
+  esac
+done],
+          [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
+cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD])
+if test -d conftestdir; then
+  mv conftestdir/* .
+  rm -rf conftestdir
+fi
+ac_link=$ac_link_save
+])# _AC_COMPILER_EXEEXT_DEFAULT
+
+
+# _AC_COMPILER_EXEEXT_O
+# ---------------------
+# Check for the extension used when `-o foo'.  Try to see if ac_cv_exeext,
+# as computed by _AC_COMPILER_EXEEXT_DEFAULT is OK.
+m4_define([_AC_COMPILER_EXEEXT_O],
+[_AC_LINK_IFELSE([],
 [# If both `conftest.exe' and `conftest' are `present' (well, observable)
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
 # `rm'.
-for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
+for ac_file in `ls conftest$ac_cv_exeext conftest.exe conftest conftest.* \
+                  2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
@@ -675,7 +701,24 @@
   esac
 done],
               [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and link])])
-rm -f conftest$ac_cv_exeext])
+rm -f conftest.$ac_ext conftest$ac_cv_exeext
+])# _AC_COMPILER_EXEEXT_O
+
+
+# _AC_COMPILER_EXEEXT
+# -------------------
+# Check for the extension used for executables.  It compiles a test
+# executable.  If this is called, the executable extensions will be
+# automatically used by link commands run by the configure script.
+#
+# Note that some compilers (cross or not), strictly obey to `-o foo' while
+# the host requires `foo.exe', so we should not depend upon `-o' to
+# test EXEEXT.  But then, be sure no to destroy user files.
+m4_define([_AC_COMPILER_EXEEXT],
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+                [AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
+_AC_COMPILER_EXEEXT_DEFAULT
+_AC_COMPILER_EXEEXT_O])
 AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl
 ac_exeext=$EXEEXT
 ])# _AC_COMPILER_EXEEXT


From assar@assaris.sics.se Fri Dec 15 04:44:47 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146rPy-0000xp-00; Fri, 15 Dec 2000 04:44:47 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id KAA06451;
	Fri, 15 Dec 2000 10:44:44 +0100 (CET)
	(envelope-from assar)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: psmith@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se> <p5y9ximb8v.fsf@lemming.engeast.baynetworks.com> <5l3dfq416y.fsf@assaris.sics.se> <ory9xi2kvy.fsf@guarana.lsd.ic.unicamp.br>
From: Assar Westerlund <assar@sics.se>
Date: 15 Dec 2000 10:44:43 +0100
In-Reply-To: Alexandre Oliva's message of "15 Dec 2000 05:39:45 -0200"
Message-ID: <5l4s06f27o.fsf@assaris.sics.se>
Lines: 11
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> On Dec 15, 2000, Assar Westerlund <assar@sics.se> wrote:
> 
> > And is using basename a reasonably solution in this case?
> 
> basename is not portable.  You should use sed instead.

With an expression similar to the dirname one in m4sh.m4 ?  You don't
happen to have one for basename too? :-)

/assar


From oliva@lsd.ic.unicamp.br Fri Dec 15 04:50:40 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146rVf-00013c-00; Fri, 15 Dec 2000 04:50:39 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBF9oT206526;
	Fri, 15 Dec 2000 07:50:29 -0200
To: Assar Westerlund <assar@sics.se>
Cc: psmith@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se>
	<p5y9ximb8v.fsf@lemming.engeast.baynetworks.com>
	<5l3dfq416y.fsf@assaris.sics.se>
	<ory9xi2kvy.fsf@guarana.lsd.ic.unicamp.br>
	<5l4s06f27o.fsf@assaris.sics.se>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 15 Dec 2000 07:50:29 -0200
In-Reply-To: Assar Westerlund's message of "15 Dec 2000 10:44:43 +0100"
Message-ID: <ord7euypwa.fsf@guarana.lsd.ic.unicamp.br>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 15, 2000, Assar Westerlund <assar@sics.se> wrote:

> You don't happen to have one for basename too? :-)

Basename is far simpler:

% echo "$pathname" | sed 's,.*/,,'

For extra credit, you may want to cover DOS pathnames too, but I'll
leave that as an exercise for the reader :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From assar@assaris.sics.se Fri Dec 15 04:59:59 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146reg-0001VX-00; Fri, 15 Dec 2000 04:59:59 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id LAA06523;
	Fri, 15 Dec 2000 11:00:01 +0100 (CET)
	(envelope-from assar)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: psmith@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: is $* the complete path?
References: <5lu2864ajx.fsf@assaris.sics.se> <p5y9ximb8v.fsf@lemming.engeast.baynetworks.com> <5l3dfq416y.fsf@assaris.sics.se> <ory9xi2kvy.fsf@guarana.lsd.ic.unicamp.br> <5l4s06f27o.fsf@assaris.sics.se> <ord7euypwa.fsf@guarana.lsd.ic.unicamp.br>
From: Assar Westerlund <assar@sics.se>
Date: 15 Dec 2000 11:00:00 +0100
In-Reply-To: Alexandre Oliva's message of "15 Dec 2000 07:50:29 -0200"
Message-ID: <5lu286dmxr.fsf@assaris.sics.se>
Lines: 33
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> Basename is far simpler:
> 
> % echo "$pathname" | sed 's,.*/,,'

So is this ok?

/assar

Index: man/Makefile.am
===================================================================
RCS file: /cvs/autoconf/man/Makefile.am,v
retrieving revision 1.3
diff -u -w -u -w -r1.3 Makefile.am
--- man/Makefile.am	2000/12/15 08:25:10	1.3
+++ man/Makefile.am	2000/12/15 09:56:32
@@ -24,12 +24,13 @@
 SUFFIXES = .x .1
 
 .x.1:
-	test -f $(top_builddir)/$* && prog=$(top_builddir)/$*; \
-	test -f $(top_srcdir)/$* && prog=$(top_srcdir)/$*; \
+	f=`echo "$*" | sed 's,.*/,,'`; \
+	test -f $(top_builddir)/$$f && prog=$(top_builddir)/$$f; \
+	test -f $(top_srcdir)/$$f && prog=$(top_srcdir)/$$f; \
 	if test -n "$$prog"; then \
 	  echo "Updating man page $@"; \
 	  $(HELP2MAN) \
-	    --include=$(srcdir)/$*.x \
+	    --include=$(srcdir)/$$f.x \
 	    --include=$(srcdir)/common.x \
 	    --output=$@ $$prog; \
 	else \


From mdejong@cygnus.com Fri Dec 15 06:08:35 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146sj5-0006Pu-00; Fri, 15 Dec 2000 06:08:35 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id DAA17952;
	Fri, 15 Dec 2000 03:08:19 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id DAA05184; Fri, 15 Dec 2000 03:08:18 -0800 (PST)
Date: Fri, 15 Dec 2000 03:08:18 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: Akim Demaille <akim@epita.fr>
cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org,
        APatche <autoconf-patches@gnu.org>
Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
In-Reply-To: <mv4d7eut41e.fsf_-_@nostromo.lrde.epita.fr>
Message-ID: <Pine.SOL.3.91.1001215022252.4221G-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 15 Dec 2000, Akim Demaille wrote:

> 
> Here is my proposal.  Mo, could you give it a try?  Thanks!
> 
> Index: ChangeLog
> from  Akim Demaille  <akim@epita.fr>
> 	* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
> 	(_AC_COMPILER_EXEEXT_O): Extracted from...
> 	(_AC_COMPILER_EXEEXT): here.  Adjust.


Humm, no luck.

checking build system type... i686-pc-linux-gnu
checking host system type... i386-pc-mingw32msvc
checking for i386-mingw32msvc-g++... i386-mingw32msvc-g++
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking whether we are using the GNU C++ compiler... yes
checking for object suffix... o
checking for executable suffix... 
checking whether i386-mingw32msvc-g++ accepts -g... yes


>From config.log

configure:1518: checking for executable suffix
configure:1546: i386-mingw32msvc-g++    conftest.cc  >&5
configure:1549: $? = 0
configure:1569: i386-mingw32msvc-g++ -o conftest    conftest.cc  >&5
configure:1572: $? = 0
configure:1573: test -s conftest
configure:1576: $? = 0
configure:1601: result: 
configure:1608: checking whether i386-mingw32msvc-g++ accepts -g
configure:1629: i386-mingw32msvc-g++ -c -g  conftest.cc >&5



This patch (applied after you patch) seems to fix it:



--- akim_aclang.m4      Fri Dec 15 01:44:44 2000
+++ aclang.m4   Fri Dec 15 02:03:29 2000
@@ -668,7 +668,7 @@
           [for ac_file in `ls a.exe a.* 2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
-    *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
+    *) ac_cv_exeext=`expr "$ac_file" : 'a\(.*\)'`
        break;;
   esac
 done],
@@ -687,7 +687,11 @@
 # Check for the extension used when `-o foo'.  Try to see if 
ac_cv_exeext,
 # as computed by _AC_COMPILER_EXEEXT_DEFAULT is OK.
 m4_define([_AC_COMPILER_EXEEXT_O],
-[_AC_LINK_IFELSE([],
+[# Note that we have not set ac_exeext yet, so we do that here
+# because linking a file depends on ac_exeext not ac_cv_exeext
+ac_exeext_save=$ac_exeext
+ac_exeext=$ac_cv_exeext
+_AC_LINK_IFELSE([],
 [# If both `conftest.exe' and `conftest' are `present' (well, observable)
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -702,6 +706,7 @@
 done],
               [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and 
link])])
 rm -f conftest.$ac_ext conftest$ac_cv_exeext
+ac_exeext=$ac_exeext_save
 ])# _AC_COMPILER_EXEEXT_O




checking build system type... i686-pc-linux-gnu
checking host system type... i386-pc-mingw32msvc
checking for i386-mingw32msvc-g++... i386-mingw32msvc-g++
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking whether we are using the GNU C++ compiler... yes
checking for object suffix... o
checking for executable suffix... .exe
checking whether i386-mingw32msvc-g++ accepts -g... yes


Mo DeJong
Red Hat Inc


From akim@epita.fr Fri Dec 15 06:25:06 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146sz3-0002o0-00; Fri, 15 Dec 2000 06:25:05 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA07548
	Fri, 15 Dec 2000 12:23:36 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146t65-0003dt-00; Fri, 15 Dec 2000 12:32:21 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146t5F-0001QX-00; Fri, 15 Dec 2000 12:31:29 +0100
To: Mo DeJong <mdejong@cygnus.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org,
        APatche <autoconf-patches@gnu.org>
Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
References: <Pine.SOL.3.91.1001215022252.4221G-100000@cse.cygnus.com>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 12:31:28 +0100
In-Reply-To: Mo DeJong's message of "Fri, 15 Dec 2000 03:08:18 -0800 (PST)"
Message-ID: <mv4y9xhyl7z.fsf@nostromo.lrde.epita.fr>
Lines: 135
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| --- akim_aclang.m4      Fri Dec 15 01:44:44 2000
| +++ aclang.m4   Fri Dec 15 02:03:29 2000
| @@ -668,7 +668,7 @@
|            [for ac_file in `ls a.exe a.* 2>/dev/null`; do
|    case $ac_file in
|      *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
| -    *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
| +    *) ac_cv_exeext=`expr "$ac_file" : 'a\(.*\)'`

Pfff!!!  Sorry!

|         break;;
|    esac
|  done],
| @@ -687,7 +687,11 @@
|  # Check for the extension used when `-o foo'.  Try to see if 
| ac_cv_exeext,
|  # as computed by _AC_COMPILER_EXEEXT_DEFAULT is OK.
|  m4_define([_AC_COMPILER_EXEEXT_O],
| -[_AC_LINK_IFELSE([],
| +[# Note that we have not set ac_exeext yet, so we do that here
| +# because linking a file depends on ac_exeext not ac_cv_exeext
| +ac_exeext_save=$ac_exeext
| +ac_exeext=$ac_cv_exeext

Pff!!! Sorry again.  But note we don't need to save ac_exeext.

Here is your patch included in mine.

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>, Mo DeJong  <mdejong@cygnus.com>

	* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
	(_AC_COMPILER_EXEEXT_O): Extracted from...
	(_AC_COMPILER_EXEEXT): here.  Adjust.

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.97
diff -u -u -r1.97 aclang.m4
--- aclang.m4 2000/12/15 07:49:13 1.97
+++ aclang.m4 2000/12/15 11:22:24
@@ -652,22 +652,52 @@
 AC_DEFUN([AC_OBJEXT],   [])
 
 
-# _AC_COMPILER_EXEEXT
-# -------------------
-# Check for the extension used for executables.  It compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
-#
-# This macro is called by AC_LANG_COMPILER, the latter being required
-# by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
-m4_define([_AC_COMPILER_EXEEXT],
-[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+# _AC_COMPILER_EXEEXT_DEFAULT
+# ---------------------------
+# Check for the extension used for the default name for executables.
+m4_define([_AC_COMPILER_EXEEXT_DEFAULT],
+[# Try without -o first, disregard a.out.
+ac_link_save=$ac_link
+ac_link=`echo "$ac_link" | sed ['s/ -o *conftest[^ ]*//']`
+if ls a.* >/dev/null 2>&1; then
+  rm -rf conftestdir
+  mkdir conftestdir
+  mv a.* conftestdir
+fi
+AS_IFELSE([AC_TRY_EVAL(ac_link)],
+          [for ac_file in `ls a.exe a.* 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *) ac_cv_exeext=`expr "$ac_file" : 'a\(.*\)'`
+       break;;
+  esac
+done],
+          [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
+cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD])
+rm -f a.*
+if test -d conftestdir; then
+  mv conftestdir/* .
+  rm -rf conftestdir
+fi
+ac_link=$ac_link_save
+])# _AC_COMPILER_EXEEXT_DEFAULT
+
+
+# _AC_COMPILER_EXEEXT_O
+# ---------------------
+# Check for the extension used when `-o foo'.  Try to see if ac_cv_exeext,
+# as computed by _AC_COMPILER_EXEEXT_DEFAULT is OK.
+m4_define([_AC_COMPILER_EXEEXT_O],
+[# Note that we have not set ac_exeext yet, so we do that here because
+# linking a file depends on ac_exeext not ac_cv_exeext
+ac_exeext=$ac_cv_exeext
+_AC_LINK_IFELSE([],
 [# If both `conftest.exe' and `conftest' are `present' (well, observable)
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
 # `rm'.
-for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
+for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \
+                  2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
@@ -675,7 +705,24 @@
   esac
 done],
               [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and link])])
-rm -f conftest$ac_cv_exeext])
+rm -f conftest.$ac_ext conftest$ac_cv_exeext
+])# _AC_COMPILER_EXEEXT_O
+
+
+# _AC_COMPILER_EXEEXT
+# -------------------
+# Check for the extension used for executables.  It compiles a test
+# executable.  If this is called, the executable extensions will be
+# automatically used by link commands run by the configure script.
+#
+# Note that some compilers (cross or not), strictly obey to `-o foo' while
+# the host requires `foo.exe', so we should not depend upon `-o' to
+# test EXEEXT.  But then, be sure no to destroy user files.
+m4_define([_AC_COMPILER_EXEEXT],
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+                [AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
+_AC_COMPILER_EXEEXT_DEFAULT
+_AC_COMPILER_EXEEXT_O])
 AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl
 ac_exeext=$EXEEXT
 ])# _AC_COMPILER_EXEEXT


From akim@epita.fr Fri Dec 15 06:55:53 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146tSp-0003lR-00; Fri, 15 Dec 2000 06:55:52 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA00641
	Fri, 15 Dec 2000 12:55:08 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146tab-0003lc-00; Fri, 15 Dec 2000 13:03:53 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146ta6-0007Zy-00; Fri, 15 Dec 2000 13:03:22 +0100
To: Autoconf List <autoconf@gnu.org>
Cc: Pavel Roskin <proski@gnu.org>
Subject: AC_PROG_CPP test fails
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 13:03:22 +0100
Message-ID: <mv4ofydyjqt.fsf@nostromo.lrde.epita.fr>
Lines: 156
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi Pavel,

I have the test 28 that fails since this week on my machine.  I tend
to think that it is my machine that has a problem, here are the logs.

src/ace/tests % ./testsuite 28 -d -v                           nostromo Err 130
=========================================
Testing suite for autoconf, version 2.49c
=========================================
testing AC_PROG_CPP without warnings
     28. ./compile.at:77...
./compile.at:95: autoconf --autoconf-dir .. -l $at_srcdir
./compile.at:95: autoheader --autoconf-dir .. -l $at_srcdir
./compile.at:95: top_srcdir=$top_srcdir ./configure
--- empty       Fri Dec 15 13:00:04 2000
+++ stderr      Fri Dec 15 13:00:08 2000
@@ -0,0 +1 @@
+configure: error: C preprocessor "./mycpp" fails sanity check
checking for gcc... gcc
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking whether we are using the GNU C compiler... yes
checking for object suffix... o
checking for executable suffix... 
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... ./mycpp
Exit code was 1, expected 0
     28. ./compile.at:77: FAILED near `compile.at:95'

=========================================
Testing suite for autoconf, version 2.49c
=========================================
src/ace/tests % cat config.log                                   nostromo 13:00
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure 2.49c, executed with
 > ./configure 

## ---------- ##
## Platform.  ##
## ---------- ##

hostname = nostromo
uname -m = i686
uname -r = 2.2.17
uname -s = Linux
uname -v = #1 Sat Sep 9 12:42:22 EST 2000

/usr/bin/uname -p = 
/bin/uname -X     = 

/bin/arch              = i686
/usr/bin/arch -k       = 
/usr/convex/getsysinfo = 
hostinfo               = 
/bin/machine           = 
/usr/bin/oslevel       = 
/bin/universe          = 

PATH = /home/lrde/prof/akim/src/ace/tests:/home/lrde/prof/akim/src/ace:/home/lrde/prof/akim/bin:/home/lrde/prof/akim/bin:/home/lrde/prof/akim/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin:/usr/local/kde/bin

## ------------ ##
## Core tests.  ##
## ------------ ##

configure:939: checking for gcc
configure:961: result: gcc
configure:1183: checking whether the C compiler works
configure:1198: gcc -o conftest    conftest.c  >&5
configure:1201: $? = 0
configure:1202: test -s conftest
configure:1205: $? = 0
configure:1209: ./conftest
configure:1212: $? = 0
configure:1226: result: yes
configure:1239: checking whether we are cross compiling
configure:1241: result: no
configure:1244: checking whether we are using the GNU C compiler
configure:1265: gcc -c   conftest.c >&5
configure:1268: $? = 0
configure:1280: result: yes
configure:1283: checking for object suffix
configure:1301: gcc -c   conftest.c >&5
configure:1304: $? = 0
configure:1323: result: o
configure:1327: checking for executable suffix
configure:1345: gcc -o conftest    conftest.c  >&5
configure:1348: $? = 0
configure:1349: test -s conftest
configure:1352: $? = 0
configure:1375: result: 
configure:1382: checking whether gcc accepts -g
configure:1400: gcc -c -g  conftest.c >&5
configure:1403: $? = 0
configure:1413: result: yes
configure:1431: checking how to run the C preprocessor
configure:1531: ./mycpp  conftest.c >/dev/null 2>conftest.err
configure:1534: $? = 0
In file included from /usr/include/features.h:283,
                 from /usr/include/assert.h:35,
                 from configure:1527:
/usr/include/sys/cdefs.h:104: warning: garbage at end of `#ifdef' argument
configure: failed program was:
#line 1526 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:1589: result: ./mycpp
configure:1592: error: C preprocessor "./mycpp" fails sanity check
configure: exit 1



Note that my /lib/cpp does issue a warning on assert.h.  

src/ace/tests % /lib/cpp /usr/include/sys/cdefs.h >/dev/null     nostromo 13:00
/usr/include/sys/cdefs.h:104: warning: garbage at end of `#ifdef' argument

The guilty line is:

      /* Support for flexible arrays.  */
      #if __GNUC_PREREQ (2,97)
      /* GCC 2.97 supports C99 flexible array members.  */
      # define __flexarr	[]
      #else 
      # ifdef __GNUC__
      #  define __flexarr	[0]
      # else
----> #  ifdef __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
      #   define __flexarr	[]
      #  else
      /* Some other non-C99 compiler.  Approximate with [1].  */
      #   define __flexarr	[1]
      #  endif
      # endif
      #endif

I don't understand it.

src/ace/tests % /lib/cpp -v                                      nostromo Err 1
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
 /usr/lib/gcc-lib/i386-linux/2.95.2/cpp -lang-c -v -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -
GNU CPP version 2.95.2 20000220 (Debian GNU/Linux) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i386-linux/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3
 /usr/lib/gcc-lib/i386-linux/2.95.2/../../../../i386-linux/include
End of omitted list.


From proski@gnu.org Fri Dec 15 08:00:58 2000
Received: from user1.channel1.com ([199.1.13.9])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146uTq-0006Mm-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 08:00:58 -0500
Received: from xdial6.channel1.com (IDENT:proski@xdial6.channel1.com [205.240.180.6])
	by user1.channel1.com (8.9.3/8.9.3) with ESMTP id HAA28000;
	Fri, 15 Dec 2000 07:58:19 -0500 (EST)
X-Envelope-To: 	
Date: Fri, 15 Dec 2000 07:56:28 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Akim Demaille <akim@epita.fr>
cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>,
        Bernard Dautrevaux <Dautrevaux@microprocess.com>, <autoconf@gnu.org>
Subject: Re: Expanded rules for scripts
In-Reply-To: <mv47l52umnv.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012150754230.996-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello!

Let's finally move the discussion from autoconf-pathes.

> Well there was much left in ``properly''.  My understanding was that
> Pavel found a host where make was very happy with just those suffix
> rules, but broken when we introduced extra dependencies.  I don't
> remember whether it was
>
> .sh: configure.in
>         # do sth

Even GNU make would not let you do it.

> .sh: configure.in
>         # do sth
> autoconf.sh: some-other-dependency

This was used in Autoconf.

Regards,
Pavel Roskin



From akim@epita.fr Fri Dec 15 08:33:49 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146uzc-0007VG-00; Fri, 15 Dec 2000 08:33:48 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA02423
	Fri, 15 Dec 2000 14:33:04 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146v7O-0004Eu-00; Fri, 15 Dec 2000 14:41:50 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146v6t-0007c0-00; Fri, 15 Dec 2000 14:41:19 +0100
To: Autoconf List <autoconf@gnu.org>
Cc: Pavel Roskin <proski@gnu.org>
Subject: Re: AC_PROG_CPP test fails
References: <mv4ofydyjqt.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 14:41:19 +0100
In-Reply-To: Akim Demaille's message of "15 Dec 2000 13:03:22 +0100"
Message-ID: <mv4snnpx0n4.fsf@nostromo.lrde.epita.fr>
Lines: 24
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| The guilty line is:
| 
|       /* Support for flexible arrays.  */
|       #if __GNUC_PREREQ (2,97)
|       /* GCC 2.97 supports C99 flexible array members.  */
|       # define __flexarr	[]
|       #else 
|       # ifdef __GNUC__
|       #  define __flexarr	[0]
|       # else
| ----> #  ifdef __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
|       #   define __flexarr	[]
|       #  else
|       /* Some other non-C99 compiler.  Approximate with [1].  */
|       #   define __flexarr	[1]
|       #  endif
|       # endif
|       #endif
| 
| I don't understand it.

Err, sorry I didn't actually switch my brains on again.  Sure I
understand...  I'm bug reporting this.


From Dautrevaux@microprocess.com Fri Dec 15 08:38:24 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146v42-0007Za-00; Fri, 15 Dec 2000 08:38:23 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKNMS>; Fri, 15 Dec 2000 14:24:32 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E193@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Alexandre Oliva
	 <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org, APatche
	 <autoconf-patches@gnu.org>
Subject: RE: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
Date: Fri, 15 Dec 2000 14:23:40 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Friday, December 15, 2000 10:42 AM
> To: Alexandre Oliva
> Cc: Mo DeJong; autoconf@gnu.org; APatche
> Subject: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
> 
> 
> 
> Here is my proposal.  Mo, could you give it a try?  Thanks!
> 
> Index: ChangeLog
> from  Akim Demaille  <akim@epita.fr>
> 	* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
> 	(_AC_COMPILER_EXEEXT_O): Extracted from...
> 	(_AC_COMPILER_EXEEXT): here.  Adjust.
> 
> Index: aclang.m4
> ===================================================================
> RCS file: /cvs/autoconf/aclang.m4,v
> retrieving revision 1.97
> diff -u -u -r1.97 aclang.m4
> --- aclang.m4 2000/12/15 07:49:13 1.97
> +++ aclang.m4 2000/12/15 09:31:15
> @@ -652,22 +652,48 @@
>  AC_DEFUN([AC_OBJEXT],   [])
>  
>  
> -# _AC_COMPILER_EXEEXT
> -# -------------------
> -# Check for the extension used for executables.  It compiles a test
> -# executable.  If this is called, the executable extensions will be
> -# automatically used by link commands run by the configure script.
> -#
> -# This macro is called by AC_LANG_COMPILER, the latter being required
> -# by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
> -m4_define([_AC_COMPILER_EXEEXT],
> -[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
> -[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
> +# _AC_COMPILER_EXEEXT_DEFAULT
> +# ---------------------------
> +# Check for the extension used for the default name for executables.
> +m4_define([_AC_COMPILER_EXEEXT_DEFAULT],
> +[# Try without -o first, disregard a.out.
> +ac_link_save=$ac_link
> +ac_link=`echo "$ac_link" | sed ['s/ -o *conftest[^ ]*//']`
> +if ls a.* >/dev/null 2>&1; then
> +  rm -rf conftestdir
> +  mkdir conftestdir
> +  mv a.* conftestdir
> +fi
> +AS_IFELSE([AC_TRY_EVAL(ac_link)],
> +          [for ac_file in `ls a.exe a.* 2>/dev/null`; do
> +  case $ac_file in
> +    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d 
> | *.pdb ) ;;
> +    *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
> +       break;;
> +  esac
> +done],
Looks fine but what about compilers, I know a few of them, that generates
and executable named after the first source or object file listed if no '-o'
option is given; for example:
	$(CC) xxx.c yyy.o
will generate xxx, or maybe xxx.exe if the host request it.

Then above one must also accept conftext.* in the 'ls' backtick and in the
case statement, like:
	for ac_file in `ls a.exe a.* conftest.* 2>/dev/null`; do
	  case $ac_file in
	    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb
) ;;
	    a.*) ac_cv_exeext=`expr "$ac_file" : 'a\(.*\)'`
       	   break;;
	    conftest.*) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
	                break;;
	  esac
	done,


> +          [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
> +cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD])
> +if test -d conftestdir; then
> +  mv conftestdir/* .
> +  rm -rf conftestdir
> +fi
> +ac_link=$ac_link_save
> +])# _AC_COMPILER_EXEEXT_DEFAULT
> +

This said, although I still think EXEEXT is so much tied to the HOST
environment one way to fix it depending on $host should be fine, I agree
with this patch (with Mo's corrections of course).

Regards,

	Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Fri Dec 15 08:55:22 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146vKQ-0008Si-00; Fri, 15 Dec 2000 08:55:21 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA03701
	Fri, 15 Dec 2000 14:45:51 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146vJk-0004O8-00; Fri, 15 Dec 2000 14:54:36 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146vIk-0007ck-00; Fri, 15 Dec 2000 14:53:34 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>,
        autoconf@gnu.org, APatche <autoconf-patches@gnu.org>
Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
References: <17B78BDF120BD411B70100500422FC6309E193@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 14:53:34 +0100
In-Reply-To: Bernard Dautrevaux's message of "Fri, 15 Dec 2000 14:23:40 +0100"
Message-ID: <mv4g0jpx02p.fsf@nostromo.lrde.epita.fr>
Lines: 10
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| Looks fine but what about compilers, I know a few of them, that generates
| and executable named after the first source or object file listed if no '-o'
| option is given; for example:
|         $(CC) xxx.c yyy.o
| will generate xxx, or maybe xxx.exe if the host request it.

No kidding!?!?  I'll adjust my patch then, thanks.

        Akim


From akim@epita.fr Fri Dec 15 09:04:24 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146vTC-0000F1-00; Fri, 15 Dec 2000 09:04:22 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA05584
	Fri, 15 Dec 2000 14:58:02 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146vVY-0004Yi-00; Fri, 15 Dec 2000 15:06:48 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146vUY-0007fJ-00; Fri, 15 Dec 2000 15:05:46 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>,
        autoconf@gnu.org, APatche <autoconf-patches@gnu.org>
Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
References: <17B78BDF120BD411B70100500422FC6309E193@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 15:05:45 +0100
In-Reply-To: Bernard Dautrevaux's message of "Fri, 15 Dec 2000 14:23:40 +0100"
Message-ID: <mv43dfpwzie.fsf@nostromo.lrde.epita.fr>
Lines: 107
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Here is my updated proposal.

Index: ChangeLog
from  Akim Demaille  <akim@epita.fr>, Mo DeJong  <mdejong@cygnus.com>

	* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
	(_AC_COMPILER_EXEEXT_O): Extracted from...
	(_AC_COMPILER_EXEEXT): here.  Adjust.

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.98
diff -u -u -r1.98 aclang.m4
--- aclang.m4 2000/12/15 11:50:19 1.98
+++ aclang.m4 2000/12/15 13:53:55
@@ -652,30 +652,76 @@
 AC_DEFUN([AC_OBJEXT],   [])
 
 
-# _AC_COMPILER_EXEEXT
-# -------------------
-# Check for the extension used for executables.  It compiles a test
-# executable.  If this is called, the executable extensions will be
-# automatically used by link commands run by the configure script.
-#
-# This macro is called by AC_LANG_COMPILER, the latter being required
-# by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
-m4_define([_AC_COMPILER_EXEEXT],
-[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
-[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
+# _AC_COMPILER_EXEEXT_DEFAULT
+# ---------------------------
+# Check for the extension used for the default name for executables.
+m4_define([_AC_COMPILER_EXEEXT_DEFAULT],
+[# Try without -o first, disregard a.out.
+ac_link_save=$ac_link
+ac_link=`echo "$ac_link" | sed ['s/ -o *conftest[^ ]*//']`
+if ls a.* >/dev/null 2>&1; then
+  rm -rf conftestdir
+  mkdir conftestdir
+  mv a.* conftestdir
+fi
+AS_IFELSE([AC_TRY_EVAL(ac_link)],
+         [for ac_file in `ls a.exe conftest.exe a.* conftest.* 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    *) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+       break;;
+  esac
+done],
+          [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
+cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD])
+rm -f a.*
+if test -d conftestdir; then
+  mv conftestdir/* .
+  rm -rf conftestdir
+fi
+ac_link=$ac_link_save
+])# _AC_COMPILER_EXEEXT_DEFAULT
+
+
+# _AC_COMPILER_EXEEXT_O
+# ---------------------
+# Check for the extension used when `-o foo'.  Try to see if ac_cv_exeext,
+# as computed by _AC_COMPILER_EXEEXT_DEFAULT is OK.
+m4_define([_AC_COMPILER_EXEEXT_O],
+[# We have not set ac_exeext yet which is needed by `ac_link'.
+ac_exeext=$ac_cv_exeext
+_AC_LINK_IFELSE([],
 [# If both `conftest.exe' and `conftest' are `present' (well, observable)
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
 # `rm'.
-for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
+for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \
+                  2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
-    *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
+    *) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
        break;;
   esac
 done],
               [AC_MSG_ERROR([cannot compute EXEEXT: cannot compile and link])])
-rm -f conftest$ac_cv_exeext])
+rm -f conftest.$ac_ext conftest$ac_cv_exeext
+])# _AC_COMPILER_EXEEXT_O
+
+
+# _AC_COMPILER_EXEEXT
+# -------------------
+# Check for the extension used for executables.  It compiles a test
+# executable.  If this is called, the executable extensions will be
+# automatically used by link commands run by the configure script.
+#
+# Note that some compilers (cross or not), strictly obey to `-o foo' while
+# the host requires `foo.exe', so we should not depend upon `-o' to
+# test EXEEXT.  But then, be sure no to destroy user files.
+m4_define([_AC_COMPILER_EXEEXT],
+[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
+                [AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
+_AC_COMPILER_EXEEXT_DEFAULT
+_AC_COMPILER_EXEEXT_O])
 AC_SUBST([EXEEXT], [$ac_cv_exeext])dnl
 ac_exeext=$EXEEXT
 ])# _AC_COMPILER_EXEEXT


From akim@epita.fr Fri Dec 15 09:21:55 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146vkA-0000xG-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 09:21:54 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA07908 for <autoconf@gnu.org> 
	EPITA Paris France Fri, 15 Dec 2000 15:21:10 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146vrw-0004iA-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 15:29:56 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146vrb-0002YT-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 15:29:35 +0100
To: Autoconf List <autoconf@gnu.org>
Subject: configure.ac
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 15:29:34 +0100
Message-ID: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Would someone see a problem if I adjust Autoconf to support
configure.ac in addition to configure.in?  I think `.in' was a very
bad name (which in addition introduces an undesirable confusion
between autoconf instantiation and config.status instantiation).

The real point is that the day Autom4te (the name is (C) Lars) is
born, it will need means to distinguish between Autotest, Autoconf,
M4sugar and M4sh sources, to load the appropriate frozen files.  Sure
`configure.in' can be reserved for Autoconf only, but adding support
for `configure.ac' seems good anyway.  And to tell the truth, I'd like
to have Autoconf follow this, i.e., rename Autoconf's configure.in as
configure.ac.  I do understand I'm about to shock a few people for
breaking a long established tradition, but when tradition collides
with future, there's no need to think too long (well, I guess someone
will tell me to think longer anyway :).


From Dautrevaux@microprocess.com Fri Dec 15 09:36:53 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146vya-0001Si-00; Fri, 15 Dec 2000 09:36:49 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKNNM>; Fri, 15 Dec 2000 15:23:03 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E194@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Pavel Roskin' <proski@gnu.org>, Akim Demaille <akim@epita.fr>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>, autoconf@gnu.org
Subject: RE: Expanded rules for scripts
Date: Fri, 15 Dec 2000 15:20:59 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Pavel Roskin [mailto:proski@gnu.org]
> Sent: Friday, December 15, 2000 1:56 PM
> To: Akim Demaille
> Cc: Alexandre Oliva; Bernard Dautrevaux; autoconf@gnu.org
> Subject: Re: Expanded rules for scripts
> 
> 
> Hello!
> 
> Let's finally move the discussion from autoconf-pathes.
> 
> > Well there was much left in ``properly''.  My understanding was that
> > Pavel found a host where make was very happy with just those suffix
> > rules, but broken when we introduced extra dependencies.  I don't
> > remember whether it was
> >
> > .sh: configure.in
> >         # do sth
> 
> Even GNU make would not let you do it.

This is indeed definitely wrong and I don't know of any make where I've seen
this working but, to be honest, discovering once it was not working I
stopped trying :-)

> 
> > .sh: configure.in
> >         # do sth
> > autoconf.sh: some-other-dependency
> 
> This was used in Autoconf.

Are you sure? the ".sh: configure.in" dependency bothers me...

Anyway the right way to go, and I've never seen a make where it fails, would
be:

.sh:
	# do sth

autoconf: configure.in some-other-dependency

What I know cause problems with some (old?) makes is listing "autoconf.sh"
as an explicit dependency for "autoconf"; some makes could then no more
expand the suffix rule.

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From Dautrevaux@microprocess.com Fri Dec 15 09:41:04 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146w2i-0001Xn-00; Fri, 15 Dec 2000 09:41:04 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKNNP>; Fri, 15 Dec 2000 15:27:18 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E195@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong
	 <mdejong@cygnus.com>, autoconf@gnu.org, APatche
	 <autoconf-patches@gnu.org>
Subject: RE: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
Date: Fri, 15 Dec 2000 15:27:02 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Friday, December 15, 2000 3:06 PM
> To: Bernard Dautrevaux
> Cc: Alexandre Oliva; Mo DeJong; autoconf@gnu.org; APatche
> Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
> 
> 
> Here is my updated proposal.
> 
> Index: ChangeLog
> from  Akim Demaille  <akim@epita.fr>, Mo DeJong  <mdejong@cygnus.com>
> 
> 	* aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
> 	(_AC_COMPILER_EXEEXT_O): Extracted from...
> 	(_AC_COMPILER_EXEEXT): here.  Adjust.
> 
> Index: aclang.m4
> ===================================================================
> RCS file: /cvs/autoconf/aclang.m4,v
> retrieving revision 1.98
> diff -u -u -r1.98 aclang.m4
> --- aclang.m4 2000/12/15 11:50:19 1.98
> +++ aclang.m4 2000/12/15 13:53:55
> @@ -652,30 +652,76 @@
>  AC_DEFUN([AC_OBJEXT],   [])
>  
>  
> -# _AC_COMPILER_EXEEXT
> -# -------------------
> -# Check for the extension used for executables.  It compiles a test
> -# executable.  If this is called, the executable extensions will be
> -# automatically used by link commands run by the configure script.
> -#
> -# This macro is called by AC_LANG_COMPILER, the latter being required
> -# by the AC_LINK_IFELSE macros, so use _AC_LINK_IFELSE.
> -m4_define([_AC_COMPILER_EXEEXT],
> -[AC_CACHE_CHECK([for executable suffix], ac_cv_exeext,
> -[_AC_LINK_IFELSE([AC_LANG_PROGRAM()],
> +# _AC_COMPILER_EXEEXT_DEFAULT
> +# ---------------------------
> +# Check for the extension used for the default name for executables.
> +m4_define([_AC_COMPILER_EXEEXT_DEFAULT],
> +[# Try without -o first, disregard a.out.
> +ac_link_save=$ac_link
> +ac_link=`echo "$ac_link" | sed ['s/ -o *conftest[^ ]*//']`
> +if ls a.* >/dev/null 2>&1; then
> +  rm -rf conftestdir
> +  mkdir conftestdir
> +  mv a.* conftestdir
> +fi
> +AS_IFELSE([AC_TRY_EVAL(ac_link)],
> +         [for ac_file in `ls a.exe conftest.exe a.* 
> conftest.* 2>/dev/null`; do

Here one may also check for plain "conftest"; this saves the second link :-)

for ac_file in `ls a.exe conftest.exe conftest a.* conftest.* 2>/dev/null`;
do

> +  case $ac_file in
> +    *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d 
> | *.pdb ) ;;
> +    *) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
> +       break;;
> +  esac
> +done],
> +          [echo "$as_me: failed program was:" >&AS_MESSAGE_LOG_FD
> +cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD])
> +rm -f a.*
> +if test -d conftestdir; then
> +  mv conftestdir/* .
> +  rm -rf conftestdir
> +fi
> +ac_link=$ac_link_save
> +])# _AC_COMPILER_EXEEXT_DEFAULT
> +

Otherwise all is OK

Thanks for investing so much time in fixing this,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Fri Dec 15 09:45:34 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146w73-0001d8-00; Fri, 15 Dec 2000 09:45:33 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA10368
	Fri, 15 Dec 2000 15:44:49 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146w6r-0004wL-00; Fri, 15 Dec 2000 15:45:21 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146w62-0002Zt-00; Fri, 15 Dec 2000 15:44:30 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: "'Pavel Roskin'" <proski@gnu.org>,
        Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org
Subject: Re: Expanded rules for scripts
References: <17B78BDF120BD411B70100500422FC6309E194@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 15:44:30 +0100
In-Reply-To: Bernard Dautrevaux's message of "Fri, 15 Dec 2000 15:20:59 +0100"
Message-ID: <mv47l51vj5d.fsf@nostromo.lrde.epita.fr>
Lines: 27
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| > > .sh: configure.in
| > >         # do sth
| > 
| > Even GNU make would not let you do it.
| 
| This is indeed definitely wrong and I don't know of any make where I've seen
| this working but, to be honest, discovering once it was not working I
| stopped trying :-)

I must be missing something: why is it that clear it's wrong?

| > > .sh: configure.in
| > >         # do sth
| > > autoconf.sh: some-other-dependency
| > 
| > This was used in Autoconf.
| 
| Are you sure? the ".sh: configure.in" dependency bothers me...

Nope, I meant

> .sh:
>         # do sth
> autoconf.sh: some-other-dependency

sorry for the confusion.  That's to what Pavel answered actually.


From akim@epita.fr Fri Dec 15 09:50:42 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146wC2-00020x-00; Fri, 15 Dec 2000 09:50:42 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA11475
	Fri, 15 Dec 2000 15:49:35 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 146wBT-0004yp-00; Fri, 15 Dec 2000 15:50:07 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 146wAT-0002a6-00; Fri, 15 Dec 2000 15:49:05 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>,
        autoconf@gnu.org, APatche <autoconf-patches@gnu.org>
Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
References: <17B78BDF120BD411B70100500422FC6309E195@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 15 Dec 2000 15:49:05 +0100
In-Reply-To: Bernard Dautrevaux's message of "Fri, 15 Dec 2000 15:27:02 +0100"
Message-ID: <mv43dfpvixq.fsf@nostromo.lrde.epita.fr>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| > +AS_IFELSE([AC_TRY_EVAL(ac_link)],
| > +         [for ac_file in `ls a.exe conftest.exe a.* 
| > conftest.* 2>/dev/null`; do
| 
| Here one may also check for plain "conftest"; this saves the second link :-)
| 
| for ac_file in `ls a.exe conftest.exe conftest a.* conftest.* 2>/dev/null`;
| do

OK, I adjusted this too.  Thanks!

| Thanks for investing so much time in fixing this,

No need to thank me: I'm doing this for _me_ and only for _me_: I
don't want to hear about it ever again, so let's have it fixed ;-)


From earnie_boyd@yahoo.com Fri Dec 15 10:39:48 2000
Received: from web109.mail.yahoo.com ([205.180.60.76] helo=web109.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146wxX-0003U0-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 10:39:48 -0500
Received: (qmail 15681 invoked by uid 60001); 15 Dec 2000 15:39:46 -0000
Message-ID: <20001215153946.15680.qmail@web109.yahoomail.com>
Received: from [216.192.140.4] by web109.yahoomail.com; Fri, 15 Dec 2000 07:39:46 PST
Date: Fri, 15 Dec 2000 07:39:46 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
To: Akim Demaille <akim@epita.fr>, Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- Akim Demaille <akim@epita.fr> wrote:
> >>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> 
> Alexandre> But saving and restoring doesn't sound bad either...
> 
> OK, I'll go for this.
> 

Why!!  It is overkill to save and restore an existing a.[out|exe].  The
probability is greater that I'll have such a file because of an aborted
configure than I'll have one in the build directory on purpose.  Anyone stupid
enough to have an executable named `a' is asking for problems anyway.  Just
blow away any a.[out|exe] file in the build directory and be done with it.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From Dautrevaux@microprocess.com Fri Dec 15 10:56:20 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146xDX-0004SA-00; Fri, 15 Dec 2000 10:56:19 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKN3S>; Fri, 15 Dec 2000 16:42:34 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E196@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>
Cc: 'Pavel Roskin' <proski@gnu.org>, Alexandre Oliva
	 <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org
Subject: RE: Expanded rules for scripts
Date: Fri, 15 Dec 2000 16:41:37 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Friday, December 15, 2000 3:45 PM
> To: Bernard Dautrevaux
> Cc: 'Pavel Roskin'; Alexandre Oliva; autoconf@gnu.org
> Subject: Re: Expanded rules for scripts
> 
> 
> 
> | > > .sh: configure.in
> | > >         # do sth
> | > 
> | > Even GNU make would not let you do it.
> | 
> | This is indeed definitely wrong and I don't know of any 
> make where I've seen
> | this working but, to be honest, discovering once it was not 
> working I
> | stopped trying :-)
> 
> I must be missing something: why is it that clear it's wrong?

Mainly because ALL make refuse it, and that about all make documentation say
something like (cited from GNU make doc):

	Suffix rules cannot have any dependencies of their own.  If they
	have any, they are treated as normal files with funny names, not as
	suffix rules.

To achieve what ".sh: configure.in" seems to want to do you must use pattern
rules, like "%: %.sh configure.in", but this is non-portable so Autoconf
can't use it.

The main reason why ".sh: configure.in" is clearly wrong is that otherwise I
would have NO way to create an EXPLICIT rule to build some "hidden" file
named for example ".make.depend" if it happens make knows the ".make" and
".depend" suffixes ;-(

I know this is not so common, but it happens (BTW the .make.depend was
causing me problems for some time before I realize I had to put an explicit
dependant if I don't want to have make interpret it as a suffix rule in an
environment where make had, I don't know why, a .make suffix defined...)

> 
> | > > .sh: configure.in
> | > >         # do sth
> | > > autoconf.sh: some-other-dependency
> | > 
> | > This was used in Autoconf.
> | 
> | Are you sure? the ".sh: configure.in" dependency bothers me...
> 
> Nope, I meant
> 
> > .sh:
> >         # do sth
> > autoconf.sh: some-other-dependency
> 
> sorry for the confusion.  That's to what Pavel answered actually.
> 

Yep, I was thinking so :)

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From Dautrevaux@microprocess.com Fri Dec 15 10:58:35 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 146xFi-0004TX-00; Fri, 15 Dec 2000 10:58:34 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKN3V>; Fri, 15 Dec 2000 16:44:49 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E197@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong
	 <mdejong@cygnus.com>, autoconf@gnu.org, APatche
	 <autoconf-patches@gnu.org>
Subject: RE: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
Date: Fri, 15 Dec 2000 16:43:36 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Friday, December 15, 2000 3:49 PM
> To: Bernard Dautrevaux
> Cc: Alexandre Oliva; Mo DeJong; autoconf@gnu.org; APatche
> Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
> 
> 
> 
> | > +AS_IFELSE([AC_TRY_EVAL(ac_link)],
> | > +         [for ac_file in `ls a.exe conftest.exe a.* 
> | > conftest.* 2>/dev/null`; do
> | 
> | Here one may also check for plain "conftest"; this saves 
> the second link :-)
> | 
> | for ac_file in `ls a.exe conftest.exe conftest a.* 
> conftest.* 2>/dev/null`;
> | do
> 
> OK, I adjusted this too.  Thanks!
> 
> | Thanks for investing so much time in fixing this,
> 
> No need to thank me: I'm doing this for _me_ and only for _me_: I
> don't want to hear about it ever again, so let's have it fixed ;-)
> 

I really *love* this kind of self-centric behaviour :-)

Have a nice week-end,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From peter_e@gmx.net Fri Dec 15 11:25:38 2000
Received: from mailout00.sul.t-online.com ([194.25.134.16])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 146xft-0005HI-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 11:25:37 -0500
Received: from fwd03.sul.t-online.com 
	by mailout00.sul.t-online.com with smtp 
	id 146xfd-00058r-05; Fri, 15 Dec 2000 17:25:21 +0100
Received: from peter.localdomain (520083510237-0001@[212.185.245.31]) by fmrl03.sul.t-online.com
	with esmtp id 146xfX-1A7lKaC; Fri, 15 Dec 2000 17:25:15 +0100
Date: Fri, 15 Dec 2000 17:31:53 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: Harlan Stenn <harlan@bali.trilogy.com>
cc:  <autoconf@gnu.org>
Subject: Re: CVS autoconf, config.{sub,guess}, and "make install"
In-Reply-To: <9341.976861674@bali.trilogy.com>
Message-ID: <Pine.LNX.4.30.0012151730230.1319-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Harlan Stenn writes:

> The current CVS autoconf does not "make install" properly if builddir !=
> srcdir.
>
> The following fragment is from man/Makefile:
>
>  ...
>  # Independent from this package.
>  config.guess.1: $(srcdir)/config.guess.x  $(top_srcdir)/config.guess
>  config.sub.1:   $(srcdir)/config.sub.x    $(top_srcdir)/config.sub
>
>  .x.1:
>         @if test -f $(top_builddir)/$*; then \

It might be worth pointing out that this fragment will fail on BSD makes
in the same way that the '.sh: configure.in' dependency fails, as
currently discussed in another thread.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From mdejong@cygnus.com Fri Dec 15 16:30:30 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1472Qw-0000YG-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 16:30:30 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id NAA29945
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 13:30:29 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id NAA08142; Fri, 15 Dec 2000 13:30:29 -0800 (PST)
Date: Fri, 15 Dec 2000 13:30:29 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
In-Reply-To: <20001215153946.15680.qmail@web109.yahoomail.com>
Message-ID: <Pine.SOL.3.91.1001215132845.7955B-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Fri, 15 Dec 2000, Earnie Boyd wrote:

> --- Akim Demaille <akim@epita.fr> wrote:
> > >>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> > 
> > Alexandre> But saving and restoring doesn't sound bad either...
> > 
> > OK, I'll go for this.
> > 
> 
> Why!!  It is overkill to save and restore an existing a.[out|exe].  The
> probability is greater that I'll have such a file because of an aborted
> configure than I'll have one in the build directory on purpose.  Anyone stupid
> enough to have an executable named `a' is asking for problems anyway.  Just
> blow away any a.[out|exe] file in the build directory and be done with it.
> 
> Cheers,

I have to agree. This is in the build directory after all. Also,
the a.exe file does not even get deleted (but that is just a bug).

Mo DeJong
Red Hat Inc


From Rebecca.R.Krause@seagate.com Fri Dec 15 16:32:57 2000
Received: from gw1.seagate.com ([204.160.183.12] helo=proxy1.it.stsj.seagate.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1472TI-0000Zr-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 16:32:56 -0500
Received:  (from smap) by proxy1.it.stsj.seagate.com  id VAA11953 for <autoconf@gnu.org>; Fri, 15 Dec 2000 21:32:55 GMT
From: Rebecca.R.Krause@seagate.com
Received: from unknown(192.168.109.16) by proxy1.it.stsj.seagate.com via smap (V5.0)
	id xma010027; Fri, 15 Dec 00 21:31:35 GMT
Received:  from sv-gw1.stsv.seagate.com (sv-gw1.stsv.seagate.com [134.204.14.95]) by auth0.it.stsj.seagate.com  with ESMTP id VAA06332 for <autoconf@gnu.org>; Fri, 15 Dec 2000 21:31:35 GMT
Subject: Make distcheck error
To: autoconf@gnu.org
Date: Fri, 15 Dec 2000 15:31:25 -0600
Message-ID: <OF27513059.2A685885-ON862569B6.0071D767@stsv.seagate.com>
X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 5.0.5 |September 22, 2000) at
 12/15/2000 01:31:35 PM
MIME-Version: 1.0
Content-type: multipart/mixed; 
	Boundary="0__=862569B60071D7678f9e8a93df938690918c862569B60071D767"
Content-Disposition: inline
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--0__=862569B60071D7678f9e8a93df938690918c862569B60071D767
Content-type: text/plain; charset=us-ascii

Hello,


I am trying to do a simple tutorial using Autoconf and Automake that I found at the following address:

ftp://ftp.ugcs.caltech.edu/pub/elef/autotools/node62.html

I am trying to learn how to distribute a package of software using autoconf and automake.  I am using RedHat 7.0, Autoconf version 2.10 and
automake 1.4.

I created a simple program called hello.c and placed it into the following empty directory:  /home/username/practice   (See attached file: hello.c)

from /home/username I did a cd into practice then I typed:
gcc hello.c -o hello
./hello

Then I created the following two files:  Makefile.am and configure.in and placed both in /home/username/practice  (See attached file: Makefile.am)(See
 attached file: configure.in)

Then at the prompt I ran:
aclocal
autoconf
automake -a
touch NEWS README AUTHORS ChangeLog (since I didn't have these files created in my directory)
automake -a

At this point I thought I should be able to do either a make then make distcheck or just a make distcheck

If I try to do a make I get an error that says:
make: @SHELL@: Command not found.
make: *** [Makefile] Error 127
To fix the error I went into the /home/username/practice/Makefile and commented out the line that says:   SHELL = @SHELL@   (See attached file:
Makefile)
Make then worked.

Now, when I try to do a make distcheck I get the same type of error:
make[1]: @SHELL@: Command not found.
make: *** [hello.0] Error 127
make[1]:  leaving directory /home/username/practice/hello-0.1/=build
make: *** [distcheck] Error 2

There is a Makefile at /home/username/practice/hello-0.1/=build that has the SHELL = @SHELL@ line but this file gets written over every time
I do a make distcheck so it does me no good to change it.

Any idea on how to fix my problem?  Any help would be greatly appreciated.

Rebecca Krause


--0__=862569B60071D7678f9e8a93df938690918c862569B60071D767
Content-type: application/octet-stream; 
	name="hello.c"
Content-Disposition: attachment; filename="hello.c"
Content-transfer-encoding: base64

I2luY2x1ZGUgPHN0ZGlvLmg+Cm1haW4oKQp7CiAgIHByaW50ZigiSG93ZHkgQmVja3khXG4iKTsK
fQo=

--0__=862569B60071D7678f9e8a93df938690918c862569B60071D767
Content-type: application/octet-stream; 
	name="Makefile.am"
Content-Disposition: attachment; filename="Makefile.am"
Content-transfer-encoding: base64

YmluX1BST0dSQU1TID0gaGVsbG8KaGVsbG9fU09VUkNFUyA9IGhlbGxvLmM=

--0__=862569B60071D7678f9e8a93df938690918c862569B60071D767
Content-type: application/octet-stream; 
	name="configure.in"
Content-Disposition: attachment; filename="configure.in"
Content-transfer-encoding: base64

QUNfSU5JVChoZWxsby5jKQpBTV9JTklUX0FVVE9NQUtFKGhlbGxvLCAwLjEpCkFDX1BST0dfQ0MK
QUNfUFJPR19JTlNUQUxMCkFDX09VVFBVVChNYWtlZmlsZSk=

--0__=862569B60071D7678f9e8a93df938690918c862569B60071D767
Content-type: application/octet-stream; 
	name="Makefile"
Content-Disposition: attachment; filename="Makefile"
Content-transfer-encoding: base64

IyBHZW5lcmF0ZWQgYXV0b21hdGljYWxseSBmcm9tIE1ha2VmaWxlLmluIGJ5IGNvbmZpZ3VyZS4K
IyBNYWtlZmlsZS5pbiBnZW5lcmF0ZWQgYXV0b21hdGljYWxseSBieSBhdXRvbWFrZSAxLjQgZnJv
bSBNYWtlZmlsZS5hbQoKIyBDb3B5cmlnaHQgKEMpIDE5OTQsIDE5OTUtOCwgMTk5OSBGcmVlIFNv
ZnR3YXJlIEZvdW5kYXRpb24sIEluYy4KIyBUaGlzIE1ha2VmaWxlLmluIGlzIGZyZWUgc29mdHdh
cmU7IHRoZSBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24KIyBnaXZlcyB1bmxpbWl0ZWQgcGVybWlz
c2lvbiB0byBjb3B5IGFuZC9vciBkaXN0cmlidXRlIGl0LAojIHdpdGggb3Igd2l0aG91dCBtb2Rp
ZmljYXRpb25zLCBhcyBsb25nIGFzIHRoaXMgbm90aWNlIGlzIHByZXNlcnZlZC4KCiMgVGhpcyBw
cm9ncmFtIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWws
CiMgYnV0IFdJVEhPVVQgQU5ZIFdBUlJBTlRZLCB0byB0aGUgZXh0ZW50IHBlcm1pdHRlZCBieSBs
YXc7IHdpdGhvdXQKIyBldmVuIHRoZSBpbXBsaWVkIHdhcnJhbnR5IG9mIE1FUkNIQU5UQUJJTElU
WSBvciBGSVRORVNTIEZPUiBBCiMgUEFSVElDVUxBUiBQVVJQT1NFLgoKCiNTSEVMTCA9IEBTSEVM
TEAKCnNyY2RpciA9IC4KdG9wX3NyY2RpciA9IC4KcHJlZml4ID0gL3Vzci9sb2NhbApleGVjX3By
ZWZpeCA9ICR7cHJlZml4fQoKYmluZGlyID0gJHtleGVjX3ByZWZpeH0vYmluCnNiaW5kaXIgPSAk
e2V4ZWNfcHJlZml4fS9zYmluCmxpYmV4ZWNkaXIgPSAke2V4ZWNfcHJlZml4fS9saWJleGVjCmRh
dGFkaXIgPSAke3ByZWZpeH0vc2hhcmUKc3lzY29uZmRpciA9ICR7cHJlZml4fS9ldGMKc2hhcmVk
c3RhdGVkaXIgPSAke3ByZWZpeH0vY29tCmxvY2Fsc3RhdGVkaXIgPSAke3ByZWZpeH0vdmFyCmxp
YmRpciA9ICR7ZXhlY19wcmVmaXh9L2xpYgppbmZvZGlyID0gJHtwcmVmaXh9L2luZm8KbWFuZGly
ID0gJHtwcmVmaXh9L21hbgppbmNsdWRlZGlyID0gJHtwcmVmaXh9L2luY2x1ZGUKb2xkaW5jbHVk
ZWRpciA9IC91c3IvaW5jbHVkZQoKREVTVERJUiA9Cgpwa2dkYXRhZGlyID0gJChkYXRhZGlyKS9o
ZWxsbwpwa2dsaWJkaXIgPSAkKGxpYmRpcikvaGVsbG8KcGtnaW5jbHVkZWRpciA9ICQoaW5jbHVk
ZWRpcikvaGVsbG8KCnRvcF9idWlsZGRpciA9IC4KCkFDTE9DQUwgPSBhY2xvY2FsCkFVVE9DT05G
ID0gYXV0b2NvbmYKQVVUT01BS0UgPSBhdXRvbWFrZQpBVVRPSEVBREVSID0gYXV0b2hlYWRlcgoK
SU5TVEFMTCA9IC91c3IvYmluL2luc3RhbGwgLWMKSU5TVEFMTF9QUk9HUkFNID0gJHtJTlNUQUxM
fSAkKEFNX0lOU1RBTExfUFJPR1JBTV9GTEFHUykKSU5TVEFMTF9EQVRBID0gJHtJTlNUQUxMfSAt
bSA2NDQKSU5TVEFMTF9TQ1JJUFQgPSBASU5TVEFMTF9TQ1JJUFRACnRyYW5zZm9ybSA9IHMseCx4
LAoKTk9STUFMX0lOU1RBTEwgPSA6ClBSRV9JTlNUQUxMID0gOgpQT1NUX0lOU1RBTEwgPSA6Ck5P
Uk1BTF9VTklOU1RBTEwgPSA6ClBSRV9VTklOU1RBTEwgPSA6ClBPU1RfVU5JTlNUQUxMID0gOgpD
QyA9IGdjYwpNQUtFSU5GTyA9IC9ob21lL2tyYXVzZXIvcHJhY3RpY2UvbWlzc2luZyBtYWtlaW5m
bwpQQUNLQUdFID0gaGVsbG8KVkVSU0lPTiA9IDAuMQoKYmluX1BST0dSQU1TID0gaGVsbG8KaGVs
bG9fU09VUkNFUyA9IGhlbGxvLmMKQUNMT0NBTF9NNCA9ICQodG9wX3NyY2RpcikvYWNsb2NhbC5t
NApta2luc3RhbGxkaXJzID0gJChTSEVMTCkgJCh0b3Bfc3JjZGlyKS9ta2luc3RhbGxkaXJzCkNP
TkZJR19DTEVBTl9GSUxFUyA9IApQUk9HUkFNUyA9ICAkKGJpbl9QUk9HUkFNUykKCgpERUZTID0g
IC1EUEFDS0FHRT0xIC1EVkVSU0lPTj0xICAtSS4gLUkkKHNyY2RpcikgCkNQUEZMQUdTID0gCkxE
RkxBR1MgPSAKTElCUyA9IApoZWxsb19PQkpFQ1RTID0gIGhlbGxvLm8KaGVsbG9fTERBREQgPSAk
KExEQUREKQpoZWxsb19ERVBFTkRFTkNJRVMgPSAKaGVsbG9fTERGTEFHUyA9IApDRkxBR1MgPSAt
ZyAtTwpDT01QSUxFID0gJChDQykgJChERUZTKSAkKElOQ0xVREVTKSAkKEFNX0NQUEZMQUdTKSAk
KENQUEZMQUdTKSAkKEFNX0NGTEFHUykgJChDRkxBR1MpCkNDTEQgPSAkKENDKQpMSU5LID0gJChD
Q0xEKSAkKEFNX0NGTEFHUykgJChDRkxBR1MpICQoTERGTEFHUykgLW8gJEAKRElTVF9DT01NT04g
PSAgUkVBRE1FIEFVVEhPUlMgQ09QWUlORyBDaGFuZ2VMb2cgSU5TVEFMTCBNYWtlZmlsZS5hbSBc
Ck1ha2VmaWxlLmluIE5FV1MgYWNsb2NhbC5tNCBjb25maWd1cmUgY29uZmlndXJlLmluIGluc3Rh
bGwtc2ggbWlzc2luZyBcCm1raW5zdGFsbGRpcnMKCgpESVNURklMRVMgPSAkKERJU1RfQ09NTU9O
KSAkKFNPVVJDRVMpICQoSEVBREVSUykgJChURVhJTkZPUykgJChFWFRSQV9ESVNUKQoKVEFSID0g
Z3RhcgpHWklQX0VOViA9IC0tYmVzdApERVBfRklMRVMgPSAgLmRlcHMvaGVsbG8uUApTT1VSQ0VT
ID0gJChoZWxsb19TT1VSQ0VTKQpPQkpFQ1RTID0gJChoZWxsb19PQkpFQ1RTKQoKYWxsOiBhbGwt
cmVkaXJlY3QKLlNVRkZJWEVTOgouU1VGRklYRVM6IC5TIC5jIC5vIC5zCiQoc3JjZGlyKS9NYWtl
ZmlsZS5pbjogTWFrZWZpbGUuYW0gJCh0b3Bfc3JjZGlyKS9jb25maWd1cmUuaW4gJChBQ0xPQ0FM
X000KSAKCWNkICQodG9wX3NyY2RpcikgJiYgJChBVVRPTUFLRSkgLS1nbnUgTWFrZWZpbGUKCk1h
a2VmaWxlOiAkKHNyY2RpcikvTWFrZWZpbGUuaW4gICQodG9wX2J1aWxkZGlyKS9jb25maWcuc3Rh
dHVzICQoQlVJTFRfU09VUkNFUykKCWNkICQodG9wX2J1aWxkZGlyKSBcCgkgICYmIENPTkZJR19G
SUxFUz0kQCBDT05GSUdfSEVBREVSUz0gJChTSEVMTCkgLi9jb25maWcuc3RhdHVzCgokKEFDTE9D
QUxfTTQpOiAgY29uZmlndXJlLmluIAoJY2QgJChzcmNkaXIpICYmICQoQUNMT0NBTCkKCmNvbmZp
Zy5zdGF0dXM6ICQoc3JjZGlyKS9jb25maWd1cmUgJChDT05GSUdfU1RBVFVTX0RFUEVOREVOQ0lF
UykKCSQoU0hFTEwpIC4vY29uZmlnLnN0YXR1cyAtLXJlY2hlY2sKJChzcmNkaXIpL2NvbmZpZ3Vy
ZTogJChzcmNkaXIpL2NvbmZpZ3VyZS5pbiAkKEFDTE9DQUxfTTQpICQoQ09ORklHVVJFX0RFUEVO
REVOQ0lFUykKCWNkICQoc3JjZGlyKSAmJiAkKEFVVE9DT05GKQoKbW9zdGx5Y2xlYW4tYmluUFJP
R1JBTVM6CgpjbGVhbi1iaW5QUk9HUkFNUzoKCS10ZXN0IC16ICIkKGJpbl9QUk9HUkFNUykiIHx8
IHJtIC1mICQoYmluX1BST0dSQU1TKQoKZGlzdGNsZWFuLWJpblBST0dSQU1TOgoKbWFpbnRhaW5l
ci1jbGVhbi1iaW5QUk9HUkFNUzoKCmluc3RhbGwtYmluUFJPR1JBTVM6ICQoYmluX1BST0dSQU1T
KQoJQCQoTk9STUFMX0lOU1RBTEwpCgkkKG1raW5zdGFsbGRpcnMpICQoREVTVERJUikkKGJpbmRp
cikKCUBsaXN0PSckKGJpbl9QUk9HUkFNUyknOyBmb3IgcCBpbiAkJGxpc3Q7IGRvIFwKCSAgaWYg
dGVzdCAtZiAkJHA7IHRoZW4gXAoJICAgIGVjaG8gIiAgJChJTlNUQUxMX1BST0dSQU0pICQkcCAk
KERFU1RESVIpJChiaW5kaXIpL2BlY2hvICQkcHxzZWQgJ3MvJChFWEVFWFQpJCQvLyd8c2VkICck
KHRyYW5zZm9ybSknfHNlZCAncy8kJC8kKEVYRUVYVCkvJ2AiOyBcCgkgICAgICQoSU5TVEFMTF9Q
Uk9HUkFNKSAkJHAgJChERVNURElSKSQoYmluZGlyKS9gZWNobyAkJHB8c2VkICdzLyQoRVhFRVhU
KSQkLy8nfHNlZCAnJCh0cmFuc2Zvcm0pJ3xzZWQgJ3MvJCQvJChFWEVFWFQpLydgOyBcCgkgIGVs
c2UgOjsgZmk7IFwKCWRvbmUKCnVuaW5zdGFsbC1iaW5QUk9HUkFNUzoKCUAkKE5PUk1BTF9VTklO
U1RBTEwpCglsaXN0PSckKGJpbl9QUk9HUkFNUyknOyBmb3IgcCBpbiAkJGxpc3Q7IGRvIFwKCSAg
cm0gLWYgJChERVNURElSKSQoYmluZGlyKS9gZWNobyAkJHB8c2VkICdzLyQoRVhFRVhUKSQkLy8n
fHNlZCAnJCh0cmFuc2Zvcm0pJ3xzZWQgJ3MvJCQvJChFWEVFWFQpLydgOyBcCglkb25lCgoucy5v
OgoJJChDT01QSUxFKSAtYyAkPAoKLlMubzoKCSQoQ09NUElMRSkgLWMgJDwKCm1vc3RseWNsZWFu
LWNvbXBpbGU6Cgktcm0gLWYgKi5vIGNvcmUgKi5jb3JlCgpjbGVhbi1jb21waWxlOgoKZGlzdGNs
ZWFuLWNvbXBpbGU6Cgktcm0gLWYgKi50YWIuYwoKbWFpbnRhaW5lci1jbGVhbi1jb21waWxlOgoK
aGVsbG86ICQoaGVsbG9fT0JKRUNUUykgJChoZWxsb19ERVBFTkRFTkNJRVMpCglAcm0gLWYgaGVs
bG8KCSQoTElOSykgJChoZWxsb19MREZMQUdTKSAkKGhlbGxvX09CSkVDVFMpICQoaGVsbG9fTERB
REQpICQoTElCUykKCnRhZ3M6IFRBR1MKCklEOiAkKEhFQURFUlMpICQoU09VUkNFUykgJChMSVNQ
KQoJbGlzdD0nJChTT1VSQ0VTKSAkKEhFQURFUlMpJzsgXAoJdW5pcXVlPWBmb3IgaSBpbiAkJGxp
c3Q7IGRvIGVjaG8gJCRpOyBkb25lIHwgXAoJICBhd2sgJyAgICB7IGZpbGVzWyQkMF0gPSAxOyB9
IFwKCSAgICAgICBFTkQgeyBmb3IgKGkgaW4gZmlsZXMpIHByaW50IGk7IH0nYDsgXAoJaGVyZT1g
cHdkYCAmJiBjZCAkKHNyY2RpcikgXAoJICAmJiBta2lkIC1mJCRoZXJlL0lEICQkdW5pcXVlICQo
TElTUCkKClRBR1M6ICAkKEhFQURFUlMpICQoU09VUkNFUykgICQoVEFHU19ERVBFTkRFTkNJRVMp
ICQoTElTUCkKCXRhZ3M9OyBcCgloZXJlPWBwd2RgOyBcCglsaXN0PSckKFNPVVJDRVMpICQoSEVB
REVSUyknOyBcCgl1bmlxdWU9YGZvciBpIGluICQkbGlzdDsgZG8gZWNobyAkJGk7IGRvbmUgfCBc
CgkgIGF3ayAnICAgIHsgZmlsZXNbJCQwXSA9IDE7IH0gXAoJICAgICAgIEVORCB7IGZvciAoaSBp
biBmaWxlcykgcHJpbnQgaTsgfSdgOyBcCgl0ZXN0IC16ICIkKEVUQUdTX0FSR1MpJCR1bmlxdWUk
KExJU1ApJCR0YWdzIiBcCgkgIHx8IChjZCAkKHNyY2RpcikgJiYgZXRhZ3MgJChFVEFHU19BUkdT
KSAkJHRhZ3MgICQkdW5pcXVlICQoTElTUCkgLW8gJCRoZXJlL1RBR1MpCgptb3N0bHljbGVhbi10
YWdzOgoKY2xlYW4tdGFnczoKCmRpc3RjbGVhbi10YWdzOgoJLXJtIC1mIFRBR1MgSUQKCm1haW50
YWluZXItY2xlYW4tdGFnczoKCmRpc3RkaXIgPSAkKFBBQ0tBR0UpLSQoVkVSU0lPTikKdG9wX2Rp
c3RkaXIgPSAkKGRpc3RkaXIpCgojIFRoaXMgdGFyZ2V0IHVudGFycyB0aGUgZGlzdCBmaWxlIGFu
ZCB0cmllcyBhIFZQQVRIIGNvbmZpZ3VyYXRpb24uICBUaGVuCiMgaXQgZ3VhcmFudGVlcyB0aGF0
IHRoZSBkaXN0cmlidXRpb24gaXMgc2VsZi1jb250YWluZWQgYnkgbWFraW5nIGFub3RoZXIKIyB0
YXJmaWxlLgpkaXN0Y2hlY2s6IGRpc3QKCS1ybSAtcmYgJChkaXN0ZGlyKQoJR1pJUD0kKEdaSVBf
RU5WKSAkKFRBUikgenhmICQoZGlzdGRpcikudGFyLmd6Cglta2RpciAkKGRpc3RkaXIpLz1idWls
ZAoJbWtkaXIgJChkaXN0ZGlyKS89aW5zdAoJZGNfaW5zdGFsbF9iYXNlPWBjZCAkKGRpc3RkaXIp
Lz1pbnN0ICYmIHB3ZGA7IFwKCWNkICQoZGlzdGRpcikvPWJ1aWxkIFwKCSAgJiYgLi4vY29uZmln
dXJlIC0tc3JjZGlyPS4uIC0tcHJlZml4PSQkZGNfaW5zdGFsbF9iYXNlIFwKCSAgJiYgJChNQUtF
KSAkKEFNX01BS0VGTEFHUykgXAoJICAmJiAkKE1BS0UpICQoQU1fTUFLRUZMQUdTKSBkdmkgXAoJ
ICAmJiAkKE1BS0UpICQoQU1fTUFLRUZMQUdTKSBjaGVjayBcCgkgICYmICQoTUFLRSkgJChBTV9N
QUtFRkxBR1MpIGluc3RhbGwgXAoJICAmJiAkKE1BS0UpICQoQU1fTUFLRUZMQUdTKSBpbnN0YWxs
Y2hlY2sgXAoJICAmJiAkKE1BS0UpICQoQU1fTUFLRUZMQUdTKSBkaXN0Cgktcm0gLXJmICQoZGlz
dGRpcikKCUBiYW5uZXI9IiQoZGlzdGRpcikudGFyLmd6IGlzIHJlYWR5IGZvciBkaXN0cmlidXRp
b24iOyBcCglkYXNoZXM9YGVjaG8gIiQkYmFubmVyIiB8IHNlZCBzLy4vPS9nYDsgXAoJZWNobyAi
JCRkYXNoZXMiOyBcCgllY2hvICIkJGJhbm5lciI7IFwKCWVjaG8gIiQkZGFzaGVzIgpkaXN0OiBk
aXN0ZGlyCgktY2htb2QgLVIgYStyICQoZGlzdGRpcikKCUdaSVA9JChHWklQX0VOVikgJChUQVIp
IGNob3pmICQoZGlzdGRpcikudGFyLmd6ICQoZGlzdGRpcikKCS1ybSAtcmYgJChkaXN0ZGlyKQpk
aXN0LWFsbDogZGlzdGRpcgoJLWNobW9kIC1SIGErciAkKGRpc3RkaXIpCglHWklQPSQoR1pJUF9F
TlYpICQoVEFSKSBjaG96ZiAkKGRpc3RkaXIpLnRhci5neiAkKGRpc3RkaXIpCgktcm0gLXJmICQo
ZGlzdGRpcikKZGlzdGRpcjogJChESVNURklMRVMpCgktcm0gLXJmICQoZGlzdGRpcikKCW1rZGly
ICQoZGlzdGRpcikKCS1jaG1vZCA3NzcgJChkaXN0ZGlyKQoJaGVyZT1gY2QgJCh0b3BfYnVpbGRk
aXIpICYmIHB3ZGA7IFwKCXRvcF9kaXN0ZGlyPWBjZCAkKGRpc3RkaXIpICYmIHB3ZGA7IFwKCWRp
c3RkaXI9YGNkICQoZGlzdGRpcikgJiYgcHdkYDsgXAoJY2QgJCh0b3Bfc3JjZGlyKSBcCgkgICYm
ICQoQVVUT01BS0UpIC0taW5jbHVkZS1kZXBzIC0tYnVpbGQtZGlyPSQkaGVyZSAtLXNyY2Rpci1u
YW1lPSQodG9wX3NyY2RpcikgLS1vdXRwdXQtZGlyPSQkdG9wX2Rpc3RkaXIgLS1nbnUgTWFrZWZp
bGUKCUBmb3IgZmlsZSBpbiAkKERJU1RGSUxFUyk7IGRvIFwKCSAgZD0kKHNyY2Rpcik7IFwKCSAg
aWYgdGVzdCAtZCAkJGQvJCRmaWxlOyB0aGVuIFwKCSAgICBjcCAtcHIgJCQvJCRmaWxlICQoZGlz
dGRpcikvJCRmaWxlOyBcCgkgIGVsc2UgXAoJICAgIHRlc3QgLWYgJChkaXN0ZGlyKS8kJGZpbGUg
XAoJICAgIHx8IGxuICQkZC8kJGZpbGUgJChkaXN0ZGlyKS8kJGZpbGUgMj4gL2Rldi9udWxsIFwK
CSAgICB8fCBjcCAtcCAkJGQvJCRmaWxlICQoZGlzdGRpcikvJCRmaWxlIHx8IDo7IFwKCSAgZmk7
IFwKCWRvbmUKCkRFUFNfTUFHSUMgOj0gJChzaGVsbCBta2RpciAuZGVwcyA+IC9kZXYvbnVsbCAy
PiYxIHx8IDopCgotaW5jbHVkZSAkKERFUF9GSUxFUykKCm1vc3RseWNsZWFuLWRlcGVuZDoKCmNs
ZWFuLWRlcGVuZDoKCmRpc3RjbGVhbi1kZXBlbmQ6Cgktcm0gLXJmIC5kZXBzCgptYWludGFpbmVy
LWNsZWFuLWRlcGVuZDoKCiUubzogJS5jCglAZWNobyAnJChDT01QSUxFKSAtYyAkPCc7IFwKCSQo
Q09NUElMRSkgLVdwLC1NRCwuZGVwcy8kKCpGKS5wcCAtYyAkPAoJQC1jcCAuZGVwcy8kKCpGKS5w
cCAuZGVwcy8kKCpGKS5QOyBcCgl0ciAnICcgJ1wwMTInIDwgLmRlcHMvJCgqRikucHAgXAoJICB8
IHNlZCAtZSAncy9eXFwkJC8vJyAtZSAnL14kJC8gZCcgLWUgJy86JCQvIGQnIC1lICdzLyQkLyA6
LycgXAoJICAgID4+IC5kZXBzLyQoKkYpLlA7IFwKCXJtIC5kZXBzLyQoKkYpLnBwCgolLmxvOiAl
LmMKCUBlY2hvICckKExUQ09NUElMRSkgLWMgJDwnOyBcCgkkKExUQ09NUElMRSkgLVdwLC1NRCwu
ZGVwcy8kKCpGKS5wcCAtYyAkPAoJQC1zZWQgLWUgJ3MvXlwoW146XSpcKVwub1sgCV0qOi9cMS5s
byBcMS5vIDovJyBcCgkgIDwgLmRlcHMvJCgqRikucHAgPiAuZGVwcy8kKCpGKS5QOyBcCgl0ciAn
ICcgJ1wwMTInIDwgLmRlcHMvJCgqRikucHAgXAoJICB8IHNlZCAtZSAncy9eXFwkJC8vJyAtZSAn
L14kJC8gZCcgLWUgJy86JCQvIGQnIC1lICdzLyQkLyA6LycgXAoJICAgID4+IC5kZXBzLyQoKkYp
LlA7IFwKCXJtIC1mIC5kZXBzLyQoKkYpLnBwCmluZm8tYW06CmluZm86IGluZm8tYW0KZHZpLWFt
Ogpkdmk6IGR2aS1hbQpjaGVjay1hbTogYWxsLWFtCmNoZWNrOiBjaGVjay1hbQppbnN0YWxsY2hl
Y2stYW06Cmluc3RhbGxjaGVjazogaW5zdGFsbGNoZWNrLWFtCmluc3RhbGwtZXhlYy1hbTogaW5z
dGFsbC1iaW5QUk9HUkFNUwppbnN0YWxsLWV4ZWM6IGluc3RhbGwtZXhlYy1hbQoKaW5zdGFsbC1k
YXRhLWFtOgppbnN0YWxsLWRhdGE6IGluc3RhbGwtZGF0YS1hbQoKaW5zdGFsbC1hbTogYWxsLWFt
CglAJChNQUtFKSAkKEFNX01BS0VGTEFHUykgaW5zdGFsbC1leGVjLWFtIGluc3RhbGwtZGF0YS1h
bQppbnN0YWxsOiBpbnN0YWxsLWFtCnVuaW5zdGFsbC1hbTogdW5pbnN0YWxsLWJpblBST0dSQU1T
CnVuaW5zdGFsbDogdW5pbnN0YWxsLWFtCmFsbC1hbTogTWFrZWZpbGUgJChQUk9HUkFNUykKYWxs
LXJlZGlyZWN0OiBhbGwtYW0KaW5zdGFsbC1zdHJpcDoKCSQoTUFLRSkgJChBTV9NQUtFRkxBR1Mp
IEFNX0lOU1RBTExfUFJPR1JBTV9GTEFHUz0tcyBpbnN0YWxsCmluc3RhbGxkaXJzOgoJJChta2lu
c3RhbGxkaXJzKSAgJChERVNURElSKSQoYmluZGlyKQoKCm1vc3RseWNsZWFuLWdlbmVyaWM6Cgpj
bGVhbi1nZW5lcmljOgoKZGlzdGNsZWFuLWdlbmVyaWM6Cgktcm0gLWYgTWFrZWZpbGUgJChDT05G
SUdfQ0xFQU5fRklMRVMpCgktcm0gLWYgY29uZmlnLmNhY2hlIGNvbmZpZy5sb2cgc3RhbXAtaCBz
dGFtcC1oWzAtOV0qCgptYWludGFpbmVyLWNsZWFuLWdlbmVyaWM6Cm1vc3RseWNsZWFuLWFtOiAg
bW9zdGx5Y2xlYW4tYmluUFJPR1JBTVMgbW9zdGx5Y2xlYW4tY29tcGlsZSBcCgkJbW9zdGx5Y2xl
YW4tdGFncyBtb3N0bHljbGVhbi1kZXBlbmQgbW9zdGx5Y2xlYW4tZ2VuZXJpYwoKbW9zdGx5Y2xl
YW46IG1vc3RseWNsZWFuLWFtCgpjbGVhbi1hbTogIGNsZWFuLWJpblBST0dSQU1TIGNsZWFuLWNv
bXBpbGUgY2xlYW4tdGFncyBjbGVhbi1kZXBlbmQgXAoJCWNsZWFuLWdlbmVyaWMgbW9zdGx5Y2xl
YW4tYW0KCmNsZWFuOiBjbGVhbi1hbQoKZGlzdGNsZWFuLWFtOiAgZGlzdGNsZWFuLWJpblBST0dS
QU1TIGRpc3RjbGVhbi1jb21waWxlIGRpc3RjbGVhbi10YWdzIFwKCQlkaXN0Y2xlYW4tZGVwZW5k
IGRpc3RjbGVhbi1nZW5lcmljIGNsZWFuLWFtCgpkaXN0Y2xlYW46IGRpc3RjbGVhbi1hbQoJLXJt
IC1mIGNvbmZpZy5zdGF0dXMKCm1haW50YWluZXItY2xlYW4tYW06ICBtYWludGFpbmVyLWNsZWFu
LWJpblBST0dSQU1TIFwKCQltYWludGFpbmVyLWNsZWFuLWNvbXBpbGUgbWFpbnRhaW5lci1jbGVh
bi10YWdzIFwKCQltYWludGFpbmVyLWNsZWFuLWRlcGVuZCBtYWludGFpbmVyLWNsZWFuLWdlbmVy
aWMgXAoJCWRpc3RjbGVhbi1hbQoJQGVjaG8gIlRoaXMgY29tbWFuZCBpcyBpbnRlbmRlZCBmb3Ig
bWFpbnRhaW5lcnMgdG8gdXNlOyIKCUBlY2hvICJpdCBkZWxldGVzIGZpbGVzIHRoYXQgbWF5IHJl
cXVpcmUgc3BlY2lhbCB0b29scyB0byByZWJ1aWxkLiIKCm1haW50YWluZXItY2xlYW46IG1haW50
YWluZXItY2xlYW4tYW0KCS1ybSAtZiBjb25maWcuc3RhdHVzCgouUEhPTlk6IG1vc3RseWNsZWFu
LWJpblBST0dSQU1TIGRpc3RjbGVhbi1iaW5QUk9HUkFNUyBjbGVhbi1iaW5QUk9HUkFNUyBcCm1h
aW50YWluZXItY2xlYW4tYmluUFJPR1JBTVMgdW5pbnN0YWxsLWJpblBST0dSQU1TIGluc3RhbGwt
YmluUFJPR1JBTVMgXAptb3N0bHljbGVhbi1jb21waWxlIGRpc3RjbGVhbi1jb21waWxlIGNsZWFu
LWNvbXBpbGUgXAptYWludGFpbmVyLWNsZWFuLWNvbXBpbGUgdGFncyBtb3N0bHljbGVhbi10YWdz
IGRpc3RjbGVhbi10YWdzIFwKY2xlYW4tdGFncyBtYWludGFpbmVyLWNsZWFuLXRhZ3MgZGlzdGRp
ciBtb3N0bHljbGVhbi1kZXBlbmQgXApkaXN0Y2xlYW4tZGVwZW5kIGNsZWFuLWRlcGVuZCBtYWlu
dGFpbmVyLWNsZWFuLWRlcGVuZCBpbmZvLWFtIGluZm8gXApkdmktYW0gZHZpIGNoZWNrIGNoZWNr
LWFtIGluc3RhbGxjaGVjay1hbSBpbnN0YWxsY2hlY2sgaW5zdGFsbC1leGVjLWFtIFwKaW5zdGFs
bC1leGVjIGluc3RhbGwtZGF0YS1hbSBpbnN0YWxsLWRhdGEgaW5zdGFsbC1hbSBpbnN0YWxsIFwK
dW5pbnN0YWxsLWFtIHVuaW5zdGFsbCBhbGwtcmVkaXJlY3QgYWxsLWFtIGFsbCBpbnN0YWxsZGly
cyBcCm1vc3RseWNsZWFuLWdlbmVyaWMgZGlzdGNsZWFuLWdlbmVyaWMgY2xlYW4tZ2VuZXJpYyBc
Cm1haW50YWluZXItY2xlYW4tZ2VuZXJpYyBjbGVhbiBtb3N0bHljbGVhbiBkaXN0Y2xlYW4gbWFp
bnRhaW5lci1jbGVhbgoKCiMgVGVsbCB2ZXJzaW9ucyBbMy41OSwzLjYzKSBvZiBHTlUgbWFrZSB0
byBub3QgZXhwb3J0IGFsbCB2YXJpYWJsZXMuCiMgT3RoZXJ3aXNlIGEgc3lzdGVtIGxpbWl0IChm
b3IgU3lzViBhdCBsZWFzdCkgbWF5IGJlIGV4Y2VlZGVkLgouTk9FWFBPUlQ6Cg==

--0__=862569B60071D7678f9e8a93df938690918c862569B60071D767--



From emf@prettyhatemachine.obfuscation.org Fri Dec 15 20:33:22 2000
Received: from hiro.obfuscation.org ([63.121.51.132])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1476Dy-00018x-00
	for <autoconf@gnu.org>; Fri, 15 Dec 2000 20:33:22 -0500
Received: (qmail 23810 invoked from network); 16 Dec 2000 01:33:09 -0000
Received: from prettyhatemachine.obfuscation.org (63.121.51.133)
  by hiro.obfuscation.org with SMTP; 16 Dec 2000 01:33:09 -0000
Received: (from emf@localhost)
	by prettyhatemachine.obfuscation.org (8.9.3+Sun/8.9.1) id UAA25265;
	Fri, 15 Dec 2000 20:33:02 -0500 (EST)
Date: Fri, 15 Dec 2000 20:33:02 -0500
From: emf <emf@prettyhatemachine.obfuscation.org>
To: Akim Demaille <akim@epita.fr>
Cc: autoconf@gnu.org
Subject: Re: errrr.. bug in 2.13 with AC_REPLACE_FUNCS() ?
Message-ID: <20001215203302.K24054@prettyhatemachine.obfuscation.org>
References: <20001213222633.J24054@prettyhatemachine.obfuscation.org> <mv4vgsn2vbk.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4vgsn2vbk.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Thu, Dec 14, 2000 at 10:42:07AM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, Dec 14, 2000 at 10:42:07AM +0100, Akim Demaille wrote:
> IIRC in 2.13 these guys are defined inside AC_INIT, i.e., I very
> highly suspect you have no AC_INIT on top of your file.  This is bad.

You're right. I'm a retard.  that was added to aclocal.m4, not configure.in.

Sorry for wasting your time.. It works fine when you put it in the right
place.

-- 
.emf.


From proski@gnu.org Sat Dec 16 02:36:15 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 147Bt9-0004v0-00; Sat, 16 Dec 2000 02:36:15 -0500
Date: Sat, 16 Dec 2000 02:34:28 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Akim Demaille <akim@epita.fr>
cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
In-Reply-To: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012160155100.978-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> Would someone see a problem if I adjust Autoconf to support
> configure.ac in addition to configure.in?  I think `.in' was a very
> bad name (which in addition introduces an undesirable confusion
> between autoconf instantiation and config.status instantiation).

If you want to move *.ac maybe it's time to make one more step?

I think that configure.ac should use the new macro names, such as m4_if
and m4_divert.

We could also put extra limitations on what is considered a valid
configure.ac script.

We may require every configure.ac to list a version of Autoconf it was
written for (it's not the same as the minimally required version). Some
warnings in configure.in may become errors in configure.ac.

Another crazy idea (in 2:30am, so it's the best time for crazy ideas).
How about writing configure.ac in XML:

<!DOCTYPE autoconf PUBLIC "-//GNU//Autoconf 3.01 Transitional//EN"
   "http://www.gnu.org/autoconf/autoconf-3.01-transitional.dtd">
<AC_INIT PACKAGE="Autoconf" VERSION="3.01">
<AC_CONFIG_SRCDIR FILE="acgeneral.m4">
<AC_PROG_AWK>
<AC_CACHE_CHECK>
  <MESSAGE>whether m4 supports frozen files</MESSAGE>
  <CODE>
    ac_cv_prog_gnu_m4=no
    if test x"$M4" != x; then
      case `$M4 --help &lt; /dev/null 2>&1` in
        *reload-state*) ac_cv_prog_gnu_m4=yes ;;
      esac
    fi
  </CODE>
</AC_CACHE_CHECK>
<AC_CONFIG FILES>
  <ITEM NAME="Makefile">
  <ITEM NAME="m4/Makefile" TEMPLATE="m4/Makefile-in">
  <ITEM NAME="tests/Makefile" REQUIRED="no">
</AC_CONFIG FILES>
<AC_OUTPUT>

Well, enough for today :-)

Regards,
Pavel Roskin



From akim@epita.fr Sat Dec 16 03:14:16 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147CTr-0006MP-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 03:14:15 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA00539
	Sat, 16 Dec 2000 09:09:23 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 147CPr-00085U-00; Sat, 16 Dec 2000 09:10:03 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 147CPB-00048X-00; Sat, 16 Dec 2000 09:09:21 +0100
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Harlan Stenn <harlan@bali.trilogy.com>, <autoconf@gnu.org>
Subject: Re: CVS autoconf, config.{sub,guess}, and "make install"
References: <Pine.LNX.4.30.0012151730230.1319-100000@peter.localdomain>
From: Akim Demaille <akim@epita.fr>
Date: 16 Dec 2000 09:09:21 +0100
In-Reply-To: Peter Eisentraut's message of "Fri, 15 Dec 2000 17:31:53 +0100 (CET)"
Message-ID: <mv4itokss7i.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Peter" == Peter Eisentraut <peter_e@gmx.net> writes:

Peter> It might be worth pointing out that this fragment will fail on
Peter> BSD makes in the same way that the '.sh: configure.in'
Peter> dependency fails, as currently discussed in another thread.

Yep, but here we don't care: these are maintainer rules, users don't
trigger them.


From akim@epita.fr Sat Dec 16 03:16:06 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147CVJ-0006PS-00; Sat, 16 Dec 2000 03:15:41 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA00672
	Sat, 16 Dec 2000 09:12:20 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 147CSh-00087T-00; Sat, 16 Dec 2000 09:12:59 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 147CRs-00048q-00; Sat, 16 Dec 2000 09:12:08 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: "'Pavel Roskin'" <proski@gnu.org>,
        Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org
Subject: Re: Expanded rules for scripts
References: <17B78BDF120BD411B70100500422FC6309E196@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 16 Dec 2000 09:12:07 +0100
In-Reply-To: Bernard Dautrevaux's message of "Fri, 15 Dec 2000 16:41:37 +0100"
Message-ID: <mv4ae9wss2w.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Bernard" == Bernard Dautrevaux <Dautrevaux@microprocess.com> writes:

Bernard> The main reason why ".sh: configure.in" is clearly wrong is
Bernard> that otherwise I would have NO way to create an EXPLICIT rule
Bernard> to build some "hidden" file named for example ".make.depend"
Bernard> if it happens make knows the ".make" and ".depend" suffixes
Bernard> ;-(

Ha!  Of course!  Thanks, this is really what I wanted to know.


From akim@epita.fr Sat Dec 16 03:17:48 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147CX9-0006j8-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 03:17:47 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA00579
	Sat, 16 Dec 2000 09:10:43 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 147CR8-00086O-00; Sat, 16 Dec 2000 09:11:22 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 147CQJ-00048k-00; Sat, 16 Dec 2000 09:10:31 +0100
To: Earnie Boyd <earnie_boyd@yahoo.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>, Mo DeJong <mdejong@cygnus.com>,
        autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <20001215153946.15680.qmail@web109.yahoomail.com>
From: Akim Demaille <akim@epita.fr>
Date: 16 Dec 2000 09:10:30 +0100
In-Reply-To: Earnie Boyd's message of "Fri, 15 Dec 2000 07:39:46 -0800 (PST)"
Message-ID: <mv4elz8ss5l.fsf@nostromo.lrde.epita.fr>
Lines: 15
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Earnie" == Earnie Boyd <earnie_boyd@yahoo.com> writes:

Earnie> --- Akim Demaille <akim@epita.fr> wrote:
>> >>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br>
>> writes:
>> 
Alexandre> But saving and restoring doesn't sound bad either...
>> OK, I'll go for this.
>> 

Earnie> Why!!  It is overkill to save and restore an existing
Earnie> a.[out|exe].

I'm fine if we don't back up.  All I want is to include this patch
quickly.  Alexandre, OK without backup?


From akim@epita.fr Sat Dec 16 03:26:44 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147Cfv-0006uu-00; Sat, 16 Dec 2000 03:26:44 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA00672
	Sat, 16 Dec 2000 09:12:20 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 147CSh-00087T-00; Sat, 16 Dec 2000 09:12:59 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 147CRs-00048q-00; Sat, 16 Dec 2000 09:12:08 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: "'Pavel Roskin'" <proski@gnu.org>,
        Alexandre Oliva <oliva@lsd.ic.unicamp.br>, autoconf@gnu.org
Subject: Re: Expanded rules for scripts
References: <17B78BDF120BD411B70100500422FC6309E196@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 16 Dec 2000 09:12:07 +0100
In-Reply-To: Bernard Dautrevaux's message of "Fri, 15 Dec 2000 16:41:37 +0100"
Message-ID: <mv4ae9wss2w.fsf@nostromo.lrde.epita.fr>
Lines: 9
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Bernard" == Bernard Dautrevaux <Dautrevaux@microprocess.com> writes:

Bernard> The main reason why ".sh: configure.in" is clearly wrong is
Bernard> that otherwise I would have NO way to create an EXPLICIT rule
Bernard> to build some "hidden" file named for example ".make.depend"
Bernard> if it happens make knows the ".make" and ".depend" suffixes
Bernard> ;-(

Ha!  Of course!  Thanks, this is really what I wanted to know.


From gary@oranda.demon.co.uk Sat Dec 16 09:06:37 2000
Received: from tele-post-20.mail.demon.net ([194.217.242.20])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 147Hyv-00061v-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 09:06:37 -0500
Received: from oranda.demon.co.uk ([194.222.82.6] helo=cain.nod)
	by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2)
	id 147Hyt-000MTI-0K
	for autoconf@gnu.org; Sat, 16 Dec 2000 14:06:36 +0000
Received: from gary by cain.nod with local (Exim 3.11 #1 (Debian))
	id 14749U-00086F-00; Fri, 15 Dec 2000 23:20:36 +0000
Date: Fri, 15 Dec 2000 23:20:36 +0000
From: "Gary V. Vaughan" <gvv@techie.com>
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
Message-ID: <20001215232036.W400@demon.co.uk>
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Fri, Dec 15, 2000 at 03:29:34PM +0100
X-Operating-System: Linux cain 2.2.17
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Fri, Dec 15, 2000 at 03:29:34PM +0100, Akim Demaille wrote:
> 
> Would someone see a problem if I adjust Autoconf to support
> configure.ac in addition to configure.in?  I think `.in' was a very
> bad name (which in addition introduces an undesirable confusion
> between autoconf instantiation and config.status instantiation).

Why not allow both for the next release, but print a warning that
tells the user configure.in is deprecated when they use it?

Cheers,
	Gary.
-- 
  ___              _   ___   __              _         mailto: gvv@techie.com
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       gary@gnu.org 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc


From oliva@lsd.ic.unicamp.br Sat Dec 16 10:24:37 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147JCO-0008JO-00; Sat, 16 Dec 2000 10:24:36 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBGEruJ31656;
	Sat, 16 Dec 2000 12:53:56 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Mo DeJong <mdejong@cygnus.com>, autoconf@gnu.org,
   APatche <autoconf-patches@gnu.org>
Subject: Re: EXEEXT: `cc -o' (Was: AC_CYGWIN etc.)
References: <Pine.SOL.3.91.1001214014419.27134E-100000@cse.cygnus.com>
	<mv4r93b1b4g.fsf@nostromo.lrde.epita.fr>
	<or8zpiq5c0.fsf@guarana.lsd.ic.unicamp.br>
	<mv4lmtit6xw.fsf@nostromo.lrde.epita.fr>
	<or8zpi2hpw.fsf@guarana.lsd.ic.unicamp.br>
	<mv4d7eut41e.fsf_-_@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 16 Dec 2000 12:53:56 -0200
In-Reply-To: Akim Demaille's message of "15 Dec 2000 10:41:33 +0100"
Message-ID: <orae9wwh6j.fsf@guarana.lsd.ic.unicamp.br>
Lines: 26
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I thought I had sent this before, but I'm not sure I did...  Sorry if
it's a duplicate.

On Dec 15, 2000, Akim Demaille <akim@epita.fr> wrote:

> +if ls a.* >/dev/null 2>&1; then
> +  rm -rf conftestdir
> +  mkdir conftestdir
> +  mv a.* conftestdir
> +fi
[snip]
> +if test -d conftestdir; then
> +  mv conftestdir/* .
> +  rm -rf conftestdir
> +fi

Note that if conftestdir exists in the beginning and there aren't any
a.* files in the current directory, you'll end up moving the contents
of conftestdir to the current directory at the end.  Better rm -rf it
up-front, unconditionally.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Sat Dec 16 11:43:16 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147KQV-0002sX-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 11:43:15 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBGGGxX24629;
	Sat, 16 Dec 2000 14:16:59 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 16 Dec 2000 14:16:59 -0200
In-Reply-To: Akim Demaille's message of "15 Dec 2000 15:29:34 +0100"
Message-ID: <org0jouyro.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 15, 2000, Akim Demaille <akim@epita.fr> wrote:

> Sure `configure.in' can be reserved for Autoconf only, but adding
> support for `configure.ac' seems good anyway.

I like it.  But I'm not sure whether we should prefer configure.ac
over configure.in or the other way round, in case both exist.  Or
should we just print an error and abort in this case?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From oliva@lsd.ic.unicamp.br Sat Dec 16 11:43:24 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147KQd-0002sc-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 11:43:23 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBGGHb026157;
	Sat, 16 Dec 2000 14:17:37 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Earnie Boyd <earnie_boyd@yahoo.com>, Mo DeJong <mdejong@cygnus.com>,
   autoconf@gnu.org
Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
References: <20001215153946.15680.qmail@web109.yahoomail.com>
	<mv4elz8ss5l.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 16 Dec 2000 14:17:37 -0200
In-Reply-To: Akim Demaille's message of "16 Dec 2000 09:10:30 +0100"
Message-ID: <orbsucuyqm.fsf@guarana.lsd.ic.unicamp.br>
Lines: 24
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 16, 2000, Akim Demaille <akim@epita.fr> wrote:

>>>>>> "Earnie" == Earnie Boyd <earnie_boyd@yahoo.com> writes:
Earnie> --- Akim Demaille <akim@epita.fr> wrote:
>>> >>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br>
>>> writes:
>>> 
Alexandre> But saving and restoring doesn't sound bad either...
>>> OK, I'll go for this.
>>> 

Earnie> Why!!  It is overkill to save and restore an existing
Earnie> a.[out|exe].

> I'm fine if we don't back up.  All I want is to include this patch
> quickly.  Alexandre, OK without backup?

Yep

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Sat Dec 16 12:00:07 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147Kgp-0003OQ-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 12:00:07 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA00715
	Sat, 16 Dec 2000 17:13:08 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 147JtE-0000Pw-00; Sat, 16 Dec 2000 17:08:52 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 147Jsi-0004Cq-00; Sat, 16 Dec 2000 17:08:20 +0100
To: "Gary V. Vaughan" <gvv@techie.com>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
	<20001215232036.W400@demon.co.uk>
From: Akim Demaille <akim@epita.fr>
Date: 16 Dec 2000 17:08:20 +0100
In-Reply-To: "Gary V. Vaughan"'s message of "Fri, 15 Dec 2000 23:20:36 +0000"
Message-ID: <mv4snnoqrgr.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Gary" == Gary V Vaughan <gvv@techie.com> writes:

Gary> On Fri, Dec 15, 2000 at 03:29:34PM +0100, Akim Demaille wrote:
>> Would someone see a problem if I adjust Autoconf to support
>> configure.ac in addition to configure.in?  I think `.in' was a very
>> bad name (which in addition introduces an undesirable confusion
>> between autoconf instantiation and config.status instantiation).

Gary> Why not allow both for the next release, but print a warning
Gary> that tells the user configure.in is deprecated when they use it?

I never meant to remove configure.in support, and I think the warning
might even be too much.  But I'd like to have the doc promote
configure.ac.


From oliva@lsd.ic.unicamp.br Sat Dec 16 12:04:29 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147Kl2-0003UX-00; Sat, 16 Dec 2000 12:04:28 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBGGDwB20825;
	Sat, 16 Dec 2000 14:13:58 -0200
To: Akim Demaille <akim@epita.fr>
Cc: Bernard Dautrevaux <Dautrevaux@microprocess.com>,
   "'Pavel Roskin'" <proski@gnu.org>, autoconf@gnu.org
Subject: Re: Expanded rules for scripts
References: <17B78BDF120BD411B70100500422FC6309E194@IIS000>
	<mv47l51vj5d.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 16 Dec 2000 14:13:58 -0200
In-Reply-To: Akim Demaille's message of "15 Dec 2000 15:44:30 +0100"
Message-ID: <ork890uywp.fsf@guarana.lsd.ic.unicamp.br>
Lines: 24
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 15, 2000, Akim Demaille <akim@epita.fr> wrote:

> | > > .sh: configure.in
> | > >         # do sth
> | > 
> | > Even GNU make would not let you do it.
> | 
> | This is indeed definitely wrong and I don't know of any make where I've seen
> | this working but, to be honest, discovering once it was not working I
> | stopped trying :-)

> I must be missing something: why is it that clear it's wrong?

It's not really wrong, it just doesn't do what you want.

It means ``build the file named .sh out of configure.in'', not ``build
%.sh out of %, with the additional dependency on configure.in''.  I
think :-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From gary@oranda.demon.co.uk Sat Dec 16 12:45:27 2000
Received: from anchor-post-31.mail.demon.net ([194.217.242.89])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 147LOh-00052u-00
	for <autoconf@gnu.org>; Sat, 16 Dec 2000 12:45:27 -0500
Received: from oranda.demon.co.uk ([194.222.82.6] helo=cain.nod)
	by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1)
	id 147LOe-000EqO-0V; Sat, 16 Dec 2000 17:45:24 +0000
Received: from gary by cain.nod with local (Exim 3.11 #1 (Debian))
	id 147LOQ-00032r-00; Sat, 16 Dec 2000 17:45:10 +0000
Date: Sat, 16 Dec 2000 17:45:09 +0000
From: "Gary V. Vaughan" <gvv@techie.com>
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
Message-ID: <20001216174509.G400@demon.co.uk>
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr> <20001215232036.W400@demon.co.uk> <mv4snnoqrgr.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4snnoqrgr.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Sat, Dec 16, 2000 at 05:08:20PM +0100
X-Operating-System: Linux cain 2.2.17
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Sat, Dec 16, 2000 at 05:08:20PM +0100, Akim Demaille wrote:
> >>>>> "Gary" == Gary V Vaughan <gvv@techie.com> writes:
> 
> Gary> On Fri, Dec 15, 2000 at 03:29:34PM +0100, Akim Demaille wrote:
> >> Would someone see a problem if I adjust Autoconf to support
> >> configure.ac in addition to configure.in?  I think `.in' was a very
> >> bad name (which in addition introduces an undesirable confusion
> >> between autoconf instantiation and config.status instantiation).
> 
> Gary> Why not allow both for the next release, but print a warning
> Gary> that tells the user configure.in is deprecated when they use it?
> 
> I never meant to remove configure.in support, and I think the warning
> might even be too much.  But I'd like to have the doc promote
> configure.ac.

Okay.  I'll buy that =)O|

Cheers,
	Gary.
-- 
  ___              _   ___   __              _         mailto: gvv@techie.com
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       gary@gnu.org 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc


From mdejong@cygnus.com Sun Dec 17 06:12:25 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147bjs-0002cq-00
	for <autoconf@gnu.org>; Sun, 17 Dec 2000 06:12:24 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id DAA11537
	for <autoconf@gnu.org>; Sun, 17 Dec 2000 03:12:23 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id DAA19550; Sun, 17 Dec 2000 03:12:22 -0800 (PST)
Date: Sun, 17 Dec 2000 03:12:22 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Problem with exit() and new version of gcc.
Message-ID: <Pine.SOL.3.91.1001217021935.18626A-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello.

I have run into an interesting little problem with
a newer version of gcc and the CVS version of autoconf.

I am using an autoconf test that attempts to see if
the new style C++ sytle includes can be used:


like so:

AC_DEFUN(AC_CXX_HAVE_STD,
[AC_CACHE_CHECK(whether the compiler supports ISO C++ standard library,
ac_cv_cxx_have_std,
[AC_REQUIRE([AC_CXX_NAMESPACES])
 AC_LANG_SAVE
 AC_LANG_CPLUSPLUS
 AC_TRY_COMPILE([#include <iostream>
#include <map>
#include <iomanip>
#include <cmath>
#ifdef HAVE_NAMESPACES
using namespace std;
#endif],[return 0;],
 ac_cv_cxx_have_std=yes, ac_cv_cxx_have_std=no)
 AC_LANG_RESTORE
])
if test "$ac_cv_cxx_have_std" = yes; then
  AC_DEFINE(HAVE_STD,,[define if the compiler supports ISO C++ standard 
library])
fi
])


That gets written out to conftest.cc as:

#include "confdefs.h"
#ifdef __cplusplus
extern "C" void exit (int);
#endif
#include <iostream>
#include <map>
#include <iomanip>
#include <cmath>
#ifdef HAVE_NAMESPACES
using namespace std;
#endif
int
main ()
{
return 0;
  ;
  return 0;
}


When g++ tries to compile it, it fails like so:

% g++ -c -g  conftest.cc
In file included from 
/abomination/imagine/mdejong/java/install/include/g++-v3/bits
/std_cstdlib.h:40,
                 from 
/abomination/imagine/mdejong/java/install/include/g++-v3/bits
/stl_alloc.h:53,
                 from 
/abomination/imagine/mdejong/java/install/include/g++-v3/bits
/stl_string_fwd.h:18,
                 from 
/abomination/imagine/mdejong/java/install/include/g++-v3/bits
/std_ios.h:40,
                 from 
/abomination/imagine/mdejong/java/install/include/g++-v3/bits
/std_ostream.h:1,
                 from 
/abomination/imagine/mdejong/java/install/include/g++-v3/bits
/std_iostream.h:38,
                 from 
/abomination/imagine/mdejong/java/install/include/g++-v3/iost
ream:1,
                 from configure:2148:
/usr/include/stdlib.h:520: declaration of `void exit(int) throw ()' 
throws 
   different exceptions
configure:2148: than previous declaration `void exit(int)'


Later tests will fail because of this, so the result
is that my package will not compile with the CVS
version of gcc. If I add a "throw ()" to the
end of that exit declaration, it compiles. Is this
a bug in the compiler or a problem in autoconf?

Mo DeJong
Red Hat Inc


From mdejong@cygnus.com Sun Dec 17 17:00:45 2000
Received: from runyon.cygnus.com ([205.180.230.5] helo=cygnus.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147lrI-0004cE-00
	for <autoconf@gnu.org>; Sun, 17 Dec 2000 17:00:45 -0500
Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236])
	by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id OAA26283
	for <autoconf@gnu.org>; Sun, 17 Dec 2000 14:00:43 -0800 (PST)
Received: (mdejong@localhost) by cse.cygnus.com (8.8.8+Sun/8.6.4) id OAA21962; Sun, 17 Dec 2000 14:00:43 -0800 (PST)
Date: Sun, 17 Dec 2000 14:00:43 -0800 (PST)
From: Mo DeJong <mdejong@cygnus.com>
To: autoconf@gnu.org
Subject: Re: Problem with exit() and new version of gcc.
In-Reply-To: <Pine.SOL.3.91.1001217021935.18626A-100000@cse.cygnus.com>
Message-ID: <Pine.SOL.3.91.1001217135448.21748A-100000@cse.cygnus.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Sun, 17 Dec 2000, Mo DeJong wrote:

> Hello.
> 
> I have run into an interesting little problem with
> a newer version of gcc and the CVS version of autoconf.
> 
> I am using an autoconf test that attempts to see if
> the new style C++ sytle includes can be used:

I thought I would mention that the version of gcc
delivered with Red Hat 7.0 has this same problem.

Here is the error I get with that compiler.

configure:2139: checking whether the compiler supports ISO C++ standard 
library
configure:2167: g++ -c -g  conftest.cc >&5
In file included from /usr/include/g++-3/stl_algobase.h:51,
                 from /usr/include/g++-3/stl_tree.h:57,
                 from /usr/include/g++-3/map:32,
                 from configure:2152:
/usr/include/stdlib.h:578: declaration of `void exit (int) throw ()' 
throws different exceptions
configure:2148: than previous declaration `void exit (int)'

 % g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)


Mo DeJong
Red Hat Inc


From assar@assaris.sics.se Sun Dec 17 19:52:34 2000
Received: from dyna225-150.nada.kth.se ([130.237.225.150] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147oXa-0002jo-00
	for <autoconf@gnu.org>; Sun, 17 Dec 2000 19:52:34 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id BAA67389;
	Mon, 18 Dec 2000 01:52:38 +0100 (CET)
	(envelope-from assar)
To: Mo DeJong <mdejong@cygnus.com>
Cc: autoconf@gnu.org
Subject: Re: Problem with exit() and new version of gcc.
References: <Pine.SOL.3.91.1001217021935.18626A-100000@cse.cygnus.com>
From: Assar Westerlund <assar@sics.se>
Date: 18 Dec 2000 01:52:37 +0100
In-Reply-To: Mo DeJong's message of "Sun, 17 Dec 2000 03:12:22 -0800 (PST)"
Message-ID: <5lae9ubley.fsf@assaris.sics.se>
Lines: 29
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Mo DeJong <mdejong@cygnus.com> writes:
> #include "confdefs.h"
> #ifdef __cplusplus
> extern "C" void exit (int);
> #endif

I think this problem has already been discussed on the mailing list.
We should in my opinion just remove the declaration of exit for C++,
like so:

/assar

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.98
diff -u -w -u -w -r1.98 aclang.m4
--- aclang.m4	2000/12/15 11:50:19	1.98
+++ aclang.m4	2000/12/18 00:51:46
@@ -422,9 +422,6 @@
 m4_define([AC_LANG_SOURCE(C++)],
 [#line __oline__ "configure"
 #include "confdefs.h"
-#ifdef __cplusplus
-extern "C" void exit (int);
-#endif
 $1])
 
 


From proski@gnu.org Mon Dec 18 00:40:32 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 147t2G-0005Qz-00; Mon, 18 Dec 2000 00:40:32 -0500
Date: Mon, 18 Dec 2000 00:40:00 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To:  <Rebecca.R.Krause@seagate.com>
cc:  <autoconf@gnu.org>
Subject: Re: Make distcheck error
In-Reply-To: <OF27513059.2A685885-ON862569B6.0071D767@stsv.seagate.com>
Message-ID: <Pine.LNX.4.30.0012180036250.3011-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Rebecca!

> I am trying to learn how to distribute a package of software using
> autoconf and automake.  I am using RedHat 7.0, Autoconf version 2.10
> and automake 1.4.

Autoconf 2.10 is very old. Use either 2.13 (stable) or 2.49b (development
version).

Automake 1.4 doesn't work with older versions of Autoconf.

Regards,
Pavel Roskin



From proski@gnu.org Mon Dec 18 00:47:03 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 147t8Z-0005or-00; Mon, 18 Dec 2000 00:47:03 -0500
Date: Mon, 18 Dec 2000 00:46:31 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Akim Demaille <akim@epita.fr>
cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
In-Reply-To: <mv4snnoqrgr.fsf@nostromo.lrde.epita.fr>
Message-ID: <Pine.LNX.4.30.0012180043120.3011-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Akim!

> I never meant to remove configure.in support, and I think the warning
> might even be too much.  But I'd like to have the doc promote
> configure.ac.

Ok.

By the way, I tend to think now that code versioning should be independent
from filenames. Both configure.in and configure.ac should be treated in
the same way.

I withdraw my comment that asked for the opposite.

Regards,
Pavel Roskin



From proski@gnu.org Mon Dec 18 01:13:39 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 147tYJ-0006Wi-00; Mon, 18 Dec 2000 01:13:39 -0500
Date: Mon, 18 Dec 2000 01:13:07 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Assar Westerlund <assar@sics.se>
cc: Mo DeJong <mdejong@cygnus.com>,  <autoconf@gnu.org>
Subject: Re: Problem with exit() and new version of gcc.
In-Reply-To: <5lae9ubley.fsf@assaris.sics.se>
Message-ID: <Pine.LNX.4.30.0012180047370.3856-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Assar!

> I think this problem has already been discussed on the mailing list.
> We should in my opinion just remove the declaration of exit for C++,

Maybe it's better to use "return" for C++. I remember that somebody
mentioned problems with "return" in old C compilers. This should be
irrelevant to C++.

> -#ifdef __cplusplus
> -extern "C" void exit (int);
> -#endif

It should be:

#ifdef __cplusplus
#undef exit
#define exit(x) return (x)
#endif

The full patch goes to autoconf-patches@gnu.org.

Regards,
Pavel Roskin



From oliva@lsd.ic.unicamp.br Mon Dec 18 01:21:15 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147tfe-0006cV-00; Mon, 18 Dec 2000 01:21:15 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBI6LCZ03484;
	Mon, 18 Dec 2000 04:21:12 -0200
To: Pavel Roskin <proski@gnu.org>
Cc: Assar Westerlund <assar@sics.se>, Mo DeJong <mdejong@cygnus.com>,
   <autoconf@gnu.org>
Subject: Re: Problem with exit() and new version of gcc.
References: <Pine.LNX.4.30.0012180047370.3856-100000@woburn.localdomain>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 18 Dec 2000 04:21:12 -0200
In-Reply-To: Pavel Roskin's message of "Mon, 18 Dec 2000 01:13:07 -0500 (EST)"
Message-ID: <ord7eqntbb.fsf@guarana.lsd.ic.unicamp.br>
Lines: 15
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 18, 2000, Pavel Roskin <proski@gnu.org> wrote:

> #ifdef __cplusplus
> #undef exit
> #define exit(x) return (x)
> #endif

But what if a hand-coded test calls exit() from some function other
than main()?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From harinath@cs.umn.edu Mon Dec 18 01:37:45 2000
Received: from mail.cs.umn.edu ([128.101.36.200])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147tvd-0007Ay-00; Mon, 18 Dec 2000 01:37:45 -0500
Received: from han.cs.umn.edu (IDENT:root@han.cs.umn.edu [128.101.35.134])
	by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id AAA07001;
	Mon, 18 Dec 2000 00:37:43 -0600 (CST)
Received: (from harinath@localhost)
	by han.cs.umn.edu (8.9.3/8.9.0) id AAA22326;
	Mon, 18 Dec 2000 00:37:43 -0600
X-Authentication-Warning: han.cs.umn.edu: harinath set sender to harinath@cs.umn.edu using -f
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Pavel Roskin <proski@gnu.org>, Assar Westerlund <assar@sics.se>,
        Mo DeJong <mdejong@cygnus.com>, <autoconf@gnu.org>
Subject: Re: Problem with exit() and new version of gcc.
References: <Pine.LNX.4.30.0012180047370.3856-100000@woburn.localdomain>
	<ord7eqntbb.fsf@guarana.lsd.ic.unicamp.br>
Content-Type: text/plain; charset=us-ascii
From: Raja R Harinath <harinath@cs.umn.edu>
Date: 18 Dec 2000 00:37:43 -0600
In-Reply-To: <ord7eqntbb.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <d91yv6grpk.fsf@han.cs.umn.edu>
Lines: 20
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.93
MIME-Version: 1.0
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:
> On Dec 18, 2000, Pavel Roskin <proski@gnu.org> wrote:
> 
> > #ifdef __cplusplus
> > #undef exit
> > #define exit(x) return (x)
> > #endif

That looks like a bad idea.  
 
> But what if a hand-coded test calls exit() from some function other
> than main()?

Yup.  Also, they should include <stdlib.h> if they want exit().

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


From proski@gnu.org Mon Dec 18 01:50:29 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 147u7x-0007ll-00; Mon, 18 Dec 2000 01:50:29 -0500
Date: Mon, 18 Dec 2000 01:49:57 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
cc: Assar Westerlund <assar@sics.se>, Mo DeJong <mdejong@cygnus.com>, 
     <autoconf@gnu.org>
Subject: Re: Problem with exit() and new version of gcc.
In-Reply-To: <ord7eqntbb.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <Pine.LNX.4.30.0012180127370.32571-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Alexandre!

> > #ifdef __cplusplus
> > #undef exit
> > #define exit(x) return (x)
> > #endif
>
> But what if a hand-coded test calls exit() from some function other
> than main()?

Nothing good, obviously :-(
Ignore my patch, we should make a better one.

We probably should create a table of what declarations work with what
compilers.

                   No declaration   stdlib.h   Simple   Using throw
egcs-1.1.2             Ok              Ok        Ok         Ok
gcc-2.95.2             Ok              Ok        Ok         Ok
gcc-2.97               Ok              Ok       Not Ok      Ok

Can anybody continue? How about commercial compilers?

If there is a declaration that always works we should stick with it.
Otherwise we should check what declaration if preferred for the given
compiler and use it.

Regards,
Pavel Roskin



From oliva@lsd.ic.unicamp.br Mon Dec 18 02:47:14 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147v0s-0001S0-00; Mon, 18 Dec 2000 02:47:14 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBI7lDn10208;
	Mon, 18 Dec 2000 05:47:13 -0200
To: Pavel Roskin <proski@gnu.org>
Cc: Assar Westerlund <assar@sics.se>, Mo DeJong <mdejong@cygnus.com>,
   <autoconf@gnu.org>
Subject: Re: Problem with exit() and new version of gcc.
References: <Pine.LNX.4.30.0012180127370.32571-100000@woburn.localdomain>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 18 Dec 2000 05:47:13 -0200
In-Reply-To: Pavel Roskin's message of "Mon, 18 Dec 2000 01:49:57 -0500 (EST)"
Message-ID: <orpuiqmari.fsf@guarana.lsd.ic.unicamp.br>
Lines: 27
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 18, 2000, Pavel Roskin <proski@gnu.org> wrote:

>                    No declaration   stdlib.h   Simple   Using throw
> egcs-1.1.2             Ok              Ok        Ok         Ok
> gcc-2.95.2             Ok              Ok        Ok         Ok
> gcc-2.97               Ok              Ok       Not Ok      Ok

> Can anybody continue? How about commercial compilers?

Unfortunately, it's not just a matter of the compiler in use.  IIRC,
stdlib.h isn't supplied by GCC, it's part of the C library, so we'd
have to test each different OS :-(

> Otherwise we should check what declaration if preferred for the given
> compiler and use it.

It seems to me that the only safe way to go is to test first :-(

Fortunately, we don't have to worry about std::exit(int), since
stdlib.h, unlike cstdlib, must bring std::exit(int) into the global
namespace.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From mirar@idonex.se Mon Dec 18 04:01:58 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147wBC-0004GB-00
	for <autoconf@gnu.org>; Mon, 18 Dec 2000 04:01:58 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id KAA16572;
	Mon, 18 Dec 2000 10:01:51 +0100 (MET)
To: Autoconf List <autoconf@gnu.org>
Subject: default configure arguments 
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 18 Dec 2000 10:01:50 +0100
In-Reply-To: Akim Demaille's message of "15 Dec 2000 15:29:34 +0100"
Message-ID: <82snnmksqp.fsf@megalon.idonex.se>
Lines: 20
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I would like to store default configure arguments in a separate file
in the source tree (so I can erase the build tree without losing the
configure arguments).

How is this done best?

  AC_INIT...
  AC_CONFIG_HEADER...

  if test -e "$srcdir/configure_args"; then
      ac_arg="`cat "$srcdir/configure_args" | sed "s/'/'\\\\\\\\''/g"`"
      ac_configure_args="$ac_arg $ac_configure_args"
      echo "$ac_configure_args"
  fi

might work, but is probably very very bad.

Any suggestions?

/Mirar



From Dautrevaux@microprocess.com Mon Dec 18 04:21:03 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147wTd-0004TH-00; Mon, 18 Dec 2000 04:21:02 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YK3AG>; Mon, 18 Dec 2000 10:07:21 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E198@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Alexandre Oliva' <oliva@lsd.ic.unicamp.br>, Pavel Roskin
	 <proski@gnu.org>
Cc: Assar Westerlund <assar@sics.se>, Mo DeJong <mdejong@cygnus.com>, 
	autoconf@gnu.org
Subject: RE: Problem with exit() and new version of gcc.
Date: Mon, 18 Dec 2000 10:06:47 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Alexandre Oliva [mailto:oliva@lsd.ic.unicamp.br]
> Sent: Monday, December 18, 2000 8:47 AM
> To: Pavel Roskin
> Cc: Assar Westerlund; Mo DeJong; autoconf@gnu.org
> Subject: Re: Problem with exit() and new version of gcc.
> 
> 
> On Dec 18, 2000, Pavel Roskin <proski@gnu.org> wrote:
> 
> >                    No declaration   stdlib.h   Simple   Using throw
> > egcs-1.1.2             Ok              Ok        Ok         Ok
> > gcc-2.95.2             Ok              Ok        Ok         Ok
> > gcc-2.97               Ok              Ok       Not Ok      Ok
> 
> > Can anybody continue? How about commercial compilers?
> 
> Unfortunately, it's not just a matter of the compiler in use.  IIRC,
> stdlib.h isn't supplied by GCC, it's part of the C library, so we'd
> have to test each different OS :-(
> 
> > Otherwise we should check what declaration if preferred for 
> the given
> > compiler and use it.
> 
> It seems to me that the only safe way to go is to test first :-(


Yep; and anyway this test is even needed to write portable C++ code, so
Autoconf should provide it, as it obviously *needs* it :-)

> 
> Fortunately, we don't have to worry about std::exit(int), since
> stdlib.h, unlike cstdlib, must bring std::exit(int) into the global
> namespace.

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From larsa@sim.no Mon Dec 18 09:45:23 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1481XW-00059x-00
	for <autoconf@gnu.org>; Mon, 18 Dec 2000 09:45:23 -0500
Received: (qmail 19173 invoked by uid 2000); 18 Dec 2000 14:45:21 -0000
Date: Mon, 18 Dec 2000 15:45:21 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
Message-ID: <20001218154521.A11176@sim.no>
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Fri, Dec 15, 2000 at 03:29:34PM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Fri, Dec 15, 2000 at 03:29:34PM +0100, Akim Demaille wrote:
: Would someone see a problem if I adjust Autoconf to support
: configure.ac in addition to configure.in?  I think `.in' was a very
: bad name (which in addition introduces an undesirable confusion
: between autoconf instantiation and config.status instantiation).
: 
: The real point is that the day Autom4te (the name is (C) Lars) is

I even got a Trademark pending ;)

: born, it will need means to distinguish between Autotest, Autoconf,
: M4sugar and M4sh sources, to load the appropriate frozen files.  Sure
: `configure.in' can be reserved for Autoconf only, but adding support
: for `configure.ac' seems good anyway.  And to tell the truth, I'd like
: to have Autoconf follow this, i.e., rename Autoconf's configure.in as
: configure.ac.  I do understand I'm about to shock a few people for
: breaking a long established tradition, but when tradition collides
: with future, there's no need to think too long (well, I guess someone
: will tell me to think longer anyway :).

I think configure.ac might be a good idea, but I haven't thought that
thoroughly through it, though.

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From oliva@lsd.ic.unicamp.br Mon Dec 18 10:11:15 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1481w0-0005x2-00
	for <autoconf@gnu.org>; Mon, 18 Dec 2000 10:10:41 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBIFAAH08633;
	Mon, 18 Dec 2000 13:10:10 -0200
To: "Lars J. Aas" <larsa@sim.no>
Cc: Akim Demaille <akim@epita.fr>, Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
	<20001218154521.A11176@sim.no>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 18 Dec 2000 13:10:09 -0200
In-Reply-To: "Lars J. Aas"'s message of "Mon, 18 Dec 2000 15:45:21 +0100"
Message-ID: <orhf41kbou.fsf@guarana.lsd.ic.unicamp.br>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 18, 2000, "Lars J. Aas" <larsa@sim.no> wrote:

> On Fri, Dec 15, 2000 at 03:29:34PM +0100, Akim Demaille wrote:
> : The real point is that the day Autom4te (the name is (C) Lars) is

> I even got a Trademark pending ;)

You shall hear from my lawyers soon.  Your use of `4' instead of `a'
is just a technical detail to make it slightly different from the
trademark Automate, that I've held for a while ;-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From larsa@sim.no Mon Dec 18 11:50:28 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1483Ua-0001Ke-00
	for <autoconf@gnu.org>; Mon, 18 Dec 2000 11:50:28 -0500
Received: (qmail 16460 invoked by uid 2000); 18 Dec 2000 16:50:27 -0000
Date: Mon, 18 Dec 2000 17:50:27 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: AC_OBJEXT revisited
Message-ID: <20001218175027.A16342@sim.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

With Autoconf fresh from CVS, two problems occur with the
OBJEXT test.

1) The "test -s conftest.$ac_objext" part of _AC_COMPILE_IFELSE
   fails because $ac_objext is invalid before the objext test is
   performed.  This makes configure go the "cannot compute OBJEXT"
   route which breaks configure.

Removing that test to get going, reveals the next problem:

2) A "conftest.exe" file is left in $builddir from a previous
   configure run, causing $ac_objext to be detected as .exe.
   `ls' doesn't list the files in the same order as they are
   written on the command line, causing the priority list to go
   bonkers, making the .exe file appear before the .obj file.
   Maybe this is a better solution: ?

  m4_define([_AC_COMPILER_OBJEXT],
  [AC_CACHE_CHECK([for object suffix], ac_cv_objext,
  [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
! [for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    case $ac_file in
      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
         break;;
    esac
  done],

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From akim@epita.fr Tue Dec 19 03:53:02 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148IW5-0003kK-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 03:53:01 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id JAA14247
	Tue, 19 Dec 2000 09:32:34 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148IDR-0001sp-00; Tue, 19 Dec 2000 09:33:45 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148IDN-0002hE-00; Tue, 19 Dec 2000 09:33:41 +0100
To: "Lars J. Aas" <larsa@sim.no>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 09:33:40 +0100
In-Reply-To: "Lars J. Aas"'s message of "Mon, 18 Dec 2000 17:50:27 +0100"
Message-ID: <mv4u280izdn.fsf@nostromo.lrde.epita.fr>
Lines: 43
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi Lars!

| With Autoconf fresh from CVS, two problems occur with the
| OBJEXT test.
| 
| 1) The "test -s conftest.$ac_objext" part of _AC_COMPILE_IFELSE
|    fails because $ac_objext is invalid before the objext test is
|    performed.  This makes configure go the "cannot compute OBJEXT"
|    route which breaks configure.
| 
| Removing that test to get going, reveals the next problem:

Aaarg!  Good point, thanks!

| 2) A "conftest.exe" file is left in $builddir from a previous
|    configure run, causing $ac_objext to be detected as .exe.

Arg again, thanks for pointing this out.

|    `ls' doesn't list the files in the same order as they are
|    written on the command line, causing the priority list to go
|    bonkers, making the .exe file appear before the .obj file.

What kind of ls is that???

|    Maybe this is a better solution: ?
| 
|   m4_define([_AC_COMPILER_OBJEXT],
|   [AC_CACHE_CHECK([for object suffix], ac_cv_objext,
|   [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
| ! [for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do

That's smart :)  But really, what ls is this???

|     case $ac_file in
|       *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
|       *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|          break;;
|     esac
|   done],
| 
|   Lars J


From akim@epita.fr Tue Dec 19 05:16:03 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148JoQ-0006p9-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 05:16:03 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id KAA19467
	Tue, 19 Dec 2000 10:53:11 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148JTT-0002BG-00; Tue, 19 Dec 2000 10:54:23 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148JTQ-0001au-00; Tue, 19 Dec 2000 10:54:20 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: configure.ac
References: <mv4lmthvju9.fsf@nostromo.lrde.epita.fr>
	<org0jouyro.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 10:54:19 +0100
In-Reply-To: Alexandre Oliva's message of "16 Dec 2000 14:16:59 -0200"
Message-ID: <mv4k88wivn8.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Dec 15, 2000, Akim Demaille <akim@epita.fr> wrote:
>> Sure `configure.in' can be reserved for Autoconf only, but adding
>> support for `configure.ac' seems good anyway.

Alexandre> I like it.  But I'm not sure whether we should prefer
Alexandre> configure.ac over configure.in or the other way round, in
Alexandre> case both exist.  Or should we just print an error and
Alexandre> abort in this case?

In this situation, I'd favor the future, and warn about the past.
I.e., in this situation, proceed with configure.ac, but warn about the
presence of configure.in.


From corsepiu@faw.uni-ulm.de Tue Dec 19 06:17:37 2000
Received: from www.faw.uni-ulm.de ([134.60.100.4])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148Km1-00033Z-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 06:17:37 -0500
Received: (qmail 11818 invoked from network); 19 Dec 2000 11:17:32 -0000
Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (134.60.101.174)
  by www-intern.faw.uni-ulm.de with SMTP; 19 Dec 2000 11:17:32 -0000
Received: (qmail 8383 invoked by uid 0); 19 Dec 2000 11:17:31 -0000
Received: from dialin37.faw.uni-ulm.de (HELO faw.uni-ulm.de) (corsepiu@172.18.1.37)
  by mailserv.faw.uni-ulm.de with SMTP; 19 Dec 2000 11:17:31 -0000
Message-ID: <3A3F441B.ADA70CD8@faw.uni-ulm.de>
Date: Tue, 19 Dec 2000 12:18:51 +0100
From: Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Reply-To: corsepiu@faw.uni-ulm.de
Organization: Ralf Corsepius
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.18-SMP i686)
X-Accept-Language: German/Germany, de-DE, en
MIME-Version: 1.0
To: Akim Demaille <akim@epita.fr>
CC: "Lars J. Aas" <larsa@sim.no>, Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no> <mv4u280izdn.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille wrote:
> 
> Hi Lars!
> 
> 
> | 2) A "conftest.exe" file is left in $builddir from a previous
> |    configure run, causing $ac_objext to be detected as .exe.
> 
> Arg again, thanks for pointing this out.
> 
> |    `ls' doesn't list the files in the same order as they are
> |    written on the command line, causing the priority list to go
> |    bonkers, making the .exe file appear before the .obj file.
> 
> What kind of ls is that???
> 
# ls
.  ..  conftest  conftest.exe  conftest.obj

# ls conftest.exe conftest conftest*
conftest  conftest  conftest.exe  conftest.exe  conftest.obj

# ls --version
ls (GNU fileutils) 4.0

# uname -s -m -r
Linux 2.2.18-SMP i686

Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de


From akim@epita.fr Tue Dec 19 06:38:58 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148L6f-0005zo-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 06:38:58 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA02782
	Tue, 19 Dec 2000 12:37:56 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148L6r-0002mS-00; Tue, 19 Dec 2000 12:39:09 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148L6o-0003jR-00; Tue, 19 Dec 2000 12:39:06 +0100
To: corsepiu@faw.uni-ulm.de
Cc: "Lars J. Aas" <larsa@sim.no>, Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no>
	<mv4u280izdn.fsf@nostromo.lrde.epita.fr>
	<3A3F441B.ADA70CD8@faw.uni-ulm.de>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 12:39:05 +0100
In-Reply-To: Ralf Corsepius's message of "Tue, 19 Dec 2000 12:18:51 +0100"
Message-ID: <mv466kghc85.fsf@nostromo.lrde.epita.fr>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| > What kind of ls is that???
| > 
| # ls
| .  ..  conftest  conftest.exe  conftest.obj
| 
| # ls conftest.exe conftest conftest*
| conftest  conftest  conftest.exe  conftest.exe  conftest.obj
| 
| # ls --version
| ls (GNU fileutils) 4.0
| 
| # uname -s -m -r
| Linux 2.2.18-SMP i686

You learn everyday :(  Thanks.


From akim@epita.fr Tue Dec 19 06:46:37 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148LE4-0006SQ-00; Tue, 19 Dec 2000 06:46:36 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA03511
	Tue, 19 Dec 2000 12:45:45 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148LEQ-0002p3-00; Tue, 19 Dec 2000 12:46:58 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148LEN-0004Hc-00; Tue, 19 Dec 2000 12:46:55 +0100
To: Raja R Harinath <harinath@cs.umn.edu>
Cc: libtool@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: CVS Autotools
References: <mv41yvdlfim.fsf@nostromo.lrde.epita.fr>
	<d9g0jtbddk.fsf@han.cs.umn.edu>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 12:46:55 +0100
In-Reply-To: Raja R Harinath's message of "12 Dec 2000 14:20:23 -0600"
Message-ID: <mv4wvcwfxao.fsf@nostromo.lrde.epita.fr>
Lines: 23
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Raja" == Raja R Harinath <harinath@cs.umn.edu> writes:

Raja> Hi, Akim Demaille <akim@epita.fr> writes:
>> I'm happy to say that running the test suites of both Libtools and
>> of Automake with CVS Autoconf works fine.

Raja> The following simple configure.in seems to be causing problems,
Raja> with the latest CVS libtool from the multi-language-branch, and
Raja> CVS autoconf.

Raja>   AC_INIT
Raja>   AC_PROG_LIBTOOL
Raja>   AC_PROG_CXX
Raja>   AC_OUTPUT

The way Libtool changes some Autoconf macros is doomed to failure.  We
can't proceed this way.  Something must be decided.  I'd suggest that
we target, after 2.50 and 1.4, some release of Autoconf together with
Libtool, adjusted one for the other?

Autoconf will provide hooks where Libtool needs them, but we can't
continue with Libtool redefining internals.  And I'm very afraid this
is not doable when targeting both 2.13 and 2.50.


From akim@epita.fr Tue Dec 19 06:56:32 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148LNf-0006zw-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 06:56:31 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA04525
	Tue, 19 Dec 2000 12:55:41 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148LO2-0002rj-00; Tue, 19 Dec 2000 12:56:54 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148LO0-0004Hu-00; Tue, 19 Dec 2000 12:56:52 +0100
To: Mirar <mirar@mirar.org>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: default configure arguments
References: <82snnmksqp.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 12:56:52 +0100
In-Reply-To: Mirar's message of "18 Dec 2000 10:01:50 +0100"
Message-ID: <mv4r934fwu3.fsf@nostromo.lrde.epita.fr>
Lines: 25
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| I would like to store default configure arguments in a separate file
| in the source tree (so I can erase the build tree without losing the
| configure arguments).
| 
| How is this done best?
| 
|   AC_INIT...
|   AC_CONFIG_HEADER...
| 
|   if test -e "$srcdir/configure_args"; then
|       ac_arg="`cat "$srcdir/configure_args" | sed "s/'/'\\\\\\\\''/g"`"
|       ac_configure_args="$ac_arg $ac_configure_args"
|       echo "$ac_configure_args"
|   fi
| 
| might work, but is probably very very bad.
| 
| Any suggestions?


~ace % fgrep '> ./configure' config.log                          nostromo 12:56
 > ./configure -C --no-create --no-recursion

?


From mirar@idonex.se Tue Dec 19 07:11:14 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148Lbt-0007Ub-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 07:11:14 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id NAA07966;
	Tue, 19 Dec 2000 13:11:10 +0100 (MET)
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: default configure arguments
References: <82snnmksqp.fsf@megalon.idonex.se> <mv4r934fwu3.fsf@nostromo.lrde.epita.fr>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 19 Dec 2000 13:11:10 +0100
In-Reply-To: Akim Demaille's message of "19 Dec 2000 12:56:52 +0100"
Message-ID: <82zohsk3vl.fsf@megalon.idonex.se>
Lines: 38
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille <akim@epita.fr> writes:

> | I would like to store default configure arguments in a separate file
> | in the source tree (so I can erase the build tree without losing the
> | configure arguments).
> | 
> | How is this done best?
> | 
> |   AC_INIT...
> |   AC_CONFIG_HEADER...
> | 
> |   if test -e "$srcdir/configure_args"; then
> |       ac_arg="`cat "$srcdir/configure_args" | sed "s/'/'\\\\\\\\''/g"`"
> |       ac_configure_args="$ac_arg $ac_configure_args"
> |       echo "$ac_configure_args"
> |   fi
> | 
> | might work, but is probably very very bad.
> | 
> | Any suggestions?
> 
> 
> ~ace % fgrep '> ./configure' config.log                          nostromo 12:56
>  > ./configure -C --no-create --no-recursion

There is no "config.log" if I erased the build tree.

But also, I don't want to use what I used last time, I want to be able
to put default configure arguments in a separate file.

This could be used to have different dists that uses different
configure arguments but the same source, for instance. 

An example is having the default configure have --with-debug as
default, but have the .tar.gz dist have --without-debug as default by
just adding that to a separate file in the source tree.

/Mirar



From larsa@sim.no Tue Dec 19 08:05:34 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148MST-0000vI-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 08:05:33 -0500
Received: (qmail 4100 invoked by uid 2000); 19 Dec 2000 13:05:31 -0000
Date: Tue, 19 Dec 2000 14:05:31 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
Message-ID: <20001219140531.A4024@sim.no>
References: <20001218175027.A16342@sim.no> <mv4u280izdn.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4u280izdn.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Tue, Dec 19, 2000 at 09:33:40AM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, Dec 19, 2000 at 09:33:40AM +0100, Akim Demaille wrote:
: Hi Lars!

Hi Akim,

: |    `ls' doesn't list the files in the same order as they are
: |    written on the command line, causing the priority list to go
: |    bonkers, making the .exe file appear before the .obj file.
: 
: What kind of ls is that???
: 
: |    Maybe this is a better solution: ?
: | 
: |   m4_define([_AC_COMPILER_OBJEXT],
: |   [AC_CACHE_CHECK([for object suffix], ac_cv_objext,
: |   [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
: | ! [for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
: 
: That's smart :)  But really, what ls is this???

GNU ls (4.0) on Linux and Cygwin.

BTW, in the EXEEXT test, you need to separate the ls into three ls-commands, because
`ls conftest.exe conftest' will swap the results as you saw from Ralf's example.

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From larsa@sim.no Tue Dec 19 08:15:27 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148Mc2-0001Q6-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 08:15:26 -0500
Received: (qmail 4294 invoked by uid 2000); 19 Dec 2000 13:15:25 -0000
Date: Tue, 19 Dec 2000 14:15:25 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
Message-ID: <20001219141525.A4286@sim.no>
References: <20001218175027.A16342@sim.no> <mv4u280izdn.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4u280izdn.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Tue, Dec 19, 2000 at 09:33:40AM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, Dec 19, 2000 at 09:33:40AM +0100, Akim Demaille wrote:
: | 2) A "conftest.exe" file is left in $builddir from a previous
: |    configure run, causing $ac_objext to be detected as .exe.

I meant "configure test", not "configure run" here - the .exe file
comes from the same run.

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From earnie_boyd@yahoo.com Tue Dec 19 09:44:38 2000
Received: from web116.mail.yahoo.com ([205.180.60.89] helo=web116.yahoomail.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148O0M-0004V9-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 09:44:38 -0500
Received: (qmail 24488 invoked by uid 60001); 19 Dec 2000 14:44:37 -0000
Message-ID: <20001219144437.24487.qmail@web116.yahoomail.com>
Received: from [150.159.224.8] by web116.yahoomail.com; Tue, 19 Dec 2000 06:44:37 PST
Date: Tue, 19 Dec 2000 06:44:37 -0800 (PST)
From: Earnie Boyd <earnie_boyd@yahoo.com>
Subject: Re: AC_OBJEXT revisited
To: "Lars J. Aas" <larsa@sim.no>, Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--- "Lars J. Aas" <larsa@sim.no> wrote:
> 
> BTW, in the EXEEXT test, you need to separate the ls into three ls-commands,
> because
> `ls conftest.exe conftest' will swap the results as you saw from Ralf's
> example.
> 

How portable is `ls -U conftest.exe conftest'?

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


From larsa@sim.no Tue Dec 19 09:48:11 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148O3n-0004Z6-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 09:48:11 -0500
Received: (qmail 31697 invoked by uid 2000); 19 Dec 2000 14:48:09 -0000
Date: Tue, 19 Dec 2000 15:48:09 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Earnie Boyd <earnie_boyd@yahoo.com>
Cc: Akim Demaille <akim@epita.fr>, Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
Message-ID: <20001219154809.B31653@sim.no>
References: <20001219144437.24487.qmail@web116.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20001219144437.24487.qmail@web116.yahoomail.com>; from earnie_boyd@yahoo.com on Tue, Dec 19, 2000 at 06:44:37AM -0800
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, Dec 19, 2000 at 06:44:37AM -0800, Earnie Boyd wrote:
: --- "Lars J. Aas" <larsa@sim.no> wrote:
: > 
: > BTW, in the EXEEXT test, you need to separate the ls into three ls-commands,
: > because
: > `ls conftest.exe conftest' will swap the results as you saw from Ralf's
: > example.
: > 
: 
: How portable is `ls -U conftest.exe conftest'?

       -U     do not sort; list entries in directory order

"directory order" isn't what we're after - it's command line argument order.

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From akim@epita.fr Tue Dec 19 09:51:27 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148O6u-000505-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 09:51:27 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA20726
	Tue, 19 Dec 2000 15:50:41 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148O7P-0003eD-00; Tue, 19 Dec 2000 15:51:55 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148O7N-0007Pl-00; Tue, 19 Dec 2000 15:51:53 +0100
To: "Lars J. Aas" <larsa@sim.no>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no>
	<mv4u280izdn.fsf@nostromo.lrde.epita.fr> <20001219140531.A4024@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 15:51:52 +0100
In-Reply-To: "Lars J. Aas"'s message of "Tue, 19 Dec 2000 14:05:31 +0100"
Message-ID: <mv4ofy8ea5z.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:

Lars> BTW, in the EXEEXT test, you need to separate the ls into three
Lars> ls-commands, because `ls conftest.exe conftest' will swap the
Lars> results as you saw from Ralf's example.

May I ask you to adjust CVS Autoconf?  You know better than me what's
needed, and you can check it works.  Thanks!


From lhecking@nmrc.ucc.ie Tue Dec 19 09:57:07 2000
Received: from nmrc.ucc.ie ([143.239.64.1])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148OCR-0005VT-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 09:57:07 -0500
Received: from localhost (localhost [127.0.0.1])
	by mailhost.nmrc.ucc.ie (Postfix) with ESMTP id 19284EED5
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 14:57:02 +0000 (GMT)
Date: Tue, 19 Dec 2000 14:56:59 +0000
From: Lars Hecking <lhecking@nmrc.ie>
To: Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
Message-ID: <20001219145659.A26339@nmrc.ie>
Mail-Followup-To: Autoconf List <autoconf@gnu.org>
References: <20001219144437.24487.qmail@web116.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
In-Reply-To: <20001219144437.24487.qmail@web116.yahoomail.com>; from earnie_boyd@yahoo.com on Tue, Dec 19, 2000 at 06:44:37AM -0800
Mail-Copies-To: never
X-Virus-Scanned: by AMaViS at NMRC, Ireland
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> How portable is `ls -U conftest.exe conftest'?

$ /bin/ls -U
/bin/ls: illegal option -- U
$

 This covers Solaris, DU 4.0, IRIX 6.3, HP-UX 10.20. Want more?



From Dautrevaux@microprocess.com Tue Dec 19 10:00:42 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148OFu-0005ab-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 10:00:42 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YK3PB>; Tue, 19 Dec 2000 15:47:07 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E19B@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Earnie Boyd' <earnie_boyd@yahoo.com>, "Lars J. Aas" <larsa@sim.no>, 
	Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: RE: AC_OBJEXT revisited
Date: Tue, 19 Dec 2000 15:47:02 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Tuesday, December 19, 2000 3:45 PM
> To: Lars J. Aas; Akim Demaille
> Cc: Autoconf List
> Subject: Re: AC_OBJEXT revisited
> 
> 
> --- "Lars J. Aas" <larsa@sim.no> wrote:
> > 
> > BTW, in the EXEEXT test, you need to separate the ls into 
> three ls-commands,
> > because
> > `ls conftest.exe conftest' will swap the results as you saw 
> from Ralf's
> > example.
> > 
> 
> How portable is `ls -U conftest.exe conftest'?


Not very portable; at least it doesn't work on AIX-4.2 and hpUX-10.20 ;-( 

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From harinath@cs.umn.edu Tue Dec 19 10:49:06 2000
Received: from mail.cs.umn.edu ([128.101.35.200])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148P0j-0007Vu-00; Tue, 19 Dec 2000 10:49:05 -0500
Received: from han.cs.umn.edu (IDENT:root@han.cs.umn.edu [128.101.35.134])
	by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id JAA04738;
	Tue, 19 Dec 2000 09:48:50 -0600 (CST)
Received: (from harinath@localhost)
	by han.cs.umn.edu (8.9.3/8.9.0) id JAA29440;
	Tue, 19 Dec 2000 09:48:49 -0600
X-Authentication-Warning: han.cs.umn.edu: harinath set sender to harinath@cs.umn.edu using -f
To: Akim Demaille <akim@epita.fr>
Cc: libtool@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: CVS Autotools
References: <mv41yvdlfim.fsf@nostromo.lrde.epita.fr>
	<d9g0jtbddk.fsf@han.cs.umn.edu>
	<mv4wvcwfxao.fsf@nostromo.lrde.epita.fr>
Content-Type: text/plain; charset=us-ascii
From: Raja R Harinath <harinath@cs.umn.edu>
Date: 19 Dec 2000 09:48:49 -0600
In-Reply-To: <mv4wvcwfxao.fsf@nostromo.lrde.epita.fr>
Message-ID: <d9hf402yzi.fsf@han.cs.umn.edu>
Lines: 53
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.93
MIME-Version: 1.0
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille <akim@epita.fr> writes:
> >>>>> "Raja" == Raja R Harinath <harinath@cs.umn.edu> writes:
> Raja> Hi, Akim Demaille <akim@epita.fr> writes:
> >> I'm happy to say that running the test suites of both Libtools and
> >> of Automake with CVS Autoconf works fine.
> 
> Raja> The following simple configure.in seems to be causing problems,
> Raja> with the latest CVS libtool from the multi-language-branch, and
> Raja> CVS autoconf.
> 
> Raja>   AC_INIT
> Raja>   AC_PROG_LIBTOOL
> Raja>   AC_PROG_CXX
> Raja>   AC_OUTPUT
> 
> The way Libtool changes some Autoconf macros is doomed to failure.  We
> can't proceed this way.  Something must be decided.  I'd suggest that
> we target, after 2.50 and 1.4, some release of Autoconf together with
> Libtool, adjusted one for the other?
> 
> Autoconf will provide hooks where Libtool needs them, but we can't
> continue with Libtool redefining internals.  And I'm very afraid this
> is not doable when targeting both 2.13 and 2.50.

OK.  But, this problem isn't due to the redefining.  I can repeat it
with

  AC_INIT
  AC_PROG_CXXCPP
  AC_OUTPUT

I get 

  configure.in:3: error: AC_LANG_ASSERT: current language is not C++:  C
  ../../aclang.m4:988: AC_PROG_CXXCPP is expanded from...
  configure.in:3: the top level

The documentation does not specify that AC_PROG_CXXCPP has to be
invoked as

  AC_LANG_PUSH(C++)
  AC_PROG_CXXCPP
  AC_LANG_POP

which is redundant, and not backward compatible.  I think you should
remove the AC_LANG_ASSERT, and revert to AC_LANG_PUSH/AC_LANG_POP in
the AC_PROG_*CPP macros.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash


From akim@epita.fr Tue Dec 19 11:42:00 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148Ppv-0001Ed-00; Tue, 19 Dec 2000 11:41:59 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id RAA02377
	Tue, 19 Dec 2000 17:41:05 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148PqG-0004Me-00; Tue, 19 Dec 2000 17:42:20 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148PqE-00086I-00; Tue, 19 Dec 2000 17:42:18 +0100
To: Raja R Harinath <harinath@cs.umn.edu>
Cc: libtool@gnu.org, Autoconf List <autoconf@gnu.org>
Subject: Re: CVS Autotools
References: <mv41yvdlfim.fsf@nostromo.lrde.epita.fr>
	<d9g0jtbddk.fsf@han.cs.umn.edu>
	<mv4wvcwfxao.fsf@nostromo.lrde.epita.fr>
	<d9hf402yzi.fsf@han.cs.umn.edu>
From: Akim Demaille <akim@epita.fr>
Date: 19 Dec 2000 17:42:17 +0100
In-Reply-To: Raja R Harinath's message of "19 Dec 2000 09:48:49 -0600"
Message-ID: <mv4d7eocqhi.fsf@nostromo.lrde.epita.fr>
Lines: 8
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Raja" == Raja R Harinath <harinath@cs.umn.edu> writes:

Raja> OK.  But, this problem isn't due to the redefining.  I can
Raja> repeat it with

Raja>   AC_INIT AC_PROG_CXXCPP AC_OUTPUT

Ah ah!  Thanks!


From lhecking@nmrc.ucc.ie Tue Dec 19 12:04:18 2000
Received: from nmrc.ucc.ie ([143.239.64.1])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148QBW-0001dl-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 12:04:18 -0500
Received: from localhost (localhost [127.0.0.1])
	by mailhost.nmrc.ucc.ie (Postfix) with ESMTP id 5BE9BEED5
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 17:04:17 +0000 (GMT)
Date: Tue, 19 Dec 2000 17:04:13 +0000
From: Lars Hecking <lhecking@nmrc.ie>
To: autoconf@gnu.org
Subject: autoconf, sendmail, and pthreads
Message-ID: <20001219170413.A27124@nmrc.ie>
Mail-Followup-To: autoconf@gnu.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
X-Virus-Scanned: by AMaViS at NMRC, Ireland
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

 Hi all,

 Before I start hacking, has anyone written a set of autoconf tests, or
 possibly a macro, to find all files required for sendmail filters that
 use libmilter? This stuff requires threading libraries (pthreads - POSIX?),
 so there may be some hidden nastiness wrt different implementations.

 Can anyone comment on ACX_PTHREAD?

 Thanks!



From rssh@gvinpin.grad.kiev.ua Tue Dec 19 12:16:49 2000
Received: from [195.5.25.54] (helo=gvinpin.grad.kiev.ua)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148QNc-0002Gu-00
	for <autoconf@gnu.org>; Tue, 19 Dec 2000 12:16:48 -0500
Received: from localhost (rssh@localhost)
	by gvinpin.grad.kiev.ua (8.8.7/8.8.7) with ESMTP id TAA09221;
	Tue, 19 Dec 2000 19:16:25 +0200
Date: Tue, 19 Dec 2000 19:16:24 +0200 (EET)
From: <rssh@gvinpin.grad.kiev.ua>
To: Lars Hecking <lhecking@nmrc.ie>
cc: autoconf@gnu.org
Subject: Re: autoconf, sendmail, and pthreads
In-Reply-To: <20001219170413.A27124@nmrc.ie>
Message-ID: <Pine.LNX.4.04.10012191910580.9180-100000@gvinpin.grad.kiev.ua>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, 19 Dec 2000, Lars Hecking wrote:
> 
>  Hi all,
> 
>  Before I start hacking, has anyone written a set of autoconf tests, or
>  possibly a macro, to find all files required for sendmail filters that
>  use libmilter? This stuff requires threading libraries (pthreads - POSIX?),
>  so there may be some hidden nastiness wrt different implementations.
> 
>  Can anyone comment on ACX_PTHREAD?
>

 It does not work good with solaris and freebsd.

I. e. if anybody will touch this macro, than  merging into acx_pthread
stuff from RSSH_CHECK_PTHREADS from corbaconf 
[ http://www.corbaconf.kiev.ua ] would be a good idea.

 
>  Thanks!
> 
> 



From akim@epita.fr Wed Dec 20 08:55:28 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148jiI-0005QW-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 08:55:28 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA25983
	Wed, 20 Dec 2000 14:54:03 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148jiJ-0000Wo-00; Wed, 20 Dec 2000 14:55:27 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148jiH-0005WH-00; Wed, 20 Dec 2000 14:55:25 +0100
To: "Lars J. Aas" <larsa@sim.no>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no>
	<mv4u280izdn.fsf@nostromo.lrde.epita.fr> <20001219140531.A4024@sim.no>
	<mv4ofy8ea5z.fsf@nostromo.lrde.epita.fr>
From: Akim Demaille <akim@epita.fr>
Date: 20 Dec 2000 14:55:25 +0100
In-Reply-To: Akim Demaille's message of "19 Dec 2000 15:51:52 +0100"
Message-ID: <mv48zpburhu.fsf@nostromo.lrde.epita.fr>
Lines: 13
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Akim" == Akim Demaille <akim@epita.fr> writes:

>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:
Lars> BTW, in the EXEEXT test, you need to separate the ls into three
Lars> ls-commands, because `ls conftest.exe conftest' will swap the
Lars> results as you saw from Ralf's example.

Akim> May I ask you to adjust CVS Autoconf?  You know better than me
Akim> what's needed, and you can check it works.  Thanks!

Lars, sorry to insist, but I'm going to leave from Friday till mid
January (two week vacations in New York...), and therefore I'd like to
have 2.49c ``released'' tomorrow or Friday.  Thanks!


From oliva@lsd.ic.unicamp.br Wed Dec 20 10:11:46 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148ku9-0000BO-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 10:11:45 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.0/8.11.0) id eBKFAsb29667;
	Wed, 20 Dec 2000 13:10:54 -0200
To: Akim Demaille <akim@epita.fr>
Cc: "Lars J. Aas" <larsa@sim.no>, Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no>
	<mv4u280izdn.fsf@nostromo.lrde.epita.fr> <20001219140531.A4024@sim.no>
	<mv4ofy8ea5z.fsf@nostromo.lrde.epita.fr>
	<mv48zpburhu.fsf@nostromo.lrde.epita.fr>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 20 Dec 2000 13:10:54 -0200
In-Reply-To: Akim Demaille's message of "20 Dec 2000 14:55:25 +0100"
Message-ID: <orvgsf162p.fsf@guarana.lsd.ic.unicamp.br>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 20, 2000, Akim Demaille <akim@epita.fr> wrote:

> I'm going to leave from Friday till mid January (two week vacations
> in New York...), and therefore I'd like to have 2.49c ``released''
> tomorrow or Friday.  Thanks!

I don't see reason to rush.  We've just release 2.49b, there's the CVS
version, and there won't be that many people in activity during the
holidays, so I see no reason why 2.49c couldn't wait for mid-January
or even February.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From akim@epita.fr Wed Dec 20 10:16:54 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148kz5-0000FM-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 10:16:53 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA04134
	Wed, 20 Dec 2000 16:15:54 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148kzX-0000zo-00; Wed, 20 Dec 2000 16:17:19 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148kzV-0001Xa-00; Wed, 20 Dec 2000 16:17:17 +0100
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: "Lars J. Aas" <larsa@sim.no>, Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
References: <20001218175027.A16342@sim.no>
	<mv4u280izdn.fsf@nostromo.lrde.epita.fr> <20001219140531.A4024@sim.no>
	<mv4ofy8ea5z.fsf@nostromo.lrde.epita.fr>
	<mv48zpburhu.fsf@nostromo.lrde.epita.fr>
	<orvgsf162p.fsf@guarana.lsd.ic.unicamp.br>
From: Akim Demaille <akim@epita.fr>
Date: 20 Dec 2000 16:17:17 +0100
In-Reply-To: Alexandre Oliva's message of "20 Dec 2000 13:10:54 -0200"
Message-ID: <mv43dfjt94y.fsf@nostromo.lrde.epita.fr>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

Alexandre> On Dec 20, 2000, Akim Demaille <akim@epita.fr> wrote:
>> I'm going to leave from Friday till mid January (two week vacations
>> in New York...), and therefore I'd like to have 2.49c ``released''
>> tomorrow or Friday.  Thanks!

Alexandre> I don't see reason to rush.  We've just release 2.49b,
Alexandre> there's the CVS version, and there won't be that many
Alexandre> people in activity during the holidays, so I see no reason
Alexandre> why 2.49c couldn't wait for mid-January or even February.

Because the Cygwin and Fortran issue are close to be finally solved,
so I'd prefer see people test something without those bugs.


From bfriesen@simple.dallas.tx.us Wed Dec 20 10:26:16 2000
Received: from ns.simplesystems.org ([204.252.75.242])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148l8B-0000oH-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 10:26:16 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org [204.252.75.244])
	by ns.simplesystems.org (8.9.3/8.9.3) with ESMTP id JAA24738;
	Wed, 20 Dec 2000 09:24:14 -0600 (CST)
Date: Wed, 20 Dec 2000 09:24:14 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-Sender: bfriesen@scooby.simplesystems.org
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
cc: Akim Demaille <akim@epita.fr>, "Lars J. Aas" <larsa@sim.no>,
        Autoconf List <autoconf@gnu.org>
Subject: Re: AC_OBJEXT revisited
In-Reply-To: <orvgsf162p.fsf@guarana.lsd.ic.unicamp.br>
Message-ID: <Pine.SO4.4.05.10012200923130.19800-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On 20 Dec 2000, Alexandre Oliva wrote:

> On Dec 20, 2000, Akim Demaille <akim@epita.fr> wrote:
> 
> > I'm going to leave from Friday till mid January (two week vacations
> > in New York...), and therefore I'd like to have 2.49c ``released''
> > tomorrow or Friday.  Thanks!
> 
> I don't see reason to rush.  We've just release 2.49b, there's the CVS
> version, and there won't be that many people in activity during the
> holidays, so I see no reason why 2.49c couldn't wait for mid-January
> or even February.

Speaking for myself, my primary period of activity is on the holidays.
A considerable amount of free software is developed in people's "spare
time" and not as a work-related effort.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



From Rebecca.R.Krause@seagate.com Wed Dec 20 11:06:55 2000
Received: from gw1.seagate.com ([204.160.183.12] helo=proxy1.it.stsj.seagate.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148llW-0002Fs-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 11:06:54 -0500
Received:  (from smap) by proxy1.it.stsj.seagate.com  id QAA04793 for <autoconf@gnu.org>; Wed, 20 Dec 2000 16:06:53 GMT
From: Rebecca.R.Krause@seagate.com
Received: from unknown(192.168.109.16) by proxy1.it.stsj.seagate.com via smap (V5.0)
	id xma004122; Wed, 20 Dec 00 16:05:27 GMT
Received:  from sv-gw1.stsv.seagate.com (sv-gw1.stsv.seagate.com [134.204.14.95]) by auth0.it.stsj.seagate.com  with ESMTP id QAA25168 for <autoconf@gnu.org>; Wed, 20 Dec 2000 16:05:27 GMT
Subject: AC_CONFIG_AUX_DIR
To: autoconf@gnu.org
Date: Wed, 20 Dec 2000 10:02:03 -0600
Message-ID: <OF97CDC082.8A164996-ON862569BB.005707AB@stsv.seagate.com>
X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 5.0.5 |September 22, 2000) at
 12/20/2000 08:05:27 AM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello,

I am using Autoconf-2.13 and Automake-1.4.

In my configure.in file I have the following listed:
AC_CONFIG_AUX_DIR(config)

Everything configures and makes OK but when I try to do a make distcheck, I
get the following error:
configure: error:  can not find install-sh or install.sh in config/ or
../config/

If I do a cd into my config directory I can see that it contains three
directories:  install-sh   missing  mkinstalldirs

Any idea on what I have done wrong?

Thanks!
Rebecca



From mirar@idonex.se Wed Dec 20 12:21:03 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148mvG-0005Rx-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 12:21:03 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id SAA08298;
	Wed, 20 Dec 2000 18:20:59 +0100 (MET)
To: Autoconf List <autoconf@gnu.org>
Subject: changequote
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 20 Dec 2000 18:20:59 +0100
In-Reply-To: Lars Hecking's message of "Tue, 19 Dec 2000 14:56:59 +0000"
Message-ID: <82bsu7j9fo.fsf_-_@megalon.idonex.se>
Lines: 26
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I have some problems with a newer autoconf,
I have some code (I'm not the author) that looks like

     changequote({,})dnl
81:  AC_MSG_CHECKING(for JAVA_HOME)

and gives the following disaster:

  /usr/local/bin/autoheader: unexpected EOF while looking for `''
  /usr/local/bin/autoheader: /tmp/ah17363/traces.sh: line 4: syntax error
  Running autoconf in ./modules/Java
  configure.in:81: /usr/bin/m4: Bad regular expression `[\([`""]\)]': Unmatched ) or \)
  [configure.in:81[: error: [[[back quotes and double quotes should not be escaped in: [[$as_me:__oline__: checking for JAVA_HOME]]]]]]
  ][
  ][
  ][
  ][
  ][
  [snip]
  ][
  ]configure.in:81: /usr/bin/m4: ERROR: Recursion limit of 250 exceeded, use -L<N> to change it
  
Does this mean changequote no longer works?
Any other hints?

/Mirar



From akim@epita.fr Wed Dec 20 12:39:34 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148nDB-0006aU-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 12:39:33 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id SAA18466
	Wed, 20 Dec 2000 18:38:46 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 148nDo-0001wg-00; Wed, 20 Dec 2000 18:40:12 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 148nDm-00058a-00; Wed, 20 Dec 2000 18:40:10 +0100
To: Mirar <mirar@mirar.org>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 20 Dec 2000 18:40:10 +0100
In-Reply-To: Mirar's message of "20 Dec 2000 18:20:59 +0100"
Message-ID: <mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr>
Lines: 28
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

| I have some problems with a newer autoconf,
| I have some code (I'm not the author) that looks like
| 
|      changequote({,})dnl
| 81:  AC_MSG_CHECKING(for JAVA_HOME)
| 
| and gives the following disaster:
| 
|   /usr/local/bin/autoheader: unexpected EOF while looking for `''
|   /usr/local/bin/autoheader: /tmp/ah17363/traces.sh: line 4: syntax error
|   Running autoconf in ./modules/Java
|   configure.in:81: /usr/bin/m4: Bad regular expression `[\([`""]\)]': Unmatched ) or \)
|   [configure.in:81[: error: [[[back quotes and double quotes should not be escaped in: [[$as_me:__oline__: checking for JAVA_HOME]]]]]]
|   ][
|   ][
|   ][
|   ][
|   ][
|   [snip]
|   ][
|   ]configure.in:81: /usr/bin/m4: ERROR: Recursion limit of 250 exceeded, use -L<N> to change it
|   
| Does this mean changequote no longer works?

No, it means you cannot expect AC_MSG_CHECKING to keep on working
after having changed the quotes.  Get rid of changequote.  If you need
some help, post the snippet.


From larsa@sim.no Wed Dec 20 12:49:06 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148nMP-0006in-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 12:49:06 -0500
Received: (qmail 13558 invoked by uid 2000); 20 Dec 2000 17:49:03 -0000
Date: Wed, 20 Dec 2000 18:49:03 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: autoconf-patches@gnu.org
Cc: autoconf@gnu.org
Subject: [patch] AC_OBJEXT/AC_EXEEXT
Message-ID: <20001220184903.A13483@sim.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

This is a solution that works for me on Linux/gcc and with the MSVC
wrapper on Cygwin.  I've removed the `conftext$ac_exeext' part because
$ac_exeext defaults to "" and ls on Cygwin reports the virtual file
conftest when the file is named `conftest.exe'.  If there is a point
in including it, please add it between the `conftest.exe' case and the 
`conftest' case.

2000-12-20  Lars J. Aas  <larsa@sim.no>

	* aclang.m4 (_AC_COMPILER_OBJEXT, _AC_COMPILER_EXEEXT_O):
	Make the order of arguments for ls count by splitting the ls
	command into a sequence of ls commands.

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.102
diff -u -r1.102 aclang.m4
--- aclang.m4	2000/12/20 17:31:22	1.102
+++ aclang.m4	2000/12/20 17:40:57
@@ -691,8 +688,7 @@
 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 # work properly (i.e., refer to `conftest.exe'), while it won't with
 # `rm'.
-for ac_file in `ls conftest$ac_exeext conftest.exe conftest conftest.* \
-                  2>/dev/null`; do
+for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
@@ -738,7 +734,7 @@
 [AC_LANG_CONFTEST([AC_LANG_PROGRAM()])
 rm -f conftest.o conftest.obj
 AS_IFELSE([AC_TRY_EVAL(ac_compile)],
-[for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
+[for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   case $ac_file in
     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`


From stevenj@superjdj.mit.edu Wed Dec 20 16:43:38 2000
Received: from superjdj.mit.edu ([18.62.2.90])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148r1M-0007yD-00
	for <autoconf@gnu.org>; Wed, 20 Dec 2000 16:43:37 -0500
Received: from localhost (stevenj@localhost)
	by superjdj.mit.edu (8.9.3/8.9.3) with ESMTP id QAA03848;
	Wed, 20 Dec 2000 16:32:36 -0500
Date: Wed, 20 Dec 2000 16:32:36 -0500 (EST)
From: "Steven G. Johnson" <stevenj@superjdj.mit.edu>
Reply-To: stevenj@alum.mit.edu
To: autoconf@gnu.org
cc: lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
Message-ID: <Pine.LNX.4.10.10012201600490.3653-100000@superjdj.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Tue, 19 Dec 2000, Lars Hecking wrote:
>  Can anyone comment on ACX_PTHREAD?

rssh wrote:
> It does not work good with solaris and freebsd.

When you have a bug report, contacting the author is generally a good
idea...

As a matter of fact, I updated ACX_PTHREAD after feedback a month or three
ago that it had problems on Solaris (the problem was that Solaris has
broken pthread stubs in libc that confused the tests), and it should work
there now.  I haven't heard of any problems on FreeBSD, and in fact I have
specifically tested it on FreeBSD systems in the past.

rssh wrote:
> I. e. if anybody will touch this macro, than  merging into acx_pthread
> stuff from RSSH_CHECK_PTHREADS from corbaconf 
> [ http://www.corbaconf.kiev.ua ] would be a good idea.

Thanks for the link, I've downloaded this code.  It looks like it only
handles three cases: a "-mt" flag, a "-pthreads" flag (but only on
FreeBSD, as it uses system-name lookups), and a "-lposix4" library (it
misses many common cases that are handled by acx_pthread, e.g. -lpthread
or -lpthreads).  However, I should add -mt and -lposix4 tests to my macro,
so this is useful to know.

-mt is for Sun Workshop C, according to the comments in the code.  In my
experience, Solaris has used -pthread or -lpthread; is this for an
older/newer system?  Is -mt equivalent to -pthread, or does it do anything
else?  (Unfortunately, I don't have an account on a Solaris machine at the
moment.)

What system uses -lposix4 for its threads library?  And why do you test
for it by looking for the "nanosleep" function instead of something in the
pthreads API?

(It is easy enough to add tests for -mt and -lposix4 into acx_pthread
without knowing what they are for, but explanatory comments are nice, and 
testers are better.)

Cordially,
Steven G. Johnson



From rssh@gvinpin.grad.kiev.ua Thu Dec 21 05:55:00 2000
Received: from [195.5.25.54] (helo=gvinpin.grad.kiev.ua)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1493Mz-0000tr-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 05:54:45 -0500
Received: from localhost (rssh@localhost)
	by gvinpin.grad.kiev.ua (8.8.7/8.8.7) with ESMTP id MAA17315;
	Thu, 21 Dec 2000 12:54:12 +0200
Date: Thu, 21 Dec 2000 12:54:11 +0200 (EET)
From: <rssh@gvinpin.grad.kiev.ua>
To: stevenj@alum.mit.edu
cc: autoconf@gnu.org, lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
In-Reply-To: <Pine.LNX.4.10.10012201600490.3653-100000@superjdj.mit.edu>
Message-ID: <Pine.LNX.4.04.10012211229080.17207-100000@gvinpin.grad.kiev.ua>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>


On Wed, 20 Dec 2000, Steven G. Johnson wrote:

> On Tue, 19 Dec 2000, Lars Hecking wrote:
> >  Can anyone comment on ACX_PTHREAD?
> 
> rssh wrote:
> > It does not work good with solaris and freebsd.
> 
> When you have a bug report, contacting the author is generally a good
> idea...
> 

Oh, sorry.
 I put bug report to autoconf mail list.

> As a matter of fact, I updated ACX_PTHREAD after feedback a month or three
> ago that it had problems on Solaris (the problem was that Solaris has
> broken pthread stubs in libc that confused the tests), and it should work
> there now.  I haven't heard of any problems on FreeBSD, and in fact I have
> specifically tested it on FreeBSD systems in the past.
> 

 We must add -pthread to complier flags there

> rssh wrote:
> > I. e. if anybody will touch this macro, than  merging into acx_pthread
> > stuff from RSSH_CHECK_PTHREADS from corbaconf 
> > [ http://www.corbaconf.kiev.ua ] would be a good idea.
> 
> Thanks for the link, I've downloaded this code.  It looks like it only
> handles three cases: a "-mt" flag, a "-pthreads" flag (but only on
> FreeBSD, as it uses system-name lookups), and a "-lposix4" library (it
> misses many common cases that are handled by acx_pthread, e.g. -lpthread
> or -lpthreads).  However, I should add -mt and -lposix4 tests to my macro,
> so this is useful to know.
> 
> -mt is for Sun Workshop C, according to the comments in the code.  In my
> experience, Solaris has used -pthread or -lpthread; is this for an
> older/newer system?  Is -mt equivalent to -pthread, or does it do anything
> else?  (Unfortunately, I don't have an account on a Solaris machine at the
> moment.)
> 
> What system uses -lposix4 for its threads library?  And why do you test

 Sun Solaris 2.6+ with Sun Workshop and with gcc is 2 different cases: 

   -pthread -- is for gcc
   -lpthread -- is for Solaris thread 
 library (which is linked automatically by Sun CC with -mt flag)

   -mt - is compiler flag for Sun C/C++, which:
          - tell compiler to generate thread_safe code.
          - define _REENTRAT
          - add libthread.so to default libraries.

> for it by looking for the "nanosleep" function instead of something in the
> pthreads API?
> 

 Becouse pthreads require -lposix4 for nanosleep,
  pthread_* functions are defined in libthread

> (It is easy enough to add tests for -mt and -lposix4 into acx_pthread
> without knowing what they are for, but explanatory comments are nice, and 
> testers are better.)
> 

1. I can test this on Solaris 2.6 with Sun CC 4.2
  

2. I can tell 3 cases:
   1. Solaris and GCC  -- then we must:
      1. define _POSIX_THREAD_SEMANTIC, 
        if gcc was configurated with --enable-threads
      2. additionally add -pthread for gcc-2.7.2 from sunfreesof ;)
        ( I may be wrong, becouse I was never use gcc-2.7.2 on Sun
          Solaris)
   2. Solaris and Sun C++ workshop
      1. add -mt flag to CFLAGS and CXXFLAGS 
      2. define _POSIX_THREAD_SEMANTICS 
  
   add -lpthread -lposix4 for nanosleep on Solaris in all cases .

   3. FreeBSD (I tested 4.0 + ) - add -pthread to compiler flags.

 And I'm not sure, that defining _POSIX_THRAD_SEMANTICS is work
 for autoconf, may be this is must be work of application programmer.


> Cordially,
> Steven G. Johnson
> 
> 



From mirar@idonex.se Thu Dec 21 06:00:42 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1493Sk-000410-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 06:00:42 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id MAA07736;
	Thu, 21 Dec 2000 12:00:39 +0100 (MET)
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se> <mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 21 Dec 2000 12:00:39 +0100
In-Reply-To: Akim Demaille's message of "20 Dec 2000 18:40:10 +0100"
Message-ID: <82r932hwdk.fsf@megalon.idonex.se>
Lines: 43
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> No, it means you cannot expect AC_MSG_CHECKING to keep on working
> after having changed the quotes.  Get rid of changequote.  If you need
> some help, post the snippet.

Since I totally fail to work around, I would really appreciate some help.

This is how the original (before I started to work around) block looks like:

  changequote({,})dnl
  AC_MSG_CHECKING(for JAVA_HOME)
  AC_CACHE_VAL(pike_cv_java_java_home, {{
    if test "x$JAVA_HOME" = x; then
      pike_cv_java_java_home=no
      java_home_guess="`java -verbose 2>&1 | sed -e 's:^\[[^]/]*\(/.*\)/[^/]*\.jar[] ].*$:\1:' -e t -e d | sed -e 's:/[Cc]lasses$::' -e 's:/lib$::' -e 1q`"
      for tmp_java_home in /usr/java /usr/local/java /usr/local/jdk* /usr/java*/jre /usr/java/jdk*/jre /usr/local/java*/jre /usr/local/jdk*/jre /usr/local/jre* "$java_home_guess" "$pike_java_user_lib_directory"/..; do
        if test -d $tmp_java_home/.; then
          if ls "$tmp_java_home/lib/$pike_cv_java_arch/$pike_cv_java_threads_type"/libjvm* >/dev/null 2>&1 || \
	    ls "$tmp_java_home/lib/$pike_cv_java_arch"/libjvm* >/dev/null 2>&1 || \
	    ls "$tmp_java_home/lib/$pike_cv_java_arch"/classic/libjvm* >/dev/null 2>&1 || \
	    ls "$tmp_java_home/bin"/classic/libjvm* >/dev/null 2>&1 || \
	    ls "$tmp_java_home/Libraries"/libjvm* >/dev/null 2>&1; then
	      pike_cv_java_java_home="$tmp_java_home"
	  else
	    :
	  fi
        else
          :
        fi
      done
    else
      if test -d "$JAVA_HOME"/jre/lib; then
        pike_cv_java_java_home="$JAVA_HOME"/jre
      else
        pike_cv_java_java_home="$JAVA_HOME"
      fi
    fi
  }})
  AC_MSG_RESULT($pike_cv_java_java_home)
  changequote([,])dnl

I bet the changequote is needed, since the block contains unbalanced []'s.

/Mirar



From akim@epita.fr Thu Dec 21 06:53:50 2000
Received: from hermes.epita.fr ([163.5.255.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1494I9-0007u1-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 06:53:50 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id MAA15350
	Thu, 21 Dec 2000 12:52:50 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1494Ii-0005MS-00; Thu, 21 Dec 2000 12:54:24 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1494Ie-0002wh-00; Thu, 21 Dec 2000 12:54:20 +0100
To: Mirar <mirar@mirar.org>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se>
	<mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr>
	<82r932hwdk.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 21 Dec 2000 12:54:19 +0100
In-Reply-To: Mirar's message of "21 Dec 2000 12:00:39 +0100"
Message-ID: <mv47l4uq9as.fsf@nostromo.lrde.epita.fr>
Lines: 50
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> No, it means you cannot expect AC_MSG_CHECKING to keep on working
> after having changed the quotes.  Get rid of changequote.  If you need
> some help, post the snippet.

Since I totally fail to work around, I would really appreciate some help.

This is how the original (before I started to work around) block looks like:

      java_home_guess="`java -verbose 2>&1 | sed -e 's:^\[[^]/]*\(/.*\)/[^/]*\.jar[] ].*$:\1:' -e t -e d | sed -e 's:/[Cc]lasses$::' -e 's:/lib$::' -e 1q`"

The problem is with this line which has an unbalanced bracket.  All
you need is to balance it, i.e., I'd propose

AC_MSG_CHECKING(for JAVA_HOME)
AC_CACHE_VAL(pike_cv_java_java_home, [[
  if test "x$JAVA_HOME" = x; then
    pike_cv_java_java_home=no
    # We need balanced brackets: [
    java_home_guess=`java -verbose 2>&1 |
           sed -e 's:^\[[^]/]*\(/.*\)/[^/]*\.jar[] ].*$:\1:' -e t -e d |
           sed -e 's:/[Cc]lasses$::' -e 's:/lib$::' -e 1q`
    for tmp_java_home in /usr/java /usr/local/java /usr/local/jdk* /usr/java*/jre /usr/java/jdk*/jre /usr/local/java*/jre /usr/local/jdk*/jre /usr/local/jre* "$java_home_guess" "$pike_java_user_lib_directory"/..; do
      if test -d $tmp_java_home/.; then
        if ls "$tmp_java_home/lib/$pike_cv_java_arch/$pike_cv_java_threads_type"/libjvm* >/dev/null 2>&1 || \
          ls "$tmp_java_home/lib/$pike_cv_java_arch"/libjvm* >/dev/null 2>&1 || \
          ls "$tmp_java_home/lib/$pike_cv_java_arch"/classic/libjvm* >/dev/null 2>&1 || \
          ls "$tmp_java_home/bin"/classic/libjvm* >/dev/null 2>&1 || \
          ls "$tmp_java_home/Libraries"/libjvm* >/dev/null 2>&1; then
            pike_cv_java_java_home="$tmp_java_home"
        else
          :
        fi
      else
        :
      fi
    done
  else
    if test -d "$JAVA_HOME"/jre/lib; then
      pike_cv_java_java_home="$JAVA_HOME"/jre
    else
      pike_cv_java_java_home="$JAVA_HOME"
    fi
  fi
]])
AC_MSG_RESULT($pike_cv_java_java_home)


(see the comment) which is 2.13 and 2.50, otherwise you can use @:>@
to represent `]' with 2.50.


From larsa@sim.no Thu Dec 21 07:58:56 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1495J9-00028O-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 07:58:55 -0500
Received: (qmail 667 invoked by uid 2000); 21 Dec 2000 12:58:53 -0000
Date: Thu, 21 Dec 2000 13:58:53 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Mirar <mirar@mirar.org>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
Message-ID: <20001221135853.A538@sim.no>
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se> <mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr> <82r932hwdk.fsf@megalon.idonex.se> <mv47l4uq9as.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv47l4uq9as.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Thu, Dec 21, 2000 at 12:54:19PM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, Dec 21, 2000 at 12:54:19PM +0100, Akim Demaille wrote:
: 
: > No, it means you cannot expect AC_MSG_CHECKING to keep on working
: > after having changed the quotes.  Get rid of changequote.  If you need
: > some help, post the snippet.
: 
: Since I totally fail to work around, I would really appreciate some help.

Can't m4sugar's `m4_noquote' macro be used?

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From akim@epita.fr Thu Dec 21 08:05:08 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1495PA-0002DI-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 08:05:08 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id OAA20300
	Thu, 21 Dec 2000 14:04:19 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1495Pu-0005d9-00; Thu, 21 Dec 2000 14:05:54 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1495Pr-0002yl-00; Thu, 21 Dec 2000 14:05:51 +0100
To: "Lars J. Aas" <larsa@sim.no>
Cc: Mirar <mirar@mirar.org>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se>
	<mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr>
	<82r932hwdk.fsf@megalon.idonex.se>
	<mv47l4uq9as.fsf@nostromo.lrde.epita.fr> <20001221135853.A538@sim.no>
From: Akim Demaille <akim@epita.fr>
Date: 21 Dec 2000 14:05:51 +0100
In-Reply-To: "Lars J. Aas"'s message of "Thu, 21 Dec 2000 13:58:53 +0100"
Message-ID: <mv4puilq5zk.fsf@nostromo.lrde.epita.fr>
Lines: 7
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:

Lars> Can't m4sugar's `m4_noquote' macro be used?

Nope, inside the macro we really need the quote, but the argument he
wants to give to AC_CACHE_VAL is not balanced => what would you give
to m4_noquote?  An unbalanced argument, the very same one...


From larsa@sim.no Thu Dec 21 08:06:30 2000
Received: from trh.sim.no ([195.1.220.136] helo=sim.no)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1495QU-0002G1-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 08:06:30 -0500
Received: (qmail 730 invoked by uid 2000); 21 Dec 2000 13:06:28 -0000
Date: Thu, 21 Dec 2000 14:06:28 +0100
From: "Lars J. Aas" <larsa@sim.no>
To: Akim Demaille <akim@epita.fr>
Cc: Mirar <mirar@mirar.org>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
Message-ID: <20001221140628.A720@sim.no>
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se> <mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr> <82r932hwdk.fsf@megalon.idonex.se> <mv47l4uq9as.fsf@nostromo.lrde.epita.fr> <20001221135853.A538@sim.no> <mv4puilq5zk.fsf@nostromo.lrde.epita.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <mv4puilq5zk.fsf@nostromo.lrde.epita.fr>; from akim@epita.fr on Thu, Dec 21, 2000 at 02:05:51PM +0100
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, Dec 21, 2000 at 02:05:51PM +0100, Akim Demaille wrote:
: >>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:
: 
: Lars> Can't m4sugar's `m4_noquote' macro be used?
: 
: Nope, inside the macro we really need the quote, but the argument he
: wants to give to AC_CACHE_VAL is not balanced => what would you give
: to m4_noquote?  An unbalanced argument, the very same one...

Waiter! I'll take another coffee, and another one for my brain here...

  Lars J
-- 
Innovation is one percent inspiration and ninetynine percent perspiration,
and in my case; twice that...  -- Norville Barnes, `The Hudsucker Proxy'


From mirar@idonex.se Thu Dec 21 09:15:25 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1496VA-0004wK-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 09:15:24 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id PAA15980;
	Thu, 21 Dec 2000 15:15:21 +0100 (MET)
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se> <mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr> <82r932hwdk.fsf@megalon.idonex.se> <mv47l4uq9as.fsf@nostromo.lrde.epita.fr>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 21 Dec 2000 15:15:20 +0100
In-Reply-To: Akim Demaille's message of "21 Dec 2000 12:54:19 +0100"
Message-ID: <82itodj1xj.fsf@megalon.idonex.se>
Lines: 5
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>     # We need balanced brackets: [

That solution works, but is darn ugly to have to use.

/Mirar



From akim@epita.fr Thu Dec 21 09:35:01 2000
Received: from hermes.epita.fr ([163.5.255.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1496o9-0005tT-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 09:35:01 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA28469
	Thu, 21 Dec 2000 15:34:16 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1496oy-0006G6-00; Thu, 21 Dec 2000 15:35:52 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1496ov-0003C9-00; Thu, 21 Dec 2000 15:35:49 +0100
To: Mirar <mirar@mirar.org>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se>
	<mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr>
	<82r932hwdk.fsf@megalon.idonex.se>
	<mv47l4uq9as.fsf@nostromo.lrde.epita.fr>
	<82itodj1xj.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 21 Dec 2000 15:35:48 +0100
In-Reply-To: Mirar's message of "21 Dec 2000 15:15:20 +0100"
Message-ID: <mv4d7elq1tn.fsf@nostromo.lrde.epita.fr>
Lines: 6
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mirar" == Mirar  <mirar@mirar.org> writes:

>> # We need balanced brackets: [
Mirar> That solution works, but is darn ugly to have to use.

So use @>:@.


From Dautrevaux@microprocess.com Thu Dec 21 10:00:57 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1497DF-0007C4-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 10:00:57 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKP25>; Thu, 21 Dec 2000 15:47:31 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E1A4@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Mirar' <mirar@mirar.org>, Autoconf List <autoconf@gnu.org>
Subject: RE: changequote
Date: Thu, 21 Dec 2000 15:46:34 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Mirar [mailto:mirar@mirar.org]
> Sent: Wednesday, December 20, 2000 6:21 PM
> To: Autoconf List
> Subject: changequote
> 
> 
> I have some problems with a newer autoconf,
> I have some code (I'm not the author) that looks like
> 
>      changequote({,})dnl
> 81:  AC_MSG_CHECKING(for JAVA_HOME)
> 
> and gives the following disaster:
> 
>   /usr/local/bin/autoheader: unexpected EOF while looking for `''
>   /usr/local/bin/autoheader: /tmp/ah17363/traces.sh: line 4: 
> syntax error
>   Running autoconf in ./modules/Java
>   configure.in:81: /usr/bin/m4: Bad regular expression 
> `[\([`""]\)]': Unmatched ) or \)
>   [configure.in:81[: error: [[[back quotes and double quotes 
> should not be escaped in: [[$as_me:__oline__: checking for 
> JAVA_HOME]]]]]]
>   ][
>   ][
>   ][
>   ][
>   ][
>   [snip]
>   ][
>   ]configure.in:81: /usr/bin/m4: ERROR: Recursion limit of 
> 250 exceeded, use -L<N> to change it
>   
> Does this mean changequote no longer works?
> Any other hints?
> 
> /Mirar
> 
> 

I don't know if this is related, but with a CVS autoconf I've installed
about two months ago, I keep running into the same kind of problem; simply
suppressing the "dnl" at the end of a macro call (be it an AC_XXX one or
simply a changequote) seems to cure the problem.

I don't understand why but for example a lot of 'configure.in's contains
constructs like:

    AC_ARG_WITH(mmalloc,
    [  --with-mmalloc          Use memory mapped malloc package],
    [case "${withval}" in
      yes)  want_mmalloc=true ;;
      no)   want_mmalloc=false;;
      *)    AC_MSG_ERROR(bad value ${withval} for GDB with-mmalloc option)
;;
    esac],[want_mmalloc=false])dnl

With the final "dnl" I get the same "unexpected EOF" error; deleting the
"dnl" (which should only add an unneeded blank line in the configure script:
no big deal) everything works well...
 
I don't know if that still true with current CVS autoconf as I've not
upgraded fro a while (and was now used to deleting all "dnl"s at end of
line) but this may be connected to your problem.

HTH

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From akim@epita.fr Thu Dec 21 10:15:02 2000
Received: from hermes.epita.fr ([163.5.255.10])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1497Qs-0007yX-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 10:15:02 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA02444
	Thu, 21 Dec 2000 16:13:23 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 1497Qo-0006RB-00; Thu, 21 Dec 2000 16:14:58 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 1497Qm-0004vc-00; Thu, 21 Dec 2000 16:14:56 +0100
To: Bernard Dautrevaux <Dautrevaux@microprocess.com>
Cc: "'Mirar'" <mirar@mirar.org>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <17B78BDF120BD411B70100500422FC6309E1A4@IIS000>
From: Akim Demaille <akim@epita.fr>
Date: 21 Dec 2000 16:14:55 +0100
In-Reply-To: Bernard Dautrevaux's message of "Thu, 21 Dec 2000 15:46:34 +0100"
Message-ID: <mv44rzxq00g.fsf@nostromo.lrde.epita.fr>
Lines: 21
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

    AC_ARG_WITH(mmalloc,
    [  --with-mmalloc          Use memory mapped malloc package],
    [case "${withval}" in
      yes)  want_mmalloc=true ;;
      no)   want_mmalloc=false;;
      *)    AC_MSG_ERROR(bad value ${withval} for GDB with-mmalloc option)
;;
    esac],[want_mmalloc=false])dnl

Didn't try to reproduce, but at least be aware that using dnl like
this is a bad idea.  Use `[]dnl' to avoid having the dnl pasted to the
last tokens of the expansion of the previous macro (here
AC_ARG_WITH).  This stupid example highlights what might happen.

% m4
define(foo, bar)
foo()dnl
bardnl
foo()`'dnl toto
bar


From mirar@idonex.se Thu Dec 21 11:15:38 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1498NW-00028x-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 11:15:38 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id RAA24084;
	Thu, 21 Dec 2000 17:15:32 +0100 (MET)
To: Akim Demaille <akim@epita.fr>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se> <mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr> <82r932hwdk.fsf@megalon.idonex.se> <mv47l4uq9as.fsf@nostromo.lrde.epita.fr> <82itodj1xj.fsf@megalon.idonex.se> <mv4d7elq1tn.fsf@nostromo.lrde.epita.fr>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 21 Dec 2000 17:15:31 +0100
In-Reply-To: Akim Demaille's message of "21 Dec 2000 15:35:48 +0100"
Message-ID: <82g0jhiwd8.fsf@megalon.idonex.se>
Lines: 16
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Akim Demaille <akim@epita.fr> writes:

> >>>>> "Mirar" == Mirar  <mirar@mirar.org> writes:
> 
> >> # We need balanced brackets: [
> Mirar> That solution works, but is darn ugly to have to use.
> 
> So use @>:@.

Does that work in older autoconfs? My problem is that it's a big team
of developers with different versions of autoconf (from the oldest
possible to the newest from CVS).

I have a slight feeling I need a metaconfigure soon...

/Mirar



From bfriesen@simple.dallas.tx.us Thu Dec 21 11:42:08 2000
Received: from ns.simplesystems.org ([204.252.75.242])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1498n8-0003Nu-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 11:42:07 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org [204.252.75.244])
	by ns.simplesystems.org (8.9.3/8.9.3) with ESMTP id KAA02918;
	Thu, 21 Dec 2000 10:40:09 -0600 (CST)
Date: Thu, 21 Dec 2000 10:40:10 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-Sender: bfriesen@scooby.simplesystems.org
To: rssh@gvinpin.grad.kiev.ua
cc: stevenj@alum.mit.edu, autoconf@gnu.org, lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
In-Reply-To: <Pine.LNX.4.04.10012211229080.17207-100000@gvinpin.grad.kiev.ua>
Message-ID: <Pine.SO4.4.05.10012211013530.19800-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, 21 Dec 2000 rssh@gvinpin.grad.kiev.ua wrote:
> 
>    -pthread -- is for gcc

Support for -pthread in gcc is non-standard.  It is not supported by
the standard GNU compiler (e.g. 2.95.2) when configured and compiled
from distributed sources.

The portable way to support POSIX threads for SunOS 5.6 and later is
to add -D_REENTRANT to the compilation defines, and -lpthread to the
libraries. Use of -lposix4 is optional, and is not necessarily
required in order to use -lpthread.  See the threads(3t) manual page.

> 
> 1. I can test this on Solaris 2.6 with Sun CC 4.2
>   
> 
> 2. I can tell 3 cases:
>    1. Solaris and GCC  -- then we must:
>       1. define _POSIX_THREAD_SEMANTIC, 
>         if gcc was configurated with --enable-threads

I am not aware of the purpose of this define, and don't see it in the
Solaris 2.6 headers.  Adding -lpthreads to the link line is sufficient
to obtain POSIX thread semantics.

>       2. additionally add -pthread for gcc-2.7.2 from sunfreesof ;)
>         ( I may be wrong, becouse I was never use gcc-2.7.2 on Sun
>           Solaris)
>    2. Solaris and Sun C++ workshop
>       1. add -mt flag to CFLAGS and CXXFLAGS 
>       2. define _POSIX_THREAD_SEMANTICS 

Adding -lpthread is sufficient to obtain POSIX thread semantics.  I
assume that this extra define (which won't work with SunOS 5.6) is
trying to overcome the fact that -mt only adds -lthread (for UI
threads).

It is worth noting that you can successfully (and reliably) use the
Sun Workshop compiler with threads (while not using -mt), by following
the same steps I described above for gcc.  This allows both gcc and
Sun Workshop to be treated the same.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



From Ruslan@shevchenko.kiev.ua Thu Dec 21 12:12:25 2000
Received: from [195.5.37.133] (helo=mail.grad.kiev.ua)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1499GM-0004MH-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 12:12:19 -0500
Received: from Shevchenko.Kiev.UA (bolla.internal.grad.kiev.ua [10.0.1.99])
	by mail.grad.kiev.ua (8.9.3/8.9.3) with ESMTP id TAA12889;
	Thu, 21 Dec 2000 19:25:24 +0200 (EET)
	(envelope-from Ruslan@Shevchenko.Kiev.UA)
Message-ID: <3A42398A.6489BA97@Shevchenko.Kiev.UA>
Date: Thu, 21 Dec 2000 19:10:34 +0200
From: Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>
Reply-To: Ruslan@Shevchenko.Kiev.UA
X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.0-RELEASE i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
CC: rssh@gvinpin.grad.kiev.ua, stevenj@alum.mit.edu, autoconf@gnu.org,
        lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
References: <Pine.SO4.4.05.10012211013530.19800-100000@scooby.simplesystems.org>
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Bob Friesenhahn wrote:
> 
> On Thu, 21 Dec 2000 rssh@gvinpin.grad.kiev.ua wrote:
> >
> >    -pthread -- is for gcc
> 
> Support for -pthread in gcc is non-standard.  It is not supported by
> the standard GNU compiler (e.g. 2.95.2) when configured and compiled
> from distributed sources.
> 

 1. For Sun Solaris we can ommit this, but it is nesessorry for
FreeBSD, becouse gcc 2,95.2 which come with system is patched 
for using of this option.
 




> The portable way to support POSIX threads for SunOS 5.6 and later is
> to add -D_REENTRANT to the compilation defines, and -lpthread to the
> libraries. Use of -lposix4 is optional, and is not necessarily
> required in order to use -lpthread.  See the threads(3t) manual page.
> 
> >
> > 1. I can test this on Solaris 2.6 with Sun CC 4.2
> >
> >
> > 2. I can tell 3 cases:
> >    1. Solaris and GCC  -- then we must:
> >       1. define _POSIX_THREAD_SEMANTIC,
> >         if gcc was configurated with --enable-threads
> 
> I am not aware of the purpose of this define, and don't see it in the
> Solaris 2.6 headers.  Adding -lpthreads to the link line is sufficient
> to obtain POSIX thread semantics.
> 

Ok,

> >    2. Solaris and Sun C++ workshop
> >       1. add -mt flag to CFLAGS and CXXFLAGS
> >       2. define _POSIX_THREAD_SEMANTICS
> 
> Adding -lpthread is sufficient to obtain POSIX thread semantics.  I
> assume that this extra define (which won't work with SunOS 5.6) is
> trying to overcome the fact that -mt only adds -lthread (for UI
> threads).
> 

You are right: it's not needed:
> Solaris applications that define -D_POSIX_PTHREAD_SEMANTICS get the POSIX
> semantics for these routines, but can still use the Solaris threads interface.


> It is worth noting that you can successfully (and reliably) use the
> Sun Workshop compiler with threads (while not using -mt), by following
> the same steps I described above for gcc.  This allows both gcc and
> Sun Workshop to be treated the same.
> 


Below is Sun docs, which fully describe compiling multithreading
programs with Sun CC .

Note, that using -mt for C++ programs is still nesessorry.

----------------------------
Preparing for Compilation

The following items are required to compile and link a multithreaded
program. Except
for the C compiler, all should come with your Solaris 2.x system.

     A standard C compiler

     Include files:

          <thread.h> and <pthread.h> 

          <errno.h>, <limits.h>, <signal.h>, <unistd.h> 

     The regular Solaris linker, ln(1) 

     The Solaris threads library (libthread), the POSIX threads library
(libpthread),
     and possibly the POSIX realtime library (libposix4) for semaphores 

     MT-safe libraries (libc, libm, libw, libintl, libnsl, libsocket,
libmalloc,
     libmapmalloc, and so on) 

Choosing Solaris or POSIX Semantics

Certain functions, including the ones listed below, have different
semantics in the
POSIX 1003.1c standard than in the Solaris 2.4 release, which was based
on an earlier
POSIX draft. Function definitions are chosen at compile time. See the
man Pages(3):
Library Routines for a description of the differences in expected
parameters and
return values.

                   Functions with POSIX/Solaris Semantic Differences
  sigwait(2)
                                                      
  ctime_r(3C)
                                                     asctime_r(3C)
  ftrylockfile(3S) - new
                                                     getlogin_r(3C)
  getgrnam_r(3C)
                                                     getgrgid_r(3C)
  getpwnam_r(3C)
                                                     getpwuid_r(3C)
  readdir_r(3C)
                                                     ttyname_r(3C)


The Solaris fork(2) function duplicates all threads (fork-all behavior),
while the
POSIX fork(2) function duplicates only the calling thread (fork-one
behavior), as does
the Solaris fork1() function.

The handling of an alarm(2) is also different: a Solaris alarm goes to
the thread's
LWP, while a POSIX alarm goes to the whole process (see Per-Thread
Alarms ;).

Including <thread.h> or <pthread.h>

The include file <thread.h>, used with the -lthread library, compiles
code that is
upward compatible with earlier releases of the Solaris system. This
library contains
both interfaces-those with Solaris semantics and those with POSIX
semantics. To call
thr_setconcurrency(3T) with POSIX threads, your program needs to include
<thread.h>.

The include file <pthread.h>, used with the -lpthread library, compiles
code that is
conformant with the multithreading interfaces defined by the POSIX
1003.1c standard.
For complete POSIX compliance, the define flag _POSIX_C_SOURCE should be
set to a
(long) value >= 199506:

 cc [flags] file... -D_POSIX_C_SOURCE=N  (where N  199506L)

You can mix Solaris threads and POSIX threads in the same application,
by including
both <thread.h> and <pthread.h>, and linking with either the -lthread or
-lpthread
library.

In mixed use, Solaris semantics prevail when compiling with -D_REENTRANT
and linking
with -lthread, whereas POSIX semantics prevail when compiling with
-D_POSIX_C_SOURCE
and linking with -lpthread.

Defining _REENTRANT or _POSIX_C_SOURCE

For POSIX behavior, compile applications with the -D_POSIX_C_SOURCE flag
set >=
199506L. For Solaris behavior, compile multithreaded programs with the
-D_REENTRANT
flag. This applies to every module of an application. 

For mixed applications (for example, Solaris threads with POSIX
semantics), compile
with the -D_REENTRANT and -D_POSIX_PTHREAD_SEMANTICS flags.

To compile a single-threaded application, define neither the
-D_REENTRANT nor the
-D_POSIX_C_SOURCE flag. When these flags are not present, all the old
definitions
for errno, stdio, and so on, remain in effect. 

To summarize, POSIX applications that define -D_POSIX_C_SOURCE get the
POSIX 1003.1c
semantics for the routines listed in Functions with POSIX/Solaris
Semantic Differences
. Applications that define only <-D_REENTRANT get the Solaris semantics
for these
routines. Solaris applications that define -D_POSIX_PTHREAD_SEMANTICS
get the POSIX
semantics for these routines, but can still use the Solaris threads
interface.

Linking With libthread or libpthread

For POSIX threads behavior, load the libpthread library. For Solaris
threads behavior,
load the libthread library. Some POSIX programmers might want to link
with -lthread
to preserve the Solaris distinction between fork() and fork1(). All that
-lpthread
really does is to make fork() behave the same way as the Solaris fork1()
call, and
change the behavior of alarm(2).

To use libthread, specify -lthread before -lc on the ld command line, or
last on the
cc command line. 

To use libpthread, specify -lpthread before -lc on the ld command line,
or last on
the cc command line. 

Do not link a nonthreaded program with -lthread or -lpthread. Doing so
establishes
multithreading mechanisms at link time that are initiated at run time.
These slow down
a single-threaded application, waste system resources, and produce
misleading results
when you debug your code.

This diagram summarizes the compile options: 

Compilation Flowchart



In mixed usage, you need to include both thread.h and pthread.h.

All calls to libthread and libpthread are no-ops if the application does
not link
-lthread or -lpthread. The runtime library libc has many predefined
libthread and
libpthread stubs that are null procedures. True procedures are
interposed by libthread
or libpthread when the application links both libc and the thread
library. 

The behavior of the C library is undefined if a program is constructed
with an ld
command line that includes the following incorrect fragment: 

 .o's ... -lc -lthread ... (this is incorrect)
 or
  .o's ... -lc -lpthread ... (this is incorrect)
 
 
 
 


Note  - 

For C++ programs that use threads, use the -mt option, rather than
-lthread,
to compile and link your application. The -mt option links with
libthread and
ensures proper library linking order. Using -lthread might cause your
program
to core dump.



Linking with -lposix4 for POSIX Semaphores

The Solaris semaphore routines, sema_*(3T), are contained in the
libthread library. By
contrast, you link with the -lposix4 library to get the standard
sem_*(3R) POSIX
1003.1c semaphore routines described in Semaphores .;


> Bob
> ======================================
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us
> http://www.simplesystems.org/users/bfriesen


From bfriesen@simple.dallas.tx.us Thu Dec 21 12:28:05 2000
Received: from ns.simplesystems.org ([204.252.75.242])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1499Vc-0005Ty-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 12:28:04 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org [204.252.75.244])
	by ns.simplesystems.org (8.9.3/8.9.3) with ESMTP id LAA05783;
	Thu, 21 Dec 2000 11:26:08 -0600 (CST)
Date: Thu, 21 Dec 2000 11:26:09 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-Sender: bfriesen@scooby.simplesystems.org
To: Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>
cc: rssh@gvinpin.grad.kiev.ua, stevenj@alum.mit.edu, autoconf@gnu.org,
        lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
In-Reply-To: <3A42398A.6489BA97@Shevchenko.Kiev.UA>
Message-ID: <Pine.SO4.4.05.10012211124380.19800-100000@scooby.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, 21 Dec 2000, Ruslan Shevchenko wrote:
> 
> Below is Sun docs, which fully describe compiling multithreading
> programs with Sun CC .
> 
> Note, that using -mt for C++ programs is still nesessorry.

That is interesting since most of my Solaris threads experience is
with using C++, and we didn't use -mt.  Maybe I just guessed right
regarding the library order.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen



From peter_e@gmx.net Thu Dec 21 12:46:50 2000
Received: from mailout02.sul.t-online.com ([194.25.134.17])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 1499nm-0006Cm-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 12:46:50 -0500
Received: from fwd05.sul.t-online.com 
	by mailout02.sul.t-online.com with smtp 
	id 1499nW-0005IE-00; Thu, 21 Dec 2000 18:46:34 +0100
Received: from peter.localdomain (520083510237-0001@[217.80.146.99]) by fmrl05.sul.t-online.com
	with esmtp id 1499lg-1BlmTYC; Thu, 21 Dec 2000 18:44:40 +0100
Date: Thu, 21 Dec 2000 18:51:32 +0100 (CET)
From: Peter Eisentraut <peter_e@gmx.net>
To: Mirar <mirar@mirar.org>
cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
In-Reply-To: <82g0jhiwd8.fsf@megalon.idonex.se>
Message-ID: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Sender: 520083510237-0001@t-dialin.net
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Mirar writes:

> Does that work in older autoconfs? My problem is that it's a big team
> of developers with different versions of autoconf (from the oldest
> possible to the newest from CVS).

Standardize on one (say, 2.13) and check the resulting configure script
into your revision control system.  It'll save a lot of headaches.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



From Dautrevaux@microprocess.com Thu Dec 21 13:06:26 2000
Received: from [194.206.157.151] (helo=iis000.microdata.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149A6k-0006uJ-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 13:06:26 -0500
Received: by IIS000 with Internet Mail Service (5.5.2650.21)
	id <XW5YKPLF>; Thu, 21 Dec 2000 18:53:02 +0100
Message-ID: <17B78BDF120BD411B70100500422FC6309E1A6@IIS000>
From: Bernard Dautrevaux <Dautrevaux@microprocess.com>
To: 'Akim Demaille' <akim@epita.fr>, Bernard Dautrevaux
	 <Dautrevaux@microprocess.com>
Cc: 'Mirar' <mirar@mirar.org>, Autoconf List <autoconf@gnu.org>
Subject: RE: changequote
Date: Thu, 21 Dec 2000 18:52:28 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> -----Original Message-----
> From: Akim Demaille [mailto:akim@epita.fr]
> Sent: Thursday, December 21, 2000 4:15 PM
> To: Bernard Dautrevaux
> Cc: 'Mirar'; Autoconf List
> Subject: Re: changequote
> 
> 
> 
>     AC_ARG_WITH(mmalloc,
>     [  --with-mmalloc          Use memory mapped malloc package],
>     [case "${withval}" in
>       yes)  want_mmalloc=true ;;
>       no)   want_mmalloc=false;;
>       *)    AC_MSG_ERROR(bad value ${withval} for GDB 
> with-mmalloc option)
> ;;
>     esac],[want_mmalloc=false])dnl
> 
> Didn't try to reproduce, but at least be aware that using dnl like
> this is a bad idea.  Use `[]dnl' to avoid having the dnl pasted to the
> last tokens of the expansion of the previous macro (here
> AC_ARG_WITH).  This stupid example highlights what might happen.
> 
> % m4
> define(foo, bar)
> foo()dnl
> bardnl
> foo()`'dnl toto
> bar
> 

Yeah... That's fun :-) It's now a time we no more run into this kind of
stuff with the C preprocessor, so it's kind to know there is still some
places where we can :-)

More seriously, I've had to suppress those dnl's when installing standard
GNU packages (the snippet above is from GDB 5.0 (I got the tarball from
cygwin, but I don't think they add them). This seems to indicate that this
used to work, but no more work now.

Note that inspecting the generated "configure" script it looks like a whole
chunk of code was simply missing in configure, then we get mismatched
constructs (like an unexpected EOF, or an unexpected "esac" or the like...)

Regards,

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 


From hj4hj6@yahoo.com Thu Dec 21 16:09:03 2000
Received: from skbb3.skb2.macam.ac.il ([192.115.171.3] helo=sem_mail.smkb.ac.il)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149CxT-0006pQ-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 16:09:03 -0500
Received: from SvTSkm01R (1Cust34.tnt21.lax3.da.uu.net [63.28.123.34]) by sem_mail.smkb.ac.il with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0)
	id Y4M7RVL2; Thu, 21 Dec 2000 22:27:57 +0200
DATE: 21 Dec 00 12:34:58 PM
FROM: hj4hj6@yahoo.com
Message-ID: <y8O55tIl9bx>
SUBJECT: Improve your stepfamily life
Bcc:
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Does your stepfamily life resemble a soap opera more than it does the Brady
Bunch?

The Stepfamily Association of America invites you to participate in THE
NATIONAL CONFERENCE FOR STEPFAMILIES, Feb. 23-24, 2001, at the New Orleans
Marriott Hotel.

This is an opportunity, designed by knowledgeable professionals, in
stepfamilies themselves, to help you:
* Make your remarriage a success
* Create bonds with your stepchildren
* Help your children adjust emotionally
* Manage money matters unique to your family
* Get more help from legal, financial, psychological advisors
* Overcome stepfather and stepmother stereotypes
* Elicit cooperation from your children's schools
* Bring more harmony into family life

Complete conference details at http://www.edupr.com
REGISTER ONLINE!

Attend, and also enjoy Mardi Gras week in New Orleans!

Special discounts for couples, students, groups.

HOTEL IS BOOKING UP FAST. ACT NOW BEFORE ROOM BLOCK AND
AIRLINE SEATS FILL Special rates for conference attendees. Visit
http://www.edupr.com for discounts. Childcare available through a bonded
local service.

Up to 17 professional development credits available if you are an 			
educator, clinician, financial planner, social worker.

Questions? Email stepfamilyconf@mail.com

If you would like to be removed, please email us back with the word "Remove" in the subject line. We apologize for any inconvenience.



From stevenj@superjdj.mit.edu Thu Dec 21 16:33:45 2000
Received: from superjdj.mit.edu ([18.62.2.90])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149DLN-0008DJ-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 16:33:45 -0500
Received: from localhost (stevenj@localhost)
	by superjdj.mit.edu (8.9.3/8.9.3) with ESMTP id QAA11150;
	Thu, 21 Dec 2000 16:20:59 -0500
Date: Thu, 21 Dec 2000 16:20:58 -0500 (EST)
From: "Steven G. Johnson" <stevenj@superjdj.mit.edu>
Reply-To: stevenj@alum.mit.edu
To: rssh@gvinpin.grad.kiev.ua
cc: autoconf@gnu.org, lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
In-Reply-To: <Pine.LNX.4.04.10012211229080.17207-100000@gvinpin.grad.kiev.ua>
Message-ID: <Pine.LNX.4.10.10012211546330.10982-100000@superjdj.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, 21 Dec 2000 rssh@gvinpin.grad.kiev.ua wrote:
> > there now.  I haven't heard of any problems on FreeBSD, and in fact I have
> > specifically tested it on FreeBSD systems in the past.
> 
>  We must add -pthread to complier flags there

Already done, although the macro prefers kernel threads (-kthread and
-llthread) to the userland -pthreads on that system.  Perhaps you haven't
looked at a recent version of the macro.

>    -mt - is compiler flag for Sun C/C++, which:
>           - tell compiler to generate thread_safe code.
>           - define _REENTRANT
>           - add libthread.so to default libraries.

Thanks, I'll add a check for -mt on Solaris before -lpthread.

Or, wait a minute, are you sure that -mt links in -lthread and not
-lpthread?  The former are SunOS threads, as I recall (thr_*) and not
Posix threads (pthread_*).

Although I suppose it is safe to try -mt in any case....if it doesn't link
in Posix threads, then the link test (which tries to link to
pthread_create & friends) will fail and the macro will move on to
-lpthread.

>  Becouse pthreads require -lposix4 for nanosleep,
>   pthread_* functions are defined in libthread

Is that required for any standard use of *just* the pthreads API?  I know
I've used threads functions on Solaris before without linking that.
(For ACX_PTHREAD, I don't care about users calling nanosleep directly;
this is just a generic POSIX.1b function and not a pthreads function.)

>  And I'm not sure, that defining _POSIX_THRAD_SEMANTICS is work
>  for autoconf, may be this is must be work of application programmer.

Well, I already define -D_THREAD_SAFE on FreeBSD (and AIX), and I think
that this is appropriate for autoconfing (although it is difficult to test
for and I have to resort to looking directly at the system name, sigh...)  
Actually, ACX_PTHREAD already defines -D_REENTRANT on Solaris (although
you tell me that -mt does this too). Are you sure that
-D_POSIX_THREAD_SEMANTICS is required, or is -D_REENTRANT equivalent?  
Can you send me the relevant section of the documentation?

Thanks,
Steven



From stevenj@superjdj.mit.edu Thu Dec 21 16:53:10 2000
Received: from superjdj.mit.edu ([18.62.2.90])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149De9-0000dm-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 16:53:10 -0500
Received: from localhost (stevenj@localhost)
	by superjdj.mit.edu (8.9.3/8.9.3) with ESMTP id QAA11232;
	Thu, 21 Dec 2000 16:42:23 -0500
Date: Thu, 21 Dec 2000 16:42:23 -0500 (EST)
From: "Steven G. Johnson" <stevenj@superjdj.mit.edu>
Reply-To: stevenj@alum.mit.edu
To: autoconf@gnu.org
cc: rssh@gvinpin.grad.kiev.ua, lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
In-Reply-To: <Pine.SO4.4.05.10012211013530.19800-100000@scooby.simplesystems.org>
Message-ID: <Pine.LNX.4.10.10012211630410.10982-100000@superjdj.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Thu, 21 Dec 2000, Bob Friesenhahn wrote:
> Support for -pthread in gcc is non-standard.  It is not supported by
> the standard GNU compiler (e.g. 2.95.2) when configured and compiled
> from distributed sources.

Supposedly, the gcc flag on Solaris is -pthreads (note the plural),
although this is equivalent to linking with -lpthread I believe.  See:

http://gcc.gnu.org/ml/gcc/2000-05/msg01141.html

(There's talk of standardizing on -pthread for gcc 3.0, although I don't
know if anything has actually been done.)

> The portable way to support POSIX threads for SunOS 5.6 and later is
> to add -D_REENTRANT to the compilation defines, and -lpthread to the
> libraries. Use of -lposix4 is optional, and is not necessarily
> required in order to use -lpthread.  See the threads(3t) manual page.

Right...ACX_PTHREAD already did this.  However, the goal for an autoconf
macro is not necessarily to come up with the most portable way of doing
something, but to come up with a list of all possible ways of doing things
on different systems and tests with which to try them.  The trick is
figure out in what order to try them...

(Currently, I try -pthread and -pthreads before linking with -lpthread, as
I figure that compiler flags give the compiler more information and may be
needed in the future, if not now.  cpp defines like -D_REENTRANT are
handled via a separate canononical-host-name check, as I couldn't think of
any more direct and reliable way to check for such things, since they
aren't required for linking and won't give a compiler error if they are
not present.)

Thanks for the info!

Steven



From mirar@idonex.se Thu Dec 21 17:32:23 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149EG7-0002i9-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 17:32:23 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id XAA14487;
	Thu, 21 Dec 2000 23:32:20 +0100 (MET)
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 21 Dec 2000 23:32:19 +0100
In-Reply-To: Peter Eisentraut's message of "Thu, 21 Dec 2000 18:51:32 +0100 (CET)"
Message-ID: <823dfhiex8.fsf@megalon.idonex.se>
Lines: 20
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Peter Eisentraut <peter_e@gmx.net> writes:

> Mirar writes:
> 
> > Does that work in older autoconfs? My problem is that it's a big team
> > of developers with different versions of autoconf (from the oldest
> > possible to the newest from CVS).
> 
> Standardize on one (say, 2.13) and check the resulting configure script
> into your revision control system.  It'll save a lot of headaches.

It looks very much right now that the 2.13 will be the only autoconf
supported for the project.

After looking into things a little bit more today, I can say:

What the heck is with this totally overexaggerated quoting in macros?

/Mirar
(ack, this gives me a headache...)



From oliva@lsd.ic.unicamp.br Thu Dec 21 20:48:29 2000
Received: from guarana.lsd.ic.unicamp.br ([143.106.24.130])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149HJs-0003L3-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 20:48:28 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.1/8.11.1) id eBM1lnT14679;
	Thu, 21 Dec 2000 23:47:49 -0200
To: Rebecca.R.Krause@seagate.com
Cc: autoconf@gnu.org
Subject: Re: AC_CONFIG_AUX_DIR
References: <OF97CDC082.8A164996-ON862569BB.005707AB@stsv.seagate.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 21 Dec 2000 23:47:49 -0200
In-Reply-To: Rebecca.R.Krause@seagate.com's message of "Wed, 20 Dec 2000 10:02:03 -0600"
Message-ID: <oru27xusze.fsf@guarana.lsd.ic.unicamp.br>
Lines: 15
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 20, 2000, Rebecca.R.Krause@seagate.com wrote:

> Everything configures and makes OK but when I try to do a make distcheck, I
> get the following error:
> configure: error:  can not find install-sh or install.sh in config/ or
> ../config/

Did you arrange for these files to be included in the distribution
tarball?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From rganesan@novell.com Thu Dec 21 22:15:28 2000
Received: from sonali.blr.novell.com ([164.99.144.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 149Ig3-0007Ga-00
	for <autoconf@gnu.org>; Thu, 21 Dec 2000 22:15:28 -0500
Received: from rganesan by sonali.blr.novell.com with local (Exim 3.12 #1 (Debian))
	id 149IdC-0000XL-00; Fri, 22 Dec 2000 08:42:30 +0530
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Cc: rssh@gvinpin.grad.kiev.ua,  stevenj@alum.mit.edu,  autoconf@gnu.org,
	  lheckin@nmrc.ie
Subject: Re: autoconf, sendmail, and pthreads
References: <Pine.SO4.4.05.10012211013530.19800-100000@scooby.simplesystems.org>
From: Ganesan Rajagopal <rganesan@myrealbox.com>
Date: 22 Dec 2000 08:42:29 +0530
In-Reply-To: Bob Friesenhahn's message of "Thu, 21 Dec 2000 10:40:10 -0600 (CST)"
Message-ID: <ueavgsd2lpe.fsf@sonali.blr.novell.com>
Lines: 25
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Bob" == Bob Friesenhahn <bfriesen@simple.dallas.tx.us> writes:

> On Thu, 21 Dec 2000 rssh@gvinpin.grad.kiev.ua wrote:
>> 
>> -pthread -- is for gcc

> Support for -pthread in gcc is non-standard.  It is not supported by
> the standard GNU compiler (e.g. 2.95.2) when configured and compiled
> from distributed sources.

> The portable way to support POSIX threads for SunOS 5.6 and later is
> to add -D_REENTRANT to the compilation defines, and -lpthread to the
> libraries. Use of -lposix4 is optional, and is not necessarily
> required in order to use -lpthread.  See the threads(3t) manual page.

This is correct. -lposix4 is needed only if you need sched_yield() or
POSIX 1003.1b semaphores. 

Ganesan


-- 
R. Ganesan (rganesan@novell.com)       | Ph: 91-80-5721856 Ext: 2149
Novell India Development Center.       | #include <std_disclaimer.h>



From akim@epita.fr Fri Dec 22 05:30:32 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149PT5-0001SH-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 05:30:32 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA22848
	Fri, 22 Dec 2000 11:29:44 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 149PU0-0001EP-00; Fri, 22 Dec 2000 11:31:28 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 149PTy-00014D-00; Fri, 22 Dec 2000 11:31:26 +0100
To: Mirar <mirar@mirar.org>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <82bsu7j9fo.fsf_-_@megalon.idonex.se>
	<mv4bsu7rnyd.fsf@nostromo.lrde.epita.fr>
	<82r932hwdk.fsf@megalon.idonex.se>
	<mv47l4uq9as.fsf@nostromo.lrde.epita.fr>
	<82itodj1xj.fsf@megalon.idonex.se>
	<mv4d7elq1tn.fsf@nostromo.lrde.epita.fr>
	<82g0jhiwd8.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 22 Dec 2000 11:31:26 +0100
In-Reply-To: Mirar's message of "21 Dec 2000 17:15:31 +0100"
Message-ID: <mv43dfgn3wh.fsf@nostromo.lrde.epita.fr>
Lines: 12
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mirar" == Mirar  <mirar@mirar.org> writes:

Mirar> Akim Demaille <akim@epita.fr> writes:
>> >>>>> "Mirar" == Mirar <mirar@mirar.org> writes:
>> 
>> >> # We need balanced brackets: [
Mirar> That solution works, but is darn ugly to have to use.
>> So use @>:@.

Mirar> Does that work in older autoconfs?

No.


From akim@epita.fr Fri Dec 22 05:34:50 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149PXG-0001U9-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 05:34:50 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id LAA23193
	Fri, 22 Dec 2000 11:34:07 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 149PYE-0001Ff-00; Fri, 22 Dec 2000 11:35:50 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 149PYC-00014T-00; Fri, 22 Dec 2000 11:35:48 +0100
To: Mirar <mirar@mirar.org>
Cc: Peter Eisentraut <peter_e@gmx.net>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain>
	<823dfhiex8.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 22 Dec 2000 11:35:47 +0100
In-Reply-To: Mirar's message of "21 Dec 2000 23:32:19 +0100"
Message-ID: <mv4y9x8lp4s.fsf@nostromo.lrde.epita.fr>
Lines: 19
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mirar" == Mirar  <mirar@mirar.org> writes:

Mirar> After looking into things a little bit more today, I can say:

Mirar> What the heck is with this totally overexaggerated quoting in
Mirar> macros?

Sorry, that's exactly the converse: what the heck is this idea that
one can write program without paying attention to the programming
language?  M4 is a programming language, it comes with its rules, and
if you disregard them, _you_ are wrong.

Nevertheless, don't be afraid, it's Autoconf itself which is guilty:
it has propagated this stupid idea that by default there should be no
quotation but where needed.  IMNSHO this was stupid and dangerous.

Today the situation has improved, and I do believe things are simpler
for they are homogeneous.  If you want to learn the whys and hows
about M4 quotation, read the CVS Autoconf documentation.


From mirar@idonex.se Fri Dec 22 07:00:39 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149QsJ-0001Gx-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 07:00:39 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id NAA12361;
	Fri, 22 Dec 2000 13:00:32 +0100 (MET)
To: Akim Demaille <akim@epita.fr>
Cc: Peter Eisentraut <peter_e@gmx.net>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain> <823dfhiex8.fsf@megalon.idonex.se> <mv4y9x8lp4s.fsf@nostromo.lrde.epita.fr>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 22 Dec 2000 13:00:32 +0100
In-Reply-To: Akim Demaille's message of "22 Dec 2000 11:35:47 +0100"
Message-ID: <82u27whdi7.fsf@megalon.idonex.se>
Lines: 30
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> Sorry, that's exactly the converse: what the heck is this idea that
> one can write program without paying attention to the programming
> language?  M4 is a programming language, it comes with its rules, and
> if you disregard them, _you_ are wrong.

In this case, from my viewpoint, using quoting in a blackbox macro is
disregarding m4 rules.

> Nevertheless, don't be afraid, it's Autoconf itself which is guilty:
> it has propagated this stupid idea that by default there should be no
> quotation but where needed.  IMNSHO this was stupid and dangerous.

Since m4 environment will not let you change the environment
(changequote) if you need to use quoting in macros, I think this was a
good idea. I think major the design miss was to use m4 in the first
place, since it doesn't work well in API-to-black-box environments.

> Today the situation has improved, and I do believe things are simpler
> for they are homogeneous.  If you want to learn the whys and hows
> about M4 quotation, read the CVS Autoconf documentation.

Yes, but what you will lose is two things: autoconf is no longer m4,
and it's no longer backwards compatible with older autoconfs. May I
suggest that the verison is bumped to autoconf 3 to avoid this
confusion in the future?

I agree that a homogenous environment is probably a very very good
thing, though.

/Mirar



From akim@epita.fr Fri Dec 22 09:13:18 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149Swg-0007kb-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 09:13:18 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id PAA10261
	Fri, 22 Dec 2000 15:12:28 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 149Sxa-0001yO-00; Fri, 22 Dec 2000 15:14:14 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 149SxW-0001F3-00; Fri, 22 Dec 2000 15:14:10 +0100
To: Mirar <mirar@mirar.org>
Cc: Peter Eisentraut <peter_e@gmx.net>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain>
	<823dfhiex8.fsf@megalon.idonex.se>
	<mv4y9x8lp4s.fsf@nostromo.lrde.epita.fr>
	<82u27whdi7.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 22 Dec 2000 15:14:10 +0100
In-Reply-To: Mirar's message of "22 Dec 2000 13:00:32 +0100"
Message-ID: <mv4vgscilvx.fsf@nostromo.lrde.epita.fr>
Lines: 30
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mirar" == Mirar  <mirar@mirar.org> writes:

Mirar> Since m4 environment will not let you change the environment
Mirar> (changequote) if you need to use quoting in macros, I think
Mirar> this was a good idea. I think major the design miss was to use
Mirar> m4 in the first place, since it doesn't work well in
Mirar> API-to-black-box environments.

This is a very common bizarre viewpoint.  I see no relationship with
M4 at all.  You need some escaping mechanism, you just nice a
nanosecond thinking to know that.  Now you have the choice: escapes or
quotes.  Or some no `program in the text body' environment, such as
AutoGen.

I think that since we sort of extend Sh it's quite logic to have a
`program in the text body' approach.  But you are right, the fact that
we are on top of M4 is just an internal detail.

NOw, would you ever criticize C and most languages because you have to
escape double quotes inside strings?

Of course we need quotes.

Mirar> Yes, but what you will lose is two things: autoconf is no
Mirar> longer m4, and it's no longer backwards compatible with older
Mirar> autoconfs. May I suggest that the verison is bumped to autoconf
Mirar> 3 to avoid this confusion in the future?

Yes you may, but it will be 2.50.  The fact that broken configure.in
no longer work is no surprise, and it could have happened in 2.15.


From mirar@idonex.se Fri Dec 22 10:14:27 2000
Received: from godzilla.idonex.se ([194.52.182.190])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149Ttr-0002di-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 10:14:27 -0500
Received: from megalon.idonex.se (mirar@megalon.idonex.se [194.52.182.195])
	by godzilla.idonex.se (8.9.3/8.9.3) with SMTP id QAA21763;
	Fri, 22 Dec 2000 16:14:24 +0100 (MET)
To: Akim Demaille <akim@epita.fr>
cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain> <823dfhiex8.fsf@megalon.idonex.se> <mv4y9x8lp4s.fsf@nostromo.lrde.epita.fr> <82u27whdi7.fsf@megalon.idonex.se> <mv4vgscilvx.fsf@nostromo.lrde.epita.fr>
X-Face: $$CzX_6%|HNr.oB"KTJp(4s)x@#{7`R#=qth)@YQVIW3G_vqiReP):T3il:o9H[)hjgs%QU
 z!Gx^:NL=B(KNK[Y7{`T*hok`uv`}ArWqZ\wF&KHgVYr+d\>oGI?I\60y?,j*xB@gkYk_)YU0]6"S`
 nEjNqCC
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Mirar <mirar@mirar.org>
Date: 22 Dec 2000 16:14:24 +0100
In-Reply-To: Akim Demaille's message of "22 Dec 2000 15:14:10 +0100"
Message-ID: <82ofy4h4j3.fsf@megalon.idonex.se>
Lines: 57
X-Mailer: Gnus v5.6.45/Emacs 19.34
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> Mirar> Since m4 environment will not let you change the environment
> Mirar> (changequote) if you need to use quoting in macros, I think
> Mirar> this was a good idea. I think major the design miss was to use
> Mirar> m4 in the first place, since it doesn't work well in
> Mirar> API-to-black-box environments.
> 
> This is a very common bizarre viewpoint.  I see no relationship with
> M4 at all.  You need some escaping mechanism, you just nice a
> nanosecond thinking to know that.

Yes, and M4's approach doesn't work well if you don't set up your
macro library yourself. What I call black box is when someone else
sets up and maintains something that you only get an API to, something
you only can interface and not assume anything about. Since m4's
quoting system doesn't allow that - you need to demand other things.

In my opinion, m4 only works for files like .Xdefault and other simple
non-presuming text expansion.

> NOw, would you ever criticize C and most languages because you have to
> escape double quotes inside strings?

No, since both CPP macros and C functions work well in a black box
environment - you don't need to know how the function are represented
to add your own quoting.

And I *can* use every possible character inside a string; both the
'\"' and '\042' mechanisms make sure of that. In a raw m4 environment,
I don't have that possibility without changequote.

autoconf *could* have been written using CPP instead of m4, but I'm
not so sure if that's a good alternative since CPP doesn't like to
newlines that much, and newlines is an integrated part of sh.

Personally, I would probably have used neither - writing a new parser
in C doing a suitable macro expansion for sh would have been my option.

Now, I didn't come up with the great idea of autoconf and a huge macro
library, on the other hand. :)

> Mirar> Yes, but what you will lose is two things: autoconf is no
> Mirar> longer m4, and it's no longer backwards compatible with older
> Mirar> autoconfs. May I suggest that the verison is bumped to autoconf
> Mirar> 3 to avoid this confusion in the future?
> 
> Yes you may, but it will be 2.50.  The fact that broken configure.in
> no longer work is no surprise, and it could have happened in 2.15.

Yes, that version should have been named 3.x too, imho.

It's interesting that you call it broken, though. <= 2.13 it was
assumed that you had a true m4 environment; most macros didn't quote,
so you could use changequote, and you could make use of m4 define.

Is that - define - going to be dropped too, btw?

/Mirar



From akim@epita.fr Fri Dec 22 10:26:25 2000
Received: from [163.5.255.10] (helo=hermes.epita.fr)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149U5Q-0003MR-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 10:26:24 -0500
Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2])
	by hermes.epita.fr id QAA16551
	Fri, 22 Dec 2000 16:25:31 GMT
Received: from nostromo.lrde.epita.fr ([10.223.13.52] ident=mail)
	by goa.lrde.epita.fr with esmtp (Exim 3.12 #1 (Debian))
	id 149U6H-0002Ok-00; Fri, 22 Dec 2000 16:27:17 +0100
Received: from akim by nostromo.lrde.epita.fr with local (Exim 3.20 #1 (Debian))
	id 149U6F-0004qJ-00; Fri, 22 Dec 2000 16:27:15 +0100
To: Mirar <mirar@mirar.org>
Cc: Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain>
	<823dfhiex8.fsf@megalon.idonex.se>
	<mv4y9x8lp4s.fsf@nostromo.lrde.epita.fr>
	<82u27whdi7.fsf@megalon.idonex.se>
	<mv4vgscilvx.fsf@nostromo.lrde.epita.fr>
	<82ofy4h4j3.fsf@megalon.idonex.se>
From: Akim Demaille <akim@epita.fr>
Date: 22 Dec 2000 16:27:15 +0100
In-Reply-To: Mirar's message of "22 Dec 2000 16:14:24 +0100"
Message-ID: <mv4bsu4iii4.fsf@nostromo.lrde.epita.fr>
Lines: 61
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

>>>>> "Mirar" == Mirar  <mirar@mirar.org> writes:

Mirar> Yes, and M4's approach doesn't work well if you don't set up
Mirar> your macro library yourself. What I call black box is when
Mirar> someone else sets up and maintains something that you only get
Mirar> an API to, something you only can interface and not assume
Mirar> anything about. Since m4's quoting system doesn't allow that -
Mirar> you need to demand other things.

Yes it does!  *That's* the problem.  Because 2.13 has no rigorous
approach to quotation, yes, I agree with everything you said above.
But that's a default in the implementation.

With CVS Autoconf there is no such surprise: each argument is
evaluated *once* exactly.  With 2.13, you never new how many times.

But WRT to changequote, it's very much like selecting the syntax of
your language.  But once chosen, it should not change, it's like
deciding in middle of a C program that finally you prefer ` ' over {
}.

Just imagine changequote is a option, --changequote.  We chose [ and ]
for Autoconf, period.  If you change the syntax, then of course
program using the `old' syntax no longer work.

Mirar> In my opinion, m4 only works for files like .Xdefault and other
Mirar> simple non-presuming text expansion.

Well, then let's say that up to now we've had quite a piece of luck
having ./configure look like a shell script :)

Mirar> No, since both CPP macros and C functions work well in a black
Mirar> box environment - you don't need to know how the function are
Mirar> represented to add your own quoting.

Again, I agree this is what 2.13 have people believe.  That's a *bug*
in Autoconf 2.13.

Mirar> It's interesting that you call it broken, though. <= 2.13 it
Mirar> was assumed that you had a true m4 environment; most macros
Mirar> didn't quote, so you could use changequote, and you could make
Mirar> use of m4 define.

This has *nothing* to do with a `true m4 environment'.  It is still
there.  It is just that up to now you had the *luck* (I *mean* what I
wrote) that it worked.  But that's an accident.  How can you expect a
program to work if you change the syntax of the language while running
it???

Mirar> Is that - define - going to be dropped too, btw?

I think you're really missing my point.  I apologize for having been
harsh like this, maybe it shadowed what I meant.  But I really believe
most criticisms against Autoconf are based on (i) wrong understanding
of quotation (not as a technique per se, but the fact that you *need*
it), (ii), IMHO, wrong assumption that in some other language it would
have been easier, better, more homogeneous etc.

IMHO there is much to criticize about Autoconf, but on this point it's
easy to criticize more than actually needed.  Please, read the CVS
Autoconf documentation, you'll understand much better what I say.


From m-kasahr@sra.co.jp Fri Dec 22 10:49:27 2000
Received: from sraigw.sra.co.jp ([202.32.10.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 149URi-0004CV-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 10:49:26 -0500
Received: from srapc517.sra.co.jp (srapc517 [133.137.16.37])
	by sraigw.sra.co.jp (8.8.7/3.7W-sraigw) with ESMTP id AAA25065
	for <autoconf@gnu.org>; Sat, 23 Dec 2000 00:49:24 +0900 (JST)
Received: from localhost (localhost [127.0.0.1])
	by srapc517.sra.co.jp (Postfix) with ESMTP id A58E319328
	for <autoconf@gnu.org>; Sat, 23 Dec 2000 00:49:23 +0900 (JST)
To: autoconf@gnu.org
Subject: Typo in autoreconf
X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20001223004923D.m-kasahr@srapc517.sra.co.jp>
Date: Sat, 23 Dec 2000 00:49:23 +0900 (JST)
From: Motoyuki Kasahara <m-kasahr@sra.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 21
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hi,
I found a typo in `autoreconf.sh' ($localddir -> $localdir).

Index: autoreconf.sh
===================================================================
RCS file: /cvs/autoconf/autoreconf.sh,v
retrieving revision 1.59
diff -u -r1.59 autoreconf.sh
--- autoreconf.sh	2000/11/16 10:12:51	1.59
+++ autoreconf.sh	2000/12/22 15:36:44
@@ -312,7 +312,7 @@
 
   # uses_aclocal -- is this package using aclocal?
   uses_aclocal=false
-  if grep 'generated .* by aclocal' $localddir/aclocal.m4 >/dev/null 2>&1 ||
+  if grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 ||
      test -f "$localdir/acinclude.m4"; then
      uses_aclocal=:
   fi
______________________________________________________________________
                                                     Motoyuki Kasahara


From Rebecca.R.Krause@seagate.com Fri Dec 22 11:58:39 2000
Received: from gw1.seagate.com ([204.160.183.12] helo=proxy1.it.stsj.seagate.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 149VWg-0007Gs-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 11:58:38 -0500
Received:  (from smap) by proxy1.it.stsj.seagate.com  id QAA07579 for <autoconf@gnu.org>; Fri, 22 Dec 2000 16:58:37 GMT
From: Rebecca.R.Krause@seagate.com
Received: from unknown(192.168.109.16) by proxy1.it.stsj.seagate.com via smap (V5.0)
	id xma007029; Fri, 22 Dec 00 16:57:08 GMT
Received:  from sv-gw1.stsv.seagate.com (sv-gw1.stsv.seagate.com [134.204.14.95]) by auth0.it.stsj.seagate.com  with ESMTP id QAA04022 for <autoconf@gnu.org>; Fri, 22 Dec 2000 16:57:08 GMT
Subject: AC_CONFIG_AUX_DIR
To: autoconf@gnu.org
Date: Fri, 22 Dec 2000 10:56:43 -0600
Message-ID: <OF393B5EFC.23313884-ON862569BD.005CCEAC@stsv.seagate.com>
X-MIMETrack: Serialize by Router on SV-GW1/Seagate Internet(Release 5.0.5 |September 22, 2000) at
 12/22/2000 08:57:08 AM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 20, 2000, Rebecca.R.Krause@seagate.com wrote:
> Everything configures and makes OK but when I try to do a make distcheck, I
> get the following error:
> configure: error:  can not find install-sh or install.sh in config/ or
> ../config/


Did you arrange for these files to be included in the distribution
tarball?


I am not sure what you mean by that statement.  How would I arrange for the files to be included
in my distribution?




From bkorb@sco.com Fri Dec 22 14:12:41 2000
Received: from sco.sco.com ([132.147.128.9])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 149XcP-000538-00
	for <autoconf@gnu.org>; Fri, 22 Dec 2000 14:12:41 -0500
Received: from tahoe.sco.COM(132.147.152.5), claiming to be "tahoe.pdev.sco.com"
 via SMTP by sco.sco.COM, id smtpdAAAa004Wt; Fri Dec 22 10:54:45 2000
Received: from ellen.pdev.sco.com by tahoe.sco.com id aa04855;
          22 Dec 2000 10:52 PST
Message-ID: <3A43A3B5.D60D6F99@sco.com>
Date: Fri, 22 Dec 2000 10:55:49 -0800
From: Bruce Korb <bkorb@sco.COM>
Reply-To: Bruce Korb <bkorb@cruzio.com>
Organization: The Santa Cruz Operation
X-Mailer: Mozilla 4.7 [en] (X11; U; SCO_SV 3.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: Mirar <mirar@mirar.org>
CC: Akim Demaille <akim@epita.fr>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
References: <Pine.LNX.4.30.0012211849590.775-100000@peter.localdomain> <823dfhiex8.fsf@megalon.idonex.se> <mv4y9x8lp4s.fsf@nostromo.lrde.epita.fr> <82u27whdi7.fsf@megalon.idonex.se> <mv4vgscilvx.fsf@nostromo.lrde.epita.fr> <82ofy4h4j3.fsf@megalon.idonex.s
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Mirar wrote:
> And I *can* use every possible character inside a string; both the
> '\"' and '\042' mechanisms make sure of that. In a raw m4 environment,
> I don't have that possibility without changequote.

> Is that - define - going to be dropped too, btw?

You see :-).  I do think AutoGen the better platform.
You can define all the functions you want and there cannot
possibly be a quoting conflict because the quoting is processed
once only when the macro gets defined.  (The quotes are merely
inside out with respect to autoconf because the macros are
quoted instead of the source text.  A distinction with little
difference.)  At least now there is a possibility of demonstrating
a working improvement because before the quoting was regularized
in autoconf, an automated conversion from autoconf macros to
autogen macros was essentially impossible.  Quote processing
rules were just too obtuse to follow.  Now I can do it.  :-)


From oliva@lsd.ic.unicamp.br Sat Dec 23 22:44:08 2000
Received: from [200.193.161.148] (helo=guarana.lsd.ic.unicamp.br)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14A24s-0006wZ-00
	for <autoconf@gnu.org>; Sat, 23 Dec 2000 22:44:07 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.1/8.11.1) id eBO3hOB12430;
	Sun, 24 Dec 2000 01:43:24 -0200
To: Rebecca.R.Krause@seagate.com
Cc: autoconf@gnu.org
Subject: Re: AC_CONFIG_AUX_DIR
References: <OF393B5EFC.23313884-ON862569BD.005CCEAC@stsv.seagate.com>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 24 Dec 2000 01:43:24 -0200
In-Reply-To: Rebecca.R.Krause@seagate.com's message of "Fri, 22 Dec 2000 10:56:43 -0600"
Message-ID: <orpuiixz4z.fsf@guarana.lsd.ic.unicamp.br>
Lines: 16
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 22, 2000, Rebecca.R.Krause@seagate.com wrote:

> I am not sure what you mean by that statement.  How would I arrange
> for the files to be included in my distribution?

I assume you're using automake (which means we're using the wrong
mailing list).  Automake would automatically include these files in
the distribution, as long as there is a Makefile.am in the directory
containing them.  Is there such a Makefile.am?  Or did you add the
`config' directory to EXTRA_DIST in the top-level Makefile.am?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From proski@gnu.org Mon Dec 25 09:58:49 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 14AZ5N-0005ff-00; Mon, 25 Dec 2000 09:58:49 -0500
Date: Mon, 25 Dec 2000 09:58:16 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Motoyuki Kasahara <m-kasahr@sra.co.jp>
cc:  <autoconf@gnu.org>
Subject: Re: Typo in autoreconf
In-Reply-To: <20001223004923D.m-kasahr@srapc517.sra.co.jp>
Message-ID: <Pine.LNX.4.30.0012250957390.848-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Sat, 23 Dec 2000, Motoyuki Kasahara wrote:

> Hi,
> I found a typo in `autoreconf.sh' ($localddir -> $localdir).

Fix applied.
Thanks!

Regards,
Pavel Roskin



From proski@gnu.org Mon Dec 25 10:11:56 2000
Received: from proski by fencepost.gnu.org with local (Exim 3.16 #1 (Debian))
	id 14AZI4-0005pE-00; Mon, 25 Dec 2000 10:11:56 -0500
Date: Mon, 25 Dec 2000 10:11:23 -0500 (EST)
From: Pavel Roskin <proski@gnu.org>
X-Sender:  <proski@woburn.localdomain>
To: Mirar <mirar@mirar.org>
cc: Akim Demaille <akim@epita.fr>, Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
In-Reply-To: <82ofy4h4j3.fsf@megalon.idonex.se>
Message-ID: <Pine.LNX.4.30.0012251001580.848-100000@woburn.localdomain>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Hello, Mirar!

> > Yes you may, but it will be 2.50.  The fact that broken configure.in
> > no longer work is no surprise, and it could have happened in 2.15.
>
> Yes, that version should have been named 3.x too, imho.

No. We pretend to be fully compatible with correctly written
configure.in's.

> It's interesting that you call it broken, though. <= 2.13 it was
> assumed that you had a true m4 environment; most macros didn't quote,
> so you could use changequote, and you could make use of m4 define.

Last example - in aumix-2.7 "configure --help" doesn't show you
--without-gpm because of underquoting. There are no error messages either
from autoconf-2.13 or from configure itself - the option has disappeared
and nobody noticed.

This is not to defend the CVS version of Autoconf. It would print
something irrelevant on that configure.in. The protection against
underquoting is yet to be developed.

> Is that - define - going to be dropped too, btw?

Not in 2.50. And only for the sources that indicate (by AC_REQUIRE or
something like that) that they want to work in the new namespace.

Regards,
Pavel Roskin



From tom@cj487025-a.reston1.va.home.com Mon Dec 25 10:34:48 2000
Received: from cj487025-a.reston1.va.home.com ([65.1.136.101])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14AZeC-00068h-00; Mon, 25 Dec 2000 10:34:48 -0500
Received: (from tom@localhost)
	by cj487025-a.reston1.va.home.com (8.9.1/8.9.1) id KAA00519;
	Mon, 25 Dec 2000 10:29:48 -0500
Date: Mon, 25 Dec 2000 10:29:48 -0500
From: Thomas Dickey <dickey@herndon4.his.com>
To: Pavel Roskin <proski@gnu.org>
Cc: Mirar <mirar@mirar.org>, Akim Demaille <akim@epita.fr>,
        Autoconf List <autoconf@gnu.org>
Subject: Re: changequote
Message-ID: <20001225102948.A516@home.reston1.va.home.com>
Reply-To: dickey@herndon4.his.com
References: <82ofy4h4j3.fsf@megalon.idonex.se> <Pine.LNX.4.30.0012251001580.848-100000@woburn.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.30.0012251001580.848-100000@woburn.localdomain>; from proski@gnu.org on Mon, Dec 25, 2000 at 10:11:23AM -0500
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Mon, Dec 25, 2000 at 10:11:23AM -0500, Pavel Roskin wrote:
> > Yes, that version should have been named 3.x too, imho.
> 
> No. We pretend to be fully compatible with correctly written
> configure.in's.

well, one reliable test for that is whether one can use the same
configure.in on old/new versions (2.13 and 2.50).

-- 
Thomas E. Dickey <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com


From assar@assaris.sics.se Tue Dec 26 15:25:34 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14B0f8-0001mI-00
	for <autoconf@gnu.org>; Tue, 26 Dec 2000 15:25:34 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id VAA74195;
	Tue, 26 Dec 2000 21:25:34 +0100 (CET)
	(envelope-from assar)
To: Autoconf List <autoconf@gnu.org>
Subject: undefined macro: AF_INET ?
From: Assar Westerlund <assar@sics.se>
Date: 26 Dec 2000 21:25:33 +0100
Message-ID: <5lpuifkk02.fsf@assaris.sics.se>
Lines: 23
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Running current autoconf with this simple configure.in:

----------------------------------------------------------------------
dnl Process this file with autoconf to produce a configure script.
AC_INIT(foo, 0.0)
AC_PROG_CC
AC_MSG_CHECKING([foo])
AC_TRY_LINK([
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>],
[int s = socket(AF_INET, 0, 0);])
AC_OUTPUT(Makefile)
----------------------------------------------------------------------

I get:

configure.in:9: error: undefined macro: AF_INET

which is apperently since A[A-Z]_ is reserved for autoconf.  But
surely this shouldn't be the case in included (and quoted) code?

/assar


From assar@assaris.sics.se Tue Dec 26 16:36:44 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14B1m0-0006Es-00
	for <autoconf@gnu.org>; Tue, 26 Dec 2000 16:36:44 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id WAA75723;
	Tue, 26 Dec 2000 22:36:44 +0100 (CET)
	(envelope-from assar)
To: Autoconf List <autoconf@gnu.org>
Subject: executable suffix 0 ?
From: Assar Westerlund <assar@sics.se>
Date: 26 Dec 2000 22:36:43 +0100
Message-ID: <5lvgs6kgpg.fsf@assaris.sics.se>
Lines: 11
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Running a configure generated from the current autoconf on HP-UX 10.20
gives me an executable prefix '0'.

This seems to be the result of:

expr conftest : [^.]*\(\..*\)

And I do get the same result from another set of expr's that I tried
it with (including GNU expr (GNU sh-utils 2.0)).

/assar


From assar@assaris.sics.se Tue Dec 26 16:50:28 2000
Received: from assaris.sics.se ([193.10.66.234])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14B1zI-0006Rh-00
	for <autoconf@gnu.org>; Tue, 26 Dec 2000 16:50:28 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id WAA75752;
	Tue, 26 Dec 2000 22:50:28 +0100 (CET)
	(envelope-from assar)
To: Autoconf List <autoconf@gnu.org>
Subject: Re: executable suffix 0 ?
References: <5lvgs6kgpg.fsf@assaris.sics.se>
From: Assar Westerlund <assar@sics.se>
Date: 26 Dec 2000 22:50:27 +0100
In-Reply-To: Assar Westerlund's message of "26 Dec 2000 22:36:43 +0100"
Message-ID: <5lofxykg2k.fsf@assaris.sics.se>
Lines: 17
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

--=-=-=

I wrote:
> Running a configure generated from the current autoconf on HP-UX 10.20
> gives me an executable prefix '0'.
> 
> This seems to be the result of:
> 
> expr conftest : [^.]*\(\..*\)
> 
> And I do get the same result from another set of expr's that I tried
> it with (including GNU expr (GNU sh-utils 2.0)).

I did fix it with the appended patch but I'm not clear on if this is
the right way.

/assar

--=-=-=
Content-Disposition: attachment

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.103
diff -u -w -u -w -r1.103 aclang.m4
--- aclang.m4	2000/12/20 18:41:10	1.103
+++ aclang.m4	2000/12/26 21:49:10
@@ -670,6 +667,9 @@
   case $ac_file in
     *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
+       if test "$ac_cv_exeext" = "0"; then
+         ac_cv_exeext=
+       fi
        break;;
   esac
 done],
@@ -695,6 +695,9 @@
   case $ac_file in
     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     *) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
+       if test "$ac_cv_exeext" = "0"; then
+         ac_cv_exeext=
+       fi
        break;;
   esac
 done],

--=-=-=--


From stenn@whimsy.udel.edu Wed Dec 27 22:41:39 2000
Received: from whimsy.udel.edu ([128.4.2.3])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14BTwg-0000yj-00
	for <autoconf@gnu.org>; Wed, 27 Dec 2000 22:41:38 -0500
Received: from localhost by whimsy.udel.edu id aa21281; 27 Dec 2000 22:41 EST
To: autoconf@gnu.org
Subject: OBJEXT and latest CVS autoconf?
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
Date: Wed, 27 Dec 2000 22:41:10 -0500
Message-ID: <21278.977974870@whimsy.udel.edu>
From: Harlan Stenn <stenn@whimsy.udel.edu>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

I'm testing the latest CVS automake and autoconf on the NTP source base.

I have a script that quickly fires off 3 different configure option
builds (in separate directories) on about 6 diferent machines
simultaneously.

This set of builds uses a single NFS-mounted (OK, on one machine it's
local) source tree.

I'm getting messages on several of the machines that say:

 ...
 checking whether the C compiler works... cat: cannot open conftest.c 
 no
 configure: error: C compilermake: *** No targets specifmake: *** No targets specified and no makefile found.  Stop.

This has never happened before.

Anybody have any ideas on how I can help track this down?

Harlan


From Harlan.Stenn@pfcs.com Wed Dec 27 23:50:22 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14BV1C-0003fB-00
	for <autoconf@gnu.org>; Wed, 27 Dec 2000 23:50:22 -0500
Received: (qmail 27225 invoked from network); 28 Dec 2000 04:50:17 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?tzkaslxUSddmM2wkNWr2B3/bs6Fy58V0?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 28 Dec 2000 04:50:17 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP
	id 4B8DDD432; Wed, 27 Dec 2000 23:49:53 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <XAA32473-harlan@pfcs.com>;
	Wed, 27 Dec 2000 23:49:52 -0500 (EST)
To: autoconf@gnu.org, automake@gnu.org
Subject: Ultrix problem
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Wed, 27 Dec 2000 23:49:51 -0500
Message-ID: <32471.977978991@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Not sure if this is an automake or an autoconf problem, and I['m putting out
too many fires tonight.

For a Long Time I've noticed the following output at the beginning of each
"configure" run under Ultrix:

 configure: loading cache /dev/null
 checking build system type... mips-dec-ultrix4.4
 checking host system type... mips-dec-ultrix4.4
 checking target system type... mips-dec-ultrix4.4
 checking for a BSD compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 /bin/sh: <BA>: not found
 WARNING: `:' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `:' program.
 configure: WARNING: `missing' script is too old or missing
 ...

And I just noticed a new problem with configure (the latest CVS version):

 ...
 checking how to run the C preprocessor... # 1 "conftest.c"
 # 1942 "configure"

 # 1 "confdefs.h" 1




 # 1943 "configure" 2

 # 1 "/usr/local/mips-dec-ultrix4.4/include/assert.h" 1 3
 ...
 # 1945 "configure"
 Syntax error
 conftest.err: No such file or directory
 /lib/cpp
 configure: error: C preprocessor "/lib/cpp" fails sanity check

H


From derek.price@openave.com Thu Dec 28 03:16:31 2000
Received: from [216.200.203.33] (helo=mail.openave.com)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14BYEh-0003yN-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 03:16:31 -0500
Received: from openavenue.com ([63.196.30.71]) by mail.openave.com
          (Post.Office MTA v3.5.3 release 223 ID# 0-61060U3000L300S0V35)
          with ESMTP id com; Thu, 28 Dec 2000 00:16:30 -0800
Message-ID: <3A4AF6D8.9F308C8C@openavenue.com>
Date: Thu, 28 Dec 2000 03:16:24 -0500
From: "Derek R. Price" <derek.price@openavenue.com>
Organization: Open Avenue
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Harlan Stenn <Harlan.Stenn@pfcs.com>
CC: autoconf@gnu.org
Subject: Re: Ultrix problem
References: <32471.977978991@localhost>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Harlan Stenn wrote:

>  /bin/sh: <BA>: not found
>  WARNING: `:' is needed, and you do not seem to have it handy on your
>          system.  You might have modified some files without having the
>          proper tools for further handling them.  Check the `README' file,
>          it often tells you about the needed prerequirements for installing
>          this package.  You may also peek at any GNU archive site, in case
>          some other package would contain this missing `:' program.
>  configure: WARNING: `missing' script is too old or missing

Hmmm.... That warning looks to me like it came from the 'missing' script, but I
haven't been here long.  The content of the warning looks like your Ultrix
system can't handle the ':' command.  I didn't realize ':' was passed through
'missing' but maybe configure does something similar.  I didn't think 'missing'
would run until build time.

Anyway, the Bourne shells (/bin/sh programs) I know of treat ':' like a noop.
It's used to confuse some systems that don't like 'if's without 'else's (if
there is no 'else', put one in with a command to do nothing (put in a ':'
(noop))).  Of course, I remember that was Ultrix they were placating, but
I can't find the comments I remember with a cursory code review, so I'm
confused.

Maybe someone ran 'missing' from 'configure' with a ':' (noop) as a command to
see if 'missing' present and working?  'missing' might expect its program to be
in your path, so if it's a shell builtin it might fail?  Just guessing.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@openavenue.com     OpenAvenue ( http://OpenAvenue.com )
--
And what if you track down these men and kill them?  What if you murdered all
of us?  From every corner of Europe hundreds, thousands, would rise to take our
places.

                - Paul Henreid as Victor Laszlo, _Casablanca_





From m-kasahr@sra.co.jp Thu Dec 28 09:53:12 2000
Received: from sraigw.sra.co.jp ([202.32.10.2])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14BeQZ-00070o-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 09:53:11 -0500
Received: from srapc1081.sra.co.jp (srapc1081 [133.137.16.46])
	by sraigw.sra.co.jp (8.8.7/3.7W-sraigw) with ESMTP id XAA17259
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 23:53:09 +0900 (JST)
Received: from localhost (localhost [127.0.0.1])
	by srapc1081.sra.co.jp (Postfix) with ESMTP id D4F006F8D1
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 23:53:08 +0900 (JST)
To: autoconf@gnu.org
Subject: Bug in AC_FUNC_MEMCMP (Re: Typo in autoreconf)
In-Reply-To: <Pine.LNX.4.30.0012250957390.848-100000@woburn.localdomain>
References: <20001223004923D.m-kasahr@srapc517.sra.co.jp>
	<Pine.LNX.4.30.0012250957390.848-100000@woburn.localdomain>
X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20001228235308J.m-kasahr@srapc517.sra.co.jp>
Date: Thu, 28 Dec 2000 23:53:08 +0900 (JST)
From: Motoyuki Kasahara <m-kasahr@sra.co.jp>
X-Dispatcher: imput version 20000228(IM140)
Lines: 36
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

* From: Pavel Roskin <proski@gnu.org>
* Date: Mon, 25 Dec 2000 09:58:16 -0500 (EST)
> > Hi,
> > I found a typo in `autoreconf.sh' ($localddir -> $localdir).
> 
> Fix applied.
> Thanks!

Thank you for applying my patch.

I found another bug in AC_FUNC_MEMCMP. It lacks `,' between 1st
and 2nd argument to AC_TRY_RUN.  On any system, configure cannot
find a working memcmp() because the line

   ac_cv_func_memcmp_working=yes

is a part of the test program!

Index: acfunctions.m4
===================================================================
RCS file: /cvs/autoconf/acfunctions.m4,v
retrieving revision 1.21
diff -u -r1.21 acfunctions.m4
--- acfunctions.m4	2000/11/17 16:45:24	1.21
+++ acfunctions.m4	2000/12/28 14:27:51
@@ -769,7 +769,7 @@
       }
     exit (0);
   }
-}]
+}],
    ac_cv_func_memcmp_working=yes,
    ac_cv_func_memcmp_working=no,
    ac_cv_func_memcmp_working=no)])
______________________________________________________________________
                                                     Motoyuki Kasahara


From assar@assaris.sics.se Thu Dec 28 19:30:05 2000
Received: from h122n4fls32o892.telia.com ([213.64.47.122] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14BnQq-0007Ek-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 19:30:04 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id BAA87150;
	Fri, 29 Dec 2000 01:30:00 +0100 (CET)
	(envelope-from assar)
To: Harlan Stenn <stenn@whimsy.udel.edu>
Cc: autoconf@gnu.org
Subject: Re: OBJEXT and latest CVS autoconf?
References: <21278.977974870@whimsy.udel.edu>
From: Assar Westerlund <assar@sics.se>
Date: 29 Dec 2000 01:29:59 +0100
In-Reply-To: Harlan Stenn's message of "Wed, 27 Dec 2000 22:41:10 -0500"
Message-ID: <5l1yusrrw8.fsf@assaris.sics.se>
Lines: 17
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Harlan Stenn <stenn@whimsy.udel.edu> writes:
>  checking whether the C compiler works... cat: cannot open conftest.c 
>  no
>  configure: error: C compilermake: *** No targets specifmake: *** No targets specified and no makefile found.  Stop.
> 
> This has never happened before.
> 
> Anybody have any ideas on how I can help track this down?

Does this happen when not running three parallel configures?  Does it
happen with srcdir == objdir or with srcdir != objdir?

Apart from that I think you need to run sh -x configure and figure out
what it's trying to do or why it has failed writing to conftest.c when
cat tries to open it.

/assar


From Harlan.Stenn@pfcs.com Thu Dec 28 20:03:10 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14Bnwr-000091-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 20:03:09 -0500
Received: (qmail 8357 invoked from network); 29 Dec 2000 01:03:01 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?suCl5z2d1KiWaWSC6fiEbFa2cWRRySHl?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 29 Dec 2000 01:03:01 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP
	id E79C4D432; Thu, 28 Dec 2000 20:02:46 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <UAA35090-harlan@pfcs.com>;
	Thu, 28 Dec 2000 20:02:46 -0500 (EST)
To: Assar Westerlund <assar@sics.se>
Cc: Harlan Stenn <stenn@whimsy.udel.edu>, autoconf@gnu.org,
	Harlan.Stenn@pfcs.com
Subject: Re: OBJEXT and latest CVS autoconf? 
In-Reply-To: Assar Westerlund's (assar@sics.se) message
	dated Fri, 29 Dec 2000 01:29:59.  <5l1yusrrw8.fsf@assaris.sics.se> 
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Thu, 28 Dec 2000 20:02:46 -0500
Message-ID: <35088.978051766@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> >  checking whether the C compiler works... cat: cannot open conftest.c 
> >  no
> >  configure: error: C compilermake: *** No targets specifmake: *** No target
> s specified and no makefile found.  Stop.
> > 
> > This has never happened before.
> > 
> > Anybody have any ideas on how I can help track this down?

> Does this happen when not running three parallel configures?

Hasn't yet.

> Does it happen with srcdir == objdir or with srcdir != objdir?

In the NTP development environment we always do subdir builds, so srcdir !=
objdir.

> Apart from that I think you need to run sh -x configure and figure out
> what it's trying to do or why it has failed writing to conftest.c when
> cat tries to open it.

I'll add the -x to the script and fire off another round.

Thanks...

H


From assar@assaris.sics.se Thu Dec 28 20:33:29 2000
Received: from h122n4fls32o892.telia.com ([213.64.47.122] helo=assaris.sics.se)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14BoQC-0001kn-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 20:33:29 -0500
Received: (from assar@localhost)
	by assaris.sics.se (8.9.3/8.9.3) id CAA06260;
	Fri, 29 Dec 2000 02:32:35 +0100 (CET)
	(envelope-from assar)
To: Harlan Stenn <Harlan.Stenn@pfcs.com>
Cc: Harlan Stenn <stenn@whimsy.udel.edu>, autoconf@gnu.org
Subject: Re: OBJEXT and latest CVS autoconf?
References: <35088.978051766@localhost>
From: Assar Westerlund <assar@sics.se>
Date: 29 Dec 2000 02:32:31 +0100
In-Reply-To: Harlan Stenn's message of "Thu, 28 Dec 2000 20:02:46 -0500"
Message-ID: <5lpuicm2q8.fsf@assaris.sics.se>
Lines: 11
User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Harlan Stenn <Harlan.Stenn@pfcs.com> writes:
> > Does this happen when not running three parallel configures?
> 
> Hasn't yet.

So it would seem to be a race-condition which would indicate that
configure is creating files in srcdir in error.  Could you track down
when that happens?  I find that a good way of doing that is having the
source on a file system mounted r/o and see what breaks.

/assar


From Harlan.Stenn@pfcs.com Thu Dec 28 22:33:17 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14BqI9-0006Yb-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 22:33:17 -0500
Received: (qmail 10000 invoked from network); 29 Dec 2000 03:33:15 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?hqTwW/tPUMzWYzZgL9aCxh3HoXSzsotR?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 29 Dec 2000 03:33:15 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP id 6B825D432
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 22:33:01 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <WAA35327-harlan@pfcs.com> for <autoconf@gnu.org>;
	Thu, 28 Dec 2000 22:33:00 -0500 (EST)
To: autoconf@gnu.org
Subject: Re: OBJEXT and latest CVS autoconf? 
In-Reply-To: Assar Westerlund's (assar@sics.se) message
	dated Fri, 29 Dec 2000 02:32:31.  <5lpuicm2q8.fsf@assaris.sics.se> 
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Thu, 28 Dec 2000 22:33:00 -0500
Message-ID: <35325.978060780@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

Folks,

It might be a local scripting problem - my current thought is that a strange
local environmental case caused two builds to be directed into the same
build directory.

I'm testing this theory now, and it sure looks like that's the problem...

Let's assume this is the case.  If it isn't, I should be able to track down
the problem and describe it (or fix it).

H



From Harlan.Stenn@pfcs.com Thu Dec 28 23:56:36 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14Bram-0001gF-00
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 23:56:36 -0500
Received: (qmail 10790 invoked from network); 29 Dec 2000 04:56:34 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?qbh+sDq3tgj73PAtylcOGeMP3YPIrxth?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 29 Dec 2000 04:56:34 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP id 2953DD432
	for <autoconf@gnu.org>; Thu, 28 Dec 2000 23:56:30 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <XAA35449-harlan@pfcs.com> for <autoconf@gnu.org>;
	Thu, 28 Dec 2000 23:56:29 -0500 (EST)
To: autoconf@gnu.org
Subject: Re: Ultrix problem 
In-Reply-To: "Derek R. Price"'s (derek.price@openavenue.com) message
	dated Thu, 28 Dec 2000 03:16:24.  <3A4AF6D8.9F308C8C@openavenue.com> 
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Thu, 28 Dec 2000 23:56:29 -0500
Message-ID: <35447.978065789@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

While tracking down the apparent non-problem with OBJEXT I followed
somebody's advice and ran the "configure" step under "sh -x", which produced
the following output on the Ultrix box:

 ...
 MISSING=${SHELL} /pogo/users/stenn/src/ntp.001227/missing
 + eval ${SHELL} /pogo/users/stenn/src/ntp.001227/missing --run : 
 + /bin/sh /pogo/users/stenn/src/ntp.001227/missing --run : 
 /bin/sh: <BA>: not found
 WARNING: `:' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `:' program.
 am_missing_run=
 ...

The <BA> is probably really a single control character, expanded by "less".

H


From oliva@lsd.ic.unicamp.br Fri Dec 29 16:25:09 2000
Received: from [200.193.161.155] (helo=guarana.lsd.ic.unicamp.br)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14C71P-00055L-00; Fri, 29 Dec 2000 16:25:07 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.1/8.11.1) id eBTLO0W24223;
	Fri, 29 Dec 2000 19:24:00 -0200
To: Harlan Stenn <Harlan.Stenn@pfcs.com>
Cc: autoconf@gnu.org, automake@gnu.org
Subject: Re: Ultrix problem
References: <35447.978065789@localhost>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 29 Dec 2000 19:23:54 -0200
In-Reply-To: Harlan Stenn's message of "Thu, 28 Dec 2000 23:56:29 -0500"
Message-ID: <orvgs26hw5.fsf@guarana.lsd.ic.unicamp.br>
Lines: 25
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 29, 2000, Harlan Stenn <Harlan.Stenn@pfcs.com> wrote:

>  + eval ${SHELL} /pogo/users/stenn/src/ntp.001227/missing --run : 

I believe this can't be a problem in autoconf, since the `missing'
script is maintained as part of automake and, indeed, the test to
check whether it supports the `--run' switch relies upon `:'.

Does missing work if, instead of:

  "$@" && exit 0

the missing script did:

  prog=$1
  shift
  "$prog" ${1+"$@"} && exit 0

?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From Harlan.Stenn@pfcs.com Fri Dec 29 17:02:40 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14C7bj-0006UE-00
	for <autoconf@gnu.org>; Fri, 29 Dec 2000 17:02:39 -0500
Received: (qmail 21933 invoked from network); 29 Dec 2000 22:02:37 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?+W6nsv66wjMb/DSp/W6i0uxcpNZoVEih?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 29 Dec 2000 22:02:37 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP
	id 0B730D446; Fri, 29 Dec 2000 17:02:24 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <RAA01980-harlan@pfcs.com>;
	Fri, 29 Dec 2000 17:01:54 -0500 (EST)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Harlan Stenn <Harlan.Stenn@pfcs.com>, autoconf@gnu.org,
	automake@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Ultrix problem 
In-Reply-To: Alexandre Oliva's (oliva@lsd.ic.unicamp.br) message
	dated Fri, 29 Dec 2000 19:23:54.  <orvgs26hw5.fsf@guarana.lsd.ic.unicamp.br> 
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Fri, 29 Dec 2000 17:01:53 -0500
Message-ID: <1978.978127313@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> >  + eval ${SHELL} /pogo/users/stenn/src/ntp.001227/missing --run : 
> 
> I believe this can't be a problem in autoconf, since the `missing'
> script is maintained as part of automake and, indeed, the test to
> check whether it supports the `--run' switch relies upon `:'.
> 
> Does missing work if, instead of:
> 
>   "$@" && exit 0
> 
> the missing script did:
> 
>   prog=$1
>   shift
>   "$prog" ${1+"$@"} && exit 0
> 
> ?

Still doesn't work, and should the second problem be forked into a thread
for autoconf while this one stays on automake?

Here's the current output:

 configure: loading cache /dev/null
 checking build system type... mips-dec-ultrix4.4
 checking host system type... mips-dec-ultrix4.4
 checking target system type... mips-dec-ultrix4.4
 checking for a BSD compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 /bin/sh: \272: not found
 WARNING: `' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `' program.
 configure: WARNING: `missing' script is too old or missing
 ...
 checking whether gcc accepts -g... yes
 checking how to run the C preprocessor... # 1 "conftest.c"
 # 1942 "configure"

 # 1 "confdefs.h" 1




 # 1943 "configure" 2

 # 1 "/usr/local/mips-dec-ultrix4.4/include/assert.h" 1 3
 ...

H


From Harlan.Stenn@pfcs.com Fri Dec 29 17:03:54 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14C7cw-0006YC-00
	for <autoconf@gnu.org>; Fri, 29 Dec 2000 17:03:54 -0500
Received: (qmail 21940 invoked from network); 29 Dec 2000 22:03:53 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?1PvNLsjeqlFv6j0+XXcDxI4Nxu/GF807?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 29 Dec 2000 22:03:53 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP
	id 82965D447; Fri, 29 Dec 2000 17:03:50 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <RAA01990-harlan@pfcs.com>;
	Fri, 29 Dec 2000 17:03:49 -0500 (EST)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: autoconf@gnu.org
Subject: Re: Ultrix problem 
In-Reply-To: Alexandre Oliva's (oliva@lsd.ic.unicamp.br) message
	dated Fri, 29 Dec 2000 19:23:54.  <orvgs26hw5.fsf@guarana.lsd.ic.unicamp.br> 
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Fri, 29 Dec 2000 17:03:49 -0500
Message-ID: <1988.978127429@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On that second problem, a fragment of config.log follows:

 ...
 configure:1867: checking whether gcc accepts -g
 configure:1885: gcc -c -g  conftest.c >&5
 configure:1888: $? = 0
 configure:1899: result: yes
 configure:1924: checking how to run the C preprocessor
 configure:1948: gcc -E  conftest.c >/dev/null 2>conftest.err
 sh: illegal io
 configure:1951: $? = 1
 configure: failed program was:
 ...


From oliva@lsd.ic.unicamp.br Fri Dec 29 21:23:34 2000
Received: from [200.193.161.155] (helo=guarana.lsd.ic.unicamp.br)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 14CBgC-0000Mf-00; Fri, 29 Dec 2000 21:23:33 -0500
Received: (from aoliva@localhost)
	by guarana.lsd.ic.unicamp.br (8.11.1/8.11.1) id eBU2NFV16361;
	Sat, 30 Dec 2000 00:23:15 -0200
To: Harlan Stenn <Harlan.Stenn@pfcs.com>
Cc: autoconf@gnu.org, automake@gnu.org
Subject: Re: Ultrix problem
References: <1978.978127313@localhost>
From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Date: 30 Dec 2000 00:23:15 -0200
In-Reply-To: Harlan Stenn's message of "Fri, 29 Dec 2000 17:01:53 -0500"
Message-ID: <orhf3m6418.fsf@guarana.lsd.ic.unicamp.br>
Lines: 14
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

On Dec 29, 2000, Harlan Stenn <Harlan.Stenn@pfcs.com> wrote:

> Still doesn't work, and should the second problem be forked into a thread
> for autoconf while this one stays on automake?

Yep, the latter is certainly a problem in autoconf.

What if you take the quotes off "$prog" ?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


From Harlan.Stenn@pfcs.com Fri Dec 29 23:33:48 2000
Received: from neptune.innovativeinternet.net ([208.244.165.5])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 14CDiG-0005mL-00
	for <autoconf@gnu.org>; Fri, 29 Dec 2000 23:33:48 -0500
Received: (qmail 25816 invoked from network); 30 Dec 2000 04:33:46 -0000
Received: from harlan.xecu.net (HELO pcpsj.pfcs.com) (?XMuL8wxsmIGp8rVC5lb0vN0VVVTtAfAC?@216.127.150.112)
  by neptune.innovativeinternet.net with SMTP; 30 Dec 2000 04:33:46 -0000
Received: from pcnbs.pfcs.com (pcnbs.pfcs.com [192.52.69.42])
	by pcpsj.pfcs.com (Postfix) with ESMTP
	id 493A7D432; Fri, 29 Dec 2000 23:33:32 -0500 (EST)
Received: from localhost [127.0.0.1] (HELO localhost)
	by pcnbs.pfcs.com (8.9.3/8.8.8) via ESMTP
	id <XAA03052-harlan@pfcs.com>;
	Fri, 29 Dec 2000 23:33:01 -0500 (EST)
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: Harlan Stenn <Harlan.Stenn@pfcs.com>, autoconf@gnu.org,
	automake@gnu.org, Harlan.Stenn@pfcs.com
Subject: Re: Ultrix problem 
In-Reply-To: Alexandre Oliva's (oliva@lsd.ic.unicamp.br) message
	dated Sat, 30 Dec 2000 00:23:15.  <orhf3m6418.fsf@guarana.lsd.ic.unicamp.br> 
X-Face: "csXK}xnnsH\h_ce`T#|pM]tG,6Xu.{3Rb\]&XJgVyTS'w{E+|-(}n<m88'RZQA.<2]zo&R
 I8nHuPumSNjsAN&WGhll?v}1#%)~2%QI~4Vs%IuWb#OmZmKck_1Ee&C\k&vJ}BWx:Bb#Mx8>:c(Cc*
 $cbtusxDP6T)Hr'k&zrwq0.3&~bAI~YJco[r.mE+K|(q]F=ZNXug:s6tyOk{VTqARy0#axm6BWti9C
 d
User-Agent: EMH/1.10.0 SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui)  XEmacs/21.1 (patch 10) (Capitol Reef) (i386-unknown-freebsd3.4)
MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu")
Content-Type: text/plain; charset=US-ASCII
Date: Fri, 29 Dec 2000 23:33:01 -0500
Message-ID: <3050.978150781@localhost>
From: Harlan Stenn <Harlan.Stenn@pfcs.com>
Sender: autoconf-admin@gnu.org
Errors-To: autoconf-admin@gnu.org
X-BeenThere: autoconf@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:autoconf-request@gnu.org?subject=help>
List-Post: <mailto:autoconf@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=subscribe>
List-Id: Discussion list for the autoconf build system <autoconf.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/autoconf>,
	<mailto:autoconf-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/autoconf/>

> What if you take the quotes off "$prog" ?

That seems to be the ticket!

I'm running the new script on a number of platforms just to be sure.

H


