i've played a little with this stuff and have seen, that at least for cygwin
there is an easier way to deal with this. Create a simple link from 'foo' to
'foo.exe' and Makes need are fullfilled.
See ltmain.sh:
<snip>
# The program doesn't exist.
\$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
\$echo \"This script is just a wrapper for \$program.\" 1>&2
echo \"See the $PACKAGE documentation for more information.\" 1>&2
exit 1
fi
fi\
"
chmod +x $output
+ ln -s $output $output$exeext
fi
The single added line fix this.
It sure would have been nice if you'd mentioned this idea at some point
over the past two months that I've been working on this, and CC:ing the
cygwin list on the progress or lack of it. (I also tried this at one
point, and ran into problems; I don't recall what they were. This was
so easy to do that it didn't take long to implement or test -- and it
failed, so I dropped it and it left very little impression on me about
WHY it failed. Sorry.)