Subversion Repositories Scribus

Rev

Rev 2402 | Rev 2405 | 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
 
84
missing_libs=""
85
 
86
function libmissing() {
2400 craig 87
	AC_MSG_WARN([
88
-------------------------------------------------------------------------------
2399 craig 89
One or more libraries were not found. You may need to install some additional
90
libraries or packages.  If you think you have the library installed already, on
91
Linux check to make sure there is a -dev or -devel package for it installed as
92
well. Without the -dev or -devel package Scribus will not be able to find and
93
use the library. Once you have installed the library or the -dev or -devel
2400 craig 94
package, you must re-run this configure script. If it's still not found, check
2403 craig 95
your CPATH, PATH, PKG_CONFIG_PATH, and LD_LIBRARY_PATH.
2400 craig 96
See the BUILDING file for details.
2399 craig 97
Note that some libraries are OPTIONAL and Scribus will work fine without them
2400 craig 98
though with reduced functionality.
99
-------------------------------------------------------------------------------
100
])
2399 craig 101
	if test -n "${1}"; then
102
		missing_libs="${missing_libs} ${1}"
103
	fi
104
}
105
 
106
 
779 fschmid 107
LIBART_LIBS=""
108
LIBART_CFLAGS=""
109
LIBART_CONFIG=""
2399 craig 110
 
111
AC_PATH_PROG(LIBART_CONFIG,
2401 craig 112
			 libart2-config,
2400 craig 113
			 [],
2399 craig 114
			 [$PATH ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /usr/nekoware/bin /opt/local/bin])
115
 
779 fschmid 116
if test -n "$LIBART_CONFIG"; then
117
  vers=`$LIBART_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
118
  if test -n "$vers" && test "$vers" -ge 2003008
119
  then
120
     LIBART_LIBS="`$LIBART_CONFIG --libs`"
121
     LIBART_CFLAGS="`$LIBART_CONFIG --cflags`"
122
     AC_DEFINE_UNQUOTED(HAVE_LIBART, 1, [Defines if your system has the libart library])
123
  else
2400 craig 124
     libmissing libart
2401 craig 125
	 AC_MSG_ERROR([You need at least libart 2.3.8 . See the BUILDING file.])
779 fschmid 126
  fi
2400 craig 127
else
128
  libmissing libart
2401 craig 129
  AC_MSG_ERROR([You need at least libart 2.3.8 . See the BUILDING file.])
779 fschmid 130
fi
131
AC_SUBST(LIBART_LIBS)
132
AC_SUBST(LIBART_CFLAGS)
133
AC_C_BIGENDIAN
134
 
1599 craig 135
dnl Check for freetype, which Scribus *requires* to build
779 fschmid 136
LIBFREETYPE_LIBS=""
137
LIBFREETYPE_CFLAGS=""
138
 
139
FREETYPE_CONFIG=""
2399 craig 140
AC_PATH_PROG(FREETYPE_CONFIG,
2403 craig 141
			 freetype-config,
2402 craig 142
			 [],
2399 craig 143
			 [$PATH ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin /usr/nekoware/bin /usr/X11/bin])
779 fschmid 144
 
145
hafree=no
2312 craig 146
hafree_post219=
779 fschmid 147
if test -n "$FREETYPE_CONFIG"; then
148
	LIBFREETYPE_LIBS="`$FREETYPE_CONFIG --libs`"
1599 craig 149
	LIBFREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`"
779 fschmid 150
	AC_CHECK_LIB(freetype, FT_Get_First_Char, [hafree=yes],[hafree=no], "$LIBFREETYPE_LIBS")
151
	AC_CHECK_LIB(freetype, FT_Get_Next_Char, [hafree=yes],[hafree=no], "$LIBFREETYPE_LIBS")
152
	if test $hafree = yes; then
153
		AC_DEFINE_UNQUOTED(HAVE_FREETYPE, 1, [Defines if your system has the libfreetype library])
154
	else
2401 craig 155
		libmissing libfreetype
1599 craig 156
		AC_MSG_ERROR([You need at least freetype 2.1.0])
779 fschmid 157
	fi
1599 craig 158
 
