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 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT
AC_CONFIG_SRCDIR([src])
AC_PREREQ(2.53)
AC_CANONICAL_TARGET([])
libprelude_major=0
libprelude_minor=9
libprelude_micro=7
libprelude_patchlevel=.2
dnl version and release information
libprelude_version=$libprelude_major.$libprelude_minor.$libprelude_micro$libprelude_patchlevel
dnl library soname
dnl check http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91
libprelude_current=7
libprelude_revision=3
libprelude_age=5
libprelude_soname=$libprelude_current:$libprelude_revision:$libprelude_age
AC_SUBST(libprelude_soname)
AM_INIT_AUTOMAKE(libprelude, $libprelude_version)
AC_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
dnl Check for GNUlib
# for prelude-config.h generation
AC_PATH_PROG(GREP, grep, no)
AC_PROG_CC
AC_PROG_CPP
gl_EARLY
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_C_INLINE
AM_PROG_LEX
AC_PROG_YACC
dnl setup libltdl
AC_CONFIG_SUBDIRS(libltdl)
AC_LIBTOOL_DLOPEN
AC_LTDL_DLLIB
AC_LIBLTDL_CONVENIENCE
AM_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_SUBST(CFLAGS)
AC_SUBST(INCLTDL)
AC_SUBST(LIBLTDL)
AC_SUBST(LIBADD_DL)
AC_SYS_LARGEFILE
AX_CREATE_PRELUDE_INTTYPES_H(src/include/prelude-inttypes.h)
dnl Expand $prefix.
if test "x$prefix" = "xNONE"; then
prefix="/usr/local"
fi
if test "x$localstatedir" = "x\${prefix}/var"; then
localstatedir="$prefix/var"
fi
if test "x$sysconfdir" = "x\${prefix}/etc"; then
sysconfdir="$prefix/etc"
fi
if test "x$datadir" = "x\${prefix}/share"; then
datadir="$prefix/share"
fi
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(libprelude_libs)
AC_SUBST(libprelude_cflags)
AC_SUBST(prelude_adduser_libs)
dnl **************************************************
dnl * Check for missing function replacement *
dnl **************************************************
gl_SOURCE_BASE(libmissing)
gl_M4_BASE(libmissing/m4)
gl_INIT
dnl **********************************************************
dnl * Checks to see if ANSI C99 CPP variable __func__ works. *
dnl **********************************************************
dnl From http://lists.gnu.org/archive/html/bug-autoconf/2002-07/msg00028.html
AC_DEFUN([AC_CPP_FUNC], [AC_REQUIRE([AC_PROG_CC_STDC])dnl
AC_CACHE_CHECK([for an ANSI C99-conforming __func__], ac_cv_cpp_func,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[[char *foo = __func__;]])],
[ac_cv_cpp_func=yes],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[[char *foo = __FUNCTION__;]])],
[ac_cv_cpp_func=__FUNCTION__],
[ac_cv_cpp_func=no])])])
if test $ac_cv_cpp_func = yes; then
AC_DEFINE(__PRELUDE_FUNC__, __func__, [Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C.])
elif test $ac_cv_cpp_func = __FUNCTION__; then
AC_DEFINE(__PRELUDE_FUNC__, __FUNCTION__, [Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C.])
elif test $ac_cv_cpp_func = no; then
AC_DEFINE(__PRELUDE_FUNC__, "", [Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C.])
fi
])
AC_CPP_FUNC
dnl **************************************************
dnl * Check for Pthread library *
dnl **************************************************
dnl ***
dnl *** Can we use -Werror -Wmissing-braces for some checks ? ***
AX_CFLAGS_GCC_OPTION(-Werror -Wmissing-braces, buggy_pthread_cppflags)
ACX_PTHREAD(, AC_MSG_ERROR(couldn't find suitable pthread implementation))
dnl The above is from GnuLib.
dnl
# On Solaris and HP-UX, most pthread functions exist also in libc.
# Therefore pthread_in_use() needs to actually try to create a
# thread: pthread_create from libc will fail, whereas
# pthread_create will actually create a thread.
case "$host_os" in
solaris* | hpux*)
AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], 1, [Define if the __prelude_thread_in_use() detection is hard.])
esac
dnl Check whether the compiler and linker support weak declarations.
AC_MSG_CHECKING([whether imported symbols can be declared weak])
gl_have_weak=no
AC_TRY_LINK([
extern void xyzzy ();
#pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes])
AC_MSG_RESULT([$gl_have_weak])
if test $gl_have_weak = yes; then
AC_DEFINE([USE_POSIX_THREADS_WEAK], 1,
[Define if references to the POSIX multithreading library should be made weak.])
fi
dnl Export pthread stuff wide for libmissing and libprelude-error
LIBS="$LIBS $PTHREAD_LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
AC_CHECK_FUNC(pthread_atfork, have_pthread_atfork=yes, have_pthread_atfork=no)
if test x$have_pthread_atfork = xyes; then
AC_DEFINE_UNQUOTED(HAVE_PTHREAD_ATFORK, , Define wether pthread_atfork is available)
fi
AC_CHECK_FUNC(pthread_condattr_setclock, have_pthread_condattr_setclock=yes, have_pthread_condattr_setclock=no)
if test x$have_pthread_condattr_setclock = xyes; then
AC_DEFINE_UNQUOTED(HAVE_PTHREAD_CONDATTR_SETCLOCK, , Define wether pthread_condattr_setclock is available)
fi
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $buggy_pthread_cppflags"
AC_MSG_CHECKING(for buggy pthread mutex initializers)
AC_TRY_COMPILE(
[
#include <pthread.h>
],
[
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
],
compile_ok="yes", compile_ok="no")
CFLAGS="$old_CFLAGS"
if test x$compile_ok = xyes; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes)
buggy_pthread_initializers="yes"
fi
dnl **************************************************
dnl * Check endianess *
dnl **************************************************
AC_C_BIGENDIAN(AC_DEFINE_UNQUOTED(PRELUDE_WORDS_BIGENDIAN, , Byte ordering))
dnl **************************************************
dnl * Check for networking function *
dnl **************************************************
LIBS_bkp=$LIBS
LIBS=""
AC_SEARCH_LIBS(inet_ntoa, socket nsl resolv)
AC_SEARCH_LIBS(socket, socket nsl resolv)
COMMON_LIBS="$LIBS"
LIBS=$LIBS_bkp
dnl **************************************************
dnl * Check for POSIX timer function *
dnl **************************************************
LIBS_bkp=$LIBS
LIBS=""
AC_SEARCH_LIBS(clock_gettime, rt)
COMMON_LIBS="$LIBS"
LIBS=$LIBS_bkp
dnl **************************************************
dnl * Check for poll() *
dnl **************************************************
AC_CHECK_LIB(c, poll, libc_poll=yes)
if test x$libc_poll != xyes; then
dnl SG: Special test for macosx, poll() is provided if libpoll
dnl is installed by the Fink Package Manager http://fink.sf.net/
if test $host_cpu = "powerpc" && test $host_vendor = "apple"; then
dnl save vars
CFLAGS_SAVE=$CFLAGS
LDFLAGS_SAVE=$LDFLAGS
CPPFLAGS_SAVE=$CPPFLAGS
dnl set specific macosx paths (fink)
LDFLAGS="-L/sw/lib"
CFLAGS="-I/sw/include"
CPPFLAGS="-I/sw/include"
AC_CHECK_LIB(poll, poll,
COMMON_LIBS="$COMMON_LIBS -L/sw/lib -lpoll",
AC_MSG_ERROR("Could not find libpoll. Try installing libpoll via the Fink Package Manager http://fink.sourceforge.net/"))
AC_CHECK_HEADER(sys/poll.h,
libprelude_cflags="$libprelude_cflags -I/sw/include",
AC_MSG_ERROR("Could not find sys/poll.h."))
dnl restore vars
CFLAGS=$CFLAGS_SAVE
LDFLAGS=$LDFLAGS_SAVE
CPPFLAGS=$CPPFLAGS_SAVE
dnl poll() not found in libc, let's check in libpoll
else
AC_SEARCH_LIBS(poll, poll, COMMON_LIBS="$COMMON_LIBS -lpoll")
fi
fi
dnl **************************************************
dnl * Check what type to use in place of socklen_t *
dnl **************************************************
AC_PROTOTYPE_ACCEPT
AC_CHECK_TYPES([socklen_t], ,
AC_DEFINE(socklen_t, ACCEPT_ARG3, Define socklen_t to accept third argument type),
[
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h> ])
dnl **************************************************
dnl * Check for GnuTLS. *
dnl **************************************************
AM_PATH_LIBGNUTLS(1.0.17, gnutls=yes, gnutls=no)
if test x$gnutls != xyes; then
AC_MSG_ERROR(libgnutls is required in order to build libprelude.)
fi
old_LIBS=$LIBS
old_CPPFLAGS=$CPPFLAGS
LIBS="$LIBGNUTLS_LIBS"
CPPFLAGS="$LIBGNUTLS_CFLAGS"
AC_CHECK_HEADER(gnutls/gnutls.h, ,
AC_MSG_ERROR("libgnutls development headers are required to build libprelude"))
dnl
dnl Recent GnuTLS version moved SRP function from libgnutls-extra to libgnutls
dnl
AC_CHECK_LIB(gnutls, gnutls_srp_verifier, srp_available=yes, srp_available=no)
LIBS=$old_LIBS
CPPFLAGS=$old_CPPFLAGS
AC_SUBST(PRELUDE_ADDUSER_LIBS)
AC_SUBST(PRELUDE_ADDUSER_CFLAGS)
if test x$srp_available = xno; then
dnl **************************************************
dnl * Check for SRP function in GnuTLS extra. *
dnl **************************************************
AM_PATH_LIBGNUTLS_EXTRA(1.0.17, gnutls_extra=yes, gnutls_extra=no)
if test x$gnutls_extra != xyes; then
AC_MSG_ERROR(libgnutls-extra is required in order to build libprelude.)
fi
old_LIBS=$LIBS
LIBS="$LIBGNUTLS_EXTRA_LIBS"
old_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$LIBGNUTLS_EXTRA_CFLAGS"
AC_CHECK_HEADER(gnutls/extra.h, ,
AC_MSG_ERROR("libgnutls-extra development headers are required to build libprelude"))
AC_CHECK_LIB(gnutls-extra, gnutls_srp_verifier, srp_available=yes, AC_DEFINE_UNQUOTED(GNUTLS_SRP_DISABLED, , Define whether SRP support is disabled))
if test x$srp_available = xyes; then
PRELUDE_ADDUSER_CFLAGS="-DNEED_GNUTLS_EXTRA $LIBGNUTLS_EXTRA_CFLAGS"
PRELUDE_ADDUSER_LIBS="$LIBGNUTLS_EXTRA_LIBS $COMMON_LIBS"
fi
LIBS=$old_LIBS
CPPFLAGS=$old_CPPFLAGS
fi
dnl **************************************************
dnl * Check for Gcrypt. *
dnl **************************************************
AM_PATH_LIBGCRYPT(1:1.1.94,,
AC_MSG_ERROR([[
***
*** libgcrypt was not found. You may want to get it from
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
***
]]))
libprelude_libs="$libprelude_libs $LIBGNUTLS_LIBS $LIBGCRYPT_LIBS $COMMON_LIBS"
dnl **************************************************
dnl * Check for Ipv6. *
dnl **************************************************
AC_CHECK_TYPES([struct sockaddr_in6], have_ipv6_type=yes,, [
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
])
AC_CHECK_DECL(AF_INET6, have_ipv6_def=yes,, [
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
])
if test x$have_ipv6_type = xyes && test x$have_ipv6_def = xyes; then
AC_DEFINE_UNQUOTED(HAVE_IPV6, , Define whether Ipv6 is available on this system)
fi
dnl **************************************************
dnl * Check for variadic macros *
dnl **************************************************
AC_MSG_CHECKING(whether variadic macros are supported)
AC_TRY_COMPILE(
[
#include <stdio.h>
#include <stdarg.h>
#define print_me(...) printf(__VA_ARGS__)
],
[
print_me("test __VA_ARGS__: %s, %d, %d", "a", 0, 1);
return 0;
], have_variadic_macros=yes, have_variadic_macros=no)
if test x$have_variadic_macros = xyes; then
AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(HAVE_VARIADIC_MACROS, 1, [Define whether variadic macros are supported])
else
AC_MSG_RESULT(no)
fi
dnl **************************************************
dnl * Do we need aligned access ? (from tcpdump) *
dnl **************************************************
AC_MSG_CHECKING(if unaligned accesses fail)
AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
[case "$host_cpu" in
# XXX: should also check that they don't do weird things (like on arm)
alpha*|arm*|hp*|mips*|sparc*|ia64)
ac_cv_lbl_unaligned_fail=yes
;;
*)
cat >conftest.c <<EOF
# include <sys/types.h>
# include <sys/wait.h>
# include <stdio.h>
unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
main() {
unsigned int i;
pid_t pid;
int status;
/* avoid "core dumped" message */
pid = fork();
if (pid < 0)
exit(2);
if (pid > 0) {
/* parent */
pid = waitpid(pid, &status, 0);
if (pid < 0)
exit(3);
exit(!WIFEXITED(status));
}
/* child */
i = *(unsigned int *)&a[[1]];
printf("%d\n", i);
exit(0);
}
EOF
${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
conftest.c $LIBS >/dev/null 2>&1
if test ! -x conftest ; then
dnl failed to compile for some reason
ac_cv_lbl_unaligned_fail=yes
else
./conftest >conftest.out
if test ! -s conftest.out ; then
ac_cv_lbl_unaligned_fail=yes
else
ac_cv_lbl_unaligned_fail=no
fi
fi
rm -f conftest* core core.conftest
;;
esac])
AC_MSG_RESULT($ac_cv_lbl_unaligned_fail)
if test $ac_cv_lbl_unaligned_fail = yes ; then
AC_DEFINE_UNQUOTED(PRELUDE_ALIGNED_ACCESS, , Define wether we need to take care with alignment)
fi
dnl ************************************
dnl * va_copy checks (Thanks Glib!) *
dnl ************************************
dnl
dnl we currently check for all three va_copy possibilities, so we get
dnl all results in config.log for bug reports.
AC_CACHE_CHECK([for an implementation of va_copy()],prelude_cv_va_copy,[
AC_LINK_IFELSE([#include <stdarg.h>
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
va_copy (args2, args1);
if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
exit (1);
va_end (args1); va_end (args2);
}
int main() {
f (0, 42);
return 0;
}],
[prelude_cv_va_copy=yes],
[prelude_cv_va_copy=no])
])
AC_CACHE_CHECK([for an implementation of __va_copy()],prelude_cv___va_copy,[
AC_LINK_IFELSE([#include <stdarg.h>
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
__va_copy (args2, args1);
if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
exit (1);
va_end (args1); va_end (args2);
}
int main() {
f (0, 42);
return 0;
}],
[prelude_cv___va_copy=yes],
[prelude_cv___va_copy=no])
])
if test "x$prelude_cv_va_copy" = "xyes"; then
g_va_copy_func=va_copy
else if test "x$prelude_cv___va_copy" = "xyes"; then
g_va_copy_func=__va_copy
fi
fi
if test -n "$g_va_copy_func"; then
AC_DEFINE_UNQUOTED(PRELUDE_VA_COPY,$g_va_copy_func,[A 'va_copy' style function])
fi
AC_CACHE_CHECK([whether va_lists can be copied by value],prelude_cv_va_val_copy,[
AC_TRY_RUN([#include <stdarg.h>
void f (int i, ...) {
va_list args1, args2;
va_start (args1, i);
args2 = args1;
if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
exit (1);
va_end (args1); va_end (args2);
}
int main() {
f (0, 42);
return 0;
}],
[prelude_cv_va_val_copy=yes],
[prelude_cv_va_val_copy=no],
[prelude_cv_va_val_copy=yes])
])
if test "x$prelude_cv_va_val_copy" = "xno"; then
AC_DEFINE(PRELUDE_VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copies as values])
fi
dnl **************************************************
dnl * Swig support *
dnl **************************************************
AC_PATH_PROG(SWIG, swig, no)
AM_CONDITIONAL(HAVE_SWIG, test x$SWIG != xno)
dnl **************************************************
dnl * Perl support *
dnl **************************************************
AC_ARG_ENABLE(perl, [ --enable-perl Enable Perl binding [default=auto]],
enable_perl="$enableval", enable_perl="yes")
if test x$enable_perl = xyes; then
AC_PATH_PROG(PERL, perl, no)
if test x$PERL = xno; then
enable_perl=no
else
perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
AC_CHECK_FILE($perl_includedir/perl.h, enable_perl=yes, enable_perl=no)
fi
fi
AM_CONDITIONAL(HAVE_PERL, test x$enable_perl = xyes)
dnl **************************************************
dnl * Python support *
dnl **************************************************
AC_ARG_ENABLE(python, [ --enable-python Enable Python binding [default=auto]],
enable_python="$enableval", enable_python="yes")
if test x$enable_python = xyes; then
AC_PATH_PROG(PYTHON, python, no)
if test x$PYTHON = xno; then
enable_python=no
else
python_includedir=`$PYTHON -c 'from distutils.sysconfig import get_python_inc
print get_python_inc()'`
AC_CHECK_FILE($python_includedir/Python.h, enable_python=yes, enable_python=no)
fi
fi
AM_CONDITIONAL(HAVE_PYTHON, test x$enable_python = xyes)
dnl **************************************************
dnl * Check for GTK-DOC *
dnl **************************************************
GTK_DOC_CHECK(1.0)
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
dnl Needed for FIONREAD under solaris
AC_CHECK_HEADERS(sys/filio.h)
AC_CHECK_FUNCS(gettimeofday select socket strdup strerror strstr)
prelude_config_dir=$sysconfdir/prelude
prelude_spool_dir=$localstatedir/spool/prelude
prelude_ident_file=$sysconfdir/prelude/sensors.ident
AC_SUBST(prelude_spool_dir)
AC_SUBST(prelude_config_dir)
AC_SUBST(prelude_ident_file)
AX_CFLAGS_GCC_OPTION(-Wall)
AX_CFLAGS_GCC_OPTION(-Wstrict-prototypes)
AX_CFLAGS_GCC_OPTION(-Wmissing-prototypes)
AX_CFLAGS_GCC_OPTION(-Wmissing-declarations)
AX_CFLAGS_GCC_OPTION(-Wbad-function-cast)
AX_CFLAGS_GCC_OPTION(-Wcast-qual)
AX_CFLAGS_GCC_OPTION(-Wcast-align)
AX_CFLAGS_GCC_OPTION(-Wnested-externs)
AX_CFLAGS_GCC_OPTION(-Wunused)
if test x$buggy_pthread_initializers = xyes; then
AX_CFLAGS_GCC_OPTION(-Wno-missing-braces)
fi
AC_CONFIG_FILES([
Makefile
client.conf
global.conf
idmef-client.conf
libprelude-config
libmissing/Makefile
m4/Makefile
src/Makefile
src/libprelude-error/Makefile
src/include/Makefile
src/include/prelude.h
src/include/prelude-inttypes.h
prelude-adduser/Makefile
docs/Makefile
docs/api/Makefile
bindings/Makefile
bindings/perl/Makefile.PL
bindings/python/setup.py
])
AC_CONFIG_COMMANDS([default],[[ chmod +x libprelude-config ]],[[]])
AC_OUTPUT
echo
echo "*** Dumping configuration ***"
echo " - Generate documentation : $enable_gtk_doc"
echo " - Perl binding : $enable_perl"
echo " - Python binding : $enable_python"
|