Lines 1970-1980
Link Here
|
1970 |
fi |
1970 |
fi |
1971 |
|
1971 |
|
1972 |
#### test if Python headers are installed #### |
1972 |
#### test if Python headers are installed #### |
|
|
1973 |
PYTHON_VERSION=`python -V 2>&1 | awk {'print $2'} | awk -F. {'print $1"."$2'}` |
1973 |
cat > $t <<EOT |
1974 |
cat > $t <<EOT |
1974 |
#include "python/Python.h" |
1975 |
#include "python${PYTHON_VERSION}/Python.h" |
1975 |
#include "python/compile.h" |
1976 |
#include "python${PYTHON_VERSION}/compile.h" |
1976 |
#include "python/eval.h" |
1977 |
#include "python${PYTHON_VERSION}/eval.h" |
1977 |
#include "python/node.h" |
1978 |
#include "python${PYTHON_VERSION}/node.h" |
1978 |
|
1979 |
|
1979 |
int main() { |
1980 |
int main() { |
1980 |
Py_Initialize(); |
1981 |
Py_Initialize(); |
Lines 1983-1989
Link Here
|
1983 |
PyCodeObject *program = PyNode_Compile(programNode, ""); |
1984 |
PyCodeObject *program = PyNode_Compile(programNode, ""); |
1984 |
} |
1985 |
} |
1985 |
EOT |
1986 |
EOT |
1986 |
PYTHON_VERSION=`python -V 2>&1 | awk {'print $2'} | awk -F. {'print $1"."$2'}` |
|
|
1987 |
test_link "whether Python is installed" "yes" "no" "-lpython$PYTHON_VERSION -lpthread -lutil -ldl" |
1987 |
test_link "whether Python is installed" "yes" "no" "-lpython$PYTHON_VERSION -lpthread -lutil -ldl" |
1988 |
|
1988 |
|
1989 |
cat >>confdefs.h <<_ACEOF |
1989 |
cat >>confdefs.h <<_ACEOF |