pkgsrc/finance/emma/patches/patch-af

49 lines
1.6 KiB
Text

$NetBSD: patch-af,v 1.1 2002/01/19 17:44:06 drochner Exp $
--- configure.orig Sat Jan 19 18:36:50 2002
+++ configure Sat Jan 19 18:38:12 2002
@@ -3062,40 +3062,12 @@
-# Extract the first word of "python", so it can be a program name with args.
-set dummy python; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3069: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_python_val'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$python_val"; then
- ac_cv_prog_python_val="$python_val" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
- ac_dummy="$PATH"
- for ac_dir in $ac_dummy; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_python_val="true"
- break
- fi
- done
- IFS="$ac_save_ifs"
- test -z "$ac_cv_prog_python_val" && ac_cv_prog_python_val="false"
-fi
-fi
-python_val="$ac_cv_prog_python_val"
-if test -n "$python_val"; then
- echo "$ac_t""$python_val" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
+python_val=true
if $python_val; then
- PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
- PY_EXEC_PREFIX=`python -c 'import sys ; print sys.exec_prefix'`
- PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
+ PY_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.prefix'`
+ PY_EXEC_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.exec_prefix'`
+ PY_VERSION=`${PYTHONBIN} -c 'import sys ; print sys.version[0:3]'`
if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
PY_LIBS="-lpython$PY_VERSION"
PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"