#!/bin/sh # /tree-lede/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/bin/python2-config BASEDIR=$(cd `dirname $0`;cd ..;pwd) case "$1" in --prefix) echo $BASEDIR ;; --exec-prefix) echo $BASEDIR ;; --includes) echo -I$BASEDIR/include/python2.7 -I$BASEDIR/include/python2.7 ;; --libs) echo -lpython2.7 -lpthread -ldl -lutil -lm ;; --cflags) echo -I$BASEDIR/include/python2.7 -I$BASEDIR/include/python2.7 ;; --ldflags) echo -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic ;; *) echo 'Usage: python2-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]' ;; esac