Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

aqbanking / configure.ac @ f4a16f5b

History | View | Annotate | Download (48.6 KB)

1
# Process this file with autoconf to produce a configure script.
2

    
3
AC_PREREQ(2.56)
4
AC_INIT
5
AC_CANONICAL_BUILD
6
AC_CANONICAL_HOST
7

    
8
AC_CONFIG_SRCDIR([README])
9
AC_CONFIG_HEADERS([config.h])
10

    
11

    
12
###-------------------------------------------------------------------------
13
#
14
# AqBanking versions
15
#
16

    
17
AQBANKING_VERSION_MAJOR=5
18
AQBANKING_VERSION_MINOR=99
19
AQBANKING_VERSION_PATCHLEVEL=6
20
AQBANKING_VERSION_BUILD=0
21
dnl "stable", "rcX", "betaX", "svn"
22
AQBANKING_VERSION_TAG="beta"
23

    
24

    
25

    
26
###-------------------------------------------------------------------------
27
#
28
# SO versions
29
#
30

    
31
#
32
# AqBanking
33
#
34

    
35
AQBANKING_SO_CURRENT=43
36
AQBANKING_SO_AGE=0
37
AQBANKING_SO_REVISION=6
38
AQBANKING_SO_EFFECTIVE="`echo \$(($AQBANKING_SO_CURRENT-$AQBANKING_SO_AGE))`"
39

    
40
#
41
# backends
42
#
43

    
44
AQHBCI_SO_CURRENT=24
45
AQHBCI_SO_AGE=0
46
AQHBCI_SO_REVISION=1
47
AQHBCI_SO_EFFECTIVE="`echo \$(($AQHBCI_SO_CURRENT-$AQHBCI_SO_AGE))`"
48

    
49
AQOFXCONNECT_SO_CURRENT=7
50
AQOFXCONNECT_SO_AGE=0
51
AQOFXCONNECT_SO_REVISION=2
52
AQOFXCONNECT_SO_EFFECTIVE="`echo \$(($AQOFXCONNECT_SO_CURRENT-$AQOFXCONNECT_SO_AGE))`"
53

    
54

    
55
AQEBICS_SO_CURRENT=2
56
AQEBICS_SO_AGE=1
57
AQEBICS_SO_REVISION=9
58
AQEBICS_SO_EFFECTIVE="`echo \$(($AQEBICS_SO_CURRENT-$AQEBICS_SO_AGE))`"
59

    
60
AQPAYPAL_SO_CURRENT=2
61
AQPAYPAL_SO_AGE=0
62
AQPAYPAL_SO_REVISION=0
63
AQPAYPAL_SO_EFFECTIVE="`echo \$(($AQPAYPAL_SO_CURRENT-$AQPAYPAL_SO_AGE))`"
64

    
65

    
66
###-------------------------------------------------------------------------
67
#
68
# Generate version strings and BUILD
69
#
70

    
71
SVN="svn"
72
AQBANKING_VERSION_FULL_STRING="${AQBANKING_VERSION_MAJOR}.${AQBANKING_VERSION_MINOR}.${AQBANKING_VERSION_PATCHLEVEL}.${AQBANKING_VERSION_BUILD}${AQBANKING_VERSION_TAG}"
73
AQBANKING_VERSION_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.$AQBANKING_VERSION_PATCHLEVEL"
74

    
75
case "$AQBANKING_VERSION_TAG" in 
76
  svn|cvs)
77
     rev=`LC_ALL="C" $SVN info|grep 'Last Changed Rev'|cut -d' ' -f4`
78
     if test "x$rev" != "x" ; then
79
       AQBANKING_VERSION_FULL_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.${AQBANKING_VERSION_PATCHLEVEL}${AQBANKING_VERSION_TAG}-r${rev}"
80
     fi
81
     ;;
82
     
83
  git)
84
     AQBANKING_VERSION_FULL_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.${AQBANKING_VERSION_PATCHLEVEL}.${AQBANKING_VERSION_BUILD}"
85
     ;;
86
esac
87

    
88

    
89

    
90
###-------------------------------------------------------------------------
91
#
92
# Versions (all versions are now linked to AqBanking versions, so the lines
93
# here don't have to be changed)
94
#
95
AQHBCI_VERSION_MAJOR=$AQBANKING_VERSION_MAJOR
96
AQHBCI_VERSION_MINOR=$AQBANKING_VERSION_MINOR
97
AQHBCI_VERSION_PATCHLEVEL=$AQBANKING_VERSION_PATCHLEVEL
98
AQHBCI_VERSION_BUILD=$AQBANKING_VERSION_BUILD
99
AQHBCI_VERSION_TAG=$AQBANKING_VERSION_TAG
100
AQHBCI_VERSION_FULL_STRING="$AQBANKING_VERSION_FULL_STRING"
101
AQHBCI_VERSION_STRING="$AQBANKING_VERSION_STRING"
102

    
103
AQOFXCONNECT_VERSION_MAJOR=$AQBANKING_VERSION_MAJOR
104
AQOFXCONNECT_VERSION_MINOR=$AQBANKING_VERSION_MINOR
105
AQOFXCONNECT_VERSION_PATCHLEVEL=$AQBANKING_VERSION_PATCHLEVEL
106
AQOFXCONNECT_VERSION_BUILD=$AQBANKING_VERSION_BUILD
107
AQOFXCONNECT_VERSION_TAG=$AQBANKING_VERSION_TAG
108
AQOFXCONNECT_VERSION_FULL_STRING="$AQBANKING_VERSION_FULL_STRING"
109
AQOFXCONNECT_VERSION_STRING="$AQBANKING_VERSION_STRING"
110

    
111
AQEBICS_VERSION_MAJOR=$AQBANKING_VERSION_MAJOR
112
AQEBICS_VERSION_MINOR=$AQBANKING_VERSION_MINOR
113
AQEBICS_VERSION_PATCHLEVEL=$AQBANKING_VERSION_PATCHLEVEL
114
AQEBICS_VERSION_BUILD=$AQBANKING_VERSION_BUILD
115
AQEBICS_VERSION_TAG=$AQBANKING_VERSION_TAG
116
AQEBICS_VERSION_FULL_STRING="$AQBANKING_VERSION_FULL_STRING"
117
AQEBICS_VERSION_STRING="$AQBANKING_VERSION_STRING"
118

    
119
AQPAYPAL_VERSION_MAJOR=$AQBANKING_VERSION_MAJOR
120
AQPAYPAL_VERSION_MINOR=$AQBANKING_VERSION_MINOR
121
AQPAYPAL_VERSION_PATCHLEVEL=$AQBANKING_VERSION_PATCHLEVEL
122
AQPAYPAL_VERSION_BUILD=$AQBANKING_VERSION_BUILD
123
AQPAYPAL_VERSION_TAG=$AQBANKING_VERSION_TAG
124
AQPAYPAL_VERSION_FULL_STRING="$AQBANKING_VERSION_FULL_STRING"
125
AQPAYPAL_VERSION_STRING="$AQBANKING_VERSION_STRING"
126

    
127

    
128
###-------------------------------------------------------------------------
129
#
130
# datetime
131
#
132
AC_ARG_WITH([build-datetime],
133
  [AS_HELP_STRING([--with-build-datetime=DATETIME],
134
                  [use fixed datetime for build (default: current date and time)])],
135
  [AS_IF([test "x$withval" = "xyes"],
136
    [DATETIME="`date +\"%Y%m%d%H%M%S\"`"],
137
    [DATETIME="`date +\"%Y%m%d%H%M%S\" --date=\"$withval\"`"])],
138
  [DATETIME="`date +\"%Y%m%d%H%M%S\"`"])
139
AC_SUBST(DATETIME)
140

    
141

    
142
###-------------------------------------------------------------------------
143
#
144
# Create release strings
145
#
146
case "$AQBANKING_VERSION_TAG" in
147
  cvs|svn)
148
     AQBANKING_VERSION_RELEASE_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.$AQBANKING_VERSION_PATCHLEVEL.r${AQBANKING_VERSION_BUILD}"
149
     ;;
150
  git)
151
     AQBANKING_VERSION_RELEASE_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.$AQBANKING_VERSION_PATCHLEVEL.${AQBANKING_VERSION_BUILD}-${AQBANKING_VERSION_TAG}"
152
     ;;
153
  stable)
154
     AQBANKING_VERSION_RELEASE_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.$AQBANKING_VERSION_PATCHLEVEL"
155
     ;;
156
  *)
157
     AQBANKING_VERSION_RELEASE_STRING="$AQBANKING_VERSION_MAJOR.$AQBANKING_VERSION_MINOR.$AQBANKING_VERSION_PATCHLEVEL"
158
     
159
     # add TAG
160
     AQBANKING_VERSION_RELEASE_STRING="${AQBANKING_VERSION_RELEASE_STRING}${AQBANKING_VERSION_TAG}"
161
     ;;
