diff --git a/mythplugins/configure b/mythplugins/configure
index 941d15de8e..8195d1d997 100755
a
|
b
|
check_py_lib(){ |
477 | 477 | check_cmd $python <<EOF |
478 | 478 | from distutils.sysconfig import get_python_lib |
479 | 479 | import sys |
480 | | sys.path.append(get_python_lib(prefix='${prefix}')) |
| 480 | for mythroot in '${mythroot}'.split(':'): |
| 481 | sys.path.append(get_python_lib(prefix=mythroot +'${prefix}')) |
| 482 | sys.path.append(get_python_lib(prefix='${sysroot}${prefix}')) |
481 | 483 | try: |
482 | 484 | import $lib |
483 | 485 | except: |
… |
… |
EOF |
537 | 539 | fi |
538 | 540 | |
539 | 541 | # bring in mythtv config |
540 | | if [ -e $mythroot$prefix/include/mythtv/mythconfig.mak ] ; then |
| 542 | mythrootlist=$(echo "$mythroot" | tr ":" " ") |
| 543 | for mythrootitem in $mythrootlist; do |
| 544 | if [ -e $mythrootitem$prefix/include/mythtv/mythconfig.mak ] ; then |
| 545 | break; |
| 546 | fi |
| 547 | done |
| 548 | if [ -e $mythrootitem$prefix/include/mythtv/mythconfig.mak ] ; then |
541 | 549 | rm mythconfig.mak 2> /dev/null |
542 | | cp $mythroot$prefix/include/mythtv/mythconfig.mak mythconfig.mak |
543 | | sed -i -e "s,^SYSROOT\=.*,SYSROOT=$mythroot,g" mythconfig.mak |
| 550 | cp $mythrootitem$prefix/include/mythtv/mythconfig.mak mythconfig.mak |
| 551 | sed -i -e "s,^SYSROOT\=.*,SYSROOT=$mythrootitem,g" mythconfig.mak |
544 | 552 | elif [ -e $prefix/include/mythtv/mythconfig.mak ] ; then |
545 | 553 | rm mythconfig.mak 2> /dev/null |
546 | 554 | ${ln_s} $prefix/include/mythtv/mythconfig.mak mythconfig.mak |