[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_OBJEXT again
From: |
Akim Demaille |
Subject: |
Re: AC_OBJEXT again |
Date: |
30 Nov 2000 09:57:04 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
| On Wed, Nov 29, 2000 at 07:59:57PM +0100, Akim Demaille wrote:
| : Err, I think I should stop working on Autoconf right now:
| :
| : | for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
| : | case $ac_file in
| : | *.o | *.obj ) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`;;
| :
| : I really wrote thisline to catch .o and .obj before any other
| : extension... :( Good night people.
| :
| : | *.$ac_ext | *.tds ) ;;
| : | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`;;
| : | esac
| : | done
|
| I would feel better if you escaped the loop when you found *.o or
| *.obj, so no other yet unknown extension later in the alphabet will
| override it...
|
| How about doing something along the same lines for exeext:
|
| for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
| case $ac_file in
| conftest ) ac_cv_exeext=;;
| *.$ac_cv_object ... ) ;;
| *) ac_cv_exeext=`expr "$ac_file" : '.*\.\(.*\)'`;;
| esac
| done
I had not realized it was the same technique which was used there. As
a matter of fact I don't understand your comment: the _AC_OBJEXT I
installed seems to be very similar to _AC_EXEEXT. What difference are
you referring to? And indeed a `break' seems appropriate in both.
| The problem is, we would probably have to change the ls line for each
| new exeext anyways, as the address@hidden@ environment would try to magically
| hide it and you would hit with plain `conftest'...
I'm not sure I understand what you mean. Is it wrong to ``hit with
plain `conftest''' when there are other extensions used?
- AC_OBJEXT again, Lars J. Aas, 2000/11/21
- Re: AC_OBJEXT again, Akim Demaille, 2000/11/29
- Re: AC_OBJEXT again, Lars J. Aas, 2000/11/29
- Re: AC_OBJEXT again,
Akim Demaille <=
- Re: AC_OBJEXT again, Akim Demaille, 2000/11/30
- Re: AC_OBJEXT again, Akim Demaille, 2000/11/30
- Re: AC_OBJEXT again, Lars J. Aas, 2000/11/30
- Re: AC_OBJEXT again, Akim Demaille, 2000/11/30
- Re: AC_OBJEXT again, Lars J. Aas, 2000/11/30
- Re: AC_OBJEXT again, Akim Demaille, 2000/11/30
- Re: AC_OBJEXT again, Peter Eisentraut, 2000/11/30