-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.ac
667 lines (598 loc) · 16.5 KB
/
config.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
# Process this file with autoconf to produce a configure script.
AC_INIT(WvStreams, 5.0-pre, [email protected], wvstreams)
SO_VERSION=5.0-pre
# append to a variable without introducing superfluous white space
AC_DEFUN([WV_APPEND],[
if test -z "$$1"; then
$1="$2"
else
$1="$$1 $2"
fi
])
QT_SEARCH_PATH="
$prefix
/usr
$libdir/qt-3.1
$libdir/qt3
$libdir/qt
$datadir/qt3
$datadir/qt
/usr
/usr/lib/qt3
/usr/lib/qt-3.1
/usr/share/qt3
/usr/lib/qt
/usr/share/qt
"
MYDIR=`dirname -- $0`
MYFULLDIR=`cd $MYDIR && pwd`
OUTDIR=`pwd`
if test $MYFULLDIR = $OUTDIR; then
echo "WvStreams must be built in a directory outside of the sourcedir."
echo "Please create a different directory, and run configure/make from"
echo "within it, for example:"
echo " mkdir foo"
echo " cd foo"
echo " ../wvstreams/configure"
echo " make"
exit 1
fi
SRCDIR=$MYDIR
AC_SUBST(SRCDIR)
WVSRCDIR=wvsrcdir
rm -f wvsrcdir
ln -s $MYDIR wvsrcdir
AC_CONFIG_SRCDIR(streams/wvstream.cc)
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--disable-debug],
[strip debug information]))
AC_ARG_ENABLE(fatal-warnings,
AC_HELP_STRING([--enable-fatal-warnings],
[turn warnings into errors]))
AC_ARG_ENABLE(optimization,
AC_HELP_STRING([--disable-optimization],
[optimization options]))
AC_ARG_ENABLE(resolver-fork,
AC_HELP_STRING([--disable-resolver-fork],
[WvResolver background name resolution (debugging)]))
AC_ARG_ENABLE(delete-detector,
AC_HELP_STRING([--enable-delete-detector],
[Delete detector (reference counting)]))
AC_ARG_ENABLE(warnings,
AC_HELP_STRING([--disable-warnings],
[extra warnings]))
AC_ARG_WITH(dbus, AC_HELP_STRING([--with-dbus], [DBUS]))
AC_ARG_WITH(openssl, AC_HELP_STRING([--with-openssl], [OpenSSL >= 0.9.7 (required)]))
AC_ARG_WITH(pam, AC_HELP_STRING([--with-pam], [PAM]))
AC_ARG_WITH(qt, AC_HELP_STRING([--with-qt], [Qt]))
AC_ARG_WITH(zlib, AC_HELP_STRING([--with-zlib], [zlib (required)]))
AC_ARG_WITH(valgrind, AC_HELP_STRING([--with-valgrind], [Valgrind]))
AC_ARG_VAR(MOC, [Qt meta object compiler])
AC_ARG_VAR(WEAVER_BUILD_INFO, [Extra version info])
# avoid autoconf's default values, but keep those the user might have given
CFLAGS="$CFLAGS"
CXXFLAGS="$CXXFLAGS"
AC_PROGRAM_CHECK(AR,ar,ar,:)
AC_PROGRAM_CHECK(AR,gar,gar,:)
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Detect target build environment
AC_CANONICAL_TARGET
case "$target" in
*-linux*)
ARCH_SUBDIRS="linuxstreams"
OS="LINUX"
;;
*-sunos*|*-solaris*)
ARCH_SUBDIRS=""
ac_libs="-lgcc_s -ldl -lm -lc"
OS="SOLARIS"
;;
*-win*|*-mingw32*)
ARCH_SUBDIRS="win32"
OS="WIN32"
;;
*-apple*)
ARCH_SUBDIRS=""
OS="MACOS"
;;
*)
ARCH_SUBDIRS=""
OS="OTHER"
;;
esac
AC_SUBST(target)
AC_SUBST(ARCH_SUBDIRS)
AC_SUBST(OS)
# Detect endianness
AC_C_BIGENDIAN
# Look for __attribute__ ((deprecated))
CPPFLAGS_save="$CPPFLAGS"
WV_APPEND(CPPFLAGS, -Werror)
AC_MSG_CHECKING(for __attribute__ ((deprecated)))
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
[#include "confdefs.h"
void f() __attribute__ ((deprecated));
void f()
{
}
int main()
{
return 0;
}
])],
[AC_MSG_RESULT([yes])
AC_DEFINE([ATTR_DEPRECATED],
[__attribute__ ((deprecated))],
[Compiler warning on deprecated functions])],
[AC_MSG_RESULT([no])
AC_DEFINE([ATTR_DEPRECATED], [],
[Compiler warning on deprecated functions])])
CPPFLAGS="$CPPFLAGS_save"
# argp
USE_WVSTREAMS_ARGP=
AC_CHECK_HEADERS(argp.h)
AC_CHECK_FUNC(argp_parse)
if test "$ac_cv_func_argp_parse" != yes \
-o "$ac_cv_header_argp_h" != yes ; then
(
echo
echo 'configuring argp...'
mkdir -p argp
cd argp
MYARGPDIR="../wvsrcdir/argp"
rm -f $MYARGPDIR/config.status
$MYARGPDIR/configure --host=$host --srcdir=$MYARGPDIR || exit $?
echo 'argp configured.'
echo
) || exit $?
USE_WVSTREAMS_ARGP=1
fi
# Function checks
AC_HEADER_DIRENT
AC_FUNC_ALLOCA
AC_CHECK_HEADERS(execinfo.h)
# Check for error_t
AC_CHECK_HEADERS([argz.h errno.h])
AC_CHECK_TYPE(error_t,, [AC_DEFINE([error_t], [int],
[Define to a type to use for `error_t' if it is not otherwise available.])
AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
does not typedef error_t.])],dnl `
[#if HAVE_ARGZ_H
# include <argz.h>
#else
# if HAVE_ERRNO_H
# include <errno.h>
# endif
#endif])
# Check for size of ethernet addresses
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
])
AC_CHECK_HEADERS([net/ethernet.h], [], [],
[#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
])
AC_CHECK_HEADERS([netinet/if_ether.h], [], [],
[#include <stdio.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#if HAVE_NET_IF_H
# include <net/if.h>
#endif
])
AC_CHECK_DECL(ETHER_ADDR_LEN,,
AC_CHECK_TYPE(ether_addr_t,
AC_DEFINE([ETHER_ADDR_LEN], [sizeof(ether_addr_t)],
[Size of ethernet address]),
AC_DEFINE([ETHER_ADDR_LEN], [6]),
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#if HAVE_NET_ETHERNET_H
# include <net/ethernet.h>
#endif
#if HAVE_NET_IF_H
# include <net/if.h>
#endif
#if HAVE_NETINET_IF_ETHER_H
# include <netinet/if_ether.h>
#endif
]),
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#if HAVE_NET_ETHERNET_H
# include <net/ethernet.h>
#endif
#if HAVE_NET_IF_H
# include <net/if.h>
#endif
#if HAVE_NETINET_IF_ETHER_H
# include <netinet/if_ether.h>
#endif
])
# Check for basic Internet support
AC_CHECK_HEADERS([netdb.h])
AC_CHECK_HEADERS([netinet/in.h])
AC_CHECK_HEADERS([netinet/in_systm.h])
AC_CHECK_HEADERS([netinet/ip.h], [], [],
[#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#if HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#if HAVE_NETINET_IN_SYSTM_H
# include <netinet/in_systm.h>
#endif
])
AC_CHECK_HEADERS([netinet/tcp.h])
# Check for advanced Linux-style modem support
AC_CHECK_HEADERS([linux/serial.h])
AC_CHECK_FUNCS([cfmakeraw])
# Detect hard-linking based on LN_S's behaviour
AC_MSG_CHECKING([whether ln works...])
case "$LN_S" in
ln*)
LN='ln'
AC_MSG_RESULT([yes])
;;
*)
LN="$LN_S"
AC_MSG_RESULT([no, using $LN])
;;
esac
AC_SUBST(LN)
# Setting the default language to C++ means that CXX and CXXCPP will be
# used for compile tests.
AC_LANG(C++)
# __libc_stack_end isn't available to shared libraries with some libc versions
AC_MSG_CHECKING([whether __libc_stack_end is public])
AH_TEMPLATE([HAVE_LIBC_STACK_END], [Whether libc supports __libc_stack_end])
LDFLAGS_save="$LDFLAGS"
WV_APPEND(LDFLAGS, [-Wl,-z,defs -shared])
HAVE_LIBC_STACK_END=no
AC_TRY_LINK([extern const void *__libc_stack_end; ],
[volatile const void *x = __libc_stack_end; ],
[HAVE_LIBC_STACK_END=yes; ])
if test "$HAVE_LIBC_STACK_END" = "yes"; then
AC_DEFINE([HAVE_LIBC_STACK_END])
fi
AC_MSG_RESULT([$HAVE_LIBC_STACK_END])
LDFLAGS="$LDFLAGS_save"
# Detect pkg-config
AC_PATH_PROG([PKGCONFIG], [pkg-config], [no])
if test "$PKGCONFIG" = "no"; then
AC_MSG_WARN([pkg-config is not installed])
fi
if test "$enable_debug" != "no"; then
AC_DEFINE_UNQUOTED(VER_STRING_EXTRA, [" (`whoami`@`hostname`$VER_STRING_EXTRA)"], [Extra version string.])
fi
# resolver-fork
if test "$enable_resolver_fork" = "no"; then
AC_DEFINE(WVRESOLVER_SKIP_FORK,,
[Define to disable WvResolver forking for debugging with gdb.])
fi
# xplc delete detector
if test "$enable_delete_detector" = "yes"; then
AC_DEFINE(ENABLE_DELETE_DETECTOR,,
[Define to enable the XPLC delete detector.])
fi
# zlib
if test "$with_zlib" != "no"; then
if test "$with_zlib" != "" -a "$with_zlib" != "yes"; then
WV_APPEND(CPPFLAGS, -I$with_zlib)
WV_APPEND(LDFLAGS, -L$with_zlib)
fi
fi
# dbus
if test "$with_dbus" != "no"; then
if test "$with_dbus" = "" -o "$with_dbus" = "yes"; then
AC_MSG_CHECKING([Checking that D-Bus version greater than 1.2.14 installed.])
if pkg-config --atleast-version 1.2.14 dbus-1; then
WV_APPEND(CPPFLAGS, [`pkg-config --cflags dbus-1`])
LIBS_DBUS=`pkg-config --libs dbus-1`
AC_MSG_RESULT([yes])
else
with_dbus=no
AC_MSG_RESULT([no])
fi
else
# no version check when doing --with-dbus
DBUS_LIBDIR=$with_dbus/dbus/.libs
WV_APPEND(CPPFLAGS, -I$with_dbus)
LIBS_DBUS=$DBUS_LIBDIR/libdbus-1.a
fi
# double check that we actually have D-Bus
if test "$with_dbus" != "no"; then
AC_CHECK_HEADERS(dbus/dbus.h,, [with_dbus=no])
with_dbus=no
LIBS_save=$LIBS
WV_APPEND(LIBS, "$LIBS_DBUS")
AC_TRY_LINK([extern "C" void dbus_message_new(); ],
[dbus_message_new(); ],
[with_dbus=])
LIBS=$LIBS_save
fi
if test "$with_dbus" != "no"; then
AC_DEFINE(WITH_DBUS,,
[Define to enable DBUS support.])
fi
fi
# BSD sockets, if you're on Solaris
AC_CHECK_LIB(socket, bind)
# libstdc++ is needed on some systems
AC_CHECK_LIB(stdc++, printf)
# -lcrypt is needed for utils/strcrypt.cc. Which maybe we should delete... :)
AC_CHECK_LIB(crypt, crypt)
# openssl
if test "$with_openssl" != "no"; then
if test "$with_openssl" != ""; then
WV_APPEND(CPPFLAGS, [-I$with_openssl/include])
WV_APPEND(LDFLAGS, [-L$with_openssl])
fi
AC_CHECK_HEADERS(openssl/ssl.h,, [with_openssl=no],
[#define OPENSSL_NO_KRB5])
AC_CHECK_LIB(dl, dlopen)
LIBS_save="$LIBS"
AC_CHECK_LIB(crypto, X509_free)
AC_CHECK_LIB(ssl, SSL_has_matching_session_id,, [with_openssl=no])
AC_CHECK_LIB(ssl, POLICY_MAPPING_new,, [with_openssl_policy_mapping=no])
if test "$with_openssl_policy_mapping" != "no"; then
AC_DEFINE([HAVE_OPENSSL_POLICY_MAPPING], [1],
[Whether libssl has the POLICY_MAPPING features (0.9.8 and up)])
fi
LIBS="$LIBS_save"
if test "$with_openssl" != "no"; then
LIBS_SSL="-lssl -lcrypto"
fi
fi
# readline
if test "$with_readline" != "no"; then
AC_CHECK_HEADERS(readline/readline.h,, [with_readline=no])
AC_CHECK_LIB(readline, readline,, [with_readline=no])
fi
# pam
if test "$with_pam" != "no"; then
AC_CHECK_HEADERS(security/pam_appl.h,, [with_pam=no])
LIBS_save="$LIBS"
AC_CHECK_LIB(pam, pam_start,, [with_pam=no])
AC_MSG_CHECKING(for sane PAM implementation)
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
[#include "confdefs.h"
#if HAVE_SECURITY_PAM_APPL_H
# include <security/pam_appl.h>
#endif
/* noconv: null PAM conversation function */
int noconv(int num_msg, const struct pam_message **msgm,
struct pam_response **response, void *userdata)
{
// if you need to ask things, it won't work
return PAM_CONV_ERR;
}
int main()
{
struct pam_conv c;
c.conv = noconv;
return 0;
}
])],
[AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_BROKEN_PAM], [0])],
[AC_MSG_RESULT([no])
AC_DEFINE([HAVE_BROKEN_PAM], [1],
[Solaris has a broken PAM implementation])])
LIBS="$LIBS_save"
if test "$with_pam" != "no" -a "$HAVE_BROKEN_PAM" != "1"; then
LIBS_PAM=-lpam
fi
fi
# qt
if test "$with_qt" != "no"; then
test "$with_qt" = yes && with_qt=
AC_CACHE_CHECK([for Qt], [wv_cv_with_qt], [
wv_cv_with_qt=no
CPPFLAGS_save="$CPPFLAGS"
LDFLAGS_save="$LDFLAGS"
LIBS_save="$LIBS"
for wv_qtdir in $with_qt $QTDIR $QT_SEARCH_PATH $(pkg-config --variable=prefix qt-mt); do
eval wv_qtdir="$wv_qtdir"
CPPFLAGS="$CPPFLAGS_save -I$wv_qtdir/include -I$wv_qtdir/include/qt3"
LDFLAGS="$LDFLAGS_save -L$wv_qtdir/lib"
LIBS="$LIBS_save -lqt-mt"
AC_TRY_LINK([#include <qstring.h>],
[QString x("hello"); return 0; ],
[wv_cv_with_qt=$wv_qtdir; break])
done
CPPFLAGS="$CPPFLAGS_save"
LDFLAGS="$LDFLAGS_save"
LIBS="$LIBS_save"
])
with_qt=$wv_cv_with_qt
if test "$with_qt" != no; then
WV_APPEND(CPPFLAGS, -I$with_qt/include -I$with_qt/include/qt3)
if test "$wv_qtdir" != "/usr" ; then
# never explicitly include /usr/lib
WV_APPEND(LDFLAGS, -L$with_qt/lib)
fi
WV_APPEND(LIBS_QT, -lqt-mt)
fi
AC_PATH_PROG(MOC, moc, [moc not found], $with_qt/bin)
fi
# valgrind
if test "$with_valgrind" != "no"; then
AC_CHECK_PROG(VALGRIND, valgrind, valgrind)
AC_CHECK_HEADERS(valgrind/memcheck.h)
fi
# zlib
if test "$with_zlib" != "no"; then
AC_CHECK_HEADERS(zlib.h,, [with_zlib=no])
AC_CHECK_LIB(z, compress,, [with_zlib=no])
fi
# Find out whether TR1 is available.
CPPFLAGS_save=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -stdlib=libstdc++"
AC_CHECK_HEADERS([tr1/utility],
[LDFLAGS="$LDFLAGS -stdlib=libstdc++"],
[CPPFLAGS="$CPPFLAGS_save"])
AC_CHECK_HEADERS(tr1/functional)
# check for missing packages
missing_required=
missing_devel=
if test "$with_dbus" = "no"; then
AC_MSG_WARN([DBUS is missing.])
missing_devel=yes
fi
if test "$with_pam" = "no"; then
AC_MSG_WARN([PAM is missing.])
missing_devel=yes
fi
if test "$with_qt" = "no"; then
AC_MSG_WARN([Qt is missing.])
missing_devel=yes
fi
if test "$VALGRIND" = ""; then
AC_MSG_WARN([Valgrind is missing.])
fi
if test "$with_openssl" = "no"; then
AC_MSG_WARN([OpenSSL is missing.])
missing_required="$missing_required OpenSSL>=0.9.7"
fi
if test "$with_readline" = "no"; then
AC_MSG_WARN([readline is missing.])
fi
if test "$with_zlib" = "no"; then
AC_MSG_WARN([zlib is missing.])
missing_required="$missing_required zlib"
fi
if test "$ac_cv_header_tr1_functional" != "yes"; then
AC_MSG_WARN([tr1/functional is missing.])
missing_required="$missing_required tr1/functional"
fi
if test -n "$missing_required"; then
AC_MSG_ERROR([Required dependencies missing:$missing_required])
fi
if test "$VALGRIND" != ""; then
VALGRIND="valgrind --tool=memcheck --leak-check=yes --num-callers=10"
if valgrind --help | grep log-file >/dev/null; then
VALGRIND="$VALGRIND --log-file=valgrind.log"
else
VALGRIND="$VALGRIND --logfile=valgrind.log"
fi
fi
# Compiler is always posix if invoking this configure script
COMPILER_STANDARD=posix
AC_SUBST(SO_VERSION)
AC_SUBST(USE_WVSTREAMS_ARGP)
AC_SUBST(enable_debug)
AC_SUBST(enable_optimization)
AC_SUBST(enable_resolver_fork)
AC_SUBST(enable_delete_detector)
AC_SUBST(enable_warnings)
AC_SUBST(with_dbus)
AC_SUBST(with_openssl)
AC_SUBST(with_openssl_policy_mapping)
AC_SUBST(with_pam)
AC_SUBST(with_readline)
AC_SUBST(with_qt)
AC_SUBST(with_zlib)
AC_SUBST(LIBS_DBUS)
AC_SUBST(LIBS_QT)
AC_SUBST(LIBS_PAM)
AC_SUBST(LIBS_SSL)
AC_SUBST(ac_libs)
AC_SUBST(COMPILER_STANDARD)
AC_SUBST(WVSRCDIR)
AC_DEFINE_UNQUOTED([VERBOSE_PACKAGE_VERSION],["$PACKAGE_VERSION$WEAVER_BUILD_INFO"],[Verbose package version])
AC_CONFIG_FILES(_config.od)
AC_CONFIG_FILES([pkgconfig/libuniconf.pc
pkgconfig/libuniconf-uninstalled.pc
pkgconfig/libwvbase.pc
pkgconfig/libwvbase-uninstalled.pc
pkgconfig/libwvdbus.pc
pkgconfig/libwvdbus-uninstalled.pc
pkgconfig/libwvqt.pc
pkgconfig/libwvqt-uninstalled.pc
pkgconfig/libwvstreams.pc
pkgconfig/libwvstreams-uninstalled.pc
pkgconfig/libwvutils.pc
pkgconfig/libwvutils-uninstalled.pc
pkgconfig/libwvtest.pc
pkgconfig/libwvtest-uninstalled.pc])
AC_CONFIG_FILES(default.do)
AC_CONFIG_HEADERS(_wvautoconf.h)
AC_OUTPUT
# Now convert PACKAGE_* macros into WVPACKAGE_* in _wvautoconf.h
sed 's,\(\#define.*\)PACKAGE,\1WVPACKAGE,' _wvautoconf.h > _wvautoconf.h.new
mv _wvautoconf.h.new _wvautoconf.h