1 # $Header: /opt/voria/cvs/studio/config/configure.ac,v 1.3 2005/01/17 05:20:08 darco Exp $
3 # -- I N I T --------------------------------------------------
5 . $srcdir/config/build.cfg
7 AC_INIT(@PACKAGE_NAME@,@PACKAGE_VERSION@,@PACKAGE_BUGREPORT@,@PACKAGE_TARNAME@)
10 AC_CONFIG_AUX_DIR(config)
11 AM_CONFIG_HEADER(config.h)
13 dnl AC_CANONICAL_TARGET
19 # -- V A R I A B L E S ----------------------------------------
21 SVN_REPOSITORY=@SVN_REPOSITORY@
23 # -- P R O G R A M S ------------------------------------------
38 AC_ARG_BRANCH_PROBABILITIES
43 --enable-g5opt enable optimizations specific to G5 proc],[
44 G5OPTFLAGS="-mpowerpc-gpopt -mno-multiple -mno-update -mcpu=970 -mtune=970 -falign-loops=16 -falign-functions=16"
57 AC_SUBST(LIBTOOL_DEPS)
64 dnl AC_PROG_INTLTOOL(0.11)
68 AM_CONDITIONAL(WIN32_PKG, true)
69 AM_CONDITIONAL(MACOSX_PKG, false)
72 AM_CONDITIONAL(WIN32_PKG, false)
73 AM_CONDITIONAL(MACOSX_PKG, true)
76 AM_CONDITIONAL(WIN32_PKG, false)
77 AM_CONDITIONAL(MACOSX_PKG, false)
80 # -- L I B R A R I E S ----------------------------------------
82 PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 gthread-2.0,[],[
83 AC_MSG_ERROR([ ** Gtkmm-2.4 Is a required library, aborting.])
85 AC_SUBST(GTKMM_CFLAGS)
88 PKG_CHECK_MODULES(SYNFIG, synfig ETL sigc++-2.0,,[
89 AC_MSG_ERROR([ ** Unable to set up dependent libraries])
91 AC_SUBST(SYNFIG_CFLAGS)
95 AC_DEFINE(STUDIO_WINSYS_H,"gtkmm/winsys.h",[blah])
96 AM_CONDITIONAL(WINDOWSYS_GTKMM,true)
99 # --- FMOD CHECK -------------
100 AC_ARG_WITH(libfmod,[
101 --with-libfmod Enable support for FMOD],[
103 AC_CHECK_LIB(fmod, FSOUND_Init,[
109 if test $with_libfmod = "yes" ; then {
110 AM_CONDITIONAL(WITH_FMOD,true)
111 FMOD_LIBS="/usr/lib/libfmod.so"
112 AC_DEFINE(WITH_FMOD,"I'm here damnit",[blah])
114 AM_CONDITIONAL(WITH_FMOD,false)
118 # -- H E A D E R S --------------------------------------------
120 AC_CHECK_HEADERS([unistd.h signal.h fcntl.h])
121 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h sys/errno.h])
123 # -- T Y P E S & S T R U C T S --------------------------------
125 # -- F U N C T I O N S ----------------------------------------
127 AC_CHECK_FUNCS([fork])
128 AC_CHECK_FUNCS([kill])
129 AC_CHECK_FUNCS([pipe])
130 AC_CHECK_FUNCS([setpriority mkfifo stat])
132 # -- A R G U M E N T S ----------------------------------------
134 # -- O U T P U T ----------------------------------------------
140 AC_SUBST(SVN_REPOSITORY)
142 VERSION_MAJ=@VERSION_MAJ@
143 VERSION_MIN=@VERSION_MIN@
144 VERSION_REV=@VERSION_REV@
145 AC_SUBST(VERSION_MAJ)
146 AC_SUBST(VERSION_MIN)
147 AC_SUBST(VERSION_REV)
152 imagedir=$datadir/pixmaps
161 AC_DEFINE_UNQUOTED(IMAGE_EXT,"$imageext", [ Describes the file extension for images ] )
163 [[ $prefix = NONE ]] && prefix=$ac_default_prefix
165 AC_DEFINE_UNQUOTED(IMAGE_DIR,"`echo echo $imagedir | sh`", [ Describes where the icons and stuff will be ] )
174 src/synfigapp/Makefile
177 pkg-info/macosx/synfig-studio.info
180 # -- S U M M A R Y --------------------------------------------
183 $PACKAGE_NAME v.$VERSION
184 Configuration Summary
187 Install Prefix -------------------> $prefix
188 Data Prefix ----------------------> $datadir
189 Host Platform --------------------> $host
190 Icon Format ----------------------> $imageext
191 Debug Mode -----------------------> $debug
192 Profiling Mode -------------------> $profiling
193 Optimizations --------------------> $optimization
194 Window System --------------------> $windowsys
195 FMOD Enabled ---------------------> $with_libfmod
197 "'$'"CXX ------------------------------> '$CXX'
198 "'$'"CXXFLAGS -------------------------> '$CXXFLAGS'
199 "'$'"LDFLAGS --------------------------> '$LDFLAGS'
200 "'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS'
201 "'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS'
202 "'$'"GTKMM_CFLAGS ---------------------> '$GTKMM_CFLAGS'
203 "'$'"GTKMM_LIBS -----------------------> '$GTKMM_LIBS'