File: configure.win

package info (click to toggle)
r-cran-tiff 0.1-5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 148 kB
  • sloc: ansic: 853; sh: 35; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 1,077 bytes parent folder | download
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
#!/bin/sh

echo "  checking TIFF headers and libraries"
allok=yes

if [ ! -e src/win32/libz.a ]; then
    if [ ! -e src/libtiff-current-win.tar.gz ]; then
	echo "  cannot find current TIFF files"
	echo "  attempting to download them"
	echo 'download.file("http://www.rforge.net/tiff/files/libtiff-current-win.tar.gz","src/libtiff-current-win.tar.gz",mode="wb",quiet=TRUE)'|${R_HOME}/bin/R --vanilla --slave
    fi
    if [ ! -e src/libtiff-current-win.tar.gz ]; then
	allok=no
    else
	echo "  unpacking current TIFF"
	tar fxz src/libtiff-current-win.tar.gz -C src
        if [ ! -e src/win32/libz.a ]; then
	    allok=no
	fi
    fi
fi

if [ ! -e src/win32/libz.a ]; then
    allok=no
fi

if [ ${allok} != yes ]; then
    echo ""
    echo " *** ERROR: unable to find TIFF files"
    echo ""
    echo " They must be either in src/win32 or in a tar-ball"
    echo " src/libtiff-current-win.tar.gz"
    echo ""
    echo " You can get the latest binary tar ball from"
    echo " http://www.rforge.net/tiff/files/"
    echo ""
    exit 1
fi

echo "  seems ok, ready to go"

exit 0