diff options
author | dcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2010-10-10 06:54:21 +0000 |
---|---|---|
committer | dcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2010-10-10 06:54:21 +0000 |
commit | b725238afa332f688ae27aa9c597a346958dcd71 (patch) | |
tree | 587c1156697911191d88e0b3b7f6ab8f7635db94 /trunk | |
parent | 71debc4426122ffeeb105a75143253eb583f055b (diff) |
Display libjpeg-turbo version/copyrights in run-time programs
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@247 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/cjpeg.c | 7 | ||||
-rw-r--r-- | trunk/configure.ac | 1 | ||||
-rw-r--r-- | trunk/djpeg.c | 7 | ||||
-rw-r--r-- | trunk/jpegtran.c | 7 | ||||
-rw-r--r-- | trunk/jversion.h | 25 |
5 files changed, 43 insertions, 4 deletions
diff --git a/trunk/cjpeg.c b/trunk/cjpeg.c index f2a929f..648abf2 100644 --- a/trunk/cjpeg.c +++ b/trunk/cjpeg.c @@ -2,6 +2,7 @@ * cjpeg.c * * Copyright (C) 1991-1998, Thomas G. Lane. + * Copyright (C) 2010, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -25,6 +26,7 @@ #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ #include "jversion.h" /* for version message */ +#include "config.h" #ifdef USE_CCOMMAND /* command-line reader for Macintosh */ #ifdef __MWERKS__ @@ -277,7 +279,10 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv, static boolean printed_version = FALSE; if (! printed_version) { - fprintf(stderr, "Independent JPEG Group's CJPEG, version %s\n%s\n", + fprintf(stderr, "%s version %s (build %s)\n", + PACKAGE_NAME, VERSION, BUILD); + fprintf(stderr, "%s\n\n", LJTCOPYRIGHT); + fprintf(stderr, "Based on Independent JPEG Group's libjpeg, version %s\n%s\n\n", JVERSION, JCOPYRIGHT); printed_version = TRUE; } diff --git a/trunk/configure.ac b/trunk/configure.ac index c419983..a2b4f3f 100644 --- a/trunk/configure.ac +++ b/trunk/configure.ac @@ -202,6 +202,7 @@ esac AC_SUBST(RPMARCH) AC_SUBST(DEBARCH) AC_SUBST(BUILD) +AC_DEFINE_UNQUOTED([BUILD], "$BUILD", [Build number]) # jconfig.h is the file we use, but we have another before that to # fool autoheader. the reason is that we include this header in our diff --git a/trunk/djpeg.c b/trunk/djpeg.c index e099e90..3f261f1 100644 --- a/trunk/djpeg.c +++ b/trunk/djpeg.c @@ -2,6 +2,7 @@ * djpeg.c * * Copyright (C) 1991-1997, Thomas G. Lane. + * Copyright (C) 2010, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -25,6 +26,7 @@ #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ #include "jversion.h" /* for version message */ +#include "config.h" #include <ctype.h> /* to declare isprint() */ @@ -240,7 +242,10 @@ parse_switches (j_decompress_ptr cinfo, int argc, char **argv, static boolean printed_version = FALSE; if (! printed_version) { - fprintf(stderr, "Independent JPEG Group's DJPEG, version %s\n%s\n", + fprintf(stderr, "%s version %s (build %s)\n", + PACKAGE_NAME, VERSION, BUILD); + fprintf(stderr, "%s\n\n", LJTCOPYRIGHT); + fprintf(stderr, "Based on Independent JPEG Group's libjpeg, version %s\n%s\n\n", JVERSION, JCOPYRIGHT); printed_version = TRUE; } diff --git a/trunk/jpegtran.c b/trunk/jpegtran.c index 326973c..73dbe53 100644 --- a/trunk/jpegtran.c +++ b/trunk/jpegtran.c @@ -2,6 +2,7 @@ * jpegtran.c * * Copyright (C) 1995-2010, Thomas G. Lane, Guido Vollbeding. + * Copyright (C) 2010, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -14,6 +15,7 @@ #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */ #include "transupp.h" /* Support routines for jpegtran */ #include "jversion.h" /* for version message */ +#include "config.h" #ifdef USE_CCOMMAND /* command-line reader for Macintosh */ #ifdef __MWERKS__ @@ -199,7 +201,10 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv, static boolean printed_version = FALSE; if (! printed_version) { - fprintf(stderr, "Independent JPEG Group's JPEGTRAN, version %s\n%s\n", + fprintf(stderr, "%s version %s (build %s)\n", + PACKAGE_NAME, VERSION, BUILD); + fprintf(stderr, "%s\n\n", LJTCOPYRIGHT); + fprintf(stderr, "Based on Independent JPEG Group's libjpeg, version %s\n%s\n\n", JVERSION, JCOPYRIGHT); printed_version = TRUE; } diff --git a/trunk/jversion.h b/trunk/jversion.h index 6472c58..82a7e0d 100644 --- a/trunk/jversion.h +++ b/trunk/jversion.h @@ -1,7 +1,8 @@ /* * jversion.h * - * Copyright (C) 1991-1998, Thomas G. Lane. + * Copyright (C) 1991-2010, Thomas G. Lane, Guido Vollbeding. + * Copyright (C) 2010, D. R. Commander. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -9,6 +10,28 @@ */ +#if JPEG_LIB_VERSION >= 80 + +#define JVERSION "8b 16-May-2010" + +#define JCOPYRIGHT "Copyright (C) 2010, Thomas G. Lane, Guido Vollbeding" + +#elif JPEG_LIB_VERSION >= 70 + +#define JVERSION "7 27-Jun-2009" + +#define JCOPYRIGHT "Copyright (C) 2009, Thomas G. Lane, Guido Vollbeding" + +#else + #define JVERSION "6b 27-Mar-1998" #define JCOPYRIGHT "Copyright (C) 1998, Thomas G. Lane" + +#endif + +#define LJTCOPYRIGHT "Copyright (C) 1999-2006 MIYASAKA Masaru\n" \ + "Copyright (C) 2004 Landmark Graphics Corporation\n" \ + "Copyright (C) 2005-2007 Sun Microsystems, Inc.\n" \ + "Copyright (C) 2009 Pierre Ossman for Cendio AB\n" \ + "Copyright (C) 2009-2010 D. R. Commander" |