2312 craig 159
	dnl Warn the user if they have less than freetype 2.1.9
160
	dnl Changed to fatal error
161
	AC_MSG_CHECKING(freetype version > 2.1.9)
1599 craig 162
	SAVE_CFLAGS="${CFLAGS}"
163
	CFLAGS=" ${LIBFREETYPE_CFLAGS} "
164
	AC_TRY_COMPILE([
165
	#include <ft2build.h>
166
	#include FT_FREETYPE_H
167
	],[
2312 craig 168
	#if FREETYPE_MAJOR == 2 && FREETYPE_MINOR == 1 && FREETYPE_PATCH < 9
169
	#error freetype 2.1 older than 2.1.9
1599 craig 170
	#endif
2312 craig 171
	], [hafree_post219=yes], [hafree_post219=no])
1599 craig 172
	CFLAGS="${SAVE_CFLAGS}"
2312 craig 173
	AC_MSG_RESULT($hafree_post219)
174
	if test hafree_post219 = no; then
175
		AC_MSG_WARN([Your libfreetype is too old - version 2.1.9 or newer strongly recommended])
1599 craig 176
	fi
177
 
178
	dnl Export the includes and lib path settings required to build with freetype.
779 fschmid 179
	AC_SUBST(LIBFREETYPE_LIBS)
180
	AC_SUBST(LIBFREETYPE_CFLAGS)
181
else
2401 craig 182
	libmissing libfreetype
183
	AC_MSG_ERROR([You need at least freetype 2.1.0])
779 fschmid 184
fi
185
 
1592 craig 186
dnl Try to find fontconfig using fontconfig-config or pkg-config.
1920 craig 187
hafontconfig=no
779 fschmid 188
LIBFONTCONFIG_LIBS=""
189
LIBFONTCONFIG_CFLAGS=""
190
FONTCONFIG_CONFIG=""
191
 
1920 craig 192
dnl Try to find fontconfig with pkg-config if we have pkg-config
193
AC_MSG_CHECKING([Checking for fontconfig with pkg-config])
194
if test -n "$PKG_CONFIG"; then
1592 craig 195
	LIBFONTCONFIG_LIBS="`$PKG_CONFIG fontconfig --libs`"
196
	LIBFONTCONFIG_CFLAGS="`$PKG_CONFIG fontconfig --cflags`"
1920 craig 197
	if test -n "$LIBFONTCONFIG_LIBS" || test -n "$LIBFONTCONFIG_CFLAGS"; then
198
		AC_MSG_RESULT([found])
199
	else
200
		AC_MSG_RESULT([not found])
201
	fi
779 fschmid 202
else
1920 craig 203
	AC_MSG_RESULT([failed: pkg-config not found])
779 fschmid 204
fi
1635 craig 205
 
1920 craig 206
dnl If fontconfig not found with pkg-config, try to find fontconfig-config
207
dnl and use that to look for fontconfig.
208
if test -z "$LIBFONTCONFIG_LIBS" && test -z "$LIBFONTCONFIG_CFLAGS"; then
2399 craig 209
	dnl Seems we didn't find fontconfig with pkg-config, so search for the old
210
	dnl fontconfig-config program instead.
211
	AC_PATH_PROG(FONTCONFIG_CONFIG,
212
				 fontconfig-config,
213
				 [],
214
				 [$PATH ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin /usr/nekoware/bin /usr/X11/bin])
1920 craig 215
	if test -n "$FONTCONFIG_CONFIG"; then
216
		dnl found fontconfig-config, use it's results
217
		LIBFONTCONFIG_LIBS="`$FONTCONFIG_CONFIG --libs`"
218
		LIBFONTCONFIG_CFLAGS="`$FONTCONFIG_CONFIG --cflags`"
219
	else
