|
- # $Id$
-
- AC_INIT(ttyvaders,0.0cvs-20031110)
-
- AC_PREREQ(2.50)
- AC_CONFIG_SRCDIR(src/main.c)
- AC_CONFIG_AUX_DIR(autotools)
- AC_CANONICAL_SYSTEM
-
- AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20031110)
- AM_CONFIG_HEADER(config.h)
-
- AM_PROG_CC_C_O
- AC_PROG_CPP
-
- dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
- dnl now otherwise it might be set in an obscure if statement.
- AC_EGREP_CPP(foo,foo)
-
- AC_MSG_CHECKING(for libcaca support)
- video_caca=no
- AC_TRY_COMPILE([
- #include <caca.h>
- ],[ ],[video_caca=yes])
- AC_MSG_RESULT($video_caca)
- if test "$video_caca" = "yes"; then
- CACA_CFLAGS="${CFLAGS} `caca-config --cflags`"
- CACA_LIBS="${LIBS} `caca-config --libs`"
- AC_SUBST(CACA_CFLAGS)
- AC_SUBST(CACA_LIBS)
- else
- AC_MSG_ERROR([cannot find libcaca])
- fi
-
- # Optimizations
- CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
- # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
- CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
-
- AC_OUTPUT([
- Makefile
- src/Makefile
- autotools/Makefile
- data/Makefile
- debian/Makefile
- ])
|