source: libpipi/trunk/configure.ac @ 2227

Last change on this file since 2227 was 2227, checked in by Sam Hocevar, 15 years ago
  • Initial code skeleton.
File size: 1.2 KB
Line 
1# $Id$
2
3AC_INIT(libpipi, 0.0)
4AC_CONFIG_AUX_DIR(.auto)
5AM_INIT_AUTOMAKE([no-define tar-ustar])
6AM_MAINTAINER_MODE
7
8AM_CONFIG_HEADER(config.h)
9
10AM_PROG_CC_C_O
11AC_PROG_CPP
12
13LT_MAJOR="0"
14LT_MINOR="99"
15LT_MICRO="13"
16AC_SUBST(LT_MAJOR)
17AC_SUBST(LT_MINOR)
18AC_SUBST(LT_MICRO)
19LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
20AC_SUBST(LT_VERSION)
21AC_LIBTOOL_WIN32_DLL
22AM_PROG_LIBTOOL
23AC_LIBTOOL_CXX
24
25AC_C_CONST
26AC_C_INLINE
27
28AC_ARG_ENABLE(imlib2,
29  [  --enable-imlib2         Imlib2 graphics support (autodetected)])
30
31AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h)
32
33# Optimizations
34CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
35# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
36CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
37
38# Use Imlib2?
39if test "${enable_imlib2}" != "no"; then
40  IMLIB2="no"
41  PKG_CHECK_MODULES(IMLIB2, imlib2, [IMLIB2="yes"], [AC_MSG_RESULT(no)])
42  if test "${IMLIB2}" != "no"; then
43    AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2)
44  fi
45fi
46
47AC_CONFIG_FILES([
48  Makefile
49  pipi/Makefile
50  genethumb/Makefile
51])
52AC_CONFIG_FILES([
53  pipi/pipi.pc
54])
55
56AC_OUTPUT
57
Note: See TracBrowser for help on using the repository browser.