[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_OBJEXT revisited
From: |
Akim Demaille |
Subject: |
Re: AC_OBJEXT revisited |
Date: |
19 Dec 2000 09:33:40 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
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
- AC_OBJEXT revisited, Lars J. Aas, 2000/12/18
- Re: AC_OBJEXT revisited,
Akim Demaille <=
- Re: AC_OBJEXT revisited, Ralf Corsepius, 2000/12/19
- Re: AC_OBJEXT revisited, Lars J. Aas, 2000/12/19
- 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