1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
# get python 2.7 flags
python2.7-config --includes > /dev/null 2>&1
if [ "$?" == "0" ]; then
which python2.7-config
exit 0;
fi
# get python 2.5 flags
python2.5-config --includes > /dev/null 2>&1
if [ "$?" == "0" ]; then
which python2.5-config
exit 0;
fi
# get python 2.4 flags
python2.4-config --includes > /dev/null 2>&1
if [ $? == 0 ]; then
which python2.4-config
exit 0;
fi
# default
python-config --includes > /dev/null 2>&1
if [ "$?" == "0" ]; then
which python-config
exit 0;
fi
|