[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_OBJEXT revisited
From: |
Lars J. Aas |
Subject: |
Re: AC_OBJEXT revisited |
Date: |
Tue, 19 Dec 2000 14:05:31 +0100 |
User-agent: |
Mutt/1.2.5i |
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'
- AC_OBJEXT revisited, Lars J. Aas, 2000/12/18
- Re: AC_OBJEXT revisited, Akim Demaille, 2000/12/19
- Re: AC_OBJEXT revisited, Ralf Corsepius, 2000/12/19
- Re: AC_OBJEXT revisited,
Lars J. Aas <=
- Re: AC_OBJEXT revisited, Akim Demaille, 2000/12/19
- Re: AC_OBJEXT revisited, Akim Demaille, 2000/12/20
- Re: AC_OBJEXT revisited, Alexandre Oliva, 2000/12/20
- Re: AC_OBJEXT revisited, Akim Demaille, 2000/12/20
- Re: AC_OBJEXT revisited, Bob Friesenhahn, 2000/12/20
Re: AC_OBJEXT revisited, Lars J. Aas, 2000/12/19