選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

configure.ac 1.5 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $Id$
  2. AC_INIT(ttyvaders,0.0cvs-20031110)
  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-20031110)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. AC_PROG_RANLIB
  12. AC_ARG_ENABLE(slang,
  13. [ --enable-slang slang graphics support (default enabled)])
  14. AC_ARG_ENABLE(ncurses,
  15. [ --enable-ncurses ncurses graphics support (default disabled)])
  16. USE_SLANG=false
  17. USE_NCURSES=false
  18. if test "${enable_ncurses}" = "yes"; 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. AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
  22. USE_NCURSES=:
  23. elif test "${enable_slang}" != "no"; then
  24. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  25. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  26. AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
  27. USE_SLANG=:
  28. fi
  29. AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
  30. AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
  31. # Optimizations
  32. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  33. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  34. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs"
  35. AC_OUTPUT([
  36. Makefile
  37. libee/Makefile
  38. test/Makefile
  39. src/Makefile
  40. autotools/Makefile
  41. data/Makefile
  42. debian/Makefile
  43. ])