162
esac
163

    
164
AQHBCI_VERSION_RELEASE_STRING="$AQBANKING_RELEASE_STRING"
165
AQOFXCONNECT_VERSION_RELEASE_STRING="$AQBANKING_RELEASE_STRING"
166
AQEBICS_VERSION_RELEASE_STRING="$AQBANKING_RELEASE_STRING"
167
AQPAYPAL_VERSION_RELEASE_STRING="$AQBANKING_RELEASE_STRING"
168

    
169

    
170
###-------------------------------------------------------------------------
171
#
172
# SUBST and DEFINE versions
173
#
174
AC_SUBST(AQBANKING_VERSION_MAJOR)
175
AC_SUBST(AQBANKING_VERSION_MINOR)
176
AC_SUBST(AQBANKING_VERSION_PATCHLEVEL)
177
AC_SUBST(AQBANKING_VERSION_BUILD)
178
AC_SUBST(AQBANKING_VERSION_TAG)
179
AC_SUBST(AQBANKING_VERSION_FULL_STRING)
180
AC_SUBST(AQBANKING_VERSION_STRING)
181
AC_SUBST(AQBANKING_VERSION_RELEASE_STRING)
182

    
183
AC_SUBST(AQBANKING_SO_CURRENT)
184
AC_SUBST(AQBANKING_SO_REVISION)
185
AC_SUBST(AQBANKING_SO_AGE)
186
AC_SUBST(AQBANKING_SO_EFFECTIVE)
187
AC_DEFINE_UNQUOTED(AQBANKING_SO_EFFECTIVE_STR, "$AQBANKING_SO_EFFECTIVE",
188
                   [effective SO version])
189

    
190
AM_INIT_AUTOMAKE(aqbanking, $AQBANKING_VERSION_RELEASE_STRING)
191

    
192

    
193
#
194
# same for AqHBCI
195
#
196
AC_SUBST(AQHBCI_VERSION_MAJOR)
197
AC_SUBST(AQHBCI_VERSION_MINOR)
198
AC_SUBST(AQHBCI_VERSION_PATCHLEVEL)
199
AC_SUBST(AQHBCI_VERSION_BUILD)
200
AC_SUBST(AQHBCI_VERSION_TAG)
201
AC_SUBST(AQHBCI_VERSION_FULL_STRING)
202
AC_SUBST(AQHBCI_VERSION_STRING)
203
AC_SUBST(AQHBCI_VERSION_RELEASE_STRING)
204

    
205
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_MAJOR,$AQHBCI_VERSION_MAJOR, 
206
                   [major version])
207
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_MINOR,$AQHBCI_VERSION_MINOR, 
208
                   [minor version])
209
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_PATCHLEVEL,$AQHBCI_VERSION_PATCHLEVEL, 
210
                   [patchlevel])
211
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_BUILD,$AQHBCI_VERSION_BUILD, [build])
212
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_STRING,"$AQHBCI_VERSION_STRING", 
213
                   [version string])
214
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_FULL_STRING,"$AQHBCI_VERSION_FULL_STRING",
215
                   [full version string])
216
AC_DEFINE_UNQUOTED(AQHBCI_VERSION_TAG,$AQHBCI_VERSION_TAG, [tag])
217

    
218
AC_SUBST(AQHBCI_SO_CURRENT)
219
AC_SUBST(AQHBCI_SO_REVISION)
220
AC_SUBST(AQHBCI_SO_AGE)
221
AC_SUBST(AQHBCI_SO_EFFECTIVE)
222
AC_DEFINE_UNQUOTED(AQHBCI_SO_EFFECTIVE_STR, "$AQHBCI_SO_EFFECTIVE",
223
                   [effective SO version])
224

    
225

    
226
#
227
# same for AqOFXCONNECT
228
#
229

    
230
AC_SUBST(AQOFXCONNECT_VERSION_MAJOR)
231
AC_SUBST(AQOFXCONNECT_VERSION_MINOR)
232
AC_SUBST(AQOFXCONNECT_VERSION_PATCHLEVEL)
233
AC_SUBST(AQOFXCONNECT_VERSION_BUILD)
234
AC_SUBST(AQOFXCONNECT_VERSION_TAG)
235
AC_SUBST(AQOFXCONNECT_VERSION_FULL_STRING)
236
AC_SUBST(AQOFXCONNECT_VERSION_STRING)
237
AC_SUBST(AQOFXCONNECT_VERSION_RELEASE_STRING)
238

    
239
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_MAJOR,$AQOFXCONNECT_VERSION_MAJOR, 
240
                   [major version])
241
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_MINOR,$AQOFXCONNECT_VERSION_MINOR, 
242
                   [minor version])
243
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_PATCHLEVEL,$AQOFXCONNECT_VERSION_PATCHLEVEL, 
244
                   [patchlevel])
245
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_BUILD,$AQOFXCONNECT_VERSION_BUILD, [build])
246
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_STRING,"$AQOFXCONNECT_VERSION_STRING", 
247
                   [version string])
248
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_FULL_STRING,"$AQOFXCONNECT_VERSION_FULL_STRING",
249
                   [full version string])
250
AC_DEFINE_UNQUOTED(AQOFXCONNECT_VERSION_TAG,$AQOFXCONNECT_VERSION_TAG, [tag])
251

    
252
AC_SUBST(AQOFXCONNECT_SO_CURRENT)
253
AC_SUBST(AQOFXCONNECT_SO_REVISION)
254
AC_SUBST(AQOFXCONNECT_SO_AGE)
255
AC_SUBST(AQOFXCONNECT_SO_EFFECTIVE)
256
AC_DEFINE_UNQUOTED(AQOFXCONNECT_SO_EFFECTIVE_STR, "$AQOFXCONNECT_SO_EFFECTIVE",
257
                   [effective SO version])
258

    
259

    
260
#
261
# same for AqEBICS
262
#
263
AC_SUBST(AQEBICS_VERSION_MAJOR)
264
AC_SUBST(AQEBICS_VERSION_MINOR)
265
AC_SUBST(AQEBICS_VERSION_PATCHLEVEL)
266
AC_SUBST(AQEBICS_VERSION_BUILD)
267
AC_SUBST(AQEBICS_VERSION_TAG)
268
AC_SUBST(AQEBICS_VERSION_FULL_STRING)
269
AC_SUBST(AQEBICS_VERSION_STRING)
270
AC_SUBST(AQEBICS_VERSION_RELEASE_STRING)
271

    
272
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_MAJOR,$AQEBICS_VERSION_MAJOR, 
273
                   [major version])
274
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_MINOR,$AQEBICS_VERSION_MINOR, 
275
                   [minor version])
276
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_PATCHLEVEL,$AQEBICS_VERSION_PATCHLEVEL, 
277
                   [patchlevel])
278
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_BUILD,$AQEBICS_VERSION_BUILD, [build])
279
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_STRING,"$AQEBICS_VERSION_STRING", 
280
                   [version string])
281
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_FULL_STRING,"$AQEBICS_VERSION_FULL_STRING",
282
                   [full version string])
283
AC_DEFINE_UNQUOTED(AQEBICS_VERSION_TAG,$AQEBICS_VERSION_TAG, [tag])
284

    
285
AC_SUBST(AQEBICS_SO_CURRENT)
286
AC_SUBST(AQEBICS_SO_REVISION)
287
AC_SUBST(AQEBICS_SO_AGE)
288
AC_SUBST(AQEBICS_SO_EFFECTIVE)
289
AC_DEFINE_UNQUOTED(AQEBICS_SO_EFFECTIVE_STR, "$AQEBICS_SO_EFFECTIVE",
290
                   [effective SO version])
291

    
292

    
293
#
294
# same for AqPaypal
295
#
296

    
297
AC_SUBST(AQPAYPAL_VERSION_MAJOR)
298
AC_SUBST(AQPAYPAL_VERSION_MINOR)
299
AC_SUBST(AQPAYPAL_VERSION_PATCHLEVEL)
300
AC_SUBST(AQPAYPAL_VERSION_BUILD)
301
AC_SUBST(AQPAYPAL_VERSION_TAG)
302
AC_SUBST(AQPAYPAL_VERSION_FULL_STRING)
303
AC_SUBST(AQPAYPAL_VERSION_STRING)
304
AC_SUBST(AQPAYPAL_VERSION_RELEASE_STRING)
305

    
306
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_MAJOR,$AQPAYPAL_VERSION_MAJOR, 
307
                   [major version])
308
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_MINOR,$AQPAYPAL_VERSION_MINOR, 
309
                   [minor version])
310
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_PATCHLEVEL,$AQPAYPAL_VERSION_PATCHLEVEL, 
311
                   [patchlevel])
312
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_BUILD,$AQPAYPAL_VERSION_BUILD, [build])
313
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_STRING,"$AQPAYPAL_VERSION_STRING", 
314
                   [version string])
315
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_FULL_STRING,"$AQPAYPAL_VERSION_FULL_STRING",
316
                   [full version string])
317
AC_DEFINE_UNQUOTED(AQPAYPAL_VERSION_TAG,$AQPAYPAL_VERSION_TAG, [tag])
318

    
319
AC_SUBST(AQPAYPAL_SO_CURRENT)
320
AC_SUBST(AQPAYPAL_SO_REVISION)
321
AC_SUBST(AQPAYPAL_SO_AGE)
322
AC_SUBST(AQPAYPAL_SO_EFFECTIVE)
323
AC_DEFINE_UNQUOTED(AQPAYPAL_SO_EFFECTIVE_STR, "$AQPAYPAL_SO_EFFECTIVE",
324
                   [effective SO version])
