-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·40 lines (30 loc) · 851 Bytes
/
configure
File metadata and controls
executable file
·40 lines (30 loc) · 851 Bytes
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
32
33
34
35
36
37
38
39
#! /bin/bash
defsfile="./Makefile.defs"
[ -e $defsfile ] && rm $defsfile
touch $defsfile
echo "LIB_QHULL = qhull" >> $defsfile
qhull_incs=( "./include" "/usr/include/libqhull" "/usr/include/qhull" "/opt/local/include/qhull" "/sw/include/qhull" )
for incdir in ${qhull_incs[@]}
do
if [ -e $incdir/qhull_a.h ]
then
echo "CCFLAGS += -I$incdir" >> $defsfile
break
fi
done
fitsio_incs=( "./include" "/usr/include/cfitsio" "/usr/include/libcfitsio0" )
for incdir in ${fitsio_incs[@]}
do
if [ -e $incdir/fitsio.h ]
then
echo "CCFLAGS += -I$incdir" >> $defsfile
break
fi
done
pybin="python"
pyconf="$pybin-config"
command -v $pyconf >/dev/null 2>&1 || ! echo "oops" || exit 3
PYCCFLAGS=`$pyconf --cflags`
PYLDFLAGS=`$pyconf --ldflags`
echo "PYCCFLAGS = $PYCCFLAGS" >> $defsfile
echo "PYLDFLAGS = $PYLDFLAGS" >> $defsfile