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'