bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs 21.3: jpeg version not correctly recognized by configure


From: Jost Martin
Subject: emacs 21.3: jpeg version not correctly recognized by configure
Date: Mon, 31 Mar 2003 16:41:00 +0200

In GNU Emacs 21.3.1 (hppa2.0-hp-hpux10.20, OSF/Motif Version 1.2.6)
 of 2003-03-31 on lasagne
configured using `configure  -prefix=/pd/emacs21.3 --with-x-toolkit=motif 
--x-includes=/usr/include/X11R6:/usr/contrib/X11R6/include 
--x-libraries=/usr/lib/X11R6/:/usr/contrib/X11R6/lib -with-jpeg -with-tiff 
-with-png -with-gif --without-gcc'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.iso88591
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

This is a configure-problem.
I had to "tweak" configure a little bit to have it correctly recognise
my jpeg-lib as 6b.

I have used the HP ANSI-C-Compiler to build emacs.
/opt/ansic/bin/cc:
              LINT A.10.32.30 CXREF  A.10.32.30
        HP92453-01 A.10.32.30 HP C Compiler
         /usr/lib/libc: $Revision: 76.3 $


I have jpeg (6b) installed under /pd/libs/(lib)|(include). But
configured didn't used it, claiming it wasn't 6b.

I finally found this reason:
configure uses the CC-preprocessor to get at the JPEG_LIB_VERSION.
But HP 'cc -E' seems to simply ignore all '#include' with leading
whitespace on the line.

I had to change configure as below to have it use my jpeg:

*** configure.orig      Mon Mar 31 14:55:27 2003
--- configure   Mon Mar 31 15:14:20 2003
***************
*** 5353,5359 ****
      cat > conftest.$ac_ext <<EOF
  #line 5355 "configure"
  #include "confdefs.h"
!         #include <jpeglib.h>
         version=JPEG_LIB_VERSION

  EOF
--- 5353,5359 ----
      cat > conftest.$ac_ext <<EOF
  #line 5355 "configure"
  #include "confdefs.h"
! #include <jpeglib.h>
         version=JPEG_LIB_VERSION

  EOF


Recent input:
<switch-frame> <switch-frame> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <menu-bar> <help-menu> <emacs-problems>
<down-mouse-1> <mouse-1> <next> <next> <prior> <prior>
<prior> <prior> C-s j p e g <return> C-s C-s C-s C-s
C-s <return> C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
<return> <down> <down> <down> <down> C-x k <return>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
ad-handle-definition: `compile' got redefined
ad-handle-definition: `grep' got redefined
Loading compile.elc...done
Loading view...done
Note: file is write protected
Type C-h for help, h for commands, q to quit.
Updating speedbar to: /pd/emacs21.3/share/emacs/21.3/etc/...done
call-interactively: Beginning of buffer [2 times]
Mark saved where search started [3 times]
Loading emacsbug...done


Attachment: Jost Martin.vcf
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]