autoconf and exeext behavior

Keith Moore keithmo@exmsft.com
Fri Dec 16 23:12:00 GMT 2005


I've been tinkering with wget lately, and I've
noticed that "make realclean" fails to delete
src/wget.exe. I've tracked it down to a possible
problem in configure.in. Lines 137-145 of the
current version are:

dnl
dnl In case of {cyg,gnu}win32.  Should be a _target_ test.
dnl Might also be erelevant for DJGPP.
dnl
case "$host_os" in
  *win32) exeext='.exe';;
  *) exeext='';;
esac
AC_SUBST(exeext)

The problem disappears when I change the first case
to:

  *win32 | cygwin) exeext='.exe';;

I'm no autoconf whiz (nor do I play one on TV) but
this seems rather peculiar. The autoconf-generated
boilerplate goes through a great deal of trouble
to determine any necessary executable extension,
then wget's configure.in basically drops it on the
floor and looks at the host_os variable.

That said, another possible solution would be to
rip out the lines mentioned above, and replace all
occurances of "exeext" with "EXEEXT" (the variable
set by the autoconf-generated magic).

I've tried this, and it does indeed work under
Cygwin. I don't know about other environments
(and I have no way to test those).

Any ideas or suggestions?

I'll try to get the "most correct" solution pushed
upstream.


Thanks,
KM

P.S. I'm running Cygwin 1.5.18 with everything
current as of 2005/12/16 on XP Pro SP2.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list