[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
please correct my ugly hack
From: |
Claudio Fontana |
Subject: |
please correct my ugly hack |
Date: |
Wed, 1 Jun 2005 07:39:58 -0700 (PDT) |
Hello,
I am trying to put checks for available programs in a
for loop in a configure.ac script.
My first attempt was:
for NAME in cp du mv rm sh su mkdir rmdir bunzip2
bzip2 compress gunzip gzip tar unzip zip
do
AC_PATH_PROG($NAME, $NAME, [no])
done
This does not work, so I wrote this terrible hack:
for NAME in cp du mv rm sh su mkdir rmdir bunzip2
bzip2 compress gunzip gzip tar unzip zip
do
QNAME=$NAME
AC_PATH_PROG(QNAME, $NAME, [no])
eval $NAME=$QNAME
unset ac_cv_path_QNAME
done
Can someone shed some light on how the thing should be
properly done?
Thanks for any advice
CLaudio
PS: I am not subscribed to the list yet
__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/
- please correct my ugly hack,
Claudio Fontana <=
- Re: please correct my ugly hack, Stepan Kasal, 2005/06/01
- Re: please correct my ugly hack, Paul Eggert, 2005/06/01
- Re: please correct my ugly hack, Ralf Corsepius, 2005/06/01
- Re: please correct my ugly hack, Dan Manthey, 2005/06/01
- Re: please correct my ugly hack, Ralf Corsepius, 2005/06/02
- Re: please correct my ugly hack, Stepan Kasal, 2005/06/02
- unset variables, was Re: please correct my ugly hack, Dan Manthey, 2005/06/02
- Re: unset variables, was Re: please correct my ugly hack, Paul Eggert, 2005/06/03
- Re: unset variables, was Re: please correct my ugly hack, Stepan Kasal, 2005/06/03
- Re: unset variables, was Re: please correct my ugly hack, Dan Manthey, 2005/06/03