#!/bin/bash set -eu set -o pipefail export PATH=/usr/local/c"$which_python"/bin:$PATH #echo 'pkg-config is at:' #which pkg-config #echo 'modversion of glib-2.0 from path-searched pkg-config is:' #pkg-config --modversion glib-2.0 #echo #echo "modversion of glib-2.0 from /usr/local/c$which_python/bin/pkg-config is:" #/usr/local/c"$which_python"/bin/pkg-config --modversion glib-2.0 #echo #echo "\$PKG_CONFIG_PATH is $PKG_CONFIG_PATH" #echo export CFLAGS="-I/usr/local/c$which_python/include" export LDFLAGS="-L/usr/local/c$which_python/lib -Wl,-rpath -Wl,/usr/local/c$which_python/lib" ./configure --prefix=/usr/local/c"$which_python" --enable-introspection make