Subversion Repositories Scribus

Rev

Rev 2403 | Rev 2406 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2398 craig 1
dnl Process this file with autoconf to produce a configure script.
2
 
779 fschmid 3
# Original Author was Kalle@kde.org
4
# I lifted it in some mater. (Stephan Kulow)
5
# I used much code from Janos Farkas
2398 craig 6
# Heavily tweaked and modified for Scribus by Craig Ringer
779 fschmid 7
 
2398 craig 8
dnl Quick `configure.in.in' survival guide:
9
dnl
10
dnl AC_MSG_WARN([warning message])
11
dnl     prints the warning and continues
12
dnl AC_MSG_ERROR([error message])
13
dnl     prints the error and stops configure
2400 craig 14
dnl AC_PATH_PROG([VARNAME],[programname],[notfoundvalue],[search path])
15
dnl     Searches for programname along search path or default path and sets
16
dnl     VARNAME to the path to the program, if found. If not found and
17
dnl     notfoundvalue provided, sets VARNAME to notfoundvalue, otherwise "".
2398 craig 18
dnl AC_CHECK_LIB(lib_basename, lib_symbol, [command_if_success], [command_if_fail])
19
dnl     Looks for a library with basename lib_basename, ie libfreetype.so.3.0.0
20
dnl     might be found for lib_basename=libfreetype, and checks for the lib_symbol
21
dnl     symbol inside. The symbol is usually an important function, a version symbol,
22
dnl     etc. Runs the specified commands on failure (lib not found OR symbol not found)
23
dnl     or success, as appropriate.
24
dnl AC_CHECK_HEADER(headerfilename.h, [successcommand], [failcommand])
25
dnl     Search for headerfilename.h. If found, run successcommand, otherwise
26
dnl     run failcommand.
27
dnl AC_SUBST(VARNAME)
28
dnl     "export" VARNAME so that it's defined in the Makefile.in with the value
29
dnl     it was set to in this script. Thus:
30
dnl         LIBFRED=" -lfred "
31
dnl         AC_SUBST(LIBFRED)
32
dnl     will let you use $(LIBFRED) in the Makefile.am .
33
dnl AC_DEFINE_UNQUOTED(VARNAME, VALUE, [comment in config.h])
34
dnl     Sets VARNAME to VALUE in config.h, so it can be tested for in preprocessor
35
dnl     macros in the source. The supplied comment is included in config.h .
36
dnl
37
dnl configure.in.in is written in shell script, plus M4 macros that expand into
38
dnl yet more shell script. Some M4 macros are provided by autoconf and automake,
39
dnl some by libtool, and some are provided by KDE. In general, if its
40
dnl UPPER_CASE(WITH_BRACKETS) it'll be an M4 macro, and if it looks like shell
41
dnl script it probably is. Variables are boring old shell variables unless exported
42
dnl to somewhere using AC_SUBST(...) or AC_DEFINE_UNQUOTED(...) and friends.
43
dnl
2399 craig 44
dnl `dnl' is an M4 comment, # is a shell comment. The only differences are that
45
dnl M4 macros in shell comments still get expanded so if you want to "comment out"
46
dnl code with M4 macros you must use dnl, and that dnl comments are omitted from
47
dnl configure.in .
48
dnl
49
dnl Note that you should NOT assume the user has bash. Ensure that you TEST YOUR CODE
50
dnl with ash or a similar "primitive" shell before committing.
51
dnl
2398 craig 52
dnl Blame any errors in the above entirely on Craig Ringer. Please see the
53
dnl autoconf documentation (ha!) for details on these and more.
779 fschmid 54
 
55
AC_INIT(acinclude.m4) dnl a source file from your sub dir
56
 
57
dnl This is so we can use kde-common
58
AC_CONFIG_AUX_DIR(admin)
59
 
60
AC_CANONICAL_SYSTEM
61
AC_ARG_PROGRAM
62
 
63
dnl Automake doc recommends to do this only here. (Janos)
64
AM_INIT_AUTOMAKE(scribus,1.3.0cvs)
65
 
66
dnl KDE_SET_PREFIX
67
 
68
AC_PREFIX_DEFAULT(/usr/local)
69
if test "x$prefix" = "xNONE"; then
70
  prefix=$ac_default_prefix
71
  ac_configure_args="$ac_configure_args --prefix $prefix"
