unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: emacs-devel@gnu.org
Subject: configure and libjpeg version on openSUSE 10.2
Date: Sat, 24 Mar 2007 15:04:33 +0100	[thread overview]
Message-ID: <v9zm62d9fy.fsf@marauder.physik.uni-ulm.de> (raw)

Hi,

on openSUSE 10.2, configure (updated from CVS today) complains about
libjpeg being too old: "not version 6b or later".

| $ date
| Sat Mar 24 14:53:09 CET 2007
| $ ../emacs/configure --prefix=/import/xtra/emacs/HEAD --with-gtk \
|   --exec-prefix=/import/xtra/emacs/HEAD-i686
| checking build system type... i686-pc-linux-gnu
| [...]
| checking jerror.h usability... yes
| checking jerror.h presence... yes
| checking for jerror.h... yes
| checking for jpeg_destroy_compress in -ljpeg... yes
| configure: WARNING: libjpeg found, but not version 6b or later
| checking png.h usability... yes
| [...]
|   What window system should Emacs use?                    x11
|   What toolkit should Emacs use?                          GTK
|   Where do we find X Windows header files?                Standard dirs
|   Where do we find X Windows libraries?                   Standard dirs
|   Does Emacs use -lXaw3d?                                 no
|   Does Emacs use -lXpm?                                   yes
|   Does Emacs use -ljpeg?                                  no
|   Does Emacs use -ltiff?                                  yes
|   Does Emacs use -lungif?                                 yes
|   Does Emacs use -lpng?                                   yes
|   Does Emacs use X toolkit scroll bars?                   yes

So configure decided not to use my libjpeg.

According to the time stamps, it used the expected header file and
library:

| $ ls -lu `locate jerror.h`; ls -lu `locate libjpeg.so`
| -rw-r--r-- 1 root root 13989 2007-03-24 14:53 /usr/include/jerror.h
| [...]
| [...]     17 2007-03-24 14:53 /usr/lib/libjpeg.so -> libjpeg.so.62.0.0
| [...]     16 2007-03-24 14:50 /usr/lib/libjpeg.so.6 -> libjpeg.so.6.0.1
| [...] 155043 2007-02-18 17:13 /usr/lib/libjpeg.so.6.0.1
| [...]     17 2007-03-24 14:53 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
| [...] 127160 2007-03-24 14:53 /usr/lib/libjpeg.so.62.0.0

The RPM information from SUSE claim that it *is* "version 6b", see the
lines "Source RPM".  Is the configure test[1] broken or is SUSE's
information wrong?  How can I find out?

| $ rpm -qfi /usr/include/jerror.h /usr/lib/libjpeg.so.62.0.0
| Name        : libjpeg-devel                Relocations: (not relocatable)
| Version     : 6.2.0                             Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
| Release     : 37                            Build Date: Sat 25 Nov 2006 01:20:34 PM CET
| Install Date: Sun 04 Mar 2007 01:07:35 PM CET      Build Host: tanajew.suse.de
| Group       : Development/Libraries/C and C++   Source RPM: jpeg-6b-771.src.rpm
| Size        : 238390                           License: BSD License and BSD-like, Other License(s), see package
| Signature   : DSA/SHA1, Sat 25 Nov 2006 01:23:13 PM CET, Key ID a84edae89c800aca
| Packager    : http://bugs.opensuse.org
| URL         : http://www.ijg.org/
| Summary     : Development Tools for Programs which will use the Libjpeg Library
| Description :
| The libjpeg-devel package includes the header files and static
| libraries necessary for developing programs which will manipulate JPEG
| files using the libjpeg library.
| Distribution: openSUSE 10.2 (i586)
| Name        : libjpeg                      Relocations: (not relocatable)
| Version     : 6.2.0                             Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
| Release     : 771                           Build Date: Sat 25 Nov 2006 01:20:34 PM CET
| Install Date: Sun 18 Feb 2007 05:08:32 PM CET      Build Host: tanajew.suse.de
| Group       : System/Libraries              Source RPM: jpeg-6b-771.src.rpm
| Size        : 127160                           License: BSD License and BSD-like, Other License(s), see package
| Signature   : DSA/SHA1, Sat 25 Nov 2006 01:23:13 PM CET, Key ID a84edae89c800aca
| Packager    : http://bugs.opensuse.org
| URL         : http://www.ijg.org/
| Summary     : JPEG libraries
| Description :
| The libraries (static and dynamic) for the jpeg-graphics format. The
| sources are contained in the jpeg source package.
| 
| 
| Authors:
| --------
|     Rob Hooft <hooft@EMBL-Heidelberg.DE>
|     Michael Mauldin <mlm@cs.cmu.edu>
| Distribution: openSUSE 10.2 (i586)

Bye, Reiner.

[1]
,----[ configure.in ]
| ### Use -ljpeg if available, unless `--with-jpeg=no'.
| HAVE_JPEG=no
| if test "${HAVE_X11}" = "yes"; then
|   if test "${with_jpeg}" != "no"; then
|     dnl Checking for jpeglib.h can lose because of a redefinition of
|     dnl  HAVE_STDLIB_H.
|     AC_CHECK_HEADER(jerror.h,
|       AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes))
|   fi
| 
|   AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl
|   if test "${HAVE_JPEG}" = "yes"; then
|     AC_DEFINE(HAVE_JPEG)
|     AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])],
|         [#include <jpeglib.h>
| 	 version=JPEG_LIB_VERSION
| ],
|         AC_DEFINE(HAVE_JPEG),
|         [AC_MSG_WARN([libjpeg found, but not version 6b or later])
|         HAVE_JPEG=no])
|   fi
| fi
`----
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

             reply	other threads:[~2007-03-24 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-24 14:04 Reiner Steib [this message]
2007-03-24 14:11 ` configure and libjpeg version on openSUSE 10.2 Andreas Schwab
2007-03-24 17:22   ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9zm62d9fy.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).