Changeset 1754


Ignore:
Timestamp:
14/11/11 14:32:57 (6 months ago)
Author:
Freddie Akeroyd
Message:

Enable python by default. Refs #302

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/acinclude.m4

    r1539 r1754  
    125125#                                 path/bin/files and then work out path 
    126126# $4 = file in path to locate 
     127# $5 = default withval 
    127128# 
    128129# e.g. AC_CHECK_ROOT([tcl],[TCLROOT],[/usr /usr/local],[include/tcl.h]) 
     
    136137                       [Specify absolute path to root of $1 install directory.]), 
    137138        [if test x$withval != xno -a x$withval != xyes; then $2=$withval; fi],  
    138         [with_$1=no]) 
     139        [with_$1=$5]) 
    139140    if test x$with_$1 != xno; then 
    140141        AC_MSG_CHECKING(for $1 root installation directory) 
  • trunk/configure.ac

    r1752 r1754  
    244244 
    245245if test x$with_tcl != xno; then 
    246     AC_CHECK_ROOT([tcl],[TCLROOT],[/usr /usr/local],[include/tcl.h]) 
     246    AC_CHECK_ROOT([tcl],[TCLROOT],[/usr /usr/local],[include/tcl.h],[no]) 
    247247fi 
    248248if test x$with_guile != xno; then 
    249     AC_CHECK_ROOT([guile],[GUILEROOT],[/usr /usr/local],[include/libguile.h]) 
     249    AC_CHECK_ROOT([guile],[GUILEROOT],[/usr /usr/local],[include/libguile.h],[no]) 
    250250fi 
    251251if test x$with_opengenie != xno; then 
    252     AC_CHECK_ROOT([opengenie],[OPENGENIEROOT],[/usr/local],[genie/genie.so]) 
     252    AC_CHECK_ROOT([opengenie],[OPENGENIEROOT],[/usr/local],[genie/genie.so],[no]) 
    253253fi 
    254254if test x$with_python != xno; then 
    255     AC_CHECK_ROOT([python],[PYTHONROOT],[/usr /usr/local],[bin/python]) 
     255    AC_CHECK_ROOT([python],[PYTHONROOT],[/usr /usr/local],[bin/python],[yes]) 
    256256    if test x$PYTHONROOT != x; then 
    257257        if test -r "$PYTHONROOT/bin/python"; then PYTHON="$PYTHONROOT/bin/python"; fi 
     
    725725AM_CONDITIONAL(HAVE_F77, [test "$with_f77" != "no"]) 
    726726AM_CONDITIONAL(HAVE_F90, [test "$with_f90" != "no"]) 
    727 AM_CONDITIONAL(HAVE_PYTHON, [test ! -z "$PYTHONROOT" -a "$PYTHON_numpy" -eq 1]) 
     727AM_CONDITIONAL(HAVE_PYTHON, [test ! -z "$PYTHONROOT" -a "$PYTHON_numpy_found"  = "yes"]) 
    728728AM_CONDITIONAL(HAVE_TCL, [test ! -z "$TCLROOT"]) 
    729729AM_CONDITIONAL(HAVE_GUILE, [test ! -z "$GUILEROOT"]) 
Note: See TracChangeset for help on using the changeset viewer.