git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2695 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.10
Martin Ewing, AA6E 2009-05-15 18:21:01 +00:00
rodzic d98f96481d
commit 0db8b049f1
1 zmienionych plików z 5 dodań i 8 usunięć

Wyświetl plik

@ -18,21 +18,18 @@ V2CONFIG='configure.ac.ltv2'
AUTOGEN='autogen.sh' AUTOGEN='autogen.sh'
CONFIG='configure.ac' CONFIG='configure.ac'
TMPFILE=/tmp/libtoolchk$$
if [ ! -e $AUTOGEN ]; then if [ ! -e $AUTOGEN ]; then
echo File $AUTOGEN not detected. echo File $AUTOGEN not detected.
echo This procedure is needed only if you are working with source echo This procedure is needed only if you are working with source
echo from an SVN checkout, where autogen.sh is provided. Exiting. echo from an SVN checkout, where autogen.sh is provided. Exiting.
exit 1 exit 1
fi fi
echo $(libtool --version) | \ vers=$( echo $(libtool --version) | \
sed '1,1s/ltmain.*tool) //; 1,1s/ .*$//; 2,$d' > $TMPFILE sed '1,1s/ltmain.*tool) //; 1,1s/ .*$//; 2,$d')
# Test first digit of version. If it's '1', use libtool v1 setup, otherwise # Test first digit of version. If it's '1', use libtool v1 setup, otherwise
# use libtool v2. # use libtool v2.
vers=$(cat $TMPFILE)
echo Libtool version $vers detected. echo Libtool version $vers detected.
if [ $vers \< "1.99.99" ]; then if [ $vers \< "1.99.99" ]; then
@ -42,8 +39,8 @@ if [ $vers \< "1.99.99" ]; then
else else
cp $V2AUTOGEN $AUTOGEN cp $V2AUTOGEN $AUTOGEN
cp $V2CONFIG $CONFIG cp $V2CONFIG $CONFIG
echo Libtool v2 configured echo Libtool v2 configured.
fi fi
echo
rm $TMPFILE echo ** You may now run "sh ./autogen.sh" **