aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-12-18 07:22:19 -0800
committerRuss Cox <rsc@swtch.com>2012-12-18 07:22:19 -0800
commitcb71c0bdc4f605fceafe10ffd2959af693290145 (patch)
tree1e9807bf217f21cb2dddea4453011c147b949115 /INSTALL
parent1a512ec048a5c607a01b9fd82561c1601ba87406 (diff)
downloadplan9port-cb71c0bdc4f605fceafe10ffd2959af693290145.tar.gz
plan9port-cb71c0bdc4f605fceafe10ffd2959af693290145.tar.bz2
plan9port-cb71c0bdc4f605fceafe10ffd2959af693290145.zip
fontsrv: only build when the pieces are there
Diffstat (limited to 'INSTALL')
-rwxr-xr-xINSTALL15
1 files changed, 15 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 1ce9bd0c..a0e208ee 100755
--- a/INSTALL
+++ b/INSTALL
@@ -89,6 +89,21 @@ if [ `uname` = Darwin ]; then
rm -f ./a.out
fi
+if [ `uname` != Darwin ]; then
+ # Determine whether fontsrv X11 files are available.
+ rm -f a.out
+ gcc -o a.out -c -Iinclude -I/usr/include -I/usr/include/freetype2 src/cmd/fontsrv/x11.c >/dev/null 2>&1
+ if [ -f a.out ]; then
+ echo " fontsrv dependencies found."
+ echo "FONTSRV=fontsrv" >>$PLAN9/config
+ else
+ echo " fontsrv dependencies not found."
+ echo "FONTSRV=" >>$PLAN9/config
+ rm -f bin/fontsrv
+ fi
+ rm -f a.out
+fi
+
if [ -f LOCAL.config ]; then
echo Using LOCAL.config options:
sed 's/^/ /' LOCAL.config