325

    
326

    
327
###-------------------------------------------------------------------------
328
#
329
# determine operating system
330
#
331
AQ_CHECK_OS
332

    
333

    
334
###-------------------------------------------------------------------------
335
#
336
# prefix handling
337
#
338
AC_PREFIX_DEFAULT(/usr)
339
if test "x$prefix" = "xNONE"; then
340
  prefix=$ac_default_prefix
341
  ac_configure_args="$ac_configure_args --prefix $prefix"
342
fi
343
AC_SUBST(prefix)
344

    
345

    
346
###-------------------------------------------------------------------------
347
#
348
# static/shared handling
349
#
350
AC_ENABLE_STATIC(no)
351
AC_ENABLE_SHARED(yes)
352

    
353

    
354

    
355
###-------------------------------------------------------------------------
356
#
357
# define some needed variables
358
#
359
abs_top_builddir="`pwd`"
360
AC_SUBST(abs_top_builddir)
361

    
362

    
363
###-------------------------------------------------------------------------
364
#
365
# Enable some GNU extensions if using the GNU C library
366
#
367

    
368
AC_GNU_SOURCE
369

    
370

    
371

    
372
###-------------------------------------------------------------------------
373
#
374
# Checks for programs.
375
#
376
AC_PROG_CC
377
AC_PROG_CXX
378
AC_PROG_CPP
379
AC_PROG_INSTALL
380

    
381
AC_PROG_LIBTOOL
382
AC_LIBTOOL_WIN32_DLL
383
AC_LIBTOOL_RC
384
# Newer libtool doesn't have AC_LIBTOOL_RC anymore.  Need to check for
385
# $(RC) by ourselves.
386
AC_CHECK_TOOL([RC], [windres], [no])
387
AC_CHECK_PROG(USE_DOT,dot,YES,NO)
388
AC_CHECK_PROG(SED,sed,sed)
389

    
390
# Checks for libraries.
391

    
392
###-------------------------------------------------------------------------
393
#
394
# Checks for header files.
395
#
396
AC_HEADER_STDC
397
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h locale.h])
398
AC_CHECK_HEADERS([termios.h signal.h iconv.h])
399
AC_CHECK_DECLS([sigprocmask], [], [], [
400
  #ifdef HAVE_SIGNAL_H
401
  #  include <signal.h>
402
  #endif
403
])
404

    
405

    
406

    
407
###-------------------------------------------------------------------------
408
#
409
# Checks for typedefs, structures, and compiler characteristics.
410
#
411
AC_C_CONST
412
AC_STRUCT_TM
413

    
414

    
415

    
416
###-------------------------------------------------------------------------
417
#
418
# Checks for library functions.
419
#
420
AC_FUNC_STRFTIME
421
AC_CHECK_FUNCS([memmove memset strcasecmp strdup strerror snprintf])
422
AC_CHECK_FUNCS([setlocale])
423

    
424

    
425

    
426
###-------------------------------------------------------------------------
427
#
428
# Backends. Those do not have a required ordering.
429
#
430

    
431
AC_ARG_WITH(backends, 
432
  [  --with-backends=list      space separated list of backends (default:all)],
433
  [aqbanking_backends="$withval"],
434
  [aqbanking_backends="all"]
435
)
436

    
437
if test "$aqbanking_backends" = "all"; then
438
  aqbanking_backends="aqhbci aqofxconnect aqpaypal"
439
fi
440

    
441
for f in ${aqbanking_backends}; do
442
  case "$f" in
443
    aqhbci)
444
      aqbanking_plugins_backends_dirs="$aqbanking_plugins_backends_dirs aqhbci"
445
      aqbanking_plugins_backends_libs="$aqbanking_plugins_backends_libs aqhbci/libaqhbci.la"
446
      AC_DEFINE(AQBANKING_WITH_PLUGIN_BACKEND_AQHBCI, 1, [plugin availability])
447
      ;;
448
    aqebics)
449
      aqbanking_plugins_backends_dirs="$aqbanking_plugins_backends_dirs aqebics"
450
      AC_DEFINE(AQBANKING_WITH_PLUGIN_BACKEND_AQEBICS, 1, [plugin availability])
451
      ;;
452
    aqofxconnect)
453
      aqbanking_plugins_backends_dirs="$aqbanking_plugins_backends_dirs aqofxconnect"
454
      aqbanking_plugins_backends_libs="$aqbanking_plugins_backends_libs aqofxconnect/libaqofxconnect.la"
455
      AC_DEFINE(AQBANKING_WITH_PLUGIN_BACKEND_AQOFXCONNECT, 1, [plugin availability])
456
      ;;
457
    aqpaypal)
458
      aqbanking_plugins_backends_dirs="$aqbanking_plugins_backends_dirs aqpaypal"
459
      aqbanking_plugins_backends_libs="$aqbanking_plugins_backends_libs aqpaypal/libaqpaypal.la"
460
      AC_DEFINE(AQBANKING_WITH_PLUGIN_BACKEND_AQPAYPAL, 1, [plugin availability])
461
      ;;
462
    aqnone)
463
      ;;
464
    *)
465
      AC_MSG_ERROR("ERROR: Unknown plugin $f")
466
      ;;
467
  esac
468
done
469

    
470
# always define this
471
AC_DEFINE(AQBANKING_WITH_PLUGIN_BACKEND_AQNONE, 1, [plugin availability])
472

    
473
AC_SUBST(aqbanking_plugins_backends_dirs)
474
AC_SUBST(aqbanking_plugins_backends_libs)
475

    
476

    
477

    
478
###-------------------------------------------------------------------------
479
#
480
# ImExporters. Those do not have a required ordering.
481
#
482

    
483
AC_ARG_WITH(imexporters, 
484
  [  --with-imexporters=list      space separated list of im-/exporters (default:all)],
485
  [aqbanking_imexporters="$withval"],
486
  [aqbanking_imexporters="all"]
487
)
488

    
489
if test "$aqbanking_imexporters" = "all"; then
490
  aqbanking_imexporters="csv eri2 ofx openhbci1 swift xmldb yellownet sepa ctxfile q43 camt"
491
fi
492

    
493
for f in ${aqbanking_imexporters}; do
494
  case "$f" in
495
    csv)
496
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs csv"
497
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs csv/libabimexporters_csv.la"
498
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_CSV, 1, [plugin availability])
499
      ;;
500
    eri2)
501
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs eri2"
502
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs eri2/libabimexporters_eri2.la"
503
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_ERI2, 1, [plugin availability])
504
      ;;
505
    ofx)
506
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs ofx"
507
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs ofx/libabimexporters_ofx.la"
508
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_OFX, 1, [plugin availability])
509
      ;;
510
    openhbci1)
511
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs openhbci1"
512
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs openhbci1/libabimexporters_openhbci1.la"
513
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_OPENHBCI1, 1, [plugin availability])
514
      ;;
515
    swift)
516
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs swift"
517
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs swift/libabimexporters_swift.la"
518
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_SWIFT, 1, [plugin availability])
519
      ;;
520
    xmldb)
521
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs xmldb"
522
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs xmldb/libabimexporters_xmldb.la"
523
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_XMLDB, 1, [plugin availability])
524
      ;;
525
    yellownet)
526
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs yellownet"
527
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs yellownet/libabimexporters_yellownet.la"
528
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_YELLOWNET, 1, [plugin availability])
529
      ;;
530
    sepa)
531
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs sepa"
532
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs sepa/libabimexporters_sepa.la"
533
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_SEPA, 1, [plugin availability])
534
      ;;
535
    ctxfile)
536
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs ctxfile"
537
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs ctxfile/libabimexporters_ctxfile.la"
538
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_CTXFILE, 1, [plugin availability])
539
      ;;
540
    q43)
541
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs q43"
542
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs q43/libabimexporters_q43.la"
543
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_Q43, 1, [plugin availability])
544
      ;;
545
    camt)
546
      aqbanking_plugins_imexporters_dirs="$aqbanking_plugins_imexporters_dirs camt"
547
      aqbanking_plugins_imexporters_libs="$aqbanking_plugins_imexporters_libs camt/libabimexporters_camt.la"
548
      AC_DEFINE(AQBANKING_WITH_PLUGIN_IMEXPORTER_CAMT, 1, [plugin availability])
549
      ;;
550
    *)
551
      AC_MSG_ERROR("ERROR: Unknown plugin \"$f\"")
552
      ;;
553
  esac
554
done
555

    
556
AC_SUBST(aqbanking_plugins_imexporters_dirs)
557
AC_SUBST(aqbanking_plugins_imexporters_libs)
558

    
559

    
560

    
561
###-------------------------------------------------------------------------
562
#
563
# Parsers. Those do not have a required ordering.
564
#
565

    
566
AC_ARG_WITH(parsers, 
567
  [  --with-parsers=list      space separated list of parsers (default:all)],
568
  [aqbanking_parsers="$withval"],
569
  [aqbanking_parsers="all"]
570
)
571

    
572
if test "$aqbanking_parsers" = "all"; then
573
  aqbanking_parsers="swift"
574
fi
575

    
576
for f in ${aqbanking_parsers}; do
577
  case "$f" in
578
    swift)
579
      aqbanking_plugins_parsers_dirs="$aqbanking_plugins_parsers_dirs swift"
580
      ;;
581
    *)
582
      AC_MSG_ERROR("ERROR: Unknown plugin \"$f\"")
