-if test "$enable_libcore" = yes; then
- AC_MSG_CHECKING([for libcore])
- LIBS="$LIBS -lcore"
- AC_LINK_IFELSE(
- AC_LANG_PROGRAM([#include <libcore/lc_opts.h>],
- [lc_opts_init("", 0, "", 1, 0)]),
- [],
- [AC_MSG_ERROR(
- [Couldn't build libcore testprogramm. Check config.log for details])])
- AC_DEFINE([WITH_LIBCORE], [], [compile with libcore support])
-fi