X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=autogen.sh;h=bee1ab40c94801a0de4d52f903620a6ad6166204;hb=78882517295105879cc4a9399357171d3a3897be;hp=2cacc5c4133fbd5f2491eb8c1dba207e586a04f7;hpb=86ae7dad3fc1cad3744663d0da8034625dc9ffb1;p=lyx.git diff --git a/autogen.sh b/autogen.sh index 2cacc5c413..bee1ab40c9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,14 +6,14 @@ AUTOMAKE="automake --add-missing --force-missing --copy --foreign" AUTOCONF="autoconf" # Discover what version of automake we are using. -automake_version=`$AUTOMAKE --version 2>/dev/null | head -n 1` +automake_version=$($AUTOMAKE --version 2>/dev/null | head -n 1) -test "$automake_version" != "" && { +if test "$automake_version" != ""; then echo "Using $automake_version" -} || { +else echo "LyX requires automake >= 1.14" exit 1 -} +fi case $automake_version in *' '1.1[45]*) @@ -26,14 +26,14 @@ case $automake_version in esac # Discover what version of autoconf we are using. -autoversion=`$AUTOCONF --version 2>/dev/null | head -n 1` +autoversion=$($AUTOCONF --version 2>/dev/null | head -n 1) -test "$autoversion" != "" && { +if test "$autoversion" != ""; then echo "Using $autoversion" -} || { +else echo "LyX requires autoconf >= 2.65" exit 1 -} +fi case $autoversion in *' '2.6[5-9])