Ticket #39263: configure.ac.diff
File configure.ac.diff, 1.4 KB (added by Tom.Schoonjans@…, 11 years ago) |
---|
-
configure.ac
old new 436 436 #verify the python installation 437 437 AM_PATH_PYTHON(,[PYTHON_FOUND=true],[PYTHON_FOUND=false]) 438 438 if test "x$PYTHON_FOUND" = xtrue ; then 439 PYTHON_CPPFLAGS= 440 PYTHON_LDFLAGS= 441 AX_PYTHON_DEVEL 442 if test "x$PYTHON" = x ; then 439 AC_MSG_CHECKING([for Python include path]) 440 PYTHON_CPPFLAGS="$CFLAGS `$PYTHON-config --cflags`" 441 AC_MSG_RESULT([$PYTHON_CPPFLAGS]) 442 AC_MSG_CHECKING([for Python linker flags]) 443 PYTHON_LDFLAGS="$LDFLAGS `$PYTHON-config --ldflags`" 444 AC_MSG_RESULT([$PYTHON_LDFLAGS]) 445 if test "x$PYTHON_LDFLAGS" = x ; then 443 446 if test "x$enable_python" = xyes ; then 444 447 AC_MSG_ERROR([Incomplete python development package]) 445 448 else … … 448 451 VALID_PYTHON=no 449 452 else 450 453 VALID_PYTHON=yes 454 AC_SUBST(PYTHON_LDFLAGS) 455 AC_SUBST(PYTHON_CPPFLAGS) 451 456 fi 452 457 453 458 fi … … 465 470 #echo "PYTHON_LIBS_FIXED: $PYTHON_LIBS_FIXED" 466 471 467 472 if test "x$enable_python_integration" = xyes ; then 468 pythondir=$PYTHON_SITE_PKG 469 pyexecdir=$PYTHON_SITE_PKG_EXEC 473 pythondir=`$PYTHON -c "import distutils.sysconfig; \ 474 print (distutils.sysconfig.get_python_lib(0,0));"` 475 pyexecdir=`$PYTHON -c "import distutils.sysconfig; \ 476 print (distutils.sysconfig.get_python_lib(1,0));"` 470 477 fi 471 478 472 479 AC_SUBST(PYTHON_INCLUDE_FIXED)