583
      ;;
584
  esac
585
done
586

    
587
AC_SUBST(aqbanking_plugins_parsers_dirs)
588

    
589

    
590

    
591
###-------------------------------------------------------------------------
592
#
593
# Bankinfo plugins. Those do not have a required ordering.
594
#
595

    
596
AC_ARG_WITH(bankinfos, 
597
  [  --with-bankinfos=list      space separated list of bankinfo (default:all)],
598
  [aqbanking_bankinfos="$withval"],
599
  [aqbanking_bankinfos="all"]
600
)
601

    
602
if test "$aqbanking_bankinfos" = "all"; then
603
  aqbanking_bankinfos="de"
604
fi
605

    
606
for f in ${aqbanking_bankinfos}; do
607
  case "$f" in
608
    de)
609
      aqbanking_plugins_bankinfo_dirs="$aqbanking_plugins_bankinfo_dirs de"
610
      aqbanking_plugins_bankinfo_libs="$aqbanking_plugins_bankinfo_libs de/libbankinfo_de.la"
611
      AC_DEFINE(AQBANKING_WITH_PLUGIN_BANKINFO_DE, 1, [plugin availability])
612
      ;;
613
    *)
614
      AC_MSG_ERROR("ERROR: Unknown plugin \"$f\"")
615
      ;;
616
  esac
617
done
618

    
619
AC_SUBST(aqbanking_plugins_bankinfo_dirs)
620
AC_SUBST(aqbanking_plugins_bankinfo_libs)
621

    
622

    
623

    
624
###-------------------------------------------------------------------------
625
#
626
# KtoBlzCheck
627
#
628

    
629
pkg_modules="ktoblzcheck >= 1.10"
630
PKG_CHECK_MODULES(ktoblzcheck, [$pkg_modules], [have_ktoblzcheck="yes"], [have_ktoblzcheck="no"])
631
if test "$have_ktoblzcheck" = "yes"; then
632
  AC_DEFINE(HAVE_KTOBLZCHECK, 1, [if KTOBLZCHECK is available])
633
  ktoblzcheck_includes="$ktoblzcheck_CFLAGS"
634
  ktoblzcheck_libs="$ktoblzcheck_LIBS"
635
else
636
  AC_MSG_WARN([
637
*** ktoblzcheck is missing. 
638
*** Account number checking will not be available.
639
*** We strongly suggest installing ktoblzcheck and its devel
640
*** package.])
641
fi
642

    
643
AM_CONDITIONAL(WITH_KTOBLZCHECK, [test "$have_ktoblzcheck" = "yes"])
644
AC_SUBST(ktoblzcheck_libs)
645
AC_SUBST(ktoblzcheck_includes)
646

    
647

    
648

    
649
###-------------------------------------------------------------------------
650
#
651
# Check for Gwen
652
#
653

    
654
# Variable used in aqbanking-config.cmake
655
AC_SUBST(GWENHYWFAR_MINIMUM_VERSION, "4.99.2.0")
656
AC_GWENHYWFAR(4,99,2,0)
657

    
658
all_includes="$all_includes $gwenhywfar_includes"
659

    
660
AC_ARG_ENABLE(gui-tests,
661
  [  --enable-gui-tests         allow GUI tests (default=no)],
662
  enable_gui_tests="$enableval",
663
  enable_gui_tests="no")
664
AC_MSG_RESULT($enable_gui_tests)
665

    
666
if test "$enable_gui_tests" != "no"; then
667
  # For libgwenhywfar > 3.99.20, look for its library gwengui-gtk2.
668
  PKG_CHECK_MODULES([GWENGUI_GTK2], [gwengui-gtk2 gwenhywfar], [
669
      HAVE_GWENGUI_GTK2=1
670
      PKG_CHECK_MODULES([GTK2], [gtk+-2.0])
671
    ], [
672
      HAVE_GWENGUI_GTK2=0
673
    ])
674
  AC_SUBST(HAVE_GWENGUI_GTK2)
675
  if test "$HAVE_GWENGUI_GTK2" = "1"; then
676
    AC_DEFINE(USE_GWENGUI_GTK2, 1, [GTK2Gui availability])
677
  fi
678
else
679
  HAVE_GWENGUI_GTK2=0
680
fi
681
AM_CONDITIONAL(WITH_GWENGUI_GTK2, [test "$HAVE_GWENGUI_GTK2" = "1"])
682

    
683

    
684
###-------------------------------------------------------------------------
685
#
686
# check typemaker2
687
#
688

    
689
AC_MSG_CHECKING(typemaker2 binary)
690
AC_ARG_WITH(typemaker2-exe, 
691
  [  --with-typemaker2-exe=EXE      path and name of the executable typemaker2],
692
  [typemaker2_exe="$withval"],
693
  [typemaker2_exe="\$(gwenhywfar_bindir)/typemaker2"]
694
)
695
AC_MSG_RESULT($typemaker2_exe)
696
AC_SUBST(typemaker2_exe)
697

    
698

    
699

    
700
###-------------------------------------------------------------------------
701
#
702
# check xmlmerge
703
#
704
AC_MSG_CHECKING(xmlmerge)
705
AC_ARG_WITH(xmlmerge, [  --with-xmlmerge=PATH path and name of tool xmlmerge],
706
  [XMLMERGE="$withval"],
707
  [XMLMERGE="$gwenhywfar_dir/bin/xmlmerge"])
708
AC_SUBST(XMLMERGE)
709
AC_MSG_RESULT($XMLMERGE)
710

    
711

    
712

    
713
###-------------------------------------------------------------------------
714
#
715
# Check for GMP
716
#
717

    
718
# Allow the user to override the gmp_libs detection here
719
if test "x$gmp_libs" = "x"; then
720
  AC_CHECK_LIB(gmp, __gmpz_init, [have_gmp="yes"], [have_gmp="no"])
721
  AC_CHECK_HEADERS(gmp.h, [], [have_gmp="no"])
722
  if test "$have_gmp" != "yes"; then
723
    AC_MSG_ERROR([GMP is required, see http://swox.com/gmp])
724
  else
725
    gmp_libs="-lgmp"
726
  fi
727
fi
728
AC_SUBST(gmp_libs)
729

    
730

    
731

    
732
###-------------------------------------------------------------------------
733
#
734
# OS dependant settings
735
#
736

    
737
# Common settings; can be overridden per-OS below.
738
aqbanking_internal_libs="${abs_top_builddir}/src/libs/libaqbanking.la"
739
aqbanking_ldflags="-L\${libdir}"
740
aqbanking_libs="-laqbanking"
741
aqbanking_includes="-I\${includedir}/aqbanking6"
742
aqbanking_headerdir_am="\$(includedir)/aqbanking6"
743
aqbanking_headerdir="\${includedir}/aqbanking6"
744
aqbanking_plugindir="\${libdir}/aqbanking/plugins/${AQBANKING_SO_EFFECTIVE}"
745
aqbanking_pkgdatadir="\${datadir}/aqbanking"
746
aqbanking_symlinkdir="\$(top_builddir)/aqbanking6"
747

    
748
case "$OS_TYPE" in
749
    posix)
750
        aqbanking_sys_is_windows=0
751
    	;;
752
    windows)
753
        aqbanking_sys_is_windows=1
754
        AC_DEFINE_UNQUOTED(BUILDING_AQBANKING_DLL,1, [Define if DLL is built])
755
    	;;
756
esac
757
AM_CONDITIONAL(IS_WINDOWS, [test "$OS_TYPE" = "windows"])
758

    
759

    
760

    
761
###-------------------------------------------------------------------------
762
#
763
# check whether local installation mode is enabled
764
#
765

    
766
AC_MSG_CHECKING(whether local installation mode is wanted)
767
AC_ARG_ENABLE(local-install,
768
  [  --enable-local-install         allow local installation mode (default=no)],
769
  enable_local_install="$enableval",
770
  enable_local_install="no")
771
AC_MSG_RESULT($enable_local_install)
772

    
773
if test "$enable_local_install" != "no"; then
774
  AC_DEFINE(ENABLE_LOCAL_INSTALL, 1, [whether local install is wanted])
775
fi
776

    
777

    
778

    
779
###-------------------------------------------------------------------------
780
#
781
# check plugin search path
782
#
783
AC_MSG_CHECKING(plugin search dir)
784
AC_ARG_WITH(plugin-searchdir, [  --with-plugin-searchdir=DIR where to search for plugins],
785
  [aqbanking_plugin_searchdir="$withval"],
786
  [aqbanking_plugin_searchdir=""])
787

    
788
if test -z "${aqbanking_plugin_searchdir}"; then
789
  if test "$OSYSTEM" = "windows"; then
790
    aqbanking_plugin_searchdir="lib/aqbanking/plugins/${AQBANKING_SO_EFFECTIVE}"
791
  else
792
    if test "$enable_local_install" != "no"; then
793
      aqbanking_plugin_searchdir="lib/aqbanking/plugins/${AQBANKING_SO_EFFECTIVE}"
794
    else
795
      aqbanking_plugin_searchdir="$aqbanking_plugindir"
796
    fi
797
  fi
