From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: zsh 4.2.5
Date: Thu, 07 Apr 2005 18:04:22 +0200 [thread overview]
Message-ID: <25526.1112889862@trentino.groupinfra.com> (raw)
In-Reply-To: <20050407144954.GN64927@dan.emsphone.com>
Dan Nelson wrote:
> He's probably got libiconv installed and using gcc which defaults to
> having /usr/local/include *before* /usr/include in the search path!!
> Both sunfreeware.com's version for Solaris 9 and the one bundled with
> Solaris 10 do this. Remove or rename /usr/local/include/iconv.h.
Okay, so we need to find out if iconv.h comes from libiconv. That's
probably easiest done by checking whether it defines _LIBICONV_H or
_LIBICONV_VERSION using AC_CHECK_DECL. The following patch does that.
If testing this on a suitable Solaris installation (with libiconv and
gcc), note that you'll need LD_LIBRARY_PATH to contain /usr/local/lib.
(otherwise the later tcsetpgrp() test fails to run because it needs to
find the libiconv library). Should I perhaps use a separate ICONV_LIBS
variable?
Oliver
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.31
diff -u -r1.31 configure.ac
--- configure.ac 4 Apr 2005 09:58:49 -0000 1.31
+++ configure.ac 7 Apr 2005 16:01:02 -0000
@@ -743,6 +743,10 @@
if test "x$ac_found_iconv" != "xno"; then
LIBS="-liconv $LIBS"
fi
+ else
+ AC_CHECK_DECL(_libiconv_version,
+ [ AC_CHECK_LIB(iconv, libiconv, LIBS="-liconv $LIBS") ],,
+ [ #include <iconv.h> ])
fi
fi
if test "x$ac_found_iconv" = xyes; then
next prev parent reply other threads:[~2005-04-07 16:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200504061125.j36BP1Fs029244@news01.csr.com>
2005-04-06 21:20 ` Zvi Har'El
2005-04-07 7:59 ` Oliver Kiddle
2005-04-07 14:49 ` Dan Nelson
2005-04-07 16:04 ` Oliver Kiddle [this message]
2005-04-07 16:44 ` Oliver Kiddle
2005-04-07 19:49 ` Zvi Har'El
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=25526.1112889862@trentino.groupinfra.com \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/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.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).