72
fi
73
 
1592 craig 74
dnl Look for pkg-config, which we use to find fontconfig and
75
dnl will probably need for other things in future.
76
PKG_CONFIG=""
77
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
779 fschmid 78
 
2399 craig 79
dnl Define a handy function to print a message for when libraries
80
dnl can't be found. This can be called from configure.in.in, and from
81
dnl configure.in.bot (which is, after all, just tacked on the bottom
82
dnl during the generation of configure).
83
 
2405 craig 84
libmissing_text="\
85
You may need to install some additional libraries or packages (on Linux,
86
that may mean -dev or -devel packages too). Also check your environment
87
variables. See the BUILDING file for details and troubleshooting."
88
 
2399 craig 89
missing_libs=""
90
 
2405 craig 91
# Usage: libmissing libfreetype required
92
#        libmissing libfontconfig optional
93
# to report a missing library
2399 craig 94
function libmissing() {
2405 craig 95
	# name of library
96
	libname="${1}"
97
	# one of "optional" or "required"
98
	liboptional="${2}"
99
 
100
	missing_libs="${libname} ${missing_libs}"
101
	if test "${liboptional}" = "required"; then
102
		reqword="required"
103
		endmsg="This library is required for Scribus to build. Configure will now terminate."
104
	elif test "${liboptional}" = "optional"; then
105
		reqword="optional"
106
		endmsg="This library is optional, and Scribus will build without it. Continuing."
107
	else
108
		endmsg=""
109
	fi
110
 
2400 craig 111
	AC_MSG_WARN([
112
-------------------------------------------------------------------------------
2405 craig 113
The ${reqword} library ${libname} could not be found. See the BUILDING file.
114
 
115
${libmissing_text}
116
${endmsg}
2400 craig 117
-------------------------------------------------------------------------------
118
])
2405 craig 119
 
2399 craig 120
}
2405 craig 121
# end libmissing()
2399 craig 122
 
123
 
779 fschmid 124
LIBART_LIBS=""
125
LIBART_CFLAGS=""
126
LIBART_CONFIG=""
2399 craig 127
 
128
AC_PATH_PROG(LIBART_CONFIG,
2401 craig 129
			 libart2-config,
2400 craig 130
			 [],
2399 craig 131
			 [$PATH ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /usr/nekoware/bin /opt/local/bin])
132
 
779 fschmid 133
if test -n "$LIBART_CONFIG"; then
134
  vers=`$LIBART_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
135
  if test -n "$vers" && test "$vers" -ge 2003008
136
  then
137
     LIBART_LIBS="`$LIBART_CONFIG --libs`"
138
     LIBART_CFLAGS="`$LIBART_CONFIG --cflags`"
139
     AC_DEFINE_UNQUOTED(HAVE_LIBART, 1, [Defines if your system has the libart library])
140
  else
2405 craig 141
     libmissing libart required
2401 craig 142
	 AC_MSG_ERROR([You need at least libart 2.3.8 . See the BUILDING file.])
779 fschmid 143
  fi
2400 craig 144
else
2405 craig 145
  libmissing libart required
2401 craig 146
  AC_MSG_ERROR([You need at least libart 2.3.8 . See the BUILDING file.])
779 fschmid 147
fi
148
AC_SUBST(LIBART_LIBS)
149
AC_SUBST(LIBART_CFLAGS)
150
AC_C_BIGENDIAN
151
 
1599 craig 152
dnl Check for freetype, which Scribus *requires* to build
779 fschmid 153
LIBFREETYPE_LIBS=""
154
LIBFREETYPE_CFLAGS=""
155
 
156
FREETYPE_CONFIG=""
2399 craig 157
AC_PATH_PROG(FREETYPE_CONFIG,
2403 craig 158
			 freetype-config,
2402 craig 159
			 [],
2399 craig 160
			 [$PATH ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin /usr/nekoware/bin /usr/X11/bin])
779 fschmid 161
 
162
hafree=no
2312 craig 163
hafree_post219=
779 fschmid 164
if test -n "$FREETYPE_CONFIG"; then
165
	LIBFREETYPE_LIBS="`$FREETYPE_CONFIG --libs`"
1599 craig 166
	LIBFREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`"