798
fi
799

    
800
AC_SUBST(aqbanking_plugin_searchdir)
801
AC_MSG_RESULT($aqbanking_plugin_searchdir)
802

    
803

    
804

    
805
###-------------------------------------------------------------------------
806
#
807
# check cfg search dir
808
#
809
AC_MSG_CHECKING(cfg search dir)
810
AC_ARG_WITH(cfg-searchdir, [  --with-cfg-searchdir=DIR where to search for cfg files],
811
  [aqbanking_cfg_searchdir="$withval"],
812
  [aqbanking_cfg_searchdir=""])
813

    
814
if test -z "$aqbanking_cfg_searchdir"; then
815
  if test "$OSYSTEM" = "windows"; then
816
    aqbanking_cfg_searchdir="etc"
817
  else
818
    if test "$enable_local_install" != "no"; then
819
      aqbanking_cfg_searchdir="etc"
820
    else
821
      aqbanking_cfg_searchdir="\$(sysconfdir)"
822
    fi
823
  fi
824
fi
825

    
826

    
827
AC_SUBST(aqbanking_cfg_searchdir)
828
AC_MSG_RESULT($aqbanking_cfg_searchdir)
829

    
830

    
831

    
832
###-------------------------------------------------------------------------
833
#
834
# check locale search dir
835
#
836
AC_MSG_CHECKING(locale search dir)
837
AC_ARG_WITH(locale-searchdir, [  --with-locale-searchdir=DIR where to search for locale files],
838
  [aqbanking_locale_searchdir="$withval"],
839
  [aqbanking_locale_searchdir=""])
840

    
841
if test -z "${aqbanking_locale_searchdir}"; then
842
  if test "$OSYSTEM" = "windows"; then
843
    aqbanking_locale_searchdir="share/locale"
844
  else
845
    if test "$enable_local_install" != "no"; then
846
      aqbanking_locale_searchdir="share/locale"
847
    else
848
      aqbanking_locale_searchdir="\$(localedir)"
849
    fi
850
  fi
851
fi
852

    
853
AC_SUBST(aqbanking_locale_searchdir)
854
AC_MSG_RESULT($aqbanking_locale_searchdir)
855

    
856

    
857

    
858
###-------------------------------------------------------------------------
859
#
860
# check data search dir
861
#
862
AC_MSG_CHECKING(data search dir)
863
AC_ARG_WITH(data-searchdir, [  --with-data-searchdir=DIR where to search for data files],
864
  [aqbanking_data_searchdir="$withval"],
865
  [aqbanking_data_searchdir=""])
866

    
867
if test -z "${aqbanking_data_searchdir}"; then
868
  if test "$OSYSTEM" = "windows"; then
869
    aqbanking_data_searchdir="share"
870
  else
871
    if test "$enable_local_install" != "no"; then
872
      aqbanking_data_searchdir="share"
873
    else
874
      aqbanking_data_searchdir="\$(datadir)"
875
    fi
876
  fi
877
fi
878

    
879
AC_SUBST(aqbanking_data_searchdir)
880
AC_MSG_RESULT($aqbanking_data_searchdir)
881

    
882

    
883

    
884
###-------------------------------------------------------------------------
885
# check for Distribution
886

    
887
AQ_DISTRIBUTION
888

    
889

    
890

    
891
###-------------------------------------------------------------------------
892
#
893
# check for I18N
894
#
895

    
896

    
897
# check whether i18n files are to be created
898
AC_CHECK_PROG(XGETTEXT,xgettext,xgettext, missing)
899

    
900
MAKE_I18N_FILES="yes"
901
if test "$XGETTEXT" = "missing"; then
902
  MAKE_I18N_FILES="no"
903
  AC_MSG_WARN([xgettext is missing. Locale suport is disabled.])
904
fi
905

    
906
AC_PATH_PROG([MSGFMT], [msgfmt], [missing])
907
if test "$MSGFMT" = "missing"; then
908
  MAKE_I18N_FILES="no"
909
  AC_MSG_WARN([msgfmt is missing. Locale suport is disabled.])
910
else
911
  # check for --qt argument of msgfmt
912
  AC_MSG_CHECKING(whether msgfmt understands --qt)
913
  if test "x${MSGFMT}" != "x"; then
914
    if ${MSGFMT} --qt --help >/dev/null 2>&1; then
915
      MSGFMT_SUPPORTS_QT=yes
916
    else
917
      MSGFMT_SUPPORTS_QT=no
918
    fi
919
  else
920
    MSGFMT_SUPPORTS_QT=no
921
  fi
922
  AC_MSG_RESULT($MSGFMT_SUPPORTS_QT)
923
fi
924

    
925
AC_SUBST(MAKE_I18N_FILES)
926
AC_SUBST(MSGFMT_SUPPORTS_QT)
927
AM_CONDITIONAL(IF_MAKE_I18N_FILES, [test "$MAKE_I18N_FILES" = "yes"])
928

    
929

    
930
# then check whether i18n support is to be compiled in
931
i18n_libs=""
932
HAVE_I18N="yes"
933
AC_CHECK_HEADERS([locale.h libintl.h], [], [HAVE_I18N="no"])
934
AC_CHECK_FUNCS([setlocale])
935

    
936
if test "$OS_TYPE" != "windows"; then
937
  oldlibs="$LIBS"
938
  LIBS=""
939
  AC_SEARCH_LIBS(gettext, intl, [], [HAVE_I18N="no"])
940
  i18n_libs="$LIBS"
941
  LIBS="$oldlibs"
942
else
943
  i18n_libs="-lintl"
944
fi
945

    
946
if test "$HAVE_I18N" != "NO"; then
947
  AC_DEFINE_UNQUOTED(HAVE_I18N, 1, [whether I18N is available])
948
fi
949

    
950
AC_SUBST(HAVE_I18N)
951
AC_SUBST(i18n_libs)
952

    
953

    
954

    
955
###-------------------------------------------------------------------------
956
#
957
# check for release
958
#
959
AC_MSG_CHECKING(whether this is an official release)
960
AC_ARG_ENABLE(release,
961
  [  --enable-release         make this an official release (default=no)],
962
  [ case "${enableval}" in
963
    yes) enable_release="yes";;
964
    no)  enable_release="no";;
965
    *) AC_MSG_ERROR(bad value ${enableval} for --enable-release);;
966
    esac
967
  ],
968
  enable_release="no")
969

    
970
if test "$enable_release" = "yes"; then
971
  STRIPALL="-s"
972
else
973
  STRIPALL=""
974
fi
975
AC_SUBST(STRIPALL)
976
AC_MSG_RESULT($enable_release)
977

    
978

    
979

    
980
###-------------------------------------------------------------------------
981
# Debug arguments for compilation
982

    
983
ACX_COMPILE_WARN()
984

    
985

    
986

    
987
###-------------------------------------------------------------------------
988
#
989
# Compiler check for symbol visibility
990
#
991
AC_CACHE_CHECK([whether compiler supports symbol visibility],
992
  ac_cv_hidden_visibility_attribute, [
993
    echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
994
    ac_cv_hidden_visibility_attribute=no
995
    if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD);
996
    then
997
      if grep '\.hidden.*foo' conftest.s >/dev/null;
998
      then
999
        ac_cv_hidden_visibility_attribute=yes
1000
      fi
1001
    fi
1002
    rm -f conftest.*
1003
  ])
1004
if test $ac_cv_hidden_visibility_attribute = yes;
1005
then
1006
  AC_DEFINE(GCC_WITH_VISIBILITY_ATTRIBUTE, 1, [visibility])
1007
  visibility_cflags="-fvisibility=hidden"
1008
fi
1009
AC_SUBST(visibility_cflags)
1010

    
1011

    
1012

    
1013
###-------------------------------------------------------------------------
1014
#
1015
# Subst
1016
#
1017
AS_SCRUB_INCLUDE(aqbanking_includes)
1018
AC_SUBST(aqbanking_sys_is_windows)
1019
AC_SUBST(aqbanking_includes)
1020
AC_SUBST(aqbanking_internal_libs)
1021
AC_SUBST(aqbanking_ldflags)
1022
AC_SUBST(aqbanking_libs)
1023
AC_SUBST(aqbanking_plugindir)
1024
AC_SUBST(aqbanking_pkgdatadir)
1025
AC_SUBST(aqbanking_symlinkdir)
1026
AC_SUBST(aqbanking_headerdir_am)
1027
AC_SUBST(aqbanking_headerdir)
1028

    
1029

    
1030
###-------------------------------------------------------------------------
1031
#
1032
# Check for additional aclocal flags
1033
#
1034
ADD_ACLOCAL_FLAGS=""
1035
for A in "${GWEN_PREFIX}/share/aclocal" \
1036
	 "${prefix}/share/aclocal"; do 
1037
  if test -d "${A}"; then 
1038
    ADD_ACLOCAL_FLAGS="${ADD_ACLOCAL_FLAGS} -I ${A}"
1039
  fi
1040
done
1041
AC_SUBST(ADD_ACLOCAL_FLAGS)
1042

    
1043

    
1044

    
1045
###-------------------------------------------------------------------------
1046
#
1047
# AqBanking modules
1048
#
1049

    
1050
aqbanking_modules=". types"
1051
aqbankingpp_modules="."
1052

    
1053
AC_SUBST(aqbanking_modules)
1054
AC_SUBST(aqbankingpp_modules)
1055

    
1056

    
1057

    
1058
###-------------------------------------------------------------------------
1059
#
1060
# docpath
1061
#
1062
AC_MSG_CHECKING(docpath)
1063
AC_ARG_WITH(docpath, [  --with-docpath=DIR where to store the apidoc],
1064
  [docpath="$withval"],
1065
  [docpath="${HOME}/apidoc"])
