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.
 
 
 
 
 

37 lines
862 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_CONFIG_AUX_DIR(autotools)
  6. AC_CANONICAL_SYSTEM
  7. AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021218)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. AC_ARG_ENABLE(ncurses,
  12. [ --enable-ncurses ncurses interface support (default is slang)])
  13. if test "${enable_ncurses}" = "yes"
  14. then
  15. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  16. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  17. else
  18. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  19. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  20. fi
  21. AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
  22. AC_OUTPUT([
  23. Makefile
  24. src/Makefile
  25. autotools/Makefile
  26. debian/Makefile
  27. ])