Changeset 1049 for trunk/configure


Ignore:
Timestamp:
Jun 16, 2008, 2:32:12 PM (11 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r1047 r1049  
    732732PERL_SITE_PACKAGES
    733733PYTHON
     734PYTHON_CPPFLAGS
    734735pythondir
    735736PYTHON_VERSION
    736737PYTHON_INCLUDES
    737738PYTHON_SITE_PACKAGES
    738 PYTHON_HAS_DISTUTILS
     739PYTHON_DISTUTILS
    739740RUBY
     741SVN_VERSION
    740742RP_BASE
    741743SHLIB_LDFLAGS
     
    85708572
    85718573
    8572 MEX=
    8573 MEX_ARCH=
    8574 MEXEXT=
     8574MEX=""
     8575MEX_ARCH=""
     8576MEXEXT=""
    85758577if test "$with_matlab" != "no" ; then
    8576     { $as_echo "$as_me:$LINENO: checking for matlab's mex" >&5
    8577 $as_echo_n "checking for matlab's mex... " >&6; }
     8578    { $as_echo "$as_me:$LINENO: checking for MATLAB MEX compiler" >&5
     8579$as_echo_n "checking for MATLAB MEX compiler... " >&6; }
    85788580    if test "$with_matlab" != "no" ; then
    85798581                if test -x "$with_matlab/bin/mex"
     
    88288830
    88298831
    8830 PYTHON=
    8831 PYTHON_VERSION=
    8832 PYTHON_INCLUDES=
    8833 PYTHON_SITE_PACKAGES=
    8834 pythondir=
     8832PYTHON=""
     8833PYTHON_CFLAGS=""
     8834PYTHON_CPPFLAGS=""
     8835PYTHON_DISTUTILS=""
     8836PYTHON_INCLUDES=""
     8837PYTHON_LDFLAGS=""
     8838PYTHON_LIB=""
     8839PYTHON_LIBDIR=""
     8840PYTHON_SITE_PACKAGES=""
     8841PYTHON_SITE_DIR=""
     8842PYTHON_VERSION=""
     8843pythondir=""
     8844
    88358845
    88368846# Check whether --with-python was given.
     
    88458855  { $as_echo "$as_me:$LINENO: checking for python" >&5
    88468856$as_echo_n "checking for python... " >&6; }
    8847   if test -x "$with_python/bin/python"
    8848   then
     8857  if test -x "$with_python/bin/python"; then
    88498858    echo Found python in $with_python/bin/python
    88508859    PYTHON="$with_python/bin/python"
     8860  elif test -x "$with_python"; then
     8861    echo Found python in $with_python
     8862    PYTHON="$with_python"
    88518863  else
    8852     if test -x "$with_python"
    8853     then
    8854       echo Found python in $with_python
    8855       PYTHON="$with_python"
    8856     else
    8857       # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
     8864    # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
    88588865set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
    88598866{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    88958902
    88968903
    8897     fi
    88988904  fi
    8899   if test "$PYTHON" != ""
    8900   then
     8905  if test "x${PYTHON}" != "x"; then
    89018906    PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
    89028907    echo Using python version $PYTHON_VERSION
    89038908  fi
    8904   if test "$PYTHON_VERSION" != ""
    8905   then
     8909  if test "x${PYTHON_VERSION}" != "x"; then
    89068910    if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
    8907      -d $with_python/lib/python$PYTHON_VERSION/site-packages
    8908     then
     8911     -d $with_python/lib/python$PYTHON_VERSION/site-packages; then
    89098912      PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
    89108913      PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
    89118914    else
    8912       if test -r $prefix/include/python$PYTHON_VERSION/Python.h
    8913       then
     8915      if test -r $prefix/include/python$PYTHON_VERSION/Python.h; then
    89148916        PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
    89158917        PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
    89168918      else
    8917         if test -r /usr/include/python$PYTHON_VERSION/Python.h
    8918         then
     8919        if test -r /usr/include/python$PYTHON_VERSION/Python.h; then
    89198920          PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
    89208921          PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
     
    89238924        fi
    89248925      fi
    8925       if test ! -d "$PYTHON_SITE_PACKAGES"
    8926       then
     8926      if test ! -d "$PYTHON_SITE_PACKAGES"; then
    89278927        PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
    89288928      fi
     
    89348934    pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
    89358935  fi
     8936
    89368937  { $as_echo "$as_me:$LINENO: checking for python distutils" >&5
    89378938$as_echo_n "checking for python distutils... " >&6; }
    8938   python_result="`$PYTHON -c 'import distutils;' 2>&1`"
    8939   if test -z "$python_result" ; then
    8940     PYTHON_HAS_DISTUTILS="yes"
     8939  python_result="`${PYTHON} -c 'import distutils;' 2>&1`"
     8940  if test "x${python_result}" = "x" ; then
     8941    PYTHON_DISTUTILS="yes"
    89418942  else
    8942     PYTHON_HAS_DISTUTILS="no"
     8943    PYTHON_DISTUTILS="no"
    89438944  fi
    8944   { $as_echo "$as_me:$LINENO: result: $PYTHON_HAS_DISTUTILS" >&5
    8945 $as_echo "$PYTHON_HAS_DISTUTILS" >&6; }
    8946 fi
    8947 
    8948 
     8945  { $as_echo "$as_me:$LINENO: result: $PYTHON_DISTUTILS" >&5
     8946$as_echo "$PYTHON_DISTUTILS" >&6; }
     8947
     8948  if test "${PYTHON_DISTUTILS}" = "yes"; then
     8949    #
     8950    # Check for Python include path
     8951    #
     8952    { $as_echo "$as_me:$LINENO: checking for Python include path" >&5
     8953$as_echo_n "checking for Python include path... " >&6; }
     8954    if test "x${PYTHON_CPPFLAGS}" = "x"; then
     8955      python_path=`${PYTHON} -c "import distutils.sysconfig; \
     8956       print distutils.sysconfig.get_python_inc();"`
     8957      if test -n "${python_path}"; then
     8958        python_path="-I$python_path"
     8959      fi
     8960      PYTHON_CPPFLAGS=$python_path
     8961    fi
     8962    { $as_echo "$as_me:$LINENO: result: $PYTHON_CPPFLAGS" >&5
     8963$as_echo "$PYTHON_CPPFLAGS" >&6; }
     8964
     8965    #
     8966    # python distutils found, get settings from python directly
     8967    #
     8968    { $as_echo "$as_me:$LINENO: checking location of site-packages" >&5
     8969$as_echo_n "checking location of site-packages... " >&6; }
     8970    PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"
     8971
     8972    PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]; print \" \".join(flags);'`"
     8973    PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`"
     8974    PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"
     8975    PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"
     8976  fi
     8977fi
     8978
     8979
     8980echo "PYTHON=${PYTHON}"
     8981echo "PYTHON_INCLUDES=${PYTHON_INCLUDES}"
     8982echo "PYTHON_DISTUTILS=${PYTHON_DISTUTILS}"
     8983echo "PYTHON_CPPFLAGS=${PYTHON_CPPFLAGS}"
     8984echo "PYTHON_SITE_PACKAGES=${PYTHON_SITE_PACKAGES}"
     8985echo "PYTHON_SUBDIR=${PYTHON_SUBDIR}"
     8986echo "PYTHON_SITE_DIR=${PYTHON_SITE_DIR}"
     8987echo "PYTHON_VERSION=${PYTHON_VERSION}"
     8988echo "pythondir=${pythondir}"
    89498989
    89508990
     
    90209060    fi
    90219061fi
     9062
     9063SVN_VERSION=`svnversion $srcdir`
     9064
    90229065{ $as_echo "$as_me:$LINENO: result: ${RUBY}" >&5
    90239066$as_echo "${RUBY}" >&6; }
Note: See TracChangeset for help on using the changeset viewer.