1066
AC_SUBST(docpath)
1067
AC_MSG_RESULT($docpath)
1068

    
1069

    
1070
###-------------------------------------------------------------------------
1071
#
1072
# check for doc type
1073
#
1074
AC_MSG_CHECKING(if full docu should be created)
1075
AC_ARG_ENABLE(full-doc,
1076
  [  --enable-full-doc         enable creating full apidoc (default=no)],
1077
  [ case "${enableval}" in
1078
    yes) enable_fulldoc="yes";;
1079
    no)  enable_fulldoc="no";;
1080
    *) AC_MSG_ERROR(bad value ${enableval} for --enable-full-doc);;
1081
    esac
1082
  ],
1083
  enable_fulldoc="no")
1084

    
1085
if test "$enable_fulldoc" = "yes"; then
1086
	DOXYGEN_INPUT="listdoc.h src"
1087
        DOXYGEN_DEFINE=""
1088
        DOXYGEN_FILE_PATTERNS="*.h *.hpp *.c *.cpp"
1089
        DOXYGEN_EXCLUDE_PATTERNS=""
1090
else
1091
	DOXYGEN_DEFINE="DOXYGEN_HIDE"
1092
	DOXYGEN_INPUT="listdoc.h aqbanking6"
1093
        DOXYGEN_FILE_PATTERNS="*.h *.hpp"
1094
        DOXYGEN_EXCLUDE_PATTERNS="*_p.h"
1095
fi
1096
AC_SUBST(DOXYGEN_INPUT)
1097
AC_SUBST(DOXYGEN_DEFINE)
1098
AC_SUBST(DOXYGEN_FILE_PATTERNS)
1099
AC_SUBST(DOXYGEN_EXCLUDE_PATTERNS)
1100
AC_MSG_RESULT($enable_fulldoc)
1101

    
1102

    
1103

    
1104
###-------------------------------------------------------------------------
1105
#
1106
# search for tag files
1107
#
1108
AC_MSG_CHECKING(doxygen tag files)
1109
DOXYGEN_TAGFILES=""
1110
DOXYGEN_TAGFILEPATHS=""
1111
if test -d "${docpath}"; then
1112
  tagfiles="`cd ${docpath} && ls *.tag`"
1113
  if test -n "${tagfiles}"; then
1114
    # remove own package from list
1115
    tagfiles="`echo ${tagfiles} | ${SED} -e s/${PACKAGE}.tag//`"
1116

    
1117
    # add every remaining tag file
1118
    for ff in ${tagfiles}; do
1119
      DOXYGEN_TAGFILES="${DOXYGEN_TAGFILES} ${docpath}/${ff}=${docpath}/`basename -s .tag ${ff}`"
1120
    done
1121
  fi
1122
fi
1123
if test -z "${DOXYGEN_TAGFILES}"; then
1124
  AC_MSG_RESULT(none)
1125
else
1126
  AC_MSG_RESULT(found)
1127
fi
1128
AC_SUBST(DOXYGEN_TAGFILES)
1129

    
1130

    
1131

    
1132
###-------------------------------------------------------------------------
1133
#
1134
# check for dependencies of backends
1135
#  (nothing to check for right now)
1136

    
1137
dependencies_ok="yes"
1138

    
1139

    
1140

    
1141
###-------------------------------------------------------------------------
1142
#
1143
# Configure stuff for backend AqHBCI
1144
#
1145

    
1146
# Common settings; can be overridden per-OS below.
1147
aqhbci_internal_libs="${abs_top_builddir}/src/libs/plugins/backends/aqhbci/libaqhbci.la"
1148
aqhbci_ldflags="-L\${libdir}"
1149
aqhbci_includes="${aqbanking_includes}"
1150
aqhbci_libs="-laqhbci"
1151
with_aqhbci="no"
1152

    
1153
case "$aqbanking_backends" in *aqhbci*)
1154
  with_aqhbci="yes"
1155
  case "$OS_TYPE" in
1156
      posix)
1157
          ;;
1158
      windows)
1159
          AC_DEFINE_UNQUOTED(BUILDING_AQHBCI_DLL,1, [Define if DLL is built])
1160
          ;;
1161
  esac
1162
  ;;
1163
esac
1164

    
1165
AS_SCRUB_INCLUDE(aqhbci_includes)
1166
AC_SUBST(aqhbci_includes)
1167
AC_SUBST(aqhbci_internal_libs)
1168
AC_SUBST(aqhbci_libs)
1169
AC_SUBST(aqhbci_ldflags)
1170
AC_SUBST(with_aqhbci)
1171

    
1172

    
1173

    
1174
###-------------------------------------------------------------------------
1175
#
1176
# check AqHBCI data dir
1177
#
1178
AC_MSG_CHECKING(aqhbci data dir)
1179
AC_ARG_WITH(aqhbci-datadir, [  --with-aqhbci-datadir=DIR where to search for data files],
1180
  [aqhbci_datadir="$withval"],
1181
  [aqhbci_datadir="$aqhbci_data"])
1182
AC_SUBST(aqhbci_datadir)
1183
AC_MSG_RESULT($aqhbci_datadir)
1184

    
1185

    
1186

    
1187
###-------------------------------------------------------------------------
1188
#
1189
# Configure stuff for backend AqOfxConnect
1190
#
1191

    
1192
# Common settings
1193
aqofxconnect_internal_libs="${abs_top_builddir}/src/libs/plugins/backends/aqofxconnect/libaqofxconnect.la"
1194
aqofxconnect_includes="${aqbanking_includes}"
1195
aqofxconnect_libs="-L\${libdir} -laqofxconnect"
1196

    
1197
case "$aqbanking_backends" in *aqofxconnect*)
1198
  case "$OS_TYPE" in
1199
      posix)
1200
          ;;
1201
      windows)
1202
          AC_DEFINE_UNQUOTED(BUILDING_AQOFXCONNECT_DLL,1, [Define if DLL is built])
1203
          ;;
1204
  esac
1205
  ;;
1206
esac
1207

    
1208
AS_SCRUB_INCLUDE(aqofxconnect_includes)
1209
AC_SUBST(aqofxconnect_includes)
1210
AC_SUBST(aqofxconnect_internal_libs)
1211
AC_SUBST(aqofxconnect_libs)
1212
#AC_DEFINE_UNQUOTED(AQOFXCONNECT_DATA, "${aqofxconnect_data}", [data dir])
1213

    
1214

    
1215
###-------------------------------------------------------------------------
1216
#
1217
# Configure stuff for backend AqPaypal
1218
#
1219

    
1220
# Common settings
1221
aqpaypal_internal_libs="${abs_top_builddir}/src/libs/plugins/backends/aqpaypal/libaqpaypal.la"
1222
aqpaypal_includes="${aqbanking_includes}"
1223
aqpaypal_libs="-L\${libdir} -laqpaypal"
1224

    
1225
case "$aqbanking_backends" in *aqpaypal*)
1226
  case "$OS_TYPE" in
1227
      posix)
1228
          ;;
1229
      windows)
1230
          AC_DEFINE_UNQUOTED(BUILDING_AQPAYPAL_DLL,1, [Define if DLL is built])
1231
          ;;
1232
  esac
1233
  ;;
1234
esac
1235

    
1236
AS_SCRUB_INCLUDE(aqpaypal_includes)
1237
AC_SUBST(aqpaypal_includes)
1238
AC_SUBST(aqpaypal_internal_libs)
1239
AC_SUBST(aqpaypal_libs)
1240
#AC_DEFINE_UNQUOTED(AQPAYPAL_DATA, "${aqpaypal_data}", [data dir])
1241

    
1242

    
1243
###-------------------------------------------------------------------------
1244
#
1245
# Configure stuff for backend AqEBICS
1246
#
1247

    
1248
# Common settings; can be overridden per-OS below.
1249
aqebics_internal_libs="${abs_top_builddir}/src/libs/plugins/backends/aqebics/plugin/libaqebics.la"
1250
aqebics_ldflags="-L\${libdir}"
1251
aqebics_includes="${aqbanking_includes}"
1252
aqebics_libs="-laqebics"
1253
with_aqebics="no"
1254

    
1255
case "$aqbanking_backends" in *aqebics*)
1256
  with_aqebics="yes"
1257
  case "$OS_TYPE" in
1258
      posix)
1259
          ;;
1260
      windows)
1261
          AC_DEFINE_UNQUOTED(BUILDING_AQEBICS_DLL,1, [Define if DLL is built])
1262
          ;;
1263
  esac
1264
  ;;
1265
esac
1266

    
1267
AS_SCRUB_INCLUDE(aqebics_includes)
1268
AC_SUBST(aqebics_includes)
1269
AC_SUBST(aqebics_internal_libs)
1270
AC_SUBST(aqebics_libs)
1271
AC_SUBST(aqebics_ldflags)
1272
AC_SUBST(with_aqebics)
1273

    
1274

    
1275

    
1276
###-------------------------------------------------------------------------
1277
#
1278
# check AqEBICS data dir
1279
#
1280
AC_MSG_CHECKING(aqebics data dir)
1281
AC_ARG_WITH(aqebics-datadir, [  --with-aqebics-datadir=DIR where to search for data files],
1282
  [aqebics_datadir="$withval"],
1283
  [aqebics_datadir="$aqebics_data"])
