source: pwntcha/trunk/configure.ac @ 2315

Last change on this file since 2315 was 2315, checked in by sam, 6 years ago
  • Update build system and licensing terms to 2008 standards.
File size: 2.2 KB
Line 
1# $Id: configure.ac 253 2004-08-09 20:08:52Z sam $
2
3AC_INIT(pwntcha, 0.6)
4AC_CONFIG_AUX_DIR(.auto)
5AM_INIT_AUTOMAKE([no-define tar-ustar])
6
7AM_CONFIG_HEADER(config.h)
8
9AC_PREREQ(2.50)
10dnlAC_CANONICAL_SYSTEM
11
12AC_PROG_CC
13AM_PROG_CC_C_O
14AC_PROG_CXX
15AC_STDC_HEADERS
16
17AC_C_CONST
18AC_C_INLINE
19AC_TYPE_SIZE_T
20
21AC_CHECK_FUNCS(getopt_long)
22
23# Use DevIL?
24#AC_CHECK_HEADERS(IL/il.h,
25# [ac_cv_my_have_il="yes"],
26# [ac_cv_my_have_il="no"])
27#CPPFLAGS="${save_CPPFLAGS}"
28#AM_CONDITIONAL(USE_IL, test "${ac_cv_my_have_il}" = "yes")
29
30# Use Windows?
31#AC_CHECK_HEADERS(olectl.h,
32# [ac_cv_my_have_ole="yes"],
33# [ac_cv_my_have_ole="no"])
34#CPPFLAGS="${save_CPPFLAGS}"
35#AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes")
36
37# Use SDL?
38ac_cv_my_have_sdl="no"
39save_CPPFLAGS="${CPPFLAGS}"
40AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
41if test "${SDL_CONFIG}" != "no"; then
42  CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`"
43fi
44AC_CHECK_HEADERS(SDL_image.h,
45 [ac_cv_my_have_sdl="yes"],
46 [ac_cv_my_have_sdl="no"])
47CPPFLAGS="${save_CPPFLAGS}"
48AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes")
49
50# Use OpenCV?
51ac_cv_my_have_opencv="no"
52save_CPPFLAGS="${CPPFLAGS}"
53AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
54if test "${OPENCV_CONFIG}" != "no"; then
55  CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
56fi
57AC_CHECK_HEADERS(cv.h,
58 [ac_cv_my_have_opencv="yes"],
59 [ac_cv_my_have_opencv="no"])
60CPPFLAGS="${save_CPPFLAGS}"
61AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
62
63# Use Imlib2?
64ac_cv_my_have_imlib2="no"
65save_CPPFLAGS="${CPPFLAGS}"
66AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
67if test "${IMLIB2_CONFIG}" != "no"; then
68  CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
69fi
70AC_CHECK_HEADERS(Imlib2.h,
71 [ac_cv_my_have_imlib2="yes"],
72 [ac_cv_my_have_imlib2="no"])
73CPPFLAGS="${save_CPPFLAGS}"
74AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
75
76if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
77  AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]])
78fi
79
80AC_OUTPUT([
81  Makefile
82  src/Makefile
83  extras/Makefile
84  share/Makefile
85])
86
Note: See TracBrowser for help on using the repository browser.