From ba6d300828f2a35a07610ca95c1df33a8ea7cbc9 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Fri, 11 Nov 2011 14:55:27 +0000 Subject: Require both Python and Django >= 1.3 to be installed by default, unless the use explicitly uses the --disable-* arguments. closes #120 svn path=/trunk/; revision=4088 --- configure | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 179bc815..090684a9 100755 --- a/configure +++ b/configure @@ -2345,14 +2345,14 @@ fi if test "${enable_python+set}" = set; then : enableval=$enable_python; else - enable_python=auto + enable_python=yes fi # Check whether --enable-django was given. if test "${enable_django+set}" = set; then : enableval=$enable_django; else - enable_django=auto + enable_django=yes fi @@ -4198,6 +4198,15 @@ $as_echo_n "checking for Django... " >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_django" >&5 $as_echo "$have_django" >&6; } + + if test $have_django = yes + then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Django 1.3 or higher" >&5 +$as_echo_n "checking for Django 1.3 or higher... " >&6; } + django_recent=`$PYTHON -c "import django; print 'no' if django.VERSION < (1, 3) else 'yes'"` + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $django_recent" >&5 +$as_echo "$django_recent" >&6; } + fi fi # Hmm, perhaps --enable-python should have been --with-python, @@ -4226,8 +4235,11 @@ case $enable_django in yes) build_django=yes if test $have_django = no then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You don't appear to have Django installed (but I'll try to build the Django-based GUI anyway)" >&5 -$as_echo "$as_me: WARNING: You don't appear to have Django installed (but I'll try to build the Django-based GUI anyway)" >&2;} + as_fn_error $? "You don't appear to have Django installed" "$LINENO" 5 + fi + if test $django_recent = no + then + as_fn_error $? "The portal gui requires Django 1.3 or higher" "$LINENO" 5 fi ;; no) build_django=no -- cgit v1.2.3