1284
AC_SUBST(aqebics_datadir)
1285
AC_MSG_RESULT($aqebics_datadir)
1286

    
1287

    
1288

    
1289

    
1290
###-------------------------------------------------------------------------
1291
#
1292
# Check for xmlsec
1293
#
1294
if test "$with_aqebics" = "yes"; then
1295
  AC_MSG_CHECKING(for build requirements needed by EBICS backend)
1296
  AC_MSG_RESULT()
1297
  PKG_CHECK_MODULES(XMLSEC,  [xmlsec1-gnutls >= 1.0.0])
1298
  PKG_CHECK_MODULES(LIBXML,  [libxml-2.0])
1299
  PKG_CHECK_MODULES(LIBXSLT, [libxslt])
1300
  AQEBICS_CFLAGS="$XMLSEC_CFLAGS $LIBXML_CFLAGS $LIBXSLT_CFLAGS"
1301
  AQEBICS_LIBS="$XMLSEC_LIBS $LIBXML_LIBS $LIBXSLT_LIBS"
1302
  AC_SUBST(AQEBICS_CFLAGS)
1303
  AC_SUBST(AQEBICS_LIBS)
1304
fi
1305

    
1306

    
1307

    
1308

    
1309
###-------------------------------------------------------------------------
1310
#
1311
# check for plugin init
1312
#
1313
AC_MSG_CHECKING(if plugin init is wanted)
1314
AC_ARG_ENABLE(init-plugins,
1315
  [  --enable-init-plugins             enable plugin init (default=yes)],
1316
  enable_init_plugins="$enableval",
1317
  enable_init_plugins="yes")
1318
AC_MSG_RESULT($enable_init_plugins)
1319

    
1320
if test "$enable_init_plugins" != "no"; then
1321
  AC_DEFINE(AQBANKING_ENABLE_INIT_PLUGINS, 1, [if plugin init is wanted])
1322
fi
1323

    
1324

    
1325

    
1326
###-------------------------------------------------------------------------
1327
#
1328
# check whether aqbanking is a subproject to another one
1329
#
1330

    
1331
AC_MSG_CHECKING(if AqBanking is a subproject)
1332
AC_ARG_ENABLE(aqb-subproject,
1333
  [  --enable-aqb-subproject         make gwen only a subproject (default=no)],
1334
  enable_aqb_subproject="$enableval",
1335
  enable_aqb_subproject="no")
1336
AC_MSG_RESULT($enable_aqb_subproject)
1337

    
1338
if test "$enable_aqb_subproject" != "no"; then
1339
  AC_DEFINE(AQBANKING_IS_SUBPROJECT, 1, [whether aqb is a subproject])
1340
fi
1341

    
1342

    
1343

    
1344
###-------------------------------------------------------------------------
1345
#
1346
# check whether aqbanking-cli is enabled
1347
#
1348

    
1349
AC_MSG_CHECKING(whether aqbanking-cli is wanted)
1350
AC_ARG_ENABLE(cli,
1351
  [  --enable-cli         build aqbanking-cli (default=yes)],
1352
  enable_cli="$enableval",
1353
  enable_cli="yes")
1354
AC_MSG_RESULT($enable_cli)
1355

    
1356
AM_CONDITIONAL(ENABLE_CLI, [test "$enable_cli" = "yes"])
1357

    
1358
AC_ARG_WITH(cli-version-string, 
1359
  [  --with-cli-version-string      list of additional libraries],
1360
  [AQBANKING_CLI_VERSION_STRING="$withval"],
1361
  [AQBANKING_CLI_VERSION_STRING="$AQBANKING_VERSION_STRING"]
1362
)
1363

    
1364
AC_SUBST(AQBANKING_CLI_VERSION_STRING)
1365

    
1366

    
1367
###-------------------------------------------------------------------------
1368
#
1369
# check whether tutorials are to be built
1370
#
1371

    
1372
AC_MSG_CHECKING(whether tutorials are to be built)
1373
AC_ARG_ENABLE(tutorials,
1374
  [  --enable-tutorials         build tutorials (default=yes)],
1375
  [ case "${enableval}" in
1376
    yes) TUTORIALS="tutorials";;
1377
    no)  TUTORIALS="";;
1378
    *) AC_MSG_ERROR(bad value ${enableval} for --enable-tutorials);;
1379
    esac
1380
  ],
1381
  [
1382
   TUTORIALS="tutorials"
1383
   enableval="yes"
1384
  ])
1385
AC_MSG_RESULT($enableval)
1386
AC_SUBST(TUTORIALS)
1387

    
1388

    
1389
###-------------------------------------------------------------------------
1390
#
1391
# Cleanup includes, define all_XXX
1392
#
1393

    
1394
AS_SCRUB_INCLUDE(all_includes)
1395
AC_SUBST(all_includes)
1396
AC_SUBST(all_libraries)
1397

    
1398
AC_SUBST(aqbanking_backends)
1399

    
1400

    
1401
# Adjust CFLAGS and LDFLAGS on Windows
1402
case "$OS_TYPE" in
1403
    windows)
1404
	# GnuCash compiles with this; maybe we need this, too?
1405
	#CFLAGS="${CFLAGS} -mms-bitfields"
1406
	LDFLAGS="${LDFLAGS} -no-undefined -mwindows"
1407
    ;;
