I am using FreeBSD and have installed iconv
package form port collection.I wrote
AC_CHECK_HEADER([iconv.h], ,[AC_MSG_ERROR([can not find iconv.h])])
AC_CHECK_LIB([iconv], [iconv_open], ,[AC_MSG_ERROR([can not find iconv_open])])
in the configure.ac.But when I run ./configure, it gave me the following message
checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
configure: error: can not find iconv.h
I am sure there is iconv.h
, libiconv.la
, libiconv.so
in the directory of /usr/local/include
and /usr/local/lib
.So how should I write the correct statement to check the header file and library.Thanks advance!!