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_DEFINE(SHOW_EXTRA_INFO,[],[Show extra info in the about dialog])
45 AC_ARG_BRANCH_PROBABILITIES
49 --enable-g5opt enable optimizations specific to G5 proc],[
50 G5OPTFLAGS="-mpowerpc-gpopt -mno-multiple -mno-update -mcpu=970 -mtune=970 -falign-loops=16 -falign-functions=16"
63 AC_SUBST(LIBTOOL_DEPS)
66 ## FIXME: add i18n for .desktop and other non-compiled files
67 ## AM_GLIB_GNU_GETTEXT([external])
68 ## AC_PROG_INTLTOOL(0.11)
70 AM_GNU_GETTEXT([external])
71 # This is here so autoreconf will run autopoint
72 AM_GNU_GETTEXT_VERSION([0.14.4])
76 AM_CONDITIONAL(WIN32_PKG, true)
77 AM_CONDITIONAL(MACOSX_PKG, false)
80 AM_CONDITIONAL(WIN32_PKG, false)
81 AM_CONDITIONAL(MACOSX_PKG, true)
84 AM_CONDITIONAL(WIN32_PKG, false)
85 AM_CONDITIONAL(MACOSX_PKG, false)
88 # -- L I B R A R I E S ----------------------------------------
90 PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 gthread-2.0,[
91 AC_MSG_CHECKING([for Gtk::AboutDialog::set_program_name])
92 synfigstudio_save_cxxflags="$CXXFLAGS"
93 CXXFLAGS="$GTKMM_CFLAGS $CXXFLAGS"
97 [#include <gtkmm/aboutdialog.h>]
99 [Gtk::AboutDialog about; about.set_program_name(PACKAGE_NAME)]
103 AC_DEFINE(HAVE_GTK_ABOUTDIALOG_SET_PROGRAM_NAME,[],[Define if GTKmm provides Gtk::AboutDialog::set_program_name()] )
104 AM_CONDITIONAL(HAVE_GTK_ABOUTDIALOG_SET_PROGRAM_NAME,true)
107 AM_CONDITIONAL(HAVE_GTK_ABOUTDIALOG_SET_PROGRAM_NAME,false)
110 CXXFLAGS="$synfigstudio_save_cxxflags"
112 AC_MSG_ERROR([ ** Gtkmm-2.4 Is a required library, aborting.])
114 AC_SUBST(GTKMM_CFLAGS)
117 PKG_CHECK_MODULES(SYNFIG, [synfig >= 0.61.07] [ETL >= 0.04.10] sigc++-2.0,,[
118 AC_MSG_ERROR([ ** Unable to set up dependent libraries (synfig >= 0.61.07, ETL >= 0.04.10)])
120 AC_SUBST(SYNFIG_CFLAGS)
121 AC_SUBST(SYNFIG_LIBS)
124 AC_DEFINE(STUDIO_WINSYS_H,"gtkmm/winsys.h",[blah])
125 AM_CONDITIONAL(WINDOWSYS_GTKMM,true)
127 AC_ARG_WITH(userdir,[
128 --with-userdir=(dirname) Relative path to user directory],[
132 with_userdir="Synfig"
135 with_userdir="Library/Synfig"
138 with_userdir=".synfig"
142 AC_DEFINE_UNQUOTED(SYNFIG_USER_APP_DIR,"$with_userdir",[Synfig User Data Directory])
144 # --- FMOD CHECK -------------
145 AC_ARG_WITH(libfmod,[
146 --with-libfmod Enable support for FMOD],[
148 AC_CHECK_LIB(fmod, FSOUND_Init,[
154 if test $with_libfmod = "yes" ; then {
155 AM_CONDITIONAL(WITH_FMOD,true)
156 FMOD_LIBS="/usr/lib/libfmod.so"
157 AC_DEFINE(WITH_FMOD,"I'm here damnit",[blah])
159 AM_CONDITIONAL(WITH_FMOD,false)
163 # Check for unordered_map or hash_map headers
164 AC_MSG_CHECKING([for unordered_map<int,int>::const_iterator])
167 [#include <tr1/unordered_map>]
169 [std::tr1::unordered_map<int,int>::const_iterator iter;]
172 AC_DEFINE([HASH_MAP_CLASS],[HASH_MAP_NAMESPACE::unordered_map],[The template name for unordered maps.])
173 AC_DEFINE([HASH_MAP_H],[<tr1/unordered_map>],[The header file to include for unordered maps.])
174 AC_DEFINE([HASH_MAP_NAMESPACE],[std::tr1],[The namespace for unordered maps.])
175 AC_DEFINE([FUNCTIONAL_H],[<tr1/functional>],[The header file for hash<T>.])
176 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.])
179 AC_CHECK_HEADERS([ext/hash_map],[
180 AC_DEFINE([HASH_MAP_CLASS],[HASH_MAP_NAMESPACE::hash_map],[The template name for unordered maps.])
181 AC_DEFINE([HASH_MAP_H],[<ext/hash_map>],[The header file to include for unordered maps.])
182 AC_DEFINE([HASH_MAP_NAMESPACE],[__gnu_cxx],[The namespace for unordered maps.])
183 AC_DEFINE([FUNCTIONAL_H],[<ext/functional>],[The header file for hash<T>.])
185 AC_MSG_ERROR([C++ compiler does not seem to support unordered containers])
189 # Check for unordered_set or hash_set headers
190 AC_MSG_CHECKING([for unordered_set<int,int>::const_iterator])
193 [#include <tr1/unordered_set>]
195 [std::tr1::unordered_set<int,int>::const_iterator iter;]
198 AC_DEFINE([HASH_SET_CLASS],[HASH_SET_NAMESPACE::unordered_set],[The template name for unordered sets.])
199 AC_DEFINE([HASH_SET_H],[<tr1/unordered_set>],[The header file to include for unordered sets.])
200 AC_DEFINE([HASH_SET_NAMESPACE],[std::tr1],[The namespace for unordered sets.])
203 AC_CHECK_HEADERS([ext/hash_set],[
204 AC_DEFINE([HASH_SET_CLASS],[HASH_SET_NAMESPACE::hash_set],[The template name for unordered sets.])
205 AC_DEFINE([HASH_SET_H],[<ext/hash_set>],[The header file to include for unordered sets.])
206 AC_DEFINE([HASH_SET_NAMESPACE],[__gnu_cxx],[The namespace for unordered sets.])
208 AC_MSG_ERROR([C++ compiler does not seem to support unordered containers])
212 # -- H E A D E R S --------------------------------------------
214 AC_CHECK_HEADERS([unistd.h signal.h fcntl.h])
215 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h sys/errno.h])
217 # -- T Y P E S & S T R U C T S --------------------------------
219 # -- F U N C T I O N S ----------------------------------------
221 AC_CHECK_FUNCS([fork])
222 AC_CHECK_FUNCS([kill])
223 AC_CHECK_FUNCS([pipe])
224 AC_CHECK_FUNCS([setpriority mkfifo stat])
226 # -- A R G U M E N T S ----------------------------------------
228 # -- O U T P U T ----------------------------------------------
234 AC_SUBST(SVN_REPOSITORY)
236 AC_SUBST(API_VERSION)
244 imagedir="${datadir}/pixmaps/synfigstudio"
256 synfigstudio-thumbnailer.schemas
259 src/synfigapp/Makefile
262 pkg-info/macosx/synfig-studio.info
265 # -- S U M M A R Y --------------------------------------------
268 $PACKAGE_NAME v.$VERSION
269 Configuration Summary
272 Install Prefix -------------------> $prefix
273 Host Platform --------------------> $host
274 Icon Format ----------------------> $imageext
275 Debug Mode -----------------------> $debug
276 Profiling Mode -------------------> $profiling
277 Optimizations --------------------> $optimization
278 Window System --------------------> $windowsys
279 FMOD Enabled ---------------------> $with_libfmod
281 "'$'"CXX ------------------------------> '$CXX'
282 "'$'"CXXFLAGS -------------------------> '$CXXFLAGS'
283 "'$'"LDFLAGS --------------------------> '$LDFLAGS'
284 "'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS'
285 "'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS'
286 "'$'"GTKMM_CFLAGS ---------------------> '$GTKMM_CFLAGS'
287 "'$'"GTKMM_LIBS -----------------------> '$GTKMM_LIBS'