779 fschmid 167
	AC_CHECK_LIB(freetype, FT_Get_First_Char, [hafree=yes],[hafree=no], "$LIBFREETYPE_LIBS")
168
	AC_CHECK_LIB(freetype, FT_Get_Next_Char, [hafree=yes],[hafree=no], "$LIBFREETYPE_LIBS")
169
	if test $hafree = yes; then
170
		AC_DEFINE_UNQUOTED(HAVE_FREETYPE, 1, [Defines if your system has the libfreetype library])
171
	else
2405 craig 172
		libmissing libfreetype required
1599 craig 173
		AC_MSG_ERROR([You need at least freetype 2.1.0])
779 fschmid 174
	fi
1599 craig 175
 
2312 craig 176
	dnl Warn the user if they have less than freetype 2.1.9
177
	dnl Changed to fatal error
178
	AC_MSG_CHECKING(freetype version > 2.1.9)
1599 craig 179
	SAVE_CFLAGS="${CFLAGS}"
180
	CFLAGS=" ${LIBFREETYPE_CFLAGS} "
181
	AC_TRY_COMPILE([
182
	#include <ft2build.h>
183
	#include FT_FREETYPE_H
184
	],[
2312 craig 185
	#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR == 1 && FREETYPE_PATCH < 9
186
	#error freetype 2.1 older than 2.1.9
1599 craig 187
	#endif
2312 craig 188
	], [hafree_post219=yes], [hafree_post219=no])
1599 craig 189
	CFLAGS="${SAVE_CFLAGS}"
2312 craig 190
	AC_MSG_RESULT($hafree_post219)
191
	if test hafree_post219 = no; then
192
		AC_MSG_WARN([Your libfreetype is too old - version 2.1.9 or newer strongly recommended])
1599 craig 193
	fi
194
 
195
	dnl Export the includes and lib path settings required to build with freetype.
779 fschmid 196
	AC_SUBST(LIBFREETYPE_LIBS)
197
	AC_SUBST(LIBFREETYPE_CFLAGS)
198
else
2405 craig 199
	libmissing libfreetype required
2401 craig 200
	AC_MSG_ERROR([You need at least freetype 2.1.0])
779 fschmid 201
fi
202
 
1592 craig 203
dnl Try to find fontconfig using fontconfig-config or pkg-config.
1920 craig 204
hafontconfig=no
779 fschmid 205
LIBFONTCONFIG_LIBS=""
206
LIBFONTCONFIG_CFLAGS=""
207
FONTCONFIG_CONFIG=""
208
 
1920 craig 209
dnl Try to find fontconfig with pkg-config if we have pkg-config
210
AC_MSG_CHECKING([Checking for fontconfig with pkg-config])
211
if test -n "$PKG_CONFIG"; then
1592 craig 212
	LIBFONTCONFIG_LIBS="`$PKG_CONFIG fontconfig --libs`"
213
	LIBFONTCONFIG_CFLAGS="`$PKG_CONFIG fontconfig --cflags`"
1920 craig 214
	if test -n "$LIBFONTCONFIG_LIBS" || test -n "$LIBFONTCONFIG_CFLAGS"; then
215
		AC_MSG_RESULT([found])
216
	else
217
		AC_MSG_RESULT([not found])
218
	fi
779 fschmid 219
else
1920 craig 220
	AC_MSG_RESULT([failed: pkg-config not found])
779 fschmid 221
fi
1635 craig 222
 
1920 craig 223
dnl If fontconfig not found with pkg-config, try to find fontconfig-config
224
dnl and use that to look for fontconfig.
225
if test -z "$LIBFONTCONFIG_LIBS" && test -z "$LIBFONTCONFIG_CFLAGS"; then
2399 craig 226
	dnl Seems we didn't find fontconfig with pkg-config, so search for the old
227
	dnl fontconfig-config program instead.
228
	AC_PATH_PROG(FONTCONFIG_CONFIG,
229
				 fontconfig-config,
230
				 [],
231
				 [$PATH ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin /usr/nekoware/bin /usr/X11/bin])
1920 craig 232
	if test -n "$FONTCONFIG_CONFIG"; then
233
		dnl found fontconfig-config, use it's results
234
		LIBFONTCONFIG_LIBS="`$FONTCONFIG_CONFIG --libs`"
235
		LIBFONTCONFIG_CFLAGS="`$FONTCONFIG_CONFIG --cflags`"
