forked from lewdlime/abcm2ps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·91 lines (80 loc) · 1.88 KB
/
configure
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#! /bin/sh
# (automatic update)
VERSION=8.14.1
VDATE=2018-11-15
CC=gcc
CFLAGS="-g -O2 -Wall -pipe"
srcdir=.
prefix=/usr/local
INSTALL="/usr/bin/install -c"
if test -f ./custom; then
. ./custom
fi
for c in "$@"; do
case "$c" in
--*=*)
c="${c#--}"
eval "${c%%=*}='${c#*=}'"
;;
esac
done
if test "x$INSTALL_DATA" = x; then
INSTALL_DATA='${INSTALL} -m 644'
fi
if test "x$INSTALL_PROGRAM" = x; then
INSTALL_PROGRAM='${INSTALL}'
fi
if test "x$exec_prefix" = x; then
exec_prefix='${prefix}'
fi
if test "x$bindir" = x; then
bindir='${exec_prefix}/bin'
fi
if test "x$datarootdir" = x; then
datarootdir='${prefix}/share'
fi
if test "x$docdir" = x; then
docdir='${prefix}/share/doc'
fi
if test "x$mandir" = x; then
mandir='${prefix}/share/man'
fi
if test "x$DEFAULT_FDIR" = x; then
DEFAULT_FDIR="$prefix/share/abcm2ps"
fi
if which pkg-config > /dev/null ; then
if pkg-config --exists freetype2 ; then
if pkg-config --exists pangocairo ; then
CPPFLAGS="$CPPFLAGS -DHAVE_PANGO=1"
CPPPANGO="`pkg-config pango cairo freetype2 --cflags`"
LDFLAGS="$LDFLAGS `pkg-config pangocairo pangoft2 freetype2 --libs`"
else
echo "pangocairo not found - no pango support"
fi
else
echo "freetype2 not found - no pango support"
fi
else
echo "pkg-config not found - no pango support"
fi
sed "s+@CC@+$CC+
s+@CPPFLAGS@+$CPPFLAGS+
s+@CPPPANGO@+$CPPPANGO+
s+@CFLAGS@+$CFLAGS+
s+@LDFLAGS@+$LDFLAGS+
s+@INSTALL@+$INSTALL+
s+@INSTALL_DATA@+$INSTALL_DATA+
s+@INSTALL_PROGRAM@+$INSTALL_PROGRAM+
s+@prefix@+$prefix+
s+@exec_prefix@+$exec_prefix+
s+@srcdir@+$srcdir+
s+@bindir@+$bindir+
s+@datarootdir@+$datarootdir+
s+@mandir@+$mandir+
s+@docdir@+$docdir+" Makefile.in > Makefile
echo "Makefile created"
sed "s/define VERSION xxx/\define VERSION \"$VERSION\"/
s/define VDATE xxx/define VDATE \"$VDATE\"/
s+define DEFAULT_FDIR xxx+define DEFAULT_FDIR \"$DEFAULT_FDIR\"+
" config.h.in > config.h
echo "config.h created"