Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

49 rader
1.1 KiB

  1. # $Id$
  2. AC_INIT(ttyvaders,0.0cvs-20021223)
  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-20021223)
  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. USE_SLANG=false
  16. USE_NCURSES=false
  17. if test "${enable_ncurses}" = "yes"
  18. then
  19. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  20. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  21. USE_NCURSES=:
  22. else
  23. if test "${enable_slang}" != "no"
  24. then
  25. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  26. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  27. USE_SLANG=:
  28. else
  29. :
  30. fi
  31. fi
  32. AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
  33. AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
  34. AC_OUTPUT([
  35. Makefile
  36. src/Makefile
  37. autotools/Makefile
  38. debian/Makefile
  39. ])