236
	else
237
		AC_MSG_WARN([Couldn't find fontconfig-config or find fontconfig with pkg-config])
238
	fi
239
fi
240
 
1635 craig 241
dnl Check to see if we can compile fontconfig
242
SAVE_CFLAGS="${CFLAGS}"
243
SAVE_LDFLAGS="${LDFLAGS}"
244
CFLAGS="${CFLAGS} ${LIBFONTCONFIG_CFLAGS}"
245
LDFLAGS="${LDFLAGS} ${LIBFONTCONFIG_LIBS}"
1592 craig 246
AC_CHECK_LIB(fontconfig, FcPatternBuild, [hafontconfig=yes],[hafontconfig=no])
1635 craig 247
CFLAGS="${SAVE_CFLAGS}"
248
LDFLAGS="${SAVE_LDFLAGS}"
1592 craig 249
if test $hafontconfig = yes; then
250
	AC_DEFINE_UNQUOTED(HAVE_FONTCONFIG, 1, [Defines if your system has the libfontconfig library])
251
else
2405 craig 252
	libmissing libfontconfig optional
1592 craig 253
	AC_MSG_WARN([Couldn't find a usable libfontconfig])
254
fi
255
AC_SUBST(LIBFONTCONFIG_LIBS)
256
AC_SUBST(LIBFONTCONFIG_CFLAGS)
779 fschmid 257
 
1592 craig 258
 
779 fschmid 259
XML_LIBS=""
260
XML_CFLAGS=""
261
 
262
XML_CONFIG=""
2399 craig 263
AC_PATH_PROG(XML_CONFIG,
264
			 xml2-config,
2403 craig 265
			 [],
2399 craig 266
			 [${PATH} ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin /usr/nekoware/bin /usr/X11/bin])
779 fschmid 267
 
1599 craig 268
dnl check for LibXML2
779 fschmid 269
haxml=no
2314 craig 270
haxml26=no
271
AC_ARG_ENABLE(xml, [  --disable-xml       Don't use libxml2 and turn off some Scribus features.], [disable_xml2="yes"])
272
if test "$disable_xml2" != "yes"; then
273
	if test -n "$XML_CONFIG"; then
274
		XML_LIBS="`$XML_CONFIG --libs`"
275
		XML_CFLAGS="`$XML_CONFIG --cflags`"
276
		AC_CHECK_LIB(xml2, attribute, [haxml=yes],[haxml=no])
277
		if test $haxml = yes; then
278
			AC_DEFINE_UNQUOTED(HAVE_XML, 1, [Defines if your system has the libxml2 library])
279
			AC_SUBST(XML_LIBS)
280
			AC_SUBST(XML_CFLAGS)
2403 craig 281
		else
282
			libmising libxml2
283
			AC_MSG_WARN([Couldn't find a usable libxml2])
2314 craig 284
		fi
285
		vers=`$XML_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
286
		if test -n "$vers" && test "$vers" -ge 2006000
287
		then
288
			AC_DEFINE_UNQUOTED(HAVE_XML26, 1, [Defines if your system has the libxml2 library6])
289
			haxml26=yes
290
		fi
2403 craig 291
	else
2405 craig 292
		libmissing libxml2 optional
2403 craig 293
		AC_MSG_WARN([Couldn't find a usable libxml2])
779 fschmid 294
	fi
295
fi
296
 
1599 craig 297
dnl check for -lsocket
779 fschmid 298
AC_CHECK_LIB(socket,socket,
299
if test "$uname" != "IRIX"; then
300
	LIBS="-lsocket $LIBS"
301
else
302
	echo "Not using -lsocket since you are running IRIX."
303
fi)
304
AC_CHECK_LIB(nsl,gethostbyaddr,
305
if test "$uname" != "IRIX"; then
306
	LIBS="-lnsl $LIBS"
307
else
308
	echo "Not using -lnsl since you are running IRIX."
309
fi)
310
 
1595 craig 311
dnl Check for lcms
312
dnl TODO look for lcms using pkg-config too
2310 craig 313
dnl TODO: convert to use --with-lcms= and AC_ARG_WITH(...)
779 fschmid 314
LIBLCMS=""
315
hacms=
2310 craig 316
AC_ARG_ENABLE(lcms, [  --disable-lcms     Don't use colour management (default=no)], [disable_lcms="yes"])
317
 
318
# If lcms hasn't been explicitly disabled, look for it and see
319
# if we can use it.
320
if test "$disable_lcms" != "yes"; then
321
	# See if liblcms.so is on our search path and looks vaguely valid
322
	AC_CHECK_LIB(lcms, _cmsChannelsOf, [LIBLCMS="-llcms";hacms=yes],[LIBLCMS="";hacms=no],[-lm])
323
	hacmsh=
324
	lcms_h=
325
	# and search for lcms.h, which may or may not be in an lcms/ subdir
326
	AC_CHECK_HEADER(lcms.h, [hacmsh=yes],[hacmsh=no])
327
	if test $hacmsh = no; then
328
		AC_CHECK_HEADER(lcms/lcms.h, [hacmsh=yes],[hacmsh=no])
329
		if test $hacmsh = yes; then
330
			AC_DEFINE_UNQUOTED(CMS_INC, "lcms/lcms.h", [ColorManagementInclude])
331
			lcms_h="lcms/lcms.h"
332
		fi
333
	else
334
		AC_DEFINE_UNQUOTED(CMS_INC, "lcms.h", [ColorManagementInclude])
335
		lcms_h="lcms.h"
779 fschmid 336
	fi
2310 craig 337
	if test $hacmsh = no; then
338
		# There's not much point finding -llcms if we can't find the header file...
339
		hacms=no
340
	fi
779 fschmid 341
fi
1595 craig 342
dnl Attempt to check that lcms is new enough
343
if test $hacms = yes; then
344
	AC_MSG_CHECKING(liblcms version > 1.1.2)
345
	AC_TRY_COMPILE([
346
	#include "$lcms_h"
1599 craig 347
	],[
1595 craig 348
	#if LCMS_VERSION < 112
349
	#error liblcms is too old, need LittleCMS 1.1.2 or newer
350
	#endif
1599 craig 351
	], [], [hacms=pre112])
1595 craig 352
	AC_MSG_RESULT($hacms)
353
fi
354
 
779 fschmid 355
AC_SUBST(LIBLCMS)
356
if test $hacms = yes && test $hacmsh = yes; then
357
 AC_DEFINE_UNQUOTED(HAVE_CMS, 1, [ColorManagement])
358
fi
1580 craig 359
 
360
dnl Checks for libtiff - library exists, tiffvers.h can be found, and new enough.
779 fschmid 361
LIBTIFF=""
362
hastif=
1580 craig 363
dnl Check if we have libtiff
779 fschmid 364
AC_CHECK_LIB(tiff, TIFFOpen, [LIBTIFF="-ltiff";hastif=yes],[LIBTIFF="";hastif=no],[-lm])
1585 craig 365
if test $hastif = yes; then
366
	dnl Check for tiffvers.h
367
	AC_CHECK_HEADER(tiffvers.h, [], [LIBTIFF="";hastif=no])
368
	if test $hastif = yes; then
369
		dnl Now attempt to check if libtiff is new enough
370
		AC_MSG_CHECKING(libtiff version > 3.6.0)
371
		AC_TRY_COMPILE([
372
		#include "tiffvers.h"
1599 craig 373
		],[
1585 craig 374
		#if TIFFLIB_VERSION < 20031007
375
		#error libtiff is too old, need libtiff 3.6.0 or newer.
376
		#endif
1599 craig 377
		], [], [LIBTIFF="";hastif=pre36])
1585 craig 378
		AC_MSG_RESULT($hastif)
379
	fi
380
fi
779 fschmid 381
AC_SUBST(LIBTIFF)
382
if test $hastif = yes; then
383
 AC_DEFINE_UNQUOTED(HAVE_TIFF, 1, [Tifflib])
384
fi
1580 craig 385
 
779 fschmid 386
LIBDL2=""
387
AC_CHECK_LIB(c, dlopen, [LIBDL2="-lc"],[LIBDL2=""])
388
AC_SUBST(LIBDL2)
389
 
390
dnl generate the config header
391
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
392
 
393
dnl Checks for programs.
394
AC_CHECK_COMPILERS
395
AC_ENABLE_SHARED(yes)
396
AC_ENABLE_STATIC(no)
397
KDE_PROG_LIBTOOL
398
 
399
hapython=yes
400
kde_python_link_found=no
401
KDE_CHECK_PYTHON(1.5)
402
COMPILE_PYTHON=no
403
AC_ARG_WITH(python, [  --without-python     Do not compile the Scripter Plugin],[ COMPILE_PYTHON=no ],[ COMPILE_PYTHON=yes ])
404
if test $kde_python_link_found = no; then
405
	COMPILE_PYTHON=no
406
fi
407
if test $kde_python_link_found = yes; then
408
  AC_CHECK_HEADER(python2.3/Python.h, [foo=""],[hapython=no])
409
   if test $hapython = yes; then
410
    AC_DEFINE_UNQUOTED(HAVE_PYTHON_23, 1, [Python])
411
   fi
412
fi
413
AM_CONDITIONAL(COMPILE_PYTHON, test x$COMPILE_PYTHON = xyes)
414
 
2311 craig 415
AC_ARG_ENABLE(cups, [  --disable-cups        Do not compile support for CUPS printing],[disable_cups=yes])
416
LIBCUPS=""
417
hacups=no
418
if test "$disable_cups" != "yes" ; then
419
	# Look for cups.h
420
	AC_CHECK_HEADER(cups/cups.h, [hacups_h=yes],[hacups_h=no])
421
	AC_CHECK_PROG(hacups_cfg, cups-config, yes, no)
422
	echo "'$hacups_cfg' '$hacups_h'" >/tmp/cfg
423
	if test "x$hacups_h" = "xyes" && test "x$hacups_cfg" = "xyes"; then
424
		# We have the CUPS libs and headers, so enable
425
		# the use of CUPS and tell the build where to
426
		# find it.
427
		LIBCUPS="`cups-config --libs`"
428
		AC_DEFINE_UNQUOTED(HAVE_CUPS, 1, [Cups])
429
		AC_SUBST(LIBCUPS)
430
		hacups=yes
431
	else
432
		AC_MSG_WARN([libcups could not be found. Printing functionality will be limited.])
433
		hacups=no
434
	fi
435
else
436
	hacups=no
779 fschmid 437
fi
438
 
439
COMPILE_DEBUG=no
2311 craig 440
AC_ARG_ENABLE(debug, [  --enable-debug     Enables debugging information (recommended for snapshots)],
1634 craig 441
[if test "x$enable_debug" = "xyes" || test "x$enable_debug" = "xfull"; then
779 fschmid 442
	COMPILE_DEBUG=yes
443
    CXXFLAGS="$CXXFLAGS -g3 -fno-inline -O0 "
444
    CFLAGS="$CFLAGS -g3 -fno-inline -O0 "
445
fi])
446
AM_CONDITIONAL(COMPILE_DEBUG, test x$COMPILE_DEBUG = xyes)
447
 
1689 craig 448
dnl Compile and link the gdk-pixbuf sources unless building
449
dnl a Mac-native build.
450
AM_CONDITIONAL(LINK_PIXBUF, test "$enable_mac" != "yes" )
451
 
1699 craig 452
build_mac_bundle=no
2311 craig 453
AC_ARG_ENABLE(bundle, [  --enable-bundle     Make an executable suitable for use in a .app bundle (INCOMPLETE)],
1699 craig 454
[if test "$enable_bundle" = "yes"; then
455
	build_mac_bundle=yes
456
	AC_DEFINE_UNQUOTED(BUILD_MAC_BUNDLE, 1, [Are we building an executable to be included in MacOS/X .app bundle?])
457
fi])
458
AM_CONDITIONAL(BUILD_MAC_BUNDLE, test "$build_mac_bundle" = "yes")
459
 
1732 craig 460
dnl Some platforms require special libtool flags to build dynamically loadable
461
dnl modules or plugins correctly. While libtool should take care of this with
462
dnl a fixed set of arguments, in case we need to change it later this is being
463
dnl made a configure-time substitution.
464
MODULE_LINK_FLAGS=" -module "
465
AC_SUBST(MODULE_LINK_FLAGS)
466
 
779 fschmid 467
all_libraries="$all_libraries $USER_LDFLAGS"
468
all_includes="$all_includes $USER_INCLUDES"
469
AC_SUBST(all_includes)
470
AC_SUBST(all_libraries)
471
 
472
AC_PATH_QT
473