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.
 
 
 
 
 
 

45 lines
1.1 KiB

  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(slang,
  12. [ --enable-slang slang graphics support (default enabled)])
  13. AC_ARG_ENABLE(ncurses,
  14. [ --enable-ncurses ncurses graphics support (default disabled)])
  15. if test "${enable_ncurses}" = "yes"
  16. then
  17. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  18. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  19. else
  20. if test "${enable_slang}" != "no"
  21. then
  22. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  23. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  24. else
  25. :
  26. fi
  27. fi
  28. AM_CONDITIONAL(USE_SLANG, test "${enable_slang}" != "no")
  29. AM_CONDITIONAL(USE_NCURSES, test "${enable_ncurses}" = "yes")
  30. AC_OUTPUT([
  31. Makefile
  32. src/Makefile
  33. autotools/Makefile
  34. debian/Makefile
  35. ])