package: autoconf
version: 2.64-2
severity: normal

The new autoconf in squeeze generates configure scripts that error out 
with:

checking for socket... ./configure: line 1399: ac_fn_c_try_link: command not 
found

when you write code of the form:

AC_CHECK_FUNC([socket], :, AC_CHECK_LIB([socket], [socket]))

followed eventually by

AC_SEARCH_LIBS([socket], [socket])

I've attached a sample configure.in script that reproduces the problem; a 
corresponding tarball is available at 
<http://web.mit.edu/tabbott/Public/actest.tgz>.

        -Tim Abbott
AC_INIT

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB

AC_CHECK_FUNC([socket], :, AC_CHECK_LIB([socket], [socket]))
AC_SEARCH_LIBS([socket], [socket])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT

Reply via email to