problems with autoconf and libiconv

Ricardo Varela [phobeo] phobeo@sugus.eii.us.es
Sun May 2 23:14:00 GMT 2004


hallo,

I was trying to add some libraries for autolinking with a program via
autoconf, but I'm having problems with libiconv (any other library links
properly, but the program seems not to like to have a -liconv. I reckon
the autoconf syntax is correct, please see below)

If I have the following in my configure.ac file:

AC_CHECK_LIB(iconv, iconv_open)
AC_CHECK_LIB(iconv, iconv)
AC_CHECK_LIB(pthread, pthread_attr_init)

But I get an output like:

...
checking for iconv_open in -liconv... no
checking for iconv in -liconv... no
checking for pthread_attr_init in -lpthread... yes
...

(same if I use AC_SEARCH_LIBS instead of AC_CHECK_LIB, have tried that too)

Did anybody had similar problems before?

---
Ricardo Varela



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list