~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
TESTLIBTOOLIZE="glibtoolize libtoolize"
 
3
 
 
4
LIBTOOLIZEFOUND="0"
 
5
 
 
6
srcdir=`dirname $0`
 
7
test -z "$srcdir" && srcdir=.
 
8
 
 
9
olddir=`pwd`
 
10
cd $srcdir
 
11
 
 
12
aclocal --version > /dev/null 2> /dev/null || {
 
13
    echo "error: aclocal not found"
 
14
    exit 1
 
15
}
 
16
automake --version > /dev/null 2> /dev/null || {
 
17
    echo "error: automake not found"
 
18
    exit 1
 
19
}
 
20
 
 
21
for i in $TESTLIBTOOLIZE; do
 
22
        if which $i > /dev/null 2>&1; then
 
23
                LIBTOOLIZE=$i
 
24
                LIBTOOLIZEFOUND="1"
 
25
                break
 
26
        fi
 
27
done
 
28
 
 
29
if [ "$LIBTOOLIZEFOUND" = "0" ]; then
 
30
        echo "$0: need libtoolize tool to build cups-filters" >&2
 
31
        exit 1
 
32
fi
 
33
 
 
34
amcheck=`automake --version | grep 'automake (GNU automake) 1.5'`
 
35
if test "x$amcheck" = "xautomake (GNU automake) 1.5"; then
 
36
    echo "warning: you appear to be using automake 1.5"
 
37
    echo "         this version has a bug - GNUmakefile.am dependencies are not generated"
 
38
fi
 
39
 
 
40
rm -rf autom4te*.cache
 
41
 
 
42
$LIBTOOLIZE --force --copy || {
 
43
    echo "error: libtoolize failed"
 
44
    exit 1
 
45
}
 
46
aclocal $ACLOCAL_FLAGS || {
 
47
    echo "error: aclocal $ACLOCAL_FLAGS failed"
 
48
    exit 1
 
49
}
 
50
autoheader || {
 
51
    echo "error: autoheader failed"
 
52
    exit 1
 
53
}
 
54
automake -a -c --gnu --add-missing || {
 
55
    echo "warning: automake failed"
 
56
}
 
57
autoconf || {
 
58
    echo "error: autoconf failed"
 
59
    exit 1
 
60
}