1dnl $Id: configure.ac 27245 2011-10-20 22:55:29Z androsyn $ 2dnl Process this file with autoconf to produce a configure script. 3 4dnl TODO: clean up all the OpenSSL and shared module checking stuff; 5dnl the most major changes have already been made and it looks like 6dnl said functions need to be just about as complex as they already are. 7 8AC_PREREQ(2.63) 9AUTOMAKE_OPTIONS = 1.10 10dnl Sneaky way to get an Id tag into the configure script 11AC_COPYRIGHT([$Id: configure.ac 27245 2011-10-20 22:55:29Z androsyn $]) 12AC_INIT([ircd-ratbox],[devel]) 13AM_INIT_AUTOMAKE 14 15AM_CONFIG_HEADER(include/setup.h) 16 17AC_PREFIX_DEFAULT(/usr/local/ircd) 18AC_GNU_SOURCE 19 20dnl Checks for programs. 21AC_PATH_PROG(CP, cp) 22AC_PATH_PROG(MV, mv) 23AC_PATH_PROG(RB_RM, rm) 24 25AC_PROG_CC_C99 26 27if test x"$ac_cv_prog_cc_c99" = "xno"; then 28 AC_ERROR([ircd-ratbox requires a C99 capable compiler]) 29fi 30 31 32AM_PROG_LEX 33 34AC_PROG_INSTALL 35AC_PROG_EGREP 36if test "$enable_static" = "yes"; then 37 AM_DISABLE_SHARED 38 AM_ENABLE_STATIC 39 AC_DEFINE([STATIC_MODULES], 1, [Define to 1 if dynamic modules cant be used.]) 40else 41 enable_static="no" 42fi 43 44F77=no 45GCJ=no 46 47AC_LIBLTDL_CONVENIENCE 48AC_SUBST(INCLTDL) 49AC_SUBST(LIBLTDL) 50AC_LIBTOOL_DLOPEN 51AM_PROG_CC_C_O 52AM_DISABLE_STATIC 53AM_ENABLE_SHARED 54AM_MAINTAINER_MODE 55 56AC_ISC_POSIX 57AC_C_INLINE 58AC_PROG_GCC_TRADITIONAL 59AC_PROG_MAKE_SET 60AC_PROG_INSTALL 61 62srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` 63 64# We pase INSTALL explicitly to sub-makes. Make sure that it is not 65# a relative path. 66if test "$INSTALL" = "${srcdir}/install-sh -c"; then 67 INSTALL="${srcpwd}/install-sh -c" 68fi 69 70AC_PROG_YACC 71AC_LANG(C) 72 73AM_CONDITIONAL([STATIC_MODULES], test "$enable_static" = "yes") 74AC_PROG_LIBTOOL 75 76GCC_STACK_PROTECT_CC 77 78 79cc_accepts_flag() 80{ 81 cc_accepts_flag_CFLAGS="$CFLAGS" 82 CFLAGS="$*" 83 AC_MSG_CHECKING([whether $CC accepts $@]) 84 AC_COMPILE_IFELSE([int main(){return 0;}] , 85 [RC=0; AC_MSG_RESULT([yes])], 86 [RC=1; AC_MSG_RESULT([no])]) 87 CFLAGS="$cc_accepts_flag_CFLAGS" 88 return $RC 89} 90 91 92if cc_accepts_flag -fno-strict-aliasing; then 93 CFLAGS="$CFLAGS -fno-strict-aliasing" 94fi 95 96WARNLIST=" 97 all 98 cast-qual 99 missing-declarations 100 missing-prototypes 101 nested-externs 102 shadow 103 write-strings 104 no-unused 105 unused-function 106 unused-variable" 107 108for x in $WARNLIST; do 109 if cc_accepts_flag -W$x; then 110 WARNFLAGS="$WARNFLAGS -W$x"; 111 fi 112done 113 114LIBTOOL="$LIBTOOL --silent" 115 116AC_CONFIG_SUBDIRS(libltdl libratbox) 117 118case "$host_os" in 119*cygwin*) 120 AC_DEFINE_UNQUOTED(CYGWIN,1,[This is a Cygwin system]) 121 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system]) 122 ;; 123*mingw*) 124 AC_DEFINE_UNQUOTED(MINGW,1,[This is a MinGW system]) 125 AC_DEFINE_UNQUOTED(WINDOWS,1,[This is a Windows system]) 126 AC_CHECK_HEADER(winsock2.h, , [AC_MSG_ERROR([** MinGW and no winsock2.h. I give up.])]) 127 LIBS="$LIBS -lws2_32 -liphlpapi" 128 is_mingw="yes" 129 ;; 130*) 131 ;; 132esac 133 134AM_CONDITIONAL([MINGW], [test "$is_mingw" = "yes"]) 135 136if test "$LEX" != flex; then 137 LEX="$SHELL $missing_dir/missing flex" 138 AC_SUBST(LEX_OUTPUT_ROOT, lex.yy) 139 AC_SUBST(LEXLIB, '') 140fi 141 142# backwards support for IRC_CFLAGS 143CFLAGS="$IRC_CFLAGS $CFLAGS" 144 145dnl Checks for header files. 146AC_HEADER_STDC 147 148AC_HEADER_SYS_WAIT 149AC_HEADER_DIRENT 150 151AC_CHECK_HEADERS([sys/types.h sys/resource.h sys/param.h sys/stat.h sys/socket.h netinet/in.h arpa/inet.h errno.h stddef.h ]) 152AC_HEADER_TIME 153 154AC_CHECK_FUNCS([snprintf lstat stat]) 155 156dnl Networking Functions 157dnl ==================== 158 159AC_SEARCH_LIBS(socket, [socket],,) 160 161dnl this gets passed on to the libratbox configure 162AC_ARG_ENABLE(ipv6,AC_HELP_STRING([--disable-ipv6],[Disable IPv6 support (not recommended)]),[ipv6=$enableval],[ipv6=yes]) 163 164 165dnl See whether we can include both string.h and strings.h. 166AC_CACHE_CHECK([whether string.h and strings.h may both be included], 167gcc_cv_header_string, 168[ 169 AC_COMPILE_IFELSE( 170 [#include <string.h> 171 #include <strings.h>], 172 [gcc_cv_header_string=yes], 173 [gcc_cv_header_string=no]) 174]) 175 176if test "$gcc_cv_header_string" = "yes"; then 177 AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h]) 178fi 179 180AC_C_BIGENDIAN 181 182dnl Check for stdarg.h - if we can't find it, halt configure 183AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - ircd-ratbox will not compile without it **])]) 184 185AC_FUNC_ALLOCA 186 187dnl Specialized functions checks 188dnl ============================ 189 190 191dnl OpenSSL support 192AC_MSG_CHECKING(for OpenSSL) 193AC_ARG_ENABLE(openssl, 194[AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).]) 195AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])], 196[cf_enable_openssl=$enableval], 197[cf_enable_openssl="auto"]) 198 199if test "$cf_enable_openssl" != "no" ; then 200 cf_openssl_basedir="" 201 if test "$cf_enable_openssl" != "auto" && 202 test "$cf_enable_openssl" != "yes" ; then 203 dnl Support for --enable-openssl=/some/place 204 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" 205 else 206 dnl Do the auto-probe here. Check some common directory paths. 207 for dirs in /usr/local/ssl /usr/pkg /usr/local \ 208 /usr/local/openssl ; do 209 if test -f "${dirs}/include/openssl/opensslv.h" ; then 210 cf_openssl_basedir="${dirs}" 211 break 212 fi 213 done 214 unset dirs 215 fi 216 dnl Now check cf_openssl_found to see if we found anything. 217 if test ! -z "$cf_openssl_basedir"; then 218 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then 219 SSL_INCLUDES="-I${cf_openssl_basedir}/include" 220 SSL_LIBS="-L${cf_openssl_basedir}/lib $lt_cv_dlopen_libs" 221 else 222 dnl OpenSSL wasn't found in the directory specified. Naughty 223 dnl administrator... 224 cf_openssl_basedir="" 225 fi 226 else 227 dnl Check for stock FreeBSD 4.x and 5.x systems, since their files 228 dnl are in /usr/include and /usr/lib. In this case, we don't want to 229 dnl change INCLUDES or LIBS, but still want to enable OpenSSL. 230 dnl We can't do this check above, because some people want two versions 231 dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl) 232 dnl and they want /usr/local/ssl to have preference. 233 if test -f "/usr/include/openssl/opensslv.h" ; then 234 cf_openssl_basedir="/usr" 235 fi 236 fi 237 238 dnl If we have a basedir defined, then everything is okay. Otherwise, 239 dnl we have a problem. 240 if test ! -z "$cf_openssl_basedir"; then 241 AC_MSG_RESULT($cf_openssl_basedir) 242 cf_enable_openssl="yes" 243 else 244 AC_MSG_RESULT([not found. Specify a correct path?]) 245 cf_enable_openssl="no" 246 fi 247 unset cf_openssl_basedir 248else 249 dnl If --disable-openssl was specified 250 AC_MSG_RESULT(disabled) 251fi 252 253save_CPPFLAGS="$CPPFLAGS" 254CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" 255save_LIBS="$LIBS" 256LIBS="$LIBS $SSL_LIBS" 257 258 259 260 261CPPFLAGS="$CPPFLAGS $SSL_LIBS" 262AC_CHECK_LIB(crypto, RSA_free, 263 [SSL_LIBS="$SSL_LIBS -lcrypto $lt_cv_dlopen_libs"], 264 [cf_enable_openssl=no] 265) 266 267if test "$cf_enable_openssl" != no; then 268 AC_DEFINE(USE_CHALLENGE, 1, [Define to enable CHALLENGE support, requires OpenSSL]) 269fi 270 271CPPFLAGS="$save_CPPFLAGS" 272LIBS="$save_LIBS" 273 274dnl End OpenSSL detection 275 276ac_cv_build_sqlite3=no 277 278AC_CHECK_SQLITE3 279 280 281if test x"$ac_sqlite3" != xyes; then 282 ac_cv_build_sqlite3=yes 283 SQLITE_SUBDIR=sqlite3 284 AC_SUBST(SQLITE_SUBDIR) 285 SQLITE3_CFLAGS="-Isqlite3" 286 save_LIBS=$LIBS 287 AC_SEARCH_LIBS(fdatasync, [rt],,) 288 FDATASYNCLIB=$ac_cv_search_fdatasync 289 LIBS=$save_LIBS 290 291 if test "$FDATASYNCLIB" = "none required"; then 292 unset FDATASYNCLIB 293 fi 294 295 if test "$FDATASYNCLIB" = "no"; then 296 unset FDATASYNCLIB 297 fi 298 299 SQLITE3_LIBS="$FDATASYNCLIB sqlite3/libsqlite3.a" 300 AC_SUBST(SQLITE3_LIBS, $SQLITE3_LIBS) 301 302fi 303 304dnl AC_SUBST(SQLITE3_LIBS, $SQLITE3_LIBS) 305dnl AC_SUBST(SQLITE3_CFLAGS, $SQLITE3_CFLAGS) 306 307AM_CONDITIONAL([BUILD_SQLITE], [test "$ac_cv_build_sqlite3" = yes]) 308 309 310 311dnl Specialized functions and libraries 312dnl =================================== 313 314AC_ARG_WITH(zlib-path, 315AC_HELP_STRING([--with-zlib-path=DIR],[Path to libz.so for ziplinks support.]), 316[LIBS="$LIBS -L$withval"],) 317 318AC_ARG_ENABLE(zlib, 319AC_HELP_STRING([--disable-zlib],[Disable ziplinks support]), 320[zlib=$enableval],[zlib=yes]) 321 322if test "$zlib" = yes; then 323 324AC_CHECK_HEADER(zlib.h, [ 325 AC_CHECK_LIB(z, zlibVersion, 326 [ 327 AC_SUBST(ZLIB_LD, -lz) 328 AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if zlib (-lz) is available.]) 329 ], zlib=no) 330], zlib=no) 331 332fi 333 334dnl ********************************************************************** 335dnl Check for --with-confdir 336dnl ********************************************************************** 337 338AC_MSG_CHECKING([whether to modify confdir]) 339AC_ARG_WITH(confdir, 340AC_HELP_STRING([--with-confdir=DIR], 341 [Directory to install config files.]), 342 [ confdir=`echo $withval | sed 's/\/$//'` 343 AC_MSG_RESULT(yes) 344 AC_DEFINE_DIR(ETC_DIR, confdir, [Prefix where config files are installed.]) 345 AC_SUBST_DIR([confdir]) ], 346 [ confdir='${prefix}/etc' 347 AC_MSG_RESULT(no) 348 AC_DEFINE_DIR(ETC_DIR, confdir, [Prefix where config files are installed.]) 349 AC_SUBST_DIR([confdir])] 350) 351 352dnl ********************************************************************** 353dnl Check for --with-logdir 354dnl ********************************************************************** 355 356AC_MSG_CHECKING([whether to modify logdir]) 357AC_ARG_WITH(logdir, 358AC_HELP_STRING([--with-logdir=DIR], 359 [Directory where to write logfiles.]), 360 [ logdir=`echo $withval | sed 's/\/$//'` 361 AC_MSG_RESULT(yes) 362 AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.]) 363 AC_SUBST_DIR([logdir]) ], 364 [ logdir='${prefix}/logs' 365 AC_MSG_RESULT(no) 366 AC_DEFINE_DIR(LOG_DIR, logdir, [Prefix where to write logfiles.]) 367 AC_SUBST_DIR([logdir])] 368) 369 370dnl ********************************************************************** 371dnl Check for --with-helpdir 372dnl ********************************************************************** 373 374AC_MSG_CHECKING([whether to modify helpdir]) 375AC_ARG_WITH(helpdir, 376AC_HELP_STRING([--with-helpdir=DIR], 377 [Directory to install help files.]), 378 [ helpdir=`echo $withval | sed 's/\/$//'` 379 AC_MSG_RESULT(yes) 380 AC_DEFINE_DIR(HELP_DIR, helpdir, [Prefix where help files are installed.]) 381 AC_SUBST_DIR([helpdir]) ], 382 [ helpdir='${prefix}/help' 383 AC_MSG_RESULT(no) 384 AC_DEFINE_DIR(HELP_DIR, helpdir, [Prefix where help file are installed.]) 385 AC_SUBST_DIR([helpdir])] 386) 387 388dnl ********************************************************************** 389dnl Check for --with-moduledir 390dnl ********************************************************************** 391 392AC_MSG_CHECKING([whether to modify moduledir]) 393AC_ARG_WITH(moduledir, 394AC_HELP_STRING([--with-moduledir=DIR], 395 [Directory to install modules.]), 396 [ moduledir=`echo $withval | sed 's/\/$//'` 397 AC_MSG_RESULT(yes) 398 AC_DEFINE_DIR(MODULE_DIR, moduledir, [Prefix where modules are installed.]) 399 AC_SUBST_DIR([moduledir]) ], 400 [ moduledir='${prefix}/modules' 401 AC_MSG_RESULT(no) 402 AC_DEFINE_DIR(MODULE_DIR, moduledir, [Prefix where modules are installed.]) 403 AC_SUBST_DIR([moduledir])] 404) 405 406dnl Debug-related options 407dnl ===================== 408 409AC_ARG_ENABLE(assert, 410AC_HELP_STRING([--enable-assert],[Enable assert(). Choose between soft(warnings) and hard(aborts the daemon)]), 411[assert=$enableval], [assert=no]) 412 413if test "$assert" = no; then 414 AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.]) 415elif test "$assert" = soft; then 416 AC_DEFINE(SOFT_ASSERT, 1, [Define this to enable soft asserts.]) 417 AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.]) 418elif test "$assert" = yes; then 419 assert = "hard"; 420fi 421 422AC_MSG_CHECKING(if you want IO Debugging hooks) 423AC_ARG_ENABLE(iodebug, 424AC_HELP_STRING([--enable-iodebug],[Enable IO Debugging hooks]), 425[iodebug=$enableval], [iodebug=no]) 426 427if test "$iodebug" = yes; then 428 AC_DEFINE(USE_IODEBUG_HOOKS, 1, [Define this to enable IO Debug hooks.]) 429 AC_MSG_RESULT(yes) 430else 431 AC_MSG_RESULT(no) 432fi 433 434 435AC_MSG_CHECKING(if you want to do a profile build) 436AC_ARG_ENABLE(profile, 437AC_HELP_STRING([--enable-profile],[Enable profiling]), 438[profile=$enableval], [profile=no]) 439 440if test "$profile" = yes; then 441 if test "$ac_cv_c_compiler_gnu" = yes; then 442 CFLAGS="$CFLAGS -pg -static" 443 AC_MSG_RESULT([yes, adding -pg -static]) 444 AC_DEFINE(RATBOX_PROFILE, 1, [Defined to mark profiling is enabled]) 445 else 446 AC_MSG_RESULT([no, profile builds only work with gcc]) 447 fi 448else 449 AC_MSG_RESULT(no) 450fi 451 452dnl Server Tweaks 453dnl ============= 454 455AC_ARG_ENABLE(services, 456AC_HELP_STRING([--enable-services],[Enable ratbox-services compatibility code.]), 457[ratbox_services=$enableval], [ratbox_services=no]) 458 459M_SERVICES="" 460 461if test "x$ratbox_services" = "xyes"; then 462 AC_DEFINE([ENABLE_SERVICES], 1, [ratbox-services compatibility code]) 463 M_SERVICES="m_services.la" 464fi 465 466AM_CONDITIONAL([ENABLE_SERVICES], [test x"$M_SERVICES" != "x"]) 467 468AC_ARG_ENABLE(small-net, 469AC_HELP_STRING([--enable-small-net],[Enable small network support.]), 470[small_net=$enableval], [small_net=no]) 471 472if test "$small_net" = yes; then 473dnl AC_DEFINE([HASHSIZE], 4096, [Max number of buckets in hash tables.]) 474 AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.]) 475 AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.]) 476 AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.]) 477 AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.]) 478 AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.]) 479 AC_DEFINE([USER_HEAP_SIZE], 128, [Size of the user heap.]) 480 AC_DEFINE([DNODE_HEAP_SIZE], 512, [Size of the dlink_node heap.]) 481 AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.]) 482 AC_DEFINE([LINEBUF_HEAP_SIZE], 128, [Size of the linebuf heap.]) 483 AC_DEFINE([MEMBER_HEAP_SIZE], 256, [Sizeof member heap.]) 484 AC_DEFINE([ND_HEAP_SIZE], 128, [Size of the nick delay heap.]) 485 AC_DEFINE([CONFITEM_HEAP_SIZE], 128, [Size of the confitem heap.]) 486 AC_DEFINE([MONITOR_HEAP_SIZE], 128, [Size of the monitor heap.]) 487 AC_DEFINE([AUTH_HEAP_SIZE], 128, [Size of the auth heap.]) 488 AC_DEFINE([FD_HEAP_SIZE], 128, [Size of fd heap.]) 489 AC_DEFINE([AWAY_HEAP_SIZE], 128, [Size of away heap.]) 490else 491dnl These settings are for a large network like efnet..they will use lots of memory 492dnl so enable small net unless you really need this much support 493 AC_DEFINE([NICKNAMEHISTORYLENGTH], 30000, [Size of the WHOWAS array.]) 494 AC_DEFINE([CHANNEL_HEAP_SIZE], 8192, [Size of the channel heap.]) 495 AC_DEFINE([BAN_HEAP_SIZE], 4096, [Size of the ban heap.]) 496 AC_DEFINE([CLIENT_HEAP_SIZE], 8192, [Size of the client heap.]) 497 AC_DEFINE([LCLIENT_HEAP_SIZE], 1024, [Size of the local client heap.]) 498 AC_DEFINE([USER_HEAP_SIZE], 8192, [Size of the user heap.]) 499 AC_DEFINE([DNODE_HEAP_SIZE], 8192, [Size of the dlink_node heap.]) 500 AC_DEFINE([TOPIC_HEAP_SIZE], 4096, [Size of the topic heap.]) 501 AC_DEFINE([LINEBUF_HEAP_SIZE], 2048, [Size of the linebuf heap.]) 502 AC_DEFINE([MEMBER_HEAP_SIZE], 32768, [Sizeof member heap.]) 503 AC_DEFINE([ND_HEAP_SIZE], 512, [Size of the nick delay heap.]) 504 AC_DEFINE([CONFITEM_HEAP_SIZE], 1024, [Size of the confitem heap.]) 505 AC_DEFINE([MONITOR_HEAP_SIZE], 1024, [Size of the monitor heap.]) 506 AC_DEFINE([AUTH_HEAP_SIZE], 256, [Size of the auth heap.]) 507 AC_DEFINE([FD_HEAP_SIZE], 1024, [Size of fd heap.]) 508 AC_DEFINE([AWAY_HEAP_SIZE], 512, [Size of away heap.]) 509 510fi 511 512AC_ARG_WITH(nicklen, 513AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 9, max 50)]), 514[ 515 if ! expr "$withval" + 0 >/dev/null 2>&1; then 516 AC_ERROR([NICKLEN must be a numeric value]) 517 fi 518 if test $withval -ge 50; then 519 NICKLEN=50 520 AC_MSG_WARN([NICKLEN has a hard limit of 50. Setting NICKLEN=50]) 521 else 522 NICKLEN="$withval" 523 fi 524], [NICKLEN=9]) 525 526AC_DEFINE_UNQUOTED(NICKLEN, (${NICKLEN}+1), [Nickname length]) 527AC_DEFINE_UNQUOTED(RATBOX_CONFIGURE_OPTS, "$ac_configure_args", [configure arguments]) 528 529 530AC_SUBST(SSL_INCLUDES) 531AC_SUBST(SSL_LIBS) 532 533AC_SUBST(LDFLAGS) 534AC_SUBST(PICFLAGS) 535AC_SUBST(CFLAGS) 536AC_SUBST(SEDOBJ) 537AC_SUBST(WARNFLAGS) 538 539if test "$prefix" = "NONE"; then 540 AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$ac_default_prefix", [Prefix where the ircd is installed.]) 541 542else 543 544dnl Don't get bitten by Cygwin's stupidity if the user specified 545dnl a custom prefix with a trailing slash 546 547 prefix=`echo $prefix | sed 's/\/$//'` 548 AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$prefix", [Prefix where the ircd is installed.]) 549 550fi 551 552if test "x$libexecdir" = "xNONE"; then 553 rb_cv_libexecdir=$ac_default_libexecdir 554else 555 rb_cv_libexecdir=$libexecdir 556fi 557 558libexecdir=`eval "echo ${rb_cv_libexecdir}/ircd-ratbox"` 559AC_DEFINE_DIR(LIBEXEC_DIR, libexecdir, [Prefix where to install non-user executables.]) 560 561dnl lets see what libtool thinks our suffix is... 562AC_MSG_CHECKING([for shared library suffix]) 563dnl this whole thing is a big hack... 564module=yes 565eval SHLIBEXT=\"$shrext_cmds\" 566AC_MSG_RESULT($SHLIBEXT) 567AC_SUBST(SHLIBEXT,$SHLIBEXT) 568AC_SUBST(LT_OBJDIR,$lt_cv_objdir) 569AC_DEFINE_UNQUOTED(SHLIBEXT,"$SHLIBEXT", [Extension that shared libs use]) 570 571AC_SUBST(IRCD_PREFIX) 572 573disable_backups=n 574AC_ARG_ENABLE(backups,,disable_backups=y) 575AM_CONDITIONAL([DISABLE_BACKUPS], [test x"$disable_backups" = "xy"]) 576 577 578AC_CONFIG_FILES( \ 579 Makefile \ 580 bandb/Makefile \ 581 bandb/sqlite3/Makefile \ 582 ssld/Makefile \ 583 resolver/Makefile \ 584 contrib/Makefile \ 585 tools/Makefile \ 586 doc/Makefile \ 587 help/Makefile \ 588 modules/Makefile \ 589 src/Makefile \ 590 install-mod.sh 591) 592 593AC_OUTPUT 594 595dnl Make it look sexay! 596 597echo 598echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" 599echo 600 601echo "Installing into: $prefix" 602 603echo "Ziplinks ....................... $zlib" 604 605echo "OpenSSL ........................ $cf_enable_openssl" 606 607tmpresult=shared 608 609if test "x$enable_static" = "xyes"; then 610 tmpresult=static 611fi 612 613echo "Modules ........................ $tmpresult" 614echo "IO Debugging hooks ............. $iodebug" 615echo "Assert debugging ............... $assert" 616echo "Small network .................. $small_net" 617echo "ratbox-services compatibility .. $ratbox_services" 618echo 619echo "Configured limits:" 620echo "NICKLEN ................. $NICKLEN" 621echo 622 623