You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
812 B

  1. dnl Autoconf settings for ttyvaders
  2. AC_INIT(ttyvaders,0.0cvs-20021218)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_SRCDIR(src/main.c)
  5. AC_CANONICAL_SYSTEM
  6. AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021218)
  7. AM_CONFIG_HEADER(config.h)
  8. AM_PROG_CC_C_O
  9. AC_PROG_CPP
  10. AC_ARG_ENABLE(ncurses,
  11. [ --enable-ncurses ncurses interface support (default is slang)])
  12. if test "${enable_ncurses}" = "yes"
  13. then
  14. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  15. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  16. else
  17. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  18. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  19. fi
  20. AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
  21. AC_OUTPUT([
  22. Makefile
  23. src/Makefile
  24. debian/Makefile
  25. ])