Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
gnumeric
Commits
581da4ff
Commit
581da4ff
authored
Sep 19, 1998
by
Arturo Espinosa
Browse files
Check if Python.h exists before claiming Python can be used
parent
a048126f
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
581da4ff
...
...
@@ -41,17 +41,21 @@ dnl
dnl Check for Python
dnl
AC_CHECK_PROG(python_val, python, true, false)
AM_CONDITIONAL(WITH_PYTHON, $python_val)
if $python_val; then
PYTHON_PREFIX=`python -c 'import sys ; print sys.prefix'`
changequote(<<, >>)dnl
PYTHON_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
changequote([, ])dnl
PYTHON_LIBS="python$PYTHON_VERSION -L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"
PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION"
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_CFLAGS)
if test -f $PYTHON_PREFIX/include/python$PYTHON_VERSION/Python.h; then
PYTHON_LIBS="python$PYTHON_VERSION -L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"
PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION"
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_CFLAGS)
else
python_val=false
fi
fi
AM_CONDITIONAL(WITH_PYTHON, $python_val)
AC_OUTPUT([
Makefile
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment