* plugins/project-wizard/templates/mkfile.wiz:
[anjuta-git-plugin.git] / plugins / project-wizard / templates / sdl / configure.ac.tpl
bloba6e636a341b7f0bf74592fd2eeff0375c7bfbf80
1 [+ autogen5 template +]
2 dnl Process this file with autoconf to produce a configure script.
3 dnl Created by Anjuta application wizard.
5 AC_INIT([+NameLower+], [+Version+])
7 SDL_REQUIRED=[+SDL_Version+]
9 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
10 AM_CONFIG_HEADER(config.h)
11 AM_MAINTAINER_MODE
13 AC_ISC_POSIX
14 AC_PROG_CC
15 AM_PROG_CC_STDC
16 AC_HEADER_STDC
17 AC_PATH_XTRA
19 [+IF (=(get "HaveLangCPP") "1")+]
20 AC_PROG_CPP
21 AC_PROG_CXX
22 [+ENDIF+]
24 [+IF (=(get "HaveI18n") "1")+]
25 dnl ***************************************************************************
26 dnl Internatinalization
27 dnl ***************************************************************************
28 GETTEXT_PACKAGE=[+NameLower+]
29 AC_SUBST(GETTEXT_PACKAGE)
30 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
31 AM_GLIB_GNU_GETTEXT
32 IT_PROG_INTLTOOL([0.35.0])
33 [+ENDIF+]
35 AM_PROG_LIBTOOL
37 dnl ***************************************************************************
38 dnl Check for SDL
39 dnl ***************************************************************************
40 AM_PATH_SDL($SDL_REQUIRED,
41             :,
42             AC_MSG_ERROR([SDL version $SDL_REQUIRED not found]))
43 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44 CFLAGS="$CFLAGS $SDL_CFLAGS"
45 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
46 LIBS="$LIBS $SDL_LIBS"
48 [+IF (=(get "HaveSDL_image") "1")+]
49 dnl ***************************************************************************
50 dnl Check for SDL_image
51 dnl ***************************************************************************
52 AC_CHECK_LIB(SDL_image, IMG_Load,
53     [ LIBS="$LIBS -lSDL_image" ],
54     AC_MSG_ERROR([SDL_image not found]))
55 [+ENDIF+]
57 [+IF (=(get "HaveSDL_gfx") "1")+]
58 dnl ***************************************************************************
59 dnl Check for SDL_gfx
60 dnl ***************************************************************************
61 AC_CHECK_LIB(SDL_gfx, SDL_initFramerate,
62     [ LIBS="$LIBS -lSDL_gfx" ],
63     AC_MSG_ERROR([SDL_gfx not found]))
64 [+ENDIF+]
66 [+IF (=(get "HaveSDL_ttf") "1")+]
67 dnl ***************************************************************************
68 dnl Check for SDL_ttf
69 dnl ***************************************************************************
70 AC_CHECK_LIB(SDL_ttf, TTF_OpenFont,
71     [ LIBS="$LIBS -lSDL_ttf" ],
72     AC_MSG_ERROR([SDL_ttf not found]))
73 [+ENDIF+]
75 [+IF (=(get "HaveSDL_mixer") "1")+]
76 dnl ***************************************************************************
77 dnl Check for SDL_mixer
78 dnl ***************************************************************************
79 AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio,
80     [ LIBS="$LIBS -lSDL_mixer" ],
81     AC_MSG_ERROR([SDL_mixer not found]))
82 [+ENDIF+]
84 [+IF (=(get "HaveSDL_net") "1")+]
85 dnl ***************************************************************************
86 dnl Check for SDL_net
87 dnl ***************************************************************************
88 AC_CHECK_LIB(SDL_net, SDLNet_Init,
89     [ LIBS="$LIBS -lSDL_net" ],
90     AC_MSG_ERROR([SDL_net not found]))
91 [+ENDIF+]
93 AC_OUTPUT([
94 Makefile
95 src/Makefile
96 [+IF (=(get "HaveI18n") "1")+]po/Makefile.in[+ENDIF+]