Damien Zammit, le dim. 26 déc. 2021 22:38:54 +1100, a ecrit:
> -AC_CHECK_HEADER([rump/rump.h], [
> -  AC_CHECK_LIB(rump, rump_init, [HAVE_LIBRUMP=yes], [HAVE_LIBRUMP=no])
> -  ], [HAVE_LIBRUMP=no])
> +AC_CACHE_CHECK(for librump, rump_cv_HAVE_LIBRUMP, [dnl
> +cat > conftest.c <<EOF
> +#include <hurd.h>
> +#define _STANDALONE
> +#include <rump/rump.h>
> +main () { return 0; }
> +EOF
> +if AC_TRY_COMMAND([${CC-cc} conftest.c -o conftest -lrump 
> 1>&AS_MESSAGE_LOG_FD])

Better use AC_LINK_IFELSE and AC_LANG_PROGRAM with LIBS set to the link
flags you want to test.

Samuel

Reply via email to