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

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

Gettext configure script not seeing libiconv


From: Bitt Faulk
Subject: Gettext configure script not seeing libiconv
Date: Wed, 2 Oct 2002 14:18:31 -0400 (EDT)

On an OpenBSD 2.8 machine, the configure script for gettext fails to see
the installed version of libiconv, even when shown it using configure
flags.  It seems that the data given to the option showing where to find
the library and include files is never passed along to the
compiler/preprocessor.

The symptoms are at the end of this message.  Let me know what other
information I can provide.  BTW, it seems to compile fine without
libiconv, but since I went to the effort to install it, I'd like to use
it.

-Bitt

% ls -l /usr/local/{lib,include}/*iconv*
-rw-r--r--  1 root  wheel     4300 Oct  2 13:06 /usr/local/include/iconv.h
-rw-r--r--  1 root  wheel      692 Oct  2 13:06 /usr/local/lib/libiconv.la
-rw-r--r--  1 root  wheel  1060288 Oct  2 13:06 /usr/local/lib/libiconv.so.3.0

% ./configure --help
`configure' configures this package to adapt to many kinds of systems.
<snip>
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
  --without-libiconv-prefix     don't search for libiconv in includedir and 
libdir
<snip>

% ./configure --with-libiconv-prefix=/usr/local
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
<snip>
checking for iconv... no, consider installing GNU libiconv
<snip>

% cat config.log
<snip>
configure:13401: checking for iconv
configure:13425: gcc -o conftest -g -O2   conftest.c  >&5
configure:13412: iconv.h: No such file or directory
configure:13428: $? = 1
configure: failed program was:
#line 13410 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <iconv.h>
int
main ()
{
iconv_t cd = iconv_open("","");
       iconv(cd,NULL,NULL,NULL,NULL);
       iconv_close(cd);
  ;
  return 0;
}
configure:13461: gcc -o conftest -g -O2   conftest.c  -liconv >&5
configure:13448: iconv.h: No such file or directory
configure:13464: $? = 1
configure: failed program was:
#line 13446 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <iconv.h>
int
main ()
{
iconv_t cd = iconv_open("","");
         iconv(cd,NULL,NULL,NULL,NULL);
         iconv_close(cd);
  ;
  return 0;
}
configure:13483: result: no, consider installing GNU libiconv
<snip>





reply via email to

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