summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-18 09:46:11 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-10-18 09:46:11 +0200
commitf086e811c45095cce7365dad66e6b8149490bd50 (patch)
tree24de8338436960eaa58ca54d1acc6fb710878d46
parentec16b34c2812a90713a8dcb7a1a7606a9b554999 (diff)
New maintainer, new upstream release, some bugs
-rw-r--r--debian/changelog41
-rw-r--r--debian/control49
-rw-r--r--debian/copyright186
-rw-r--r--debian/patches/desktop_file.patch34
-rw-r--r--debian/patches/lcms2_configure.patch744
-rw-r--r--debian/patches/series6
-rw-r--r--debian/patches/typo.patch41
-rw-r--r--debian/patches/typo_manpage.patch57
-rw-r--r--debian/patches/xsane-0.999-lcms2.patch (renamed from debian/patches/lcms2.patch)69
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/watch2
-rw-r--r--debian/xsane-common.install2
-rw-r--r--debian/xsane.desktop17
-rw-r--r--debian/xsane.install2
-rw-r--r--include/config.h307
-rwxr-xr-xm4/old/aclocal.m4.bak1086
-rw-r--r--po/ca.gmobin66181 -> 0 bytes
-rw-r--r--po/cs.gmobin47778 -> 0 bytes
-rw-r--r--po/da.gmobin60714 -> 0 bytes
-rw-r--r--po/de.gmobin61921 -> 0 bytes
-rw-r--r--po/es.gmobin42048 -> 0 bytes
-rw-r--r--po/fi.gmobin26987 -> 0 bytes
-rw-r--r--po/fr.gmobin41111 -> 0 bytes
-rw-r--r--po/hu.gmobin47723 -> 0 bytes
-rw-r--r--po/it.gmobin64533 -> 0 bytes
-rw-r--r--po/ja.gmobin43312 -> 0 bytes
-rw-r--r--po/nl.gmobin44755 -> 0 bytes
-rw-r--r--po/pa.gmobin85252 -> 0 bytes
-rw-r--r--po/pl.gmobin47306 -> 0 bytes
-rw-r--r--po/pt.gmobin40566 -> 0 bytes
-rw-r--r--po/pt_BR.gmobin40582 -> 0 bytes
-rw-r--r--po/ro.gmobin41423 -> 0 bytes
-rw-r--r--po/ru.gmobin62995 -> 0 bytes
-rw-r--r--po/sk.gmobin61512 -> 0 bytes
-rw-r--r--po/sl.gmobin46679 -> 0 bytes
-rw-r--r--po/sr.gmobin76794 -> 0 bytes
-rw-r--r--po/sv.gmobin37944 -> 0 bytes
-rw-r--r--po/tr.gmobin46054 -> 0 bytes
-rw-r--r--po/vi.gmobin42902 -> 0 bytes
-rw-r--r--po/zh.gmobin22190 -> 0 bytes
-rw-r--r--po/zh_CN.gmobin25488 -> 0 bytes
-rw-r--r--src/Makefile.in.orig247
-rw-r--r--xsane.spec43
43 files changed, 1162 insertions, 1775 deletions
diff --git a/debian/changelog b/debian/changelog
index 08e1f32..9e1a6da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,16 +1,35 @@
-xsane (0.999-1) UNRELEASED; urgency=medium
+xsane (0.999-1) unstable; urgency=medium
- * [23337be] Imported Upstream version 0.999
+ * New Maintainer. (Closes: #688542)
+ * New upstream release.
* debian/control:
- + [b27d2a6] bump Standards-Version to 3.9.6, no changes needed.
- + [6424c96] fix duplicate-short-description lintian tag.
- + [11f9507] debian/control: add Vcs-* fields.
- + [bd33c8a] wrap-and-sort maintenance.
- * [f3a24cb] debian/watch: add
- * [c92f446] debian/copyright: rewrite using DEP-5
- * [1cf0e7a] debian/patches/lcms2.patch: add (Closes: #745524)
-
- -- Mattia Rizzolo <mattia@mapreri.org> Tue, 14 Oct 2014 21:24:22 +0200
+ - Add myself as maintainer.
+ - Bump Standards-Version to 3.9.6 (no changes required).
+ - Change short short description of xsane-common.
+ - Change Build-Depends from libjpeg-dev to
+ libjpeg62-turbo-dev by reason of the jpeg-turbo
+ transition.
+ * debian/copyright:
+ - Rewrite into DEP-5 format.
+ - Add myself to the list of authors for debian/*.
+ - Change the license of debian/* to GPL-3+.
+ * New debian/watchfile.
+ * debian/patches:
+ - New xsane-0.999-lcms2.patch:
+ + Add support for lcms2. (Closes: #745524).
+ Thanks to Nils Philippsen <nils@redhat.com>.
+ - New lcms2_configure.patch:
+ + patch configure direct because autoreconf is broken.
+ Thanks to Nils Philippsen <nphilipp@fedoraproject.org>
+ - New typo.patch and typo_manpage.patch:
+ + Correct some typos.
+ - New desktop_file.patch:
+ + Move tags from debian/xsane.desktop to scr/xsane.desktop.
+ * Remove debian/xsane.desktop
+ * debian/rules:
+ - Enable hardening.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Fri, 17 Oct 2014 20:24:49 +0200
xsane (0.998-6) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index cda6ab6..0effc91 100644
--- a/debian/control
+++ b/debian/control
@@ -1,34 +1,29 @@
Source: xsane
Section: graphics
Priority: optional
-Maintainer: Debian QA Group <packages@qa.debian.org>
+Maintainer: Jörg Frings-Fürst <debian@jff-webhosting.net>
Standards-Version: 3.9.6
-Build-Depends: autotools-dev,
- debhelper (>= 9~),
- gettext,
- libgimp2.0-dev (>= 2.0.0),
- libgtk2.0-dev,
- libjpeg-dev,
- liblcms2-dev,
- libpng-dev,
- libsane-dev (>= 1.0.11-3),
- libtiff-dev,
- zlib1g-dev
-Homepage: http://www.xsane.org
+Build-Depends:
+ autotools-dev,
+ debhelper (>= 9~),
+ gettext,
+ libgimp2.0-dev (>= 2.0.0),
+ libgtk2.0-dev,
+ libjpeg62-turbo-dev,
+ liblcms2-dev,
+ libpng-dev,
+ libsane-dev (>= 1.0.11-3),
+ libtiff-dev,
+ zlib1g-dev
+Homepage: http://www.xsane.org/
Vcs-Git: git://anonscm.debian.org/collab-maint/xsane.git
Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/xsane.git
Package: xsane
Architecture: any
-Depends: xsane-common (= ${source:Version}),
- ${misc:Depends},
- ${shlibs:Depends}
-Recommends: cups-client,
- iceweasel | www-browser
-Suggests: gimp,
- gocr,
- gv,
- hylafax-client | mgetty-fax
+Depends: xsane-common (= ${source:Version}), ${shlibs:Depends}, ${misc:Depends}
+Recommends: iceweasel | www-browser, cups-client
+Suggests: gimp, hylafax-client | mgetty-fax, gv, gocr
Description: featureful graphical frontend for SANE (Scanner Access Now Easy)
xsane can be run as a stand-alone program or through the GIMP image
manipulation program. In stand-alone mode, xsane can save an image
@@ -50,11 +45,11 @@ Architecture: all
Depends: ${misc:Depends}
Replaces: xsane
Recommends: xsane
-Description: featureful graphical frontend for SANE - common files
- xsane can be run as a stand-alone program or through the GIMP image
- manipulation program. In stand-alone mode, xsane can save an image
- to a file in a variety of image formats, serve as a frontend to a
- fax program, or send an image to a printer.
+Description: xsane architecture independent files
+ xsane can be run as a stand-alone program or through the GIMP image
+ manipulation program. In stand-alone mode, xsane can save an image
+ to a file in a variety of image formats, serve as a frontend to a
+ fax program, or send an image to a printer.
.
This package contains architecture-independent files needed by xsane
(locales, help).
diff --git a/debian/copyright b/debian/copyright
index 58cc9ce..a71ef56 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,23 +1,191 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: xsane
Upstream-Contact: Oliver Rauch <Oliver.Rauch@xsane.org>
-Source: http://xsane.org/download/
+Source: http://www.xsane.org/
Files: *
-Copyright: 1998-2005 Oliver Rauch <Oliver.Rauch@xsane.org>
+ po/de.po
+Copyright: 1998-2014 Oliver Rauch <Oliver.Rauch@xsane.org>
License: GPL-2+
-Files: debian/*
-Copyright: 1999-2002 Kevin Dalley <kevind@rahul.net>
- 2002-2011 Julien Blache <jblache@debian.org>
- 2002-2007 Aurélien Jarno <aurel32@debian.org>
- 2013 Frank Lichtenheld <djpig@debian.org>
+Files: intl/*
+ po/*
+ lib/getopt.c
+ lib/getopt1.c
+ lib/md5.c
+ lib/strdup.c
+ lib/strndup.c
+ lib/strsep.c
+ lib/usleep.c
+Copyright: 1987-2006 Free Software Foundation, Inc.
+License: GPL-2+
+
+Files: lib/snprintf.c
+Copyright: 1988-1997 Patrick Powell, San Diego, CA
+License: Artistic-1.0
+
+Files: po/da.po
+Copyright: 2002 Mogens Jæger <mogensjaeger@get2net.dk>
+License: GPL-2+
+
+Files: po/fi.po
+Copyright: 2006 Canonical Ltd, and Rosetta Contributors
+License: GPL-2+
+
+Files: po/fr.po
+Copyright: 1999-2000 Laurent Grawet <laurent.grawet@ibelgique.com>
+License: GPL-2+
+
+Files: po/ja.po
+Copyright: 2002 Kimizuka Tomokazu <sgtom@pluto.dti.ne.jp>
+License: GPL-2+
+
+Files: po/pl.po
+Copyright: 2002-2003 Piotr Gogolewski <docent@panoramix.net.pl>
+License: GPL-2+
+
+Files: po/pt.po
+ po/pt_BR.po
+Copyright: 2002-2004 Yujo Rodrigues <yujo@comp.ufu.br>
+License: GPL-2+
+
+Files: po/sv.po
+Copyright: 1999-2003 Johan Bengtsson <jb@goteborg.bostream.se>
+License: GPL-2+
+
+Files: po/vi.po
+Copyright: 2002-2003 Trinh Minh Thanh <tmthanh@yahoo.com>
+License: GPL-2+
+
+Files: po/zh.po
+ po/zh_CN.po
+Copyright: 2004 leolarrel <leolarrel@yahoo.com.tw>
License: GPL-2+
+Files: debian/*
+Copyright: 1999-2002 Oliver Rauch <Oliver.Rauch@xsane.org>
+ 2002-2011 Julien BLACHE <jblache@debian.org>
+ 2014 Jörg Frings-Fürst <debian@jff-webhsoting.net>
+License: GPL-3+
+
+Files: lib/alloca.c
+Copyright: D A Gwyn
+License: public-domain
+ (Mostly) portable public-domain implementation
+
+License: Artistic-1.0
+ Preamble
+ .
+ The intent of this document is to state the conditions under which a Package
+ may be copied, such that the Copyright Holder maintains some semblance of
+ artistic control over the development of the package, while giving the users
+ of the package the right to use and distribute the Package in a more-or-less
+ customary fashion, plus the right to make reasonable modifications.
+ .
+ Definitions:
+ .
+ "Package" refers to the collection of files distributed by the Copyright
+ Holder, and derivatives of that collection of files created through textual
+ modification.
+ .
+ "Standard Version" refers to such a Package if it has not been modified, or
+ has been modified in accordance with the wishes of the Copyright Holder.
+ .
+ "Copyright Holder" is whoever is named in the copyright or copyrights for the
+ package.
+ .
+ "You" is you, if you're thinking about copying or distributing this Package.
+ .
+ "Reasonable copying fee" is whatever you can justify on the basis of media
+ cost, duplication charges, time of people involved, and so on. (You will not
+ be required to justify it to the Copyright Holder, but only to the computing
+ community at large as a market that must bear the fee.)
+ .
+ "Freely Available" means that no fee is charged for the item itself, though
+ there may be fees involved in handling the item. It also means that recipients
+ of the item may redistribute it under the same conditions they received it.
+ .
+ 1. You may make and give away verbatim copies of the source form of the
+ Standard Version of this Package without restriction, provided that you
+ duplicate all of the original copyright notices and associated disclaimers.
+ .
+ 2. You may apply bug fixes, portability fixes and other modifications derived
+ from the Public Domain or from the Copyright Holder. A Package modified in
+ such a way shall still be considered the Standard Version.
+ .
+ 3. You may otherwise modify your copy of this Package in any way, provided that
+ you insert a prominent notice in each changed file stating how and when you
+ changed that file, and provided that you do at least ONE of the following:
+ .
+ a) place your modifications in the Public Domain or otherwise make them Freely
+ Available, such as by posting said modifications to Usenet or an equivalent
+ medium, or placing the modifications on a major archive site such as
+ ftp.uu.net, or by allowing the Copyright Holder to include your modifications
+ in the Standard Version of the Package.
+ b) use the modified Package only within your corporation or organization.
+ c) rename any non-standard executables so the names do not conflict with
+ standard executables, which must also be provided, and provide a separate
+ manual page for each non-standard executable that clearly documents how it
+ differs from the Standard Version.
+ d) make other distribution arrangements with the Copyright Holder.
+ .
+ 4. You may distribute the programs of this Package in object code or
+ executable form, provided that you do at least ONE of the following:
+ .
+ a) distribute a Standard Version of the executables and library files,
+ together with instructions (in the manual page or equivalent) on where to
+ get the Standard Version.
+ b) accompany the distribution with the machine-readable source of the Package
+ with your modifications.
+ c) accompany any non-standard executables with their corresponding Standard
+ Version executables, giving the non-standard executables non-standard names,
+ and clearly documenting the differences in manual pages (or equivalent),
+ together with instructions on where to get the Standard Version.
+ d) make other distribution arrangements with the Copyright Holder.
+ .
+ 5. You may charge a reasonable copying fee for any distribution of this
+ Package. You may charge any fee you choose for support of this Package. You
+ may not charge a fee for this Package itself. However, you may distribute this
+ Package in aggregate with other (possibly commercial) programs as part of a
+ larger (possibly commercial) software distribution provided that you do not
+ advertise this Package as a product of your own.
+ .
+ 6. The scripts and library files supplied as input to or produced as output
+ from the programs of this Package do not automatically fall under the
+ copyright of this Package, but belong to whomever generated them, and may be
+ sold commercially, and may be aggregated with this Package.
+ .
+ 7. C or perl subroutines supplied by you and linked into this Package shall
+ not be considered part of this Package.
+ .
+ 8. The name of the Copyright Holder may not be used to endorse or promote
+ products derived from this software without specific prior written permission.
+ .
+ 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+ MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
License: GPL-2+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ The complete text of the GNU General Public License
+ can be found in /usr/share/common-licenses/GPL-2 file.
+
+License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
@@ -29,4 +197,4 @@ License: GPL-2+
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
- Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/patches/desktop_file.patch b/debian/patches/desktop_file.patch
new file mode 100644
index 0000000..43e57bd
--- /dev/null
+++ b/debian/patches/desktop_file.patch
@@ -0,0 +1,34 @@
+Description: insert missing tag Keywords and some other changes
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-10-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/src/xsane.desktop
+===================================================================
+--- trunk.orig/src/xsane.desktop
++++ trunk/src/xsane.desktop
+@@ -1,9 +1,19 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+-Name=XSane - Scanning
+-Comment=Acquire images from a scanner
++Name=XSane Image scanning program
++Name[ru]=Программа для сканирования изображений
++Name[ca]=Programa d'escaneig d'imatges XSane
++Name[es]=Programa de escaneo de imágenes XSane
++Name[fr]=Programme d'acquisition d'images XSane
++Comment=A program to work with scanner. Can be used as a scanning, copier, OCR, fax tools.
++Comment[ru]=Программа для работы со сканером. Может быть использована в качестве копировального аппарата, факса, и др.
++Comment[ca]=Un programa per a treballar amb escànners. Es pot utilitzar com una eina d'escanejat, copiat, OCR i fax.
++Comment[es]=Un programa para trabajar con escáners. Se puede utilizar como una herramienta para escanear, copiar, OCR y fax.
++Comment[fr]=Un programme d'acquisition d'images pour votre scanner. Peut également photocopier, faxer ou faire de la reconnaissance de caractères.
+ Exec=xsane
+ Icon=xsane
+ Terminal=false
+ Type=Application
+-Categories=Application;Graphics
++Categories=Application;Graphics;GTK;RasterGraphics;Scanning;OCR;2DGraphics;
++Keywords=scannerfrontend
++StartupNotify=true
++
diff --git a/debian/patches/lcms2_configure.patch b/debian/patches/lcms2_configure.patch
new file mode 100644
index 0000000..66612c8
--- /dev/null
+++ b/debian/patches/lcms2_configure.patch
@@ -0,0 +1,744 @@
+Description: patch confgure becase broken autoreconf
+Author: Nils Philippsen <nphilipp@fedoraproject.org>
+Last-Update: 2014-10-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/configure
+===================================================================
+--- trunk.orig/configure
++++ trunk/configure
+@@ -1,11 +1,9 @@
+ #! /bin/sh
+ # Guess values for system-dependent variables and create Makefiles.
+-# Generated by GNU Autoconf 2.68.
++# Generated by GNU Autoconf 2.69.
+ #
+ #
+-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
+-# Foundation, Inc.
++# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
+ #
+ #
+ # This configure script is free software; the Free Software Foundation
+@@ -134,6 +132,31 @@ export LANGUAGE
+ # CDPATH.
+ (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
++# Use a proper internal environment variable to ensure we don't fall
++ # into an infinite loop, continuously re-executing ourselves.
++ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
++ _as_can_reexec=no; export _as_can_reexec;
++ # We cannot yet assume a decent shell, so we have to provide a
++# neutralization value for shells without unset; and this also
++# works around shells that cannot unset nonexistent variables.
++# Preserve -v and -x to the replacement shell.
++BASH_ENV=/dev/null
++ENV=/dev/null
++(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
++case $- in # ((((
++ *v*x* | *x*v* ) as_opts=-vx ;;
++ *v* ) as_opts=-v ;;
++ *x* ) as_opts=-x ;;
++ * ) as_opts= ;;
++esac
++exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
++# Admittedly, this is quite paranoid, since all the known shells bail
++# out after a failed `exec'.
++$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
++as_fn_exit 255
++ fi
++ # We don't want this to propagate to other subprocesses.
++ { _as_can_reexec=; unset _as_can_reexec;}
+ if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+@@ -167,7 +190,8 @@ if ( set x; as_fn_ret_success y && test
+ else
+ exitcode=1; echo positional parameters were not saved.
+ fi
+-test x\$exitcode = x0 || exit 1"
++test x\$exitcode = x0 || exit 1
++test -x / || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+@@ -212,6 +236,7 @@ IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
++ export CONFIG_SHELL
+ # We cannot yet assume a decent shell, so we have to provide a
+ # neutralization value for shells without unset; and this also
+ # works around shells that cannot unset nonexistent variables.
+@@ -219,14 +244,17 @@ IFS=$as_save_IFS
+ BASH_ENV=/dev/null
+ ENV=/dev/null
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+- export CONFIG_SHELL
+ case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+ esac
+- exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
++exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
++# Admittedly, this is quite paranoid, since all the known shells bail
++# out after a failed `exec'.
++$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
++exit 255
+ fi
+
+ if test x$as_have_required = xno; then :
+@@ -328,6 +356,14 @@ $as_echo X"$as_dir" |
+
+
+ } # as_fn_mkdir_p
++
++# as_fn_executable_p FILE
++# -----------------------
++# Test if FILE is an executable regular file.
++as_fn_executable_p ()
++{
++ test -f "$1" && test -x "$1"
++} # as_fn_executable_p
+ # as_fn_append VAR VALUE
+ # ----------------------
+ # Append the text in VALUE to the end of the definition contained in VAR. Take
+@@ -449,6 +485,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
++ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
++ # already done that, so ensure we don't try to do so again and fall
++ # in an infinite loop. This has already happened in practice.
++ _as_can_reexec=no; export _as_can_reexec
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+@@ -483,16 +523,16 @@ if (echo >conf$$.file) 2>/dev/null; then
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+- # In both cases, we have to default to `cp -p'.
++ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+- as_ln_s='cp -p'
++ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+- as_ln_s='cp -p'
++ as_ln_s='cp -pR'
+ fi
+ else
+- as_ln_s='cp -p'
++ as_ln_s='cp -pR'
+ fi
+ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+ rmdir conf$$.dir 2>/dev/null
+@@ -504,28 +544,8 @@ else
+ as_mkdir_p=false
+ fi
+
+-if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+-else
+- if ls -dL / >/dev/null 2>&1; then
+- as_ls_L_option=L
+- else
+- as_ls_L_option=
+- fi
+- as_test_x='
+- eval sh -c '\''
+- if test -d "$1"; then
+- test -d "$1/.";
+- else
+- case $1 in #(
+- -*)set "./$1";;
+- esac;
+- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+- ???[sx]*):;;*)false;;esac;fi
+- '\'' sh
+- '
+-fi
+-as_executable_p=$as_test_x
++as_executable_p=as_fn_executable_p
+
+ # Sed expression to map a string onto a valid CPP name.
+ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+@@ -1192,8 +1212,6 @@ target=$target_alias
+ if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
+- If a cross compiler is detected then cross compile mode will be used" >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+@@ -1451,9 +1469,9 @@ test -n "$ac_init_help" && exit $ac_stat
+ if $ac_init_version; then
+ cat <<\_ACEOF
+ configure
+-generated by GNU Autoconf 2.68
++generated by GNU Autoconf 2.69
+
+-Copyright (C) 2010 Free Software Foundation, Inc.
++Copyright (C) 2012 Free Software Foundation, Inc.
+ This configure script is free software; the Free Software Foundation
+ gives unlimited permission to copy, distribute and modify it.
+ _ACEOF
+@@ -1726,7 +1744,7 @@ $as_echo "$ac_try_echo"; } >&5
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+- $as_test_x conftest$ac_exeext
++ test -x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+ else
+@@ -1870,7 +1888,7 @@ This file contains any messages produced
+ running configure, to aid debugging if configure makes a mistake.
+
+ It was created by $as_me, which was
+-generated by GNU Autoconf 2.68. Invocation command line was
++generated by GNU Autoconf 2.69. Invocation command line was
+
+ $ $0 $@
+
+@@ -2377,7 +2395,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -2417,7 +2435,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -2470,7 +2488,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -2511,7 +2529,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+@@ -2569,7 +2587,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -2613,7 +2631,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -3059,8 +3077,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
+ /* end confdefs.h. */
+ #include <stdarg.h>
+ #include <stdio.h>
+-#include <sys/types.h>
+-#include <sys/stat.h>
++struct stat;
+ /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+ struct buf { int x; };
+ FILE * (*rcsopen) (struct buf *, struct stat *, int);
+@@ -3300,7 +3317,7 @@ do
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
++ as_fn_executable_p "$ac_path_GREP" || continue
+ # Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+ case `"$ac_path_GREP" --version 2>&1` in
+@@ -3366,7 +3383,7 @@ do
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
++ as_fn_executable_p "$ac_path_EGREP" || continue
+ # Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+ case `"$ac_path_EGREP" --version 2>&1` in
+@@ -3684,7 +3701,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -3724,7 +3741,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -3777,7 +3794,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -3818,7 +3835,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+@@ -3876,7 +3893,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -3920,7 +3937,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -4116,8 +4133,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
+ /* end confdefs.h. */
+ #include <stdarg.h>
+ #include <stdio.h>
+-#include <sys/types.h>
+-#include <sys/stat.h>
++struct stat;
+ /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+ struct buf { int x; };
+ FILE * (*rcsopen) (struct buf *, struct stat *, int);
+@@ -4271,7 +4287,7 @@ case $as_dir/ in #((
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+@@ -4732,11 +4748,11 @@ else
+ int
+ main ()
+ {
+-/* FIXME: Include the comments suggested by Paul. */
++
+ #ifndef __cplusplus
+- /* Ultrix mips cc rejects this. */
++ /* Ultrix mips cc rejects this sort of thing. */
+ typedef int charset[2];
+- const charset cs;
++ const charset cs = { 0, 0 };
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+@@ -4753,8 +4769,9 @@ main ()
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+- { /* SCO 3.2v4 cc rejects this. */
+- char *t;
++ { /* SCO 3.2v4 cc rejects this sort of thing. */
++ char tx;
++ char *t = &tx;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+@@ -4770,10 +4787,10 @@ main ()
+ iptr p = 0;
+ ++p;
+ }
+- { /* AIX XL C 1.02.0.0 rejects this saying
++ { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+- struct s { int j; const int *ap[3]; };
+- struct s *b; b->j = 5;
++ struct s { int j; const int *ap[3]; } bx;
++ struct s *b = &bx; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+@@ -5132,13 +5149,12 @@ fi
+ fi
+
+ if test "${USE_LCMS}" = "yes"; then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
+-$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
+-if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cmsOpenProfileFromFile" >&5
++$as_echo_n "checking for library containing cmsOpenProfileFromFile... " >&6; }
++if ${ac_cv_search_cmsOpenProfileFromFile+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-llcms $LIBS"
++ ac_func_search_save_LIBS=$LIBS
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -5157,26 +5173,54 @@ return cmsOpenProfileFromFile ();
+ return 0;
+ }
+ _ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
++for ac_lib in '' lcms2 lcms; do
++ if test -z "$ac_lib"; then
++ ac_res="none required"
+ else
+- ac_cv_lib_lcms_cmsOpenProfileFromFile=no
++ ac_res=-l$ac_lib
++ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
++ fi
++ if ac_fn_c_try_link "$LINENO"; then :
++ ac_cv_search_cmsOpenProfileFromFile=$ac_res
+ fi
+ rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++ conftest$ac_exeext
++ if ${ac_cv_search_cmsOpenProfileFromFile+:} false; then :
++ break
+ fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
+-$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
+-if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBLCMS 1
+-_ACEOF
++done
++if ${ac_cv_search_cmsOpenProfileFromFile+:} false; then :
++
++else
++ ac_cv_search_cmsOpenProfileFromFile=no
++fi
++rm conftest.$ac_ext
++LIBS=$ac_func_search_save_LIBS
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cmsOpenProfileFromFile" >&5
++$as_echo "$ac_cv_search_cmsOpenProfileFromFile" >&6; }
++ac_res=$ac_cv_search_cmsOpenProfileFromFile
++if test "$ac_res" != no; then :
++ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+- LIBS="-llcms $LIBS"
++fi
++
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" != "no"; then
++
++$as_echo "#define HAVE_LIBLCMS 1" >>confdefs.h
+
+ fi
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms2"; then
+
++$as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
++
++ else
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" == "-llcms"; then
++
++$as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
++
++fi
++ fi
+ fi
+
+ # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+@@ -5330,23 +5374,20 @@ else
+ /* end confdefs.h. */
+ $ac_includes_default
+ int
+-find_stack_direction ()
+-{
+- static char *addr = 0;
+- auto char dummy;
+- if (addr == 0)
++find_stack_direction (int *addr, int depth)
+ {
++ int dir, dummy = 0;
++ if (! addr)
+ addr = &dummy;
+- return find_stack_direction ();
+- }
+- else
+- return (&dummy > addr) ? 1 : -1;
++ *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
++ dir = depth ? find_stack_direction (addr, depth - 1) : 0;
++ return dir + dummy;
+ }
+
+ int
+-main ()
++main (int argc, char **argv)
+ {
+- return find_stack_direction () < 0;
++ return find_stack_direction (0, argc + !argv + 20) < 0;
+ }
+ _ACEOF
+ if ac_fn_c_try_run "$LINENO"; then :
+@@ -5599,7 +5640,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -5639,7 +5680,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -5971,7 +6012,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -6136,7 +6177,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -6177,7 +6218,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -6350,7 +6391,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -6574,7 +6615,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_SANE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -6795,7 +6836,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -7058,7 +7099,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -7346,7 +7387,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -7616,7 +7657,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GIMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -7670,7 +7711,7 @@ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_GIMP_TOOL="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+@@ -8496,16 +8537,16 @@ if (echo >conf$$.file) 2>/dev/null; then
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+- # In both cases, we have to default to `cp -p'.
++ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+- as_ln_s='cp -p'
++ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+- as_ln_s='cp -p'
++ as_ln_s='cp -pR'
+ fi
+ else
+- as_ln_s='cp -p'
++ as_ln_s='cp -pR'
+ fi
+ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+ rmdir conf$$.dir 2>/dev/null
+@@ -8565,28 +8606,16 @@ else
+ as_mkdir_p=false
+ fi
+
+-if test -x / >/dev/null 2>&1; then
++
++# as_fn_executable_p FILE
++# -----------------------
++# Test if FILE is an executable regular file.
++as_fn_executable_p ()
++{
++ test -f "$1" && test -x "$1"
++} # as_fn_executable_p
+ as_test_x='test -x'
+-else
+- if ls -dL / >/dev/null 2>&1; then
+- as_ls_L_option=L
+- else
+- as_ls_L_option=
+- fi
+- as_test_x='
+- eval sh -c '\''
+- if test -d "$1"; then
+- test -d "$1/.";
+- else
+- case $1 in #(
+- -*)set "./$1";;
+- esac;
+- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+- ???[sx]*):;;*)false;;esac;fi
+- '\'' sh
+- '
+-fi
+-as_executable_p=$as_test_x
++as_executable_p=as_fn_executable_p
+
+ # Sed expression to map a string onto a valid CPP name.
+ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+@@ -8608,7 +8637,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
+ # values after options handling.
+ ac_log="
+ This file was extended by $as_me, which was
+-generated by GNU Autoconf 2.68. Invocation command line was
++generated by GNU Autoconf 2.69. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+@@ -8674,10 +8703,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
+ ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ ac_cs_version="\\
+ config.status
+-configured by $0, generated by GNU Autoconf 2.68,
++configured by $0, generated by GNU Autoconf 2.69,
+ with options \\"\$ac_cs_config\\"
+
+-Copyright (C) 2010 Free Software Foundation, Inc.
++Copyright (C) 2012 Free Software Foundation, Inc.
+ This config.status script is free software; the Free Software Foundation
+ gives unlimited permission to copy, distribute and modify it."
+
+@@ -8766,7 +8795,7 @@ fi
+ _ACEOF
+ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ if \$ac_cs_recheck; then
+- set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
++ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+@@ -9463,11 +9492,15 @@ else
+ echo "* - PNG support deactivated *"
+ fi
+
+-if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile}" = "yes"; then
+- echo "* - LCMS (color management) support activated *"
++if test "${ac_cv_search_cmsOpenProfileFromFile}" = "-llcms2"; then
++ echo "* - LCMS (color management) support activated (lcms2) *"
++else
++ if test "${ac_cv_search_cmsOpenProfileFromFile}" = "-llcms"; then
++ echo "* - LCMS (color management) support activated (lcms) *"
+ else
+ echo "* - LCMS (color management) support deactivated *"
+ fi
++fi
+
+ echo "* *"
+ echo "****************************************************************"
+@@ -9481,4 +9514,4 @@ echo "* --------------------------------
+ echo "* ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... *"
+ echo "* ------------------------------------------------------------ *"
+ echo "****************************************************************"
+-cat xsane.NEWS
++cat ${srcdir}/xsane.NEWS
diff --git a/debian/patches/series b/debian/patches/series
index ee4fd81..1b35186 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,6 @@
+desktop_file.patch
+typo.patch
+typo_manpage.patch
deb_printing_defaults.patch
deb_docviewer.patch
deb_gimp_acquire_menu.patch
@@ -14,4 +17,5 @@ fix_spin_button_pagesize.patch
fix_tighten_default_umask.patch
fix_png15.patch
deb_non_working_help_menu.patch
-lcms2.patch
+xsane-0.999-lcms2.patch
+lcms2_configure.patch
diff --git a/debian/patches/typo.patch b/debian/patches/typo.patch
new file mode 100644
index 0000000..8864cd7
--- /dev/null
+++ b/debian/patches/typo.patch
@@ -0,0 +1,41 @@
+Description: correct some typos in source
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-10-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/src/xsane-text.h
+===================================================================
+--- trunk.orig/src/xsane-text.h
++++ trunk/src/xsane-text.h
+@@ -854,7 +854,7 @@ The format of [DEVICE] is backendname:de
+ -n, --no-mode-selection disable menu for XSane mode selection\n\
+ \n\
+ -F, --Fixed fixed main window size (overwrite preferences value)\n\
+- -R, --Resizeable resizable, scrolled main window (overwrite preferences value)\n\
++ -R, --Resizable resizable, scrolled main window (overwrite preferences value)\n\
+ \n\
+ -p, --print-filenames print image filenames created by XSane\n\
+ -N, --force-filename name force filename and disable user filename selection\n\
+Index: trunk/src/xsane.c
+===================================================================
+--- trunk.orig/src/xsane.c
++++ trunk/src/xsane.c
+@@ -67,7 +67,7 @@ struct option long_options[] =
+ #endif
+ {"no-mode-selection", no_argument, 0, 'n'},
+ {"Fixed", no_argument, 0, 'F'},
+- {"Resizeable", no_argument, 0, 'R'},
++ {"Resizable", no_argument, 0, 'R'},
+ {"print-filenames", no_argument, 0, 'p'},
+ {"force-filename", required_argument, 0, 'N'},
+ {0, }
+@@ -5787,7 +5787,7 @@ static int xsane_init(int argc, char **a
+ xsane.main_window_fixed = 1;
+ break;
+
+- case 'R': /* --Resizeable */
++ case 'R': /* --Resizable */
+ xsane.main_window_fixed = 0;
+ break;
+
diff --git a/debian/patches/typo_manpage.patch b/debian/patches/typo_manpage.patch
new file mode 100644
index 0000000..371d675
--- /dev/null
+++ b/debian/patches/typo_manpage.patch
@@ -0,0 +1,57 @@
+Description: correct some typos in man page
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-10-17
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/doc/xsane.man
+===================================================================
+--- trunk.orig/doc/xsane.man
++++ trunk/doc/xsane.man
+@@ -57,38 +57,38 @@ To run
+ under the
+ .BR gimp (1),
+ you should at first make sure that xsane is
+-compiled with gimp support by entering "xsane -v" on a shell.
++compiled with gimp support by entering "xsane \-v" on a shell.
+ If xsane is compiled with gimp support then simply set a
+ symbolic link from the xsane-binary to one of the
+ .BR gimp (1)
+-plug-ins directories. For example, for gimp-1.0.x the command
++plug-ins directories. For example, for gimp\-1.0.x the command
+ .PP
+ .RS
+-ln -s @BINDIR@/xsane ~/.gimp/plug-ins/
++ln \-s @BINDIR@/xsane ~/.gimp/plug\-ins/
+ .RE
+ .PP
+ for gimp 1.2.x the command:
+ .PP
+ .RS
+-ln -s @BINDIR@/xsane ~/.gimp-1.2/plug-ins/
++ln \-s @BINDIR@/xsane ~/.gimp\-1.2/plug\-ins/
+ .RE
+ .PP
+ and for gimp 2.0.x the command:
+ .PP
+ .RS
+-ln -s @BINDIR@/xsane ~/.gimp-2.0/plug-ins/
++ln \-s @BINDIR@/xsane ~/.gimp\-2.0/plug\-ins/
+ .RE
+ .PP
+ adds a symlink for the
+ .B xsane
+-binary to the user's plug-ins directory. After creating this symlink,
++binary to the user's plug\-ins directory. After creating this symlink,
+ .B xsane
+ will be queried by
+ .BR gimp (1)
+ the next time it's invoked. From then on,
+ .B xsane
+-can be invoked through "Xtns->XSane->Device dialog..." (gimp-1.0.x) or through
+-"File->Acquire->XSane->Device dialog..." (gimp-1.2.x and 2.0.x) menu entry.
++can be invoked through "Xtns->XSane->Device dialog..." (gimp\-1.0.x) or through
++"File->Acquire->XSane->Device dialog..." (gimp\-1.2.x and 2.0.x) menu entry.
+
+ You'll also find that the "Xtns->XSane" or "File->Acquire->XSane" menu contains
+ short-cuts to the SANE devices that were available at the time the
diff --git a/debian/patches/lcms2.patch b/debian/patches/xsane-0.999-lcms2.patch
index 497fccb..f18709c 100644
--- a/debian/patches/lcms2.patch
+++ b/debian/patches/xsane-0.999-lcms2.patch
@@ -1,8 +1,15 @@
-Subject: Add support for lcms 2
+From 30af0e2edbf061b71bed9536d826894449f0390d Mon Sep 17 00:00:00 2001
+From: Nils Philippsen <nils@redhat.com>
+Date: Mon, 23 Sep 2013 16:11:31 +0200
+Subject: [PATCH] patch: lcms2
+
+Squashed commit of the following:
+
+commit f975accf7e1a08438b63580ea848457d373200f5
Author: Nils Philippsen <nils@redhat.com>
-Bug-Debian: https://bugs.debian.org/745524
-Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
+Date: Mon Sep 23 14:53:45 2013 +0200
+ Add support for lcms 2.x.
---
configure.in | 22 ++++++++++++++----
include/config.h.in | 8 ++++++-
@@ -12,9 +19,11 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
src/xsane.h | 8 ++++++-
6 files changed, 130 insertions(+), 17 deletions(-)
+diff --git a/configure.in b/configure.in
+index df7b114..3659c97 100644
--- a/configure.in
+++ b/configure.in
-@@ -130,7 +130,17 @@
+@@ -130,7 +130,17 @@ if test "${USE_TIFF}" = "yes"; then
fi
if test "${USE_LCMS}" = "yes"; then
@@ -33,7 +42,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
fi
dnl Checks for library functions.
-@@ -294,10 +304,14 @@
+@@ -294,10 +304,14 @@ else
echo "* - PNG support deactivated *"
fi
@@ -51,6 +60,8 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
fi
echo "* *"
+diff --git a/include/config.h.in b/include/config.h.in
+index ecc9637..f9a3e40 100755
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -290,9 +290,15 @@
@@ -70,9 +81,11 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
#ifndef HAVE_STRNCASECMP
/* OS/2 needs this */
# define strncasecmp(a, b, c) strnicmp(a, b, c)
+diff --git a/src/xsane-preview.c b/src/xsane-preview.c
+index 6327ca7..6eaf687 100644
--- a/src/xsane-preview.c
+++ b/src/xsane-preview.c
-@@ -6346,8 +6346,8 @@
+@@ -6346,8 +6346,8 @@ int preview_do_color_correction(Preview *p)
cmsHPROFILE hOutProfile = NULL;
cmsHPROFILE hProofProfile = NULL;
cmsHTRANSFORM hTransform = NULL;
@@ -83,7 +96,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
int proof = 0;
char *cms_proof_icm_profile = NULL;
int linesize = 0;
-@@ -6355,7 +6355,9 @@
+@@ -6355,7 +6355,9 @@ int preview_do_color_correction(Preview *p)
DBG(DBG_proc, "preview_do_color_correction\n");
@@ -93,9 +106,11 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (preferences.cms_bpc)
{
+diff --git a/src/xsane-save.c b/src/xsane-save.c
+index 75e0a63..2d0e44b 100644
--- a/src/xsane-save.c
+++ b/src/xsane-save.c
-@@ -832,9 +832,9 @@
+@@ -832,9 +832,9 @@ cmsHTRANSFORM xsane_create_cms_transform(Image_info *image_info, int cms_functio
cmsHPROFILE hInProfile = NULL;
cmsHPROFILE hOutProfile = NULL;
cmsHTRANSFORM hTransform = NULL;
@@ -108,7 +123,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (cms_function == XSANE_CMS_FUNCTION_EMBED_SCANNER_ICM_PROFILE)
{
-@@ -843,7 +843,9 @@
+@@ -843,7 +843,9 @@ cmsHTRANSFORM xsane_create_cms_transform(Image_info *image_info, int cms_functio
DBG(DBG_info, "Prepare CMS transform\n");
@@ -118,7 +133,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (cms_bpc)
{
-@@ -890,10 +892,18 @@
+@@ -890,10 +892,18 @@ cmsHTRANSFORM xsane_create_cms_transform(Image_info *image_info, int cms_functio
if (image_info->channels == 1) /* == 1 (grayscale) */
{
#if 1 /* xxx oli */
@@ -137,7 +152,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
#endif
}
else
-@@ -2904,7 +2914,11 @@
+@@ -2896,7 +2906,11 @@ static int xsane_write_CSA(FILE *outfile, char *input_profile, int intent)
return -1;
}
@@ -149,7 +164,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (n == 0)
{
return -2;
-@@ -2916,7 +2930,11 @@
+@@ -2908,7 +2922,11 @@ static int xsane_write_CSA(FILE *outfile, char *input_profile, int intent)
return -3;
}
@@ -161,7 +176,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
buffer[n] = 0;
fprintf(outfile, "%s", buffer);
-@@ -2935,7 +2953,7 @@
+@@ -2927,7 +2945,7 @@ static int xsane_write_CRD(FILE *outfile, char *output_profile, int intent, int
cmsHPROFILE hProfile;
size_t n;
char* buffer;
@@ -170,7 +185,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
hProfile = cmsOpenProfileFromFile(output_profile, "r");
if (!hProfile)
-@@ -2948,7 +2966,11 @@
+@@ -2940,7 +2958,11 @@ static int xsane_write_CRD(FILE *outfile, char *output_profile, int intent, int
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
}
@@ -182,7 +197,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (n == 0)
{
return -2;
-@@ -2960,7 +2982,11 @@
+@@ -2952,7 +2974,11 @@ static int xsane_write_CRD(FILE *outfile, char *output_profile, int intent, int
return -3;
}
@@ -194,7 +209,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
buffer[n] = 0;
fprintf(outfile, "%s", buffer);
-@@ -4352,7 +4378,7 @@
+@@ -4349,7 +4375,7 @@ static void xsane_jpeg_embed_scanner_icm_profile(j_compress_ptr cinfo_ptr, const
{
FILE *icm_profile;
size_t size, embed_len;
@@ -203,7 +218,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
DBG(DBG_proc, "xsane_jpeg_embed_scanner_icm_profile(%s)\n", icm_filename);
-@@ -4366,7 +4392,7 @@
+@@ -4363,7 +4389,7 @@ static void xsane_jpeg_embed_scanner_icm_profile(j_compress_ptr cinfo_ptr, const
size = ftell(icm_profile);
fseek(icm_profile, 0, SEEK_SET);
@@ -212,9 +227,11 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (embed_buffer)
{
embed_len = fread(embed_buffer, 1, size, icm_profile);
+diff --git a/src/xsane-viewer.c b/src/xsane-viewer.c
+index 69a444d..844c077 100644
--- a/src/xsane-viewer.c
+++ b/src/xsane-viewer.c
-@@ -1795,6 +1795,9 @@
+@@ -1795,6 +1795,9 @@ static void xsane_viewer_set_cms_gamut_alarm_color_callback(GtkWidget *widget, g
{
Viewer *v = (Viewer *) data;
int val;
@@ -224,7 +241,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
g_signal_handlers_block_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[0]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
g_signal_handlers_block_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[1]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
-@@ -1811,6 +1814,49 @@
+@@ -1811,6 +1814,49 @@ static void xsane_viewer_set_cms_gamut_alarm_color_callback(GtkWidget *widget, g
v->cms_gamut_alarm_color = val;
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(v->cms_gamut_alarm_color_widget[v->cms_gamut_alarm_color]), TRUE);
@@ -274,7 +291,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
switch(v->cms_gamut_alarm_color)
{
default:
-@@ -1838,6 +1884,7 @@
+@@ -1838,6 +1884,7 @@ static void xsane_viewer_set_cms_gamut_alarm_color_callback(GtkWidget *widget, g
cmsSetAlarmCodes(0, 0, 255);
break;
}
@@ -282,7 +299,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
g_signal_handlers_unblock_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[0]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
g_signal_handlers_unblock_by_func(GTK_OBJECT(v->cms_gamut_alarm_color_widget[1]), (GtkSignalFunc) xsane_viewer_set_cms_gamut_alarm_color_callback, v);
-@@ -2172,9 +2219,9 @@
+@@ -2172,9 +2219,9 @@ static int xsane_viewer_read_image(Viewer *v)
cmsHTRANSFORM hTransform = NULL;
int proof = 0;
char *cms_proof_icm_profile = NULL;
@@ -295,7 +312,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
#endif
/* open imagefile */
-@@ -2203,7 +2250,9 @@
+@@ -2203,7 +2250,9 @@ static int xsane_viewer_read_image(Viewer *v)
if ((v->enable_color_management) && (v->cms_enable))
{
@@ -305,7 +322,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (v->cms_bpc)
{
-@@ -2801,6 +2850,9 @@
+@@ -2801,6 +2850,9 @@ Viewer *xsane_viewer_new(char *filename, char *selection_filetype, int allow_red
GtkWidget *scrolled_window;
GtkWidget *zoom_option_menu, *zoom_menu, *zoom_menu_item;
int i, selection;
@@ -315,7 +332,7 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
DBG(DBG_proc, "viewer_new(%s)\n", filename);
-@@ -2830,8 +2882,15 @@
+@@ -2830,8 +2882,15 @@ Viewer *xsane_viewer_new(char *filename, char *selection_filetype, int allow_red
v->cms_proofing_intent = INTENT_ABSOLUTE_COLORIMETRIC;
v->cms_gamut_check = 0;
v->cms_gamut_alarm_color = 3; /* red */
@@ -331,6 +348,8 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
if (selection_filetype)
{
v->selection_filetype = strdup(selection_filetype);
+diff --git a/src/xsane.h b/src/xsane.h
+index 4067d61..adcc0ed 100644
--- a/src/xsane.h
+++ b/src/xsane.h
@@ -70,7 +70,13 @@
@@ -348,3 +367,5 @@ Last-Update: Mon, 23 Sep 2013 16:11:31 +0200
#else
# define cmsHTRANSFORM void *
#endif
+--
+1.8.3.1
diff --git a/debian/rules b/debian/rules
index d6fe262..9b9327c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,8 @@
#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with autotools_dev
diff --git a/debian/watch b/debian/watch
index 03cefce..fc20d43 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
version=3
-http://xsane.org/download xsane-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
+http://xsane.org/download xsane-(.+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
diff --git a/debian/xsane-common.install b/debian/xsane-common.install
index 9c222b8..d18bbb8 100644
--- a/debian/xsane-common.install
+++ b/debian/xsane-common.install
@@ -1,2 +1,2 @@
-usr/share/locale
usr/share/sane/xsane
+usr/share/locale
diff --git a/debian/xsane.desktop b/debian/xsane.desktop
deleted file mode 100644
index 604b022..0000000
--- a/debian/xsane.desktop
+++ /dev/null
@@ -1,17 +0,0 @@
-[Desktop Entry]
-Name=XSane Image scanning program
-Name[ru]=Программа для сканирования изображений
-Name[ca]=Programa d'escaneig d'imatges XSane
-Name[es]=Programa de escaneo de imágenes XSane
-Name[fr]=Programme d'acquisition d'images XSane
-Comment=A program to work with scanner. Can be used as a scanning, copier, OCR, fax tools.
-Comment[ru]=Программа для работы со сканером. Может быть использована в качестве копировального аппарата, факса, и др.
-Comment[ca]=Un programa per a treballar amb escànners. Es pot utilitzar com una eina d'escanejat, copiat, OCR i fax.
-Comment[es]=Un programa para trabajar con escáners. Se puede utilizar como una herramienta para escanear, copiar, OCR y fax.
-Comment[fr]=Un programme d'acquisition d'images pour votre scanner. Peut également photocopier, faxer ou faire de la reconnaissance de caractères.
-Exec=xsane
-Icon=xsane
-Terminal=false
-Type=Application
-Categories=GTK;Graphics;RasterGraphics;Scanning;OCR;2DGraphics;
-StartupNotify=true
diff --git a/debian/xsane.install b/debian/xsane.install
index da5aa1d..a5366dc 100644
--- a/debian/xsane.install
+++ b/debian/xsane.install
@@ -1,4 +1,4 @@
-debian/xsane.desktop usr/share/applications
+src/xsane.desktop usr/share/applications
debian/xsane.png usr/share/icons/hicolor/256x256/apps
usr/bin
usr/share/man
diff --git a/include/config.h b/include/config.h
deleted file mode 100644
index 03f6a0f..0000000
--- a/include/config.h
+++ /dev/null
@@ -1,307 +0,0 @@
-/* include/config.h. Generated from config.h.in by configure. */
-#ifndef SANE_CONFIG_H
-#define SANE_CONFIG_H
-
-/* Define if on AIX 3.
- System headers sometimes define this.
- We just want to avoid a redefinition error message. */
-#ifndef _ALL_SOURCE
-#define _ALL_SOURCE 1
-#endif
-
-/* Define if using alloca.c. */
-/* #undef C_ALLOCA */
-
-/* Define to empty if the keyword does not work. */
-/* #undef const */
-
-/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
- This function is required for alloca.c support on those systems. */
-/* #undef CRAY_STACKSEG_END */
-
-/* Define if you have alloca, as a function or macro. */
-#define HAVE_ALLOCA 1
-
-/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
-#define HAVE_ALLOCA_H 1
-
-/* Define if you have a working `mmap' system call. */
-#define HAVE_MMAP 1
-
-/* Define as __inline if that's what the C compiler calls it. */
-/* #undef inline */
-
-/* Define if on MINIX. */
-/* #undef _MINIX */
-
-/* Define to `long' if <sys/types.h> doesn't define. */
-/* #undef off_t */
-
-/* Define if the system does not provide POSIX.1 features except
- with this defined. */
-/* #undef _POSIX_1_SOURCE */
-
-/* Define if you need to in order for stat and other things to work. */
-/* #undef _POSIX_SOURCE */
-
-/* Define to `unsigned' if <sys/types.h> doesn't define. */
-/* #undef size_t */
-
-/* Define to `unsigned char' if <sys/types.h> doesn't define. */
-/* #undef u_char */
-
-/* Define to `unsigned int' if <sys/types.h> doesn't define. */
-/* #undef u_int */
-
-/* Define to `unsigned long' if <sys/types.h> doesn't define. */
-/* #undef u_long */
-
-/* Define to `long' if <sys/types.h> doesn't define. */
-/* #undef ssize_t */
-
-/* Define to `int' if <sys/types.h> doesn't define. */
-/* #undef pid_t */
-
-/* Define scsireq_t as `struct scsireq' if necessary. */
-/* #undef scsireq_t */
-
-/* Define to the return type of signal handlers. */
-#define RETSIGTYPE void
-
-/* If using the C implementation of alloca, define if you know the
- direction of stack growth for your system; otherwise it will be
- automatically deduced at run-time.
- STACK_DIRECTION > 0 => grows toward higher addresses
- STACK_DIRECTION < 0 => grows toward lower addresses
- STACK_DIRECTION = 0 => direction of growth unknown
- */
-/* #undef STACK_DIRECTION */
-
-/* Define if you have the ANSI C header files. */
-#define STDC_HEADERS 1
-
-/* Define to 1 if NLS is requested. */
-#define ENABLE_NLS 1
-
-/* Define as 1 if you have catgets and don't want to use GNU gettext. */
-/* #undef HAVE_CATGETS */
-
-/* Define as 1 if you have gettext and don't want to use GNU gettext. */
-#define HAVE_GETTEXT 1
-
-/* Define if your locale.h file contains LC_MESSAGES. */
-#define HAVE_LC_MESSAGES 1
-
-/* Define to 1 if you have the stpcpy function. */
-#define HAVE_STPCPY 1
-
-/* Define to the name of the distribution. */
-#define PACKAGE "xsane"
-
-/* Define to the version of the distribution. */
-#define VERSION "0.999"
-
-/* The concatenation of the strings PACKAGE, "-", and VERSION. */
-#define XSANE_PACKAGE_VERSION "xsane-0.999"
-
-/* Define if you have the __argz_count function. */
-#define HAVE___ARGZ_COUNT 1
-
-/* Define if you have the __argz_next function. */
-#define HAVE___ARGZ_NEXT 1
-
-/* Define if you have the __argz_stringify function. */
-#define HAVE___ARGZ_STRINGIFY 1
-
-/* Define if you have the atexit function. */
-#define HAVE_ATEXIT 1
-
-/* Define if you have the dcgettext function. */
-#define HAVE_DCGETTEXT 1
-
-/* Define if you have the getcwd function. */
-#define HAVE_GETCWD 1
-
-/* Define if you have the getpagesize function. */
-#define HAVE_GETPAGESIZE 1
-
-/* Define if you have the lstat function. */
-#define HAVE_LSTAT 1
-
-/* Define if you have the mkdir function. */
-#define HAVE_MKDIR 1
-
-/* Define if you have the munmap function. */
-#define HAVE_MUNMAP 1
-
-/* Define if you have the putenv function. */
-#define HAVE_PUTENV 1
-
-/* Define if you have the scsireq_enter function. */
-/* #undef HAVE_SCSIREQ_ENTER */
-
-/* Define if you have the sigprocmask function. */
-#define HAVE_SIGPROCMASK 1
-
-/* Define if you have the setenv function. */
-#define HAVE_SETENV 1
-
-/* Define if you have the setlocale function. */
-#define HAVE_SETLOCALE 1
-
-/* Define if you have the snprintf function. */
-#define HAVE_SNPRINTF 1
-
-/* Define if you have the stpcpy function. */
-#define HAVE_STPCPY 1
-
-/* Define if you have the strcasecmp function. */
-#define HAVE_STRCASECMP 1
-
-/* Define if you have the strchr function. */
-#define HAVE_STRCHR 1
-
-/* Define if you have the strdup function. */
-#define HAVE_STRDUP 1
-
-/* Define if you have the strncasecmp function. */
-#define HAVE_STRNCASECMP 1
-
-/* Define if you have the strndup function. */
-#define HAVE_STRNDUP 1
-
-/* Define if you have the strftime function. */
-#define HAVE_STRFTIME 1
-
-/* Define if you have the strstr function. */
-#define HAVE_STRSTR 1
-
-/* Define if you have the strsep function. */
-#define HAVE_STRSEP 1
-
-/* Define if you have the strtod function. */
-#define HAVE_STRTOD 1
-
-/* Define if you have the valloc function. */
-/* #undef HAVE_VALLOC */
-
-/* Ignore HAVE_USLEEP under Apollo Domain because the usleep()
- implementation in the Sys5.3 environment is broken. */
-#ifndef apollo
- /* Define if you have the usleep function. */
-# define HAVE_USLEEP 1
-#endif
-
-/* Define if you have the <argz.h> header file. */
-#define HAVE_ARGZ_H 1
-
-/* Define if you have the <fcntl.h> header file. */
-#define HAVE_FCNTL_H 1
-
-/* Define if you have the <libintl.h> header file. */
-/* #undef HAVE_LIBINTL_H */
-
-/* Define if you have the <libc.h> header file. */
-/* #undef HAVE_LIBC_H */
-
-/* Define if you have the <limits.h> header file. */
-#define HAVE_LIMITS_H 1
-
-/* Define if you have the <locale.h> header file. */
-#define HAVE_LOCALE_H 1
-
-/* Define if you have the <malloc.h> header file. */
-#define HAVE_MALLOC_H 1
-
-/* Define if you have the <nl_types.h> header file. */
-#define HAVE_NL_TYPES_H 1
-
-/* Define if you have the <string.h> header file. */
-#define HAVE_STRING_H 1
-
-/* Define if you have the <sys/select.h> header file. */
-/* #undef HAVE_SYS_SELECT_H */
-
-/* Define if you have the <sys/time.h> header file. */
-#define HAVE_SYS_TIME_H 1
-
-/* Define if you have the <sys/io.h> header file. */
-/* #undef HAVE_SYS_IO_H */
-
-/* Define if you have the <asm/io.h> header file. */
-/* #undef HAVE_ASM_IO_H */
-
-/* Define if you have the <scsi.h> header file. */
-/* #undef HAVE_SCSI_H */
-
-/* Define if you have the <scsi/sg.h> header file. */
-/* #undef HAVE_SCSI_SG_H */
-
-/* Define if you have the "/usr/src/linux/include/scsi/sg.h" header file. */
-/* #undef HAVE__USR_SRC_LINUX_INCLUDE_SCSI_SG_H */
-
-/* Define if you have the <sys/dsreq.h> header file. */
-/* #undef HAVE_SYS_DSREQ_H */
-
-/* Define if you have the <windows.h> header file. */
-/* #undef HAVE_WINDOWS_H */
-
-/* Define if you have the <os2.h> header file. */
-/* #undef HAVE_OS2_H */
-
-/* Define if you have sys/types.h. OS/2 wants them before select.h, etc. */
-#define HAVE_SYS_TYPES_H 1
-
-/* Define if you have the <unistd.h> header file. */
-#define HAVE_UNISTD_H 1
-
-/* Define if you have the <values.h> header file. */
-#define HAVE_VALUES_H 1
-
-/* Define if you have the i library (-li). */
-/* #undef HAVE_LIBI */
-
-/* Define if you have the intl library (-lintl). */
-/* #undef HAVE_LIBINTL */
-
-/* Define if you have the m library (-lm). */
-#define HAVE_LIBM 1
-
-/* Define if you have the <dlfcn.h> header file. */
-/* #undef HAVE_DLFCN_H */
-
-/* Define if you have GIMP installed - no matter what version. */
-#define HAVE_ANY_GIMP 1
-
-/* Define if you have GIMP-2.0 installed. */
-#define HAVE_GIMP_2 1
-
-/* Define if you have the GIMPfeatures header file. */
-/* #undef HAVE_LIBGIMP_GIMPFEATURES_H */
-
-/* Define if you have libjpeg. */
-#define HAVE_LIBJPEG 1
-
-/* Define if you have libz. */
-#define HAVE_LIBZ 1
-
-/* Define if you have libpng. */
-#define HAVE_LIBPNG 1
-
-/* Define if you have libtiff. */
-#define HAVE_LIBTIFF 1
-
-/* Define if you have liblcms. */
-#define HAVE_LIBLCMS 1
-
-#ifndef HAVE_STRNCASECMP
- /* OS/2 needs this */
-# define strncasecmp(a, b, c) strnicmp(a, b, c)
-#endif
-
-#if defined (__sun) && defined (__GNUC__)
-# define _POSIX_SOURCE
-# define __EXTENSIONS__ 1
-#endif
-
-#endif /* SANE_CONFIG_H */
diff --git a/m4/old/aclocal.m4.bak b/m4/old/aclocal.m4.bak
deleted file mode 100755
index d9d0216..0000000
--- a/m4/old/aclocal.m4.bak
+++ /dev/null
@@ -1,1086 +0,0 @@
-######################################################################
-# Configure paths for GTK+2
-# Oliver Rauch 2002-06-17
-
-dnl AM_PATH_GTK2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-dnl Test for GTK+-2.0.x, and define GTK_CFLAGS and GTK_LIBS
-dnl
-AC_DEFUN(AM_PATH_GTK2,
-[
- AC_ARG_ENABLE(gtk2, [ --disable-gtk2 Do not use gtk+-2.0.x], USE_GTK2=$enableval, USE_GTK2=yes)
-
- if test $USE_GTK2 != no ; then
- min_gtk_version=ifelse([$1], ,2.0.0,$1)
- if `pkg-config --atleast-pkgconfig-version=0` ; then
- AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
- if `pkg-config gtk+-2.0 --atleast-version=$min_gtk_version` ; then
- GTK_CFLAGS=`pkg-config gtk+-2.0 --cflags`
- GTK_LIBS=`pkg-config gtk+-2.0 --libs`
- AC_MSG_RESULT(yes)
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- ifelse([$3], , :, [$3])
- fi
- else
- AC_MSG_WARN(***************************************************************)
- AC_MSG_WARN(*** pgk-config is not avilable: test for gtk2 not possible ****)
- AC_MSG_WARN(***************************************************************)
- ifelse([$3], , :, [$3])
- fi
- else
- ifelse([$3], , :, [$3])
- fi
-
-
- AC_SUBST(GTK_CFLAGS)
- AC_SUBST(GTK_LIBS)
-]
-)
-
-# Configure paths for GTK+
-# Owen Taylor 97-11-3
-dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
-dnl
-AC_DEFUN(AM_PATH_GTK,
-[dnl
-dnl Get the cflags and libraries from the gtk-config script
-dnl
- AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
- gtk_config_prefix="$withval", gtk_config_prefix="")
- AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
- gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
- AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], , enable_gtktest=yes)
-
- if test x$gtk_config_exec_prefix != x ; then
- gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
- if test x${GTK_CONFIG+set} != xset ; then
- GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
- fi
- fi
- if test x$gtk_config_prefix != x ; then
- gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
- if test x${GTK_CONFIG+set} != xset ; then
- GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
- fi
- fi
-
- AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
- min_gtk_version=ifelse([$1], ,0.99.7,$1)
- AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
- no_gtk=""
- if test "$GTK_CONFIG" = "no" ; then
- no_gtk=yes
- else
- GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
- GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
- gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- if test "x$enable_gtktest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $GTK_CFLAGS"
- LIBS="$LIBS $GTK_LIBS"
-dnl
-dnl Now check if the installed GTK is sufficiently new. (Also sanity
-dnl checks the results of gtk-config to some extent)
-dnl
- rm -f conf.gtktest
- AC_TRY_RUN([
-#include <gtk/gtk.h>
-#include <stdio.h>
-
-int
-main ()
-{
- int major, minor, micro;
-
- system ("touch conf.gtktest");
-
- if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
- printf("%s, bad version string\n", "$min_gtk_version");
- exit(1);
- }
-
- if ((gtk_major_version != $gtk_config_major_version) ||
- (gtk_minor_version != $gtk_config_minor_version) ||
- (gtk_micro_version != $gtk_config_micro_version))
- {
- printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
- $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
- gtk_major_version, gtk_minor_version, gtk_micro_version);
- printf ("*** was found! If gtk-config was correct, then it is best\n");
- printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
- printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
- printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
- printf("*** required on your system.\n");
- printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
- printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
- printf("*** before re-running configure\n");
- }
- else
- {
- if ((gtk_major_version > major) ||
- ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
- ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
- gtk_major_version, gtk_minor_version, gtk_micro_version);
- printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
- major, minor, micro);
- printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
- printf("***\n");
- printf("*** If you have already installed a sufficiently new version, this error\n");
- printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
- printf("*** being found. The easiest way to fix this is to remove the old version\n");
- printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
- printf("*** correct copy of gtk-config. (In this case, you will have to\n");
- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
- printf("*** so that the correct libraries are found at run-time))\n");
- }
- }
- return 1;
-}
-],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_gtk" = x ; then
- AC_MSG_RESULT(yes)
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "$GTK_CONFIG" = "no" ; then
- echo "*** The gtk-config script installed by GTK could not be found"
- echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
- echo "*** your path, or set the GTK_CONFIG environment variable to the"
- echo "*** full path to gtk-config."
- else
- if test -f conf.gtktest ; then
- :
- else
- echo "*** Could not run GTK test program, checking why..."
- CFLAGS="$CFLAGS $GTK_CFLAGS"
- LIBS="$LIBS $GTK_LIBS"
- AC_TRY_LINK([
-#include <gtk/gtk.h>
-#include <stdio.h>
-], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding GTK or finding the wrong"
- echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
- echo "***"
- echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
- echo "*** came with the system with the command"
- echo "***"
- echo "*** rpm --erase --nodeps gtk gtk-devel" ],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means GTK was incorrectly installed"
- echo "*** or that you have moved GTK since it was installed. In the latter case, you"
- echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- GTK_CFLAGS=""
- GTK_LIBS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(GTK_CFLAGS)
- AC_SUBST(GTK_LIBS)
- rm -f conf.gtktest
-])
-
-
-######################################################################
-# Configure paths for The GIMP
-# Oliver Rauch 2000-12-28
-
-dnl AM_PATH_GIMP([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-dnl Test for GIMP, and define GIMP_CFLAGS and GIMP_LIBS
-dnl
-AC_DEFUN(AM_PATH_GIMP,
-[dnl
-dnl Get the cflags and libraries from the gimp-config script
-dnl
- AC_ARG_WITH(gimp-prefix,[ --with-gimp-prefix=PFX Prefix where GIMP is installed (optional)],
- gimp_config_prefix="$withval", gimp_config_prefix="")
- AC_ARG_WITH(gimp-exec-prefix,[ --with-gimp-exec-prefix=PFX Exec prefix where GIMP is installed (optional)],
- gimp_config_exec_prefix="$withval", gimp_config_exec_prefix="")
- AC_ARG_ENABLE(gimptest, [ --disable-gimptest Do not try to compile and run a test GIMP program], , enable_gimptest=yes)
-
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- ac_save_GTK_CFLAGS="$GTK_CFLAGS"
- ac_save_GTK_LIBS="$GTK_LIBS"
-
- if test x$gimp_config_exec_prefix != x ; then
- gimp_config_args="$gimp_config_args --exec-prefix=$gimp_config_exec_prefix"
- if test x${GIMP_CONFIG+set} != xset ; then
- GIMP_CONFIG=$gimp_config_exec_prefix/bin/gimp-config
- fi
- fi
-
- if test x$gimp_config_prefix != x ; then
- gimp_config_args="$gimp_config_args --prefix=$gimp_config_prefix"
- if test x${GIMP_CONFIG+set} != xset ; then
- GIMP_CONFIG=$gimp_config_prefix/bin/gimp-config
- fi
- fi
-
- AC_PATH_PROG(GIMP_CONFIG, gimp-config, no)
- if test "$GIMP_CONFIG" = "no" ; then
- if test x$gimp_config_exec_prefix != x ; then
- gimp_config_args="$gimp_config_args --exec-prefix=$gimp_config_exec_prefix"
- if test x${GIMP_TOOL+set} != xset ; then
- GIMP_TOOL=$gimp_config_exec_prefix/bin/gimptool
- fi
- fi
- if test x$gimp_config_prefix != x ; then
- gimp_config_args="$gimp_config_args --prefix=$gimp_config_prefix"
- if test x${GIMP_TOOL+set} != xset ; then
- GIMP_TOOL=$gimp_config_prefix/bin/gimptool
- fi
- fi
- AC_PATH_PROG(GIMP_TOOL, gimptool, no)
- GIMP_CONFIG=$GIMP_TOOL
- fi
-
- min_gimp_version=ifelse([$1], ,1.0.0,$1)
- no_gimp=""
-
- if test "$GIMP_CONFIG" = "no" ; then
-dnl we do not have gimp-config (gimp-1.0.x does not have gimp-config)
-dnl so we have to use the GTK_* things for testing for gimp.h and gimpfeatures.h
- ac_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="${CPPFLAGS} ${GTK_CFLAGS}"
- AC_CHECK_HEADERS(libgimp/gimp.h, GIMP_LIBS="-lgimp", no_gimp=yes)
- AC_CHECK_HEADERS(libgimp/gimpfeatures.h)
- CPPFLAGS="$ac_save_CPPFLAGS"
- CFLAGS="${CFLAGS} ${GTK_CFLAGS}"
- LIBS="${LIBS} ${GTK_LIBS} ${GIMP_LIBS}"
- if test "x$no_gimp" = x ; then
- AC_MSG_CHECKING(GIMP compilation)
- gimp_config_major_version=-1
- gimp_config_minor_version=0
- gimp_config_micro_version=0
- fi
- else
-dnl Ok, we have gimp-config and so we do not need the GTK_* things because they are
-dnl included in the output of gimp-config
- GTK_CFLAGS=""
- GTK_LIBS=""
- GIMP_CFLAGS=`$GIMP_CONFIG $gimp_config_args --cflags`
- GIMP_LIBS=`$GIMP_CONFIG $gimp_config_args --libs`" -lgimp"
- gimp_config_major_version=`$GIMP_CONFIG $gimp_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- gimp_config_minor_version=`$GIMP_CONFIG $gimp_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- gimp_config_micro_version=`$GIMP_CONFIG $gimp_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- CFLAGS="${CFLAGS} ${GIMP_CFLAGS}"
- LIBS="${LIBS} ${GIMP_LIBS}"
- AC_MSG_CHECKING(for GIMP - version >= $min_gimp_version)
- fi
-
-dnl
-dnl Now check if the installed GIMP is sufficiently new. (Also sanity
-dnl checks the results of gimp-config to some extent
-dnl
- if test "x$no_gimp" = x ; then
- if test "x$enable_gimptest" = "xyes" ; then
- rm -f conf.gimptest
- AC_TRY_RUN([
-#include <libgimp/gimp.h>
-#include <stdio.h>
-
-#define GIMP_TEST_CHECK_VERSION(major, minor, micro) \
- ($gimp_config_major_version > (major) || \
- ($gimp_config_major_version == (major) && $gimp_config_minor_version > (minor)) || \
- ($gimp_config_major_version == (major) && $gimp_config_minor_version == (minor) && \
- $gimp_config_micro_version >= (micro)))
-
-#if !GIMP_TEST_CHECK_VERSION(1,1,25)
-# define GimpPlugInInfo GPlugInInfo /* do test with gimp interface version 1.0 */
-#endif
-
-GimpPlugInInfo PLUG_IN_INFO =
-{
- NULL, NULL, NULL, NULL
-};
-
-
-int
-main ()
-{
- int major, minor, micro;
-
- system ("touch conf.gimptest");
-
- if (sscanf("$min_gimp_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
- printf("%s, bad version string\n", "$min_gimp_version");
- exit(1);
- }
-
- if ( ($gimp_config_major_version != -1) &&
- ((gimp_major_version != $gimp_config_major_version) ||
- (gimp_minor_version != $gimp_config_minor_version) ||
- (gimp_micro_version != $gimp_config_micro_version)) )
- {
- printf("\n*** 'gimp-config --version' returned %d.%d.%d, but GIMP (%d.%d.%d)\n",
- $gimp_config_major_version, $gimp_config_minor_version, $gimp_config_micro_version,
- gimp_major_version, gimp_minor_version, gimp_micro_version);
- printf ("*** was found! If gimp-config was correct, then it is best\n");
- printf ("*** to remove the old version of GIMP. You may also be able to fix the error\n");
- printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
- printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
- printf("*** required on your system.\n");
- printf("*** If gimp-config was wrong, set the environment variable GIMP_CONFIG\n");
- printf("*** to point to the correct copy of gimp-config, and remove the file config.cache\n");
- printf("*** before re-running configure\n");
- }
- else
- {
- if ((gimp_major_version > major) ||
- ((gimp_major_version == major) && (gimp_minor_version > minor)) ||
- ((gimp_major_version == major) && (gimp_minor_version == minor) && (gimp_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** An old version of GIMP (%d.%d.%d) was found.\n",
- gimp_major_version, gimp_minor_version, gimp_micro_version);
- printf("*** You need a version of GIMP newer than %d.%d.%d. The latest version of\n",
- major, minor, micro);
- printf("*** GIMP is always available from ftp://ftp.gimp.org.\n");
- printf("***\n");
- printf("*** If you have already installed a sufficiently new version, this error\n");
- printf("*** probably means that the wrong copy of the gimp-config shell script is\n");
- printf("*** being found. The easiest way to fix this is to remove the old version\n");
- printf("*** of GIMP, but you can also set the GIMP_CONFIG environment to point to the\n");
- printf("*** correct copy of gimp-config. (In this case, you will have to\n");
- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
- printf("*** so that the correct libraries are found at run-time))\n");
- }
- }
- return 1;
-}
-], , no_gimp=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- fi
- fi
-
- if test "x$no_gimp" = x ; then
-dnl gimp test succeeded or not tested
- if test "x$enable_gimptest" = "xyes" ; then
- AC_MSG_RESULT(yes)
- else
- AC_MSG_RESULT(not tested)
- fi
- if test "$GIMP_CONFIG" != "no" ; then
- ac_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="${CPPFLAGS} ${GIMP_CFLAGS}"
- AC_CHECK_HEADERS(libgimp/gimp.h)
- AC_CHECK_HEADERS(libgimp/gimpfeatures.h)
- CPPFLAGS="$ac_save_CPPFLAGS"
- fi
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test -f conf.gimptest ; then
- :
- else
- echo "*** Could not run GIMP test program, checking why..."
- CFLAGS="$CFLAGS $GIMP_CFLAGS"
- LIBS="$LIBS $GIMP_LIBS"
- AC_TRY_LINK([
-#include <libgimp/gimp.h>
-#include <stdio.h>
-#define GIMP_TEST_CHECK_VERSION(major, minor, micro) \
- ($gimp_config_major_version > (major) || \
- ($gimp_config_major_version == (major) && $gimp_config_minor_version > (minor)) || \
- ($gimp_config_major_version == (major) && $gimp_config_minor_version == (minor) && \
- $gimp_config_micro_version >= (micro)))
-
-#if !GIMP_TEST_CHECK_VERSION(1,1,25)
-# define GimpPlugInInfo GPlugInInfo /* do test with gimp interface version 1.0 */
-#endif
-GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, NULL, NULL };
-], [ return ((gimp_major_version) || (gimp_minor_version) || (gimp_micro_version)); ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding GIMP or finding the wrong"
- echo "*** version of GIMP. If it is not finding GIMP, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
- echo "***"
- echo "***" ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
-dnl ok, gimp does not work, so we have to use the gtk_* things again
- GIMP_CFLAGS=""
- GIMP_LIBS=""
- GTK_CFLAGS="$ac_save_GTK_CFLAGS"
- GTK_LIBS="$ac_save_GTK_LIBS"
- CFLAGS="${CFLAGS} ${GTK_CFLAGS}"
- LIBS="${LIBS} ${GTK_LIBS} ${GIMP_LIBS}"
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(GIMP_CFLAGS)
- AC_SUBST(GIMP_LIBS)
- rm -f conf.gimptest
-])
-
-
-# ********************************************************************
-# Configure paths for SANE
-# Oliver Rauch 2000-10-30
-
-dnl AM_PATH_SANE([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-dnl Test for SANE, and define SANE_CFLAGS and SANE_LIBS
-dnl
-AC_DEFUN(AM_PATH_SANE,
-[dnl
-dnl Get the cflags and libraries from the sane-config script
-dnl
- AC_ARG_ENABLE(sanetest, [ --disable-sanetest Do not try to compile and run a test SANE program], , enable_sanetest=yes)
-
- AC_PATH_PROG(SANE_CONFIG, sane-config, no)
- min_sane_version=ifelse([$1], ,1.0.0,$1)
- AC_MSG_CHECKING(for SANE - version >= $min_sane_version)
- no_sane=""
- if test "$SANE_CONFIG" = "no" ; then
- no_sane=yes
- else
- SANE_CFLAGS=`$SANE_CONFIG $sane_config_args --cflags`
- SANE_LDFLAGS=`$SANE_CONFIG $sane_config_args --ldflags`
-# SANE_LIBS=`$SANE_CONFIG $sane_config_args --libs`
- SANE_LIBS=`$SANE_CONFIG $sane_config_args --libs | sed -e 's/-lintl//g'`
- SANE_PREFIX=`$SANE_CONFIG $sane_config_args --prefix`
- sane_config_major_version=`$SANE_CONFIG $sane_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- sane_config_minor_version=`$SANE_CONFIG $sane_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- sane_config_micro_version=`$SANE_CONFIG $sane_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- if test "x$enable_sanetest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LDFLAGS="$LDFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $SANE_CFLAGS"
- LDFLAGS="$LDFLAGS $SANE_LDFLAGS"
- LIBS="$LIBS $SANE_LIBS"
-dnl
-dnl Now check if the installed SANE is sufficiently new. (Also sanity
-dnl checks the results of sane-config to some extent
-dnl
- rm -f conf.sanetest
- AC_TRY_RUN([
-#include <sane/sane.h>
-#include <stdio.h>
-
-int
-main ()
-{
- int major, minor, micro;
-
- system ("touch conf.sanetest");
-
- if (sscanf("$min_sane_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
- printf("%s, bad version string\n", "$min_sane_version");
- exit(1);
- }
-
- if ( ($sane_config_major_version == major) &&
- ( ($sane_config_minor_version > minor) ||
- ( ($sane_config_minor_version == minor) && ($sane_config_micro_version >= micro))))
- {
- return 0;
- }
- else if ($sane_config_major_version > major)
- {
- printf("\n*** A too new version of SANE (%d.%d.%d) was found.\n",
- $sane_config_major_version, $sane_config_minor_version, $sane_config_micro_version);
- printf("*** You need a version of SANE with the major version number %d.\n", major);
- }
- else
- {
- printf("\n*** An old version of SANE (%d.%d.%d) was found.\n",
- $sane_config_major_version, $sane_config_minor_version, $sane_config_micro_version);
- printf("*** You need a version of SANE newer than %d.%d.%d. The latest version of\n",
- major, minor, micro);
- }
-
- printf("*** SANE is always available from ftp://ftp.mostang.com\n");
- printf("***\n");
- printf("*** If you have already installed a sufficient version, this error\n");
- printf("*** probably means that the wrong copy of the sane-config shell script is\n");
- printf("*** being found. The easiest way to fix this is to remove the old version\n");
- printf("*** of SANE, but you can also set the SANE_CONFIG environment to point to the\n");
- printf("*** correct copy of sane-config. (In this case, you will have to\n");
- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
- printf("*** so that the correct libraries are found at run-time))\n");
-
- return 1;
-}
-],, no_sane=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LDFLAGS="$ac_save_LDFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_sane" = x ; then
- AC_MSG_RESULT(yes)
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "$SANE_CONFIG" = "no" ; then
- echo "*** The sane-config script installed by SANE could not be found"
- echo "*** If SANE was installed in PREFIX, make sure PREFIX/bin is in"
- echo "*** your path, or set the SANE_CONFIG environment variable to the"
- echo "*** full path to sane-config."
- else
- if test -f conf.sanetest ; then
- :
- else
- echo "*** Could not run SANE test program, checking why..."
- CFLAGS="$CFLAGS $SANE_CFLAGS"
- LIBS="$LIBS $SANE_LIBS"
- LDFLAGS="$LDFLAGS $SANE_LDFLAGS"
- AC_TRY_LINK([
-#include <sane/sane.h>
-#include <stdio.h>
-], [ return (SANE_CURRENT_MAJOR); ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding SANE or finding the wrong"
- echo "*** version of SANE. If it is not finding SANE, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
- echo "***" ]
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means SANE was incorrectly installed"
- echo "*** or that you have moved SANE since it was installed. In the latter case, you"
- echo "*** may want to edit the sane-config script: $SANE_CONFIG" ])
- CFLAGS="$ac_save_CFLAGS"
- LDFLAGS="$ac_save_LDFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- SANE_CFLAGS=""
- SANE_LDFLAGS=""
- SANE_LIBS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(SANE_LDFLAGS)
- AC_SUBST(SANE_CFLAGS)
- AC_SUBST(SANE_LIBS)
- AC_SUBST(SANE_PREFIX)
- rm -f conf.sanetest
-])
-
-# ********************************************************************
-
-
-dnl AM_FUNC_ALLOCA
-AC_DEFUN(AM_FUNC_ALLOCA,
-[AC_REQUIRE([AC_FUNC_ALLOCA])dnl
-test $ac_cv_func_alloca_works = no && LTALLOCA=alloca.lo
-AC_SUBST(LTALLOCA)dnl
-])
-
-# @defmac AC_PROG_CC_STDC
-# @maindex PROG_CC_STDC
-# @ovindex CC
-# If the C compiler in not in ANSI C mode by default, try to add an option
-# to output variable @code{CC} to make it so. This macro tries various
-# options that select ANSI C on some system or another. It considers the
-# compiler to be in ANSI C mode if it handles function prototypes correctly.
-#
-# If you use this macro, you should check after calling it whether the C
-# compiler has been set to accept ANSI C; if not, the shell variable
-# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
-# code in ANSI C, you can make an un-ANSIfied copy of it by using the
-# program @code{ansi2knr}, which comes with Ghostscript.
-# @end defmac
-
-AC_DEFUN(AM_PROG_CC_STDC,
-[AC_REQUIRE([AC_PROG_CC])
-AC_BEFORE([$0], [AC_C_INLINE])
-AC_BEFORE([$0], [AC_C_CONST])
-dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
-dnl a magic option to avoid problems with ANSI preprocessor commands
-dnl like #elif.
-dnl FIXME: can't do this because then AC_AIX won't work due to a
-dnl circular dependency.
-dnl AC_BEFORE([$0], [AC_PROG_CPP])
-AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C)
-AC_CACHE_VAL(am_cv_prog_cc_stdc,
-[am_cv_prog_cc_stdc=no
-ac_save_CC="$CC"
-# Don't try gcc -ansi; that turns off useful extensions and
-# breaks some systems' header files.
-# AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1
-# HP-UX -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__
-"
-do
- CC="$ac_save_CC $ac_arg"
- AC_TRY_COMPILE(
-[#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-} int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int,
- int);
-int argc;
-char **argv;
-], [
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
-],
-[am_cv_prog_cc_stdc="$ac_arg"; break])
-done
-CC="$ac_save_CC"
-])
-if test -z "$am_cv_prog_cc_stdc"; then
- AC_MSG_RESULT([none needed])
-else
- AC_MSG_RESULT($am_cv_prog_cc_stdc)
-fi
-case "x$am_cv_prog_cc_stdc" in
- x|xno) ;;
- *) CC="$CC $am_cv_prog_cc_stdc" ;;
-esac
-])
-
-
-
-
-# ********************************************************************
-dnl aclocal.m4 generated automatically by aclocal 1.2f
-
-dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
-dnl This Makefile.in is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-dnl PARTICULAR PURPOSE.
-
-
-# progtest.m4 from gettext 0.32
-# Search path for a program which passes the given test.
-# Ulrich Drepper <drepper@cygnus.com>, 1996.
-#
-# This file file be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU Public License
-# but which still want to provide support for the GNU gettext functionality.
-# Please note that the actual code is *not* freely available.
-
-# serial 1
-
-dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
-dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
-AC_DEFUN(AM_PATH_PROG_WITH_TEST,
-[# Extract the first word of "$2", so it can be a program name with args.
-set dummy $2; ac_word=[$]2
-AC_MSG_CHECKING([for $ac_word])
-AC_CACHE_VAL(ac_cv_path_$1,
-[case "[$]$1" in
- /*)
- ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
- ;;
- *)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in ifelse([$5], , $PATH, [$5]); do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- if [$3]; then
- ac_cv_path_$1="$ac_dir/$ac_word"
- break
- fi
- fi
- done
- IFS="$ac_save_ifs"
-dnl If no 4th arg is given, leave the cache variable unset,
-dnl so AC_PATH_PROGS will keep looking.
-ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
-])dnl
- ;;
-esac])dnl
-$1="$ac_cv_path_$1"
-if test -n "[$]$1"; then
- AC_MSG_RESULT([$]$1)
-else
- AC_MSG_RESULT(no)
-fi
-AC_SUBST($1)dnl
-])
-
-# ********************************************************************
-# lcmessage.m4 from gettext 0.32
-# Check whether LC_MESSAGES is available in <locale.h>.
-# Ulrich Drepper <drepper@cygnus.com>, 1995.
-#
-# This file file be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU Public License
-# but which still want to provide support for the GNU gettext functionality.
-# Please note that the actual code is *not* freely available.
-
-# serial 1
-
-AC_DEFUN(AM_LC_MESSAGES,
- [if test $ac_cv_header_locale_h = yes; then
- AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
- if test $am_cv_val_LC_MESSAGES = yes; then
- AC_DEFINE(HAVE_LC_MESSAGES)
- fi
- fi])
-
-
-# ********************************************************************
-# gettext.m4 from gettext 0.32
-# Macro to add for using GNU gettext.
-# Ulrich Drepper <drepper@cygnus.com>, 1995.
-#
-# This file file be copied and used freely without restrictions. It can
-# be used in projects which are not available under the GNU Public License
-# but which still want to provide support for the GNU gettext functionality.
-# Please note that the actual code is *not* freely available.
-
-# serial 3
-
-AC_DEFUN(AM_WITH_NLS,
- [AC_MSG_CHECKING([whether NLS is requested])
- dnl Default is enabled NLS
- AC_ARG_ENABLE(nls,
- [ --disable-nls do not use Native Language Support],
- USE_NLS=$enableval, USE_NLS=yes)
- AC_MSG_RESULT($USE_NLS)
- AC_SUBST(USE_NLS)
-
- USE_INCLUDED_LIBINTL=no
-
- dnl If we use NLS figure out what method
- if test "$USE_NLS" = "yes"; then
- AC_DEFINE(ENABLE_NLS)
- AC_MSG_CHECKING([whether included gettext is requested])
- AC_ARG_WITH(included-gettext,
- [ --with-included-gettext use the GNU gettext library included here],
- nls_cv_force_use_gnu_gettext=$withval,
- nls_cv_force_use_gnu_gettext=no)
- AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
-
- nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
- if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
- dnl User does not insist on using GNU NLS library. Figure out what
- dnl to use. If gettext or catgets are available (in this order) we
- dnl use this. Else we have to fall back to GNU NLS library.
- dnl catgets is only used if permitted by option --with-catgets.
- nls_cv_header_intl=
- nls_cv_header_libgt=
- CATOBJEXT=NONE
-
- AC_CHECK_HEADER(libintl.h,
- [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
- [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
- gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
-
- if test "$gt_cv_func_gettext_libc" != "yes"; then
- AC_CHECK_LIB(intl, bindtextdomain,
- [AC_CACHE_CHECK([for gettext in libintl],
- gt_cv_func_gettext_libintl,
- [AC_TRY_LINK([], [return (int) gettext ("")],
- gt_cv_func_gettext_libintl=yes,
- gt_cv_func_gettext_libintl=no)])])
- fi
-
- if test "$gt_cv_func_gettext_libintl" = "yes"; then
- LIBS="-lintl $LIBS"
- fi
-
- if test "$gt_cv_func_gettext_libc" = "yes" \
- || test "$gt_cv_func_gettext_libintl" = "yes"; then
- AC_DEFINE(HAVE_GETTEXT)
- AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
- if test "$MSGFMT" != "no"; then
- AC_CHECK_FUNCS(dcgettext)
- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
- AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
- AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
- return _nl_msg_cat_cntr],
- [CATOBJEXT=.gmo
- DATADIRNAME=share],
- [CATOBJEXT=.mo
- DATADIRNAME=lib])
- INSTOBJEXT=.mo
- fi
- fi
- ])
-
- if test "$CATOBJEXT" = "NONE"; then
- AC_MSG_CHECKING([whether catgets can be used])
- AC_ARG_WITH(catgets,
- [ --with-catgets use catgets functions if available],
- nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
- AC_MSG_RESULT($nls_cv_use_catgets)
-
- if test "$nls_cv_use_catgets" = "yes"; then
- dnl No gettext in C library. Try catgets next.
- AC_CHECK_LIB(i, main)
- AC_CHECK_FUNC(catgets,
- [AC_DEFINE(HAVE_CATGETS)
- INTLOBJS="\$(CATOBJS)"
- AC_PATH_PROG(GENCAT, gencat, no)dnl
- if test "$GENCAT" != "no"; then
- AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
- if test "$GMSGFMT" = "no"; then
- AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
- fi
- AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
- USE_INCLUDED_LIBINTL=yes
- CATOBJEXT=.cat
- INSTOBJEXT=.cat
- DATADIRNAME=lib
- INTLDEPS='$(top_builddir)/intl/libintl.a'
- INTLLIBS=$INTLDEPS
- LIBS=`echo $LIBS | sed -e 's/-lintl//'`
- nls_cv_header_intl=intl/libintl.h
- nls_cv_header_libgt=intl/libgettext.h
- fi])
- fi
- fi
-
- if test "$CATOBJEXT" = "NONE"; then
- dnl Neither gettext nor catgets in included in the C library.
- dnl Fall back on GNU gettext library.
- nls_cv_use_gnu_gettext=yes
- fi
- fi
-
- if test "$nls_cv_use_gnu_gettext" = "yes"; then
- dnl Mark actions used to generate GNU NLS library.
- INTLOBJS="\$(GETTOBJS)"
- AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
- AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
- AC_SUBST(MSGFMT)
- USE_INCLUDED_LIBINTL=yes
- CATOBJEXT=.gmo
- INSTOBJEXT=.mo
- DATADIRNAME=share
- INTLDEPS='$(top_builddir)/intl/libintl.a'
- INTLLIBS=$INTLDEPS
- LIBS=`echo $LIBS | sed -e 's/-lintl//'`
- nls_cv_header_intl=intl/libintl.h
- nls_cv_header_libgt=intl/libgettext.h
- fi
-
- dnl Test whether we really found GNU xgettext.
- if test "$XGETTEXT" != ":"; then
- dnl If it is no GNU xgettext we define it as : so that the
- dnl Makefiles still can work.
- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
- : ;
- else
- AC_MSG_RESULT(
- [found xgettext programs is not GNU xgettext; ignore it])
- XGETTEXT=":"
- fi
- fi
-
- # We need to process the po/ directory.
- POSUB=po
- else
- DATADIRNAME=share
- nls_cv_header_intl=intl/libintl.h
- nls_cv_header_libgt=intl/libgettext.h
- fi
-
- # If this is used in GNU gettext we have to set USE_NLS to `yes'
- # because some of the sources are only built for this goal.
- if test "$PACKAGE" = gettext; then
- USE_NLS=yes
- USE_INCLUDED_LIBINTL=yes
- fi
-
- dnl These rules are solely for the distribution goal. While doing this
- dnl we only have to keep exactly one list of the available catalogs
- dnl in configure.in.
- for lang in $ALL_LINGUAS; do
- GMOFILES="$GMOFILES $lang.gmo"
- POFILES="$POFILES $lang.po"
- done
-
- dnl Make all variables we use known to autoconf.
- AC_SUBST(USE_INCLUDED_LIBINTL)
- AC_SUBST(CATALOGS)
- AC_SUBST(CATOBJEXT)
- AC_SUBST(DATADIRNAME)
- AC_SUBST(GMOFILES)
- AC_SUBST(INSTOBJEXT)
- AC_SUBST(INTLDEPS)
- AC_SUBST(INTLLIBS)
- AC_SUBST(INTLOBJS)
- AC_SUBST(POFILES)
- AC_SUBST(POSUB)
- ])
-
-AC_DEFUN(AM_GNU_GETTEXT,
- [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
- AC_REQUIRE([AC_PROG_CC])dnl
- AC_REQUIRE([AC_PROG_RANLIB])dnl
- AC_REQUIRE([AC_ISC_POSIX])dnl
- AC_REQUIRE([AC_HEADER_STDC])dnl
- AC_REQUIRE([AC_C_CONST])dnl
- AC_REQUIRE([AC_C_INLINE])dnl
- AC_REQUIRE([AC_TYPE_OFF_T])dnl
- AC_REQUIRE([AC_TYPE_SIZE_T])dnl
- AC_REQUIRE([AC_FUNC_ALLOCA])dnl
- AC_REQUIRE([AC_FUNC_MMAP])dnl
-
- AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
-unistd.h values.h sys/param.h])
- AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
-__argz_count __argz_stringify __argz_next])
-
- if test "${ac_cv_func_stpcpy+set}" != "set"; then
- AC_CHECK_FUNCS(stpcpy)
- fi
- if test "${ac_cv_func_stpcpy}" = "yes"; then
- AC_DEFINE(HAVE_STPCPY)
- fi
-
- AM_LC_MESSAGES
- AM_WITH_NLS
-
- if test "x$CATOBJEXT" != "x"; then
- if test "x$ALL_LINGUAS" = "x"; then
- LINGUAS=
- else
- AC_MSG_CHECKING(for catalogs to be installed)
- NEW_LINGUAS=
- for lang in ${LINGUAS=$ALL_LINGUAS}; do
- case "$ALL_LINGUAS" in
- *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
- esac
- done
- LINGUAS=$NEW_LINGUAS
- AC_MSG_RESULT($LINGUAS)
- fi
-
- dnl Construct list of names of catalog files to be constructed.
- if test -n "$LINGUAS"; then
- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
- fi
- fi
-
- dnl The reference to <locale.h> in the installed <libintl.h> file
- dnl must be resolved because we cannot expect the users of this
- dnl to define HAVE_LOCALE_H.
- if test $ac_cv_header_locale_h = yes; then
- INCLUDE_LOCALE_H="#include <locale.h>"
- else
- INCLUDE_LOCALE_H="\
-/* The system does not provide the header <locale.h>. Take care yourself. */"
- fi
- AC_SUBST(INCLUDE_LOCALE_H)
-
- dnl Determine which catalog format we have (if any is needed)
- dnl For now we know about two different formats:
- dnl Linux libc-5 and the normal X/Open format
- test -d intl || mkdir intl
- if test "$CATOBJEXT" = ".cat"; then
- AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
-
- dnl Transform the SED scripts while copying because some dumb SEDs
- dnl cannot handle comments.
- sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
- fi
- dnl po2tbl.sed is always needed.
- sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
- $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
-
- dnl In the intl/Makefile.in we have a special dependency which makes
- dnl only sense for gettext. We comment this out for non-gettext
- dnl packages.
- if test "$PACKAGE" = "gettext"; then
- GT_NO="#NO#"
- GT_YES=
- else
- GT_NO=
- GT_YES="#YES#"
- fi
- AC_SUBST(GT_NO)
- AC_SUBST(GT_YES)
-
- dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
- dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
- dnl Try to locate is.
- MKINSTALLDIRS=
- if test -z "$MKINSTALLDIRS"; then
- MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
- fi
- AC_SUBST(MKINSTALLDIRS)
-
- dnl *** For now the libtool support in intl/Makefile is not for real.
- l=
- AC_SUBST(l)
- ])
-
diff --git a/po/ca.gmo b/po/ca.gmo
deleted file mode 100644
index c3f335d..0000000
--- a/po/ca.gmo
+++ /dev/null
Binary files differ
diff --git a/po/cs.gmo b/po/cs.gmo
deleted file mode 100644
index 4422f03..0000000
--- a/po/cs.gmo
+++ /dev/null
Binary files differ
diff --git a/po/da.gmo b/po/da.gmo
deleted file mode 100644
index e3d1edd..0000000
--- a/po/da.gmo
+++ /dev/null
Binary files differ
diff --git a/po/de.gmo b/po/de.gmo
deleted file mode 100644
index 37bdc7b..0000000
--- a/po/de.gmo
+++ /dev/null
Binary files differ
diff --git a/po/es.gmo b/po/es.gmo
deleted file mode 100644
index aaa4c19..0000000
--- a/po/es.gmo
+++ /dev/null
Binary files differ
diff --git a/po/fi.gmo b/po/fi.gmo
deleted file mode 100644
index 539363d..0000000
--- a/po/fi.gmo
+++ /dev/null
Binary files differ
diff --git a/po/fr.gmo b/po/fr.gmo
deleted file mode 100644
index d61912d..0000000
--- a/po/fr.gmo
+++ /dev/null
Binary files differ
diff --git a/po/hu.gmo b/po/hu.gmo
deleted file mode 100644
index 6a726ac..0000000
--- a/po/hu.gmo
+++ /dev/null
Binary files differ
diff --git a/po/it.gmo b/po/it.gmo
deleted file mode 100644
index b95c739..0000000
--- a/po/it.gmo
+++ /dev/null
Binary files differ
diff --git a/po/ja.gmo b/po/ja.gmo
deleted file mode 100644
index 7989931..0000000
--- a/po/ja.gmo
+++ /dev/null
Binary files differ
diff --git a/po/nl.gmo b/po/nl.gmo
deleted file mode 100644
index 771dcf8..0000000
--- a/po/nl.gmo
+++ /dev/null
Binary files differ
diff --git a/po/pa.gmo b/po/pa.gmo
deleted file mode 100644
index 6c15812..0000000
--- a/po/pa.gmo
+++ /dev/null
Binary files differ
diff --git a/po/pl.gmo b/po/pl.gmo
deleted file mode 100644
index 6a5d498..0000000
--- a/po/pl.gmo
+++ /dev/null
Binary files differ
diff --git a/po/pt.gmo b/po/pt.gmo
deleted file mode 100644
index 1937146..0000000
--- a/po/pt.gmo
+++ /dev/null
Binary files differ
diff --git a/po/pt_BR.gmo b/po/pt_BR.gmo
deleted file mode 100644
index 2d06b2e..0000000
--- a/po/pt_BR.gmo
+++ /dev/null
Binary files differ
diff --git a/po/ro.gmo b/po/ro.gmo
deleted file mode 100644
index ddf371d..0000000
--- a/po/ro.gmo
+++ /dev/null
Binary files differ
diff --git a/po/ru.gmo b/po/ru.gmo
deleted file mode 100644
index f99aeb1..0000000
--- a/po/ru.gmo
+++ /dev/null
Binary files differ
diff --git a/po/sk.gmo b/po/sk.gmo
deleted file mode 100644
index ad752c4..0000000
--- a/po/sk.gmo
+++ /dev/null
Binary files differ
diff --git a/po/sl.gmo b/po/sl.gmo
deleted file mode 100644
index 7b92862..0000000
--- a/po/sl.gmo
+++ /dev/null
Binary files differ
diff --git a/po/sr.gmo b/po/sr.gmo
deleted file mode 100644
index 1d33769..0000000
--- a/po/sr.gmo
+++ /dev/null
Binary files differ
diff --git a/po/sv.gmo b/po/sv.gmo
deleted file mode 100644
index 500dc3a..0000000
--- a/po/sv.gmo
+++ /dev/null
Binary files differ
diff --git a/po/tr.gmo b/po/tr.gmo
deleted file mode 100644
index e203ed2..0000000
--- a/po/tr.gmo
+++ /dev/null
Binary files differ
diff --git a/po/vi.gmo b/po/vi.gmo
deleted file mode 100644
index 7761831..0000000
--- a/po/vi.gmo
+++ /dev/null
Binary files differ
diff --git a/po/zh.gmo b/po/zh.gmo
deleted file mode 100644
index 54c873e..0000000
--- a/po/zh.gmo
+++ /dev/null
Binary files differ
diff --git a/po/zh_CN.gmo b/po/zh_CN.gmo
deleted file mode 100644
index 633a47b..0000000
--- a/po/zh_CN.gmo
+++ /dev/null
Binary files differ
diff --git a/src/Makefile.in.orig b/src/Makefile.in.orig
deleted file mode 100644
index a0b0244..0000000
--- a/src/Makefile.in.orig
+++ /dev/null
@@ -1,247 +0,0 @@
-SHELL = /bin/sh
-
-VPATH = @srcdir@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-top_builddir = ..
-
-sane_prefix = @SANE_PREFIX@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-sbindir = @sbindir@
-libexecdir = @libexecdir@
-datadir = @datadir@
-sysconfdir = @sysconfdir@
-sharedstatedir = @sharedstatedir@
-localstatedir = @localstatedir@
-libdir = @libdir@
-infodir = @infodir@
-mandir = @mandir@
-includedir = @includedir@
-oldincludedir = /usr/include
-configdir = ${sysconfdir}/sane.d
-sanedatadir = ${datadir}/sane
-xsanedocdir = ${datadir}/sane/xsane/doc
-
-MKINSTALLDIRS = @MKINSTALLDIRS@
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_DATA = @INSTALL_DATA@
-
-CC = @CC@
-INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include @INCLUDES@
-DEFS = @DEFS@ -DLOCALEDIR=$(datadir)/locale -DSANELOCALEDIR=$(sane_prefix)/share/locale
-CPPFLAGS = @CPPFLAGS@ -DPATH_XSANE_DOC_DIR=$(xsanedocdir) -DPATH_SANE_DATA_DIR=$(sanedatadir)
-CFLAGS = @CFLAGS@ @SANE_CFLAGS@ @GIMP_CFLAGS@ @GTK_CFLAGS@
-LDFLAGS = @LDFLAGS@ @SANE_LDFLAGS@
-LIBS = @SANE_LIBS@ @GIMP_LIBS@ @GTK_LIBS@ @INTLLIBS@ @LIBS@
-
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
-LINK = $(CC) $(LDFLAGS) -o $@
-
-BINPROGS = @BINPROGS@
-
-@SET_MAKE@
-
-PROGRAMS = $(BINPROGS)
-LIBLIB = ../lib/liblib.a
-
-XSANE_OBJS = xsane-back-gtk.o xsane-front-gtk.o xsane-gamma.o \
- xsane-preview.o xsane-viewer.o \
- xsane-fax-project.o \
- xsane-email-project.o \
- xsane-multipage-project.o \
- xsane-rc-io.o xsane-device-preferences.o xsane-batch-scan.o \
- xsane-preferences.o xsane-setup.o xsane-save.o xsane-scan.o \
- xsane-icons.o xsane.o @XSANE_ICON@
-
-
-.c.o:
- $(COMPILE) $<
-
-all: $(PROGRAMS)
-
-install: $(PROGRAMS)
- $(MKINSTALLDIRS) $(bindir) $(sbindir) $(datadir) $(sanedatadir) $(xsanedocdir) $(sanedatadir)/xsane
- @for program in $(BINPROGS); do \
- $(INSTALL_PROGRAM) $${program} $(bindir)/$${program}; \
- done
- $(INSTALL_DATA) $(srcdir)/xsane-style.rc $(sanedatadir)/xsane/xsane-style.rc
- $(INSTALL_DATA) $(srcdir)/xsane-startimage.pnm $(sanedatadir)/xsane/xsane-startimage.pnm
- $(INSTALL_DATA) $(srcdir)/xsane-calibration.pnm $(sanedatadir)/xsane/xsane-calibration.pnm
- $(INSTALL_DATA) $(srcdir)/xsane-logo.xpm $(sanedatadir)/xsane/xsane-logo.xpm
- $(INSTALL_DATA) $(srcdir)/xsane-gpl.txt $(sanedatadir)/xsane/xsane-gpl.txt
- $(INSTALL_DATA) $(srcdir)/xsane-eula.txt $(sanedatadir)/xsane/xsane-eula.txt
- @for logo in *-logo.xpm; do \
- echo installing $(sanedatadir)/xsane/$${logo}; \
- $(INSTALL_DATA) $(srcdir)/$${logo} $(sanedatadir)/xsane/$${logo}; \
- done
-
-uninstall:
- @for program in $(BINPROGS); do \
- echo uninstalling $(bindir)/$${program}...; \
- rm -f $(bindir)/$${program}; \
- done
- echo uninstalling $(sanedatadir)/xsane/xsane-style.rc...
- rm -f $(sanedatadir)/xsane/xsane-style.rc
- echo uninstalling $(sanedatadir)/xsane/xsane-startimage.pnm...
- rm -f $(sanedatadir)/xsane/xsane-startimage.pnm
- echo uninstalling $(sanedatadir)/xsane/xsane-calibration.pnm...
- rm -f $(sanedatadir)/xsane/xsane-calibration.pnm
- echo uninstalling $(sanedatadir)/xsane/xsane-logo.xpm...
- rm -f $(sanedatadir)/xsane/xsane-logo.xpm
- @for logo in *-logo.xpm; do \
- echo uninstalling $(sanedatadir)/xsane/$${logo}; \
- rm -f $(sanedatadir)/xsane/$${logo}; \
- done
-
-xsane: $(XSANE_OBJS) $(LIBLIB)
- $(LINK) $(XSANE_OBJS) \
- $(LIBLIB) $(LIBS) $(SANE_LIBS)
-
-xsane-icon.opc: xsane-icon.rc xsane.ico
- windres -i xsane-icon.rc -o xsane-icon.opc
-
-clean:
- rm -f *.o *~ .*~ *.bak
- rm -rf .libs
-
-distclean: clean
- rm -f Makefile $(PROGRAMS)
-
-depend:
- makedepend $(INCLUDES) *.c
-
-.PHONY: all install depend clean distclean
-
-xsane.o: xsane.h
-xsane.o: xsane-back-gtk.h
-xsane.o: xsane-front-gtk.h
-xsane.o: xsane-preview.h
-xsane.o: xsane-save.h
-xsane.o: xsane-gamma.h
-xsane.o: xsane-setup.h
-xsane.o: xsane-scan.h
-xsane.o: xsane-rc-io.h
-xsane.o: xsane-device-preferences.h
-xsane.o: xsane-preferences.h
-xsane.o: xsane-icons.h
-xsane.o: xsane-batch-scan.h
-xsane.o: xsane-multipage-project.h
-xsane.o: xsane-fax-project.h
-xsane.o: xsane-email-project.h
-xsane.o: xsane-text.h
-
-xsane-back-gtk.o: xsane.h
-xsane-back-gtk.o: xsane-back-gtk.h
-xsane-back-gtk.o: xsane-front-gtk.h
-xsane-back-gtk.o: xsane-preferences.h
-xsane-back-gtk.o: xsane-gamma.h
-
-xsane-front-gtk.o: xsane.h
-xsane-front-gtk.o: xsane-back-gtk.h
-xsane-front-gtk.o: xsane-preferences.h
-xsane-front-gtk.o: xsane-preview.h
-xsane-front-gtk.o: xsane-save.h
-xsane-front-gtk.o: xsane-gamma.h
-xsane-front-gtk.o: xsane-setup.h
-
-xsane-batch-scan.o: xsane.h
-xsane-batch-scan.o: xsane-scan.h
-xsane-batch-scan.o: xsane-batch-scan.h
-xsane-batch-scan.o: xsane-back-gtk.h
-xsane-batch-scan.o: xsane-front-gtk.h
-xsane-batch-scan.o: xsane-rc-io.h
-xsane-batch-scan.o: xsane-preview.h
-xsane-batch-scan.o: xsane-gamma.h
-xsane-batch-scan.o: xsane-text.h
-
-xsane-preview.o: xsane.h
-xsane-preview.o: xsane-back-gtk.h
-xsane-preview.o: xsane-front-gtk.h
-xsane-preview.o: xsane-batch-scan.h
-xsane-preview.o: xsane-preview.h
-xsane-preview.o: xsane-preferences.h
-xsane-preview.o: xsane-gamma.h
-xsane-preview.o: xsane-text.h
-
-xsane-preferecnes.o: xsane.h
-xsane-preferecnes.o: xsane-preferences.h
-xsane-preferecnes.o: xsane-rc-io.h
-
-xsane-device-preferences.o: xsane.h
-xsane-device-preferences.o: xsane-rc-io.h
-xsane-device-preferences.o: xsane-back-gtk.h
-xsane-device-preferences.o: xsane-front-gtk.h
-xsane-device-preferences.o: xsane-gamma.h
-
-xsane-rc-io.o: xsane.h
-xsane-rc-io.o: xsane-rc-io.h
-
-xsane-save.o: xsane.h
-xsane-save.o: xsane-back-gtk.h
-xsane-save.o: xsane-front-gtk.h
-
-xsane-scan.o: xsane.h
-xsane-scan.o: xsane-back-gtk.h
-xsane-scan.o: xsane-front-gtk.h
-xsane-scan.o: xsane-preferences.h
-xsane-scan.o: xsane-preview.h
-xsane-scan.o: xsane-viewer.h
-xsane-scan.o: xsane-save.h
-xsane-scan.o: xsane-gamma.h
-xsane-scan.o: xsane-setup.h
-xsane-scan.o: xsane-email-project.h
-xsane-scan.o: xsane-text.h
-
-xsane-gamma.o: xsane.h
-xsane-gamma.o: xsane-back-gtk.h
-xsane-gamma.o: xsane-front-gtk.h
-xsane-gamma.o: xsane-preferences.h
-xsane-gamma.o: xsane-preview.h
-xsane-gamma.o: xsane-save.h
-xsane-gamma.o: xsane-text.h
-
-xsane-setup.o: xsane.h
-xsane-setup.o: xsane-back-gtk.h
-xsane-setup.o: xsane-front-gtk.h
-xsane-setup.o: xsane-preferences.h
-xsane-setup.o: xsane-device-preferences.h
-xsane-setup.o: xsane-preview.h
-xsane-setup.o: xsane-save.h
-xsane-setup.o: xsane-gamma.h
-xsane-setup.o: xsane-batch-scan.h
-xsane-setup.o: xsane-text.h
-
-xsane-viewer.o: xsane.h
-xsane-viewer.o: xsane-back-gtk.h
-xsane-viewer.o: xsane-front-gtk.h
-xsane-viewer.o: xsane-preferences.h
-xsane-viewer.o: xsane-viewer.h
-xsane-viewer.o: xsane-gamma.h
-xsane-viewer.o: xsane-icons.h
-xsane-viewer.o: xsane-save.h
-xsane-viewer.o: xsane-text.h
-
-xsane-multipage-project.o: xsane.h
-xsane-multipage-project.o: xsane-back-gtk.h
-xsane-multipage-project.o: xsane-front-gtk.h
-xsane-multipage-project.o: xsane-preferences.h
-xsane-multipage-project.o: xsane-multipage-project.h
-xsane-multipage-project.o: xsane-text.h
-
-xsane-fax-project.o: xsane.h
-xsane-fax-project.o: xsane-back-gtk.h
-xsane-fax-project.o: xsane-front-gtk.h
-xsane-fax-project.o: xsane-preferences.h
-xsane-fax-project.o: xsane-fax-project.h
-xsane-fax-project.o: xsane-text.h
-
-xsane-email-project.o: xsane.h
-xsane-email-project.o: xsane-back-gtk.h
-xsane-email-project.o: xsane-front-gtk.h
-xsane-email-project.o: xsane-preferences.h
-xsane-email-project.o: xsane-email-project.h
-xsane-email-project.o: xsane-text.h
-
diff --git a/xsane.spec b/xsane.spec
deleted file mode 100644
index 9fa9e07..0000000
--- a/xsane.spec
+++ /dev/null
@@ -1,43 +0,0 @@
-%define name xsane
-%define version 0.999
-%define release 1
-%define prefix /usr
-
-Name: %{name}
-Version: %{version}
-Release: %{release}
-Summary: XSane is a graphical frontend for scanners. It uses the library SANE.
-Group: Graphics
-URL: http://www.xsane.org
-Buildroot: /var/tmp/%{name}-buildroot
-Requires: sane-backends
-Source: ftp://ftp.mostang.com/pub/sane/xsane/%{name}-%{version}.tar.gz
-Copyright: GPL
-BuildRequires: gtk+ >= 1.2.0 sane-backends-devel >= 1.0.2
-
-%description
-Xsane is a grahical frontend for sane. Install this if you want a grahpical
-frontend for sane for use in the X Windowing System.
-
-%prep
-%setup -q -n %{name}-%{version}
-
-%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
-uname -a | grep -qi SMP && make -j 2 || make
-
-%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{prefix}
-make prefix=%{buildroot}%{prefix} install
-strip %{buildroot}%{prefix}/bin/* || :
-
-%clean
-rm -rf %{buildroot}
-
-%files
-%defattr(-,root,root)
-%doc xsane*
-/usr/share/*
-/usr/bin/xsane
-/usr/man/man1/xsane.1*