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.
 
 
 
 
 

48 line
1.2 KiB

  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. dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
  12. dnl now otherwise it might be set in an obscure if statement.
  13. AC_EGREP_CPP(foo,foo)
  14. AC_MSG_CHECKING(for libcaca support)
  15. video_caca=no
  16. AC_TRY_COMPILE([
  17. #include <caca.h>
  18. ],[ ],[video_caca=yes])
  19. AC_MSG_RESULT($video_caca)
  20. if test "$video_caca" = "yes"; then
  21. CACA_CFLAGS="${CFLAGS} `caca-config --cflags`"
  22. CACA_LIBS="${LIBS} `caca-config --libs`"
  23. AC_SUBST(CACA_CFLAGS)
  24. AC_SUBST(CACA_LIBS)
  25. else
  26. AC_MSG_ERROR([cannot find libcaca])
  27. fi
  28. # Optimizations
  29. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  30. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  31. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
  32. AC_OUTPUT([
  33. Makefile
  34. src/Makefile
  35. autotools/Makefile
  36. data/Makefile
  37. debian/Makefile
  38. ])