From: Glenn Morris <rgm@gnu.org>
To: "Nelson H. F. Beebe" <beebe@math.utah.edu>
Cc: 17339@debbugs.gnu.org
Subject: bug#17339: emacs-24.3.90: big build report
Date: Thu, 01 May 2014 17:59:48 -0400 [thread overview]
Message-ID: <whzjj15fe3.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <hnwqe818k6.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 29 Apr 2014 11:04:09 -0400")
Glenn Morris wrote:
> "Nelson H. F. Beebe" wrote:
[...]
>> (2) On NetBSD 6, configure tests for -lpng fail because that library does
>> not exist; instead, the vendor provides only -lpng16. I fooled the
>> emacs configure script by creating this symlink:
>>
>> /usr/local/lib/libpng.a: symbolic link to `/usr/pkg/lib/libpng16.a'
>>
>> so that -lpng is now found.
>
> This has come up before; http://debbugs.gnu.org/11797#8 .
I applied the following:
--- a/configure.ac 2014-04-29 14:49:11 +0000
+++ b/configure.ac 2014-05-01 21:57:27 +0000
@@ -3101,8 +3101,15 @@
fi
if test "${HAVE_PNG}" = "yes"; then
- AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).])
- LIBPNG="-lpng -lz -lm"
+ AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library.])
+
+ dnl Some systems, eg NetBSD 6, only provide eg "libpng16", not "libpng".
+ lpng=`libpng-config --libs 2> /dev/null`
+ case $lpng in
+ -l*) : ;;
+ *) lpng="-lpng" ;;
+ esac
+ LIBPNG="$lpng -lz -lm"
AC_CHECK_DECL(png_longjmp,
[],
@@ -4976,7 +4983,7 @@
echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
-echo " Does Emacs use -lpng? ${HAVE_PNG}"
+echo " Does Emacs use a png library? ${HAVE_PNG} $LIBPNG"
echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
next prev parent reply other threads:[~2014-05-01 21:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 21:07 bug#17339: emacs-24.3.90: big build report Nelson H. F. Beebe
2014-04-29 15:04 ` Glenn Morris
2014-05-01 21:59 ` Glenn Morris [this message]
2014-04-29 15:15 ` Glenn Morris
2014-05-01 22:14 ` Glenn Morris
2014-05-03 21:10 ` bug#17339: "undefined: PixelSetMagickColor" when building emacs-24.3.90 Paul Eggert
2014-05-03 21:28 ` bug#17339: SGI IRIX 6.5 in emacs-24.3.90: big build report Paul Eggert
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=whzjj15fe3.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=17339@debbugs.gnu.org \
--cc=beebe@math.utah.edu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.