jpegpixi-1.1.1/0000777000000000000000000000000010340157462010306 500000000000000jpegpixi-1.1.1/rbtree.h0000644000000000000000000000546610340156505011666 00000000000000/* This file is part of a red-black tree implementation. Copyright (C) 2003, 2004 Martin Dickopp This file 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 file 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 file; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef HDR_RBTREE #define HDR_RBTREE 1 /* Red-black tree. The member should not be accessed directly. */ struct rbtree { struct rbtree_node *root; }; /* Create a tree. */ #define rbtree_create(tree) ((void)((tree)->root = 0)) /* Destroy a tree. Free all associated memory. */ #define rbtree_destroy(tree) ((void)((tree)->root != 0 ? (rbtree_destroy1 ((tree)->root), 0) : 0)) /* Internal function; should not be called directly. */ extern void rbtree_destroy1 (struct rbtree_node *node) gcc_attr_nonnull (()); /* Insert a new node into a tree. The data is copied; the location of the copied data is returned, and if `exists_ptr' is not a null pointer, the integer at the location pointed to is set to zero. If the node already exists, the location of the existing node data is returned, and if `exists_ptr' is not a null pointer, the integer at the location pointed to is set to one. If memory allocation fails, a null pointer is returned. */ extern void *rbtree_insert (struct rbtree *tree, const void *data, size_t data_len, int (*compare) (const void *a, const void *b), int *exists_ptr) gcc_attr_nonnull ((1, 2, 4)); /* Delete a node. The `data' parameter must point to the data associated with an existing node. */ extern void rbtree_delete (struct rbtree *tree, void *data) gcc_attr_nonnull (()); /* Find a node. Return the data associated with the node, or a null pointer if the node does not exist. */ extern void *rbtree_find (const struct rbtree *tree, const void *data, int (*compare) (const void *a, const void *b)) gcc_attr_pure gcc_attr_nonnull (()); /* Return the data associated with the first node, or a null pointer if the tree is empty. */ extern void *rbtree_first (const struct rbtree *tree) gcc_attr_pure gcc_attr_nonnull (()); /* Return the data associated with the next node, or a null pointer if no more nodes exist. */ extern void *rbtree_next (const void *data) gcc_attr_pure gcc_attr_nonnull (()); #endif jpegpixi-1.1.1/README.jpeglib0000644000000000000000000004675110173207323012526 00000000000000The Independent JPEG Group's JPEG software ========================================== README for release 6b of 27-Mar-1998 ==================================== This distribution contains the sixth public release of the Independent JPEG Group's free JPEG software. You are welcome to redistribute this software and to use it for any purpose, subject to the conditions under LEGAL ISSUES, below. Serious users of this software (particularly those incorporating it into larger programs) should contact IJG at jpeg-info@uunet.uu.net to be added to our electronic mailing list. Mailing list members are notified of updates and have a chance to participate in technical discussions, etc. This software is the work of Tom Lane, Philip Gladstone, Jim Boucher, Lee Crocker, Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi, Guido Vollbeding, Ge' Weijers, and other members of the Independent JPEG Group. IJG is not affiliated with the official ISO JPEG standards committee. DOCUMENTATION ROADMAP ===================== This file contains the following sections: OVERVIEW General description of JPEG and the IJG software. LEGAL ISSUES Copyright, lack of warranty, terms of distribution. REFERENCES Where to learn more about JPEG. ARCHIVE LOCATIONS Where to find newer versions of this software. RELATED SOFTWARE Other stuff you should get. FILE FORMAT WARS Software *not* to get. TO DO Plans for future IJG releases. Other documentation files in the distribution are: User documentation: install.doc How to configure and install the IJG software. usage.doc Usage instructions for cjpeg, djpeg, jpegtran, rdjpgcom, and wrjpgcom. *.1 Unix-style man pages for programs (same info as usage.doc). wizard.doc Advanced usage instructions for JPEG wizards only. change.log Version-to-version change highlights. Programmer and internal documentation: libjpeg.doc How to use the JPEG library in your own programs. example.c Sample code for calling the JPEG library. structure.doc Overview of the JPEG library's internal structure. filelist.doc Road map of IJG files. coderules.doc Coding style rules --- please read if you contribute code. Please read at least the files install.doc and usage.doc. Useful information can also be found in the JPEG FAQ (Frequently Asked Questions) article. See ARCHIVE LOCATIONS below to find out where to obtain the FAQ article. If you want to understand how the JPEG code works, we suggest reading one or more of the REFERENCES, then looking at the documentation files (in roughly the order listed) before diving into the code. OVERVIEW ======== This package contains C software to implement JPEG image compression and decompression. JPEG (pronounced "jay-peg") is a standardized compression method for full-color and gray-scale images. JPEG is intended for compressing "real-world" scenes; line drawings, cartoons and other non-realistic images are not its strong suit. JPEG is lossy, meaning that the output image is not exactly identical to the input image. Hence you must not use JPEG if you have to have identical output bits. However, on typical photographic images, very good compression levels can be obtained with no visible change, and remarkably high compression levels are possible if you can tolerate a low-quality image. For more details, see the references, or just experiment with various compression settings. This software implements JPEG baseline, extended-sequential, and progressive compression processes. Provision is made for supporting all variants of these processes, although some uncommon parameter settings aren't implemented yet. For legal reasons, we are not distributing code for the arithmetic-coding variants of JPEG; see LEGAL ISSUES. We have made no provision for supporting the hierarchical or lossless processes defined in the standard. We provide a set of library routines for reading and writing JPEG image files, plus two sample applications "cjpeg" and "djpeg", which use the library to perform conversion between JPEG and some other popular image file formats. The library is intended to be reused in other applications. In order to support file conversion and viewing software, we have included considerable functionality beyond the bare JPEG coding/decoding capability; for example, the color quantization modules are not strictly part of JPEG decoding, but they are essential for output to colormapped file formats or colormapped displays. These extra functions can be compiled out of the library if not required for a particular application. We have also included "jpegtran", a utility for lossless transcoding between different JPEG processes, and "rdjpgcom" and "wrjpgcom", two simple applications for inserting and extracting textual comments in JFIF files. The emphasis in designing this software has been on achieving portability and flexibility, while also making it fast enough to be useful. In particular, the software is not intended to be read as a tutorial on JPEG. (See the REFERENCES section for introductory material.) Rather, it is intended to be reliable, portable, industrial-strength code. We do not claim to have achieved that goal in every aspect of the software, but we strive for it. We welcome the use of this software as a component of commercial products. No royalty is required, but we do ask for an acknowledgement in product documentation, as described under LEGAL ISSUES. LEGAL ISSUES ============ In plain English: 1. We don't promise that this software works. (But if you find any bugs, please let us know!) 2. You can use this software for whatever you want. You don't have to pay us. 3. You may not pretend that you wrote this software. If you use it in a program, you must acknowledge somewhere in your documentation that you've used the IJG code. In legalese: The authors make NO WARRANTY or representation, either express or implied, with respect to this software, its quality, accuracy, merchantability, or fitness for a particular purpose. This software is provided "AS IS", and you, its user, assume the entire risk as to its quality and accuracy. This software is copyright (C) 1991-1998, Thomas G. Lane. All Rights Reserved except as specified below. Permission is hereby granted to use, copy, modify, and distribute this software (or portions thereof) for any purpose, without fee, subject to these conditions: (1) If any part of the source code for this software is distributed, then this README file must be included, with this copyright and no-warranty notice unaltered; and any additions, deletions, or changes to the original files must be clearly indicated in accompanying documentation. (2) If only executable code is distributed, then the accompanying documentation must state that "this software is based in part on the work of the Independent JPEG Group". (3) Permission for use of this software is granted only if the user accepts full responsibility for any undesirable consequences; the authors accept NO LIABILITY for damages of any kind. These conditions apply to any software derived from or based on the IJG code, not just to the unmodified library. If you use our work, you ought to acknowledge us. Permission is NOT granted for the use of any IJG author's name or company name in advertising or publicity relating to this software or products derived from it. This software may be referred to only as "the Independent JPEG Group's software". We specifically permit and encourage the use of this software as the basis of commercial products, provided that all warranty or liability claims are assumed by the product vendor. ansi2knr.c is included in this distribution by permission of L. Peter Deutsch, sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA. ansi2knr.c is NOT covered by the above copyright and conditions, but instead by the usual distribution terms of the Free Software Foundation; principally, that you must include source code if you redistribute it. (See the file ansi2knr.c for full details.) However, since ansi2knr.c is not needed as part of any program generated from the IJG code, this does not limit you more than the foregoing paragraphs do. The Unix configuration script "configure" was produced with GNU Autoconf. It is copyright by the Free Software Foundation but is freely distributable. The same holds for its supporting scripts (config.guess, config.sub, ltconfig, ltmain.sh). Another support script, install-sh, is copyright by M.I.T. but is also freely distributable. It appears that the arithmetic coding option of the JPEG spec is covered by patents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding cannot legally be used without obtaining one or more licenses. For this reason, support for arithmetic coding has been removed from the free JPEG software. (Since arithmetic coding provides only a marginal gain over the unpatented Huffman mode, it is unlikely that very many implementations will support it.) So far as we are aware, there are no patent restrictions on the remaining code. The IJG distribution formerly included code to read and write GIF files. To avoid entanglement with the Unisys LZW patent, GIF reading support has been removed altogether, and the GIF writer has been simplified to produce "uncompressed GIFs". This technique does not use the LZW algorithm; the resulting GIF files are larger than usual, but are readable by all standard GIF decoders. We are required to state that "The Graphics Interchange Format(c) is the Copyright property of CompuServe Incorporated. GIF(sm) is a Service Mark property of CompuServe Incorporated." REFERENCES ========== We highly recommend reading one or more of these references before trying to understand the innards of the JPEG software. The best short technical introduction to the JPEG compression algorithm is Wallace, Gregory K. "The JPEG Still Picture Compression Standard", Communications of the ACM, April 1991 (vol. 34 no. 4), pp. 30-44. (Adjacent articles in that issue discuss MPEG motion picture compression, applications of JPEG, and related topics.) If you don't have the CACM issue handy, a PostScript file containing a revised version of Wallace's article is available at ftp://ftp.uu.net/graphics/jpeg/wallace.ps.gz. The file (actually a preprint for an article that appeared in IEEE Trans. Consumer Electronics) omits the sample images that appeared in CACM, but it includes corrections and some added material. Note: the Wallace article is copyright ACM and IEEE, and it may not be used for commercial purposes. A somewhat less technical, more leisurely introduction to JPEG can be found in "The Data Compression Book" by Mark Nelson and Jean-loup Gailly, published by M&T Books (New York), 2nd ed. 1996, ISBN 1-55851-434-1. This book provides good explanations and example C code for a multitude of compression methods including JPEG. It is an excellent source if you are comfortable reading C code but don't know much about data compression in general. The book's JPEG sample code is far from industrial-strength, but when you are ready to look at a full implementation, you've got one here... The best full description of JPEG is the textbook "JPEG Still Image Data Compression Standard" by William B. Pennebaker and Joan L. Mitchell, published by Van Nostrand Reinhold, 1993, ISBN 0-442-01272-1. Price US$59.95, 638 pp. The book includes the complete text of the ISO JPEG standards (DIS 10918-1 and draft DIS 10918-2). This is by far the most complete exposition of JPEG in existence, and we highly recommend it. The JPEG standard itself is not available electronically; you must order a paper copy through ISO or ITU. (Unless you feel a need to own a certified official copy, we recommend buying the Pennebaker and Mitchell book instead; it's much cheaper and includes a great deal of useful explanatory material.) In the USA, copies of the standard may be ordered from ANSI Sales at (212) 642-4900, or from Global Engineering Documents at (800) 854-7179. (ANSI doesn't take credit card orders, but Global does.) It's not cheap: as of 1992, ANSI was charging $95 for Part 1 and $47 for Part 2, plus 7% shipping/handling. The standard is divided into two parts, Part 1 being the actual specification, while Part 2 covers compliance testing methods. Part 1 is titled "Digital Compression and Coding of Continuous-tone Still Images, Part 1: Requirements and guidelines" and has document numbers ISO/IEC IS 10918-1, ITU-T T.81. Part 2 is titled "Digital Compression and Coding of Continuous-tone Still Images, Part 2: Compliance testing" and has document numbers ISO/IEC IS 10918-2, ITU-T T.83. Some extensions to the original JPEG standard are defined in JPEG Part 3, a newer ISO standard numbered ISO/IEC IS 10918-3 and ITU-T T.84. IJG currently does not support any Part 3 extensions. The JPEG standard does not specify all details of an interchangeable file format. For the omitted details we follow the "JFIF" conventions, revision 1.02. A copy of the JFIF spec is available from: Literature Department C-Cube Microsystems, Inc. 1778 McCarthy Blvd. Milpitas, CA 95035 phone (408) 944-6300, fax (408) 944-6314 A PostScript version of this document is available by FTP at ftp://ftp.uu.net/graphics/jpeg/jfif.ps.gz. There is also a plain text version at ftp://ftp.uu.net/graphics/jpeg/jfif.txt.gz, but it is missing the figures. The TIFF 6.0 file format specification can be obtained by FTP from ftp://ftp.sgi.com/graphics/tiff/TIFF6.ps.gz. The JPEG incorporation scheme found in the TIFF 6.0 spec of 3-June-92 has a number of serious problems. IJG does not recommend use of the TIFF 6.0 design (TIFF Compression tag 6). Instead, we recommend the JPEG design proposed by TIFF Technical Note #2 (Compression tag 7). Copies of this Note can be obtained from ftp.sgi.com or from ftp://ftp.uu.net/graphics/jpeg/. It is expected that the next revision of the TIFF spec will replace the 6.0 JPEG design with the Note's design. Although IJG's own code does not support TIFF/JPEG, the free libtiff library uses our library to implement TIFF/JPEG per the Note. libtiff is available from ftp://ftp.sgi.com/graphics/tiff/. ARCHIVE LOCATIONS ================= The "official" archive site for this software is ftp.uu.net (Internet address 192.48.96.9). The most recent released version can always be found there in directory graphics/jpeg. This particular version will be archived as ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz. If you don't have direct Internet access, UUNET's archives are also available via UUCP; contact help@uunet.uu.net for information on retrieving files that way. Numerous Internet sites maintain copies of the UUNET files. However, only ftp.uu.net is guaranteed to have the latest official version. You can also obtain this software in DOS-compatible "zip" archive format from the SimTel archives (ftp://ftp.simtel.net/pub/simtelnet/msdos/graphics/), or on CompuServe in the Graphics Support forum (GO CIS:GRAPHSUP), library 12 "JPEG Tools". Again, these versions may sometimes lag behind the ftp.uu.net release. The JPEG FAQ (Frequently Asked Questions) article is a useful source of general information about JPEG. It is updated constantly and therefore is not included in this distribution. The FAQ is posted every two weeks to Usenet newsgroups comp.graphics.misc, news.answers, and other groups. It is available on the World Wide Web at http://www.faqs.org/faqs/jpeg-faq/ and other news.answers archive sites, including the official news.answers archive at rtfm.mit.edu: ftp://rtfm.mit.edu/pub/usenet/news.answers/jpeg-faq/. If you don't have Web or FTP access, send e-mail to mail-server@rtfm.mit.edu with body send usenet/news.answers/jpeg-faq/part1 send usenet/news.answers/jpeg-faq/part2 RELATED SOFTWARE ================ Numerous viewing and image manipulation programs now support JPEG. (Quite a few of them use this library to do so.) The JPEG FAQ described above lists some of the more popular free and shareware viewers, and tells where to obtain them on Internet. If you are on a Unix machine, we highly recommend Jef Poskanzer's free PBMPLUS software, which provides many useful operations on PPM-format image files. In particular, it can convert PPM images to and from a wide range of other formats, thus making cjpeg/djpeg considerably more useful. The latest version is distributed by the NetPBM group, and is available from numerous sites, notably ftp://wuarchive.wustl.edu/graphics/graphics/packages/NetPBM/. Unfortunately PBMPLUS/NETPBM is not nearly as portable as the IJG software is; you are likely to have difficulty making it work on any non-Unix machine. A different free JPEG implementation, written by the PVRG group at Stanford, is available from ftp://havefun.stanford.edu/pub/jpeg/. This program is designed for research and experimentation rather than production use; it is slower, harder to use, and less portable than the IJG code, but it is easier to read and modify. Also, the PVRG code supports lossless JPEG, which we do not. (On the other hand, it doesn't do progressive JPEG.) FILE FORMAT WARS ================ Some JPEG programs produce files that are not compatible with our library. The root of the problem is that the ISO JPEG committee failed to specify a concrete file format. Some vendors "filled in the blanks" on their own, creating proprietary formats that no one else could read. (For example, none of the early commercial JPEG implementations for the Macintosh were able to exchange compressed files.) The file format we have adopted is called JFIF (see REFERENCES). This format has been agreed to by a number of major commercial JPEG vendors, and it has become the de facto standard. JFIF is a minimal or "low end" representation. We recommend the use of TIFF/JPEG (TIFF revision 6.0 as modified by TIFF Technical Note #2) for "high end" applications that need to record a lot of additional data about an image. TIFF/JPEG is fairly new and not yet widely supported, unfortunately. The upcoming JPEG Part 3 standard defines a file format called SPIFF. SPIFF is interoperable with JFIF, in the sense that most JFIF decoders should be able to read the most common variant of SPIFF. SPIFF has some technical advantages over JFIF, but its major claim to fame is simply that it is an official standard rather than an informal one. At this point it is unclear whether SPIFF will supersede JFIF or whether JFIF will remain the de-facto standard. IJG intends to support SPIFF once the standard is frozen, but we have not decided whether it should become our default output format or not. (In any case, our decoder will remain capable of reading JFIF indefinitely.) Various proprietary file formats incorporating JPEG compression also exist. We have little or no sympathy for the existence of these formats. Indeed, one of the original reasons for developing this free software was to help force convergence on common, open format standards for JPEG files. Don't use a proprietary file format! TO DO ===== The major thrust for v7 will probably be improvement of visual quality. The current method for scaling the quantization tables is known not to be very good at low Q values. We also intend to investigate block boundary smoothing, "poor man's variable quantization", and other means of improving quality-vs-file-size performance without sacrificing compatibility. In future versions, we are considering supporting some of the upcoming JPEG Part 3 extensions --- principally, variable quantization and the SPIFF file format. As always, speeding things up is of great interest. Please send bug reports, offers of help, etc. to jpeg-info@uunet.uu.net. jpegpixi-1.1.1/opthotp.h0000644000000000000000000000174410340157454012077 00000000000000/* This file has been generated with opag 0.8.0. */ #ifndef HDR_OPTHOTP #define HDR_OPTHOTP 1 /* Set to 1 if option --threshold (-t) has been specified. */ extern char opt_threshold; /* Set to 1 if option --invert (-i) has been specified. */ extern char opt_invert; /* Set to 1 if option --comments (-c) has been specified. */ extern char opt_comments; /* Set to 1 if option --help has been specified. */ extern char opt_help; /* Set to 1 if option --version has been specified. */ extern char opt_version; /* Argument to option --threshold (-t). */ extern const char *arg_threshold; /* Parse command line options. Return index of first non-option argument, or -1 if an error is encountered. */ #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) extern int parse_options (const char *program_name, int argc, char **argv) __attribute__ ((nonnull)); #else extern int parse_options (const char *program_name, int argc, char **argv); #endif #endif jpegpixi-1.1.1/acinclude.m40000644000000000000000000001350610240142260012405 00000000000000## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2001, 2002, 2003, 2004, 2005 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. # MD_PATH_PROG(PROGRAM) # --------------------- # Set PROGRAM to the path to PROGRAM, or to `missing' if the program is not # available. AC_DEFUN([MD_PATH_PROG], [AS_VAR_PUSHDEF([md_Program], [md_path_$1])dnl AS_VAR_SET(md_Program, []) AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=PROGRAM], [use PROGRAM as $1 executable]), [case $withval in yes) ;; no) AS_VAR_SET(md_Program, missing) ;; *) AS_VAR_SET(md_Program, ["$withval"]) ;; esac]) AS_IF([test "x[]AS_VAR_GET(md_Program)" != x], [AS_TR_CPP([$1])="AS_VAR_GET(md_Program)"], [AC_PATH_PROG(AS_TR_CPP([$1]), [$1], missing)])dnl AS_VAR_POPDEF([md_Program])dnl ])# MD_PATH_PROG # MD_PATH(PACKAGE, HEADER, LIBRARY, SYMBOL) # ----------------------------------------- # Set PACKAGE_CPPFLAGS and PACKAGE_LIBS to the flags needed to compile/link with PACKAGE. HEADER and LIBRARY # should be a header file and a library, respectively, belonging to PACKAGE. SYMBOL should be a SYMBOL in # LIBRARY. If the package is available, define HAVE_PACKAGE. AC_DEFUN([MD_PATH], [AS_VAR_PUSHDEF([md_Package], [md_path_have_$1])dnl AS_VAR_PUSHDEF([md_Inc], [md_path_include_$1])dnl AS_VAR_PUSHDEF([md_Lib], [md_path_lib_$1])dnl AS_VAR_SET(md_Package, yes) AS_VAR_SET(md_Inc, []) AS_VAR_SET(md_Lib, []) AC_ARG_WITH([$1], AC_HELP_STRING([--with-$1=DIR], [search $1 header files in DIR/include, library in DIR/lib]), [case $withval in yes) AS_VAR_SET(md_Package, yes) ;; no) AS_VAR_SET(md_Package, no) ;; *) AS_VAR_SET(md_Package, yes) AS_VAR_SET(md_Inc, ["$withval/include"]) AS_VAR_SET(md_Lib, ["$withval/lib"]) ;; esac]) AC_ARG_WITH([$1-include], AC_HELP_STRING([--with-$1-include=DIR], [search $1 header files in DIR]), [case $withval in yes) AS_VAR_SET(md_Package, yes) ;; no) AS_VAR_SET(md_Package, no) ;; *) AS_VAR_SET(md_Package, yes) AS_VAR_SET(md_Inc, ["$withval"]) ;; esac]) AC_ARG_WITH([$1-lib], AC_HELP_STRING([--with-$1-lib=DIR], [search $1 library in DIR]), [case $withval in yes) AS_VAR_SET(md_Package, yes) ;; no) AS_VAR_SET(md_Package, no) ;; *) AS_VAR_SET(md_Package, yes) AS_VAR_SET(md_Lib, ["$withval"]) ;; esac]) AS_TR_CPP([$1]_CPPFLAGS)= AS_TR_CPP([$1]_LIBS)= AS_IF([test AS_VAR_GET(md_Package) = yes], [AS_IF([test "x[]AS_VAR_GET(md_Inc)" != x], [AS_TR_CPP([$1]_CPPFLAGS)="-I[]AS_VAR_GET(md_Inc)"]) AS_IF([test "x[]AS_VAR_GET(md_Lib)" != x], [AS_TR_CPP([$1]_LIBS)="-L[]AS_VAR_GET(md_Lib)"]) save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $[]AS_TR_CPP([$1]_CPPFLAGS)" AC_CHECK_HEADER([$2], [save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $[]AS_TR_CPP([$1]_LIBS)" AC_CHECK_LIB([$3], [$4], [AS_TR_CPP([$1]_LIBS)="$[]AS_TR_CPP([$1]_LIBS) -l[$3]"], [AS_VAR_SET(md_Package, no)]) LDFLAGS="$save_LDFLAGS"], [AS_VAR_SET(md_Package, no)], [AC_INCLUDES_DEFAULT]) CPPFLAGS="$save_CPPFLAGS"]) AH_TEMPLATE(AS_TR_CPP(HAVE_[$1]), [Define if package `$1' is available.])dnl AS_IF([test AS_VAR_GET(md_Package) = yes], [AC_DEFINE(AS_TR_CPP(HAVE_[$1]), [1])])dnl AS_VAR_POPDEF([md_Lib])dnl AS_VAR_POPDEF([md_Inc])dnl AS_VAR_POPDEF([md_Package])dnl ])# MD_PATH # MD_CHECK_TYPE_SYS_ERRLIST # ------------------------- # Set SYS_ERRLIST_TYPE to the type of sys_errlist [0]. AC_DEFUN([MD_CHECK_TYPE_SYS_ERRLIST], [AC_CACHE_CHECK([for type of sys_errlist elements], [md_cv_var_type_sys_errlist], [md_cv_var_type_sys_errlist='char *' for md_type_sys_errlist in 'const char *const' 'const char *' 'char *const'; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [extern $md_type_sys_errlist sys_errlist @<:@@:>@;])], [md_cv_var_type_sys_errlist="$md_type_sys_errlist"; break]) done]) AC_DEFINE_UNQUOTED(SYS_ERRLIST_TYPE, [$md_cv_var_type_sys_errlist], [Define to the type of `sys_errlist' elements.])dnl ])# MD_CHECK_TYPE_SYS_ERRLIST # MD_NLS # ------ # Test for Native Language Support. If supported, HAVE_NLS is defined and SUBDIR_PO is substituted with `po'. # Otherwise, SUBDIR_PO is substituted with an empty string. XGETTEXT, MSGMERGE, and MSGFMT are replaced by # the paths of the respective programs. # AC_DEFUN([MD_NLS], [AC_ARG_ENABLE([nls], AC_HELP_STRING([--disable-nls], [do not use Native Language Support]), [md_nls="$enableval"], [md_nls=yes]) AM_MISSING_PROG([XGETTEXT], [xgettext]) AM_MISSING_PROG([MSGMERGE], [msgmerge]) AM_MISSING_PROG([MSGFMT], [msgfmt]) if test "x$md_nls" != xyes && test "x$md_nls" != xno; then AC_MSG_WARN([unrecognized value for --enable-nls; disabling Native Language Support]) md_nls=no fi SUBDIR_PO= if test "x$md_nls" = xyes; then AC_CHECK_HEADERS([libintl.h], [AC_CHECK_DECLS([gettext, ngettext, bindtextdomain, textdomain], [], [md_nls=no], [AC_INCLUDES_DEFAULT @%:@include ])], [md_nls=no], [AC_INCLUDES_DEFAULT]) if test "x$md_nls" = xyes; then AC_CHECK_HEADERS([locale.h], [AC_CHECK_DECLS([setlocale, LC_MESSAGES], [], [md_nls=no], [AC_INCLUDES_DEFAULT @%:@include ])], [md_nls=no], [AC_INCLUDES_DEFAULT]) if test "x$md_nls" = xyes; then AC_SEARCH_LIBS([ngettext], [intl], [], [md_nls=no]) fi fi if test "x$md_nls" = xyes; then AC_DEFINE([HAVE_NLS], [1], [Define to 1 to enable Native Language Support.]) SUBDIR_PO=po else AC_MSG_WARN([disabling Native Language Support]) fi fi[]dnl AC_SUBST([SUBDIR_PO])dnl ])# MD_NLS jpegpixi-1.1.1/po/0000777000000000000000000000000010340157463010725 500000000000000jpegpixi-1.1.1/po/fi.gmo0000644000000000000000000002110010340157457011740 00000000000000*l;0 . / L :l 5 3 ! O3 # & +  & ,= j '     , 7 5= /s   & $ d _ it|+BKY\  2$"W zI?B%$h[$.2=!p()()%8 ^4. 9?F-$3R " " )" 4") #  !'($*& %" # luminosity: %u.%02u%% Interpolation methods: 0, av, average average of adjacent pixels 1, li, linear (bi)linear interpolation 2, qu, quadratic (bi)quadratic interpolation 3, cu, cubic (bi)cubic interpolation Please report bugs to . -f, --blocks-file=FILE read pixel block specifications from FILE -m, --method=METHOD use interpolation method METHOD [default: linear] -v, --verbose display coordinates and size of each pixel block that is interpolated -i, --info display information about the image -s, --strip do not copy comment and extra markers --help display this help text and exit --version display version information and exit -t, --threshold=THRESHOLD specify threshold between noise and signal [default: 10%] -i, --invert invert image (i.e. find dead pixels in an otherwise white image) -c, --comments output comments with luminosities of hot pixel blocks --help display this help text and exit --version display version information and exit %dx%d%s: %s: %s %s: %s: %u,%u,%u,%u ignored: Image size %ux%u %s: %s: Image has zero size %s: %s: size %ux%u, colorspace %s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u %s: %s:%u: invalid pixel block specification ignored %s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u %s: destination filename missing %s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored %s: interpolating %u,%u,%u,%u (%s) %s: invalid interpolation method `%s' %s: invalid pixel block specification `%s' %s: invalid threshold `%s' %s: option `-%c' requires an argument %s: option `--%s' doesn't allow an argument %s: option `--%s' is ambiguous %s: option `--%s' requires an argument %s: source filename missing %s: unexpected argument `%s' %s: unrecognized option `-%c' %s: unrecognized option `--%s' , sampling2-dimCopyright (C) 2002, 2003, 2004, 2005 Martin Dickopp Copyright (C) 2003, 2004, 2005 Martin Dickopp STDINSTDOUTThis program is free software; it may be copied and/or modified under the terms of the GNU General Public License version 2 or (at your option) any later version. There is NO warranty; not even for MERCHANTABILITY or FIT- NESS FOR A PARTICULAR PURPOSE. Try `%s --help' for more information. Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE] Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an otherwise white JPEG image (if the `--invert' option is specified). Write their coordinates to a pixel blocks file suitable for the jpegpixi program. Options: Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]... Interpolate pixels in JFIF image files. Pixel block specification: D can be `V' or `v' (vertical 1D interpolation), `H' or `h' (horizontal 1D interpolation), `2' (2D interpolation) [default]; X,Y specifies the top left corner of the pixel block to be interpolated; S specifies the size of the block [default: 1]; SX,SY specifies separate sizes for the X and Y direction. All numbers can be absolute coordinates/sizes, or percentages of the image size (if followed by a `%%' character). Options: grayscalehorizontalunknownverticalProject-Id-Version: jpegpixi 1.1.0 Report-Msgid-Bugs-To: Martin Dickopp POT-Creation-Date: 2005-11-20 21:40+0100 PO-Revision-Date: 2005-05-25 20:40+0200 Last-Translator: Jarno Elonen Language-Team: Finnish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: KBabel 1.9.1 # kirkkaus: %u.%02u%% Interpolointimenetelmät: 0, av, average viereisten pikselien keskiarvo 1, li, linear (bi)lineaarinen interpolointi 2, qu, quadratic (bi)neliöllinen interpolointi 3, cu, cubic (bi)kuutiollinen interpolointi Vioista voi ilmoittaa (englanniksi) osoitteeseen . -f, --blocks-file=TIEDOSTO lue pikselialueiden määritykset TIEDOSTO:sta -m, --method=MENETELMÄ käytä interpolointimenetelmää MENETELMÄ [oletus: linear] -v, --verbose näyttä jokaisen interpoloidun pikselialueen koon ja paikan -i, --info näyttää tietoja kuvasta -s, --strip ei kopioi kommentteja ja lisämääreitä --help näyttää tämän ohjeen ja poistuu --version näyttää versiotiedot ja poistuu -t, --threshold=KYNNYSARVO määrää signaalin ja kohinan erottavan kynnysarvon [oletus: 10%] -i, --invert negatiivikuva (etsii kuolleita pikseleitä valkoisesta kuvasta) -c, --comments tulostaa palaneiden pikselialueiden kirkkaudet kommenteissa --help näyttää tämän ohjeen ja poistuu --version näyttää versiotiedot ja poistuu %d×%d%s: %s: %s %s: %s: %u,%u,%u,%u ohitettiin: Kuvan koko %u×%u %s: %s: kuvan koko on nolla tavua %s: %s: koko %u×%u, värimalli %s: %s:%u: %u,%u,%u,%u ohitettiin: päällekäisyys kohdalla %u,%u,%u,%u %s: %s:%u: ohitettiin virheellisesti määritelty pikseli-alue %s: %u,%u,%u,%u ohitettiin: päällekäisyys kohdalla %u,%u,%u,%u %s: kohdekuvan tiedostonimi puuttuu %s: ohitettiin epäyhteensopivat rinnakkaiset pisteet %u,%u,%u,%u (%s) ja %u,%u,%u,%u (%s) %s: interpoloidaan %u,%u,%u,%u (%s) %s: virheellinen interpolointimentelmä: `%s' %s: virheellisesti määritelty pikseli-alue `%s' %s: virheellinen kynnysarvo `%s' %s: valitsin `-%c' tarvitsee argumentin %s: valitsin `--%s' ei salli argumenttia %s: valitsin `--%s' on monitulkintainen %s: valitsin `--%s' tarvitsee argumentin %s: lähdekuvan tiedostonimi puuttuu %s: odottamaton argumentti `%s' %s: tuntematon valitsin `-%c' %s: tuntematon valitsin `--%s' , näytteistys2-ulot.Copyright © 2002, 2003, 2004, 2005 Martin Dickopp Copyright © 2003, 2004, 2005 Martin Dickopp STDINSTDOUTTakuuta EI ole; ei edes MYYNTIKUNNOSTA tai SOVELTUVUUDESTA TIETTYYN TARKOITUKSEEN. Voit levittää ohjelmasta kopioita GNU General Public Licensen mukaisesti. Tiedostosta COPYING löydät lisätietoja näistä seikoista. Komento `%s --help' näyttää lisätietoja. Käyttö: %s [VALITSIMET]... JPEG-TIEDOSTO [PIXELI-ALUE-TIEDOSTO] Etsii palaneet pikselit muuten mustasta JPEG-kuvasta (oletusarvo) tai kuolleet pikselit muuten valkoisesta kuvasta (käytettäessä `--invert'-valitsinta) ja tulostaa niiden koordinaatit jpegpixi-ohjelmalle sopivassa muodossa. Valitsimet: Käyttö: %s [VALITSIN]... LÄHDE KOHDE [[D:]X,Y[,S]|[,SX,SY]]... Interpoloi pikseleitä JFIF-kuvatiedostoista. Pikselialueen määritys: D voi olla `V' tai `v' (pystysuuntainen 1D-interpolointi), `H' tai `h' (vaakasuuntainen 1D-interpolointi), `2' (2D-interpolointi) [oletus]; X,Y määrää interpoloitavan pikselialueen vasemman yläkulman; S määrää alueen koon [oletus: 1]; SX,SY määrää X- ja Y-suunnille erilliset koot. Kaikki numerot voivat olla absoluuttisia koordinaatteja/kokoja tai prosentteja koko kuvasta (merkitään lisäämällä perään `%%'-merkki). Valitsimet: harmaasävyvaakasuuntatuntematonpystysuuntajpegpixi-1.1.1/po/jpegpixi.pot0000644000000000000000000001723710340157456013220 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: Martin Dickopp \n" "POT-Creation-Date: 2005-11-20 21:40+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: file.c:80 file.c:171 file.c:255 file.c:261 file.c:287 jpegpixi.c:178 jpegpixi.c:208 jpegpixi.c:281 jpeghotp.c:189 #: jpeghotp.c:257 jpeghotp.c:270 jpeghotp.c:291 jpeghotp.c:302 jpeghotp.c:320 #, c-format msgid "%s: %s: %s\n" msgstr "" #: file.c:106 #, c-format msgid "%s: %s: Image has zero size\n" msgstr "" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:117 #, c-format msgid "%s: %s: size %ux%u, colorspace " msgstr "" #: file.c:118 file.c:237 file.c:282 jpeghotp.c:316 msgid "STDIN" msgstr "" #: file.c:124 msgid "grayscale" msgstr "" #: file.c:144 msgid "unknown" msgstr "" #: file.c:147 msgid ", sampling" msgstr "" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:158 #, c-format msgid " %dx%d" msgstr "" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:236 #, c-format msgid "%s: %s: %u,%u,%u,%u ignored: Image size %ux%u\n" msgstr "" #: file.c:284 jpeghotp.c:291 msgid "STDOUT" msgstr "" #: interpolate.c:101 #, c-format msgid "%s: interpolating %u,%u,%u,%u (%s)\n" msgstr "" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "vertical" msgstr "" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "horizontal" msgstr "" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "2-dim" msgstr "" #: jpegpixi.c:134 #, c-format msgid "%s: invalid interpolation method `%s'\n" msgstr "" #: jpegpixi.c:145 jpeghotp.c:151 #, c-format msgid "%s: source filename missing\n" msgstr "" #: jpegpixi.c:147 jpeghotp.c:153 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "" #: jpegpixi.c:155 #, c-format msgid "%s: destination filename missing\n" msgstr "" #: jpegpixi.c:194 #, c-format msgid "%s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "" #: jpegpixi.c:201 #, c-format msgid "%s: %s:%u: invalid pixel block specification ignored\n" msgstr "" #: jpegpixi.c:229 #, c-format msgid "%s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "" #: jpegpixi.c:235 #, c-format msgid "%s: invalid pixel block specification `%s'\n" msgstr "" #: jpegpixi.c:453 #, c-format msgid "%s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored\n" msgstr "" #: optpixi.c:30 opthotp.c:30 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "" #: optpixi.c:34 opthotp.c:34 #, c-format msgid "%s: option `--%s' is ambiguous\n" msgstr "" #: optpixi.c:38 opthotp.c:38 #, c-format msgid "%s: option `--%s' requires an argument\n" msgstr "" #: optpixi.c:42 opthotp.c:42 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "" #: optpixi.c:46 opthotp.c:46 #, c-format msgid "%s: unrecognized option `-%c'\n" msgstr "" #: optpixi.c:50 opthotp.c:50 #, c-format msgid "%s: option `-%c' requires an argument\n" msgstr "" #: optpixi.c:75 msgid "" " -f, --blocks-file=FILE read pixel block specifications from FILE\n" " -m, --method=METHOD use interpolation method METHOD [default: linear]\n" " -v, --verbose display coordinates and size of each pixel block\n" " that is interpolated\n" " -i, --info display information about the image\n" " -s, --strip do not copy comment and extra markers\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" #: optpixi.c:315 #, c-format msgid "" "Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n" "\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n" "\n" "Options:\n" msgstr "" #. TRANSLATORS: Please align the right text column in the #. "Interpolation methods" section with the right text column in the #. "Options" section. #: optpixi.c:332 msgid "" "\n" "Interpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n" msgstr "" #. TRANSLATORS: Please include the information that bug reports #. should be send in English. E.g., translate "Please report bugs #. (in English) to ...". #: optpixi.c:341 opthotp.c:261 msgid "" "\n" "Please report bugs to .\n" msgstr "" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: optpixi.c:354 msgid "" "Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" #. TRANSLATORS: Please don't translate the warranty disclaimer #. literally, but replace it with a text which has a legal effect as #. close as possible to the original in the jurisdiction(s) where #. your language is used. If unsure, replace it with a translation #. of "There is no warranty, to the extent allowed by law." #: optpixi.c:361 opthotp.c:281 msgid "" "This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n" msgstr "" #: jpeghotp.c:131 #, c-format msgid "%s: invalid threshold `%s'\n" msgstr "" #: jpeghotp.c:163 #, c-format msgid "%s: unexpected argument `%s'\n" msgstr "" #: jpeghotp.c:286 #, c-format msgid "\t# luminosity: %u.%02u%%" msgstr "" #: opthotp.c:71 msgid "" " -t, --threshold=THRESHOLD specify threshold between noise and signal\n" " [default: 10%]\n" " -i, --invert invert image (i.e. find dead pixels in an\n" " otherwise white image)\n" " -c, --comments output comments with luminosities of hot pixel\n" " blocks\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" #: opthotp.c:251 #, c-format msgid "" "Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an\n" "otherwise white JPEG image (if the `--invert' option is specified). Write their\n" "coordinates to a pixel blocks file suitable for the jpegpixi program.\n" "\n" "Options:\n" msgstr "" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: opthotp.c:274 msgid "" "Copyright (C) 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" jpegpixi-1.1.1/po/fi.po0000644000000000000000000002731510340157457011612 00000000000000# Finnish translations of the jpegpixi package. # Copyright (C) 2004, 2005 Jarno Elonen # This file is distributed under the same license as the jpegpixi package. # Jarno Elonen , 2004, 2005. # msgid "" msgstr "" "Project-Id-Version: jpegpixi 1.1.0\n" "Report-Msgid-Bugs-To: Martin Dickopp \n" "POT-Creation-Date: 2005-11-20 21:40+0100\n" "PO-Revision-Date: 2005-05-25 20:40+0200\n" "Last-Translator: Jarno Elonen \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: KBabel 1.9.1\n" #: file.c:80 file.c:171 file.c:255 file.c:261 file.c:287 jpegpixi.c:178 jpegpixi.c:208 jpegpixi.c:281 jpeghotp.c:189 #: jpeghotp.c:257 jpeghotp.c:270 jpeghotp.c:291 jpeghotp.c:302 jpeghotp.c:320 #, c-format msgid "%s: %s: %s\n" msgstr "%s: %s: %s\n" #: file.c:106 #, c-format msgid "%s: %s: Image has zero size\n" msgstr "%s: %s: kuvan koko on nolla tavua\n" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:117 #, c-format msgid "%s: %s: size %ux%u, colorspace " msgstr "%s: %s: koko %u×%u, värimalli " #: file.c:118 file.c:237 file.c:282 jpeghotp.c:316 msgid "STDIN" msgstr "STDIN" #: file.c:124 msgid "grayscale" msgstr "harmaasävy" #: file.c:144 msgid "unknown" msgstr "tuntematon" #: file.c:147 msgid ", sampling" msgstr ", näytteistys" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:158 #, c-format msgid " %dx%d" msgstr " %d×%d" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:236 #, c-format msgid "%s: %s: %u,%u,%u,%u ignored: Image size %ux%u\n" msgstr "%s: %s: %u,%u,%u,%u ohitettiin: Kuvan koko %u×%u\n" #: file.c:284 jpeghotp.c:291 msgid "STDOUT" msgstr "STDOUT" #: interpolate.c:101 #, c-format msgid "%s: interpolating %u,%u,%u,%u (%s)\n" msgstr "%s: interpoloidaan %u,%u,%u,%u (%s)\n" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "vertical" msgstr "pystysuunta" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "horizontal" msgstr "vaakasuunta" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "2-dim" msgstr "2-ulot." #: jpegpixi.c:134 #, c-format msgid "%s: invalid interpolation method `%s'\n" msgstr "%s: virheellinen interpolointimentelmä: `%s'\n" #: jpegpixi.c:145 jpeghotp.c:151 #, c-format msgid "%s: source filename missing\n" msgstr "%s: lähdekuvan tiedostonimi puuttuu\n" #: jpegpixi.c:147 jpeghotp.c:153 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Komento `%s --help' näyttää lisätietoja.\n" #: jpegpixi.c:155 #, c-format msgid "%s: destination filename missing\n" msgstr "%s: kohdekuvan tiedostonimi puuttuu\n" #: jpegpixi.c:194 #, c-format msgid "%s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "%s: %s:%u: %u,%u,%u,%u ohitettiin: päällekäisyys kohdalla %u,%u,%u,%u\n" #: jpegpixi.c:201 #, c-format msgid "%s: %s:%u: invalid pixel block specification ignored\n" msgstr "%s: %s:%u: ohitettiin virheellisesti määritelty pikseli-alue\n" #: jpegpixi.c:229 #, c-format msgid "%s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "%s: %u,%u,%u,%u ohitettiin: päällekäisyys kohdalla %u,%u,%u,%u\n" #: jpegpixi.c:235 #, c-format msgid "%s: invalid pixel block specification `%s'\n" msgstr "%s: virheellisesti määritelty pikseli-alue `%s'\n" #: jpegpixi.c:453 #, c-format msgid "%s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored\n" msgstr "%s: ohitettiin epäyhteensopivat rinnakkaiset pisteet %u,%u,%u,%u (%s) ja %u,%u,%u,%u (%s)\n" #: optpixi.c:30 opthotp.c:30 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "%s: tuntematon valitsin `--%s'\n" #: optpixi.c:34 opthotp.c:34 #, c-format msgid "%s: option `--%s' is ambiguous\n" msgstr "%s: valitsin `--%s' on monitulkintainen\n" #: optpixi.c:38 opthotp.c:38 #, c-format msgid "%s: option `--%s' requires an argument\n" msgstr "%s: valitsin `--%s' tarvitsee argumentin\n" #: optpixi.c:42 opthotp.c:42 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "%s: valitsin `--%s' ei salli argumenttia\n" #: optpixi.c:46 opthotp.c:46 #, c-format msgid "%s: unrecognized option `-%c'\n" msgstr "%s: tuntematon valitsin `-%c'\n" #: optpixi.c:50 opthotp.c:50 #, c-format msgid "%s: option `-%c' requires an argument\n" msgstr "%s: valitsin `-%c' tarvitsee argumentin\n" #: optpixi.c:75 msgid "" " -f, --blocks-file=FILE read pixel block specifications from FILE\n" " -m, --method=METHOD use interpolation method METHOD [default: linear]\n" " -v, --verbose display coordinates and size of each pixel block\n" " that is interpolated\n" " -i, --info display information about the image\n" " -s, --strip do not copy comment and extra markers\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" " -f, --blocks-file=TIEDOSTO lue pikselialueiden määritykset TIEDOSTO:sta\n" " -m, --method=MENETELMÄ käytä interpolointimenetelmää MENETELMÄ\n" " [oletus: linear]\n" " -v, --verbose näyttä jokaisen interpoloidun pikselialueen\n" " koon ja paikan\n" " -i, --info näyttää tietoja kuvasta\n" " -s, --strip ei kopioi kommentteja ja lisämääreitä\n" " --help näyttää tämän ohjeen ja poistuu\n" " --version näyttää versiotiedot ja poistuu\n" #: optpixi.c:315 #, c-format msgid "" "Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n" "\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n" "\n" "Options:\n" msgstr "" "Käyttö: %s [VALITSIN]... LÄHDE KOHDE [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpoloi pikseleitä JFIF-kuvatiedostoista.\n" "\n" "Pikselialueen määritys:\n" " D voi olla `V' tai `v' (pystysuuntainen 1D-interpolointi),\n" " `H' tai `h' (vaakasuuntainen 1D-interpolointi),\n" " `2' (2D-interpolointi) [oletus];\n" " X,Y määrää interpoloitavan pikselialueen vasemman yläkulman;\n" " S määrää alueen koon [oletus: 1];\n" " SX,SY määrää X- ja Y-suunnille erilliset koot.\n" "Kaikki numerot voivat olla absoluuttisia koordinaatteja/kokoja tai prosentteja\n" "koko kuvasta (merkitään lisäämällä perään `%%'-merkki).\n" "\n" "Valitsimet:\n" #. TRANSLATORS: Please align the right text column in the #. "Interpolation methods" section with the right text column in the #. "Options" section. #: optpixi.c:332 msgid "" "\n" "Interpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n" msgstr "" "\n" "Interpolointimenetelmät:\n" " 0, av, average viereisten pikselien keskiarvo\n" " 1, li, linear (bi)lineaarinen interpolointi\n" " 2, qu, quadratic (bi)neliöllinen interpolointi\n" " 3, cu, cubic (bi)kuutiollinen interpolointi\n" #. TRANSLATORS: Please include the information that bug reports #. should be send in English. E.g., translate "Please report bugs #. (in English) to ...". #: optpixi.c:341 opthotp.c:261 msgid "" "\n" "Please report bugs to .\n" msgstr "" "\n" "Vioista voi ilmoittaa (englanniksi) osoitteeseen .\n" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: optpixi.c:354 msgid "" "Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" "Copyright © 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" #. TRANSLATORS: Please don't translate the warranty disclaimer #. literally, but replace it with a text which has a legal effect as #. close as possible to the original in the jurisdiction(s) where #. your language is used. If unsure, replace it with a translation #. of "There is no warranty, to the extent allowed by law." #: optpixi.c:361 opthotp.c:281 msgid "" "This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Takuuta EI ole; ei edes MYYNTIKUNNOSTA tai SOVELTUVUUDESTA TIETTYYN\n" "TARKOITUKSEEN. Voit levittää ohjelmasta kopioita GNU General Public\n" "Licensen mukaisesti.\n" "Tiedostosta COPYING löydät lisätietoja näistä seikoista.\n" #: jpeghotp.c:131 #, c-format msgid "%s: invalid threshold `%s'\n" msgstr "%s: virheellinen kynnysarvo `%s'\n" #: jpeghotp.c:163 #, c-format msgid "%s: unexpected argument `%s'\n" msgstr "%s: odottamaton argumentti `%s'\n" #: jpeghotp.c:286 #, c-format msgid "\t# luminosity: %u.%02u%%" msgstr "\t# kirkkaus: %u.%02u%%" #: opthotp.c:71 msgid "" " -t, --threshold=THRESHOLD specify threshold between noise and signal\n" " [default: 10%]\n" " -i, --invert invert image (i.e. find dead pixels in an\n" " otherwise white image)\n" " -c, --comments output comments with luminosities of hot pixel\n" " blocks\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" " -t, --threshold=KYNNYSARVO määrää signaalin ja kohinan erottavan\n" " kynnysarvon [oletus: 10%]\n" " -i, --invert negatiivikuva (etsii kuolleita pikseleitä\n" " valkoisesta kuvasta)\n" " -c, --comments tulostaa palaneiden pikselialueiden kirkkaudet\n" " kommenteissa\n" " --help näyttää tämän ohjeen ja poistuu\n" " --version näyttää versiotiedot ja poistuu\n" #: opthotp.c:251 #, c-format msgid "" "Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an\n" "otherwise white JPEG image (if the `--invert' option is specified). Write their\n" "coordinates to a pixel blocks file suitable for the jpegpixi program.\n" "\n" "Options:\n" msgstr "" "Käyttö: %s [VALITSIMET]... JPEG-TIEDOSTO [PIXELI-ALUE-TIEDOSTO]\n" "Etsii palaneet pikselit muuten mustasta JPEG-kuvasta (oletusarvo) tai kuolleet\n" "pikselit muuten valkoisesta kuvasta (käytettäessä `--invert'-valitsinta) ja\n" "tulostaa niiden koordinaatit jpegpixi-ohjelmalle sopivassa muodossa.\n" "\n" "Valitsimet:\n" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: opthotp.c:274 msgid "" "Copyright (C) 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" "Copyright © 2003, 2004, 2005 Martin Dickopp\n" "\n" jpegpixi-1.1.1/po/fr.gmo0000644000000000000000000002123110340157457011756 00000000000000*l;0 . / L :l 5 3 ! O3 # & +  & ,= j '     , 7 5= /s   & $ d _ it|:UOT\| 7$+??Z8)R P,q4+("B(e$ 4 .U4N4k" }""") #  !'($*& %" # luminosity: %u.%02u%% Interpolation methods: 0, av, average average of adjacent pixels 1, li, linear (bi)linear interpolation 2, qu, quadratic (bi)quadratic interpolation 3, cu, cubic (bi)cubic interpolation Please report bugs to . -f, --blocks-file=FILE read pixel block specifications from FILE -m, --method=METHOD use interpolation method METHOD [default: linear] -v, --verbose display coordinates and size of each pixel block that is interpolated -i, --info display information about the image -s, --strip do not copy comment and extra markers --help display this help text and exit --version display version information and exit -t, --threshold=THRESHOLD specify threshold between noise and signal [default: 10%] -i, --invert invert image (i.e. find dead pixels in an otherwise white image) -c, --comments output comments with luminosities of hot pixel blocks --help display this help text and exit --version display version information and exit %dx%d%s: %s: %s %s: %s: %u,%u,%u,%u ignored: Image size %ux%u %s: %s: Image has zero size %s: %s: size %ux%u, colorspace %s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u %s: %s:%u: invalid pixel block specification ignored %s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u %s: destination filename missing %s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored %s: interpolating %u,%u,%u,%u (%s) %s: invalid interpolation method `%s' %s: invalid pixel block specification `%s' %s: invalid threshold `%s' %s: option `-%c' requires an argument %s: option `--%s' doesn't allow an argument %s: option `--%s' is ambiguous %s: option `--%s' requires an argument %s: source filename missing %s: unexpected argument `%s' %s: unrecognized option `-%c' %s: unrecognized option `--%s' , sampling2-dimCopyright (C) 2002, 2003, 2004, 2005 Martin Dickopp Copyright (C) 2003, 2004, 2005 Martin Dickopp STDINSTDOUTThis program is free software; it may be copied and/or modified under the terms of the GNU General Public License version 2 or (at your option) any later version. There is NO warranty; not even for MERCHANTABILITY or FIT- NESS FOR A PARTICULAR PURPOSE. Try `%s --help' for more information. Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE] Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an otherwise white JPEG image (if the `--invert' option is specified). Write their coordinates to a pixel blocks file suitable for the jpegpixi program. Options: Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]... Interpolate pixels in JFIF image files. Pixel block specification: D can be `V' or `v' (vertical 1D interpolation), `H' or `h' (horizontal 1D interpolation), `2' (2D interpolation) [default]; X,Y specifies the top left corner of the pixel block to be interpolated; S specifies the size of the block [default: 1]; SX,SY specifies separate sizes for the X and Y direction. All numbers can be absolute coordinates/sizes, or percentages of the image size (if followed by a `%%' character). Options: grayscalehorizontalunknownverticalProject-Id-Version: jpegpixi 1.1.0 Report-Msgid-Bugs-To: Martin Dickopp POT-Creation-Date: 2005-11-20 21:40+0100 PO-Revision-Date: 2005-05-25 20:42+0200 Last-Translator: Stephan Peccini Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); X-Generator: KBabel 1.9.1 # luminosité : %u.%02u%% Méthodes d'interpolation : 0, av, average moyenne des pixels adjacents 1, li, linear interpolation (bi)linéaire 2, qu, quadratic interpolation (bi)quadratique 3, cu, cubic interpolation (bi)cubique Merci d'envoyer les rapports de bugs en anglais à : . -f, --blocks-file=FILE lit les spécifications des blocs de pixels depuis FILE -m, --method=METHOD utilise la méthode d'interpolation METHOD [défaut: linear] -v, --verbose affiche les coordonnées et taille de chaque bloc de pixels qui est interpolé -i, --info affiche les information à propos de l'image -s, --strip ne pas copier les commentaires et les marqueurs supplémentaires --help affiche ce texte d'aide et sort --version affiche l'information de version et sort -t, --threshold=THRESHOLD spécifie le seuil entre le bruit et le signal [défaut: 10%] -i, --invert inverse l'image (i.e. trouve les pixels morts dans une image autrement blanche) -c, --comments affiche les commentaires avec les luminosités des blocs de pixels chauds --help affiche ce texte d'aide et sort --version affiche l'information de version et sort %d×%d%s: %s : %s %s: %s: %u,%u,%u,%u ignoré : Taille de l'image %u×%u %s: %s : L'image a une taille nulle %s: %s : taille %u×%u, espace de couleurs %s : %s:%u: %u,%u,%u,%u ignoré : se recouvre avec %u,%u,%u,%u %s : %s:%u: spécification ignorée du bloc invalide de pixels %s : %u,%u,%u,%u ignoré : se recouvre avec %u,%u,%u,%u %s : nom du fichier destination manquant %s : points adjacents incompatibles %u,%u,%u,%u (%s) et %u,%u,%u,%u (%s) ignorés %s : interpole %u,%u,%u,%u (%s) %s : méthode d'interpolation invalide `%s' %s : spécification invalide du bloc de pixels `%s' %s : seuil invalide `%s' %s : l'option `-%c' a besoin d'un argument %s : l'option `--%s' n'a pas d'argument %s : l'option `--%s' est ambigüe %s : l'option `--%s' attend un argument %s : nom du fichier source manquant %s : argument inattendu `%s' %s : option inconnue `-%c' %s : option inconnue `--%s' , échantillonnage2DCopyright © 2002, 2003, 2004, 2005 Martin Dickopp Copyright © 2003, 2004, 2005 Martin Dickopp STDINSTDOUTCe logiciel est libre; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donnée, tant pour des raisons COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER. Essayer `%s --help' pour avoir plus d'informations. Usage : %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE] Trouve les pixels chauds dans une image JPEG noire (défaut) ou les pixels morts dans une image blanche (si l'option -invert a été choisie) et écrit leurs coordonnées dans un fichier de blocs de pixels utilisable par le programme jpegpixi. Options : Usage : %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]... Interpolation des pixels dans les fichiers image JFIF. Spécification du bloc de pixels : D peut être `V` ou `v` (interpolation verticale 1D), `H' ou `h' (interpolation horizontale 1D), `2' (interpolation 2D) [défaut]; X,Y spécifient le coin haut gauche du bloc de pixels devant être interpolé ; S spécifie la taille du bloc [défaut: 1]; SX,SY spécifient des tailles séparées pour les directions X et Y. Tous les nombres peuvent être des tailles/coordonnées absolues ou des pourcentages de la taille de l'image (si suivis par un `%%'). Options : échelle des grishorizontalinconnuverticaljpegpixi-1.1.1/po/POTSOURCES0000644000000000000000000000036210340157454012273 00000000000000consolidate.c dct.c file.c interpolate.c jfif.c jpegpixi.c jpegpixi.h optpixi.c optpixi.h parsenum.c rbtree.c rbtree.h util.c util.h weights.c consolidate.c jpeghotp.c jpegpixi.h opthotp.c opthotp.h parsenum.c rbtree.c rbtree.h util.c util.h jpegpixi-1.1.1/po/fr.po0000644000000000000000000002750210340157457011621 00000000000000# French translations of the jpegpixi package. # Copyright (C) 2004, 2005 Stephan Peccini # This file is distributed under the same license as the jpegpixi package. # Stephan Peccini , 2004, 2005. # msgid "" msgstr "" "Project-Id-Version: jpegpixi 1.1.0\n" "Report-Msgid-Bugs-To: Martin Dickopp \n" "POT-Creation-Date: 2005-11-20 21:40+0100\n" "PO-Revision-Date: 2005-05-25 20:42+0200\n" "Last-Translator: Stephan Peccini \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: KBabel 1.9.1\n" #: file.c:80 file.c:171 file.c:255 file.c:261 file.c:287 jpegpixi.c:178 jpegpixi.c:208 jpegpixi.c:281 jpeghotp.c:189 #: jpeghotp.c:257 jpeghotp.c:270 jpeghotp.c:291 jpeghotp.c:302 jpeghotp.c:320 #, c-format msgid "%s: %s: %s\n" msgstr "%s: %s : %s\n" #: file.c:106 #, c-format msgid "%s: %s: Image has zero size\n" msgstr "%s: %s : L'image a une taille nulle\n" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:117 #, c-format msgid "%s: %s: size %ux%u, colorspace " msgstr "%s: %s : taille %u×%u, espace de couleurs " #: file.c:118 file.c:237 file.c:282 jpeghotp.c:316 msgid "STDIN" msgstr "STDIN" #: file.c:124 msgid "grayscale" msgstr "échelle des gris" #: file.c:144 msgid "unknown" msgstr "inconnu" #: file.c:147 msgid ", sampling" msgstr ", échantillonnage" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:158 #, c-format msgid " %dx%d" msgstr " %d×%d" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:236 #, c-format msgid "%s: %s: %u,%u,%u,%u ignored: Image size %ux%u\n" msgstr "%s: %s: %u,%u,%u,%u ignoré : Taille de l'image %u×%u\n" #: file.c:284 jpeghotp.c:291 msgid "STDOUT" msgstr "STDOUT" #: interpolate.c:101 #, c-format msgid "%s: interpolating %u,%u,%u,%u (%s)\n" msgstr "%s : interpole %u,%u,%u,%u (%s)\n" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "vertical" msgstr "vertical" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "horizontal" msgstr "horizontal" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "2-dim" msgstr "2D" #: jpegpixi.c:134 #, c-format msgid "%s: invalid interpolation method `%s'\n" msgstr "%s : méthode d'interpolation invalide `%s'\n" #: jpegpixi.c:145 jpeghotp.c:151 #, c-format msgid "%s: source filename missing\n" msgstr "%s : nom du fichier source manquant\n" #: jpegpixi.c:147 jpeghotp.c:153 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "Essayer `%s --help' pour avoir plus d'informations.\n" #: jpegpixi.c:155 #, c-format msgid "%s: destination filename missing\n" msgstr "%s : nom du fichier destination manquant\n" #: jpegpixi.c:194 #, c-format msgid "%s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "%s : %s:%u: %u,%u,%u,%u ignoré : se recouvre avec %u,%u,%u,%u\n" #: jpegpixi.c:201 #, c-format msgid "%s: %s:%u: invalid pixel block specification ignored\n" msgstr "%s : %s:%u: spécification ignorée du bloc invalide de pixels\n" #: jpegpixi.c:229 #, c-format msgid "%s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "%s : %u,%u,%u,%u ignoré : se recouvre avec %u,%u,%u,%u\n" #: jpegpixi.c:235 #, c-format msgid "%s: invalid pixel block specification `%s'\n" msgstr "%s : spécification invalide du bloc de pixels `%s'\n" #: jpegpixi.c:453 #, c-format msgid "%s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored\n" msgstr "%s : points adjacents incompatibles %u,%u,%u,%u (%s) et %u,%u,%u,%u (%s) ignorés\n" #: optpixi.c:30 opthotp.c:30 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "%s : option inconnue `--%s'\n" #: optpixi.c:34 opthotp.c:34 #, c-format msgid "%s: option `--%s' is ambiguous\n" msgstr "%s : l'option `--%s' est ambigüe\n" #: optpixi.c:38 opthotp.c:38 #, c-format msgid "%s: option `--%s' requires an argument\n" msgstr "%s : l'option `--%s' attend un argument\n" #: optpixi.c:42 opthotp.c:42 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "%s : l'option `--%s' n'a pas d'argument\n" #: optpixi.c:46 opthotp.c:46 #, c-format msgid "%s: unrecognized option `-%c'\n" msgstr "%s : option inconnue `-%c'\n" #: optpixi.c:50 opthotp.c:50 #, c-format msgid "%s: option `-%c' requires an argument\n" msgstr "%s : l'option `-%c' a besoin d'un argument\n" #: optpixi.c:75 msgid "" " -f, --blocks-file=FILE read pixel block specifications from FILE\n" " -m, --method=METHOD use interpolation method METHOD [default: linear]\n" " -v, --verbose display coordinates and size of each pixel block\n" " that is interpolated\n" " -i, --info display information about the image\n" " -s, --strip do not copy comment and extra markers\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" " -f, --blocks-file=FILE lit les spécifications des blocs de pixels depuis\n" " FILE\n" " -m, --method=METHOD utilise la méthode d'interpolation METHOD [défaut:\n" " linear]\n" " -v, --verbose affiche les coordonnées et taille de chaque bloc\n" " de pixels qui est interpolé\n" " -i, --info affiche les information à propos de l'image\n" " -s, --strip ne pas copier les commentaires et les marqueurs\n" " supplémentaires\n" " --help affiche ce texte d'aide et sort\n" " --version affiche l'information de version et sort\n" #: optpixi.c:315 #, c-format msgid "" "Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n" "\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n" "\n" "Options:\n" msgstr "" "Usage : %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolation des pixels dans les fichiers image JFIF.\n" "\n" "Spécification du bloc de pixels :\n" " D peut être `V` ou `v` (interpolation verticale 1D),\n" " `H' ou `h' (interpolation horizontale 1D),\n" " `2' (interpolation 2D) [défaut];\n" " X,Y spécifient le coin haut gauche du bloc de pixels\n" " devant être interpolé ;\n" " S spécifie la taille du bloc [défaut: 1];\n" " SX,SY spécifient des tailles séparées pour les directions X et Y.\n" "Tous les nombres peuvent être des tailles/coordonnées absolues ou des\n" "pourcentages de la taille de l'image (si suivis par un `%%').\n" "\n" "Options :\n" #. TRANSLATORS: Please align the right text column in the #. "Interpolation methods" section with the right text column in the #. "Options" section. #: optpixi.c:332 msgid "" "\n" "Interpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n" msgstr "" "\n" "Méthodes d'interpolation :\n" " 0, av, average moyenne des pixels adjacents\n" " 1, li, linear interpolation (bi)linéaire\n" " 2, qu, quadratic interpolation (bi)quadratique\n" " 3, cu, cubic interpolation (bi)cubique\n" #. TRANSLATORS: Please include the information that bug reports #. should be send in English. E.g., translate "Please report bugs #. (in English) to ...". #: optpixi.c:341 opthotp.c:261 msgid "" "\n" "Please report bugs to .\n" msgstr "" "\n" "Merci d'envoyer les rapports de bugs en anglais à :\n" ".\n" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: optpixi.c:354 msgid "" "Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" "Copyright © 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" #. TRANSLATORS: Please don't translate the warranty disclaimer #. literally, but replace it with a text which has a legal effect as #. close as possible to the original in the jurisdiction(s) where #. your language is used. If unsure, replace it with a translation #. of "There is no warranty, to the extent allowed by law." #: optpixi.c:361 opthotp.c:281 msgid "" "This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Ce logiciel est libre; voir les sources pour les conditions de\n" "reproduction. AUCUNE garantie n'est donnée, tant pour des raisons\n" "COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER.\n" #: jpeghotp.c:131 #, c-format msgid "%s: invalid threshold `%s'\n" msgstr "%s : seuil invalide `%s'\n" #: jpeghotp.c:163 #, c-format msgid "%s: unexpected argument `%s'\n" msgstr "%s : argument inattendu `%s'\n" #: jpeghotp.c:286 #, c-format msgid "\t# luminosity: %u.%02u%%" msgstr "\t# luminosité : %u.%02u%%" #: opthotp.c:71 msgid "" " -t, --threshold=THRESHOLD specify threshold between noise and signal\n" " [default: 10%]\n" " -i, --invert invert image (i.e. find dead pixels in an\n" " otherwise white image)\n" " -c, --comments output comments with luminosities of hot pixel\n" " blocks\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" " -t, --threshold=THRESHOLD spécifie le seuil entre le bruit et le signal\n" " [défaut: 10%]\n" " -i, --invert inverse l'image (i.e. trouve les pixels morts\n" " dans une image autrement blanche)\n" " -c, --comments affiche les commentaires avec les luminosités\n" " des blocs de pixels chauds\n" " --help affiche ce texte d'aide et sort\n" " --version affiche l'information de version et sort\n" #: opthotp.c:251 #, c-format msgid "" "Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an\n" "otherwise white JPEG image (if the `--invert' option is specified). Write their\n" "coordinates to a pixel blocks file suitable for the jpegpixi program.\n" "\n" "Options:\n" msgstr "" "Usage : %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Trouve les pixels chauds dans une image JPEG noire (défaut) ou les pixels morts\n" "dans une image blanche (si l'option -invert a été choisie) et écrit leurs\n" "coordonnées dans un fichier de blocs de pixels utilisable par le programme\n" "jpegpixi.\n" "\n" "Options :\n" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: opthotp.c:274 msgid "" "Copyright (C) 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" "Copyright © 2003, 2004, 2005 Martin Dickopp\n" "\n" jpegpixi-1.1.1/po/Makefile.am0000644000000000000000000000415010173207323012670 00000000000000## Process this file with automake to produce Makefile.in. ## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2004 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This file is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. POFILES = de.po fi.po fr.po MOFILES = de.gmo fi.gmo fr.gmo dist_noinst_DATA = $(MOFILES) BUILT_SOURCES = @PACKAGE_TARNAME@.pot EXTRA_DIST = @PACKAGE_TARNAME@.pot $(POFILES) MAINTAINERCLEANFILES = $(MOFILES) @PACKAGE_TARNAME@.pot: POTSOURCES if test -f POTSOURCES; then d=.; else d="$(srcdir)"; fi; \ @XGETTEXT@ --directory="$(top_builddir)" --directory="$(top_srcdir)" --output=@PACKAGE_TARNAME@.pot \ --msgid-bugs-address="Martin Dickopp <@PACKAGE_BUGREPORT@>" --add-comments=TRANSLATORS \ --width=120 --keyword=_ --files-from="$$d/POTSOURCES" $(POFILES): @PACKAGE_TARNAME@.pot @MSGMERGE@ --directory=. --directory="$(srcdir)" --output-file=$@ --width=120 $@ @PACKAGE_TARNAME@.pot .po.gmo: @MSGFMT@ --directory=. --directory="$(srcdir)" --output-file=$@ --check $< install-data-local: @for p in $(MOFILES); do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ m=`echo $$p | sed -e 's/\.[^.]*$$//'`; \ echo " $(mkdir_p) '$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES'"; \ $(mkdir_p) "$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES"; \ echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo'"; \ $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo"; \ done uninstall-local: @for p in $(MOFILES); do \ m=`echo $$p | sed -e 's/\.[^.]*$$//'`; \ echo " rm -f '$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo'"; \ rm -f "$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo"; \ done jpegpixi-1.1.1/po/de.gmo0000644000000000000000000002136710340157457011751 00000000000000*l;0 . / L :l 5 3 ! O3 # & +  & ,= j '     , 7 5= /s   & $ d _ it|";=;jyk s2!=816j(T"+B.n#**#+;(g  4 .@o*R " " "") #  !'($*& %" # luminosity: %u.%02u%% Interpolation methods: 0, av, average average of adjacent pixels 1, li, linear (bi)linear interpolation 2, qu, quadratic (bi)quadratic interpolation 3, cu, cubic (bi)cubic interpolation Please report bugs to . -f, --blocks-file=FILE read pixel block specifications from FILE -m, --method=METHOD use interpolation method METHOD [default: linear] -v, --verbose display coordinates and size of each pixel block that is interpolated -i, --info display information about the image -s, --strip do not copy comment and extra markers --help display this help text and exit --version display version information and exit -t, --threshold=THRESHOLD specify threshold between noise and signal [default: 10%] -i, --invert invert image (i.e. find dead pixels in an otherwise white image) -c, --comments output comments with luminosities of hot pixel blocks --help display this help text and exit --version display version information and exit %dx%d%s: %s: %s %s: %s: %u,%u,%u,%u ignored: Image size %ux%u %s: %s: Image has zero size %s: %s: size %ux%u, colorspace %s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u %s: %s:%u: invalid pixel block specification ignored %s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u %s: destination filename missing %s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored %s: interpolating %u,%u,%u,%u (%s) %s: invalid interpolation method `%s' %s: invalid pixel block specification `%s' %s: invalid threshold `%s' %s: option `-%c' requires an argument %s: option `--%s' doesn't allow an argument %s: option `--%s' is ambiguous %s: option `--%s' requires an argument %s: source filename missing %s: unexpected argument `%s' %s: unrecognized option `-%c' %s: unrecognized option `--%s' , sampling2-dimCopyright (C) 2002, 2003, 2004, 2005 Martin Dickopp Copyright (C) 2003, 2004, 2005 Martin Dickopp STDINSTDOUTThis program is free software; it may be copied and/or modified under the terms of the GNU General Public License version 2 or (at your option) any later version. There is NO warranty; not even for MERCHANTABILITY or FIT- NESS FOR A PARTICULAR PURPOSE. Try `%s --help' for more information. Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE] Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an otherwise white JPEG image (if the `--invert' option is specified). Write their coordinates to a pixel blocks file suitable for the jpegpixi program. Options: Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]... Interpolate pixels in JFIF image files. Pixel block specification: D can be `V' or `v' (vertical 1D interpolation), `H' or `h' (horizontal 1D interpolation), `2' (2D interpolation) [default]; X,Y specifies the top left corner of the pixel block to be interpolated; S specifies the size of the block [default: 1]; SX,SY specifies separate sizes for the X and Y direction. All numbers can be absolute coordinates/sizes, or percentages of the image size (if followed by a `%%' character). Options: grayscalehorizontalunknownverticalProject-Id-Version: jpegpixi 1.1.0 Report-Msgid-Bugs-To: Martin Dickopp POT-Creation-Date: 2005-11-20 21:40+0100 PO-Revision-Date: 2005-05-25 20:32+0200 Last-Translator: Martin Dickopp Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); # Helligkeit: %u.%02u%% Interpolationsmethoden: 0, av, average Mittelwert benachbarter Pixel 1, li, linear (bi)lineare Interpolation 2, qu, quadratic (bi)quadratische Interpolation 3, cu, cubic (bi)kubische Interpolation Bitte melden Sie Programmfehler an . -f, --blocks-file=DATEI Pixelblockspezifikationen aus DATEI lesen -m, --method=METHODE Interpolationsmethode METHODE benutzen [Standard: linear] -v, --verbose Koordinaten und Größe jedes interpolierten Pixelblocks anzeigen -i, --info Informationen über das Bild anzeigen -s, --strip Kommentare und zusätzliche Marker nicht kopieren --help diesen Hilfe­Text anzeigen and Programm beenden --version Versionsinformation anzeigen and Programm beenden -t, --threshold=SCHWELLWERT Angabe des Schwellwertes zwischen Rauschen und Signal [Standard: 10%] -i, --invert Bild invertieren (d.h. ausgefallene Pixel in einem sonst weißen Bild finden) -c, --comments Kommentare mit Helligkeiten der leuchtenden Pixel ausgeben --help diesen Hilfe­Text anzeigen and Programm beenden --version Versionsinformation anzeigen and Programm beenden %d×%d%s: %s: %s %s: %s: %u,%u,%u,%u ignoriert: Bildgröße %u×%u %s: %s: Bild hat Größe Null %s: %s: Größe %u×%u, Farbraum %s: %s:%u: %u,%u,%u,%u ignoriert: überlappt mit %u,%u,%u,%u %s: %s:%u: ungültige Pixelblockspezifikation ignoriert %s: %u,%u,%u,%u ignoriert: überlappt mit %u,%u,%u,%u %s: Name der Zieldatei nicht angegeben. %s: inkompatible benachbarte Punkte %u,%u,%u,%u (%s) und %u,%u,%u,%u (%s) ignoriert %s: interpoliere %u,%u,%u,%u (%s) %s: Interpolationsmethode »%s« ungültig %s: ungültige Pixelblockspezifikation »%s« %s: ungültiger Schwellwert »%s« %s: Option »-%c« erfordert ein Argument %s: Option »--%s« erlaubt kein Argument %s: Option »--%s« ist mehrdeutig %s: Option »--%s« erfordert ein Argument %s: Name der Quelldatei nicht angegeben %s: ungültiges Argument »%s« %s: unbekannte Option »-%c« %s: unbekannte Option »--%s« , SamplingzweidimensionalCopyright © 2002, 2003, 2004, 2005 Martin Dickopp Copyright © 2003, 2004, 2005 Martin Dickopp STANDARDEINGABESTANDARDAUSGABEDieses Programm ist freie Software; es darf unter den Bedingungen der GNU General Public License Version 2 (oder wahlweise einer späteren Version dieser Lizenz) kopiert und/oder modifiziert werden. Soweit gesetzlich zulässig, ist jegliche Gewährleistung ausgeschlossen. »%s --help« gibt weitere Informationen. Aufruf: %s [OPTION]... JPEG­DATEI [PIXELBLOCK­DATEI] Findet leuchtende Pixel in einem sonst schwarzen JPEG­Bild (Standard) oder ausgefallene Pixel in einem sonst weißen JPEG­Bild (wenn die Option »--invert« angegeben wurde). Schreibt ihre Koordinaten in eine Pixelblock­Datei, die von »jpegpixi« gelesen werden kann. Optionen: Aufruf: %s [OPTION]... QUELLDATEI ZIELDATEI [[D:]X,Y[,S]|[,SX,SY]]... Interpoliert Pixel in JFIF­Bilddateien. Pixelblockspezifikation: D kann »V« oder »v« (vertikale 1D­Interpolation), »H« oder »h« (horizontale 1D­Interpolation), »2« sein (2D­Interpolation) [Standard]; X,Y bezeichnet die obere linke obere Ecke des zu interpolierenden Pixelblocks; S bezeichnet die Größe des Blocks [Standard: 1]; SX,SY bezeichnet separate Größen für die X­ und Y­Richtung. Alle Zahlen können als absolute Koordinaten/Größen oder in Prozent der Bildgröße (wenn ihnen ein »%%«­Zeichen folgt) angegeben werden. Optionen: grauhorizontalunbekanntvertikaljpegpixi-1.1.1/po/Makefile.in0000644000000000000000000002271410340157443012712 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = po DIST_COMMON = $(dist_noinst_DATA) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DATA = $(dist_noinst_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MATHLIB = @MATHLIB@ MD_NO_CONST = @MD_NO_CONST@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OPAG = @OPAG@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SUBDIR_PO = @SUBDIR_PO@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ POFILES = de.po fi.po fr.po MOFILES = de.gmo fi.gmo fr.gmo dist_noinst_DATA = $(MOFILES) BUILT_SOURCES = @PACKAGE_TARNAME@.pot EXTRA_DIST = @PACKAGE_TARNAME@.pot $(POFILES) MAINTAINERCLEANFILES = $(MOFILES) all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .gmo .po $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu po/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu po/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(DATA) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-data-local install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-local .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ uninstall-local @PACKAGE_TARNAME@.pot: POTSOURCES if test -f POTSOURCES; then d=.; else d="$(srcdir)"; fi; \ @XGETTEXT@ --directory="$(top_builddir)" --directory="$(top_srcdir)" --output=@PACKAGE_TARNAME@.pot \ --msgid-bugs-address="Martin Dickopp <@PACKAGE_BUGREPORT@>" --add-comments=TRANSLATORS \ --width=120 --keyword=_ --files-from="$$d/POTSOURCES" $(POFILES): @PACKAGE_TARNAME@.pot @MSGMERGE@ --directory=. --directory="$(srcdir)" --output-file=$@ --width=120 $@ @PACKAGE_TARNAME@.pot .po.gmo: @MSGFMT@ --directory=. --directory="$(srcdir)" --output-file=$@ --check $< install-data-local: @for p in $(MOFILES); do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ m=`echo $$p | sed -e 's/\.[^.]*$$//'`; \ echo " $(mkdir_p) '$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES'"; \ $(mkdir_p) "$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES"; \ echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo'"; \ $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo"; \ done uninstall-local: @for p in $(MOFILES); do \ m=`echo $$p | sed -e 's/\.[^.]*$$//'`; \ echo " rm -f '$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo'"; \ rm -f "$(DESTDIR)$(datadir)/locale/$$m/LC_MESSAGES/@PACKAGE_TARNAME@.mo"; \ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: jpegpixi-1.1.1/po/de.po0000644000000000000000000002763310340157457011607 00000000000000# German translations of the jpegpixi package. # Copyright (C) 2004, 2005 Martin Dickopp # This file is distributed under the same license as the jpegpixi package. # Martin Dickopp , 2004, 2005. # msgid "" msgstr "" "Project-Id-Version: jpegpixi 1.1.0\n" "Report-Msgid-Bugs-To: Martin Dickopp \n" "POT-Creation-Date: 2005-11-20 21:40+0100\n" "PO-Revision-Date: 2005-05-25 20:32+0200\n" "Last-Translator: Martin Dickopp \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: file.c:80 file.c:171 file.c:255 file.c:261 file.c:287 jpegpixi.c:178 jpegpixi.c:208 jpegpixi.c:281 jpeghotp.c:189 #: jpeghotp.c:257 jpeghotp.c:270 jpeghotp.c:291 jpeghotp.c:302 jpeghotp.c:320 #, c-format msgid "%s: %s: %s\n" msgstr "%s: %s: %s\n" #: file.c:106 #, c-format msgid "%s: %s: Image has zero size\n" msgstr "%s: %s: Bild hat Größe Null\n" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:117 #, c-format msgid "%s: %s: size %ux%u, colorspace " msgstr "%s: %s: Größe %u×%u, Farbraum " #: file.c:118 file.c:237 file.c:282 jpeghotp.c:316 msgid "STDIN" msgstr "STANDARDEINGABE" #: file.c:124 msgid "grayscale" msgstr "grau" #: file.c:144 msgid "unknown" msgstr "unbekannt" #: file.c:147 msgid ", sampling" msgstr ", Sampling" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:158 #, c-format msgid " %dx%d" msgstr " %d×%d" #. TRANSLATORS: Please use the "multiplication sign" (Unicode character ) #. in place of the "x". #: file.c:236 #, c-format msgid "%s: %s: %u,%u,%u,%u ignored: Image size %ux%u\n" msgstr "%s: %s: %u,%u,%u,%u ignoriert: Bildgröße %u×%u\n" #: file.c:284 jpeghotp.c:291 msgid "STDOUT" msgstr "STANDARDAUSGABE" #: interpolate.c:101 #, c-format msgid "%s: interpolating %u,%u,%u,%u (%s)\n" msgstr "%s: interpoliere %u,%u,%u,%u (%s)\n" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "vertical" msgstr "vertikal" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "horizontal" msgstr "horizontal" #: interpolate.c:103 jpegpixi.c:455 jpegpixi.c:457 msgid "2-dim" msgstr "zweidimensional" #: jpegpixi.c:134 #, c-format msgid "%s: invalid interpolation method `%s'\n" msgstr "%s: Interpolationsmethode »%s« ungültig\n" #: jpegpixi.c:145 jpeghotp.c:151 #, c-format msgid "%s: source filename missing\n" msgstr "%s: Name der Quelldatei nicht angegeben\n" #: jpegpixi.c:147 jpeghotp.c:153 #, c-format msgid "Try `%s --help' for more information.\n" msgstr "»%s --help« gibt weitere Informationen.\n" #: jpegpixi.c:155 #, c-format msgid "%s: destination filename missing\n" msgstr "%s: Name der Zieldatei nicht angegeben.\n" #: jpegpixi.c:194 #, c-format msgid "%s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "%s: %s:%u: %u,%u,%u,%u ignoriert: überlappt mit %u,%u,%u,%u\n" #: jpegpixi.c:201 #, c-format msgid "%s: %s:%u: invalid pixel block specification ignored\n" msgstr "%s: %s:%u: ungültige Pixelblockspezifikation ignoriert\n" #: jpegpixi.c:229 #, c-format msgid "%s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n" msgstr "%s: %u,%u,%u,%u ignoriert: überlappt mit %u,%u,%u,%u\n" #: jpegpixi.c:235 #, c-format msgid "%s: invalid pixel block specification `%s'\n" msgstr "%s: ungültige Pixelblockspezifikation »%s«\n" #: jpegpixi.c:453 #, c-format msgid "%s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored\n" msgstr "%s: inkompatible benachbarte Punkte %u,%u,%u,%u (%s) und %u,%u,%u,%u (%s) ignoriert\n" #: optpixi.c:30 opthotp.c:30 #, c-format msgid "%s: unrecognized option `--%s'\n" msgstr "%s: unbekannte Option »--%s«\n" #: optpixi.c:34 opthotp.c:34 #, c-format msgid "%s: option `--%s' is ambiguous\n" msgstr "%s: Option »--%s« ist mehrdeutig\n" #: optpixi.c:38 opthotp.c:38 #, c-format msgid "%s: option `--%s' requires an argument\n" msgstr "%s: Option »--%s« erfordert ein Argument\n" #: optpixi.c:42 opthotp.c:42 #, c-format msgid "%s: option `--%s' doesn't allow an argument\n" msgstr "%s: Option »--%s« erlaubt kein Argument\n" #: optpixi.c:46 opthotp.c:46 #, c-format msgid "%s: unrecognized option `-%c'\n" msgstr "%s: unbekannte Option »-%c«\n" #: optpixi.c:50 opthotp.c:50 #, c-format msgid "%s: option `-%c' requires an argument\n" msgstr "%s: Option »-%c« erfordert ein Argument\n" #: optpixi.c:75 msgid "" " -f, --blocks-file=FILE read pixel block specifications from FILE\n" " -m, --method=METHOD use interpolation method METHOD [default: linear]\n" " -v, --verbose display coordinates and size of each pixel block\n" " that is interpolated\n" " -i, --info display information about the image\n" " -s, --strip do not copy comment and extra markers\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" " -f, --blocks-file=DATEI Pixelblockspezifikationen aus DATEI lesen\n" " -m, --method=METHODE Interpolationsmethode METHODE benutzen [Standard:\n" " linear]\n" " -v, --verbose Koordinaten und Größe jedes interpolierten\n" " Pixelblocks anzeigen\n" " -i, --info Informationen über das Bild anzeigen\n" " -s, --strip Kommentare und zusätzliche Marker nicht kopieren\n" " --help diesen Hilfe­Text anzeigen and Programm beenden\n" " --version Versionsinformation anzeigen and Programm beenden\n" #: optpixi.c:315 #, c-format msgid "" "Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n" "\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n" "\n" "Options:\n" msgstr "" "Aufruf: %s [OPTION]... QUELLDATEI ZIELDATEI [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpoliert Pixel in JFIF­Bilddateien.\n" "\n" "Pixelblockspezifikation:\n" " D kann »V« oder »v« (vertikale 1D­Interpolation),\n" " »H« oder »h« (horizontale 1D­Interpolation),\n" " »2« sein (2D­Interpolation) [Standard];\n" " X,Y bezeichnet die obere linke obere Ecke des zu interpolierenden\n" " Pixelblocks;\n" " S bezeichnet die Größe des Blocks [Standard: 1];\n" " SX,SY bezeichnet separate Größen für die X­ und Y­Richtung.\n" "Alle Zahlen können als absolute Koordinaten/Größen oder in Prozent der\n" "Bildgröße (wenn ihnen ein »%%«­Zeichen folgt) angegeben werden.\n" "\n" "Optionen:\n" #. TRANSLATORS: Please align the right text column in the #. "Interpolation methods" section with the right text column in the #. "Options" section. #: optpixi.c:332 msgid "" "\n" "Interpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n" msgstr "" "\n" "Interpolationsmethoden:\n" " 0, av, average Mittelwert benachbarter Pixel\n" " 1, li, linear (bi)lineare Interpolation\n" " 2, qu, quadratic (bi)quadratische Interpolation\n" " 3, cu, cubic (bi)kubische Interpolation\n" #. TRANSLATORS: Please include the information that bug reports #. should be send in English. E.g., translate "Please report bugs #. (in English) to ...". #: optpixi.c:341 opthotp.c:261 msgid "" "\n" "Please report bugs to .\n" msgstr "" "\n" "Bitte melden Sie Programmfehler an .\n" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: optpixi.c:354 msgid "" "Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" "Copyright © 2002, 2003, 2004, 2005 Martin Dickopp\n" "\n" #. TRANSLATORS: Please don't translate the warranty disclaimer #. literally, but replace it with a text which has a legal effect as #. close as possible to the original in the jurisdiction(s) where #. your language is used. If unsure, replace it with a translation #. of "There is no warranty, to the extent allowed by law." #: optpixi.c:361 opthotp.c:281 msgid "" "This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n" msgstr "" "Dieses Programm ist freie Software; es darf unter den Bedingungen der\n" "GNU General Public License Version 2 (oder wahlweise einer späteren\n" "Version dieser Lizenz) kopiert und/oder modifiziert werden. Soweit\n" "gesetzlich zulässig, ist jegliche Gewährleistung ausgeschlossen.\n" #: jpeghotp.c:131 #, c-format msgid "%s: invalid threshold `%s'\n" msgstr "%s: ungültiger Schwellwert »%s«\n" #: jpeghotp.c:163 #, c-format msgid "%s: unexpected argument `%s'\n" msgstr "%s: ungültiges Argument »%s«\n" #: jpeghotp.c:286 #, c-format msgid "\t# luminosity: %u.%02u%%" msgstr "\t# Helligkeit: %u.%02u%%" #: opthotp.c:71 msgid "" " -t, --threshold=THRESHOLD specify threshold between noise and signal\n" " [default: 10%]\n" " -i, --invert invert image (i.e. find dead pixels in an\n" " otherwise white image)\n" " -c, --comments output comments with luminosities of hot pixel\n" " blocks\n" " --help display this help text and exit\n" " --version display version information and exit\n" msgstr "" " -t, --threshold=SCHWELLWERT Angabe des Schwellwertes zwischen Rauschen\n" " und Signal [Standard: 10%]\n" " -i, --invert Bild invertieren (d.h. ausgefallene Pixel in\n" " einem sonst weißen Bild finden)\n" " -c, --comments Kommentare mit Helligkeiten der leuchtenden\n" " Pixel ausgeben\n" " --help diesen Hilfe­Text anzeigen and Programm\n" " beenden\n" " --version Versionsinformation anzeigen and Programm\n" " beenden\n" #: opthotp.c:251 #, c-format msgid "" "Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an\n" "otherwise white JPEG image (if the `--invert' option is specified). Write their\n" "coordinates to a pixel blocks file suitable for the jpegpixi program.\n" "\n" "Options:\n" msgstr "" "Aufruf: %s [OPTION]... JPEG­DATEI [PIXELBLOCK­DATEI]\n" "Findet leuchtende Pixel in einem sonst schwarzen JPEG­Bild (Standard) oder\n" "ausgefallene Pixel in einem sonst weißen JPEG­Bild (wenn die Option »--invert«\n" "angegeben wurde). Schreibt ihre Koordinaten in eine Pixelblock­Datei, die\n" "von »jpegpixi« gelesen werden kann.\n" "\n" "Optionen:\n" #. TRANSLATORS: Please leave the copyright statement intact, but replace #. "(C)" with the "copyright sign" (Unicode character ). #: opthotp.c:274 msgid "" "Copyright (C) 2003, 2004, 2005 Martin Dickopp\n" "\n" msgstr "" "Copyright © 2003, 2004, 2005 Martin Dickopp\n" "\n" jpegpixi-1.1.1/file.c0000644000000000000000000002056010340156451011305 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002, 2003, 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #if HAVE_ERRNO_H # include #endif #ifndef errno extern int errno; #endif #include "jpegpixi.h" #include "rbtree.h" #include "optpixi.h" /* File names (needed by display_error_message). */ static const char *infilename1, *outfilename1; /* Files. */ static FILE *infile, *outfile; /* Jpeglib objects. */ static struct jpeg_error_mgr errmgr; static struct jpeg_decompress_struct injpg; static struct jpeg_compress_struct outjpg; static void display_error_message (j_common_ptr jpg); /* Open files and read header of input file. */ void init_files (const char *const infilename, const char *const outfilename, unsigned int *const image_width, unsigned int *const image_height) { /* Initialize jpeglib objects. */ infilename1 = infilename; outfilename1 = outfilename; jpeg_std_error (&errmgr); errmgr.output_message = &display_error_message; jpeg_create_decompress (&injpg); injpg.err = &errmgr; jpeg_create_compress (&outjpg); outjpg.err = &errmgr; /* Open input file. */ if (infilename != 0) { if ((infile = fopen (infilename, "rb")) == 0) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, infilename, strerror (errno)); exit (1); } } else infile = stdin; jpeg_stdio_src (&injpg, infile); /* Save all markers, unless file is to be stripped. */ if (!opt_strip) { int i; jpeg_save_markers (&injpg, JPEG_COM, 0xffff); for (i = 0; i < 16; ++i) jpeg_save_markers (&injpg, JPEG_APP0 + i, 0xffff); } /* Read header, and display information about the image. */ jpeg_read_header (&injpg, TRUE); if (injpg.image_width <= 0 || injpg.image_height <= 0) { fprintf (stderr, _("%s: %s: Image has zero size\n"), invocation_name, infilename); exit (1); } *image_width = injpg.image_width; *image_height = injpg.image_height; if (opt_info) { /* TRANSLATORS: Please use the "multiplication sign" (Unicode character ) in place of the "x". */ fprintf (stderr, _("%s: %s: size %ux%u, colorspace "), invocation_name, infilename != 0 ? infilename : _("STDIN"), (unsigned int)injpg.image_width, (unsigned int)injpg.image_height); switch (injpg.jpeg_color_space) { case JCS_GRAYSCALE: fputs (_("grayscale"), stderr); break; case JCS_RGB: fputs ("RGB", stderr); break; case JCS_YCbCr: fputs ("YUV", stderr); break; case JCS_CMYK: fputs ("CMYK", stderr); break; case JCS_YCCK: fputs ("YUVK", stderr); break; default: fputs (_("unknown"), stderr); } fputs (_(", sampling"), stderr); { int icomp; for (icomp = 0; icomp < injpg.num_components; ++icomp) { const jpeg_component_info *const comp = &(injpg.comp_info [icomp]); /* TRANSLATORS: Please use the "multiplication sign" (Unicode character ) in place of the "x". */ fprintf (stderr, _(" %dx%d"), comp->h_samp_factor, comp->v_samp_factor); } } putc ('\n', stderr); } /* Create output file. */ if (outfilename != 0) { if ((outfile = fopen (outfilename, "wb")) == 0) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, outfilename, strerror (errno)); exit (1); } } else outfile = stdout; jpeg_stdio_dest (&outjpg, outfile); } /* Copy a JFIF image file to another, interpolate pixels. */ void process_file (const struct rbtree *const points, const enum method_t method) { jvirt_barray_ptr *coeff; /* Copy DCT coefficients from input to output file. */ coeff = jpeg_read_coefficients (&injpg); jpeg_copy_critical_parameters (&injpg, &outjpg); outjpg.optimize_coding = TRUE; jpeg_write_coefficients (&outjpg, coeff); /* Copy saved markers from input to output file, unless file is to be stripped. */ if (!opt_strip) { jpeg_saved_marker_ptr marker; for (marker = injpg.marker_list; marker != 0; marker = marker->next) { /* JFIF and Adobe markers are taken care of by the library, so don't write duplicates. */ if ((!outjpg.write_JFIF_header || marker->marker != JPEG_APP0 || marker->data_length < 5 || GETJOCTET (marker->data [0]) != 0x4a || GETJOCTET (marker->data [1]) != 0x46 || GETJOCTET (marker->data [2]) != 0x49 || GETJOCTET (marker->data [3]) != 0x46 || GETJOCTET (marker->data [4]) != 0) && (!outjpg.write_Adobe_marker || marker->marker != JPEG_APP0 + 14 || marker->data_length < 5 || GETJOCTET (marker->data [0]) != 0x41 || GETJOCTET (marker->data [1]) != 0x64 || GETJOCTET (marker->data [2]) != 0x6f || GETJOCTET (marker->data [3]) != 0x62 || GETJOCTET (marker->data [4]) != 0x65)) jpeg_write_marker (&outjpg, marker->marker, marker->data, marker->data_length); } } /* Interpolate pixels. */ { struct point_dimdir_s *point = rbtree_first (points); if (point != 0) { struct jfif *const jfif = jfif_init (&injpg, coeff); while (point != 0) { if (point->p.x + point->p.x_size <= injpg.image_width && point->p.y + point->p.y_size <= injpg.image_height && point->p.x_size <= injpg.image_width && point->p.y_size <= injpg.image_height) interpolate (&injpg, jfif, point, method); else /* TRANSLATORS: Please use the "multiplication sign" (Unicode character ) in place of the "x". */ fprintf (stderr, _("%s: %s: %u,%u,%u,%u ignored: Image size %ux%u\n"), invocation_name, infilename1 != 0 ? infilename1 : _("STDIN"), point->p.x, point->p.y, point->p.x_size, point->p.y_size, (unsigned int)injpg.image_width, (unsigned int)injpg.image_height); point = rbtree_next (point); } jfif_fini (jfif); } } /* Finish processing and close files. */ jpeg_finish_compress (&outjpg); jpeg_finish_decompress (&injpg); if (outfilename1 != 0 && fclose (outfile) == EOF) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, outfilename1, strerror (errno)); exit (1); } if (infilename1 != 0 && fclose (infile) == EOF) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, infilename1, strerror (errno)); exit (1); } /* Delete jpeglib objects. */ jpeg_destroy_decompress (&injpg); jpeg_destroy_compress (&outjpg); } /* Display an error message. */ static void display_error_message (const j_common_ptr jpg) { const char *filename; char buffer [JMSG_LENGTH_MAX]; if (jpg->is_decompressor) filename = infilename1 != 0 ? infilename1 : _("STDIN"); else filename = outfilename1 != 0 ? outfilename1 : _("STDOUT"); (*jpg->err->format_message) (jpg, buffer); fprintf (stderr, _("%s: %s: %s\n"), invocation_name, filename, buffer); } jpegpixi-1.1.1/jpegpixi.c0000644000000000000000000003110210340156433012177 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #if HAVE_ERRNO_H # include #endif #ifndef errno extern int errno; #endif #if STDC_HEADERS # include #else # define isspace(c) ((c) == ' ' || (c) == '\t') # define isdigit(c) ((c) >= '0' && (c) <= '9') #endif #if HAVE_NLS # include #endif #include "jpegpixi.h" #include "rbtree.h" #include "optpixi.h" /* Name of this program. */ #define PROGRAM_NAME PACKAGE_NAME /* Display text in response to the --help command line option. */ extern void display_help_text (void); /* Display text in response to the --version command line option. */ extern void display_version_text (void); static char *read_line (FILE *f, const char *filename, char **buffer_ptr, size_t *len_buffer_ptr, unsigned int *lineno_ptr) gcc_attr_nonnull (()); static struct point_dimdir_s *parse_struct_point_dimdir_s (struct point_dimdir_s *point, const char *str, unsigned int image_width, unsigned int image_height) gcc_attr_nonnull (()); static int point_dimdir_s_validate_and_consolidate (void *a, const void *b) gcc_attr_nonnull (()); int main (int argc, char *argv []) { int i; enum method_t method = linear; const char *infilename, *outfilename; unsigned int image_width, image_height; struct rbtree points; /* Store program invocation name. */ invocation_name = argv [0] != 0 && *(argv [0]) != '\0' ? argv [0] : PROGRAM_NAME; /* Set up Native Language Support. */ #if HAVE_NLS if (setlocale (LC_ALL, "") != 0) { if (bindtextdomain (PACKAGE_TARNAME, LOCALEDIR) == 0 || textdomain (PACKAGE_TARNAME) == 0) mem_alloc_failed (); } else { fprintf (stderr, "%s: cannot set locale\n" "Make sure the `LC_*' and `LANG' environment variables are set to valid values.\n", invocation_name); exit (1); } #endif /* Parse command line options. */ if ((i = parse_options (invocation_name, argc, argv)) == -1) goto error_try_help; if (opt_help) { display_help_text (); exit (0); } if (opt_version) { display_version_text (); exit (0); } if (opt_method) { if (strcmp ("0", arg_method) == 0 || strcmp ("av", arg_method) == 0 || strcmp ("average", arg_method) == 0) method = average; else if (strcmp ("1", arg_method) == 0 || strcmp ("li", arg_method) == 0 || strcmp ("linear", arg_method) == 0) method = linear; else if (strcmp ("2", arg_method) == 0 || strcmp ("qu", arg_method) == 0 || strcmp ("quadratic", arg_method) == 0) method = quadratic; else if (strcmp ("3", arg_method) == 0 || strcmp ("cu", arg_method) == 0 || strcmp ("cubic", arg_method) == 0) method = cubic; else { fprintf (stderr, _("%s: invalid interpolation method `%s'\n"), invocation_name, arg_method); goto error_try_help; } } /* Read filenames from command line. */ if (i < argc) infilename = argv [i++]; else { fprintf (stderr, _("%s: source filename missing\n"), invocation_name); error_try_help: fprintf (stderr, _("Try `%s --help' for more information.\n"), invocation_name); exit (1); } if (i < argc) outfilename = argv [i++]; else { fprintf (stderr, _("%s: destination filename missing\n"), invocation_name); goto error_try_help; } /* Open files and read header. */ init_files (strcmp (infilename, "-") != 0 ? infilename : 0, strcmp (outfilename, "-") != 0 ? outfilename : 0, &image_width, &image_height); /* Read pixel block specifications from a file. */ rbtree_create (&points); if (opt_blocks_file) { FILE *f; size_t len_line = 80; char *line = xmalloc (len_line); unsigned int lineno = 0; if ((f = fopen (arg_blocks_file, "r")) == 0) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, arg_blocks_file, strerror (errno)); exit (1); } while (read_line (f, arg_blocks_file, &line, &len_line, &lineno)) { struct point_dimdir_s new; if (parse_struct_point_dimdir_s (&new, line, image_width, image_height) != 0) { struct point_dimdir_s *old; int exists; if ((old = rbtree_insert (&points, &new, sizeof new, point_s_cmp, &exists)) == 0) mem_alloc_failed (); if (exists) fprintf (stderr, _("%s: %s:%u: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n"), invocation_name, arg_blocks_file, lineno, new.p.x, new.p.y, new.p.x_size, new.p.y_size, old->p.x, old->p.y, old->p.x_size, old->p.y_size); } else { fprintf (stderr, _("%s: %s:%u: invalid pixel block specification ignored\n"), invocation_name, arg_blocks_file, lineno); } } if (fclose (f) == EOF) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, arg_blocks_file, strerror (errno)); exit (1); } free (line); } /* Read pixel block specifications from the command line. */ while (i < argc) { struct point_dimdir_s new; if (parse_struct_point_dimdir_s (&new, argv [i], image_width, image_height) != 0) { struct point_dimdir_s *old; int exists; if ((old = rbtree_insert (&points, &new, sizeof new, point_s_cmp, &exists)) == 0) mem_alloc_failed (); if (exists) fprintf (stderr, _("%s: %u,%u,%u,%u ignored: overlaps with %u,%u,%u,%u\n"), invocation_name, new.p.x, new.p.y, new.p.x_size, new.p.y_size, old->p.x, old->p.y, old->p.x_size, old->p.y_size); } else { fprintf (stderr, _("%s: invalid pixel block specification `%s'\n"), invocation_name, argv [i]); goto error_try_help; } ++i; } /* Consolidate pixels. */ consolidate_pixels (&points, point_dimdir_s_validate_and_consolidate); /* Interpolate pixels in specified file. */ init_interpolator (); process_file (&points, method); exit (0); } /* Read a line from a file. Dynamically resize buffer if necessary. Return pointer to the line, or a null pointer at the end of the file. */ static char * read_line (FILE *const f, const char *const filename, char **const buffer_ptr, size_t *const len_buffer_ptr, unsigned int *const lineno_ptr) { size_t i = 0; int line_nonempty = 0, no_comment = 1; ++*lineno_ptr; while (1) { #if HAVE_FGETC_UNLOCKED const int c = fgetc_unlocked (f); #else const int c = fgetc (f); #endif if (i >= *len_buffer_ptr) *buffer_ptr = xrealloc (*buffer_ptr, *len_buffer_ptr *= 2); if (c == EOF) { if (ferror (f)) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, filename, strerror (errno)); exit (1); } (*buffer_ptr) [i] = '\0'; return line_nonempty ? *buffer_ptr : 0; } else if (c == '\n') { if (line_nonempty) { (*buffer_ptr) [i] = '\0'; return *buffer_ptr; } else { i = 0; no_comment = 1; ++*lineno_ptr; } } else if (c == '#') no_comment = 0; else if (no_comment && c != '\0') { (*buffer_ptr) [i++] = c; if (!isspace (c)) line_nonempty = 1; } } } /* Parse coordinate and size specification, and dimension and direction of the interpolation. Return `point' on succes, 0 otherwise. */ static struct point_dimdir_s * parse_struct_point_dimdir_s (struct point_dimdir_s *const point, const char *str, const unsigned int image_width, const unsigned int image_height) { while (isspace ((unsigned char)*str)) ++str; if (*str == 'h' || *str == 'H') point->d = horizontal; else if (*str == 'v' || *str == 'V') point->d = vertical; else { point->d = twodim; if (*str != '2' || isdigit ((unsigned char)str [1]) || str [1] == '.' || str [1] == '%' || str [1] == ',' || str [1] == '/' || str [1] == ';') goto parse_x; } ++str; while (isspace ((unsigned char)*str)) ++str; if (*str == ':') ++str; else if (point->d == twodim && (*str == ',' || *str == '/' || *str == ';')) { ++str; point->p.x = 2; goto parse_y; } else return 0; while (isspace ((unsigned char)*str)) ++str; parse_x: switch (parse_number (&str, &point->p.x)) { case -1: return 0; case 0: point->p.x = REL_TO_ABS (point->p.x, image_width); } while (isspace ((unsigned char)*str)) ++str; if (*str == ',' || *str == '/' || *str == ';') ++str; else return 0; parse_y: while (isspace ((unsigned char)*str)) ++str; switch (parse_number (&str, &point->p.y)) { case -1: return 0; case 0: point->p.y = REL_TO_ABS (point->p.y, image_height); } while (isspace ((unsigned char)*str)) ++str; if (*str == ',' || *str == '/' || *str == ';') ++str; else if (*str == '\0') { point->p.x_size = 1; point->p.y_size = 1; return point; } else return 0; while (isspace ((unsigned char)*str)) ++str; switch (parse_number (&str, &point->p.x_size)) { case -1: return 0; case 0: point->p.x_size = REL_TO_ABS (point->p.x_size, image_width); } if (point->p.x_size == 0) return 0; while (isspace ((unsigned char)*str)) ++str; if (*str == ',' || *str == '/' || *str == ';') ++str; else if (*str == '\0') { point->p.y_size = point->p.x_size; return point; } else return 0; while (isspace ((unsigned char)*str)) ++str; switch (parse_number (&str, &point->p.y_size)) { case -1: return 0; case 0: point->p.y_size = REL_TO_ABS (point->p.y_size, image_height); } if (point->p.y_size == 0) return 0; while (isspace ((unsigned char)*str)) ++str; return *str == '\0' ? point : 0; } /* Validate and consolidate two point structures. */ static int point_dimdir_s_validate_and_consolidate (void *const a, const void *const b) { struct point_dimdir_s *const point_a = a; const struct point_dimdir_s *const point_b = b; if (point_a->d != point_b->d) { fprintf (stderr, _("%s: incompatible adjacent points %u,%u,%u,%u (%s) and %u,%u,%u,%u (%s) ignored\n"), invocation_name, point_b->p.x, point_b->p.y, point_b->p.x_size, point_b->p.y_size, point_b->d == vertical ? _("vertical") : point_b->d == horizontal ? _("horizontal") : _("2-dim"), point_a->p.x, point_a->p.y, point_a->p.x_size, point_a->p.y_size, point_a->d == vertical ? _("vertical") : point_a->d == horizontal ? _("horizontal") : _("2-dim")); return 0; } return 1; } jpegpixi-1.1.1/rbtree.c0000644000000000000000000002772510340156416011664 00000000000000/* This file is part of a red-black tree implementation. Copyright (C) 2003, 2004 Martin Dickopp This file 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 file 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 file; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #if !STDC_HEADERS && HAVE_MALLOC_H # include #endif #if !HAVE_DECL_MALLOC extern void *malloc (); #endif #include "rbtree.h" /* Alignment of the data associated with a tree node. */ #define ALIGNMENT 16 /* Size of `struct rbtree_node' rounded up to an integer multiple of `ALIGNMENT'. */ #define SIZEOF_RBTREE_NODE (sizeof (struct rbtree_node) + (ALIGNMENT - 1) \ - (sizeof (struct rbtree_node) - 1) % ALIGNMENT) /* Get data pointer from `struct rbtree_node' pointer. */ #define NODE2DATA(node) ((void *)((char *)(node) + SIZEOF_RBTREE_NODE)) /* Get `struct rbtree_node' pointer from data pointer. */ #define DATA2NODE(data) ((struct rbtree_node *)((char *)(data) - SIZEOF_RBTREE_NODE)) /* Color. */ enum rbtree_color {BLACK = 0, RED = 1}; /* Tree node. */ struct rbtree_node { struct rbtree_node *l; /* Left child node. */ struct rbtree_node *r; /* Right child node. */ struct rbtree_node *p; /* Parent node. */ enum rbtree_color color; /* Color. */ }; static void rbtree_rot_l (struct rbtree *tree, struct rbtree_node *node) gcc_attr_nonnull (()); static void rbtree_rot_r (struct rbtree *tree, struct rbtree_node *node) gcc_attr_nonnull (()); /* Helper function: recursively destroy `node' and all nodes below it. */ void rbtree_destroy1 (struct rbtree_node *node) { while (1) { struct rbtree_node *const tmp = node->r; if (node->l != 0) rbtree_destroy1 (node->l); free (node); if (tmp != 0) node = tmp; else break; } } /* Insert a new node into a tree. The data is copied; the location of the copied data is returned, and if `exists_ptr' is not a null pointer, the integer at the location pointed to is set to zero. If the node already exists, the location of the existing node data is returned, and if `exists_ptr' is not a null pointer, the integer at the location pointed to is set to one. If memory allocation fails, a null pointer is returned. */ void * rbtree_insert (struct rbtree *const tree, const void *const data, size_t data_len, int (*const compare) (const void *a, const void *b), int *const exists_ptr) { struct rbtree_node *node; void *data_copy; { struct rbtree_node *node_p = 0, *tmp = tree->root; while (tmp != 0) { const int cmp = compare (data, NODE2DATA (tmp)); node_p = tmp; if (cmp == 0) { if (exists_ptr != 0) *exists_ptr = 1; return NODE2DATA (tmp); } else if (cmp < 0) tmp = tmp->l; else tmp = tmp->r; } node = malloc (SIZEOF_RBTREE_NODE + data_len); if (node == 0) return 0; data_copy = NODE2DATA (node); node->l = 0; node->r = 0; node->p = node_p; node->color = RED; memcpy (data_copy, data, data_len); } if (node->p == 0) tree->root = node; else if (compare (data, NODE2DATA (node->p)) < 0) node->p->l = node; else node->p->r = node; while (node != tree->root && node->p->color != BLACK) if (node->p == node->p->p->l) { if (node->p->p->r != 0 && node->p->p->r->color != BLACK) { node->p->p->r->color = BLACK; node->p->p->color = RED; node->p->color = BLACK; node = node->p->p; } else { if (node == node->p->r) { node = node->p; rbtree_rot_l (tree, node); } node->p->p->color = RED; node->p->color = BLACK; rbtree_rot_r (tree, node->p->p); } } else { if (node->p->p->l != 0 && node->p->p->l->color != BLACK) { node->p->p->l->color = BLACK; node->p->p->color = RED; node->p->color = BLACK; node = node->p->p; } else { if (node == node->p->l) { node = node->p; rbtree_rot_r (tree, node); } node->p->p->color = RED; node->p->color = BLACK; rbtree_rot_l (tree, node->p->p); } } tree->root->color = BLACK; if (exists_ptr != 0) *exists_ptr = 0; return data_copy; } /* Delete a node. The `data' parameter must point to the data associated with an existing node. */ void rbtree_delete (struct rbtree *const tree, void *const data) { struct rbtree_node *const node = DATA2NODE (data); struct rbtree_node *del_node, *tmp, *tmp_p; del_node = node; if (del_node->r == 0) tmp = del_node->l; else { if (del_node->l != 0) { del_node = del_node->r; while (del_node->l != 0) del_node = del_node->l; } tmp = del_node->r; } if (del_node != node) { node->l->p = del_node; del_node->l = node->l; if (del_node != node->r) { tmp_p = del_node->p; if (tmp != 0) tmp->p = del_node->p; del_node->p->l = tmp; del_node->r = node->r; node->r->p = del_node; } else tmp_p = del_node; if (tree->root == node) tree->root = del_node; else if (node->p->l == node) node->p->l = del_node; else node->p->r = del_node; del_node->p = node->p; { const enum rbtree_color tmp_color = del_node->color; del_node->color = node->color; node->color = tmp_color; } del_node = node; } else { tmp_p = node->p; if (tmp != 0) tmp->p = node->p; if (tree->root == node) tree->root = tmp; else if (node->p->l == node) node->p->l = tmp; else node->p->r = tmp; } if (del_node->color == BLACK) { while (tmp != tree->root && (tmp == 0 || tmp->color == BLACK)) if (tmp == tmp_p->l) { struct rbtree_node *tmp_p_r = tmp_p->r; if (tmp_p_r->color != BLACK) { tmp_p_r->color = BLACK; tmp_p->color = RED; rbtree_rot_l (tree, tmp_p); tmp_p_r = tmp_p->r; } if ((tmp_p_r->l == 0 || tmp_p_r->l->color == BLACK) && (tmp_p_r->r == 0 || tmp_p_r->r->color == BLACK)) { tmp_p_r->color = RED; tmp = tmp_p; tmp_p = tmp->p; } else { if (tmp_p_r->r == 0 || tmp_p_r->r->color == BLACK) { tmp_p_r->l->color = BLACK; tmp_p_r->color = RED; rbtree_rot_r (tree, tmp_p_r); tmp_p_r = tmp_p->r; } tmp_p_r->color = tmp_p->color; tmp_p->color = BLACK; if (tmp_p_r->r != 0) tmp_p_r->r->color = BLACK; rbtree_rot_l (tree, tmp_p); break; } } else { struct rbtree_node *tmp_p_l = tmp_p->l; if (tmp_p_l->color != BLACK) { tmp_p_l->color = BLACK; tmp_p->color = RED; rbtree_rot_r (tree, tmp_p); tmp_p_l = tmp_p->l; } if ((tmp_p_l->l == 0 || tmp_p_l->l->color == BLACK) && (tmp_p_l->r == 0 || tmp_p_l->r->color == BLACK)) { tmp_p_l->color = RED; tmp = tmp_p; tmp_p = tmp->p; } else { if (tmp_p_l->l == 0 || tmp_p_l->l->color == BLACK) { tmp_p_l->r->color = BLACK; tmp_p_l->color = RED; rbtree_rot_l (tree, tmp_p_l); tmp_p_l = tmp_p->l; } tmp_p_l->color = tmp_p->color; tmp_p->color = BLACK; if (tmp_p_l->l != 0) tmp_p_l->l->color = BLACK; rbtree_rot_r (tree, tmp_p); break; } } if (tmp != 0) tmp->color = BLACK; } free (del_node); } /* Find a node. Return the data associated with the node, or a null pointer if the node does not exist. */ void * rbtree_find (const struct rbtree *const tree, const void *const data, int (*const compare) (const void *a, const void *b)) { const struct rbtree_node *node = tree->root; while (node != 0) { const int cmp = compare (data, NODE2DATA (node)); if (cmp == 0) return NODE2DATA (node); else if (cmp < 0) node = node->l; else node = node->r; } return 0; } /* Return the data associated with the first node, or a null pointer if the tree is empty. */ void * rbtree_first (const struct rbtree *const tree) { const struct rbtree_node *node = tree->root; if (node == 0) return 0; while (node->l != 0) node = node->l; return NODE2DATA (node); } /* Return the data associated with the next node, or a null pointer if no more nodes exist. */ void * rbtree_next (const void *const data) { const struct rbtree_node *node = DATA2NODE (data), *tmp; if (node->r != 0) { node = node->r; while (node->l != 0) node = node->l; return NODE2DATA (node); } tmp = node->p; while (tmp != 0 && tmp->r == node) { node = tmp; tmp = tmp->p; } return tmp != 0 ? NODE2DATA (tmp) : 0; } /* Rotate a node to the left. */ static void rbtree_rot_l (struct rbtree *const tree, struct rbtree_node *const node) { struct rbtree_node *const tmp = node->r; node->r = tmp->l; if (tmp->l != 0) tmp->l->p = node; tmp->p = node->p; if (tmp->p == 0) tree->root = tmp; else if (node == node->p->l) node->p->l = tmp; else node->p->r = tmp; tmp->l = node; node->p = tmp; } /* Rotate a node to the right. */ static void rbtree_rot_r (struct rbtree *const tree, struct rbtree_node *const node) { struct rbtree_node *const tmp = node->l; node->l = tmp->r; if (tmp->r != 0) tmp->r->p = node; tmp->p = node->p; if (tmp->p == 0) tree->root = tmp; else if (node == node->p->r) node->p->r = tmp; else node->p->l = tmp; tmp->r = node; node->p = tmp; } jpegpixi-1.1.1/strerror.c0000644000000000000000000000224710340156401012245 00000000000000/* This file provides a replacement for the strerror library function. Copyright (C) 2002, 2004 Martin Dickopp 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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include char * strerror (const int n) { extern SYS_ERRLIST_TYPE sys_errlist []; extern int sys_nerr; if (n >= 0 && n < sys_nerr) return (char *)sys_errlist [n]; { static char tmp [64]; sprintf (tmp, "Unknown error %d", n); return tmp; } } jpegpixi-1.1.1/jpeghotp.opag0000644000000000000000000000625210340156363012716 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004, 2005 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include %% t threshold "=THRESHOLD specify threshold between noise and signal [default: 10%]" reqarg i invert "invert image (i.e. find dead pixels in an otherwise white image)" c comments "output comments with luminosities of hot pixel blocks" help "display this help text and exit" return version "display version information and exit" return %% /* Display text in response to the --help command line option. */ void display_help_text (void) { printf (_("Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an\n" "otherwise white JPEG image (if the `--invert' option is specified). Write their\n" "coordinates to a pixel blocks file suitable for the jpegpixi program.\n\n" "Options:\n"), invocation_name); fputs (STR_HELP, stdout); /* TRANSLATORS: Please include the information that bug reports should be send in English. E.g., translate "Please report bugs (in English) to ...". */ fputs (_("\nPlease report bugs to .\n"), stdout); } /* Display text in response to the --version command line option. */ void display_version_text (void) { fputs ("jpeghotp (" PACKAGE_NAME ") " PACKAGE_VERSION "\n", stdout); /* TRANSLATORS: Please leave the copyright statement intact, but replace "(C)" with the "copyright sign" (Unicode character ). */ fputs (_("Copyright (C) 2003, 2004, 2005 Martin Dickopp\n\n"), stdout); /* TRANSLATORS: Please don't translate the warranty disclaimer literally, but replace it with a text which has a legal effect as close as possible to the original in the jurisdiction(s) where your language is used. If unsure, replace it with a translation of "There is no warranty, to the extent allowed by law." */ fputs (_("This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n"), stdout); } jpegpixi-1.1.1/depcomp0000755000000000000000000003710010265127405011600 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # 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, 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: jpegpixi-1.1.1/NEWS0000644000000000000000000001301410340157424010716 00000000000000Version 1.1.1: * Fixed typo in English jpegpixi manual page. * Updated postal address of the Free Software Foundation. Version 1.1.0: * In addition to hot pixels in an otherwise black image, the `jpeghotp' program can now also find dead pixels in an otherwise white image. * Fail gracefully if the locale cannot be set. Version 1.0.3: * Stephan Peccini has contributed French translations of the manual pages and the message catalog. Thank you, Stephan! Version 1.0.2: * Spelling mistakes in the German message catalog have been corrected. * Minor cleanup of the code and build infrastructure. Split some messages to make the job of translators easier. Version 1.0.1: * Jarno Elonen has contributed Finnish translations of the manual pages and the message catalog. Thank you, Jarno! Version 1.0.0: * Native Language Support is provided. The package contains a message catalog with German translations. * With Native Language Support, all intended features are implemented. Therefore, the major version number is changed to 1. Version 0.16.0: * German translations of the manual pages are provided. This is the first step towards Native Language Support in the programs themselves. Version 0.15.1: * Following a proposal on the debian-legal mailinglist (see and followups), license information (i.e. the output shown if the `--version' command line option is specified) is put into a separate section `.license' in the executable, if possible. The contents of this section can be dumped with the GNU binutils, using the command: objcopy -O binary -j .license /path/to/jpegpixi `tty` * Bug fix: Link with math library (-lm) if necessary. Version 0.15.0: * The `jpegpixi' program has a new command line option `--verbose' to display coordinates and sizes of interpolated pixel blocks. * Bug fix: Warn if overlapping pixel blocks are specified. * Bug fix: Consolidate adjacent pixel blocks. For example, if `42,17' and `43,17' are specified, the behavior is the same as if `42,17,2,1' had been specified instead. * Bug fix: Work correctly in extreme cases where almost the whole image is interpolated. Version 0.14.2: * The `jpeghotp' program can output comments with the luminosities of the hot pixel blocks. This can be helpful in "hand tuning" the pixel blocks file. Version 0.14.1: * Jarno Elonen will maintain the jpegpixi Debian package; therefore the `debian' directory has been removed. Version 0.14: * A new program `jpeghotp' is provided. It finds hot pixels in an otherwise black JPEG image. * Spelling mistakes in the manual page corrected. Version 0.13: * Coordinates and sizes can not only be specified as absolute values, but also as percentages of the image size. Version 0.12: * Jpegpixi now parses command line options with code generated with `opag', an option parser generator by the same author. This has no user-visible effect. Version 0.11: * No code changes at all. The only purpose of this release is to incorporate a change of the home page and the author's e-mail address. Version 0.10: * Pixel block specifications can be read from a file (in addition to the command line). Version 0.9: * In addition to 2-dimensional interpolation, 1-dimensional interpolation is now also supported. The latter can be used to remove horizontal or vertical stripes which span the whole image or a large part of it. Thanks to Evgeny Stambulchik for suggesting this. * Bug fixes. Version 0.8: * The size of the block to be interpolated is now only limited by available memory. * Jpegpixi does no longer use precalculated tables for the interpolation; this reduces the size of the executable. * Especially for low-quality images, the (inevitable) quality loss in the vicinity of interpolated pixels is now even smaller. To achieve this, the optimal threshold for the rounding of DCT coefficients has been empirically determined. * Huffman tables are re-calculated for the output image, resulting in a smaller file size in some cases. * It is no longer possible to print debugging output. Maintaining this functionality is too much of a hassle for too little benefit. Version 0.7: * Bug fix: Pixels near the image edges are treated correctly. * More verbose debugging output. * Uses automake 1.7.5. Version 0.6: * The package uses autoconf 2.57 and automake 1.7.2. * A `debian' subdirectory to build a Debian package is provided. Version 0.5: * There is now a manual page. * The maximum size of the pixel block to be interpolated has been increased to 5x5 pixels. * The package uses automake 1.6.1. Version 0.4: * Biquadratic and bicubic interpolation are supported in addition to averaging and bilinear interpolation. Version 0.3: * The size of the pixel block to be interpolated can be specified (up to 3x3 pixels). * Interpolation engine rewritten from scratch. Averaging and bilinear interpolation are available as interpolation methods. Quadratic interpolation has been taken out and will be added again to a later version. CAUTION: The names of the interpolation methods (`-m' option) have changed. Version 0.2: * Bug fixes. Now jpegpixi works reasonably well with low quality JFIF images. * New command line option `-d' to display debugging information (e.g. the DCT coefficients before and after the interpolation). * Interpolation method can be specified on the command line. The following methods are supported: - average of 4 adjacent pixels - average of 8 surrounding pixels - quadratic surface defined by 12 nearest pixels Version 0.1: * First release. jpegpixi-1.1.1/README0000644000000000000000000000522710173207323011104 00000000000000Jpegpixi - JPEG pixel interpolator ================================== What is it? ----------- "Jpegpixi" is short for "JPEG pixel interpolator". The intent of the program is to interpolate pixels in JFIF images (commonly referred to as "JPEG images"). This is useful to correct images from a digital camera with CCD defects. For example, if one pixel is always bright green, this pixel can be interpolated away with jpegpixi. Jpegpixi is unique in that it tries to preserve the quality of the JFIF image as much as possible. Usual graphics programs decode JFIF images when they are loaded, and re-encode them when they are saved, which results in an overall loss of quality. Jpegpixi, on the other hand, does not decode and re-encode the image, but manipulates the encoded image data (known as the "discrete cosine transformation coefficients"). Therefore, the blocks (typically 8x8, 8x16, or 16x16 pixel areas) which contain the pixels to be interpolated are minimally disturbed, and other blocks remain pixel-by-pixel identical to the original image. Jpegpixi is a command line utility. It is Free Software, released under the GNU General Public License (GPL). The full text of the GPL is contained in the file `COPYING'. This software is based in part on the work of the Independent JPEG Group. See `README.jpeglib' for copyright and license information. Installation ------------ The file `INSTALL' contains general installation instructions. If you have not yet read it, please do so now. To build jpegpixi, you must have the JPEG library by the Independent JPEG Group (version 6b or later) installed. It can be downloaded from . You can specify the location of the JPEG library when you run the `configure' script with the option `--with-jpeglib' or the options `--with-jpeglib-include' and `--with-jpeglib-lib'. Please type `./configure --help' for more information. The files `optpixi.c' and `optpixi.h' are built from `jpegpixi.opag', and the files `opthotp.c' and `opthotp.h' are built from `jpeghotp.opag', with `opag', a command line option parser generator. If you want to modify `jpegpixi.opag' or `jpeghotp.opag', but don't have `opag' installed, you can download it from . Version 0.7.0 or later is required. You can also specify the location of the `opag' executable when you run the `configure' script with the option `--with-opag'. Please type `./configure --help' for more information. Usage ----- Please read the manual page for detailed instructions. For a usage example, please see the "Example" section on the jpegpixi homepage at . jpegpixi-1.1.1/config.h.in0000644000000000000000000000646110340157442012252 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the declaration of `bindtextdomain', and to 0 if you don't. */ #undef HAVE_DECL_BINDTEXTDOMAIN /* Define to 1 if you have the declaration of `gettext', and to 0 if you don't. */ #undef HAVE_DECL_GETTEXT /* Define to 1 if you have the declaration of `LC_MESSAGES', and to 0 if you don't. */ #undef HAVE_DECL_LC_MESSAGES /* Define to 1 if you have the declaration of `ngettext', and to 0 if you don't. */ #undef HAVE_DECL_NGETTEXT /* Define to 1 if you have the declaration of `setlocale', and to 0 if you don't. */ #undef HAVE_DECL_SETLOCALE /* Define to 1 if you have the declaration of `strchr', and to 0 if you don't. */ #undef HAVE_DECL_STRCHR /* Define to 1 if you have the declaration of `strerror', and to 0 if you don't. */ #undef HAVE_DECL_STRERROR /* Define to 1 if you have the declaration of `textdomain', and to 0 if you don't. */ #undef HAVE_DECL_TEXTDOMAIN /* Define to 1 if you have the header file. */ #undef HAVE_ERRNO_H /* Define to 1 if you have the `fgetc_unlocked' function. */ #undef HAVE_FGETC_UNLOCKED /* Define to 1 if you have the header file. */ #undef HAVE_FLOAT_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if package `jpeglib' is available. */ #undef HAVE_JPEGLIB /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MALLOC_H /* Define to 1 if you have the header file. */ #undef HAVE_MATH_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 to enable Native Language Support. */ #undef HAVE_NLS /* Define to 1 if the system has the type `ptrdiff_t'. */ #undef HAVE_PTRDIFF_T /* Define to 1 if the system has the type `size_t'. */ #undef HAVE_SIZE_T /* Define to 1 if the system has the type `ssize_t'. */ #undef HAVE_SSIZE_T /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to the type of `sys_errlist' elements. */ #undef SYS_ERRLIST_TYPE /* Define to empty if `const' does not conform to ANSI C. */ #undef const jpegpixi-1.1.1/weights.c0000644000000000000000000001605410340156346012046 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002, 2003 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include "jpegpixi.h" static double poly_term (size_t i_coeff, int x, int y, int poly_order) gcc_attr_const; static void matrix_inv (double *a, size_t size); /* Calculate weights for interpolation. */ struct weight_s * get_weights (const int x_size, const int y_size, const int is_twodim, const int poly_order) { struct weight_s *w; const size_t num_coeff = (is_twodim ? ((size_t)poly_order + 1) * ((size_t)poly_order + 1) : (size_t)poly_order + 1); double *matrix; /* num_coeff * num_coeff */ double *vector0; /* num_pos * num_coeff */ double *vector1; /* num_pos * num_coeff */ size_t ix, iy, j; int x, y; w = xmalloc (sizeof (struct weight_s)); w->x_size = x_size; w->y_size = y_size; w->poly_order = poly_order; w->is_twodim = is_twodim; /* Determine coordinates of pixels to be sampled. */ w->num_pos = 0; if (is_twodim) { size_t len_pos = 8; w->pos = xmalloc (sizeof (struct xy_s) * len_pos); for (y = -poly_order; y < y_size + poly_order; ++y) for (x = -poly_order; x < x_size + poly_order; ++x) if ((x < 0 && y < 0 && -x - y < poly_order + 2) || (x < 0 && y >= y_size && -x + y - y_size < poly_order + 1) || (x >= x_size && y < 0 && x - y - x_size < poly_order + 1) || (x >= x_size && y >= y_size && x + y - x_size - y_size < poly_order) || (x < 0 && y >= 0 && y < y_size) || (x >= x_size && y >= 0 && y < y_size) || (y < 0 && x >= 0 && x < x_size) || (y >= y_size && x >= 0 && x < x_size)) { if (w->num_pos >= len_pos) w->pos = xrealloc (w->pos, sizeof (struct xy_s) * (len_pos *= 2)); w->pos [w->num_pos].x = x; w->pos [w->num_pos++].y = y; } w->pos = xrealloc (w->pos, sizeof (struct xy_s) * w->num_pos); } else { /* In the one-dimensional case, only the y coordinate and y size is used. */ w->pos = xmalloc (sizeof (struct xy_s) * 2 * poly_order); for (y = -poly_order; y < 0; ++y) { w->pos [w->num_pos].x = 0; w->pos [w->num_pos++].y = y; } for (y = y_size; y < y_size + poly_order; ++y) { w->pos [w->num_pos].x = 0; w->pos [w->num_pos++].y = y; } } /* Allocate memory. */ matrix = xmalloc (sizeof (double) * num_coeff * num_coeff); vector0 = xmalloc (sizeof (double) * w->num_pos * num_coeff); vector1 = xmalloc (sizeof (double) * w->num_pos * num_coeff); /* Calculate coefficient matrix and vector. */ for (iy = 0; iy < num_coeff; ++iy) { for (ix = 0; ix < num_coeff; ++ix) matrix [iy * num_coeff + ix] = 0.0; for (j = 0; j < w->num_pos; ++j) { vector0 [iy * w->num_pos + j] = poly_term (iy, w->pos [j].x, w->pos [j].y, poly_order); for (ix = 0; ix < num_coeff; ++ix) matrix [iy * num_coeff + ix] += (vector0 [iy * w->num_pos + j] * poly_term (ix, w->pos [j].x, w->pos [j].y, poly_order)); } } /* Invert matrix. */ matrix_inv (matrix, num_coeff); /* Multiply inverse matrix with vector. */ for (iy = 0; iy < num_coeff; ++iy) for (j = 0; j < w->num_pos; ++j) { vector1 [iy * w->num_pos + j] = 0.0; for (ix = 0; ix < num_coeff; ++ix) vector1 [iy * w->num_pos + j] += matrix [iy * num_coeff + ix] * vector0 [ix * w->num_pos + j]; } /* Store weights. */ w->weights = xmalloc (sizeof (double *) * x_size * y_size); for (y = 0; y < y_size; ++y) for (x = 0; x < x_size; ++x) { double *const weights = xmalloc (sizeof (double) * w->num_pos); w->weights [x + x_size * y] = weights; for (j = 0; j < w->num_pos; ++j) { weights [j] = 0.0; for (iy = 0; iy < num_coeff; ++iy) weights [j] += vector1 [iy * w->num_pos + j] * poly_term (iy, x, y, poly_order); weights [j] *= (double)w->num_pos; } } free (vector1); free (vector0); free (matrix); return w; } /* Calculate one term of the polynomial. */ static double poly_term (const size_t i_coeff, const int x, const int y, const int poly_order) { const size_t x_power = i_coeff / ((size_t)poly_order + 1); const size_t y_power = i_coeff % ((size_t)poly_order + 1); int result; size_t i; result = 1; for (i = 0; i < x_power; ++i) result *= x; for (i = 0; i < y_power; ++i) result *= y; return (double)result; } /* Invert a quadratic matrix. */ static void matrix_inv (double *const a, const size_t size) { double *const b = xmalloc (sizeof (double) * size * size); size_t ix, iy, j; /* Copy matrix to new location. */ memcpy (b, a, sizeof (double) * size * size); /* Set destination matrix to unit matrix. */ for (iy = 0; iy < size; ++iy) for (ix = 0; ix < size; ++ix) a [iy * size + ix] = ix == iy ? 1.0 : 0.0; /* Convert matrix to upper triangle form. */ for (iy = 0; iy < size - 1; ++iy) for (j = iy + 1; j < size; ++j) { const double factor = b [j * size + iy] / b [iy * size + iy]; for (ix = 0; ix < size; ++ix) { b [j * size + ix] -= factor * b [iy * size + ix]; a [j * size + ix] -= factor * a [iy * size + ix]; } } /* Convert matrix to diagonal form. */ for (iy = size - 1; iy > 0; --iy) for (j = 0; j < iy; ++j) { const double factor = b [j * size + iy] / b [iy * size + iy]; for (ix = 0; ix < size; ++ix) a [j * size + ix] -= factor * a [iy * size + ix]; } /* Convert matrix to unit matrix. */ for (iy = 0; iy < size; ++iy) for (ix = 0; ix < size; ++ix) a [iy * size + ix] /= b [iy * size + iy]; free (b); } jpegpixi-1.1.1/configure0000755000000000000000000061206110340157443012136 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for jpegpixi 1.1.1. # # Report bugs to . # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # # Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # 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 sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # 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'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` exec 6>&1 # # Initializations. # ac_default_prefix=/usr/local ac_config_libobj_dir=. cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. # This variable seems obsolete. It should probably be removed, and # only ac_max_sed_lines should be used. : ${ac_max_here_lines=38} # Identity of this package. PACKAGE_NAME='jpegpixi' PACKAGE_TARNAME='jpegpixi' PACKAGE_VERSION='1.1.1' PACKAGE_STRING='jpegpixi 1.1.1' PACKAGE_BUGREPORT='martin@zero-based.org' ac_unique_file="jpegpixi.c" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPAG CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MD_NO_CONST CPP EGREP MATHLIB LIBOBJS XGETTEXT MSGMERGE MSGFMT SUBDIR_PO LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval "enable_$ac_feature=no" ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "enable_$ac_feature='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` case $ac_option in *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; *) ac_optarg=yes ;; esac eval "with_$ac_package='$ac_optarg'" ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` eval "with_$ac_package=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute paths. for ac_var in exec_prefix prefix do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* | NONE | '' ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in [\\/$]* | ?:[\\/]* ) ;; *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; };; esac done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe 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 fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 { (exit 1); exit 1; }; } else { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi fi (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 { (exit 1); exit 1; }; } srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ac_env_build_alias_set=${build_alias+set} ac_env_build_alias_value=$build_alias ac_cv_env_build_alias_set=${build_alias+set} ac_cv_env_build_alias_value=$build_alias ac_env_host_alias_set=${host_alias+set} ac_env_host_alias_value=$host_alias ac_cv_env_host_alias_set=${host_alias+set} ac_cv_env_host_alias_value=$host_alias ac_env_target_alias_set=${target_alias+set} ac_env_target_alias_value=$target_alias ac_cv_env_target_alias_set=${target_alias+set} ac_cv_env_target_alias_value=$target_alias ac_env_CC_set=${CC+set} ac_env_CC_value=$CC ac_cv_env_CC_set=${CC+set} ac_cv_env_CC_value=$CC ac_env_CFLAGS_set=${CFLAGS+set} ac_env_CFLAGS_value=$CFLAGS ac_cv_env_CFLAGS_set=${CFLAGS+set} ac_cv_env_CFLAGS_value=$CFLAGS ac_env_LDFLAGS_set=${LDFLAGS+set} ac_env_LDFLAGS_value=$LDFLAGS ac_cv_env_LDFLAGS_set=${LDFLAGS+set} ac_cv_env_LDFLAGS_value=$LDFLAGS ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS ac_env_CPP_set=${CPP+set} ac_env_CPP_value=$CPP ac_cv_env_CPP_set=${CPP+set} ac_cv_env_CPP_value=$CPP # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures jpegpixi 1.1.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data [PREFIX/share] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --infodir=DIR info documentation [PREFIX/info] --mandir=DIR man documentation [PREFIX/man] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of jpegpixi 1.1.1:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-nls do not use Native Language Support Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-opag=PROGRAM use PROGRAM as opag executable --with-jpeglib=DIR search jpeglib header files in DIR/include, library in DIR/lib --with-jpeglib-include=DIR search jpeglib header files in DIR --with-jpeglib-lib=DIR search jpeglib library in DIR Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. ac_popdir=`pwd` for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d $ac_dir || continue ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. if test -f $ac_srcdir/configure.gnu; then echo $SHELL $ac_srcdir/configure.gnu --help=recursive elif test -f $ac_srcdir/configure; then echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || test -f $ac_srcdir/configure.in; then echo $ac_configure --help else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi cd "$ac_popdir" done fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF jpegpixi configure 1.1.1 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp _ACEOF exit 0 fi exec 5>config.log cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by jpegpixi $as_me 1.1.1, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ _ACEOF { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` hostinfo = `(hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_sep= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. ac_sep=" " ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Be sure not to use single quotes in there, as some shells, # such as our DU 5.0 friend, will then `close' the trap. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, { (set) 2>&1 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------- ## ## Output files. ## ## ------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo sed "/^$/d" confdefs.h | sort echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo >confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; *) . ./$cache_file;; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version="1.9" ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f $ac_dir/shtool; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} { (exit 1); exit 1; }; } fi ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_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. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL=$ac_install_sh fi fi echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 test "$program_prefix" != NONE && program_transform_name="s,^,$program_prefix,;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s,\$,$program_suffix,;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$AWK" && break done echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF all: @echo 'ac_maketemp="$(MAKE)"' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yes else eval ac_cv_prog_make_${ac_make}_set=no fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='jpegpixi' VERSION='1.1.1' # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi STRIP=$ac_ct_STRIP else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" md_path_opag= # Check whether --with-opag or --without-opag was given. if test "${with_opag+set}" = set; then withval="$with_opag" case $withval in yes) ;; no) md_path_opag=missing ;; *) md_path_opag="$withval" ;; esac fi; if test "x$md_path_opag" != x; then OPAG="$md_path_opag" else # Extract the first word of "opag", so it can be a program name with args. set dummy opag; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_OPAG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $OPAG in [\\/]* | ?:[\\/]*) ac_cv_path_OPAG="$OPAG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_OPAG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done test -z "$ac_cv_path_OPAG" && ac_cv_path_OPAG="missing" ;; esac fi OPAG=$ac_cv_path_OPAG if test -n "$OPAG"; then echo "$as_me:$LINENO: result: $OPAG" >&5 echo "${ECHO_T}$OPAG" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi CC=$ac_ct_CC else CC="$ac_cv_prog_CC" fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_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 fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi test -n "$ac_ct_CC" && break done CC=$ac_ct_CC fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO:" \ "checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 (eval $ac_compiler --version &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 (eval $ac_compiler -v &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 (eval $ac_compiler -V &5) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Find the output, starting from the most likely. This scheme is # not robust to junk in `.', hence go to wildcards (a.*) only as a last # resort. # Be careful to initialize this variable, since it used to be cached. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. ac_cv_exeext= # b.out is created by i960 compilers. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; conftest.$ac_ext ) # This is the source file. ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` # FIXME: I believe we export ac_cv_exeext for Libtool, # but it would be cool to find out if it's true. Does anybody # maintain Libtool? --akim. export ac_cv_exeext break;; * ) break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6 # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6 echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6 OBJEXT=$ac_cv_objext ac_objext=$OBJEXT echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* 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; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std1 is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std1. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 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; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF # 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 10.20 and later -Ae # HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC fi case "x$ac_cv_prog_cc_stdc" in x|xno) echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac # Some people use a C++ compiler to compile C. Since we use `exit', # in C++ we need to declare it. In case someone uses the same compiler # for both compiling C and C++ we need to have the C++ compiler decide # the declaration of exit, since it's the most demanding environment. cat >conftest.$ac_ext <<_ACEOF #ifndef __cplusplus choke me #endif _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration #include int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 continue fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_declaration int main () { exit (42); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.h fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6 rm -f confinc confmf # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval="$enable_dependency_tracking" fi; if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi if test "x$ac_cv_prog_cc_stdc" = xno; then { { echo "$as_me:$LINENO: error: an ANSI C compiler is required to build this package" >&5 echo "$as_me: error: an ANSI C compiler is required to build this package" >&2;} { (exit 1); exit 1; }; } fi echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++ccp; p = (char**) ccp; ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this 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; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; } #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi if test $ac_cv_c_const = no; then MD_NO_CONST=1 else MD_NO_CONST=0 fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 if test "${ac_cv_prog_egrep+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi fi echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 EGREP=$ac_cv_prog_egrep echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } _ACEOF rm -f conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in errno.h float.h malloc.h math.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done echo "$as_me:$LINENO: checking whether strerror is declared" >&5 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { #ifndef strerror char *p = (char *) strerror; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_strerror=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_strerror=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 if test $ac_cv_have_decl_strerror = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRERROR 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRERROR 0 _ACEOF fi echo "$as_me:$LINENO: checking whether strchr is declared" >&5 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_strchr+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { #ifndef strchr char *p = (char *) strchr; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_strchr=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_strchr=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6 if test $ac_cv_have_decl_strchr = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRCHR 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_STRCHR 0 _ACEOF fi echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((size_t *) 0) return 0; if (sizeof (size_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6 if test $ac_cv_type_size_t = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_SIZE_T 1 _ACEOF fi echo "$as_me:$LINENO: checking for ssize_t" >&5 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 if test "${ac_cv_type_ssize_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((ssize_t *) 0) return 0; if (sizeof (ssize_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_ssize_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_ssize_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 if test $ac_cv_type_ssize_t = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_SSIZE_T 1 _ACEOF fi echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 if test "${ac_cv_type_ptrdiff_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { if ((ptrdiff_t *) 0) return 0; if (sizeof (ptrdiff_t)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_ptrdiff_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_ptrdiff_t=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 if test $ac_cv_type_ptrdiff_t = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_PTRDIFF_T 1 _ACEOF fi MATHLIB= save_LIBS="$LIBS" echo "$as_me:$LINENO: checking for library containing fabs" >&5 echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6 if test "${ac_cv_search_fabs+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_fabs=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char fabs (); int main () { fabs (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_fabs="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_fabs" = no; then for ac_lib in m; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char fabs (); int main () { fabs (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_fabs="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5 echo "${ECHO_T}$ac_cv_search_fabs" >&6 if test "$ac_cv_search_fabs" != no; then test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS" MATHLIB="-lm" fi LIBS="$save_LIBS" echo "$as_me:$LINENO: checking for library containing remove" >&5 echo $ECHO_N "checking for library containing remove... $ECHO_C" >&6 if test "${ac_cv_search_remove+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_remove=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove (); int main () { remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_remove="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_remove" = no; then for ac_lib in posix; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove (); int main () { remove (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_remove="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_remove" >&5 echo "${ECHO_T}$ac_cv_search_remove" >&6 if test "$ac_cv_search_remove" != no; then test "$ac_cv_search_remove" = "none required" || LIBS="$ac_cv_search_remove $LIBS" fi echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_strerror=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_strerror" = no; then for ac_lib in cposix; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strerror (); int main () { strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_strerror="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6 if test "$ac_cv_search_strerror" != no; then test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" fi for ac_func in fgetc_unlocked do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in strerror do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" { #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else char (*f) () = $ac_func; #endif #ifdef __cplusplus } #endif int main () { return f != $ac_func; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF else case $LIBOBJS in "$ac_func.$ac_objext" | \ *" $ac_func.$ac_objext" | \ "$ac_func.$ac_objext "* | \ *" $ac_func.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; esac fi done if test "x$ac_cv_func_strerror" != xyes; then echo "$as_me:$LINENO: checking for type of sys_errlist elements" >&5 echo $ECHO_N "checking for type of sys_errlist elements... $ECHO_C" >&6 if test "${md_cv_var_type_sys_errlist+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else md_cv_var_type_sys_errlist='char *' for md_type_sys_errlist in 'const char *const' 'const char *' 'char *const'; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { extern $md_type_sys_errlist sys_errlist []; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then md_cv_var_type_sys_errlist="$md_type_sys_errlist"; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done fi echo "$as_me:$LINENO: result: $md_cv_var_type_sys_errlist" >&5 echo "${ECHO_T}$md_cv_var_type_sys_errlist" >&6 cat >>confdefs.h <<_ACEOF #define SYS_ERRLIST_TYPE $md_cv_var_type_sys_errlist _ACEOF fi md_path_have_jpeglib=yes md_path_include_jpeglib= md_path_lib_jpeglib= # Check whether --with-jpeglib or --without-jpeglib was given. if test "${with_jpeglib+set}" = set; then withval="$with_jpeglib" case $withval in yes) md_path_have_jpeglib=yes ;; no) md_path_have_jpeglib=no ;; *) md_path_have_jpeglib=yes md_path_include_jpeglib="$withval/include" md_path_lib_jpeglib="$withval/lib" ;; esac fi; # Check whether --with-jpeglib-include or --without-jpeglib-include was given. if test "${with_jpeglib_include+set}" = set; then withval="$with_jpeglib_include" case $withval in yes) md_path_have_jpeglib=yes ;; no) md_path_have_jpeglib=no ;; *) md_path_have_jpeglib=yes md_path_include_jpeglib="$withval" ;; esac fi; # Check whether --with-jpeglib-lib or --without-jpeglib-lib was given. if test "${with_jpeglib_lib+set}" = set; then withval="$with_jpeglib_lib" case $withval in yes) md_path_have_jpeglib=yes ;; no) md_path_have_jpeglib=no ;; *) md_path_have_jpeglib=yes md_path_lib_jpeglib="$withval" ;; esac fi; JPEGLIB_CPPFLAGS= JPEGLIB_LIBS= if test $md_path_have_jpeglib = yes; then if test "x$md_path_include_jpeglib" != x; then JPEGLIB_CPPFLAGS="-I$md_path_include_jpeglib" fi if test "x$md_path_lib_jpeglib" != x; then JPEGLIB_LIBS="-L$md_path_lib_jpeglib" fi save_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$CPPFLAGS $JPEGLIB_CPPFLAGS" echo "$as_me:$LINENO: checking for jpeglib.h" >&5 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 if test "${ac_cv_header_jpeglib_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_jpeglib_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_jpeglib_h=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 if test $ac_cv_header_jpeglib_h = yes; then save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS $JPEGLIB_LIBS" echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ljpeg $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char jpeg_start_decompress (); int main () { jpeg_start_decompress (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_jpeg_jpeg_start_decompress=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_jpeg_jpeg_start_decompress=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then JPEGLIB_LIBS="$JPEGLIB_LIBS -ljpeg" else md_path_have_jpeglib=no fi LDFLAGS="$save_LDFLAGS" else md_path_have_jpeglib=no fi CPPFLAGS="$save_CPPFLAGS" fi if test $md_path_have_jpeglib = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_JPEGLIB 1 _ACEOF fi if test $md_path_have_jpeglib = no; then { { echo "$as_me:$LINENO: error: jpeglib is required to build this package" >&5 echo "$as_me: error: jpeglib is required to build this package" >&2;} { (exit 1); exit 1; }; } fi # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" md_nls="$enableval" else md_nls=yes fi; XGETTEXT=${XGETTEXT-"${am_missing_run}xgettext"} MSGMERGE=${MSGMERGE-"${am_missing_run}msgmerge"} MSGFMT=${MSGFMT-"${am_missing_run}msgfmt"} if test "x$md_nls" != xyes && test "x$md_nls" != xno; then { echo "$as_me:$LINENO: WARNING: unrecognized value for --enable-nls; disabling Native Language Support" >&5 echo "$as_me: WARNING: unrecognized value for --enable-nls; disabling Native Language Support" >&2;} md_nls=no fi SUBDIR_PO= if test "x$md_nls" = xyes; then for ac_header in libintl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF echo "$as_me:$LINENO: checking whether gettext is declared" >&5 echo $ECHO_N "checking whether gettext is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_gettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include int main () { #ifndef gettext char *p = (char *) gettext; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_gettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_gettext=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_gettext" >&5 echo "${ECHO_T}$ac_cv_have_decl_gettext" >&6 if test $ac_cv_have_decl_gettext = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETTEXT 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETTEXT 0 _ACEOF md_nls=no fi echo "$as_me:$LINENO: checking whether ngettext is declared" >&5 echo $ECHO_N "checking whether ngettext is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include int main () { #ifndef ngettext char *p = (char *) ngettext; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_ngettext=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_ngettext" >&5 echo "${ECHO_T}$ac_cv_have_decl_ngettext" >&6 if test $ac_cv_have_decl_ngettext = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_NGETTEXT 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_NGETTEXT 0 _ACEOF md_nls=no fi echo "$as_me:$LINENO: checking whether bindtextdomain is declared" >&5 echo $ECHO_N "checking whether bindtextdomain is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include int main () { #ifndef bindtextdomain char *p = (char *) bindtextdomain; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_bindtextdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_bindtextdomain=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_have_decl_bindtextdomain" >&6 if test $ac_cv_have_decl_bindtextdomain = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_BINDTEXTDOMAIN 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_BINDTEXTDOMAIN 0 _ACEOF md_nls=no fi echo "$as_me:$LINENO: checking whether textdomain is declared" >&5 echo $ECHO_N "checking whether textdomain is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_textdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include int main () { #ifndef textdomain char *p = (char *) textdomain; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_textdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_textdomain=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_textdomain" >&5 echo "${ECHO_T}$ac_cv_have_decl_textdomain" >&6 if test $ac_cv_have_decl_textdomain = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_TEXTDOMAIN 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_TEXTDOMAIN 0 _ACEOF md_nls=no fi else md_nls=no fi done if test "x$md_nls" = xyes; then for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF echo "$as_me:$LINENO: checking whether setlocale is declared" >&5 echo $ECHO_N "checking whether setlocale is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_setlocale+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include int main () { #ifndef setlocale char *p = (char *) setlocale; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_setlocale=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_setlocale=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_setlocale" >&5 echo "${ECHO_T}$ac_cv_have_decl_setlocale" >&6 if test $ac_cv_have_decl_setlocale = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SETLOCALE 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_SETLOCALE 0 _ACEOF md_nls=no fi echo "$as_me:$LINENO: checking whether LC_MESSAGES is declared" >&5 echo $ECHO_N "checking whether LC_MESSAGES is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include int main () { #ifndef LC_MESSAGES char *p = (char *) LC_MESSAGES; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_LC_MESSAGES=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_have_decl_LC_MESSAGES" >&5 echo "${ECHO_T}$ac_cv_have_decl_LC_MESSAGES" >&6 if test $ac_cv_have_decl_LC_MESSAGES = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_DECL_LC_MESSAGES 1 _ACEOF else cat >>confdefs.h <<_ACEOF #define HAVE_DECL_LC_MESSAGES 0 _ACEOF md_nls=no fi else md_nls=no fi done if test "x$md_nls" = xyes; then echo "$as_me:$LINENO: checking for library containing ngettext" >&5 echo $ECHO_N "checking for library containing ngettext... $ECHO_C" >&6 if test "${ac_cv_search_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS ac_cv_search_ngettext=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char ngettext (); int main () { ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_ngettext="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$ac_cv_search_ngettext" = no; then for ac_lib in intl; do LIBS="-l$ac_lib $ac_func_search_save_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char ngettext (); int main () { ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_search_ngettext="-l$ac_lib" break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext done fi LIBS=$ac_func_search_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_search_ngettext" >&5 echo "${ECHO_T}$ac_cv_search_ngettext" >&6 if test "$ac_cv_search_ngettext" != no; then test "$ac_cv_search_ngettext" = "none required" || LIBS="$ac_cv_search_ngettext $LIBS" else md_nls=no fi fi fi if test "x$md_nls" = xyes; then cat >>confdefs.h <<\_ACEOF #define HAVE_NLS 1 _ACEOF SUBDIR_PO=po else { echo "$as_me:$LINENO: WARNING: disabling Native Language Support" >&5 echo "$as_me: WARNING: disabling Native Language Support" >&2;} fi fi CPPFLAGS="$JPEGLIB_CPPFLAGS $CPPFLAGS" LIBS="$JPEGLIB_LIBS $LIBS" ac_config_files="$ac_config_files Makefile man/Makefile man/de/Makefile man/fi/Makefile man/fr/Makefile po/Makefile jpegwrapper.h man/jpegpixi.1 man/jpeghotp.1 man/de/jpegpixi.1 man/de/jpeghotp.1 man/fi/jpegpixi.1 man/fi/jpeghotp.1 man/fr/jpegpixi.1 man/fr/jpeghotp.1" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | sed ' t clear : clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ : end' >>confcache if diff $cache_file confcache >/dev/null 2>&1; then :; else if test -w $cache_file; then test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" cat confcache >$cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; }' fi DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # 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 sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # 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'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by jpegpixi $as_me 1.1.1, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 _ACEOF # Files that config.status was made for. if test -n "$ac_config_files"; then echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS fi if test -n "$ac_config_headers"; then echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS fi if test -n "$ac_config_links"; then echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS fi if test -n "$ac_config_commands"; then echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS fi cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ jpegpixi config.status 1.1.1 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir INSTALL="$INSTALL" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS section. # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;; "man/fi/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fi/Makefile" ;; "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;; "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; "jpegwrapper.h" ) CONFIG_FILES="$CONFIG_FILES jpegwrapper.h" ;; "man/jpegpixi.1" ) CONFIG_FILES="$CONFIG_FILES man/jpegpixi.1" ;; "man/jpeghotp.1" ) CONFIG_FILES="$CONFIG_FILES man/jpeghotp.1" ;; "man/de/jpegpixi.1" ) CONFIG_FILES="$CONFIG_FILES man/de/jpegpixi.1" ;; "man/de/jpeghotp.1" ) CONFIG_FILES="$CONFIG_FILES man/de/jpeghotp.1" ;; "man/fi/jpegpixi.1" ) CONFIG_FILES="$CONFIG_FILES man/fi/jpegpixi.1" ;; "man/fi/jpeghotp.1" ) CONFIG_FILES="$CONFIG_FILES man/fi/jpeghotp.1" ;; "man/fr/jpegpixi.1" ) CONFIG_FILES="$CONFIG_FILES man/fr/jpegpixi.1" ;; "man/fr/jpeghotp.1" ) CONFIG_FILES="$CONFIG_FILES man/fr/jpeghotp.1" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "\$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF s,@SHELL@,$SHELL,;t t s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@exec_prefix@,$exec_prefix,;t t s,@prefix@,$prefix,;t t s,@program_transform_name@,$program_transform_name,;t t s,@bindir@,$bindir,;t t s,@sbindir@,$sbindir,;t t s,@libexecdir@,$libexecdir,;t t s,@datadir@,$datadir,;t t s,@sysconfdir@,$sysconfdir,;t t s,@sharedstatedir@,$sharedstatedir,;t t s,@localstatedir@,$localstatedir,;t t s,@libdir@,$libdir,;t t s,@includedir@,$includedir,;t t s,@oldincludedir@,$oldincludedir,;t t s,@infodir@,$infodir,;t t s,@mandir@,$mandir,;t t s,@build_alias@,$build_alias,;t t s,@host_alias@,$host_alias,;t t s,@target_alias@,$target_alias,;t t s,@DEFS@,$DEFS,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t s,@INSTALL_DATA@,$INSTALL_DATA,;t t s,@CYGPATH_W@,$CYGPATH_W,;t t s,@PACKAGE@,$PACKAGE,;t t s,@VERSION@,$VERSION,;t t s,@ACLOCAL@,$ACLOCAL,;t t s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t s,@AMTAR@,$AMTAR,;t t s,@am__tar@,$am__tar,;t t s,@am__untar@,$am__untar,;t t s,@OPAG@,$OPAG,;t t s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t s,@DEPDIR@,$DEPDIR,;t t s,@am__include@,$am__include,;t t s,@am__quote@,$am__quote,;t t s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t s,@MD_NO_CONST@,$MD_NO_CONST,;t t s,@CPP@,$CPP,;t t s,@EGREP@,$EGREP,;t t s,@MATHLIB@,$MATHLIB,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@XGETTEXT@,$XGETTEXT,;t t s,@MSGMERGE@,$MSGMERGE,;t t s,@MSGFMT@,$MSGFMT,;t t s,@SUBDIR_PO@,$SUBDIR_PO,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t CEOF _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s,@configure_input@,$configure_input,;t t s,@srcdir@,$ac_srcdir,;t t s,@abs_srcdir@,$ac_abs_srcdir,;t t s,@top_srcdir@,$ac_top_srcdir,;t t s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t s,@builddir@,$ac_builddir,;t t s,@abs_builddir@,$ac_abs_builddir,;t t s,@top_builddir@,$ac_top_builddir,;t t s,@abs_top_builddir@,$ac_abs_top_builddir,;t t s,@INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } # Do quote $f, to prevent DOS paths from being IFS'd. echo "$f";; *) # Relative if test -f "$f"; then # Build tree echo "$f" elif test -f "$srcdir/$f"; then # Source tree echo "$srcdir/$f" else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF # Transform confdefs.h into two sed scripts, `conftest.defines' and # `conftest.undefs', that substitutes the proper values into # config.h.in to produce config.h. The first handles `#define' # templates, and the second `#undef' templates. # And first: Protect against being on the right side of a sed subst in # config.status. Protect against being in an unquoted here document # in config.status. rm -f conftest.defines conftest.undefs # Using a here document instead of a string reduces the quoting nightmare. # Putting comments in sed scripts is not portable. # # `end' is used to avoid that the second main sed command (meant for # 0-ary CPP macros) applies to n-ary macro definitions. # See the Autoconf documentation for `clear'. cat >confdef2sed.sed <<\_ACEOF s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times # the same #defines, which is useless. Nevertheless, we may not want to # sort them, since we want the *last* AC-DEFINE to be honored. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs rm -f confdef2sed.sed # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.defines >/dev/null do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/defines.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines echo ' fi # grep' >>$CONFIG_STATUS echo >>$CONFIG_STATUS # Break up conftest.undefs because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #undef templates' >>$CONFIG_STATUS rm -f conftest.tail while grep . conftest.undefs >/dev/null do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS echo 'CEOF sed -f $tmp/undefs.sed $tmp/in >$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in ' >>$CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail rm -f conftest.undefs mv conftest.tail conftest.undefs done rm -f conftest.undefs cat >>$CONFIG_STATUS <<\_ACEOF # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Do not use `cd foo && pwd` to compute absolute paths, because # the directories may not exist. case `pwd` in .) ac_abs_builddir="$ac_dir";; *) case "$ac_dir" in .) ac_abs_builddir=`pwd`;; [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi jpegpixi-1.1.1/interpolate.c0000644000000000000000000002632010340156330012710 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002, 2003, 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #if HAVE_MATH_H # include #else double fabs (); #endif #if HAVE_FLOAT_H # include #endif #ifndef DBL_MIN # define DBL_MIN 1e-37 #endif #ifndef DBL_MAX # define DBL_MAX 1e37 #endif #include "rbtree.h" #include "jpegpixi.h" #include "optpixi.h" /* Check if downsampled coordinates are valid. */ #define XY_VALID(xx,yy) \ ((xx) >= 0 && (xx) < (int)comp->downsampled_width && (yy) >= 0 && (yy) < (int)comp->downsampled_height) /* Tree of weight data blocks. */ struct rbtree weight_s_tree; static void set_weighted_pixels (struct jfif *jfif, const jpeg_component_info *comp, int icomp, int x_pos, int y_pos, int x_size, int y_size, enum dimdir_t d, int poly_order); static int weight_s_cmp (const void *a, const void *b) gcc_attr_pure gcc_attr_nonnull (()); /* Initialize interpolator. */ void init_interpolator (void) { rbtree_create (&weight_s_tree); } /* Interpolate a pixel block. */ void interpolate (const struct jpeg_decompress_struct *const jpg, struct jfif *const jfif, const struct point_dimdir_s *const point, const enum method_t method) { int icomp; /* Iterate over components. */ for (icomp = 0; icomp < jpg->num_components; ++icomp) { const jpeg_component_info *const comp = &(jpg->comp_info [icomp]); /* Downsampled position of the pixel block. */ const int x_pos = point->p.x * comp->h_samp_factor / jpg->max_h_samp_factor; const int y_pos = point->p.y * comp->v_samp_factor / jpg->max_v_samp_factor; /* Downsampled size of the pixel block. */ const int x_size = ((point->p.x_size + jpg->max_h_samp_factor / comp->h_samp_factor - 1) / (jpg->max_h_samp_factor / comp->h_samp_factor)); const int y_size = ((point->p.y_size + jpg->max_v_samp_factor / comp->v_samp_factor - 1) / (jpg->max_v_samp_factor / comp->v_samp_factor)); /* Show pixel block. */ if (opt_verbose && icomp == 0) fprintf (stderr, _("%s: interpolating %u,%u,%u,%u (%s)\n"), invocation_name, point->p.x, point->p.y, point->p.x_size, point->p.y_size, point->d == vertical ? _("vertical") : point->d == horizontal ? _("horizontal") : _("2-dim")); /* Interpolate pixel. */ switch (method) { case average: /* Average of adjacent pixels. */ switch (point->d) { case vertical: { int x; for (x = 0; x < x_size; ++x) { int sum_weight = 0; double v = 0.0; if (XY_VALID (x_pos + x, y_pos - 1)) { v += get_pixel (jfif, icomp, x_pos + x, y_pos - 1); ++sum_weight; } if (XY_VALID (x_pos + x, y_pos + y_size)) { v += get_pixel (jfif, icomp, x_pos + x, y_pos + y_size); ++sum_weight; } if (sum_weight > 0) { int y; v /= (double)sum_weight; for (y = 0; y < y_size; ++y) if (XY_VALID (x_pos + x, y_pos + y)) set_pixel (jfif, icomp, x_pos + x, y_pos + y, v); } } } break; case horizontal: { int y; for (y = 0; y < y_size; ++y) { int sum_weight = 0; double v = 0.0; if (XY_VALID (x_pos - 1, y_pos + y)) { v += get_pixel (jfif, icomp, x_pos - 1, y_pos + y); ++sum_weight; } if (XY_VALID (x_pos + x_size, y_pos + y)) { v += get_pixel (jfif, icomp, x_pos + x_size, y_pos + y); ++sum_weight; } if (sum_weight > 0) { int x; v /= (double)sum_weight; for (x = 0; x < x_size; ++x) if (XY_VALID (x_pos + x, y_pos + y)) set_pixel (jfif, icomp, x_pos + x, y_pos + y, v); } } } break; case twodim: { int sum_weight = 0; double v = 0.0; int x, y; for (x = 0; x < x_size; ++x) { if (XY_VALID (x_pos + x, y_pos - 1)) { v += get_pixel (jfif, icomp, x_pos + x, y_pos - 1); ++sum_weight; } if (XY_VALID (x_pos + x, y_pos + y_size)) { v += get_pixel (jfif, icomp, x_pos + x, y_pos + y_size); ++sum_weight; } } for (y = 0; y < y_size; ++y) { if (XY_VALID (x_pos - 1, y_pos + y)) { v += get_pixel (jfif, icomp, x_pos - 1, y_pos + y); ++sum_weight; } if (XY_VALID (x_pos + x_size, y_pos + y)) { v += get_pixel (jfif, icomp, x_pos + x_size, y_pos + y); ++sum_weight; } } if (sum_weight > 0) { v /= (double)sum_weight; for (x = 0; x < x_size; ++x) for (y = 0; y < y_size; ++y) if (XY_VALID (x_pos + x, y_pos + y)) set_pixel (jfif, icomp, x_pos + x, y_pos + y, v); } } } break; case linear: /* (Bi)linear interpolation. */ set_weighted_pixels (jfif, comp, icomp, x_pos, y_pos, x_size, y_size, point->d, 1); break; case quadratic: /* (Bi)quadratic interpolation. */ set_weighted_pixels (jfif, comp, icomp, x_pos, y_pos, x_size, y_size, point->d, 2); break; case cubic: /* (Bi)cubic interpolation. */ set_weighted_pixels (jfif, comp, icomp, x_pos, y_pos, x_size, y_size, point->d, 3); } } } static void set_weighted_pixels (struct jfif *const jfif, const jpeg_component_info *const comp, const int icomp, const int x_pos, const int y_pos, const int x_size, const int y_size, const enum dimdir_t d, const int poly_order) { const struct weight_s *w; int x, y; /* Obtain weight data block. */ { struct weight_s tmp; /* In the one-dimensional case, `x_size' must be 1, and the size must be stored in `y_size'. */ tmp.x_size = (d == twodim ? x_size : 1); tmp.y_size = (d == horizontal ? x_size : y_size); tmp.poly_order = poly_order; tmp.is_twodim = d == twodim; w = rbtree_find (&weight_s_tree, &tmp, weight_s_cmp); if (w == 0) { struct weight_s *const new_w = get_weights (tmp.x_size, tmp.y_size, tmp.is_twodim, poly_order); if ((w = rbtree_insert (&weight_s_tree, new_w, sizeof *new_w, weight_s_cmp, 0)) == 0) mem_alloc_failed (); free (new_w); } } /* Calculate weighted pixel sum. */ for (y = 0; y < y_size; ++y) for (x = 0; x < x_size; ++x) if (XY_VALID (x_pos + x, y_pos + y)) { const double *const weights = w->weights [d == vertical ? y : d == horizontal ? x : x + x_size * y]; double sum_weight = 0.0, v = 0.0; size_t i; for (i = 0; i < w->num_pos; ++i) { /* In the one-dimensional case, only the y coordinate is used. */ const int xx = x_pos + (d == vertical ? x : d == horizontal ? w->pos [i].y : w->pos [i].x); const int yy = y_pos + (d == horizontal ? y : w->pos [i].y); if (XY_VALID (xx, yy)) { const double weight = weights [i]; v += weight * get_pixel (jfif, icomp, xx, yy); sum_weight += weight; } } if (fabs (v) <= DBL_MIN) set_pixel (jfif, icomp, x_pos + x, y_pos + y, 0.0); else if (sum_weight >= DBL_MIN) set_pixel (jfif, icomp, x_pos + x, y_pos + y, v / sum_weight); else if (v >= 0.0) set_pixel (jfif, icomp, x_pos + x, y_pos + y, DBL_MAX); else set_pixel (jfif, icomp, x_pos + x, y_pos + y, -DBL_MAX); } } /* Compare two weight data blocks. */ static int weight_s_cmp (const void *const a, const void *const b) { const struct weight_s *const weight_s_a = a; const struct weight_s *const weight_s_b = b; if (weight_s_a->is_twodim < weight_s_b->is_twodim) return -1; else if (weight_s_a->is_twodim > weight_s_b->is_twodim) return 1; else if (weight_s_a->poly_order < weight_s_b->poly_order) return -1; else if (weight_s_a->poly_order > weight_s_b->poly_order) return 1; else if (weight_s_a->x_size < weight_s_b->x_size) return -1; else if (weight_s_a->x_size > weight_s_b->x_size) return 1; else if (weight_s_a->y_size < weight_s_b->y_size) return -1; else if (weight_s_a->y_size > weight_s_b->y_size) return 1; else return 0; } jpegpixi-1.1.1/jpegpixi.h0000644000000000000000000001160410340156306012210 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002, 2003, 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef JPEGPIXI_H #define JPEGPIXI_H 1 #include "jpegwrapper.h" /* Valid range for DCT coefficients. */ #if BITS_IN_JSAMPLE == 8 # define MIN_DCT_COEFF -1024 # define MAX_DCT_COEFF 1023 #else # define MIN_DCT_COEFF -16384 # define MAX_DCT_COEFF 16383 #endif /* Denominator for relative quantities. */ #define DENOM (DENOM_SQRT * DENOM_SQRT) /* Square root of denominator for relative quantities. */ #define DENOM_SQRT 10000 /* Convert relative to absolute numbers. Care must be taken not to overflow integers. */ #define REL_TO_ABS(n,m) \ ((((n) / DENOM_SQRT) * (m) + ((n) % DENOM_SQRT) * (m) / DENOM_SQRT) / DENOM_SQRT) /* Red-black tree. */ struct rbtree; /* Interpolation methods. */ enum method_t {average = 0, linear, quadratic, cubic}; /* Dimension and direction of the interpolation. */ enum dimdir_t {vertical = 0, horizontal, twodim}; /* Memory representation of JFIF image. */ struct jfif; /* Coordinates and size of a point. */ struct point_s { unsigned int x; unsigned int y; unsigned int x_size; unsigned int y_size; }; /* Coordinates and size of a point, and dimension and direction of the interpolation. */ struct point_dimdir_s { struct point_s p; enum dimdir_t d; }; /* Coordinates, size and luminosity of a point. */ struct point_lumi_s { struct point_s p; int lumi; }; /* Coordinate pair. In the one-dimensional case, only the y coordinate is used. */ struct xy_s { int x; int y; }; /* Data needed to interpolate by calculating a weighted sum of pixel values. */ struct weight_s { int x_size; int y_size; unsigned int is_twodim:1; int poly_order; struct xy_s *pos; size_t num_pos; const double **weights; }; /* Open files and read header of input file. */ extern void init_files (const char *infilename, const char *outfilename, unsigned int *image_width, unsigned int *image_height) gcc_attr_nonnull ((3, 4)); /* Copy a JFIF image file to another, interpolate pixels. */ extern void process_file (const struct rbtree *points, enum method_t method) gcc_attr_nonnull (()); /* Initialize interpolator. */ extern void init_interpolator (void); /* Interpolate a pixel. */ extern void interpolate (const struct jpeg_decompress_struct *jpg, struct jfif *jfif, const struct point_dimdir_s *point, enum method_t method) gcc_attr_nonnull (()); /* Initialize memory representation of JFIF image. */ extern struct jfif *jfif_init (struct jpeg_decompress_struct *jpg, jvirt_barray_ptr *coeff) gcc_attr_nonnull (()); /* Finalize memory representation of JFIF image; store modified DCT blocks. */ extern void jfif_fini (struct jfif *const jfif) gcc_attr_nonnull (()); /* Return the value of a pixel. Coordinates are downsampled. */ extern double get_pixel (struct jfif *jfif, int icomp, int x, int y) gcc_attr_nonnull (()); /* Set the value of a pixel. Coordinates are downsampled. */ extern void set_pixel (struct jfif *jfif, int icomp, int x, int y, double value) gcc_attr_nonnull (()); /* Perform forward discrete cosine transformation and quantization. */ extern void fdct (JCOEF *freqs, const double *values, const UINT16 *quant) gcc_attr_nonnull (()); /* Perform inverse discrete cosine transformation and dequantization. */ extern void idct (double *values, const JCOEF *freqs, const UINT16 *quant) gcc_attr_nonnull (()); /* Calculate weights for interpolation. */ extern struct weight_s *get_weights (int x_size, int y_size, const int is_twodim, int poly_order) gcc_attr_pure; /* Parse a number. Return 1 if it is absolute, 0 if it is relative, -1 in case of an error. */ extern int parse_number (const char **strptr, unsigned int *numptr) gcc_attr_nonnull (()); /* Consolidate adjacent points into larger points. */ extern void consolidate_pixels (struct rbtree *points, int (*validate_and_consolidate) (void *a, const void *b)) gcc_attr_nonnull (()); /* Compare two point structures. They compare equal if the points overlap. */ extern int point_s_cmp (const void *a, const void *b) gcc_attr_nonnull (()); #endif jpegpixi-1.1.1/dct.c0000644000000000000000000002345410340156271011145 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. This file is in part derived from the JPEG library of the Independent JPEG Group, see the file `README.jpeglib' for copyright and license information. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include "jpegpixi.h" /* Scaling factors. */ static const double scale [DCTSIZE] = { 1.0, 1.3870398453221474618, 1.3065629648763765279, 1.1758756024193587170, 1.0, 0.7856949583871021813, 0.5411961001461969844, 0.2758993792829430123 }; static JCOEF coeff (double x, UINT16 quantval) gcc_attr_const; /* Perform forward discrete cosine transformation and quantization. */ void fdct (JCOEF *freqs, const double *values, const UINT16 *quant) { int i; double tmp [DCTSIZE2], *ptr; ptr = tmp; for (i = 0; i < DCTSIZE; ++i) { double z2, z3, z4, z5, z11, z13; const double tmp0 = (values [0] + values [7]) / 64.0; const double tmp7 = (values [0] - values [7]) / 64.0; const double tmp1 = (values [1] + values [6]) / 64.0; const double tmp6 = (values [1] - values [6]) / 64.0; const double tmp2 = (values [2] + values [5]) / 64.0; const double tmp5 = (values [2] - values [5]) / 64.0; const double tmp3 = (values [3] + values [4]) / 64.0; const double tmp4 = (values [3] - values [4]) / 64.0; double tmp10 = tmp0 + tmp3; double tmp13 = tmp0 - tmp3; double tmp11 = tmp1 + tmp2; double tmp12 = tmp1 - tmp2; const double z1 = (tmp12 + tmp13) * 0.7071067811865475244; ptr [0] = tmp10 + tmp11; ptr [4] = tmp10 - tmp11; ptr [2] = tmp13 + z1; ptr [6] = tmp13 - z1; tmp10 = tmp4 + tmp5; tmp11 = tmp5 + tmp6; tmp12 = tmp6 + tmp7; z5 = (tmp10 - tmp12) * 0.3826834323650897717; z2 = 0.5411961001461969844 * tmp10 + z5; z4 = 1.3065629648763765279 * tmp12 + z5; z3 = 0.7071067811865475244 * tmp11; z11 = tmp7 + z3; z13 = tmp7 - z3; ptr [5] = z13 + z2; ptr [3] = z13 - z2; ptr [1] = z11 + z4; ptr [7] = z11 - z4; values += DCTSIZE; ptr += DCTSIZE; } ptr = tmp; for (i = 0; i < DCTSIZE; ++i) { double z2, z3, z4, z5, z11, z13; const double tmp0 = ptr [DCTSIZE * 0] + ptr [DCTSIZE * 7]; const double tmp7 = ptr [DCTSIZE * 0] - ptr [DCTSIZE * 7]; const double tmp1 = ptr [DCTSIZE * 1] + ptr [DCTSIZE * 6]; const double tmp6 = ptr [DCTSIZE * 1] - ptr [DCTSIZE * 6]; const double tmp2 = ptr [DCTSIZE * 2] + ptr [DCTSIZE * 5]; const double tmp5 = ptr [DCTSIZE * 2] - ptr [DCTSIZE * 5]; const double tmp3 = ptr [DCTSIZE * 3] + ptr [DCTSIZE * 4]; const double tmp4 = ptr [DCTSIZE * 3] - ptr [DCTSIZE * 4]; double tmp10 = tmp0 + tmp3; double tmp13 = tmp0 - tmp3; double tmp11 = tmp1 + tmp2; double tmp12 = tmp1 - tmp2; const double z1 = (tmp12 + tmp13) * 0.7071067811865475244; freqs [DCTSIZE * 0] = coeff ((tmp10 + tmp11) / (scale [i]), quant [DCTSIZE * 0]); freqs [DCTSIZE * 4] = coeff ((tmp10 - tmp11) / (scale [i]), quant [DCTSIZE * 4]); freqs [DCTSIZE * 2] = coeff ((tmp13 + z1) / (scale [i] * scale [2]), quant [DCTSIZE * 2]); freqs [DCTSIZE * 6] = coeff ((tmp13 - z1) / (scale [i] * scale [6]), quant [DCTSIZE * 6]); tmp10 = tmp4 + tmp5; tmp11 = tmp5 + tmp6; tmp12 = tmp6 + tmp7; z5 = (tmp10 - tmp12) * 0.3826834323650897717; z2 = 0.5411961001461969844 * tmp10 + z5; z4 = 1.3065629648763765279 * tmp12 + z5; z3 = 0.7071067811865475244 * tmp11; z11 = tmp7 + z3; z13 = tmp7 - z3; freqs [DCTSIZE * 5] = coeff ((z13 + z2) / (scale [i] * scale [5]), quant [DCTSIZE * 5]); freqs [DCTSIZE * 3] = coeff ((z13 - z2) / (scale [i] * scale [3]), quant [DCTSIZE * 3]); freqs [DCTSIZE * 1] = coeff ((z11 + z4) / (scale [i] * scale [1]), quant [DCTSIZE * 1]); freqs [DCTSIZE * 7] = coeff ((z11 - z4) / (scale [i] * scale [7]), quant [DCTSIZE * 7]); ++ptr; ++freqs; ++quant; } } /* Perform inverse discrete cosine transformation and dequantization. */ void idct (double *values, const JCOEF *freqs, const UINT16 *quant) { int i; double tmp [DCTSIZE2], *ptr; ptr = tmp; for (i = 0; i < DCTSIZE; ++i) { if (freqs [DCTSIZE * 1] == 0 && freqs [DCTSIZE * 2] && freqs [DCTSIZE * 3] && freqs [DCTSIZE * 4] && freqs [DCTSIZE * 5] && freqs [DCTSIZE * 6] && freqs [DCTSIZE * 6]) { const double dc_value = (double)freqs [DCTSIZE * 0] * (double)quant [DCTSIZE * 0] * scale [i]; ptr [DCTSIZE * 0] = dc_value; ptr [DCTSIZE * 1] = dc_value; ptr [DCTSIZE * 2] = dc_value; ptr [DCTSIZE * 3] = dc_value; ptr [DCTSIZE * 4] = dc_value; ptr [DCTSIZE * 5] = dc_value; ptr [DCTSIZE * 6] = dc_value; ptr [DCTSIZE * 7] = dc_value; } else { double tmp0 = (double)freqs [DCTSIZE * 0] * (double)quant [DCTSIZE * 0] * scale [i]; double tmp4 = (double)freqs [DCTSIZE * 1] * (double)quant [DCTSIZE * 1] * scale [i] * scale [1]; double tmp1 = (double)freqs [DCTSIZE * 2] * (double)quant [DCTSIZE * 2] * scale [i] * scale [2]; double tmp5 = (double)freqs [DCTSIZE * 3] * (double)quant [DCTSIZE * 3] * scale [i] * scale [3]; double tmp2 = (double)freqs [DCTSIZE * 4] * (double)quant [DCTSIZE * 4] * scale [i]; double tmp6 = (double)freqs [DCTSIZE * 5] * (double)quant [DCTSIZE * 5] * scale [i] * scale [5]; double tmp3 = (double)freqs [DCTSIZE * 6] * (double)quant [DCTSIZE * 6] * scale [i] * scale [6]; double tmp7 = (double)freqs [DCTSIZE * 7] * (double)quant [DCTSIZE * 7] * scale [i] * scale [7]; double tmp10 = tmp0 + tmp2; double tmp11 = tmp0 - tmp2; double tmp13 = tmp1 + tmp3; double tmp12 = (tmp1 - tmp3) * 1.4142135623730950488 - tmp13; const double z13 = tmp6 + tmp5; const double z10 = tmp6 - tmp5; const double z11 = tmp4 + tmp7; const double z12 = tmp4 - tmp7; const double z5 = (z10 + z12) * 1.8477590650225735123; tmp0 = tmp10 + tmp13; tmp3 = tmp10 - tmp13; tmp1 = tmp11 + tmp12; tmp2 = tmp11 - tmp12; tmp7 = z11 + z13; tmp11 = (z11 - z13) * 1.4142135623730950488; tmp10 = 1.0823922002923939688 * z12 - z5; tmp12 = -2.6131259297527530557 * z10 + z5; tmp6 = tmp12 - tmp7; tmp5 = tmp11 - tmp6; tmp4 = tmp10 + tmp5; ptr [DCTSIZE * 0] = tmp0 + tmp7; ptr [DCTSIZE * 1] = tmp1 + tmp6; ptr [DCTSIZE * 2] = tmp2 + tmp5; ptr [DCTSIZE * 3] = tmp3 - tmp4; ptr [DCTSIZE * 4] = tmp3 + tmp4; ptr [DCTSIZE * 5] = tmp2 - tmp5; ptr [DCTSIZE * 6] = tmp1 - tmp6; ptr [DCTSIZE * 7] = tmp0 - tmp7; } ++freqs; ++ptr; ++quant; } ptr = tmp; for (i = 0; i < DCTSIZE; ++i) { double tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; double tmp10 = ptr [0] + ptr [4]; double tmp11 = ptr [0] - ptr [4]; double tmp13 = ptr [2] + ptr [6]; double tmp12 = (ptr [2] - ptr [6]) * 1.4142135623730950488 - tmp13; const double z13 = ptr [5] + ptr [3]; const double z10 = ptr [5] - ptr [3]; const double z11 = ptr [1] + ptr [7]; const double z12 = ptr [1] - ptr [7]; const double z5 = (z10 + z12) * 1.8477590650225735123; tmp0 = tmp10 + tmp13; tmp3 = tmp10 - tmp13; tmp1 = tmp11 + tmp12; tmp2 = tmp11 - tmp12; tmp7 = z11 + z13; tmp11 = (z11 - z13) * 1.4142135623730950488; tmp10 = 1.0823922002923939688 * z12 - z5; tmp12 = -2.6131259297527530557 * z10 + z5; tmp6 = tmp12 - tmp7; tmp5 = tmp11 - tmp6; tmp4 = tmp10 + tmp5; values [0] = (tmp0 + tmp7); values [1] = (tmp1 + tmp6); values [2] = (tmp2 + tmp5); values [3] = (tmp3 - tmp4); values [4] = (tmp3 + tmp4); values [5] = (tmp2 - tmp5); values [6] = (tmp1 - tmp6); values [7] = (tmp0 - tmp7); ptr += DCTSIZE; values += DCTSIZE; } } /* Convert floating-point value to JCOEF. */ static JCOEF coeff (const double x, const UINT16 quantval) { int result; /* Round up if the fractional part of the quantized values is equal to or greater than 0.72 (1 - 0.28). This empirically determined threshold gives the best results. */ if (x >= 0.0) result = (int)(x / (double)quantval + 0.28); else result = -(int)(-x / (double)quantval + 0.28); if (result < MIN_DCT_COEFF) return (JCOEF)MIN_DCT_COEFF; else if (result > MAX_DCT_COEFF) return (JCOEF)MAX_DCT_COEFF; else return (JCOEF)result; } jpegpixi-1.1.1/optpixi.h0000644000000000000000000000232710340157454012074 00000000000000/* This file has been generated with opag 0.8.0. */ #ifndef HDR_OPTPIXI #define HDR_OPTPIXI 1 /* Set to 1 if option --blocks-file (-f) has been specified. */ extern char opt_blocks_file; /* Set to 1 if option --method (-m) has been specified. */ extern char opt_method; /* Set to 1 if option --verbose (-v) has been specified. */ extern char opt_verbose; /* Set to 1 if option --info (-i) has been specified. */ extern char opt_info; /* Set to 1 if option --strip (-s) has been specified. */ extern char opt_strip; /* Set to 1 if option --help has been specified. */ extern char opt_help; /* Set to 1 if option --version has been specified. */ extern char opt_version; /* Argument to option --blocks-file (-f). */ extern const char *arg_blocks_file; /* Argument to option --method (-m). */ extern const char *arg_method; /* Parse command line options. Return index of first non-option argument, or -1 if an error is encountered. */ #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) extern int parse_options (const char *program_name, int argc, char **argv) __attribute__ ((nonnull)); #else extern int parse_options (const char *program_name, int argc, char **argv); #endif #endif jpegpixi-1.1.1/ChangeLog0000644000000000000000000004267310340157161012004 000000000000002005-11-20 Martin Dickopp * Updated postal address of the Free Software Foundation. * jpeghotp.c (main): Make `threshold' unsigned. * man/jpegpixi.1.in: Fixed typo. * Version 1.1.1. 2005-06-01 Martin Dickopp * Version 1.1.0. 2005-04-18 Martin Dickopp * Changed all occurrences of my e-mail address to `martin@zero-based.org'. * jpeghotp.opag, jpeghotp.c: New option `--invert' to invert the image. 2005-01-18 Martin Dickopp * po/de.po: Convert quotation marks to those usually used in printed text. 2005-01-14 Martin Dickopp * jpegpixi.c (main), jpeghotp.c (main): Verify that `setlocale', `bindtextdomain', and `textdomain' don't fail. * jpegpixi.opag, jpeghotp.opag, configure.ac: Update copyright statements to include the year 2005. 2004-11-01 Martin Dickopp * Makefile.am, jpegpixi.c, jpeghotp.c: Remove `dirs.h'. Define `LOCALEDIR' macro in CPPFLAGS. 2004-10-16 Martin Dickopp * Makefile.am: Only #define `LOCALEDIR' in `dirs.h' if it is not yet defined. That way, the user can override it by defining it on the command line. * jpegpixi.c, jpeghotp.c, file.c: Translate strings even if they contain no text. This accounts for different spacing rules in different languages. 2004-10-15 Martin Dickopp * man/fr/jpegpixi.1.in, man/fr/jpeghotp.1.in, po/fr.po: French translations contributed by Stephan Peccini . * Version 1.0.3. 2004-10-08 Martin Dickopp * configure.ac, man/jpegpixi.1.in, man/jpeghotp.1.in, man/de/jpegpixi.1.in, man/de/jpeghotp.1.in, man/fi/jpegpixi.1.in, man/fi/jpeghotp.1.in: Remove `PACKAGE_BUGREPORT_ROFF', hard-code bug reporting address. * jpegpixi.opag (display_help_text), jpeghotp.opag (display_help_text): Hard-code bug reporting address. * jpegpixi.opag (display_help_text, display_version_text), jpeghotp.opag (display_help_text, display_version_text): Split messages into smaller parts to make translations easier. * Version 1.0.2. 2004-10-05 Martin Dickopp * Makefile.am: Don't prefix dependencies with `$(srcdir)/'. * po/de.po: Corrected spelling mistakes. * po/Makefile.am: Don't create localedir explicitly. More robust regex to strip file extension. * po/Makefile.am, jpegpixi.c (main), jepghotp.c (main): Use `PACKAGE_TARNAME' as the base name of the message catalog. * po/Makefile.am, jpegpixi.opag, jpeghotp.opag: Add various hints for translators. 2004-10-04 Martin Dickopp * man/fi/jpegpixi.1.in, man/fi/jpeghotp.1.in, po/fi.po: Finnish translations contributed by Jarno Elonen . * po/Makefile.am: Bug fix, `make uninstall' now works (i.e. removes the message catalogs). * Version 1.0.1. 2004-10-03 Martin Dickopp * strerror.c: Remove NLS support from this file. * acinclude.m4: Macro `MD_PROG_LD_SECTIONS' removed (no longer needed). * configure.ac: Remove `MD_PROG_LD_SECTIONS'. * util.h: Remove macro `gcc_attr_section'. 2004-10-02 Martin Dickopp * file.c, interpolate.c, jpeghotp.c, jpegpixi.c, strerror.c: Mark strings for translation. * jpeghotp.c, jpegpixi.c: Set up locale support. * jpeghotp.opag, jpegpixi.opag: Strings `usage_text' and `version_text' replaced by functions `display_help_text' and `display_version_text', respectively. * util.h: Define NLS macros `_' and `N_'. * acinclude.m4: New macro `MD_NLS'. * po: New directory; contains NLS files. * Makefile.am: New conditional subdir `po'. New rule to build `dirs.h'. Modified `opag' invocation to support NLS. New rule to build `po/POTSOURCES'. * configure.ac: Invoke `MD_NLS'. Create `po/Makefile'. * Version 1.0.0. 2004-09-26 Martin Dickopp * configure.ac, man/jpegpixi.1.in, man/jpeghotp.1.in, man/de/jpegpixi.1.in, man/de/jpeghotp.1.in: New variable `PACKAGE_BUGREPORT_ROFF' which quotes the `-' character in the bug reporting e-mail address. 2004-08-23 Martin Dickopp * jpegpixi.1.in, jpeghotp.1.in: Move to new subdirectory `man'. * Provide German translations of the manual pages in `man/de'. * Version 0.16.0. 2004-08-20 Martin Dickopp * jpegpixi.1.in, jpeghotp.1.in: Use correct `-' character in URLs. 2004-05-06 Martin Dickopp * acinclude.m4: New macro `MD_PROG_LD_SECTIONS'. * util.h: New macro `gcc_attr_section'. * jpegpixi.opag, jpegpixi.c, jpeghotp.opag, jpeghotp.c: Put license text in a section `.license' in the executables, if possible. * Version 0.15.1. 2004-05-04 Martin Dickopp * interpolate.c: Declare `fabs' if is not found. 2004-04-22 Martin Dickopp * configure.ac, Makefile.am: Link `jpegpixi' with `-lm' if necessary. 2004-04-18 Martin Dickopp * jpegpixi.h, jpegpixi.c, file.c, interpolate.c: Renamed `struct point_s' to `struct point_dimdir_s'. * jpeghotp.c: Renamed `struct point_s' to `struct point_lumi_s'; moved declaration to `jpegpixi.h'. * jpegpixi.h: New `struct point_s', contained in `struct point_dimdir_s' and `struct point_lumi_s'. * parsenum.h: File removed, content moved to `jpegpixi.h'. * parsenum.c (parse_number): Parse `unsigned int' instead of `int'. * rbtree.h: Replace `rbtree_create' and `rbtree_destroy' inline functions by macros. * rbtree.c (rbtree_insert): Check if a node already exists. Callers changed. * consolidate.c: New file. * jpeghotp.c (consolidate_pixels): Moved to `consolidate.c'. * jpegpixi.c (main): Store points in a tree instead of an array. * file.c (init_files): New function, split off from `process_file'. * file.c (process_file): Process points in a tree instead of an array. * interpolate.c (interpolate): Adapt to new layout of `struct point_dimdir_s'. * interpolcate.c (set_weighted_pixels): Bug fix: Take possibility of negative weight sum into account. * jpegpixi.opag, interpolate.c (interpolate): New command line option `--verbose'. * jpegpixi.c (parse_struct_point_dimdir_s): Convert relative to absolute coordinates and sizes. * file.c (process_file): Don't convert relative to absolute coordinates and sizes. * Version 0.15.0. 2004-03-05 Martin Dickopp * jpeghotp.opag: New command line option `--comments'. * jpeghot.c (main, consolidate_pixels): Implement calculation and output of luminosities. * jpeghotp.1.in: Document `--comments' command line option. * Version 0.14.2. 2004-01-26 Martin Dickopp * debian: Directory removed. Jarno Elonen will maintain the jpegpixi Debian package. * Changed all occurrences of my e-mail address to `martin-jpegpixi@zero-based.org'. 2004-01-11 Martin Dickopp * parsenum.c, parsenum.h: New files. * jpegpixi.c (parse_number): Moved to `parsenum.c'. * jpeghot.p (main): Implement `--threshold' command line argument. * Version 0.14. 2004-01-09 Martin Dickopp * jpeghotp.c: Implemented. * rbtree.c (rbtree_delete): New function. 2003-12-30 Martin Dickopp * options.c: Renamed to optpixi.c. * options.h: Renamed to optpixi.h. * jpeghotp.c, jpeghotp.opag, jpeghotp.1.in: New files. * Makefile.am: Rules du build jpeghotp. 2003-12-11 Martin Dickopp * jpegpixi.1.in: Correction of spelling mistakes; limit number of command arguments to six. 2003-11-24 Martin Dickopp * Version 0.13. 2003-11-21 Martin Dickopp * jpegpixi.c (parse_number): New function, parses absolute numbers or percentages (i.e. relative numbers). * jpegpixi.c (parse_struct_point_s): Parse numbers (coordiantes and sizes) with `parse_number'. * file.c (process_file): Convert relative numbers in `points' elements to absolute ones. * jpegpixi.opag: Document relative numbers in help text. 2003-11-16 Martin Dickopp * Version 0.12. 2003-08-23 Martin Dickopp * acinclude.m4: New macro `MD_PATH_PROG'. * configure.ac: Check for `opag' program. * Makefile.am: Rule to build options.c and options.h from jpegpixi.opag. * getopt.c, getopt.h, getopt1.c: Removed. * configure.ac, util.h: Remove check for `memcpy'. * configure.ac, util.h: Check for `strchr' declaration. * jpegpixi.c, jpegpixi.h, file.c: Adapted to opag. 2003-08-22 Martin Dickopp * jpegpixi.opag: New file, command line option definitions and help and version texts. * options.c, options.h: New built sources (from jpegpixi.opag). * jpegpixi.c: Take help and version texts from options.c. 2003-07-29 Martin Dickopp * Version 0.11. 2003-07-29 Martin Dickopp * Changed all occurrences of my e-mail address to `martin@zero-based.org'. * Changed all occurrences of home page to `http://www.zero-based.org/software/jpegpixi/'. 2003-07-06 Martin Dickopp * strerror.c: New file, contains implementation of strerror function. * util.c (my_strerror): Removed. * acinclude.m4 (MD_CHECK_HEADER_DECL): Removed. 2003-07-05 Martin Dickopp * Version 0.10. 2003-06-27 Martin Dickopp * rbtree.c (rbtree_insert): Slightly more efficient initialization of the new node. * jpegpixi.c (main): Remove deprecated method names `bilinear', `biquadratic', `bicubic'. * jpegpixi.c (main): Allow number of pixel blocks to be zero. * file.c (process_file): Likewise. * jpegpixi.c: Pixel block specifications can be read from a file. 2003-06-22 Martin Dickopp * Version 0.9. 2003-06-22 Martin Dickopp * interpolate.c, jfif.c, jpegpixi.c, jpegpixi.h, rbtree.c, rbtree.h: Don't invoke `gcc_attr_nonnull' without argument; pass empty list instead. Thanks to Dariush Pietrzak for reporting this. * jpegpixi.c (parse_struct_point_s): Parse dimension/direction specification. * jpegpixi.c (main): Handle dimension/direction specification. * jpegpixi.c (main): Deprecate the terms `bilinear', `biquadratic', `bicubic'. * interpolate.c (interpolate, set_weighted_pixels): Handle 1-dimensional interpolation. * weights.c (get_weights): Likewise. 2003-06-22 Martin Dickopp * Version 0.8. 2003-06-21 Martin Dickopp * rbtree.c, rbtree.h: Overhauled implementation. * mkdcttable.pl: Removed again, no longer needed. * dct.c (fdct, coeff): Functions added again. * dct.c (coeff): Round DCT coefficients as empirically determined best. * jfif.c: Instead of tracking differences of DCT coefficients, pixel values are manipulated directly. Finally, `fdct' is used to transform back into frequency space. * file.c (process_file): Request optimization of Huffman tables. * jfif.c (get_block): Cache pointer to previously requested DCT block. * jfif.c (set_pixel): Clamp pixel value. * jfif.c (get_pixel, set_pixel): Expect downsampled coordinates. * interpolate.c (interpolate): Implement averaging with new functions from jfif.c * jpegpixi.h, jpegpixi.c (main): Remove debugging option. * interpolate.c (interpolate): Likewise. * jpegpixi.c (parse_struct_point_s): Don't limit block size. * weights.c: New file, calclation of weights for interpolation. * mkwghtable.c, wghtable.c: Removed; precalculated weights are not used anymore. 2003-06-18 Martin Dickopp * mkdcttable.pl: Perl script to generate DCT table, replaces mkdcttable.c. * dct.c (fdct, coeff): Functions removed. * dct.c (idct): Don't scale output values. * interpolate.c (set_pixel): Renamed to `set_pixel1', so that there is no name conflict with `set_pixel' in jfif.c. * jfif.c: Modification of pixel values implemented. * rbtree.c, rbtree.h (rbtree_insert): Pointer to copied data block can be returned to caller. * rbtree.c (rbtree_next): Fixed. 2003-06-17 Martin Dickopp * configure.ac, util.h: Check for `memcpy' function, use `bcopy' if not available. * jpegwrapper.h.in: Include . * wghtable.c: Don't include . * jfif.c: New file, functions to access JFIF image in memory. * dct.c: New file, forward and inverse discrete cosine transformation. * jpegpixi.h: Prototypes for functions in jfif.c and dct.c. * rbtree.c, rbtree.h: New files, red-black tree implementation. 2003-06-02 Martin Dickopp * Version 0.7. 2003-05-10 Martin Dickopp * util.h: Define macro `gcc_attr_nonnull' to use __attribute__((nonnull)) on GCC 3.3 or newer. * interpolate.c, jpegpixi.c, jpegpixi.h: Use `gcc_attr_nonnull' macro. 2003-04-17 Martin Dickopp * interpolate.c (DXDY_VALID macro): Round correctly for pixels near the image edges. * interpolate.c (interpolate, set_weighted_pixels): Print number of sampled pixels in debugging mode. 2003-04-07 Martin Dickopp * Makefile.am, configure.ac, acinclude.m4: Change license of these files. 2003-04-02 Martin Dickopp * jpegpixi.c: Change to "getopt.h". 2003-01-11 Martin Dickopp * Version 0.6. 2003-01-10 Martin Dickopp * debian: New directory with files to build Debian package. 2002-11-20 Martin Dickopp * util.c (mem_alloc_failed): Don't hardcode length of error message. 2002-10-08 Martin Dickopp * configure.ac: Adapted to autoconf 2.54 and automake 1.7. 2002-10-06 Martin Dickopp * getopt.c, getopt1.c: Updated to glibc 2.3 versions. 2002-06-15 Martin Dickopp * Version 0.5. 2002-06-15 Martin Dickopp * configure.ac: Updated for automake 1.6.1. 2002-06-04 Martin Dickopp * Renamed mktable.c to mkdcttable.c. * Renamed mkweights.c to mkwghtable.c. * wghtable.c: New file to contain weights for interpolation. * interpolate.c: Removed weights; they are read from the tables in wghtable.c instead. * interpolate.c: Support pixel block sizes up to 5. 2002-06-04 Martin Dickopp * mkweights.c: Generate tables instead of code. 2002-05-30 Martin Dickopp * Version 0.4. 2002-05-30 Martin Dickopp * mkweights.c: Support biquadratic and bicubic interpolation. * interpolate.c: Support biquadratic and bicubic interpolation. 2002-05-29 Martin Dickopp * mkweights.c: Changed type of weights from `int' to `double'. * interpolate.c: Changed type of weights from `int' to `float'. 2002-05-28 Martin Dickopp * mkweights.c: New helper program to generate code which performs a polynomial interpolation. * interpolate.c (do_bilinear_interpolation): New function to perform a bilinear interpolation. Contains code generated with helper program `mkweights'. 2002-05-28 Martin Dickopp * Version 0.3. 2002-05-27 Martin Dickopp * util.c (mem_alloc_failed): Call `write' with third argument of correct type (`size_t' instead of `ssize_t'). * Renamed `struct xy_s' to `struct point_s'; new fields `int x_size' and `int y_size'. * jpegpixi.c (parse_struct_point_s): New function to parse command line coordinate specification. * jpegpixi.c (main): Use new function `parse_struct_point_s'. * file.c (process_file): Use size when checking validity of coordinates. * interpolate.c: Rewrite of interpolation engine. Support for averaging and bilinear interpolation. 2002-05-17 Martin Dickopp * Version 0.2. 2002-05-17 Martin Dickopp * interpolate.c: Take quantization coefficients into account. * interpolate.c (interpolate): Clamp pixel value to allowed range. 2002-05-15 Martin Dickopp * interpolate.c (interpolate): Simplify calculation of weighted average by use of a preprocessor macro. * interpolate.c (interpolate): New interpolation method: use 12 nearest pixels to calculate a quadratic surface. * interpolate.c (interpolate): Include downsampled component dimensions in debugging information. * file.c (process_file): Remove test for 1x1 images. 2002-05-14 Martin Dickopp * jpegpixi.c (main): New command line option to specify interpolation method. * interpolate.c (interpolate): Handle pixels at the edge or in the corner of the image correctly. * interpolate.c (interpolate): New interpolation method: average 8 surrounding pixels. 2002-05-10 Martin Dickopp * interpolate.c (interpolate): Display debugging information (block and pixel coordinates, DCT coefficients before and after interpolation) for each component on request. 2002-05-09 Martin Dickopp * Version 0.1. jpegpixi-1.1.1/jpeghotp.c0000644000000000000000000002125610340157053012210 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004, 2005 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #if HAVE_ERRNO_H # include #endif #ifndef errno extern int errno; #endif #if STDC_HEADERS # include #else # define isspace(c) ((c) == ' ' || (c) == '\t') #endif #if HAVE_NLS # include #endif #include "jpegpixi.h" #include "rbtree.h" #include "opthotp.h" /* Name of this program. */ #define PROGRAM_NAME "jpeghotp" /* Display text in response to the --help command line option. */ extern void display_help_text (void); /* Display text in response to the --version command line option. */ extern void display_version_text (void); /* Input file name (needed by display_error_message). */ static const char *infilename1; static void display_error_message (j_common_ptr jpg); static int point_lumi_s_validate_and_consolidate (void *a, const void *b) gcc_attr_pure gcc_attr_nonnull (()); int main (int argc, char *argv []) { int i; const char *infilename, *outfilename; struct jpeg_error_mgr errmgr; struct jpeg_decompress_struct injpg; FILE *infile, *outfile; struct rbtree points; unsigned int threshold = DENOM / 10; /* Store program invocation name. */ invocation_name = argv [0] != 0 && *(argv [0]) != '\0' ? argv [0] : PROGRAM_NAME; /* Set up Native Language Support. */ #if HAVE_NLS if (setlocale (LC_ALL, "") != 0) { if (bindtextdomain (PACKAGE_TARNAME, LOCALEDIR) == 0 || textdomain (PACKAGE_TARNAME) == 0) mem_alloc_failed (); } else { fprintf (stderr, "%s: cannot set locale\n" "Make sure the `LC_*' and `LANG' environment variables are set to valid values.\n", invocation_name); exit (1); } #endif /* Parse command line options. */ if ((i = parse_options (invocation_name, argc, argv)) == -1) goto error_try_help; if (opt_help) { display_help_text (); exit (0); } if (opt_version) { display_version_text (); exit (0); } if (opt_threshold) { const char *p = arg_threshold; while (isspace ((unsigned char)*p)) ++p; if (parse_number (&p, &threshold) != 0) { error_threshold: fprintf (stderr, _("%s: invalid threshold `%s'\n"), invocation_name, arg_threshold); goto error_try_help; } while (isspace ((unsigned char)*p)) ++p; if (*p != '\0') goto error_threshold; } /* Parse non-option command line arguments. */ if (i < argc) { infilename = argv [i++]; if (strcmp (infilename, "-") == 0) infilename = 0; } else { fprintf (stderr, _("%s: source filename missing\n"), invocation_name); error_try_help: fprintf (stderr, _("Try `%s --help' for more information.\n"), invocation_name); exit (1); } if (i < argc) { outfilename = argv [i++]; if (i < argc) { fprintf (stderr, _("%s: unexpected argument `%s'\n"), invocation_name, argv [i]); goto error_try_help; } if (strcmp (outfilename, "-") == 0) outfilename = 0; } else outfilename = 0; /* Initialize jpeglib objects. */ infilename1 = infilename; jpeg_std_error (&errmgr); errmgr.output_message = &display_error_message; jpeg_create_decompress (&injpg); injpg.err = &errmgr; /* Open input file, read header, and start decompression. */ if (infilename != 0) { if ((infile = fopen (infilename, "rb")) == 0) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, infilename, strerror (errno)); exit (1); } } else infile = stdin; jpeg_stdio_src (&injpg, infile); jpeg_read_header (&injpg, TRUE); jpeg_start_decompress (&injpg); /* Find hot pixels and store them in a tree. */ { unsigned int y; JSAMPLE *samples = xmalloc (injpg.output_width * injpg.output_components * sizeof *samples); const int threshold_value = REL_TO_ABS (threshold, MAXJSAMPLE); rbtree_create (&points); for (y = 0; injpg.output_scanline < injpg.output_height; ++y) { unsigned int x; JSAMPLE *s; jpeg_read_scanlines (&injpg, &samples, 1); for (x = 0, s = samples; x < (unsigned int)injpg.output_width; ++x) { size_t icomp; int value; /* Find maximum component value. Invert sample values if the `--invert' command line option has been specified. */ for (icomp = 0, value = 0; icomp < (size_t)injpg.output_components; ++icomp, ++s) { const int sample_value = opt_invert ? MAXJSAMPLE - GETJSAMPLE (*s) : GETJSAMPLE (*s); if (sample_value > value) value = sample_value; } if (value > threshold_value) { struct point_lumi_s point; point.p.x = x; point.p.y = y; point.p.x_size = 1; point.p.y_size = 1; point.lumi = ((2 * DENOM) / MAXJSAMPLE) * value / 2; if (rbtree_insert (&points, &point, sizeof point, point_s_cmp, 0) == 0) mem_alloc_failed (); } } } free (samples); consolidate_pixels (&points, point_lumi_s_validate_and_consolidate); } /* Finish processing, close input file, and delete jpeglib object. */ jpeg_finish_decompress (&injpg); if (infilename != 0 && fclose (infile) == EOF) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, infilename, strerror (errno)); exit (1); } jpeg_destroy_decompress (&injpg); /* Write output file. */ if (outfilename != 0) { if ((outfile = fopen (outfilename, "w")) == 0) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, outfilename, strerror (errno)); exit (1); } } else outfile = stdout; { const struct point_lumi_s *point = rbtree_first (&points); while (point != 0) { fprintf (outfile, "%u,%u,%u,%u", point->p.x, point->p.y, point->p.x_size, point->p.y_size); if (opt_comments) { const unsigned int lumi_per_10000 = (point->lumi / DENOM_SQRT) * 10000 / DENOM_SQRT; fprintf (outfile, _("\t# luminosity: %u.%02u%%"), lumi_per_10000 / 100, lumi_per_10000 % 100); } putc ('\n', outfile); if (ferror (outfile)) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, outfilename != 0 ? outfilename : _("STDOUT"), strerror (errno)); exit (1); } point = rbtree_next (point); } } if (outfilename != 0 && fclose (outfile) == EOF) { fprintf (stderr, _("%s: %s: %s\n"), invocation_name, outfilename, strerror (errno)); exit (1); } exit (0); } /* Display an error message. */ static void display_error_message (const j_common_ptr jpg) { const char *filename = infilename1 != 0 ? infilename1 : _("STDIN"); char buffer [JMSG_LENGTH_MAX]; (*jpg->err->format_message) (jpg, buffer); fprintf (stderr, _("%s: %s: %s\n"), invocation_name, filename, buffer); } /* Validate and consolidate two point structures. The validation always succeeds. */ static int point_lumi_s_validate_and_consolidate (void *const a, const void *const b) { struct point_lumi_s *const point_a = a; const struct point_lumi_s *const point_b = b; point_a->lumi = MAX (point_a->lumi, point_b->lumi); return 1; } jpegpixi-1.1.1/INSTALL0000644000000000000000000002243210265127405011256 00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Here is a another example: /bin/bash ./configure CONFIG_SHELL=/bin/bash Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent configuration-related scripts to be executed by `/bin/bash'. `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. jpegpixi-1.1.1/consolidate.c0000644000000000000000000001063310340156224012670 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include "jpegpixi.h" #include "rbtree.h" /* Consolidate adjacent points into larger points. */ void consolidate_pixels (struct rbtree *const points, int (*const validate_and_consolidate) (void *a, const void *b)) { struct point_s *previous_point = rbtree_first (points); if (previous_point != 0) { /* Consolidate horizontally. */ { struct point_s *point = rbtree_next (previous_point); while (point != 0) { if (point->y == previous_point->y && point->x == previous_point->x + previous_point->x_size) { if (validate_and_consolidate (point, previous_point)) { point->x = previous_point->x; point->x_size = previous_point->x_size + 1; } else { struct point_s *const tmp = point; point = rbtree_next (point); rbtree_delete (points, tmp); } rbtree_delete (points, previous_point); } if (point != 0) { previous_point = point; point = rbtree_next (point); } } } /* Consolidate vertically. */ { struct point_s *point = rbtree_first (points); while (point != 0) { while (1) { struct point_s tmp, *point_below; tmp.x = point->x; tmp.y = point->y + point->y_size; tmp.x_size = point->x_size; tmp.y_size = 1; if ((point_below = rbtree_find (points, &tmp, point_s_cmp)) != 0) { if (validate_and_consolidate (point, point_below)) { point->x = MIN (point->x, point_below->x); point->x_size = MAX (point->x + point->x_size, point_below->x + point_below->x_size) - point->x; point->y_size = MAX (point->y + point->y_size, point_below->y + point_below->y_size) - point->y; } else { struct point_s *const tmp1 = point; point = rbtree_next (point); rbtree_delete (points, tmp1); } rbtree_delete (points, point_below); } else break; } if (point != 0) point = rbtree_next (point); } } } } /* Compare two point structures. They compare equal if the points overlap. */ int point_s_cmp (const void *const a, const void *const b) { const struct point_s *const point_s_a = a; const struct point_s *const point_s_b = b; if (OVERLAP2D (point_s_a->x, point_s_a->y, point_s_a->x_size, point_s_a->y_size, point_s_b->x, point_s_b->y, point_s_b->x_size, point_s_b->y_size)) return 0; else if (point_s_a->y < point_s_b->y) return -1; else if (point_s_a->y > point_s_b->y) return 1; else if (point_s_a->x < point_s_b->x) return -1; else return 1; } jpegpixi-1.1.1/opthotp.c0000644000000000000000000002216010340157454012065 00000000000000/* This file has been generated with opag 0.8.0. */ /* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004, 2005 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #ifndef STR_ERR_UNKNOWN_LONG_OPT # define STR_ERR_UNKNOWN_LONG_OPT _("%s: unrecognized option `--%s'\n") #endif #ifndef STR_ERR_LONG_OPT_AMBIGUOUS # define STR_ERR_LONG_OPT_AMBIGUOUS _("%s: option `--%s' is ambiguous\n") #endif #ifndef STR_ERR_MISSING_ARG_LONG # define STR_ERR_MISSING_ARG_LONG _("%s: option `--%s' requires an argument\n") #endif #ifndef STR_ERR_UNEXPEC_ARG_LONG # define STR_ERR_UNEXPEC_ARG_LONG _("%s: option `--%s' doesn't allow an argument\n") #endif #ifndef STR_ERR_UNKNOWN_SHORT_OPT # define STR_ERR_UNKNOWN_SHORT_OPT _("%s: unrecognized option `-%c'\n") #endif #ifndef STR_ERR_MISSING_ARG_SHORT # define STR_ERR_MISSING_ARG_SHORT _("%s: option `-%c' requires an argument\n") #endif #define STR_HELP_THRESHOLD "\ -t, --threshold=THRESHOLD specify threshold between noise and signal\n\ [default: 10%]\n" #define STR_HELP_INVERT "\ -i, --invert invert image (i.e. find dead pixels in an\n\ otherwise white image)\n" #define STR_HELP_COMMENTS "\ -c, --comments output comments with luminosities of hot pixel\n\ blocks\n" #define STR_HELP_HELP "\ --help display this help text and exit\n" #define STR_HELP_VERSION "\ --version display version information and exit\n" #define STR_HELP _("\ -t, --threshold=THRESHOLD specify threshold between noise and signal\n\ [default: 10%]\n\ -i, --invert invert image (i.e. find dead pixels in an\n\ otherwise white image)\n\ -c, --comments output comments with luminosities of hot pixel\n\ blocks\n\ --help display this help text and exit\n\ --version display version information and exit\n") /* Set to 1 if option --threshold (-t) has been specified. */ char opt_threshold; /* Set to 1 if option --invert (-i) has been specified. */ char opt_invert; /* Set to 1 if option --comments (-c) has been specified. */ char opt_comments; /* Set to 1 if option --help has been specified. */ char opt_help; /* Set to 1 if option --version has been specified. */ char opt_version; /* Argument to option --threshold (-t). */ const char *arg_threshold; /* Parse command line options. Return index of first non-option argument, or -1 if an error is encountered. */ int parse_options (const char *const program_name, const int argc, char **const argv) { static const char *const optstr__threshold = "threshold"; static const char *const optstr__invert = "invert"; static const char *const optstr__comments = "comments"; static const char *const optstr__help = "help"; static const char *const optstr__version = "version"; int i = 0; opt_threshold = 0; opt_invert = 0; opt_comments = 0; opt_help = 0; opt_version = 0; arg_threshold = 0; while (++i < argc) { const char *option = argv [i]; if (*option != '-') return i; else if (*++option == '\0') return i; else if (*option == '-') { const char *argument; size_t option_len; ++option; if ((argument = strchr (option, '=')) == option) goto error_unknown_long_opt; else if (argument == 0) option_len = strlen (option); else option_len = argument++ - option; switch (*option) { case '\0': return i + 1; case 'c': if (strncmp (option + 1, optstr__comments + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__comments; goto error_unexpec_arg_long; } opt_comments = 1; break; } goto error_unknown_long_opt; case 'h': if (strncmp (option + 1, optstr__help + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__help; goto error_unexpec_arg_long; } opt_help = 1; return i + 1; } goto error_unknown_long_opt; case 'i': if (strncmp (option + 1, optstr__invert + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__invert; goto error_unexpec_arg_long; } opt_invert = 1; break; } goto error_unknown_long_opt; case 't': if (strncmp (option + 1, optstr__threshold + 1, option_len - 1) == 0) { if (argument != 0) arg_threshold = argument; else if (++i < argc) arg_threshold = argv [i]; else { option = optstr__threshold; goto error_missing_arg_long; } opt_threshold = 1; break; } goto error_unknown_long_opt; case 'v': if (strncmp (option + 1, optstr__version + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__version; goto error_unexpec_arg_long; } opt_version = 1; return i + 1; } default: error_unknown_long_opt: fprintf (stderr, STR_ERR_UNKNOWN_LONG_OPT, program_name, option); return -1; error_missing_arg_long: fprintf (stderr, STR_ERR_MISSING_ARG_LONG, program_name, option); return -1; error_unexpec_arg_long: fprintf (stderr, STR_ERR_UNEXPEC_ARG_LONG, program_name, option); return -1; } } else do { switch (*option) { case 'c': opt_comments = 1; break; case 'i': opt_invert = 1; break; case 't': if (option [1] != '\0') arg_threshold = option + 1; else if (++i < argc) arg_threshold = argv [i]; else goto error_missing_arg_short; option = "\0"; opt_threshold = 1; break; default: fprintf (stderr, STR_ERR_UNKNOWN_SHORT_OPT, program_name, *option); return -1; error_missing_arg_short: fprintf (stderr, STR_ERR_MISSING_ARG_SHORT, program_name, *option); return -1; } } while (*++option != '\0'); } return i; } /* Display text in response to the --help command line option. */ void display_help_text (void) { printf (_("Usage: %s [OPTION]... JPEG-FILE [PIXEL-BLOCKS-FILE]\n" "Find hot pixels in an otherwise black JPEG image (default) or dead pixels in an\n" "otherwise white JPEG image (if the `--invert' option is specified). Write their\n" "coordinates to a pixel blocks file suitable for the jpegpixi program.\n\n" "Options:\n"), invocation_name); fputs (STR_HELP, stdout); /* TRANSLATORS: Please include the information that bug reports should be send in English. E.g., translate "Please report bugs (in English) to ...". */ fputs (_("\nPlease report bugs to .\n"), stdout); } /* Display text in response to the --version command line option. */ void display_version_text (void) { fputs ("jpeghotp (" PACKAGE_NAME ") " PACKAGE_VERSION "\n", stdout); /* TRANSLATORS: Please leave the copyright statement intact, but replace "(C)" with the "copyright sign" (Unicode character ). */ fputs (_("Copyright (C) 2003, 2004, 2005 Martin Dickopp\n\n"), stdout); /* TRANSLATORS: Please don't translate the warranty disclaimer literally, but replace it with a text which has a legal effect as close as possible to the original in the jurisdiction(s) where your language is used. If unsure, replace it with a translation of "There is no warranty, to the extent allowed by law." */ fputs (_("This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n"), stdout); } jpegpixi-1.1.1/jpegwrapper.h.in0000644000000000000000000000275610340156204013331 00000000000000/* Do not edit jpegwrapper.h; edit jpegwrapper.h.in instead! */ /* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef JPEGWRAPPER_H #define JPEGWRAPPER_H 1 /* Undefine potentially conflicting configuration macros. */ #undef const #undef HAVE_STDDEF_H #undef HAVE_STDLIB_H /* requires . */ #include /* Include jpeglib header. */ #include /* Test compatibility. */ #if JPEG_LIB_VERSION < 62 # error "This program requires jpeglib version 6b or later." #endif #if DCTSIZE != 8 # error "This program does not support DCTSIZE != 8." #endif /* Restore configuration macros. */ #undef void #undef const #if @MD_NO_CONST@ # define const #endif #endif /* !defined JPEGWRAPPER_H */ jpegpixi-1.1.1/install-sh0000755000000000000000000002202110265127405012223 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: jpegpixi-1.1.1/Makefile.am0000644000000000000000000000460710173207323012261 00000000000000## Process this file with automake to produce Makefile.in. ## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2002, 2003, 2004 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. SUBDIRS = . man @SUBDIR_PO@ DIST_SUBDIRS = . man po bin_PROGRAMS = jpegpixi jpeghotp AM_CPPFLAGS = -DLOCALEDIR="\"$(datadir)/locale\"" jpegpixi_SOURCES = consolidate.c dct.c file.c interpolate.c jfif.c jpegpixi.c jpegpixi.h optpixi.c optpixi.h \ parsenum.c rbtree.c rbtree.h util.c util.h weights.c nodist_jpegpixi_SOURCES = jpegwrapper.h jpegpixi_LDADD = @LIBOBJS@ @MATHLIB@ jpeghotp_SOURCES = consolidate.c jpeghotp.c jpegpixi.h opthotp.c opthotp.h parsenum.c rbtree.c rbtree.h util.c util.h nodist_jpeghotp_SOURCES = jpegwrapper.h jpeghotp_LDADD = @LIBOBJS@ BUILT_SOURCES = jpegwrapper.h optpixi.c optpixi.h opthotp.c opthotp.h po/POTSOURCES EXTRA_DIST = jpegpixi.opag jpeghotp.opag README.jpeglib po/POTSOURCES DISTCLEANFILES = jpegwrapper.h po/POTSOURCES optpixi.h: jpegpixi.opag optpixi.c: optpixi.h jpegpixi.opag @if test "@OPAG@" = missing; then \ echo "You have modified \`jpegpixi.opag', but you do not seem to have the \`opag'"; \ echo "program installed on your system. Check the \`README' file; it tells you"; \ echo "where to get this program."; \ exit 1; \ fi @OPAG@ --gcc --nls-error-text=_ --nls-help-text=_ $(srcdir)/jpegpixi.opag optpixi.c optpixi.h opthotp.h: jpeghotp.opag opthotp.c: opthotp.h jpeghotp.opag @if test "@OPAG@" = missing; then \ echo "You have modified \`jpeghotp.opag', but you do not seem to have the \`opag'"; \ echo "program installed on your system. Check the \`README' file; it tells you"; \ echo "where to get this program."; \ exit 1; \ fi @OPAG@ --gcc --nls-error-text=_ --nls-help-text=_ $(srcdir)/jpeghotp.opag opthotp.c opthotp.h po/POTSOURCES: $(jpegpixi_SOURCES) $(jpeghotp_SOURCES) jpegpixi.opag jpeghotp.opag @{ for p in $(jpegpixi_SOURCES) $(jpeghotp_SOURCES); do \ echo "$$p"; \ done; } > po/POTSOURCES jpegpixi-1.1.1/COPYING0000644000000000000000000004310510340155220011246 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. jpegpixi-1.1.1/missing0000755000000000000000000002540610265127405011630 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # 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, 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: jpegpixi-1.1.1/man/0000777000000000000000000000000010340157462011061 500000000000000jpegpixi-1.1.1/man/fi/0000777000000000000000000000000010340157463011460 500000000000000jpegpixi-1.1.1/man/fi/Makefile.am0000644000000000000000000000122010173207323013416 00000000000000## Process this file with automake to produce Makefile.in. ## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2004 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. mandir = @mandir@/fi man1_MANS = jpegpixi.1 jpeghotp.1 jpegpixi-1.1.1/man/fi/Makefile.in0000644000000000000000000002322310340157443013441 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = man/fi DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/jpeghotp.1.in $(srcdir)/jpegpixi.1.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = jpegpixi.1 jpeghotp.1 SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MATHLIB = @MATHLIB@ MD_NO_CONST = @MD_NO_CONST@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OPAG = @OPAG@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SUBDIR_PO = @SUBDIR_PO@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@/fi mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ man1_MANS = jpegpixi.1 jpeghotp.1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/fi/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu man/fi/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh jpegpixi.1: $(top_builddir)/config.status $(srcdir)/jpegpixi.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ jpeghotp.1: $(top_builddir)/config.status $(srcdir)/jpeghotp.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-man1 install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-info-am uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: jpegpixi-1.1.1/man/fi/jpeghotp.1.in0000644000000000000000000000714110340156143013700 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2003, 2004, 2005 Martin Dickopp . .\" The Finnish translation of this manual page is .\" Copyright (C) 2004, 2005 Jarno Elonen . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGHOTP 1 18-Apr-2004 "@PACKAGE_STRING@" "Kyttkomennot" .SH NIMI jpeghotp \- etsii palaneita ja kuolleita pikseleit muuten mustasta tai valkoisesta JPEG-kuvasta .SH YLEISKATSAUS .B jpeghotp .RI [ VALITSIN ]...\& .I JPEG-TIEDOSTO .RI [ PIKSELI-ALUE-TIEDOSTO ] .SH DESCRIPTION Jpeghotp etsii automaattisesti palaneita pikseleit muuten mustasta JPEG-kuvasta (oletusarvo) tai kuolleita pikseleit muuten valkoisesta kuvasta (kun kytetn .B \-\-invert \-valitsinta). Tuloksena on .BR jpegpixi (1) -ohjelmalle sopivassa muodossa oleva pikselialueiden mritystiedosto. Ohjelmaa kytetn tyypillisesti viallisella CCD-kennolla varustetulla digitaalikameralla otettujen kuvien prosessoimiseen. .PP Tllin ohjelmalle sytettv musta kuva otetaan tysin pimess tilassa tai linssi peitettyn ja valkoinen kuva ottamalla valkoisesta paperista ylivalottunut kuva kirkkaassa valaistuksessa. .PP .I JPEG-KUVA on luettavan JPEG-kuvan tiedostonimi. Tm voidaan mys korvata merkill .BR \- , joka tarkoittaa stdin-laitetta. .PP .I PIKSELI-ALUE-TIEDOSTO on sen tiedoston nimi johon lydettyjen viallisten pikselialueiden koordinaatit ja koot kirjoitetaan. Jos nime ei ole annettu, tulostetaan tiedot stdout-laitteelle. .SH VALITSIMET .IP "\fB\-t\fR \fIKYNNYSARVO\fR, \fB\-\-threshold\fR=\fIKYNNYSARVO\fR" Mr kohinan ja signaalin erottavan kynnysarvon. Arvon alle jvt pikselikirkkaudet tulkitaan CCD-kohinaksi ja ylittvt palaneiksi pikseleiksi. .I KYNNYSARVO tytyy olla numero vlill 0 - 100 oleva numero ja sen perss tytyy olla prosenttimerkki .RB ( % ). Oletusarvo on .BR 10% . .IP "\fB\-i\fr, \fB\-\-invert\fR" Kytt laskennassa negatiivikuvaa. Tt valitsinta kytettess ohjelma ei etsi mustasta kuvasta palaneita pikseleit vaan valkoisesta kuvasta kuolleita pikseleit. .IP "\fB\-c\fR, \fB\-\-comments\fR" Tulostaa palaneiden (tai kuolleiden) pikselien kirkkaudet kommenteissa. Tst voi olla apua pikselialueita ksin sdettess. .IP "\fB\-\-help\fR" Nytt lyhyen opasteen ja poistuu. .IP "\fB\-\-version\fR" Nytt versiotiedot ja poistuu. .SH VIAT Vioista voi ilmoittaa (englanniksi) osoitteeseen . .SH TEKIJNOIKEUDET Copyright \(co 2003, 2004, 2005 Martin Dickopp .PP Takuuta EI ole; ei edes MYYNTIKUNNOSTA tai SOVELTUVUUDESTA TIETTYYN TARKOITUKSEEN. Voit levitt ohjelmasta kopioita GNU General Public Licensen mukaisesti. Tiedostosta COPYING lydt listietoja nist seikoista. .PP Ohjeen suomenkielisen knnksen tekijnoikeus on \(co 2004, 2005 Jarno Elonen . .SH "KATSO MYS" .BR jpegpixi (1) .PP Jpegpixi:n kotisivu: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/fi/jpegpixi.1.in0000644000000000000000000001265010340156124013677 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2002, 2003, 2004 Martin Dickopp . .\" The Finnish translation of this manual page is .\" Copyright (C) 2004 Jarno Elonen . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGPIXI 1 26-Sep-2004 "@PACKAGE_STRING@" "Kyttkomennot" .SH NIMI jpegpixi \- interpoloi pikseleit JFIF (JPEG) -kuvatiedostoista .SH YLEISKATSAUS .B jpegpixi .RI [ VALITSIN ]...\& .I LHDE KOHDE [[\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]]... .SH KUVAUS Jpegpixi interpoloi pikseleit ja pikselialueita JFIF-kuvatiedostoissa (joita kutsutaan yleens "JPEG-kuviksi"). Interpoloimalla voidaan korjata viallisella CCD-kennolla varustetulla digitaalikameralla otettuja kuvia. Ohjelma muuttaa vain niit DCT-blokkeja, jotka sisltvt interpoloitavia pikseleit ja ne pakataan tsmlleen samoilla parametreilla kuin mill alkuperinen kuvakin pakattiin. Kuvan laatu huononee siis niin vhn kuin mahdollista. .PP .I LHDE ja .I KOHDE ovat lhde- ja kohdekuvatiedostojen nimi. Kumpikin voidaan korvata merkill .BR \- , joka tarkoittaa stdin- ja/tai stdout-laitetta. .PP Kohdetiedoston nimen jlkeen voi tulla miten monta pikseli- tai pikseli-alue-mrityst tahansa. Mritys alkaa valinnaisella suuntamerkinnll .RI ( D ), joka voi olla .B 2 2-ulotteiselle interpolaatiolle (oletusarvo), .B V tai .B v 1-ulotteiselle pystysuuntaiselle interpolaatiolle (esim. vaakasuorien raitojen poistoon), tai .B H tai .B h 1-ulotteiselle vaakasuuntaiselle interpolaatiolle. .IR X , Y mrvt pikselin tai pikseli-alueen vasemman ylkulman paikan. .I S on pikselialueen koko (oletuksena 1). Alueelle voi vaihtoisesti mrt erikseen leveyden .RI ( SX ) ja korkeuden .RI ( SY ). .PP Numerot .RI ( X , .IR Y , .IR S , .IR SX , .IR SY ) voivat olla absoluuttisia koordinaatteja/kokoja tai prosenttiosuuksia koko kuvasta. Jos numeron perss on prosenttimerkki .RB ( % ), se tulkitaan prosenttiosuudeksi ja muussa tapauksessa absoluuttiseksi arvoksi. .SH VALITSIMET .IP "\fB\-f\fR \fITIEDOSTO\fR, \fB\-\-blocks\-file\fR=\fITIEDOSTO\fR" Lukee pikseli-alueiden mritykset komentorivin lisksi tiedostosta .I TIEDOSTO . Tiedostossa kuuluu olla yksi mritys ([\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]) rivi kohti. Tyjt rivit ohitetaan. Tiedostossa voi olla mys kommentteja, jotka alkavat risuaidalla .RB ( # ) ja jatkuvat rivin loppuun saakka. .IP "\fB\-m\fR \fIMENETELM\fR, \fB\-\-method\fR=\fIMENETELM\fR" Kytt interpolointimenetelm .I MENETELM (oletus: .BR linear ). Lue alempaa kohta INTERPOLOINTIMENETELMT. .IP "\fB\-v\fR, \fB\-\-verbose\fR" Nytt interpoloitavien alueiden koot ja koordinaatit. .IP "\fB\-i\fR, \fB\-\-info\fR" Nytt tietoja kuvasta. Esim. kuvan koko, pakkauksessa kytetty vriavaruus ja eri komponenttien nytteistystaajuudet. .IP "\fB\-s\fR, \fB\-\-strip\fR" Ei kopioi kommentteja eik lismerkintj lhdekuvasta kohdekuvaan. Tm valitsin poistaa esikatselukuvat, EXIF-lohkot ja muut vastaavat tiedot. .IP "\fB\-\-help\fR" Nytt lyhyen opasteen ja poistuu. .IP "\fB\-\-version\fR" Nytt viersiotiedot ja poistuu. .SH "INTERPOLAATIOMENETELMT" .IP "\fB0\fR, \fBav\fR, \fBaverage\fR" Pikselialueen ymprill olevista pikseleist lasketaan keskiarvo. Kaikki alueen sisn jvt pikselit korvataan tuloksella. Yksiulotteisen interpolaation tapauksessa keskiarvo lasketaan erikseen jokaiselle vaaka- tai pystysuoran juovan pikselille. .IP "\fB1\fR, \fBli\fR, \fBlinear\fR" Alueesta etisyydell 1 olevista pikseleist muodostetaan bilineaarinen pinta (2-ulotteinen) tai ryhm lineaarisia kyri (1-ulotteinen), joita kytetn alueen sisn jvien pikselien vrin mrmiseen. .IP "\fB2\fR, \fBqu\fR, \fBquadratic\fR" Alueesta etisyydell 1 olevista pikseleist muodostetaan bi-nelillinen pinta (2-ulotteinen) tai ryhm toisen asteen kyri (1-ulotteinen), joita kytetn alueen sisn jvien pikselien vrin mrmiseen. .IP "\fB3\fR, \fBcu\fR, \fBcubic\fR" Alueesta etisyydell 1 olevista pikseleist muodostetaan bi-kuutiollinen pinta (2-ulotteinen) tai ryhm kolmannen asteen kyri (1-ulotteinen), joita kytetn alueen sisn jvien pikselien vrin mrmiseen. .SH VIAT Vioista voi ilmoittaa (englanniksi) osoitteeseen . .SH TEKIJNOIKEUDET Copyright \(co 2002, 2003, 2004, 2005 Martin Dickopp .PP Takuuta EI ole; ei edes MYYNTIKUNNOSTA tai SOVELTUVUUDESTA TIETTYYN TARKOITUKSEEN. Voit levitt ohjelmasta kopioita GNU General Public Licensen mukaisesti. Tiedostosta COPYING lydt listietoja nist seikoista. .PP Ohjeen suomenkielisen knnksen tekijnoikeus on \(co 2004 Jarno Elonen . .SH "KATSO MYS" .BR jpeghotp (1) .PP Jpegpixi:n kotisivu: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/de/0000777000000000000000000000000010340157462011451 500000000000000jpegpixi-1.1.1/man/de/Makefile.am0000644000000000000000000000122010173207323013410 00000000000000## Process this file with automake to produce Makefile.in. ## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2004 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. mandir = @mandir@/de man1_MANS = jpegpixi.1 jpeghotp.1 jpegpixi-1.1.1/man/de/Makefile.in0000644000000000000000000002322310340157443013433 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = man/de DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/jpeghotp.1.in $(srcdir)/jpegpixi.1.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = jpegpixi.1 jpeghotp.1 SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MATHLIB = @MATHLIB@ MD_NO_CONST = @MD_NO_CONST@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OPAG = @OPAG@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SUBDIR_PO = @SUBDIR_PO@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@/de mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ man1_MANS = jpegpixi.1 jpeghotp.1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/de/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu man/de/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh jpegpixi.1: $(top_builddir)/config.status $(srcdir)/jpegpixi.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ jpeghotp.1: $(top_builddir)/config.status $(srcdir)/jpeghotp.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-man1 install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-info-am uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: jpegpixi-1.1.1/man/de/jpeghotp.1.in0000644000000000000000000000722610340156105013674 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2004, 2005 Martin Dickopp . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGHOTP 1 18-Apr-2004 "@PACKAGE_STRING@" "Userkommandos" .SH NAME jpeghotp \- findet leuchtende oder ausgefallene Pixel in sonst schwarzen oder weien JPEG-Bildern .SH SYNTAX .B jpeghotp .RI [ OPTION ]...\& .I JPEG-DATEI .RI [ PIXELBLOCK-DATEI ] .SH BESCHREIBUNG Jpeghotp findet leuchtende Pixel in einem sonst schwarzen JPEG-Bild (Standard) oder ausgefallene Pixel in einem sonst weien JPEGBild (wenn die Option .B \-\-invert angegeben wurde). Die Ausgabe ist als Pixelblock-Datei fr das Programm .BR jpegpixi (1) geeignet. Eine typische Anwendung ist die Verarbeitung eines Bildes, das mit einer Digitalkamera mit CCD-Defekten aufgenommen wurde. .PP Um ein schwarzes Bild zu erhalten, macht man eine Aufnahme bei vlliger Dunkelheit oder mit abgedeckter Linse. Um ein weies Bild zu erhalten, macht man eine berbelichtete Aufnahme eines gut beleuchteten Blattes weien Papiers. .PP .I JPEG-DATEI ist der Dateiname des zu lesenden JPEG-Bildes. Es kann .B \- angegeben werden, was fr Standardeingabe steht. .PP .I PIXELBLOCK-DATEI ist der Name der Datei, in die die Koordinaten und Gren der leuchtenden (oder ausgefallenen) Pixel geschrieben werden. Wenn diese Angabe weggelassen wird, werden die Koordinaten und Gren auf die Standardausgabe ausgegeben. .SH OPTIONEN .IP "\fB\-t\fR \fISCHWELLWERT\fR, \fB\-\-threshold\fR=\fISCHWELLWERT\fR" Angabe des Schwellwertes zwischen Rauschen und Signal: Pixelhelligkeiten unterhalb des Schwellwertes werden als CCD-Rauschen angesehen, Helligkeiten darber als leuchtende Pixel. .I SCHWELLWERT mu eine Zahl zwischen 0 und 100 gefolgt von einem Prozentzeichen .RB ( % ) sein. Der Standardwert ist .BR 10% . .IP "\fB\-i\fr, \fB\-\-invert\fR" Bild invertieren. Wenn diese Option angegeben wurde, werden ausgefallene Pixel in einem sonst weien Bild statt leuchtender Pixel in einem sonst schwarzen Bild gefunden. .IP "\fB\-c\fR, \fB\-\-comments\fR" Die Helligkeiten der leuchtenden (oder ausgefallenen) Pixel werden als Kommentare mit ausgegeben. Dies ist hilfreich, wenn von Hand Feineinstellungen an der Pixelblock-Datei vorgenommen werden sollen. .IP "\fB\-\-help\fR" Zeigt einen kurzen Hilfe-Text an und beendet das Programm danach sofort. .IP "\fB\-\-version\fR" Zeigt die Programmversion an und beendet das Programm danach sofort. .SH FEHLER Bitte melden Sie Programmfehler an . .SH COPYRIGHT Copyright \(co 2003, 2004, 2005 Martin Dickopp .PP Jpeghotp ist Freie Software; es darf unter den Bedingungen der "GNU General Public License" Version 2 (oder wahlweise einer spteren Version dieser Lizenz) kopiert und/oder modifiziert werden. Soweit gesetzlich zulssig, ist jegliche Gewhrleistung ausgeschlossen. .SH "SIEHE AUCH" .BR jpegpixi (1) .PP Die Jpegpixi-Homepage: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/de/jpegpixi.1.in0000644000000000000000000001363510340156065013701 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2004 Martin Dickopp . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGPIXI 1 02-Oct-2004 "@PACKAGE_STRING@" "Userkommandos" .SH NAME jpegpixi \- interpoliert Pixel in JFIF- (JPEG-) Bilddateien .SH SYNTAX .B jpegpixi .RI [ OPTION ]...\& .I QUELLDATEI ZIELDATEI [[\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]]... .SH BESCHREIBUNG Jpegpixi interpoliert Pixel oder Pixelblcke in JFIF-Bilddateien (blicherweise als "JPEG-Bilder" bezeichnet). Dies ist ntzlich, um Bilder zu korrigieren, die mit einer Digitalkamera mit CCD-Defekten aufgenommen wurden. Nur die DCT-Blcke, die die zu interpolierenden Pixel enthalten, werden dekodiert und wieder kodiert, und die erneute Kodierung erfolgt mit exakt den gleichen Parametern, die bei der ursprnglichen Erzeugung des Bildes verwendet wurden. Dadurch wird die Bildqualitt so gut wie mglich erhalten. .PP .I QUELLDATEI und .I ZIELDATEI sind die Dateinamen der Quell- und Zieldatei. In beiden Fllen kann .B \- verwendet werden, was fr Standardeingabe bzw.\& -ausgabe steht. .PP Dem Zieldateinamen folgt eine beliebige Anzahl von Pixel- bzw.\& Pixelblockspezifikationen. Eine solche beginnt mit einer optionalen Richtungsangabe .RI ( D ), die .B 2 fr zweidimensionale Interpolation, .B V oder .B v fr eindimensionale vertikale Interpolation (z.B.\ um horizontale Streifen zu entfernen), oder .B H oder .B h fr eindimensionale horizontale Interpolation sein kann. Wird die Richtungsangabe weggelassen, erfolgt zweidimensionale Interpolation. .IR X , Y sind die Koordinaten des Pixels oder der linken oberen Ecke des Pixelblocks. .I S ist die Gre des Pixelblocks (standardmig 1). Alternative knnen separate Gren fr die Breite .RI ( SX ) und die Hhe .RI ( SY ) angegeben werden. .PP Alle Zahlenangaben .RI ( X , .IR Y , .IR S , .IR SX , .IR SY ) knnen als absolute Koordinaten bzw.\& Gren oder relativ zur Bildgre angegeben werden. Wenn einer Zahl ein Prozentzeichen .RB ( % ) folgt, wird sie als prozentualer Teil der Bildbreite bzw.\ -hhe aufgefat, andernfalls als absolute Angabe. .SH OPTIONEN .IP "\fB\-f\fR \fIDATEINAME\fR, \fB\-\-blocks\-file\fR=\fIDATEINAME\fR" Zustzlich zur Kommandozeile werden Pixelblockspezifikationen aus der Datei .I DATEINAME gelesen. Die Datei mu eine Spezifikation ([\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]) pro Zeile enthalten. Leere Zeilen werden ignoriert. Die Datei darf Kommentare enthalten, welche mit dem Zeichen .B # eingeleitet werden und sich jeweils bis zum Zeilenende erstrecken. .IP "\fB\-m\fR \fIMETHODE\fR, \fB\-\-method\fR=\fIMETHODE\fR" Es wird Interpolationsmethode .I METHODE benutzt (standardmig .BR linear ). Siehe INTERPOLATIONSMETHODEN unten. .IP "\fB\-v\fR, \fB\-\-verbose\fR" Die Koordinaten und Gre jedes Pixelblocks, der interpoliert wird, werden angezeigt. .IP "\fB\-i\fR, \fB\-\-info\fR" Zeigt Informationen ber das Bild an, nmlich die Gre des Bildes, den Farbraum, in dem es kodiert wurde, und das Sampling der verschiedenen Komponenten. .IP "\fB\-s\fR, \fB\-\-strip\fR" Kommentare und zustzliche Marker in der Quelldatei werden nicht in die Zieldatei bernommen. Dadurch werden Vorschaubilder, EXIF-Daten und hnliche Informationen entfernt. .IP "\fB\-\-help\fR" Zeigt einen kurzen Hilfe-Text an und beendet das Programm danach sofort. .IP "\fB\-\-version\fR" Zeigt die Programmversion an und beendet das Programm danach sofort. .SH INTERPOLATIONSMETHODEN .IP "\fB0\fR, \fBav\fR, \fBaverage\fR" Der Mittelwert von zum Pixelblock benachbarten Pixeln wird berechnet. Die resultierende Farbe wird allen Pixeln im Pixelblock zugewiesen. Im Falle der eindimensionalen Interpolation wird dies separat fr 1 Pixel breite, horizontale oder vertikale Streifen vorgenommen. .IP "\fB1\fR, \fBli\fR, \fBlinear\fR" Pixel mit einem Abstand von 1 zum Pixelblock werden benutzt, um eine bilineare Flche (zweidimensional) oder eine Schar von linearen Kurven (eindimensional) zu berechnen. Die Flche oder Kurvenschar wird benutzt, um den Pixeln im Pixelblock Farben zuzuweisen. .IP "\fB2\fR, \fBqu\fR, \fBquadratic\fR" Pixel mit einem Abstand von 2 oder weniger zum Pixelblock werden benutzt, um eine biquadratische Flche (zweidimensional) oder eine Schar von quadratischen Kurven (eindimensional) zu berechnen. Die Flche oder Kurvenschar wird benutzt, um den Pixeln im Pixelblock Farben zuzuweisen. .IP "\fB3\fR, \fBcu\fR, \fBcubic\fR" Pixel mit einem Abstand von 3 oder weniger zum Pixelblock werden benutzt, um eine bikubische Flche (zweidimensional) oder eine Schar von kubischen Kurven (eindimensional) zu berechnen. Die Flche oder Kurvenschar wird benutzt, um den Pixeln im Pixelblock Farben zuzuweisen. .SH FEHLER Bitte melden Sie Programmfehler an . .SH COPYRIGHT Copyright \(co 2002, 2003, 2004, 2005 Martin Dickopp .PP Jpegpixi ist Freie Software; es darf unter den Bedingungen der "GNU General Public License" Version 2 (oder wahlweise einer spteren Version dieser Lizenz) kopiert und/oder modifiziert werden. Soweit gesetzlich zulssig, ist jegliche Gewhrleistung ausgeschlossen. .SH "SIEHE AUCH" .BR jpeghotp (1) .PP Die Jpegpixi-Homepage: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/Makefile.am0000644000000000000000000000121610173207323013025 00000000000000## Process this file with automake to produce Makefile.in. ## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2004 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. SUBDIRS = de fi fr man1_MANS = jpegpixi.1 jpeghotp.1 jpegpixi-1.1.1/man/Makefile.in0000644000000000000000000003570710340157442013054 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = man DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/jpeghotp.1.in $(srcdir)/jpegpixi.1.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = jpegpixi.1 jpeghotp.1 SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MATHLIB = @MATHLIB@ MD_NO_CONST = @MD_NO_CONST@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OPAG = @OPAG@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SUBDIR_PO = @SUBDIR_PO@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = de fi fr man1_MANS = jpegpixi.1 jpeghotp.1 all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu man/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh jpegpixi.1: $(top_builddir)/config.status $(srcdir)/jpegpixi.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ jpeghotp.1: $(top_builddir)/config.status $(srcdir)/jpeghotp.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(MANS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-man install-exec-am: install-info: install-info-recursive install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-info: uninstall-info-recursive uninstall-man: uninstall-man1 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-recursive ctags ctags-recursive \ distclean distclean-generic distclean-recursive distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-man1 install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-info-am uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: jpegpixi-1.1.1/man/jpeghotp.1.in0000644000000000000000000000643010340156047013305 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2003, 2004, 2005 Martin Dickopp . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGHOTP 1 18-Apr-2005 "@PACKAGE_STRING@" "User Commands" .SH NAME jpeghotp \- find hot or dead pixels in otherwise black or white JPEG images .SH SYNOPSIS .B jpeghotp .RI [ OPTION ]...\& .I JPEG-FILE .RI [ PIXEL-BLOCKS-FILE ] .SH DESCRIPTION Jpeghotp automatically finds hot pixels in an otherwise black JPEG image (default) or dead pixels in an otherwise white JPEG image (if the .B \-\-invert option is specified). The output is suitable as a pixel block specification file for the .BR jpegpixi (1) program. A typical application is to process an image taken with a digital camera with CCD defects. .PP To obtain a black image, take a picture in total darkness or with covered lens. To obtain a while image, take an overexposed picture of a well-lit piece of white paper. .PP .I JPEG-FILE is the filename of the JPEG image to read. It can be .BR \- , which refers to standard input. .PP .I PIXEL-BLOCKS-FILE is the name of the file to write the coordinates and sizes of the hot (or dead) pixel blocks to. If it is omitted, the coordinates and sizes are written to standard output. .SH OPTIONS .IP "\fB\-t\fR \fITHRESHOLD\fR, \fB\-\-threshold\fR=\fITHRESHOLD\fR" Specify the threshold between noise and signal. Pixel luminosities below the threshold are considered CCD noise, luminosities above are considered hot pixels. .I THRESHOLD must be a number between 0 and 100 followed by a percent character .RB ( % ). The default is .BR 10% . .IP "\fB\-i\fr, \fB\-\-invert\fR" Invert the image. If this option is specified, dead pixels in an otherwise white image instead of hot pixels in an otherwise black image are found. .IP "\fB\-c\fR, \fB\-\-comments\fR" Output comments with the luminosities of the hot (or dead) pixel blocks. This can be helpful in hand tuning the pixel blocks file. .IP "\fB\-\-help\fR" Display a short help text and exit immediately. .IP "\fB\-\-version\fR" Display version information and exit immediately. .SH BUGS Please report bugs to . .SH COPYRIGHT Copyright \(co 2003, 2004, 2005 Martin Dickopp .PP Jpeghotp is free software; it may be copied and/or modified under the terms of the GNU General Public License version 2 or (at your option) any later version. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .SH "SEE ALSO" .BR jpegpixi (1) .PP The jpegpixi homepage: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/fr/0000777000000000000000000000000010340157463011471 500000000000000jpegpixi-1.1.1/man/fr/Makefile.am0000644000000000000000000000122010173207323013427 00000000000000## Process this file with automake to produce Makefile.in. ## This file is part of jpegpixi, a program to interpolate pixels in ## JFIF image files. ## Copyright (C) 2004 Martin Dickopp ## ## This file is free software; the copyright holder gives unlimited ## permission to copy and/or distribute it, with or without ## modifications, as long as this notice is preserved. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY, to the extent permitted by law; without ## even the implied warranty of MERCHANTABILITY or FITNESS FOR A ## PARTICULAR PURPOSE. mandir = @mandir@/fr man1_MANS = jpegpixi.1 jpeghotp.1 jpegpixi-1.1.1/man/fr/Makefile.in0000644000000000000000000002322310340157443013452 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = man/fr DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/jpeghotp.1.in $(srcdir)/jpegpixi.1.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = jpegpixi.1 jpeghotp.1 SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man1_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MATHLIB = @MATHLIB@ MD_NO_CONST = @MD_NO_CONST@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OPAG = @OPAG@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SUBDIR_PO = @SUBDIR_PO@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@/fr mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ man1_MANS = jpegpixi.1 jpeghotp.1 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/fr/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu man/fr/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh jpegpixi.1: $(top_builddir)/config.status $(srcdir)/jpegpixi.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ jpeghotp.1: $(top_builddir)/config.status $(srcdir)/jpeghotp.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-man1 install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-info-am uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: jpegpixi-1.1.1/man/fr/jpeghotp.1.in0000644000000000000000000000721210340156031013704 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2003, 2004, 2005 Martin Dickopp . .\" The French translation of this manual page is .\" Copyright (C) 2004, 2005 Stephan Peccini . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGHOTP 1 18-Avr-2005 "@PACKAGE_STRING@" "Commandes utilisateur" .SH NAME jpeghotp \- trouve les pixels chauds ou morts dans une image JPEG qui, autrement, serait ou blanche noire .SH SYNOPSIS .B jpeghotp .RI [ OPTION ]...\& .I FICHIER-JPEG .RI [ FICHIER-BLOCS-PIXELS ] .SH DESCRIPTION Jpeghotp trouve automatiquement les pixels chauds dans une image JPEG, autrement noire (dfaut), ou les pixels morts dans une image JPEG, autrement blanche (si l'option .B \-\-invert a t choisie). Le rsultat est utilisable par le programme .BR jpegpixi (1) en tant que fichier de spcification des blocs de pixels. Une application typique est de raliser une image prise avec une camra numrique qui a des dfauts. .PP Pour obtenir une image noire, prendre une photo dans le noir absolu ou avec le bouchon d'objectif. Pour obtenir une image blanche, prendre une photo surexpose d'une feuille de papier blanche bien claire. .PP .I FICHIER-JPEG est le nom du fichier de l'image JPEG lire. Il peut tre .BR \- , qui rfre l'entre standard. .PP .I FICHIER-BLOCS-PIXELS est le nom du fichier dans lequel sont crites les coordonnes et les tailles des blocs de pixels chauds (ou morts). S'il est omis, les coordonnes et les tailles sont crites sur la sortie standard. .SH OPTIONS .IP "\fB\-t\fR \fISEUIL\fR, \fB\-\-threshold\fR=\fISEUIL\fR" Spcifie le seuil entre le bruit et le signal. Les luminosits des pixels en dessous du seuil sont considres comme du bruit et celles au dessus comme des pixels chauds. .I SEUIL doit tre un nombre entre 0 et 100 suivi par un caratre pourcent .RB ( % ). Le dfaut est .BR 10% . .IP "\fB\-i\fR, \fB\-\-invert\fR" Inverse l'image. Si cette option est spcifie, les pixels morts sont trouvs dans une image qui serait autrement blanche au lieu des pixels chauds dans une image noire. .IP "\fB\-c\fR, \fB\-\-comments\fR" Fournit les commentaires avec les luminosits des blocs de pixels. Ce peut tre utile pour affiner le fichier des bocs de pixels la main. .IP "\fB\-\-help\fR" Affiche un court texte d'aide et sort immdiatement. .IP "\fB\-\-version\fR" Affiche l'information sur la version et sort immdiatement. .SH BUGS Merci de faire parvenir les rapports de bug en anglais : . .SH COPYRIGHT Copyright \(co 2003, 2004, 2005 Martin Dickopp .PP Traduction franaise par : Copyright \(co 2004, 2005 Stephan Peccini .PP Jpeghopt est libre; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donne, tant pour des raisons COMMERCIALES que pour RPONDRE UN BESOIN PARTICULIER. .SH "VOIR AUSSI" .BR jpegpixi (1) .PP The jpegpixi homepage: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/fr/jpegpixi.1.in0000644000000000000000000001352010340156012013701 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2002, 2003, 2004 Martin Dickopp . .\" The French translation of this manual page is .\" Copyright (C) 2004 Stephan Peccini . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGPIXI 1 26-Sep-2004 "@PACKAGE_STRING@" "Commandes utilisateur" .SH NAME jpegpixi \- interpolation des pixels dans les fichiers image JFIF (JPEG) .SH SYNOPSIS .B jpegpixi .RI [ OPTION ]...\& .I SOURCE DEST [[\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]]... .SH DESCRIPTION Jpegpixi interpole les pixels ou les blocs de pixels des fichiers images JFIF (appels communment "images JPEG"). Il est utile de corriger les images issues d'une camra numrique avec des dfauts. Seuls les blocs DCT qui contiennent les pixels devant tre interpols sont dcods et rencods, et le rencodage est ralis avec exactement les mmes paramtres que ceux avec lesquels l'image a t initialement encode. Ainsi, la qualit d'image est prserve autant que possible. .PP .I SOURCE et .I DEST sont les noms des fichiers source et destination, respectivement. Dans les deux cas, .B \- peut tre utilis ; il correspond l'entre standard ou la sortie standard. .PP Le fichier destination est suivi par les spcifications des pixels ou blocs de pixels. Cette suite de spcifications dmarre avec un argument optionnel de direction .RI ( D ), qui peut tre .B 2 pour une interpolation bi-dimensionnelle (le dfaut), .B V ou .B v pour une interpolation uni-dimensionnelle verticale (exemple : pour supprimer les bandes horizontales), ou .B H ou .B h pour une interpolation uni-dimensionnelle horizontale. .IR X , Y sont les coordonnes du pixel ou du coin haut-gauche du bloc de pixels. .I S est la taille du bloc de pixel (1 par dfaut). Alternativement, des tailles spares peuvent tre spcifies pour la largeur .RI ( SX ) et la hauteur .RI ( SY ). .PP Tous les nombres .RI ( X , .IR Y , .IR S , .IR SX , .IR SY ) peuvent tre exprims soit comme des coordonnes/tailles absolues, soit comme des pourcentages de la taille de l'image. Si un nombre est suivi par le caractre pourcent .RB ( % ), il est interprt comme un pourcentage, sinon comme une valeur absolue. .SH OPTIONS .IP "\fB\-f\fR \fIFICHIER\fR, \fB\-\-blocks\-file\fR=\fIFICHIER\fR" Lit les spcifications des blocs de pixels depuis le fichier .I FICHIER en plus de la ligne de commande. Le fichier doit contenir une spcification ([\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]) par ligne. Les lignes vides sont ignores. Le fichier peut aussi contenir des commentaires, qui commencent par un dise .RB ( # ) et vont jusqu' la fin de la ligne .IP "\fB\-m\fR \fIMETHODE\fR, \fB\-\-method\fR=\fIMETHODE\fR" Utiliser la mthode d'interpolation .I METHODE (dfaut : .BR linear ). Voir la section METHODES D'INTERPOLATION ci-dessous. .IP "\fB\-v\fR, \fB\-\-verbose\fR" Affiche les coordonnes et la taille de chaque block de pixels qui est interpol. .IP "\fB\-i\fR, \fB\-\-info\fR" Affiche l'information propos de l'image, comme la taille, l'espace de couleurs dans lequel elle est encode, et le taux d'chantillonnage pour les diffrents composants. .IP "\fB\-s\fR, \fB\-\-strip\fR" Ne pas copier les commentaires et les marqueurs supplmentaires de la source vers la destination. Ceci supprime les images de prvisualisation, les donnes EXIF et les informations similaires. .IP "\fB\-\-help\fR" Affiche un texte court d'aide et sort immdiatement. .IP "\fB\-\-version\fR" Affiche l'information de version et sort immdiatement. .SH "INTERPOLATION METHODS" .IP "\fB0\fR, \fBav\fR, \fBaverage\fR" Les pixels adjacents au bloc de pixels sont moyenns. La couleur rsultante est assigne aux pixels du bloc. Pour une interpolation uni-dimensionnelle, ceci est fait sparment par bande horizontale ou verticale de 1 pixel de large. .IP "\fB1\fR, \fBli\fR, \fBlinear\fR" Les pixels qui sont une distance de 1 du bloc de pixels sont utiliss pour calculer une surface bilinraire (2D), ou un groupe de courbes linraires (1D), qui sert ensuite assigner les couleurs aux pixels dans le bloc. .IP "\fB2\fR, \fBqu\fR, \fBquadratic\fR" Les pixels qui sont une distance de 2 ou moins du bloc de pixels sont utiliss pour calculer une surface biquadratique (2D), ou un groupe de courbes quadratiques (1D), qui sert ensuite assigner les couleurs aux pixels dans le bloc. .IP "\fB3\fR, \fBcu\fR, \fBcubic\fR" Les pixels qui sont une distance de 3 ou moins du bloc de pixels sont utiliss pour calculer une surface bicubique (2D), ou un groupe de courbes cubiques (1D), qui sert ensuite assigner les couleurs aux pixels dans le bloc. .SH BUGS Merci de faire parvenir les rapports de bug en anglais : . .SH COPYRIGHT Copyright \(co 2002, 2003, 2004, 2005 Martin Dickopp .PP Traduction franaise par : Copyright \(co 2004 Stephan Peccini .PP Jpegpixi est libre; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donne, tant pour des raisons COMMERCIALES que pour RPONDRE UN BESOIN PARTICULIER. .SH "VOIR AUSSI" .BR jpeghotp (1) .PP The jpegpixi homepage: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/man/jpegpixi.1.in0000644000000000000000000001247710340155772013320 00000000000000.\" This file is part of jpegpixi, a program to interpolate pixels in .\" JFIF image files. .\" Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp . .\" Jpegpixi 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. . .\" Jpegpixi 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 jpegpixi; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, .\" USA. . .TH JPEGPIXI 1 20-Nov-2005 "@PACKAGE_STRING@" "User Commands" .SH NAME jpegpixi \- interpolate pixels in JFIF (JPEG) image files .SH SYNOPSIS .B jpegpixi .RI [ OPTION ]...\& .I SOURCE DEST [[\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]]... .SH DESCRIPTION Jpegpixi interpolates pixels or pixel blocks in JFIF images files (commonly referred to as "JPEG images"). This is useful to correct images from a digital camera with CCD defects. Only DCT blocks which contain pixels to be interpolated are decoded and re-encoded, and the re-encoding is performed with exactly the same parameters with which the image has originally been encoded. Therefore, the image quality is preserved as much as possible. .PP .I SOURCE and .I DEST are the filenames of the source file and the destination file, respectively. In both cases, .B \- can be used, which refers to standard input or standard output. .PP The destination filename is followed by any number of pixel or pixel block specifications. It starts with an optional direction specifier .RI ( D ), which can be .B 2 for 2-dimensional interpolation (the default), .B V or .B v for 1-dimensional vertical interpolation (e.g.\ to remove horizontal stripes), or .B H or .B h for 1-dimensional horizontal interpolation. .IR X , Y are the coordinates of the pixel or the upper-left corner of the pixel block. .I S is the size of the pixel block (1 by default). Alternatively, separate sizes can be specified for the width .RI ( SX ) and the height .RI ( SY ). .PP All numbers .RI ( X , .IR Y , .IR S , .IR SX , .IR SY ) can be expressed as absolute coordinates/sizes or percentages of the image size. If a number is followed by a percent character .RB ( % ), it is interpreted as a percentage, otherwise as an absolute number. .SH OPTIONS .IP "\fB\-f\fR \fIFILE\fR, \fB\-\-blocks\-file\fR=\fIFILE\fR" Read pixel block specifications from file .I FILE in addition to the command line. The file should contain one specification ([\fID\fR:]\fIX\fR,\fIY\fR[,\fIS\fR]|[,\fISX\fR,\fISY\fR]) per line. Empty lines are ignored. The file may also contain comments, which start with an octothorpe .RB ( # ) and extend to the end of the line. .IP "\fB\-m\fR \fIMETHOD\fR, \fB\-\-method\fR=\fIMETHOD\fR" Use interpolation method .I METHOD (default: .BR linear ). See section INTERPOLATION METHODS below. .IP "\fB\-v\fR, \fB\-\-verbose\fR" Display the coordinates and size of each pixel block that is interpolated. .IP "\fB\-i\fR, \fB\-\-info\fR" Display information about the image, such as the size of the image, the colorspace in which it is encoded, and sampling rates for the different components. .IP "\fB\-s\fR, \fB\-\-strip\fR" Do not copy comment and extra markers from the source to the destination file. This strips preview images, EXIF data, and similar information. .IP "\fB\-\-help\fR" Display a short help text and exit immediately. .IP "\fB\-\-version\fR" Display version information and exit immediately. .SH "INTERPOLATION METHODS" .IP "\fB0\fR, \fBav\fR, \fBaverage\fR" The pixels adjacent to the pixel block are averaged. The resulting color is assigned to all pixels in the block. For 1-dimensional interpolation, this is done separately for one pixel wide, horizontal or vertical stripes. .IP "\fB1\fR, \fBli\fR, \fBlinear\fR" The pixels which have a distance of 1 from the pixel block are used to calculate a bilinear surface (2-dim), or a group of linear curves (1-dim), which is then used to assign colors to the pixels in the block. .IP "\fB2\fR, \fBqu\fR, \fBquadratic\fR" The pixels which have a distance of 2 or less from the pixel block are used to calculate a biquadratic surface (2-dim), or a group of quadratic curves (1-dim), which is then used to assign colors to the pixels in the block. .IP "\fB3\fR, \fBcu\fR, \fBcubic\fR" The pixels which have a distance of 3 or less from the pixel block are used to calculate a bicubic surface (2-dim), or a group of cubic curves (1-dim), which is then used to assign colors to the pixels in the block. .SH BUGS Please report bugs to . .SH COPYRIGHT Copyright \(co 2002, 2003, 2004, 2005 Martin Dickopp .PP Jpegpixi is free software; it may be copied and/or modified under the terms of the GNU General Public License version 2 or (at your option) any later version. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .SH "SEE ALSO" .BR jpeghotp (1) .PP The jpegpixi homepage: http://www.zero\-based.org/software/jpegpixi/ . .\" Local Variables: .\" mode: nroff .\" coding: iso-8859-1 .\" End: jpegpixi-1.1.1/jfif.c0000644000000000000000000001267010340155733011311 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include "rbtree.h" #include "jpegpixi.h" /* Memory representation of JFIF image. */ struct jfif { struct jpeg_decompress_struct *jpg; jvirt_barray_ptr *coeff; struct rbtree dct_block_tree; }; /* DCT block. */ struct dct_block { int icomp; /* Component. */ int x; /* Position of the block within the component. */ int y; JCOEFPTR coeff; /* Coefficients in frequency space. */ const UINT16 *quant; /* Quantization table. */ double values [DCTSIZE2]; /* Values in pixel space. */ int dirty; /* Flag: modified? */ }; /* Previously requested DCT block. */ struct dct_block *prev_dct_block; static struct dct_block *get_block (struct jfif *jfif, int icomp, int x_block, int y_block) gcc_attr_nonnull (()); static int dct_block_cmp (const void *a, const void *b) gcc_attr_pure gcc_attr_nonnull (()); /* Initialize memory representation of JFIF image. */ struct jfif * jfif_init (struct jpeg_decompress_struct *const jpg, jvirt_barray_ptr *const coeff) { struct jfif *const jfif = xmalloc (sizeof (struct jfif)); jfif->jpg = jpg; jfif->coeff = coeff; rbtree_create (&jfif->dct_block_tree); prev_dct_block = 0; return jfif; } /* Finalize memory representation of JFIF image; store modified DCT blocks. */ void jfif_fini (struct jfif *const jfif) { struct dct_block *block = rbtree_first (&jfif->dct_block_tree); while (block != 0) { if (block->dirty) fdct (block->coeff, block->values, block->quant); block = rbtree_next (block); } rbtree_destroy (&jfif->dct_block_tree); free (jfif); } /* Return the value of a pixel. Coordinates are downsampled. */ double get_pixel (struct jfif *const jfif, const int icomp, const int x, const int y) { const struct dct_block *const block = get_block (jfif, icomp, x / DCTSIZE, y / DCTSIZE); return block->values [(x % DCTSIZE) + DCTSIZE * (y % DCTSIZE)]; } /* Set the value of a pixel. Coordinates are downsampled. */ void set_pixel (struct jfif *const jfif, const int icomp, const int x, const int y, const double value) { struct dct_block *const block = get_block (jfif, icomp, x / DCTSIZE, y / DCTSIZE); block->values [(x % DCTSIZE) + DCTSIZE * (y % DCTSIZE)] = CLAMP (value, (double)(-CENTERJSAMPLE) * 8.0, (double)(MAXJSAMPLE - CENTERJSAMPLE) * 8.0); block->dirty = 1; } /* Get or create a DCT block. */ static struct dct_block * get_block (struct jfif *const jfif, const int icomp, const int x_block, const int y_block) { struct dct_block tmp, *block; /* Test if the previously requested block is requested again (very common). */ if (prev_dct_block != 0 && prev_dct_block->icomp == icomp && prev_dct_block->x == x_block && prev_dct_block->y == y_block) return prev_dct_block; /* Try to find DCT block. */ tmp.icomp = icomp; tmp.x = x_block; tmp.y = y_block; block = rbtree_find (&jfif->dct_block_tree, &tmp, dct_block_cmp); /* DCT block does not yet exist. Create it and store it in the tree. */ if (block == 0) { const jpeg_component_info *const comp = &(jfif->jpg->comp_info [icomp]); const JBLOCKROW row = (jfif->jpg->mem->access_virt_barray) ((j_common_ptr)jfif->jpg, jfif->coeff [icomp], (JDIMENSION)y_block, (JDIMENSION)1, TRUE) [0]; const UINT16 *const quant = jfif->jpg->quant_tbl_ptrs [comp->quant_tbl_no]->quantval; tmp.coeff = row [x_block]; tmp.quant = quant; idct (tmp.values, row [x_block], quant); tmp.dirty = 0; if ((block = rbtree_insert (&jfif->dct_block_tree, &tmp, sizeof tmp, dct_block_cmp, 0)) == 0) mem_alloc_failed (); } prev_dct_block = block; return block; } /* Compare the components and coordinates of two DCT blocks. */ static int dct_block_cmp (const void *const a, const void *const b) { const struct dct_block *const dct_block_a = a; const struct dct_block *const dct_block_b = b; if (dct_block_a->icomp < dct_block_b->icomp) return -1; else if (dct_block_a->icomp > dct_block_b->icomp) return 1; else if (dct_block_a->x < dct_block_b->x) return -1; else if (dct_block_a->x > dct_block_b->x) return 1; else if (dct_block_a->y < dct_block_b->y) return -1; else if (dct_block_a->y > dct_block_b->y) return 1; else return 0; } jpegpixi-1.1.1/Makefile.in0000644000000000000000000006242510340157443012277 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = jpegpixi$(EXEEXT) jpeghotp$(EXEEXT) subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/jpegwrapper.h.in $(top_srcdir)/configure AUTHORS \ COPYING ChangeLog INSTALL NEWS depcomp install-sh missing \ strerror.c ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = jpegwrapper.h am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_jpeghotp_OBJECTS = consolidate.$(OBJEXT) jpeghotp.$(OBJEXT) \ opthotp.$(OBJEXT) parsenum.$(OBJEXT) rbtree.$(OBJEXT) \ util.$(OBJEXT) nodist_jpeghotp_OBJECTS = jpeghotp_OBJECTS = $(am_jpeghotp_OBJECTS) $(nodist_jpeghotp_OBJECTS) jpeghotp_DEPENDENCIES = @LIBOBJS@ am_jpegpixi_OBJECTS = consolidate.$(OBJEXT) dct.$(OBJEXT) \ file.$(OBJEXT) interpolate.$(OBJEXT) jfif.$(OBJEXT) \ jpegpixi.$(OBJEXT) optpixi.$(OBJEXT) parsenum.$(OBJEXT) \ rbtree.$(OBJEXT) util.$(OBJEXT) weights.$(OBJEXT) nodist_jpegpixi_OBJECTS = jpegpixi_OBJECTS = $(am_jpegpixi_OBJECTS) $(nodist_jpegpixi_OBJECTS) jpegpixi_DEPENDENCIES = @LIBOBJS@ DEFAULT_INCLUDES = -I. -I$(srcdir) -I. depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(jpeghotp_SOURCES) $(nodist_jpeghotp_SOURCES) \ $(jpegpixi_SOURCES) $(nodist_jpegpixi_SOURCES) DIST_SOURCES = $(jpeghotp_SOURCES) $(jpegpixi_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MATHLIB = @MATHLIB@ MD_NO_CONST = @MD_NO_CONST@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OPAG = @OPAG@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SUBDIR_PO = @SUBDIR_PO@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = . man @SUBDIR_PO@ DIST_SUBDIRS = . man po AM_CPPFLAGS = -DLOCALEDIR="\"$(datadir)/locale\"" jpegpixi_SOURCES = consolidate.c dct.c file.c interpolate.c jfif.c jpegpixi.c jpegpixi.h optpixi.c optpixi.h \ parsenum.c rbtree.c rbtree.h util.c util.h weights.c nodist_jpegpixi_SOURCES = jpegwrapper.h jpegpixi_LDADD = @LIBOBJS@ @MATHLIB@ jpeghotp_SOURCES = consolidate.c jpeghotp.c jpegpixi.h opthotp.c opthotp.h parsenum.c rbtree.c rbtree.h util.c util.h nodist_jpeghotp_SOURCES = jpegwrapper.h jpeghotp_LDADD = @LIBOBJS@ BUILT_SOURCES = jpegwrapper.h optpixi.c optpixi.h opthotp.c opthotp.h po/POTSOURCES EXTRA_DIST = jpegpixi.opag jpeghotp.opag README.jpeglib po/POTSOURCES DISTCLEANFILES = jpegwrapper.h po/POTSOURCES all: $(BUILT_SOURCES) config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .o .obj am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 jpegwrapper.h: $(top_builddir)/config.status $(srcdir)/jpegwrapper.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) installcheck-binPROGRAMS: $(bin_PROGRAMS) bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \ case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \ *" $$p "* | *" $(srcdir)/$$p "*) continue;; \ esac; \ f=`echo "$$p" | \ sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ for opt in --help --version; do \ if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \ 2>c$${pid}_.err &2; bad=1; fi; \ done; \ done; rm -f c$${pid}_.???; exit $$bad jpeghotp$(EXEEXT): $(jpeghotp_OBJECTS) $(jpeghotp_DEPENDENCIES) @rm -f jpeghotp$(EXEEXT) $(LINK) $(jpeghotp_LDFLAGS) $(jpeghotp_OBJECTS) $(jpeghotp_LDADD) $(LIBS) jpegpixi$(EXEEXT): $(jpegpixi_OBJECTS) $(jpegpixi_DEPENDENCIES) @rm -f jpegpixi$(EXEEXT) $(LINK) $(jpegpixi_LDFLAGS) $(jpegpixi_OBJECTS) $(jpegpixi_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strerror.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/consolidate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interpolate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jfif.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jpeghotp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jpegpixi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opthotp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optpixi.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parsenum.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rbtree.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/weights.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/man $(distdir)/man/de $(distdir)/man/fi $(distdir)/man/fr $(distdir)/po @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-recursive all-am: Makefile $(PROGRAMS) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(DEPDIR) ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-recursive install-man: installcheck-am: installcheck-binPROGRAMS maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf $(DEPDIR) ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-binPROGRAMS clean-generic clean-recursive \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-compile distclean-generic distclean-hdr \ distclean-recursive distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installcheck-binPROGRAMS installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-recursive pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am optpixi.h: jpegpixi.opag optpixi.c: optpixi.h jpegpixi.opag @if test "@OPAG@" = missing; then \ echo "You have modified \`jpegpixi.opag', but you do not seem to have the \`opag'"; \ echo "program installed on your system. Check the \`README' file; it tells you"; \ echo "where to get this program."; \ exit 1; \ fi @OPAG@ --gcc --nls-error-text=_ --nls-help-text=_ $(srcdir)/jpegpixi.opag optpixi.c optpixi.h opthotp.h: jpeghotp.opag opthotp.c: opthotp.h jpeghotp.opag @if test "@OPAG@" = missing; then \ echo "You have modified \`jpeghotp.opag', but you do not seem to have the \`opag'"; \ echo "program installed on your system. Check the \`README' file; it tells you"; \ echo "where to get this program."; \ exit 1; \ fi @OPAG@ --gcc --nls-error-text=_ --nls-help-text=_ $(srcdir)/jpeghotp.opag opthotp.c opthotp.h po/POTSOURCES: $(jpegpixi_SOURCES) $(jpeghotp_SOURCES) jpegpixi.opag jpeghotp.opag @{ for p in $(jpegpixi_SOURCES) $(jpeghotp_SOURCES); do \ echo "$$p"; \ done; } > po/POTSOURCES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: jpegpixi-1.1.1/AUTHORS0000644000000000000000000000050310230710036011256 00000000000000Authors of jpegpixi =================== Original author and current maintainer -------------------------------------- Martin Dickopp Translations ------------ Finnish: Jarno Elonen French: Stephan Peccini German: Martin Dickopp jpegpixi-1.1.1/optpixi.c0000644000000000000000000002750410340157454012073 00000000000000/* This file has been generated with opag 0.8.0. */ /* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004, 2005 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #ifndef STR_ERR_UNKNOWN_LONG_OPT # define STR_ERR_UNKNOWN_LONG_OPT _("%s: unrecognized option `--%s'\n") #endif #ifndef STR_ERR_LONG_OPT_AMBIGUOUS # define STR_ERR_LONG_OPT_AMBIGUOUS _("%s: option `--%s' is ambiguous\n") #endif #ifndef STR_ERR_MISSING_ARG_LONG # define STR_ERR_MISSING_ARG_LONG _("%s: option `--%s' requires an argument\n") #endif #ifndef STR_ERR_UNEXPEC_ARG_LONG # define STR_ERR_UNEXPEC_ARG_LONG _("%s: option `--%s' doesn't allow an argument\n") #endif #ifndef STR_ERR_UNKNOWN_SHORT_OPT # define STR_ERR_UNKNOWN_SHORT_OPT _("%s: unrecognized option `-%c'\n") #endif #ifndef STR_ERR_MISSING_ARG_SHORT # define STR_ERR_MISSING_ARG_SHORT _("%s: option `-%c' requires an argument\n") #endif #define STR_HELP_BLOCKS_FILE "\ -f, --blocks-file=FILE read pixel block specifications from FILE\n" #define STR_HELP_METHOD "\ -m, --method=METHOD use interpolation method METHOD [default: linear]\n" #define STR_HELP_VERBOSE "\ -v, --verbose display coordinates and size of each pixel block\n\ that is interpolated\n" #define STR_HELP_INFO "\ -i, --info display information about the image\n" #define STR_HELP_STRIP "\ -s, --strip do not copy comment and extra markers\n" #define STR_HELP_HELP "\ --help display this help text and exit\n" #define STR_HELP_VERSION "\ --version display version information and exit\n" #define STR_HELP _("\ -f, --blocks-file=FILE read pixel block specifications from FILE\n\ -m, --method=METHOD use interpolation method METHOD [default: linear]\n\ -v, --verbose display coordinates and size of each pixel block\n\ that is interpolated\n\ -i, --info display information about the image\n\ -s, --strip do not copy comment and extra markers\n\ --help display this help text and exit\n\ --version display version information and exit\n") /* Set to 1 if option --blocks-file (-f) has been specified. */ char opt_blocks_file; /* Set to 1 if option --method (-m) has been specified. */ char opt_method; /* Set to 1 if option --verbose (-v) has been specified. */ char opt_verbose; /* Set to 1 if option --info (-i) has been specified. */ char opt_info; /* Set to 1 if option --strip (-s) has been specified. */ char opt_strip; /* Set to 1 if option --help has been specified. */ char opt_help; /* Set to 1 if option --version has been specified. */ char opt_version; /* Argument to option --blocks-file (-f). */ const char *arg_blocks_file; /* Argument to option --method (-m). */ const char *arg_method; /* Parse command line options. Return index of first non-option argument, or -1 if an error is encountered. */ int parse_options (const char *const program_name, const int argc, char **const argv) { static const char *const optstr__blocks_file = "blocks-file"; static const char *const optstr__method = "method"; static const char *const optstr__verbose = "verbose"; static const char *const optstr__info = "info"; static const char *const optstr__strip = "strip"; static const char *const optstr__help = "help"; static const char *const optstr__version = "version"; int i = 0; opt_blocks_file = 0; opt_method = 0; opt_verbose = 0; opt_info = 0; opt_strip = 0; opt_help = 0; opt_version = 0; arg_blocks_file = 0; arg_method = 0; while (++i < argc) { const char *option = argv [i]; if (*option != '-') return i; else if (*++option == '\0') return i; else if (*option == '-') { const char *argument; size_t option_len; ++option; if ((argument = strchr (option, '=')) == option) goto error_unknown_long_opt; else if (argument == 0) option_len = strlen (option); else option_len = argument++ - option; switch (*option) { case '\0': return i + 1; case 'b': if (strncmp (option + 1, optstr__blocks_file + 1, option_len - 1) == 0) { if (argument != 0) arg_blocks_file = argument; else if (++i < argc) arg_blocks_file = argv [i]; else { option = optstr__blocks_file; goto error_missing_arg_long; } opt_blocks_file = 1; break; } goto error_unknown_long_opt; case 'h': if (strncmp (option + 1, optstr__help + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__help; goto error_unexpec_arg_long; } opt_help = 1; return i + 1; } goto error_unknown_long_opt; case 'i': if (strncmp (option + 1, optstr__info + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__info; goto error_unexpec_arg_long; } opt_info = 1; break; } goto error_unknown_long_opt; case 'm': if (strncmp (option + 1, optstr__method + 1, option_len - 1) == 0) { if (argument != 0) arg_method = argument; else if (++i < argc) arg_method = argv [i]; else { option = optstr__method; goto error_missing_arg_long; } opt_method = 1; break; } goto error_unknown_long_opt; case 's': if (strncmp (option + 1, optstr__strip + 1, option_len - 1) == 0) { if (argument != 0) { option = optstr__strip; goto error_unexpec_arg_long; } opt_strip = 1; break; } goto error_unknown_long_opt; case 'v': if (strncmp (option + 1, optstr__verbose + 1, option_len - 1) == 0) { if (option_len <= 3) goto error_long_opt_ambiguous; if (argument != 0) { option = optstr__verbose; goto error_unexpec_arg_long; } opt_verbose = 1; break; } if (strncmp (option + 1, optstr__version + 1, option_len - 1) == 0) { if (option_len <= 3) goto error_long_opt_ambiguous; if (argument != 0) { option = optstr__version; goto error_unexpec_arg_long; } opt_version = 1; return i + 1; } default: error_unknown_long_opt: fprintf (stderr, STR_ERR_UNKNOWN_LONG_OPT, program_name, option); return -1; error_long_opt_ambiguous: fprintf (stderr, STR_ERR_LONG_OPT_AMBIGUOUS, program_name, option); return -1; error_missing_arg_long: fprintf (stderr, STR_ERR_MISSING_ARG_LONG, program_name, option); return -1; error_unexpec_arg_long: fprintf (stderr, STR_ERR_UNEXPEC_ARG_LONG, program_name, option); return -1; } } else do { switch (*option) { case 'f': if (option [1] != '\0') arg_blocks_file = option + 1; else if (++i < argc) arg_blocks_file = argv [i]; else goto error_missing_arg_short; option = "\0"; opt_blocks_file = 1; break; case 'i': opt_info = 1; break; case 'm': if (option [1] != '\0') arg_method = option + 1; else if (++i < argc) arg_method = argv [i]; else goto error_missing_arg_short; option = "\0"; opt_method = 1; break; case 's': opt_strip = 1; break; case 'v': opt_verbose = 1; break; default: fprintf (stderr, STR_ERR_UNKNOWN_SHORT_OPT, program_name, *option); return -1; error_missing_arg_short: fprintf (stderr, STR_ERR_MISSING_ARG_SHORT, program_name, *option); return -1; } } while (*++option != '\0'); } return i; } /* Display text in response to the --help command line option. */ void display_help_text (void) { printf (_("Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n\n" "Options:\n"), invocation_name); fputs (STR_HELP, stdout); /* TRANSLATORS: Please align the right text column in the "Interpolation methods" section with the right text column in the "Options" section. */ fputs (_("\nInterpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n"), stdout); /* TRANSLATORS: Please include the information that bug reports should be send in English. E.g., translate "Please report bugs (in English) to ...". */ fputs (_("\nPlease report bugs to .\n"), stdout); } /* Display text in response to the --version command line option. */ void display_version_text (void) { fputs ("jpegpixi (" PACKAGE_NAME ") " PACKAGE_VERSION "\n", stdout); /* TRANSLATORS: Please leave the copyright statement intact, but replace "(C)" with the "copyright sign" (Unicode character ). */ fputs (_("Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n\n"), stdout); /* TRANSLATORS: Please don't translate the warranty disclaimer literally, but replace it with a text which has a legal effect as close as possible to the original in the jurisdiction(s) where your language is used. If unsure, replace it with a translation of "There is no warranty, to the extent allowed by law." */ fputs (_("This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n"), stdout); } jpegpixi-1.1.1/util.h0000644000000000000000000000666510340155705011363 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002, 2003, 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UTIL_H #define UTIL_H 1 #if HAVE_SYS_TYPES_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #else # if HAVE_STRINGS_H # include # endif #endif #if HAVE_INTTYPES_H # include #else # if HAVE_STDINT_H # include # endif #endif #if !HAVE_DECL_STRCHR extern char *strchr (), *strrchr (); #endif #if HAVE_STRERROR # if !HAVE_DECL_STRERROR extern char *strerror (); # endif #else extern char *strerror (int n); #endif #if !HAVE_SIZE_T typedef unsigned int size_t; #endif #if !HAVE_SSIZE_T typedef int ssize_t; #endif #if !HAVE_PTRDIFF_T typedef int ptrdiff_t; #endif /* Native Language Support. */ #undef _ #if HAVE_NLS # include # define _(str) gettext (str) #else # define _(str) (str) #endif /* GCC attributes. */ #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5) # define gcc_attr_noreturn __attribute__ ((noreturn)) # define gcc_attr_const __attribute__ ((const)) #else # define gcc_attr_noreturn /* empty */ # define gcc_attr_const /* empty */ #endif #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) # define gcc_attr_pure __attribute__ ((pure)) # define gcc_attr_malloc __attribute__ ((malloc)) #else # define gcc_attr_pure /* empty */ # define gcc_attr_malloc /* empty */ #endif #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) # define gcc_attr_nonnull(x) __attribute__ ((nonnull x)) #else # define gcc_attr_nonnull(x) /* empty */ #endif /* Number of elements in an array. */ #define numof(a) (sizeof (a) / sizeof *(a)) /* Minimum and maximum. */ #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define MAX(a,b) ((a) > (b) ? (a) : (b)) /* Clamp a value between a minimum and a maximum. */ #define CLAMP(v,lo,hi) ((v) < (lo) ? (lo) : (v) > (hi) ? (hi) : (v)) /* Do two lines overlap? */ #define OVERLAP1D(x1,w1,x2,w2) ((x1) + (w1) > (x2) && (x1) < (x2) + (w2)) /* Do two rectangles overlap? */ #define OVERLAP2D(x1,y1,w1,h1,x2,y2,w2,h2) (OVERLAP1D ((x1), (w1), (x2), (w2)) && OVERLAP1D ((y1), (h1), (y2), (h2))) /* Name under which the program has been invoked. */ extern const char *invocation_name; /* malloc and realloc wrappers. Terminate the program if memory allocation fails. */ extern void *xmalloc (size_t size) gcc_attr_malloc; extern void *xrealloc (void *ptr, size_t size); /* Report a failure to allocate memory and terminate the program. */ extern void mem_alloc_failed (void) gcc_attr_noreturn; #endif jpegpixi-1.1.1/parsenum.c0000644000000000000000000000407110340155664012224 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #if STDC_HEADERS # include #else # define isdigit(c) ((c) >= '0' && (c) <= '9') #endif #include "jpegpixi.h" /* Parse a number. Return 1 if it is absolute, 0 if it is relative, -1 in case of an error. */ int parse_number (const char **const strptr, unsigned int *const numptr) { if (!isdigit ((unsigned char)**strptr) && **strptr != '.') return -1; *numptr = 0; while (isdigit ((unsigned char)**strptr)) { *numptr = *numptr * 10 + (*(*strptr)++ - '0'); if (*numptr >= DENOM) return -1; } if (**strptr == '%' || **strptr == '.') { ++*strptr; if (*numptr > 100) return -1; *numptr *= (DENOM / 100); if (*(*strptr - 1) == '.') { unsigned int value = DENOM / 1000; while (isdigit ((unsigned char)**strptr)) { *numptr += value * (*(*strptr)++ - '0'); value /= 10; } if (**strptr == '%') ++*strptr; else return -1; if (*numptr > DENOM) return -1; } return 0; } return 1; } jpegpixi-1.1.1/aclocal.m40000644000000000000000000007465310340157441012076 00000000000000# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([acinclude.m4]) jpegpixi-1.1.1/jpegpixi.opag0000644000000000000000000001035710340155633012715 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2003, 2004, 2005 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include %% f blocks-file "=FILE read pixel block specifications from FILE" reqarg m method "=METHOD use interpolation method METHOD [default: linear]" reqarg v verbose "display coordinates and size of each pixel block that is interpolated" i info "display information about the image" s strip "do not copy comment and extra markers" help "display this help text and exit" return version "display version information and exit" return %% /* Display text in response to the --help command line option. */ void display_help_text (void) { printf (_("Usage: %s [OPTION]... SOURCE DEST [[D:]X,Y[,S]|[,SX,SY]]...\n" "Interpolate pixels in JFIF image files.\n\n" "Pixel block specification:\n" " D can be `V' or `v' (vertical 1D interpolation),\n" " `H' or `h' (horizontal 1D interpolation),\n" " `2' (2D interpolation) [default];\n" " X,Y specifies the top left corner of the pixel block to be interpolated;\n" " S specifies the size of the block [default: 1];\n" " SX,SY specifies separate sizes for the X and Y direction.\n" "All numbers can be absolute coordinates/sizes, or percentages of the image\n" "size (if followed by a `%%' character).\n\n" "Options:\n"), invocation_name); fputs (STR_HELP, stdout); /* TRANSLATORS: Please align the right text column in the "Interpolation methods" section with the right text column in the "Options" section. */ fputs (_("\nInterpolation methods:\n" " 0, av, average average of adjacent pixels\n" " 1, li, linear (bi)linear interpolation\n" " 2, qu, quadratic (bi)quadratic interpolation\n" " 3, cu, cubic (bi)cubic interpolation\n"), stdout); /* TRANSLATORS: Please include the information that bug reports should be send in English. E.g., translate "Please report bugs (in English) to ...". */ fputs (_("\nPlease report bugs to .\n"), stdout); } /* Display text in response to the --version command line option. */ void display_version_text (void) { fputs ("jpegpixi (" PACKAGE_NAME ") " PACKAGE_VERSION "\n", stdout); /* TRANSLATORS: Please leave the copyright statement intact, but replace "(C)" with the "copyright sign" (Unicode character ). */ fputs (_("Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp\n\n"), stdout); /* TRANSLATORS: Please don't translate the warranty disclaimer literally, but replace it with a text which has a legal effect as close as possible to the original in the jurisdiction(s) where your language is used. If unsure, replace it with a translation of "There is no warranty, to the extent allowed by law." */ fputs (_("This program is free software; it may be copied and/or modified under the\n" "terms of the GNU General Public License version 2 or (at your option) any\n" "later version. There is NO warranty; not even for MERCHANTABILITY or FIT-\n" "NESS FOR A PARTICULAR PURPOSE.\n"), stdout); } jpegpixi-1.1.1/configure.ac0000644000000000000000000000421310340154653012507 00000000000000dnl Process this file with autoconf to produce configure. dnl This file is part of jpegpixi, a program to interpolate pixels in dnl JFIF image files. dnl Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp dnl dnl This file is free software; the copyright holder gives unlimited dnl permission to copy and/or distribute it, with or without dnl modifications, as long as this notice is preserved. dnl 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. AC_PREREQ(2.59) AC_INIT([jpegpixi], [1.1.1], [martin@zero-based.org]) AC_CONFIG_SRCDIR([jpegpixi.c]) AC_COPYRIGHT([Copyright (C) 2002, 2003, 2004, 2005 Martin Dickopp]) AM_INIT_AUTOMAKE([gnu no-define std-options 1.9]) AC_CONFIG_HEADER([config.h]) MD_PATH_PROG([opag]) AC_PROG_CC if test "x$ac_cv_prog_cc_stdc" = xno; then AC_MSG_ERROR([an ANSI C compiler is required to build this package]) fi AC_C_CONST if test $ac_cv_c_const = no; then MD_NO_CONST=1 else MD_NO_CONST=0 fi AC_SUBST([MD_NO_CONST]) AC_CHECK_HEADERS([errno.h float.h malloc.h math.h], [], [], [AC_INCLUDES_DEFAULT]) AC_CHECK_DECLS([strerror, strchr], [], [], [AC_INCLUDES_DEFAULT]) AC_CHECK_TYPES([size_t, ssize_t, ptrdiff_t]) MATHLIB= save_LIBS="$LIBS" AC_SEARCH_LIBS([fabs], [m], [MATHLIB="-lm"]) LIBS="$save_LIBS" AC_SUBST([MATHLIB]) AC_SEARCH_LIBS([remove], [posix]) AC_SEARCH_LIBS([strerror], [cposix]) AC_CHECK_FUNCS([fgetc_unlocked]) AC_REPLACE_FUNCS([strerror]) if test "x$ac_cv_func_strerror" != xyes; then MD_CHECK_TYPE_SYS_ERRLIST fi MD_PATH(jpeglib, jpeglib.h, jpeg, jpeg_start_decompress) if test $md_path_have_jpeglib = no; then AC_MSG_ERROR([jpeglib is required to build this package]) fi MD_NLS CPPFLAGS="$JPEGLIB_CPPFLAGS $CPPFLAGS" LIBS="$JPEGLIB_LIBS $LIBS" AC_CONFIG_FILES(Makefile man/Makefile man/de/Makefile man/fi/Makefile man/fr/Makefile po/Makefile jpegwrapper.h man/jpegpixi.1 man/jpeghotp.1 man/de/jpegpixi.1 man/de/jpeghotp.1 man/fi/jpegpixi.1 man/fi/jpeghotp.1 man/fr/jpegpixi.1 man/fr/jpeghotp.1) AC_OUTPUT jpegpixi-1.1.1/util.c0000644000000000000000000000544210340155554011350 00000000000000/* This file is part of jpegpixi, a program to interpolate pixels in JFIF image files. Copyright (C) 2002 Martin Dickopp Jpegpixi 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. Jpegpixi 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 jpegpixi; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "util.h" #include #if HAVE_UNISTD_H # include #endif #if !STDC_HEADERS # if HAVE_MALLOC_H # include # else extern void *malloc (), *realloc (); # endif #endif #ifndef STDERR_FILENO # define STDERR_FILENO 2 #endif /* Name under which the program has been invoked. */ const char *invocation_name; /* malloc wrapper. Terminates the program if memory allocation fails. */ void * xmalloc (const size_t size) { void *const ptr = malloc (size); if (ptr == 0) mem_alloc_failed (); return ptr; } /* realloc wrapper. Terminates the program if memory allocation fails. */ void * xrealloc (void *ptr, const size_t size) { ptr = realloc (ptr, size); if (ptr == 0) mem_alloc_failed (); return ptr; } /* Report a failure to allocate memory and terminate the program. This function must not do anything which could cause further memory allocation attempts, including not using `fprintf'. */ void mem_alloc_failed (void) { { const char *ptr = invocation_name; size_t len = strlen (ptr); while (len > 0) { const ssize_t chars_written = write (STDERR_FILENO, ptr, len); /* If writing to standard error fails, terminate right away. */ if (chars_written == -1) exit (1); len -= (size_t)chars_written; ptr += (ptrdiff_t)chars_written; } } { static const char message [] = ": out of memory\n"; const char *ptr = message; size_t len = numof (message) - 1; while (len > 0) { const ssize_t chars_written = write (STDERR_FILENO, ptr, len); /* If writing to standard error fails, terminate right away. */ if (chars_written == -1) exit (1); len -= (size_t)chars_written; ptr += (ptrdiff_t)chars_written; } } exit (1); }