220
		AC_MSG_WARN([Couldn't find fontconfig-config or find fontconfig with pkg-config])
221
	fi
222
fi
223
 
1635 craig 224
dnl Check to see if we can compile fontconfig
225
SAVE_CFLAGS="${CFLAGS}"
226
SAVE_LDFLAGS="${LDFLAGS}"
227
CFLAGS="${CFLAGS} ${LIBFONTCONFIG_CFLAGS}"
228
LDFLAGS="${LDFLAGS} ${LIBFONTCONFIG_LIBS}"
1592 craig 229
AC_CHECK_LIB(fontconfig, FcPatternBuild, [hafontconfig=yes],[hafontconfig=no])
1635 craig 230
CFLAGS="${SAVE_CFLAGS}"
231
LDFLAGS="${SAVE_LDFLAGS}"
1592 craig 232
if test $hafontconfig = yes; then
233
	AC_DEFINE_UNQUOTED(HAVE_FONTCONFIG, 1, [Defines if your system has the libfontconfig library])
234
else
2403 craig 235
	libmissing fontconfig
1592 craig 236
	AC_MSG_WARN([Couldn't find a usable libfontconfig])
237
fi
238
AC_SUBST(LIBFONTCONFIG_LIBS)
239
AC_SUBST(LIBFONTCONFIG_CFLAGS)
779 fschmid 240
 
1592 craig 241
 
779 fschmid 242
XML_LIBS=""
243
XML_CFLAGS=""
244
 
245
XML_CONFIG=""
2399 craig 246
AC_PATH_PROG(XML_CONFIG,
247
			 xml2-config,
2403 craig 248
			 [],
2399 craig 249
			 [${PATH} ${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin /usr/bin /usr/nekoware/bin /usr/X11/bin])
779 fschmid 250
 
1599 craig 251
dnl check for LibXML2
779 fschmid 252
haxml=no
2314 craig 253
haxml26=no
254
AC_ARG_ENABLE(xml, [  --disable-xml       Don't use libxml2 and turn off some Scribus features.], [disable_xml2="yes"])
255
if test "$disable_xml2" != "yes"; then
256
	if test -n "$XML_CONFIG"; then
257
		XML_LIBS="`$XML_CONFIG --libs`"
258
		XML_CFLAGS="`$XML_CONFIG --cflags`"
259
		AC_CHECK_LIB(xml2, attribute, [haxml=yes],[haxml=no])
260
		if test $haxml = yes; then
261
			AC_DEFINE_UNQUOTED(HAVE_XML, 1, [Defines if your system has the libxml2 library])
262
			AC_SUBST(XML_LIBS)
263
			AC_SUBST(XML_CFLAGS)
2403 craig 264
		else
265
			libmising libxml2
266
			AC_MSG_WARN([Couldn't find a usable libxml2])
2314 craig 267
		fi
268
		vers=`$XML_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
269
		if test -n "$vers" && test "$vers" -ge 2006000
270
		then
271
			AC_DEFINE_UNQUOTED(HAVE_XML26, 1, [Defines if your system has the libxml2 library6])
272
			haxml26=yes
273
		fi
2403 craig 274
	else
275
		libmissing libxml2
276
		AC_MSG_WARN([Couldn't find a usable libxml2])
779 fschmid 277
	fi
278
fi
279
 
1599 craig 280
dnl check for -lsocket
779 fschmid 281
AC_CHECK_LIB(socket,socket,
282
if test "$uname" != "IRIX"; then
283
	LIBS="-lsocket $LIBS"
284
else
285
	echo "Not using -lsocket since you are running IRIX."
286
fi)
287
AC_CHECK_LIB(nsl,gethostbyaddr,
288
if test "$uname" != "IRIX"; then
289
	LIBS="-lnsl $LIBS"
290
else
291
	echo "Not using -lnsl since you are running IRIX."
292
fi)
293
 
1595 craig 294
dnl Check for lcms
295
dnl TODO look for lcms using pkg-config too
2310 craig 296
dnl TODO: convert to use --with-lcms= and AC_ARG_WITH(...)
779 fschmid 297
LIBLCMS=""
298
hacms=
2310 craig 299
AC_ARG_ENABLE(lcms, [  --disable-lcms     Don't use colour management (default=no)], [disable_lcms="yes"])
300
 
301
# If lcms hasn't been explicitly disabled, look for it and see
302
# if we can use it.
303
if test "$disable_lcms" != "yes"; then
304
	# See if liblcms.so is on our search path and looks vaguely valid
305
	AC_CHECK_LIB(lcms, _cmsChannelsOf, [LIBLCMS="-llcms";hacms=yes],[LIBLCMS="";hacms=no],[-lm])
306
	hacmsh=
307
	lcms_h=
308
	# and search for lcms.h, which may or may not be in an lcms/ subdir
309
	AC_CHECK_HEADER(lcms.h, [hacmsh=yes],[hacmsh=no])
310
	if test $hacmsh = no; then
311
		AC_CHECK_HEADER(lcms/lcms.h, [hacmsh=yes],[hacmsh=no])
312
		if test $hacmsh = yes; then
313
			AC_DEFINE_UNQUOTED(CMS_INC, "lcms/lcms.h", [ColorManagementInclude])
314
			lcms_h="lcms/lcms.h"
315
		fi
316
	else
317
		AC_DEFINE_UNQUOTED(CMS_INC, "lcms.h", [ColorManagementInclude])
318
		lcms_h="lcms.h"
779 fschmid 319
	fi
2310 craig 320
	if test $hacmsh = no; then
321
		# There's not much point finding -llcms if we can't find the header file...
322
		hacms=no
323
	fi
779 fschmid 324
fi
1595 craig 325
dnl Attempt to check that lcms is new enough
326
if test $hacms = yes; then
327
	AC_MSG_CHECKING(liblcms version > 1.1.2)
328
	AC_TRY_COMPILE([
329
	#include "$lcms_h"
1599 craig 330
	],[
1595 craig 331
	#if LCMS_VERSION < 112
332
	#error liblcms is too old, need LittleCMS 1.1.2 or newer
333
	#endif
1599 craig 334
	], [], [hacms=pre112])
1595 craig 335
	AC_MSG_RESULT($hacms)
336
fi
337
 
779 fschmid 338
AC_SUBST(LIBLCMS)
339
if test $hacms = yes && test $hacmsh = yes; then
340
 AC_DEFINE_UNQUOTED(HAVE_CMS, 1, [ColorManagement])
341
fi
1580 craig 342
 
343
dnl Checks for libtiff - library exists, tiffvers.h can be found, and new enough.
779 fschmid 344
LIBTIFF=""
345
hastif=
1580 craig 346
dnl Check if we have libtiff
779 fschmid 347
AC_CHECK_LIB(tiff, TIFFOpen, [LIBTIFF="-ltiff";hastif=yes],[LIBTIFF="";hastif=no],[-lm])
1585 craig 348
if test $hastif = yes; then
349
	dnl Check for tiffvers.h
350
	AC_CHECK_HEADER(tiffvers.h, [], [LIBTIFF="";hastif=no])
351
	if test $hastif = yes; then
352
		dnl Now attempt to check if libtiff is new enough
353
		AC_MSG_CHECKING(libtiff version > 3.6.0)
354
		AC_TRY_COMPILE([
355
		#include "tiffvers.h"
1599 craig 356
		],[
1585 craig 357
		#if TIFFLIB_VERSION < 20031007
358
		#error libtiff is too old, need libtiff 3.6.0 or newer.
359
		#endif
1599 craig 360
		], [], [LIBTIFF="";hastif=pre36])
1585 craig 361
		AC_MSG_RESULT($hastif)
362
	fi
363
fi
779 fschmid 364
AC_SUBST(LIBTIFF)
365
if test $hastif = yes; then
366
 AC_DEFINE_UNQUOTED(HAVE_TIFF, 1, [Tifflib])
367
fi
1580 craig 368
 
779 fschmid 369
LIBDL2=""
370
AC_CHECK_LIB(c, dlopen, [LIBDL2="-lc"],[LIBDL2=""])
371
AC_SUBST(LIBDL2)
372
 
373
dnl generate the config header
374
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
375
 
376
dnl Checks for programs.
377
AC_CHECK_COMPILERS
378
AC_ENABLE_SHARED(yes)
379
AC_ENABLE_STATIC(no)
380
KDE_PROG_LIBTOOL
381
 
382
hapython=yes
383
kde_python_link_found=no
384
KDE_CHECK_PYTHON(1.5)
385
COMPILE_PYTHON=no
386
AC_ARG_WITH(python, [  --without-python     Do not compile the Scripter Plugin],[ COMPILE_PYTHON=no ],[ COMPILE_PYTHON=yes ])
387
if test $kde_python_link_found = no; then
388
	COMPILE_PYTHON=no
389
fi
390
if test $kde_python_link_found = yes; then
391
  AC_CHECK_HEADER(python2.3/Python.h, [foo=""],[hapython=no])
392
   if test $hapython = yes; then
393
    AC_DEFINE_UNQUOTED(HAVE_PYTHON_23, 1, [Python])
394
   fi
395
fi
396
AM_CONDITIONAL(COMPILE_PYTHON, test x$COMPILE_PYTHON = xyes)
397
 
2311 craig 398
AC_ARG_ENABLE(cups, [  --disable-cups        Do not compile support for CUPS printing],[disable_cups=yes])
399
LIBCUPS=""
400
hacups=no
401
if test "$disable_cups" != "yes" ; then
402
	# Look for cups.h
403
	AC_CHECK_HEADER(cups/cups.h, [hacups_h=yes],[hacups_h=no])
404
	AC_CHECK_PROG(hacups_cfg, cups-config, yes, no)
405
	echo "'$hacups_cfg' '$hacups_h'" >/tmp/cfg
406
	if test "x$hacups_h" = "xyes" && test "x$hacups_cfg" = "xyes"; then
407
		# We have the CUPS libs and headers, so enable
408
		# the use of CUPS and tell the build where to
409
		# find it.
410
		LIBCUPS="`cups-config --libs`"
411
		AC_DEFINE_UNQUOTED(HAVE_CUPS, 1, [Cups])
412
		AC_SUBST(LIBCUPS)
413
		hacups=yes
414
	else
415
		AC_MSG_WARN([libcups could not be found. Printing functionality will be limited.])
416
		hacups=no
417
	fi
418
else
419
	hacups=no
779 fschmid 420
fi
421
 
422
COMPILE_DEBUG=no
2311 craig 423
AC_ARG_ENABLE(debug, [  --enable-debug     Enables debugging information (recommended for snapshots)],
1634 craig 424
[if test "x$enable_debug" = "xyes" || test "x$enable_debug" = "xfull"; then
779 fschmid 425
	COMPILE_DEBUG=yes
426
    CXXFLAGS="$CXXFLAGS -g3 -fno-inline -O0 "
427
    CFLAGS="$CFLAGS -g3 -fno-inline -O0 "
428
fi])
429
AM_CONDITIONAL(COMPILE_DEBUG, test x$COMPILE_DEBUG = xyes)
430
 
1689 craig 431
dnl Compile and link the gdk-pixbuf sources unless building
432
dnl a Mac-native build.
433
AM_CONDITIONAL(LINK_PIXBUF, test "$enable_mac" != "yes" )
434
 
1699 craig 435
build_mac_bundle=no
2311 craig 436
AC_ARG_ENABLE(bundle, [  --enable-bundle     Make an executable suitable for use in a .app bundle (INCOMPLETE)],
1699 craig 437
[if test "$enable_bundle" = "yes"; then
438
	build_mac_bundle=yes
439
	AC_DEFINE_UNQUOTED(BUILD_MAC_BUNDLE, 1, [Are we building an executable to be included in MacOS/X .app bundle?])
440
fi])
441
AM_CONDITIONAL(BUILD_MAC_BUNDLE, test "$build_mac_bundle" = "yes")
442
 
1732 craig 443
dnl Some platforms require special libtool flags to build dynamically loadable
444
dnl modules or plugins correctly. While libtool should take care of this with
445
dnl a fixed set of arguments, in case we need to change it later this is being
446
dnl made a configure-time substitution.
447
MODULE_LINK_FLAGS=" -module "
448
AC_SUBST(MODULE_LINK_FLAGS)
449
 
779 fschmid 450
all_libraries="$all_libraries $USER_LDFLAGS"
451
all_includes="$all_includes $USER_INCLUDES"
452
AC_SUBST(all_includes)
453
AC_SUBST(all_libraries)
454
 
455
AC_PATH_QT
456