3 # -- I N I T --------------------------------------------------
5 AC_INIT([Synfig Studio],[0.61.07],[http://synfig.org/Bugs],[synfigstudio])
8 AC_CONFIG_AUX_DIR(config)
9 AM_CONFIG_HEADER(config.h)
11 dnl AC_CANONICAL_TARGET
18 # -- V A R I A B L E S ----------------------------------------
20 SVN_REPOSITORY=http://svn.voria.com/code/synfig-studio
22 # -- P R O G R A M S ------------------------------------------
38 AC_ARG_BRANCH_PROBABILITIES
42 --enable-g5opt enable optimizations specific to G5 proc],[
43 G5OPTFLAGS="-mpowerpc-gpopt -mno-multiple -mno-update -mcpu=970 -mtune=970 -falign-loops=16 -falign-functions=16"
56 AC_SUBST(LIBTOOL_DEPS)
59 ## FIXME: add i18n for .desktop and other non-compiled files
60 ## AM_GLIB_GNU_GETTEXT([external])
61 ## AC_PROG_INTLTOOL(0.11)
63 AM_GNU_GETTEXT([external])
64 # This is here so autoreconf will run autopoint
65 AM_GNU_GETTEXT_VERSION([0.14.4])
69 AM_CONDITIONAL(WIN32_PKG, true)
70 AM_CONDITIONAL(MACOSX_PKG, false)
73 AM_CONDITIONAL(WIN32_PKG, false)
74 AM_CONDITIONAL(MACOSX_PKG, true)
77 AM_CONDITIONAL(WIN32_PKG, false)
78 AM_CONDITIONAL(MACOSX_PKG, false)
81 # -- L I B R A R I E S ----------------------------------------
83 PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 gthread-2.0,[],[
84 AC_MSG_ERROR([ ** Gtkmm-2.4 Is a required library, aborting.])
86 AC_SUBST(GTKMM_CFLAGS)
89 PKG_CHECK_MODULES(SYNFIG, [synfig >= 0.61.07] [ETL >= 0.04.10] sigc++-2.0,,[
90 AC_MSG_ERROR([ ** Unable to set up dependent libraries (synfig >= 0.61.07, ETL >= 0.04.10)])
92 AC_SUBST(SYNFIG_CFLAGS)
96 AC_DEFINE(STUDIO_WINSYS_H,"gtkmm/winsys.h",[blah])
97 AM_CONDITIONAL(WINDOWSYS_GTKMM,true)
100 --with-userdir=(dirname) Relative path to user directory],[
104 with_userdir="Synfig"
107 with_userdir="Library/Synfig"
110 with_userdir=".synfig"
114 AC_DEFINE_UNQUOTED(SYNFIG_USER_APP_DIR,"$with_userdir",[Synfig User Data Directory])
116 # --- FMOD CHECK -------------
117 AC_ARG_WITH(libfmod,[
118 --with-libfmod Enable support for FMOD],[
120 AC_CHECK_LIB(fmod, FSOUND_Init,[
126 if test $with_libfmod = "yes" ; then {
127 AM_CONDITIONAL(WITH_FMOD,true)
128 FMOD_LIBS="/usr/lib/libfmod.so"
129 AC_DEFINE(WITH_FMOD,"I'm here damnit",[blah])
131 AM_CONDITIONAL(WITH_FMOD,false)
135 # Check for unordered_map or hash_map headers
136 AC_MSG_CHECKING([for unordered_map<int,int>::const_iterator])
139 [#include <tr1/unordered_map>]
141 [std::tr1::unordered_map<int,int>::const_iterator iter;]
144 AC_DEFINE([HASH_MAP_CLASS],[HASH_MAP_NAMESPACE::unordered_map],[The template name for unordered maps.])
145 AC_DEFINE([HASH_MAP_H],[<tr1/unordered_map>],[The header file to include for unordered maps.])
146 AC_DEFINE([HASH_MAP_NAMESPACE],[std::tr1],[The namespace for unordered maps.])
147 AC_DEFINE([FUNCTIONAL_H],[<tr1/functional>],[The header file for hash<T>.])
148 AC_DEFINE([FUNCTIONAL_HASH_ON_STRING],[1],[Define to 1 if hash<T> needs to use T=String rather than T=char* to hash strings.])
151 AC_CHECK_HEADERS([ext/hash_map],[
152 AC_DEFINE([HASH_MAP_CLASS],[HASH_MAP_NAMESPACE::hash_map],[The template name for unordered maps.])
153 AC_DEFINE([HASH_MAP_H],[<ext/hash_map>],[The header file to include for unordered maps.])
154 AC_DEFINE([HASH_MAP_NAMESPACE],[__gnu_cxx],[The namespace for unordered maps.])
155 AC_DEFINE([FUNCTIONAL_H],[<ext/functional>],[The header file for hash<T>.])
157 AC_MSG_ERROR([C++ compiler does not seem to support unordered containers])
161 # Check for unordered_set or hash_set headers
162 AC_MSG_CHECKING([for unordered_set<int,int>::const_iterator])
165 [#include <tr1/unordered_set>]
167 [std::tr1::unordered_set<int,int>::const_iterator iter;]
170 AC_DEFINE([HASH_SET_CLASS],[HASH_SET_NAMESPACE::unordered_set],[The template name for unordered sets.])
171 AC_DEFINE([HASH_SET_H],[<tr1/unordered_set>],[The header file to include for unordered sets.])
172 AC_DEFINE([HASH_SET_NAMESPACE],[std::tr1],[The namespace for unordered sets.])
175 AC_CHECK_HEADERS([ext/hash_set],[
176 AC_DEFINE([HASH_SET_CLASS],[HASH_SET_NAMESPACE::hash_set],[The template name for unordered sets.])
177 AC_DEFINE([HASH_SET_H],[<ext/hash_set>],[The header file to include for unordered sets.])
178 AC_DEFINE([HASH_SET_NAMESPACE],[__gnu_cxx],[The namespace for unordered sets.])
180 AC_MSG_ERROR([C++ compiler does not seem to support unordered containers])
184 # -- H E A D E R S --------------------------------------------
186 AC_CHECK_HEADERS([unistd.h signal.h fcntl.h])
187 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h sys/errno.h])
189 # -- T Y P E S & S T R U C T S --------------------------------
191 # -- F U N C T I O N S ----------------------------------------
193 AC_CHECK_FUNCS([fork])
194 AC_CHECK_FUNCS([kill])
195 AC_CHECK_FUNCS([pipe])
196 AC_CHECK_FUNCS([setpriority mkfifo stat])
198 # -- A R G U M E N T S ----------------------------------------
200 # -- O U T P U T ----------------------------------------------
206 AC_SUBST(SVN_REPOSITORY)
208 AC_SUBST(API_VERSION)
216 imagedir="${datadir}/pixmaps/synfigstudio"
227 synfigstudio-thumbnailer.schemas
230 src/synfigapp/Makefile
233 pkg-info/macosx/synfig-studio.info
236 # -- S U M M A R Y --------------------------------------------
239 $PACKAGE_NAME v.$VERSION
240 Configuration Summary
243 Install Prefix -------------------> $prefix
244 Host Platform --------------------> $host
245 Icon Format ----------------------> $imageext
246 Debug Mode -----------------------> $debug
247 Profiling Mode -------------------> $profiling
248 Optimizations --------------------> $optimization
249 Window System --------------------> $windowsys
250 FMOD Enabled ---------------------> $with_libfmod
252 "'$'"CXX ------------------------------> '$CXX'
253 "'$'"CXXFLAGS -------------------------> '$CXXFLAGS'
254 "'$'"LDFLAGS --------------------------> '$LDFLAGS'
255 "'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS'
256 "'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS'
257 "'$'"GTKMM_CFLAGS ---------------------> '$GTKMM_CFLAGS'
258 "'$'"GTKMM_LIBS -----------------------> '$GTKMM_LIBS'