autoconf
[Top][All Lists]
Advanced

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

Help in AC_CHECK_LIB


From: madan m raj
Subject: Help in AC_CHECK_LIB
Date: 26 Jul 2005 08:51:18 -0000

Hi,
Attached my configure.in script

I want to check for two libraries libIL.so  and libILU.so
so, i included the below lines in the configure.in script so as to get the 
flags -lILU and -lIL
-------------------------------------------------------------------------
#Find the DevIL library
AC_CHECK_LIB (IL, ilSaveImage, [], [
                echo -n"Error! DevIL Image Library IL not found"
                echo -n "Install DevIL-1.6.7"
                exit -1
                ])
AC_CHECK_LIB (IL, iluGetInteger, [], [
                echo -n "Error! DevIL Image Library ILU not found"
                echo -n "Install DevIL-1.6.7"
                exit -1
                ])
-------------------------------------------------------------------------
When i run the configure script i get the following warnings and errors

WARNINGS:
==========
Running autoconf...
configure.in:28: warning: AC_LANG_CALL: no function given
autoconf/lang.m4:242: AC_LANG_CALL is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:28: the top level
configure.in:33: warning: AC_LANG_CALL: no function given
configure.in:33: the top level
Running autoheader...
configure.in:28: warning: AC_LANG_CALL: no function given
autoconf/lang.m4:242: AC_LANG_CALL is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:28: the top level
configure.in:33: warning: AC_LANG_CALL: no function given
configure.in:33: the top level
Running automake-1.7...
configure.in:28: warning: AC_LANG_CALL: no function given
autoconf/lang.m4:242: AC_LANG_CALL is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:28: the top level
configure.in:33: warning: AC_LANG_CALL: no function given
configure.in:33: the top level

And at last i get an error
checking for  in -l... no
./configure: line 19585: IL,: command not found
-nError! DevIL Image Library IL not found
Install DevIL-1.6.7checking for  in -l... (cached) no
./configure: line 19663: IL,: command not found
Error! DevIL Image Library ILU not foundInstall DevIL-1.6.7


Seems AC_CHECK_LIB wont accept any library name in CAPS. Is there a way to 
solve this, or can i use any other way to check for that library.

Thanks
Madhan Raj M



Attachment: configure.in
Description: Binary data


reply via email to

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