patch-configure_ac 987 B

1234567891011121314151617181920
  1. $OpenBSD: patch-configure_ac,v 1.1 2009/10/13 21:48:30 sthen Exp $
  2. --- configure.ac.orig Wed Dec 17 00:25:50 2008
  3. +++ configure.ac Sat Oct 10 14:31:52 2009
  4. @@ -52,10 +52,13 @@ if test "$SLANG_LIB_LOC" != "" ; then
  5. CFLAGS="-L$SLANG_LIB_LOC $CFLAGS"
  6. fi
  7. +AC_SEARCH_LIBS(tgetent, terminfo termlib)
  8. +
  9. dnl The function we check for in libslang is important, because
  10. dnl we need to make sure we have the right version of slang.
  11. -AC_CHECK_LIB(slang, SLsig_block_signals,,
  12. - AC_MSG_ERROR(can't find required slang library or library is obsolete. Try setting the SLANG_LIB_LOC environment variable to point to the directory containing the slang library.))
  13. +AC_CHECK_LIB(slang, SLsig_block_signals,
  14. + [AC_DEFINE(HAVE_LIBSLANG) LIBS="-lslang -lm $LIBS"],
  15. + AC_MSG_ERROR(can't find required slang library or library is obsolete. Try setting the SLANG_LIB_LOC environment variable to point to the directory containing the slang library.), -lm)
  16. dnl Checks for header files.
  17. AC_HEADER_STDC