Unix Programming - how to disable caching of a result in autoconf

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2004 > how to disable caching of a result in autoconf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to disable caching of a result in autoconf
Matthias Czapla

2004-03-31, 9:42 am

Hi!

Im want to check for the presence of the GNU Readline library in a
configure script. On some systems we need to link to another library
in addition to readline for some terminal functions (e.g. tgetent).
I tried this:

AC_CHECK_LIB(readline, readline,,
AC_SEARCH_LIBS(tgetent, ncurses curses tinfo termcap)
AC_CHECK_LIB(readline, readline,,
AC_MSG_ERROR([readline not available])
)
)

This correctly determines the additional library required if the
test program used by configure doesnt compile with -lreadline
alone. However the second test for readline does not get invoked
because the result of the first test is cached. How can I tell
autoconf to forget the result of the first test before doing it
the second time?

Regards
Matthias
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com