diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-09 01:41:04 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-09 01:41:04 +0200 |
commit | ac88ec31ff94e921e3cd7a050d1f1aa3722c21d7 (patch) | |
tree | ba84e2186b7ae5031685395ad713ce144cd178c1 /configure.ac | |
parent | e7378de823b455bc4d140819a617dcdddb476f9b (diff) | |
download | bank-ac88ec31ff94e921e3cd7a050d1f1aa3722c21d7.tar.gz bank-ac88ec31ff94e921e3cd7a050d1f1aa3722c21d7.tar.bz2 bank-ac88ec31ff94e921e3cd7a050d1f1aa3722c21d7.zip |
check for pip version
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index d346542..71e4618 100644 --- a/configure.ac +++ b/configure.ac @@ -2,6 +2,8 @@ AC_INIT(talerbank, version-0.0) AC_CONFIG_MACRO_DIR([m4]) +AC_PROG_AWK + # PC_INIT([3.4]) # Provisional check until pyconfigure gets fixed AC_MSG_NOTICE([Checking for python3]) @@ -11,13 +13,19 @@ if test $? -ne 0; AC_MSG_ERROR([Please install python>=3.4]) fi -AC_MSG_NOTICE([Checking for pip3]) -pip3 --version > /dev/null +AC_MSG_CHECKING([pip3]) +pip3 --version >/dev/null if test $? -ne 0; then - AC_MSG_ERROR([Please install pip3>=8.0]) + AC_MSG_ERROR([Please install pip3>=8.1.1]) fi +VERSION=$(pip3 --version | $AWK '{ print $2 }') + +AC_MSG_RESULT([$VERSION]) + +AX_COMPARE_VERSION([$VERSION],[lt],[8.1.1], [AC_MSG_ERROR([Please install pip3>=8.1.1])]) + AC_MSG_NOTICE([Checking for PostgreSQL]) pg_config --version > /dev/null if test $? -ne 0; |