1408
esac
1409

    
1410

    
1411

    
1412
###-------------------------------------------------------------------------
1413
#
1414
# Output files
1415
#
1416

    
1417
AC_CONFIG_FILES([
1418
  mksymlinks.sh
1419
  admin/Makefile
1420
  doc/Makefile
1421
  m4/Makefile
1422
  src/Makefile
1423
  src/libs/Makefile
1424
  src/libs/aqbanking/Makefile
1425
  src/libs/aqbanking/dialogs/Makefile
1426
  src/libs/aqbanking/types/Makefile
1427
  src/libs/aqbanking/types2/Makefile
1428
  src/libs/aqbanking/gui/Makefile
1429
  src/libs/aqbanking/typemaker2/Makefile
1430
  src/libs/aqbanking/typemaker2/c/Makefile
1431
  src/libs/aqbanking/backendsupport/Makefile
1432
  src/libs/aqbankingpp/Makefile
1433
  src/libs/plugins/Makefile
1434
  src/libs/plugins/bankinfo/Makefile
1435
  src/libs/plugins/bankinfo/de/Makefile
1436
  src/libs/plugins/bankinfo/de/de.xml
1437
  src/libs/plugins/bankinfo/generic/Makefile
1438
  src/libs/plugins/imexporters/Makefile
1439
  src/libs/plugins/imexporters/eri2/Makefile
1440
  src/libs/plugins/imexporters/eri2/eri2.xml
1441
  src/libs/plugins/imexporters/eri2/profiles/Makefile
1442
  src/libs/plugins/imexporters/eri2/profiles/default.conf
1443
  src/libs/plugins/imexporters/ofx/Makefile
1444
  src/libs/plugins/imexporters/ofx/ofx.xml
1445
  src/libs/plugins/imexporters/ofx/parser/Makefile
1446
  src/libs/plugins/imexporters/ofx/profiles/Makefile
1447
  src/libs/plugins/imexporters/ofx/profiles/default.conf
1448
  src/libs/plugins/imexporters/ofx/profiles/iso8859.conf
1449
  src/libs/plugins/imexporters/swift/Makefile
1450
  src/libs/plugins/imexporters/swift/swift.xml
1451
  src/libs/plugins/imexporters/swift/profiles/Makefile
1452
  src/libs/plugins/imexporters/swift/profiles/swiftmt940.conf
1453
  src/libs/plugins/imexporters/swift/profiles/swiftmt942.conf
1454
  src/libs/plugins/imexporters/swift/profiles/swiftmt535.conf
1455
  src/libs/plugins/imexporters/swift/profiles/amro940.conf
1456
  src/libs/plugins/imexporters/swift/profiles/amro942.conf
1457
  src/libs/plugins/imexporters/csv/Makefile
1458
  src/libs/plugins/imexporters/csv/csv.xml
1459
  src/libs/plugins/imexporters/csv/profiles/Makefile
1460
  src/libs/plugins/imexporters/csv/profiles/default.conf
1461
  src/libs/plugins/imexporters/csv/profiles/amex.conf
1462
  src/libs/plugins/imexporters/csv/profiles/aqmoney1.conf
1463
  src/libs/plugins/imexporters/csv/profiles/aqmoney2.conf
1464
  src/libs/plugins/imexporters/csv/profiles/comdirect.conf
1465
  src/libs/plugins/imexporters/csv/profiles/consors-tagesgeld.conf
1466
  src/libs/plugins/imexporters/csv/profiles/mijnpostbank.conf
1467
  src/libs/plugins/imexporters/csv/profiles/oko.conf
1468
  src/libs/plugins/imexporters/csv/profiles/spk-aachen.conf
1469
  src/libs/plugins/imexporters/csv/profiles/spk-steiermark.conf
1470
  src/libs/plugins/imexporters/csv/profiles/tonline-banking.conf
1471
  src/libs/plugins/imexporters/csv/profiles/test.conf
1472
  src/libs/plugins/imexporters/csv/profiles/vrnetworld.conf
1473
  src/libs/plugins/imexporters/csv/profiles/lbbberlin.conf
1474
  src/libs/plugins/imexporters/csv/profiles/bankaustria.conf
1475
  src/libs/plugins/imexporters/csv/profiles/psk.conf
1476
  src/libs/plugins/imexporters/csv/profiles/diba.conf
1477
  src/libs/plugins/imexporters/csv/profiles/dkb.conf
1478
  src/libs/plugins/imexporters/csv/profiles/dkb-cash.conf
1479
  src/libs/plugins/imexporters/csv/profiles/sparda.conf
1480
  src/libs/plugins/imexporters/csv/profiles/full.conf
1481
  src/libs/plugins/imexporters/csv/profiles/hypovereinsbank.conf
1482
  src/libs/plugins/imexporters/csv/profiles/postbankffm.conf
1483
  src/libs/plugins/imexporters/csv/profiles/cli-transfers.conf
1484
  src/libs/plugins/imexporters/csv/profiles/sns.conf
1485
  src/libs/plugins/imexporters/csv/profiles/transfers.conf
1486
  src/libs/plugins/imexporters/csv/profiles/sepadebitnotes.conf
1487
  src/libs/plugins/imexporters/openhbci1/Makefile
1488
  src/libs/plugins/imexporters/openhbci1/openhbci1.xml
1489
  src/libs/plugins/imexporters/openhbci1/profiles/Makefile
1490
  src/libs/plugins/imexporters/openhbci1/profiles/default.conf
1491
  src/libs/plugins/imexporters/qif/Makefile
1492
  src/libs/plugins/imexporters/qif/qif.xml
1493
  src/libs/plugins/imexporters/qif/profiles/Makefile
1494
  src/libs/plugins/imexporters/qif/profiles/default.conf
1495
  src/libs/plugins/imexporters/yellownet/Makefile
1496
  src/libs/plugins/imexporters/yellownet/yellownet.xml
1497
  src/libs/plugins/imexporters/yellownet/profiles/Makefile
1498
  src/libs/plugins/imexporters/yellownet/profiles/default.conf
1499
  src/libs/plugins/imexporters/xmldb/Makefile
1500
  src/libs/plugins/imexporters/xmldb/xmldb.xml
1501
  src/libs/plugins/imexporters/xmldb/profiles/Makefile
1502
  src/libs/plugins/imexporters/xmldb/profiles/default.conf
1503
  src/libs/plugins/imexporters/sepa/Makefile
1504
  src/libs/plugins/imexporters/sepa/sepa.xml
1505
  src/libs/plugins/imexporters/sepa/profiles/Makefile
1506
  src/libs/plugins/imexporters/sepa/profiles/default.conf
1507
  src/libs/plugins/imexporters/sepa/profiles/001_001_02.conf
1508
  src/libs/plugins/imexporters/sepa/profiles/001_002_03.conf
1509
  src/libs/plugins/imexporters/sepa/profiles/001_003_03.conf
1510
  src/libs/plugins/imexporters/sepa/profiles/008_001_01.conf
1511
  src/libs/plugins/imexporters/sepa/profiles/008_002_02.conf
1512
  src/libs/plugins/imexporters/sepa/profiles/008_003_02.conf
1513
  src/libs/plugins/imexporters/ctxfile/Makefile
1514
  src/libs/plugins/imexporters/ctxfile/ctxfile.xml
1515
  src/libs/plugins/imexporters/ctxfile/profiles/Makefile
1516
  src/libs/plugins/imexporters/ctxfile/profiles/default.conf
1517
  src/libs/plugins/imexporters/q43/Makefile
1518
  src/libs/plugins/imexporters/q43/q43.xml
1519
  src/libs/plugins/imexporters/q43/profiles/Makefile
1520
  src/libs/plugins/imexporters/q43/profiles/default.conf
1521
  src/libs/plugins/imexporters/camt/Makefile
1522
  src/libs/plugins/imexporters/camt/camt.xml
1523
  src/libs/plugins/imexporters/camt/profiles/Makefile
1524
  src/libs/plugins/imexporters/camt/profiles/default.conf
1525
  src/libs/plugins/imexporters/camt/profiles/052_001_02.conf
1526
  src/libs/plugins/parsers/Makefile
1527
  src/libs/plugins/parsers/swift/Makefile
1528
  src/libs/plugins/parsers/swift/swift.xml
1529
  src/libs/plugins/backends/Makefile
1530
  src/libs/plugins/backends/aqhbci/Makefile
1531
  src/libs/plugins/backends/aqhbci/aqhbci.xml
1532
  src/libs/plugins/backends/aqhbci/dialogs/Makefile
1533
  src/libs/plugins/backends/aqhbci/header.xml
1534
  src/libs/plugins/backends/aqhbci/banking/Makefile
1535
  src/libs/plugins/backends/aqhbci/msglayer/Makefile
1536
  src/libs/plugins/backends/aqhbci/joblayer/Makefile
1537
  src/libs/plugins/backends/aqhbci/applayer/Makefile
1538
  src/libs/plugins/backends/aqhbci/ajobs/Makefile
1539
  src/libs/plugins/backends/aqhbci/applayer/xml/Makefile
1540
  src/libs/plugins/backends/aqhbci/control/Makefile
1541
  src/libs/plugins/backends/aqhbci/version.h
1542
  src/libs/plugins/backends/aqofxconnect/Makefile
1543
  src/libs/plugins/backends/aqofxconnect/aqofxconnect.xml
1544
  src/libs/plugins/backends/aqofxconnect/libofxhome/Makefile
1545
  src/libs/plugins/backends/aqpaypal/Makefile
1546
  src/libs/plugins/backends/aqpaypal/aqpaypal.xml
1547
  src/libs/plugins/backends/aqpaypal/control/Makefile
1548
  src/libs/plugins/backends/aqnone/Makefile
1549
  src/libs/plugins/backends/aqnone/aqnone.xml
1550
  src/libs/plugins/backends/aqebics/Makefile
1551
  src/libs/plugins/backends/aqebics/plugin/Makefile
1552
  src/libs/plugins/backends/aqebics/plugin/aqebics.xml
1553
  src/libs/plugins/backends/aqebics/plugin/client/Makefile
1554
  src/libs/plugins/backends/aqebics/plugin/dialogs/Makefile
1555
  src/libs/plugins/backends/aqebics/plugin/msg/Makefile
1556
  src/libs/plugins/backends/aqebics/tools/Makefile
1557
  src/libs/plugins/backends/aqebics/tools/aqebics-tool/Makefile
1558
  src/test/Makefile
1559
  src/tools/Makefile
1560
  src/tools/aqbanking-cli/Makefile
1561
  tutorials/Makefile
1562
  po/Makefile
1563
  Doxyfile
1564
  Makefile
1565
  aqbanking-config.in
1566
  aqbanking.pc
1567
  aqbanking.spec
1568
  aqbanking.iss
1569
  version.h
1570
  system.h
1571
  aqbanking-config.cmake
1572
  aqbanking-config-version.cmake
1573
])
1574
AC_OUTPUT
1575

    
1576

    
1577

    
1578
###-------------------------------------------------------------------------
1579
#
1580
# Summary
1581
#
1582

    
1583
echo
1584
echo
1585
echo "Summary"
1586
echo "----------------------------------------------------"
1587
echo "AqBanking version       : $AQBANKING_VERSION_FULL_STRING"
1588
echo "Local Installation Mode : $enable_local_install"
1589
echo "Prefix                  : $prefix"
1590
echo "Exec-Prefix             : $exec_prefix"
1591
echo "Libdir                  : $libdir"
1592
echo "Cfg Search Folder       : $aqbanking_cfg_searchdir"
1593
echo "Data Search Folder      : $aqbanking_data_searchdir"
1594
echo "Locale Search Folder    : $aqbanking_locale_searchdir"
1595
echo "Plugin Search Folder    : $aqbanking_plugin_searchdir"
1596
echo "Symbol Visibility       : $visibility_supported"
1597
echo "Use KtoBlzCheck         : $have_ktoblzcheck"
1598
echo "Build AqBanking-CLI     : $enable_cli"
1599
echo "CLI Version String      : $AQBANKING_CLI_VERSION_STRING"
1600
echo
1601

    
1602
echo
1603
echo "Plugins"
1604
echo "----------------------------------------------------"
1605
echo "  Backends              : $aqbanking_backends"
1606
echo "  Im-/Exporters         : $aqbanking_imexporters"
1607
echo "  Parsers               : $aqbanking_parsers"
1608
echo "  Bank Infos            : $aqbanking_bankinfos"
1609
echo
1610

    
1611
echo "Additional Information"
1612
echo "----------------------------------------------------"
1613
if test "$have_ktoblzcheck" != "yes"; then
1614
  echo " - you really should consider installing ktoblzcheck "
1615
  echo "   in order to enable account number validation!"
1616
fi
1617
echo
1618

    
1619
echo "----------------------------------------------------"
1620
echo "You can now run \"make\" (or gmake on FreeBSD) to compile."
1621

    
1622