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_CHECK_HEADERS([tr1/unordered_map],[
137 AC_DEFINE([HASH_MAP_CLASS],[HASH_MAP_NAMESPACE::unordered_map],[The template name for unordered maps.])
138 AC_DEFINE([HASH_MAP_H],[<tr1/unordered_map>],[The header file to include for unordered maps.])
139 AC_DEFINE([HASH_MAP_NAMESPACE],[std::tr1],[The namespace for unordered maps.])
141 AC_CHECK_HEADERS([ext/hash_map],[
142 AC_DEFINE([HASH_MAP_CLASS],[HASH_MAP_NAMESPACE::hash_map],[The template name for unordered maps.])
143 AC_DEFINE([HASH_MAP_H],[<ext/hash_map>],[The header file to include for unordered maps.])
144 AC_DEFINE([HASH_MAP_NAMESPACE],[__gnu_cxx],[The namespace for unordered maps.])
146 AC_MSG_ERROR([C++ compiler does not seem to support unordered containers])
150 # Check for unordered_set or hash_set headers
151 AC_CHECK_HEADERS([tr1/unordered_set],[
152 AC_DEFINE([HASH_SET_CLASS],[HASH_SET_NAMESPACE::unordered_set],[The template name for unordered sets.])
153 AC_DEFINE([HASH_SET_H],[<tr1/unordered_set>],[The header file to include for unordered sets.])
154 AC_DEFINE([HASH_SET_NAMESPACE],[std::tr1],[The namespace for unordered sets.])
156 AC_CHECK_HEADERS([ext/hash_set],[
157 AC_DEFINE([HASH_SET_CLASS],[HASH_SET_NAMESPACE::hash_set],[The template name for unordered sets.])
158 AC_DEFINE([HASH_SET_H],[<ext/hash_set>],[The header file to include for unordered sets.])
159 AC_DEFINE([HASH_SET_NAMESPACE],[__gnu_cxx],[The namespace for unordered sets.])
161 AC_MSG_ERROR([C++ compiler does not seem to support unordered containers])
165 # -- H E A D E R S --------------------------------------------
167 AC_CHECK_HEADERS([unistd.h signal.h fcntl.h])
168 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h sys/errno.h])
170 # -- T Y P E S & S T R U C T S --------------------------------
172 # -- F U N C T I O N S ----------------------------------------
174 AC_CHECK_FUNCS([fork])
175 AC_CHECK_FUNCS([kill])
176 AC_CHECK_FUNCS([pipe])
177 AC_CHECK_FUNCS([setpriority mkfifo stat])
179 # -- A R G U M E N T S ----------------------------------------
181 # -- O U T P U T ----------------------------------------------
187 AC_SUBST(SVN_REPOSITORY)
189 AC_SUBST(API_VERSION)
197 imagedir="${datadir}/pixmaps/synfigstudio"
208 synfigstudio-thumbnailer.schemas
211 src/synfigapp/Makefile
214 pkg-info/macosx/synfig-studio.info
217 # -- S U M M A R Y --------------------------------------------
220 $PACKAGE_NAME v.$VERSION
221 Configuration Summary
224 Install Prefix -------------------> $prefix
225 Host Platform --------------------> $host
226 Icon Format ----------------------> $imageext
227 Debug Mode -----------------------> $debug
228 Profiling Mode -------------------> $profiling
229 Optimizations --------------------> $optimization
230 Window System --------------------> $windowsys
231 FMOD Enabled ---------------------> $with_libfmod
233 "'$'"CXX ------------------------------> '$CXX'
234 "'$'"CXXFLAGS -------------------------> '$CXXFLAGS'
235 "'$'"LDFLAGS --------------------------> '$LDFLAGS'
236 "'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS'
237 "'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS'
238 "'$'"GTKMM_CFLAGS ---------------------> '$GTKMM_CFLAGS'
239 "'$'"GTKMM_LIBS -----------------------> '$GTKMM_LIBS'