diff --git a/.gitignore b/.gitignore index 64de514c5..34e3a3e3d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,12 +20,41 @@ config.sub config.guess ltmain.sh .libs +Makefile.in +autom4te.cache compile +config.guess +config.sub +*~ +*.swp +missing +ltmain.sh +ylwrap libtool -src/conf_lexer.c -src/conf_parser.c -src/conf_parser.h +aclocal.m4 +configure depcomp +include/setup.h.in +autom4te.cache +help/opers/Makefile.in +help/users/Makefile.in +include/Makefile.in +include/config.h +include/config.h.in +include/stamp-h1 +install-sh +libltdl +src/ircd_parser.c +src/ircd_parser.h +src/ircd_lexer.c +m4/argz.m4 +m4/libtool.m4 +m4/ltdl.m4 +m4/ltoptions.m4 +m4/ltsugar.m4 +m4/ltversion.m4 +m4/lt~obsolete.m4 + autom4te.cache help/opers/Makefile.in help/users/Makefile.in @@ -33,7 +62,5 @@ include/Makefile.in include/config.h include/config.h.in include/stamp-h1 -libuv/ -modules/core/Makefile.in -tools/encspeed -tools/mkpasswd +.dirstamp +*/*.dSYM diff --git a/Hybrid-team b/AUTHORS similarity index 96% rename from Hybrid-team rename to AUTHORS index e2e854d00..24b49c7cc 100644 --- a/Hybrid-team +++ b/AUTHORS @@ -1,4 +1,4 @@ -$Id$ +$Id: AUTHORS 903 2007-11-04 14:11:03Z michael $ The hybrid team is a group of ircd coders who were frustrated with the instability and all-out "dirtiness" of the EFnet ircd's @@ -27,6 +27,7 @@ The following people have contributed blood, sweat, and/or code to recent releases of Hybrid, in nick alphabetical order: A1kmm, Andrew Miller +Adrian Chadd bane, Dragan Dosen bysin, Ben Kittridge diff --git a/LICENSE b/COPYING similarity index 100% rename from LICENSE rename to COPYING diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..6809188f1 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,10 @@ +MAINTAINERCLEANFILES=aclocal.m4 config.h.in config.h.in~ config.guess config.log config.status config.sub configure install-sh missing mkinstalldirs Makefile.in depcomp compile ltmain.sh COPYING +SUBDIRS=libltdl doc etc help include lib messages modules servlink src + +maintainer-clean-local: + rm -f ${PACKAGE}-${VERSION}.tar.gz + rm -rf libltdl + +install-data-local: + $(INSTALL) -d $(DESTDIR)${localstatedir}/log + $(INSTALL) -d $(DESTDIR)${localstatedir}/run diff --git a/Makefile.in b/Makefile.in deleted file mode 100644 index b3fd38e9e..000000000 --- a/Makefile.in +++ /dev/null @@ -1,87 +0,0 @@ -#************************************************************************ -#* IRC - Internet Relay Chat, Makefile -#* Copyright (C) 1990, Jarkko Oikarinen -#* -#* This program is free software; you can redistribute it and/or modify -#* it under the terms of the GNU General Public License as published by -#* the Free Software Foundation; either version 1, or (at your option) -#* any later version. -#* -#* This program is distributed in the hope that it will be useful, -#* but WITHOUT ANY WARRANTY; without even the implied warranty of -#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -#* GNU General Public License for more details. -#* -#* You should have received a copy of the GNU General Public License -#* along with this program; if not, write to the Free Software -#* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#* -#* $Id$ -#*/ - -RM = @RM@ - -# Default make flags - you may want to uncomment this on a multicpu machine -#MFLAGS = -j 4 -DEPEND_DIRS = lib modules src servlink -BUILD_DIRS = ${DEPEND_DIRS} tools -INSTALL_DIRS = ${BUILD_DIRS} etc doc help -CLEAN_DIRS = ${BUILD_DIRS} contrib -# Anywhere that we can make install, we obviously can rm -f Makefile -DISTCLEAN_DIRS = ${INSTALL_DIRS} contrib messages - -prefix = $(DESTDIR)@prefix@ -datarootdir = $(DESTDIR)@datarootdir@ - -# The make used HAS to set $(MAKE). But then, if we don't do it this -# way, people lose the option to use a 'make' called something other -# than `make.' If it doesn't set $(MAKE), fall back to the old behavior -# by substing SET_MAKE. - -@SET_MAKE@ - -all: build - -build: include/setup.h depend - @for i in $(BUILD_DIRS); do \ - echo "build ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} build || exit; cd ..;\ - done - -clean: - ${RM} -f *~ core rsa_respond.tar rsa_respond.tar.gz - @for i in $(CLEAN_DIRS); do \ - echo "clean ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} clean || exit; cd ..;\ - done - -@if [ -f include/setup.h ] ; then \ - echo "To really restart installation, ${MAKE} distclean" ; \ - fi - -distclean: - ${RM} -f Makefile *~ *.rej *.orig *core - ${RM} -f config.status config.cache config.log - ${RM} -rf autom4te.cache - cd include; ${RM} -f setup.h *~ *.rej *.orig ; cd .. - @for i in $(DISTCLEAN_DIRS); do \ - echo "distclean ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} distclean || exit; cd ..; \ - done - -depend: - @for i in $(DEPEND_DIRS); do \ - echo "depend ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} .depend || exit; cd .. ; \ - done - -install: all - @for i in $(INSTALL_DIRS); do \ - echo "install ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} install || exit; cd ..; \ - done - -include/setup.h: - @sh configure - -# A la Linux kernel config :) -dep: depend diff --git a/NEWS b/NEWS new file mode 100644 index 000000000..3024b4537 --- /dev/null +++ b/NEWS @@ -0,0 +1,148 @@ +-- ircd-hybrid-7.2.4 RELNOTES +o) Fixed occasional core when placing RESVs on channel names +o) Fixed topic desynchronization which sometimes may + happen during netbursts +o) WATCH support implemented. Known from other daemons, such + as Dreamforge and Bahamut. +o) Fixed bug which would cause invalid invisible counts on oper-up in case + operator::umodes and/or general::oper_umodes contains 'invisible' +o) Removed broken LazyLinks +o) Minor code optimizations and cleanups +o) ACCEPT now supports nick!user@host masks +o) Added new 'server' option to listener::flags. Listener with that flag + set may only have server connections. + + +-- ircd-hybrid-7.2.3 RELNOTES +o) Added ircd-italian.lang language file +o) Added -full to etrace +o) Added +C for opers +o) Fixed core in temp channel resv +o) Fixed CHALLENGE to work with user=IP +o) Misc fixes to TESTMASK and TESTLINE +o) Added support for nick masks to TESTMASK +o) Fixed /modlist to show up whether or not a module is resident +o) Fixed command line arguments handling to allow more than one switch +o) Fixed numeric delivery for mixed TS5 target on the other side of a TS6 server. + + +-- ircd-hybrid-7.2.2 RELNOTES +o) Added channel::disable_fake_channels config directive +o) Fixed broken FORCEJOIN (contrib) +o) Added missing documentation for connect::vhost +o) Fixed problem with G-Line voting +o) Fixed "STATS ?" so it doesn't report negative traffic statistics +o) Fixed core in m_mkpasswd.c (contrib) +o) Reduced memory usage for channel members +o) Added general::stats_e_disabled which simply disables "STATS e" + for other operators and administrators +o) Ignore signal SIGXFSZ to prevent the daemon from dying on missconfigured + file size limits +o) Slight optimizations to the block allocator +o) Fixed harmless bug that could result in incorrect bytes sent statistics + in "STATS t" +o) "STATS y|Y" now shows whether a class is active or disabled +o) Added ircd-brazilian_pt.lang language file +o) Misc. ACCEPT fixes. E.g. don't remove an accept record if a client is + changing between equivalent nicknames like 'nick' and 'NiCk'. +o) Minor resolv.conf parser fixes. Added missing support for ';' comments +o) Fixed core on MODRESTART + + +-- ircd-hybrid-7.2.1 RELNOTES +o) Fixed build on SRV4 +o) Fixed problem where ircd would disconnect all SSL connections +o) Added initial CAP support. Additional documentation can be found + in doc/technical +o) Speeded up command parsing +o) Fixed occasional core dump on UN*LINE +o) Fixed bug where particular clients would always receive + "Load is temporarily too heavy" message +o) Improved memory consumption, i.e. memory consumption has + been reduced for remote clients +o) Fixed possible core in case default_cipher_preference directive isn't set +o) Fixed "CHANSERV INVITE" bug with anope services +o) Updated example configuration files to reflect new topicburst flags + directive in connect{} blocks +o) Fixed core if using the operator::umodes directive +o) Don't allow shared k-lines to be set without a valid reason +o) Improved channel ban match processing. This also fixes CIDR bans + + +-- ircd-hybrid-7.2.0 RELNOTES +o) Fixed broken operwall = yes; +o) Added 'umode' directive to oper{}. List of modes to get on /OPER. + This behaves exactly like H6's sixth O line field +o) Fixed a WHOIS bug +o) Fixed bug where we would increase Count.invisi even + if general::invisible_on_connect is turned off +o) Removed invite_ops_only, controlled by paranoid (+p) now +o) Better DDoS protection +o) Fixed va_list bug on amd64 +o) Fixed /dev/poll + + +-- ircd-hybrid-7.2rc1 RELNOTES +o) ircd can dynamically change all its client/fd limits at runtime +o) Added epoll as the primary I/O engine under Linux +o) Local channels will not show up in remote /WHOIS +o) Added hidden_name which allows customized hidden server names +o) Added restrict_channels to define a static channel set +o) Added --disable-gline-voting to disable G-Line votes + for small networks or people who don't want it. +o) Allow accumulating more ip= entries in an exempt{} block +o) Various improvements and bugfixes +o) Make win32 build usable +o) Fixed ban caching bug +o) Cosmetical fixes to TIME +o) Get "KLINE nick" to work with clients that have a spoof +o) Fixed RESV/XLINE bug in conjunction with names that include escaped + characters such as \*, \?, \#. + + +-- ircd-hybrid-7.2beta1 RELNOTES +o) Usermode +G, like +g, but allow messaging from people on common channels +o) Usermode +D - "deaf", don't receive channel messages +o) RXLINE and RKLINE - commands for setting perl compatible regular expression + based K and X lines +o) Join flood is now detected and reported to +b opers +o) Re-added REJECT_HOLD - lock clients for a while before throwing away +o) ping_warning, a class{} option to notify opers before "Ping timeout" +o) New hooking system, modularized: usermodes, iauth, message filtering etc. +o) Network I/O speedups +o) Various cleanups and bugfixes +o) Support for client SSL +o) Support for services (contrib/m_services.c) +o) IP cloaking module (contrib/ip_cloaking.c) +o) Native win32 build +o) The password set in auth::password can now be encrypted +o) Introduced new listen::flags directive. Currently available flags are + 'ssl' and 'hidden'. Please read example.conf for further details + +-------------------------------------------------------------------------------- + +BUGS: Major bugs in this release are listed in BUGS + +BUG REPORTS: If you run this code and encounter problems, you must report + the bug in one of the following ways: + a) By EMAIL to bugs@ircd-hybrid.org + b) On http://forum.ircd-hybrid.org/ + Please include a gdb backtrace and a copy of your setup.h and + ircd.conf with any report (with passwords and other sensitive + information masked). + +DISCUSSION: There is a mailing list for discussion of hybrid issues, + including betas. To subscribe, use this link: + https://lists.ircd-hybrid.org/mailman/listinfo/hybrid + This is the proper place to discuss new features, bugs, etc. Posting here + is much more likely to get something done than ranting on #TZ. + You can also use Hybrid forums at http://forum.ircd-hybrid.org/ + +Questions/comments directed to bugs@ircd-hybrid.org + +Please read doc/whats-new.txt for information about what is in this release + +Other files recommended for reading: BUGS, README.FIRST, INSTALL + +-------------------------------------------------------------------------------- +$Id: NEWS 903 2007-11-04 14:11:03Z michael $ diff --git a/README b/README new file mode 100644 index 000000000..e69de29bb diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 000000000..c26dfc307 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,323 @@ +dnl Inspired by work Copyright (C) 2006 Luca Filipozzi +dnl vim: set fdm=marker sw=2 ts=2 et si: +dnl {{{ ax_check_lib_ipv4 +AC_DEFUN([AX_CHECK_LIB_IPV4],[ + AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])]) + AC_CHECK_FUNCS([inet_aton inet_ntop inet_pton]) + AC_CHECK_TYPES([struct sockaddr_in, struct sockaddr_storage, struct addrinfo],,,[ + #include + #include + #include + ]) + AC_CHECK_MEMBERS([struct sockaddr_in.sin_len],,,[#include ]) +])dnl }}} +dnl {{{ ax_check_lib_ipv6 +AC_DEFUN([AX_CHECK_LIB_IPV6],[ + AC_CHECK_TYPES([struct sockaddr_in6],,[AC_DEFINE([IPV6],[1],[Define to 1 if you have IPv6 support.])],,[#include ]) +])dnl }}} +dnl {{{ ax_check_crypt +AC_DEFUN([AX_CHECK_LIB_CRYPT],[ + AC_SEARCH_LIBS(crypt, [crypt descrypt],,) + AM_CONDITIONAL([HAVE_CRYPT],[test "$ac_cv_search_crypt" = "none required"]) +])dnl }}} +dnl {{{ ax_arg_enable_ioloop_mechanism (FIXME) +AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM],[ + dnl {{{ allow the user to specify desired mechanism + desired_iopoll_mechanism="none" + dnl FIXME need to handle arguments a bit better (see ac_arg_disable_block_alloc) + AC_ARG_ENABLE([kqueue], [AC_HELP_STRING([--enable-kqueue], [Force kqueue usage.])], [desired_iopoll_mechanism="kqueue"]) + AC_ARG_ENABLE([epoll], [AC_HELP_STRING([--enable-epoll], [Force epoll usage.])], [desired_iopoll_mechanism="epoll"]) + AC_ARG_ENABLE([devpoll],[AC_HELP_STRING([--enable-devpoll],[Force devpoll usage.])],[desired_iopoll_mechanism="devpoll"]) + AC_ARG_ENABLE([rtsigio],[AC_HELP_STRING([--enable-rtsigio],[Force rtsigio usage.])],[desired_iopoll_mechanism="rtsigio"]) + AC_ARG_ENABLE([poll], [AC_HELP_STRING([--enable-poll], [Force poll usage.])], [desired_iopoll_mechanism="poll"]) + AC_ARG_ENABLE([select], [AC_HELP_STRING([--enable-select], [Force select usage.])], [desired_iopoll_mechanism="select"]) + dnl }}} + dnl {{{ preamble + AC_MSG_CHECKING([for optimal/desired iopoll mechanism]) + iopoll_mechanism_none=0 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_NONE],[$iopoll_mechanism_none],[no iopoll mechanism]) + dnl }}} + dnl {{{ check for kqueue mechanism support + iopoll_mechanism_kqueue=1 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_KQUEUE],[$iopoll_mechanism_kqueue],[kqueue mechanism]) + AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_FUNC_LINK_TRY([kevent])])],[is_kqueue_mechanism_available="yes"],[is_kqueue_mechanism_available="no"]) + dnl }}} + dnl {{{ check for epoll oechanism support + iopoll_mechanism_epoll=2 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_EPOLL],[$iopoll_mechanism_epoll],[epoll mechanism]) + AC_RUN_IFELSE([AC_LANG_PROGRAM([ +#include +#include +#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) +#if !defined(__NR_epoll_create) +#if defined(__ia64__) +#define __NR_epoll_create 1243 +#elif defined(__x86_64__) +#define __NR_epoll_create 214 +#elif defined(__sparc64__) || defined(__sparc__) +#define __NR_epoll_create 193 +#elif defined(__s390__) || defined(__m68k__) +#define __NR_epoll_create 249 +#elif defined(__ppc64__) || defined(__ppc__) +#define __NR_epoll_create 236 +#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) +#define __NR_epoll_create 224 +#elif defined(__alpha__) +#define __NR_epoll_create 407 +#elif defined(__sh64__) +#define __NR_epoll_create 282 +#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) +#define __NR_epoll_create 254 +#else +#error No system call numbers defined for epoll family. +#endif +#endif +_syscall1(int, epoll_create, int, size) +#endif +main() { return epoll_create(256) == -1 ? 1 : 0; } + ])],[is_epoll_mechanism_available="yes"],[is_epoll_mechanism_available="no"]) + dnl }}} + dnl {{{ check for devpoll mechanism support + iopoll_mechanism_devpoll=3 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_DEVPOLL],[$iopoll_mechanism_devpoll],[devpoll mechanism]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ])],[is_devpoll_mechanism_available="yes"],[is_devpoll_mechanism_available="no"]) + if test "$is_devpoll_mechanism_available" = "yes" ; then + AC_DEFINE([HAVE_DEVPOLL_H],[1],[Define to 1 if you have the header file.]) + fi + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ])],[is_devpoll_mechanism_available="yes"],[is_devpoll_mechanism_available="no"]) + if test "$is_devpoll_mechanism_available" = "yes" ; then + AC_DEFINE([HAVE_SYS_DEVPOLL_H],[1],[Define to 1 if you have the header file.]) + fi + dnl }}} + dnl {{{ check for rtsigio mechanism support + iopoll_mechanism_rtsigio=4 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_RTSIGIO],[$iopoll_mechanism_rtsigio],[rtsigio mechanism]) + AC_RUN_IFELSE([AC_LANG_PROGRAM([ +#include +#ifdef F_SETSIG +main () { return 0; } /* F_SETSIG defined */ +#else +main () { return 1; } /* F_SETSIG not defined */ +#endif + ])],[is_rtsigio_mechanism_available="yes"],[is_rtsigio_mechanism_available="no"]) + dnl }}} + dnl {{{ check for poll mechanism support + iopoll_mechanism_poll=5 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_POLL],[$iopoll_mechanism_poll],[poll mechanism]) + AC_LINK_IFELSE([AC_LANG_FUNC_LINK_TRY([poll])],[is_poll_mechanism_available="yes"],[is_poll_mechanism_available="no"]) + dnl }}} + dnl {{{ check for select mechanism support + iopoll_mechanism_select=6 + AC_DEFINE_UNQUOTED([__IOPOLL_MECHANISM_SELECT],[$iopoll_mechanism_select],[select mechanism]) + AC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_FUNC_LINK_TRY([select])])],[is_select_mechanism_available="yes"],[is_select_mechanism_available="no"]) + dnl }}} + dnl {{{ determine the optimal mechanism + optimal_iopoll_mechanism="none" + for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important + eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" + if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then + optimal_iopoll_mechanism="$mechanism" + break + fi + done + dnl }}} + dnl {{{ select between optimal mechanism and desired mechanism (if specified) + if test "$desired_iopoll_mechanism" = "none" ; then + if test "$optimal_iopoll_mechanism" = "none" ; then + AC_MSG_RESULT([none]) + AC_MSG_ERROR([no iopoll mechanism found!]) + else + selected_iopoll_mechanism=$optimal_iopoll_mechanism + AC_MSG_RESULT([$selected_iopoll_mechanism]) + fi + else + eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" + if test "$is_desired_iopoll_mechanism_available" = "yes" ; then + selected_iopoll_mechanism=$desired_iopoll_mechanism + AC_MSG_RESULT([$selected_iopoll_mechanism]) + else + AC_MSG_RESULT([none]) + AC_MSG_ERROR([desired iopoll mechanism, $desired_iopoll_mechanism, is not available]) + fi + fi + dnl }}} + dnl {{{ postamble + eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" + AC_DEFINE_UNQUOTED([USE_IOPOLL_MECHANISM],[$use_iopoll_mechanism],[use this iopoll mechanism]) + dnl }}} +])dnl }}} +dnl {{{ ax_arg_disable_block_alloc +AC_DEFUN([AX_ARG_DISABLE_BLOCK_ALLOC],[ + AC_ARG_ENABLE([block-alloc],[AC_HELP_STRING([--disable-block-alloc],[Disable block alloc.])],[block_alloc="$enableval"],[block_alloc="yes"]) + if test "$block_alloc" = "no" ; then + use_block_alloc=0 + else + use_block_alloc=1 + fi + AC_DEFINE_UNQUOTED([USE_BLOCK_ALLOC],[$use_block_alloc],[use block alloc]) +])dnl }}} +dnl {{{ ax_arg_disable_shared_modules (FIXME) +AC_DEFUN([AX_ARG_DISABLE_SHARED_MODULES],[ + AC_ARG_ENABLE([shared-modules],[AC_HELP_STRING([--disable-shared-modules],[Disable shared modules.])],[shared_modules="$enableval"],[shared_modules="yes"]) + AC_CHECK_HEADERS([dlfcn.h link.h]) + AC_CHECK_FUNCS([dlopen dlinfo]) + if test "$shared_modules" = "yes" ; then + use_shared_modules="yes" + AC_DEFINE([USE_SHARED_MODULES],[1],[Define to 1 if you want to use shared modules.]) + else + use_shared_modules="no" + AC_MSG_WARN([shared module support has been disabled per supplied configure option]) + fi + AM_CONDITIONAL([USE_SHARED_MODULES],[test "$shared_modules" = "yes"]) +])dnl }}} +dnl {{{ ax_arg_with_topiclen +AC_DEFUN([AX_ARG_WITH_TOPICLEN],[ + AC_ARG_WITH([topiclen],[AC_HELP_STRING([--with-topiclen=],[Set topic length (default 160).])],[topiclen="$withval"],[topiclen="160"]) + AC_DEFINE_UNQUOTED([TOPICLEN],[($topiclen+1)],[Length of topics.]) +])dnl }}} +dnl {{{ ax_arg_with_nicklen +AC_DEFUN([AX_ARG_WITH_NICKLEN],[ + AC_ARG_WITH([nicklen],[AC_HELP_STRING([--with-nicklen=],[Set nickname length (default 9).])],[nicklen="$withval"],[nicklen="9"]) + AC_DEFINE_UNQUOTED([NICKLEN],[($nicklen+1)],[Length of nicknames.]) +])dnl }}} +dnl {{{ ax_arg_with_userlen +AC_DEFUN([AX_ARG_WITH_USERLEN],[ + AC_ARG_WITH([userlen],[AC_HELP_STRING([--with-userlen=],[Set username length (default 9).])],[userlen="$withval"],[userlen="9"]) + AC_DEFINE_UNQUOTED([USERLEN],[($userlen+1)],[Length of nicknames.]) +])dnl }}} +dnl {{{ ax_arg_with_hostlen +AC_DEFUN([AX_ARG_WITH_HOSTLEN],[ + AC_ARG_WITH([hostlen],[AC_HELP_STRING([--with-hostlen=],[Set username length (default 62).])],[hostlen="$withval"],[hostlen="62"]) + AC_DEFINE_UNQUOTED([HOSTLEN],[($hostlen+1)],[Length of nicknames.]) +])dnl }}} +dnl {{{ ax_arg_with_lclient_heap_size +AC_DEFUN([AX_ARG_WITH_LCLIENT_HEAP_SIZE],[ + AC_ARG_WITH([lclient-heap-size],[AC_HELP_STRING([--lclient-heap-size=],[Set local client heap size (default 256).])],[lclient_heap_size="$withval"],[lclient_heap_size="256"]) + AC_DEFINE_UNQUOTED([LCLIENT_HEAP_SIZE],[$lclient_heap_size],[Size of the local client heap.]) +])dnl }}} +dnl {{{ ax_arg_with_nickname_history_length +AC_DEFUN([AX_ARG_WITH_NICKNAME_HISTORY_LENGTH],[ + AC_ARG_WITH([nickname-history-length],[AC_HELP_STRING([--nickname-history-length=],[Set length of nickname history list (default 1500).])],[nickname_history_length="$withval"],[nickname_history_length="1500"]) + AC_DEFINE_UNQUOTED([NICKNAMEHISTORYLENGTH],[$nickname_history_length],[Size of the nickname history list.]) +])dnl }}} +dnl {{{ ax_arg_with_client_heap_size +AC_DEFUN([AX_ARG_WITH_CLIENT_HEAP_SIZE],[ + AC_ARG_WITH([client-heap-size],[AC_HELP_STRING([--client-heap-size=],[Set client heap size (default 256).])],[client_heap_size="$withval"],[client_heap_size="256"]) + AC_DEFINE_UNQUOTED([CLIENT_HEAP_SIZE],[$client_heap_size],[Size of the client heap.]) +])dnl }}} +dnl {{{ ax_arg_with_channel_heap_size +AC_DEFUN([AX_ARG_WITH_CHANNEL_HEAP_SIZE],[ + AC_ARG_WITH([channel-heap-size],[AC_HELP_STRING([--channel-heap-size=],[Set channel heap size (default 256).])],[channel_heap_size="$withval"],[channel_heap_size="256"]) + AC_DEFINE_UNQUOTED([CHANNEL_HEAP_SIZE],[$channel_heap_size],[Size of the channel heap.]) +])dnl }}} +dnl {{{ ax_arg_with_dbuf_heap_size +AC_DEFUN([AX_ARG_WITH_DBUF_HEAP_SIZE],[ + AC_ARG_WITH([dbuf-heap-size],[AC_HELP_STRING([--dbuf-heap-size=],[Set dbuf heap size (default 64).])],[dbuf_heap_size="$withval"],[dbuf_heap_size="64"]) + AC_DEFINE_UNQUOTED([DBUF_HEAP_SIZE],[$dbuf_heap_size],[Size of the dbuf heap.]) +])dnl }}} +dnl {{{ ax_arg_with_dnode_heap_size +AC_DEFUN([AX_ARG_WITH_DNODE_HEAP_SIZE],[ + AC_ARG_WITH([dnode-heap-size],[AC_HELP_STRING([--dnode-heap-size=],[Set dnode heap size (default 256).])],[dnode_heap_size="$withval"],[dnode_heap_size="256"]) + AC_DEFINE_UNQUOTED([DNODE_HEAP_SIZE],[$dnode_heap_size],[Size of the dlink_node heap.]) +])dnl }}} +dnl {{{ ax_arg_with_ban_heap_size +AC_DEFUN([AX_ARG_WITH_BAN_HEAP_SIZE],[ + AC_ARG_WITH([ban-heap-size],[AC_HELP_STRING([--ban-heap-size=],[Set ban heap size (default 128).])],[ban_heap_size="$withval"],[ban_heap_size="128"]) + AC_DEFINE_UNQUOTED([BAN_HEAP_SIZE],[$ban_heap_size],[Size of the ban heap.]) +])dnl }}} +dnl {{{ ax_arg_with_topic_heap_size +AC_DEFUN([AX_ARG_WITH_TOPIC_HEAP_SIZE],[ + AC_ARG_WITH([topic-heap-size],[AC_HELP_STRING([--topic-heap-size=],[Set topic heap size (default 256).])],[topic_heap_size="$withval"],[topic_heap_size="256"]) + AC_DEFINE_UNQUOTED([TOPIC_HEAP_SIZE],[$topic_heap_size],[Size of the topic heap.]) +])dnl }}} +dnl {{{ ax_arg_with_ircd_heap_size +AC_DEFUN([AX_ARG_WITH_IRCD_HEAP_SIZE],[ + AC_ARG_WITH([ircd-heap-size],[AC_HELP_STRING([--ircd-heap-size=],[Set ircd heap size (default 8).])],[ircd_heap_size="$withval"],[ircd_heap_size="8"]) + AC_DEFINE_UNQUOTED([IRCD_HEAP_SIZE],[$ircd_heap_size],[Size of the ircd heap.]) +])dnl }}} +dnl {{{ ax_arg_with_mqueue_heap_size +AC_DEFUN([AX_ARG_WITH_MQUEUE_HEAP_SIZE],[ + AC_ARG_WITH([mqueue-heap-size],[AC_HELP_STRING([--mqueue-size=],[Set mqueue heap size (default 256).])],[mqueue_heap_size="$withval"],[mqueue_heap_size="256"]) + AC_DEFINE_UNQUOTED([MQUEUE_HEAP_SIZE],[$mqueue_heap_size],[Size of the floodserv mqueue heap.]) +])dnl }}} +dnl {{{ ax_arg_with_fmsg_heap_size +AC_DEFUN([AX_ARG_WITH_FMSG_HEAP_SIZE],[ + AC_ARG_WITH([fmsg-heap-size],[AC_HELP_STRING([--fmsg-size=],[Set fmsg heap size (default 256).])],[fmsg_heap_size="$withval"],[fmsg_heap_size="256"]) + AC_DEFINE_UNQUOTED([FMSG_HEAP_SIZE],[$fmsg_heap_size],[Size of the floodserv fmsg heap.]) +])dnl }}} +dnl {{{ ax_Arg_with_services_name +AC_DEFUN([AX_ARG_WITH_SERVICS_NAME],[ + AC_ARG_WITH([services-name],[AC_HELP_STRING([--with-services-name=SERVICES_NAME],[Set the name of your services server])],[services_name="$withval"],[services_name="services.oftc.net"]) + AC_DEFINE_UNQUOTED(SERVICES_NAME,"$services_name",[Name of the services + server.]) +]) dnl }}} +dnl {{{ ax_arg_enable_efnet +AC_DEFUN([AX_ARG_ENABLE_EFNET],[ + AC_ARG_ENABLE([efnet],[AC_HELP_STRING([--enable-efnet],[For IRCDs running on EFnet.])],[efnet="$enableval"],[efnet="no"]) + if test "$efnet" = "yes" ; then + use_efnet="yes" + AC_DEFINE([EFNET],[1],[Define to 1 if this server will be an EFnet server.]) + AC_DEFINE([TS5_ONLY],[1],[If Defined to 1 server links to your network must have a minimum of TS5.]) + else + AC_DEFINE([INVARIANTS],[1],[Miscellaneous sanity checks for the IRCd. Makes it slightly slower]) + use_efnet="no" + fi + AM_CONDITIONAL([EFNET],[test "$use_efnet" = "yes"]) +])dnl }}} +dnl {{{ ax_arg_enable_halfops +AC_DEFUN([AX_ARG_ENABLE_HALFOPS],[ + AC_ARG_ENABLE([halfops],[AC_HELP_STRING([--enable-halfops],[Enable halfops support.])],[halfops="$enableval"],[halfops="no"]) + if test "$halfops" = "yes" ; then + AC_DEFINE([HALFOPS],[1],[Define to 1 if you want halfops support.]) + fi +])dnl }}} +dnl {{{ ax_arg_enable_warnings +AC_DEFUN([AX_ARG_ENABLE_WARNINGS],[ + AC_ARG_ENABLE([warnings],[AC_HELP_STRING([--enable-warnings],[Enable compiler warnings.])],[warnings="$enableval"],[warnings="no"]) + if test "$warnings" = "yes" ; then + CFLAGS="-Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused" + fi +])dnl }}} +dnl {{{ ax_arg_enable_efence +AC_DEFUN([AX_ARG_ENABLE_EFENCE],[ + AC_ARG_ENABLE([efence],[AC_HELP_STRING([--enable-efence],[Enable compilation with ElectricFence.])],[efence="$enableval"],[efence="no"]) + if test "$efence" = "yes" ; then + AC_SEARCH_LIBS([malloc],[efence],,[AC_MSG_ERROR([efence library not found])]) + fi +])dnl }}} +dnl {{{ ax_arg_enable_syslog +AC_DEFUN([AX_ARG_ENABLE_SYSLOG],[ + AC_CHECK_HEADERS([syslog.h sys/syslog.h]) + AC_ARG_ENABLE([syslog],[AC_HELP_STRING([--enable-syslog="EVENTS"],[Enable syslog for events: users oper (space separated in quotes; default: disabled).])],[syslog="$enableval"],[syslog="no"]) + if test "$enableval" != "no" ; then + for option in $enableval ; do + case "$option" in + users) AC_DEFINE([SYSLOG_USERS],[1],[Send user log stuff to syslog.]) ;; + oper) AC_DEFINE([SYSLOG_OPER],[1],[Send oper log stuff to syslog.]) ;; + yes) : ;; + *) AC_MSG_ERROR([invalid value for --enable-syslog: $option]) ;; + esac + done + AC_DEFINE([USE_SYSLOG],[1],[Define to 1 if you want to use syslog.]) + fi +])dnl }}} +dnl {{{ ax_arg_with_syslog_facility +AC_DEFUN([AX_ARG_WITH_SYSLOG],[ + AC_ARG_WITH([syslog-facility],[AC_HELP_STRING([--with-syslog-facility=LOG],[Define the syslog facility to use (default: LOG_LOCAL4)])],[syslog_facility="$withval"],[syslog_facility="LOG_LOCAL4"]) + AC_DEFINE_UNQUOTED([LOG_FACILITY],[$syslog_facility],[Set to syslog facility to use.]) +])dnl }}} +dnl {{{ ac_define_dir +dnl http://autoconf-archive.cryp.to/ac_define_dir.html +AC_DEFUN([AC_DEFINE_DIR], [ + prefix_NONE= + exec_prefix_NONE= + test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix + test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix + eval ac_define_dir="\"[$]$2\"" + eval ac_define_dir="\"$ac_define_dir\"" + AC_SUBST($1, "$ac_define_dir") + AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) + test "$prefix_NONE" && prefix=NONE + test "$exec_prefix_NONE" && exec_prefix=NONE +])dnl }}} +]) dnl }}} diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 000000000..f9c4db7e0 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,74 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. +# Shamelessly stolen from lighttpd - which is licensed under the GPL + +LIBTOOLIZE_FLAGS="--automake --ltdl" +AUTOMAKE_FLAGS="--add-missing" +ACLOCAL_FLAGS="-I m4 --install" + +ARGV0=$0 +ARGS="$@" + +run() { + echo "$ARGV0: running \`$@' $ARGS" + $@ $ARGS +} + +## jump out if one of the programs returns 'false' +set -e + +## on macosx glibtoolize, others have libtool +if test x$LIBTOOLIZE = x; then + if test \! x`which glibtoolize` = x; then + LIBTOOLIZE=glibtoolize + elif test \! x`which libtoolize-1.5` = x; then + LIBTOOLIZE=libtoolize-1.5 + elif test \! x`which libtoolize` = x; then + LIBTOOLIZE=libtoolize + fi +fi + +## suse has aclocal and aclocal-1.9 +if test x$ACLOCAL = x; then + if test \! x`which aclocal-1.9` = x; then + ACLOCAL=aclocal-1.9 + AUTOMAKE=automake-1.9 + elif test \! x`which aclocal` = x; then + ACLOCAL=aclocal + AUTOMAKE=automake + fi +fi + +if test x$AUTOMAKE = x; then + if test \! x`which automake-1.9` = x; then + AUTOMAKE=automake-1.9 + elif test \! x`which automake` = x; then + AUTOMAKE=automake + fi +fi + + +## macosx has autoconf-2.59 and autoconf-2.60 +if test x$AUTOCONF = x; then + if test \! x`which autoconf-2.59` = x; then + AUTOCONF=autoconf-2.59 + elif test \! x`which autoconf` = x; then + AUTOCONF=autoconf + fi +fi + +if test x$AUTOHEADER = x; then + if test \! x`which autoheader-2.59` = x; then + AUTOHEADER=autoheader-2.59 + elif test \! x`which autoheader` = x; then + AUTOHEADER=autoheader + fi +fi + + +run $LIBTOOLIZE $LIBTOOLIZE_FLAGS +run $ACLOCAL $ACLOCAL_FLAGS +run $AUTOHEADER +run $AUTOMAKE $AUTOMAKE_FLAGS +run $AUTOCONF +test "$ARGS" = "" && echo "Now type './configure ...' and 'make' to compile." diff --git a/configure b/configure deleted file mode 100755 index 1e8643698..000000000 --- a/configure +++ /dev/null @@ -1,9229 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for ircd-hybrid 7.2.2. -# -# $Id$ -# -# -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. -# -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# Use a proper internal environment variable to ensure we don't fall - # into an infinite loop, continuously re-executing ourselves. - if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then - _as_can_reexec=no; export _as_can_reexec; - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 - fi - # We don't want this to propagate to other subprocesses. - { _as_can_reexec=; unset _as_can_reexec;} -if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi -" - as_required="as_fn_return () { (exit \$1); } -as_fn_success () { as_fn_return 0; } -as_fn_failure () { as_fn_return 1; } -as_fn_ret_success () { return 0; } -as_fn_ret_failure () { return 1; } - -exitcode=0 -as_fn_success || { exitcode=1; echo as_fn_success failed.; } -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : - -else - exitcode=1; echo positional parameters were not saved. -fi -test x\$exitcode = x0 || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : - as_have_required=yes -else - as_have_required=no -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : - -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - as_found=: - case $as_dir in #( - /*) - for as_base in sh bash ksh sh5; do - # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : - CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : - break 2 -fi -fi - done;; - esac - as_found=false -done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } -IFS=$as_save_IFS - - - if test "x$CONFIG_SHELL" != x; then : - export CONFIG_SHELL - # We cannot yet assume a decent shell, so we have to provide a -# neutralization value for shells without unset; and this also -# works around shells that cannot unset nonexistent variables. -# Preserve -v and -x to the replacement shell. -BASH_ENV=/dev/null -ENV=/dev/null -(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV -case $- in # (((( - *v*x* | *x*v* ) as_opts=-vx ;; - *v* ) as_opts=-v ;; - *x* ) as_opts=-x ;; - * ) as_opts= ;; -esac -exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} -# Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." - else - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, -$0: including any error possibly output before this -$0: message. Then install a modern shell, or manually run -$0: the script under such a shell if you do have one." - fi - exit 1 -fi -fi -fi -SHELL=${CONFIG_SHELL-/bin/sh} -export SHELL -# Unset more variables known to interfere with behavior of common tools. -CLICOLOR_FORCE= GREP_OPTIONS= -unset CLICOLOR_FORCE GREP_OPTIONS - -## --------------------- ## -## M4sh Shell Functions. ## -## --------------------- ## -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - - - as_lineno_1=$LINENO as_lineno_1a=$LINENO - as_lineno_2=$LINENO as_lineno_2a=$LINENO - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) - sed -n ' - p - /[$]LINENO/= - ' <$as_myself | - sed ' - s/[$]LINENO.*/&-/ - t lineno - b - :lineno - N - :loop - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ - t loop - s/-\n.*// - ' >$as_me.lineno && - chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } - - # If we had to re-execute with $CONFIG_SHELL, we're ensured to have - # already done that, so ensure we don't try to do so again and fall - # in an infinite loop. This has already happened in practice. - _as_can_reexec=no; export _as_can_reexec - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensitive to this). - . "./$as_me.lineno" - # Exit status is that of the last command. - exit -} - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -test -n "$DJDIR" || exec 7<&0 &1 - -# Name of the host. -# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_clean_files= -ac_config_libobj_dir=. -LIBOBJS= -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= - -# Identity of this package. -PACKAGE_NAME='ircd-hybrid' -PACKAGE_TARNAME='ircd-hybrid' -PACKAGE_VERSION='7.2.2' -PACKAGE_STRING='ircd-hybrid 7.2.2' -PACKAGE_BUGREPORT='' -PACKAGE_URL='' - -ac_default_prefix=/usr/local/ircd -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef STDC_HEADERS -# include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_subst_vars='LTLIBOBJS -LIBOBJS -DYNLINK_C -SEDOBJ -IRC_CFLAGS -PICFLAGS -SSL_LIBS -SSL_INCLUDES -SSL_SRCS_ENABLE -MOD_TARGET -MODULES_LIBS -EXAMPLE_CONF -BALLOC_C -CLOBBER -SELECT_TYPE -ZLIB_LD -ENCSPEED -SNPRINTF_C -CRYPT_LIB -CRYPT_C -INET_MISC -LEXLIB -LEX_OUTPUT_ROOT -LEX -YFLAGS -YACC -TEST -LD -AR -SED -LN -MV -CP -RM -INSTALL_DATA -INSTALL_SCRIPT -INSTALL_PROGRAM -SET_MAKE -STDOUT -MAKEDEPEND -MKDEP -EGREP -GREP -CPP -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -target_alias -host_alias -build_alias -LIBS -ECHO_T -ECHO_N -ECHO_C -DEFS -mandir -localedir -libdir -psdir -pdfdir -dvidir -htmldir -infodir -docdir -oldincludedir -includedir -localstatedir -sharedstatedir -sysconfdir -datadir -datarootdir -libexecdir -sbindir -bindir -program_transform_name -prefix -exec_prefix -PACKAGE_URL -PACKAGE_BUGREPORT -PACKAGE_STRING -PACKAGE_VERSION -PACKAGE_TARNAME -PACKAGE_NAME -PATH_SEPARATOR -SHELL' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_openssl -with_zlib_path -enable_zlib -enable_poll -enable_select -enable_kqueue -enable_devpoll -enable_rtsigio -enable_epoll -enable_clobber -enable_assert -enable_profile -enable_efence -enable_block_alloc -enable_warnings -enable_small_net -enable_efnet -enable_gline_voting -enable_halfops -enable_syslog -with_syslog_facility -with_nicklen -with_topiclen -with_services_name -enable_shared_modules -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -CPP -YACC -YFLAGS' - - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -ac_unrecognized_opts= -ac_unrecognized_sep= -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -# (The list follows the same order as the GNU Coding Standards.) -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datarootdir='${prefix}/share' -datadir='${datarootdir}' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -includedir='${prefix}/include' -oldincludedir='/usr/include' -docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' -infodir='${datarootdir}/info' -htmldir='${docdir}' -dvidir='${docdir}' -pdfdir='${docdir}' -psdir='${docdir}' -libdir='${exec_prefix}/lib' -localedir='${datarootdir}/locale' -mandir='${datarootdir}/man' - -ac_prev= -ac_dashdash= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval $ac_prev=\$ac_option - ac_prev= - continue - fi - - case $ac_option in - *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *=) ac_optarg= ;; - *) ac_optarg=yes ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_dashdash$ac_option in - --) - ac_dashdash=yes ;; - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=*) - datadir=$ac_optarg ;; - - -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ - | --dataroo | --dataro | --datar) - ac_prev=datarootdir ;; - -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ - | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) - datarootdir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=no ;; - - -docdir | --docdir | --docdi | --doc | --do) - ac_prev=docdir ;; - -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) - docdir=$ac_optarg ;; - - -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) - ac_prev=dvidir ;; - -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) - dvidir=$ac_optarg ;; - - -enable-* | --enable-*) - ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"enable_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval enable_$ac_useropt=\$ac_optarg ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) - ac_prev=htmldir ;; - -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ - | --ht=*) - htmldir=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localedir | --localedir | --localedi | --localed | --locale) - ac_prev=localedir ;; - -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) - localedir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst | --locals) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) - ac_prev=pdfdir ;; - -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) - pdfdir=$ac_optarg ;; - - -psdir | --psdir | --psdi | --psd | --ps) - ac_prev=psdir ;; - -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) - psdir=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=\$ac_optarg ;; - - -without-* | --without-*) - ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" - ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` - case $ac_user_opts in - *" -"with_$ac_useropt" -"*) ;; - *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" - ac_unrecognized_sep=', ';; - esac - eval with_$ac_useropt=no ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - case $ac_envvar in #( - '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; - esac - eval $ac_envvar=\$ac_optarg - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error $? "missing argument to $ac_option" -fi - -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - no) ;; - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; - esac -fi - -# Check all directory arguments for consistency. -for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ - datadir sysconfdir sharedstatedir localstatedir includedir \ - oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir -do - eval ac_val=\$$ac_var - # Remove trailing slashes. - case $ac_val in - */ ) - ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` - eval $ac_var=\$ac_val;; - esac - # Be sure to have absolute directory names. - case $ac_val in - [\\/$]* | ?:[\\/]* ) continue;; - NONE | '' ) case $ac_var in *prefix ) continue;; esac;; - esac - as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -ac_pwd=`pwd` && test -n "$ac_pwd" && -ac_ls_di=`ls -di .` && -ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error $? "working directory cannot be determined" -test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error $? "pwd does not report name of working directory" - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then the parent directory. - ac_confdir=`$as_dirname -- "$as_myself" || -$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_myself" : 'X\(//\)[^/]' \| \ - X"$as_myself" : 'X\(//\)$' \| \ - X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" -fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" -ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" - pwd)` -# When building in place, set srcdir=. -if test "$ac_abs_confdir" = "$ac_pwd"; then - srcdir=. -fi -# Remove unnecessary trailing slashes from srcdir. -# Double slashes in file names in object file debugging info -# mess up M-x gdb in Emacs. -case $srcdir in -*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; -esac -for ac_var in $ac_precious_vars; do - eval ac_env_${ac_var}_set=\${${ac_var}+set} - eval ac_env_${ac_var}_value=\$${ac_var} - eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} - eval ac_cv_env_${ac_var}_value=\$${ac_var} -done - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures ircd-hybrid 7.2.2 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] - --datadir=DIR read-only architecture-independent data [DATAROOTDIR] - --infodir=DIR info documentation [DATAROOTDIR/info] - --localedir=DIR locale-dependent data [DATAROOTDIR/locale] - --mandir=DIR man documentation [DATAROOTDIR/man] - --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of ircd-hybrid 7.2.2:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-option-checking ignore unrecognized --enable/--with options - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-openssl=DIR Enable OpenSSL support (DIR optional). - --disable-openssl Disable OpenSSL support. - --disable-zlib Disable ziplinks support - --enable-poll Force poll() usage. - --enable-select Force select() usage. - --enable-kqueue Force kqueue() usage. - --enable-devpoll Force usage of /dev/poll. - --enable-rtsigio Enable SIGIO with RT Signals (Linux only) - --enable-epoll Enable Linux epoll support. - --enable-clobber Don't preserve old binaries on make install - --enable-assert Enable assert(). - --enable-profile Enable profiling - --enable-efence Enable ElectricFence (memory debugger). - --disable-block-alloc Disable the block allocator (Only useful with - ElectricFence) - --enable-warnings Enable all sorts of warnings for debugging. - --enable-small-net Enable small network support. - --enable-efnet For IRCDs running on EFnet. - --disable-gline-voting Disable G-line voting. - --enable-halfops Enable halfops support. - --enable-syslog="EVENTS" - Enable syslog for events: kill, squit, connect, - users, oper, space separated in quotes (default: - disabled) - --disable-shared-modules - Disable shared modules. - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-zlib-path=DIR Path to libz.so for ziplinks support. - --with-syslog-facility=LOG - Define the log facility to use with ircd's syslog - output (default LOG_LOCAL4) - --with-nicklen=LENGTH Set the nick length to LENGTH (default 9) - --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max - 390) - --with-services-name=SERVICES_NAME - Set the name of your services server - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L if you have libraries in a - nonstandard directory - LIBS libraries to pass to the linker, e.g. -l - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if - you have headers in a nonstandard directory - CPP C preprocessor - YACC The `Yet Another Compiler Compiler' implementation to use. - Defaults to the first program found out of: `bison -y', `byacc', - `yacc'. - YFLAGS The list of arguments that will be passed by default to $YACC. - This script will default YFLAGS to the empty string to avoid a - default value of `-d' given by some make applications. - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -Report bugs to the package provider. -_ACEOF -ac_status=$? -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d "$ac_dir" || - { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || - continue - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. - if test -f "$ac_srcdir/configure.gnu"; then - echo && - $SHELL "$ac_srcdir/configure.gnu" --help=recursive - elif test -f "$ac_srcdir/configure"; then - echo && - $SHELL "$ac_srcdir/configure" --help=recursive - else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi || ac_status=$? - cd "$ac_pwd" || { ac_status=$?; break; } - done -fi - -test -n "$ac_init_help" && exit $ac_status -if $ac_init_version; then - cat <<\_ACEOF -ircd-hybrid configure 7.2.2 -generated by GNU Autoconf 2.69 - -Copyright (C) 2012 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. - -$Id$ -_ACEOF - exit -fi - -## ------------------------ ## -## Autoconf initialization. ## -## ------------------------ ## - -# ac_fn_c_try_compile LINENO -# -------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_compile - -# ac_fn_c_try_cpp LINENO -# ---------------------- -# Try to preprocess conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_cpp () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_cpp conftest.$ac_ext" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval \${$3+:} false; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 -$as_echo_n "checking $2 usability... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_header_compiler=yes -else - ac_header_compiler=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 -$as_echo_n "checking $2 presence... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <$2> -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - ac_header_preproc=yes -else - ac_header_preproc=no -fi -rm -f conftest.err conftest.i conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( - yes:no: ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; - no:yes:* ) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} - ;; -esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=\$ac_header_compiler" -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_mongrel - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists and can be compiled using the include files in -# INCLUDES, setting the cache variable VAR accordingly. -ac_fn_c_check_header_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -#include <$2> -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_compile - -# ac_fn_c_try_link LINENO -# ----------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. -ac_fn_c_try_link () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - test -x conftest$ac_exeext - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_type - -# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES -# ---------------------------------------------------- -# Tries to find if the field MEMBER exists in type AGGR, after including -# INCLUDES, setting cache variable VAR accordingly. -ac_fn_c_check_member () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main () -{ -static $2 ac_aggr; -if (ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main () -{ -static $2 ac_aggr; -if (sizeof ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else - eval "$4=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$4 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_member - -# ac_fn_c_check_func LINENO FUNC VAR -# ---------------------------------- -# Tests whether FUNC exists, setting the cache variable VAR accordingly -ac_fn_c_check_func () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Define $2 to an innocuous variant, in case declares $2. - For example, HP-UX 11i declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $2 - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char $2 (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined __stub_$2 || defined __stub___$2 -choke me -#endif - -int -main () -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - eval "$3=yes" -else - eval "$3=no" -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func - -# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES -# -------------------------------------------- -# Tries to find the compile-time value of EXPR in a program that includes -# INCLUDES, setting VAR accordingly. Returns whether the value could be -# computed -ac_fn_c_compute_int () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) >= 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_lo=0 ac_mid=0 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=$ac_mid; break -else - as_fn_arith $ac_mid + 1 && ac_lo=$as_val - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) < 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=-1 ac_mid=-1 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) >= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_lo=$ac_mid; break -else - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=$ac_mid -else - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in #(( -?*) eval "$3=\$ac_lo"; ac_retval=0 ;; -'') ac_retval=1 ;; -esac - else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } -#include -#include -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (($2) < 0) - { - long int i = longval (); - if (i != ($2)) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ($2)) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - echo >>conftest.val; read $3 config.log <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by ircd-hybrid $as_me 7.2.2, which was -generated by GNU Autoconf 2.69. Invocation command line was - - $ $0 $@ - -_ACEOF -exec 5>>config.log -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" - done -IFS=$as_save_IFS - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; - 2) - as_fn_append ac_configure_args1 " '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - as_fn_append ac_configure_args " '$ac_arg'" - ;; - esac - done -done -{ ac_configure_args0=; unset ac_configure_args0;} -{ ac_configure_args1=; unset ac_configure_args1;} - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Use '\'' to represent an apostrophe within the trap. -# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - $as_echo "## ---------------- ## -## Cache variables. ## -## ---------------- ##" - echo - # The following way of writing the cache mishandles newlines in values, -( - for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - (set) 2>&1 | - case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - sed -n \ - "s/'\''/'\''\\\\'\'''\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" - ;; #( - *) - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) - echo - - $as_echo "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - $as_echo "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - $as_echo "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core core.conftest.* && - rm -f -r conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status -' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -f -r conftest* confdefs.h - -$as_echo "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE -if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac -elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site -else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site -fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" -do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special files - # actually), so we avoid doing that. DJGPP emulates it as a regular file. - if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - -ac_config_headers="$ac_config_headers include/setup.h" - - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` - -# The possible output files: -ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" - -ac_rmfiles= -for ac_file in $ac_files -do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - * ) ac_rmfiles="$ac_rmfiles $ac_file";; - esac -done -rm -f $ac_rmfiles - -if { { ac_try="$ac_link_default" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. -# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' -# in a Makefile. We should not override ac_cv_exeext if it was cached, -# so that the user can short-circuit this test for compilers unknown to -# Autoconf. -for ac_file in $ac_files '' -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; - then :; else - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - fi - # We set ac_cv_exeext here because the later test for it is not - # safe: cross compilers may not add the suffix if given an `-o' - # argument, so we may need to know it at that point already. - # Even if this section looks crufty: it has the advantage of - # actually working. - break;; - * ) - break;; - esac -done -test "$ac_cv_exeext" = no && ac_cv_exeext= - -else - ac_file='' -fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -ac_exeext=$ac_cv_exeext - -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } -if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - break;; - * ) break;; - esac -done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -FILE *f = fopen ("conftest.out", "w"); - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -ac_clean_files="$ac_clean_files conftest.out" -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -if test "$cross_compiling" != yes; then - { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if { ac_try='./conftest$ac_cv_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out -ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : - for ac_file in conftest.o conftest.obj conftest.*; do - test -f "$ac_file" || continue; - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - -else - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue -else - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.i conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$GREP"; then - ac_path_GREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in -*GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_GREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_GREP=$GREP -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in -*GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; -*) - ac_count=0 - $as_echo_n 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_EGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_EGREP=$EGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = xyes; then : - MINIX=yes -else - MINIX= -fi - - - if test "$MINIX" = yes; then - -$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h - - -$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h - - -$as_echo "#define _MINIX 1" >>confdefs.h - - fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if ${ac_cv_safe_to_define___extensions__+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_safe_to_define___extensions__=yes -else - ac_cv_safe_to_define___extensions__=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } - test $ac_cv_safe_to_define___extensions__ = yes && - $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - - $as_echo "#define _ALL_SOURCE 1" >>confdefs.h - - $as_echo "#define _GNU_SOURCE 1" >>confdefs.h - - $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h - - - - -OLD_CFLAGS="$CFLAGS" -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_CC" && break -done - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi - - -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } - -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - ac_cv_prog_cc_g=no - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -else - CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_prog_cc_c89=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC - -fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : - -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -CFLAGS="$OLD_CFLAGS" - - -if test "$ac_cv_c_compiler_gnu" != yes; then - -SGS=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5 -$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; } -case `$CC -version 2>&1` in -*TenDRA*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5 -$as_echo "yes, TenDRA" >&6; } - IRC_CFLAGS="" - CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem" - SGS=yes - TenDRA=yes -;; -*MIPSpro*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5 -$as_echo "yes, MIPSpro" >&6; } - MIPSpro=yes - SGS=yes -;; -*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - TenDRA=no - MIPSpro=no -;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 -$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; } -case `$CC -V 2>&1` in -*Sun*WorkShop* | *Forte*Developer* | *Sun*C*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5 -$as_echo "Sun Workshop/Forte" >&6; } - IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" - SunWorkShop=yes - SGS=yes -;; -*Tru64*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5 -$as_echo "Tru64 cc" >&6; } - IRC_CFLAGS="" - CPPFLAGS="-I/usr/local/include" - Tru=yes -;; -*HP*ANSI*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5 -$as_echo "HPUX cc" >&6; } - HPUX=yes - IRC_CFLAGS="+e" -;; -*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -;; -esac - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Cygwin, Solaris or HPUX" >&5 -$as_echo_n "checking uname -s for Cygwin, Solaris or HPUX... " >&6; } -case `uname -s` in - HP-UX*) - - if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5 -$as_echo "assuming old HPUX with its own cc" >&6; } - IRC_CFLAGS="$IRC_CFLAGS +e" - HPUX=yes - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5 -$as_echo "already using newer HPUX" >&6; } - fi - ;; - CYGWIN*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin" >&5 -$as_echo "Cygwin" >&6; } - CYGWIN=yes - ;; - SunOS*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5 -$as_echo "SunOS or Solaris" >&6; } - -$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h - - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; -esac - -if test "$ac_cv_c_compiler_gnu" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is clang" >&5 -$as_echo_n "checking if $CC is clang... " >&6; } - - if expr "`$CC -v 2>&1`" : ".*clang.*" >/dev/null; then - ClangGCC=yes - else - ClangGCC=no - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ClangGCC" >&5 -$as_echo "$ClangGCC" >&6; } -fi - -if test "$ac_cv_c_compiler_gnu" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5 -$as_echo_n "checking if $CC is Apple GCC... " >&6; } - - if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then - AppleGCC=yes - else - AppleGCC=no - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AppleGCC" >&5 -$as_echo "$AppleGCC" >&6; } - - IRC_CFLAGS="$IRC_CFLAGS -Wall" -fi - -if test "$ac_cv_prog_cc_g" = yes; then - if test "$Tru" = yes; then - IRC_CFLAGS="$IRC_CFLAGS -g3" - else - IRC_CFLAGS="$IRC_CFLAGS -g" - fi -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5 -$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; } -if test "$SGS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -# Extract the first word of "mkdep", so it can be a program name with args. -set dummy mkdep; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MKDEP+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MKDEP in - [\\/]* | ?:[\\/]*) - ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MKDEP=$ac_cv_path_MKDEP -if test -n "$MKDEP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5 -$as_echo "$MKDEP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "makedepend", so it can be a program name with args. -set dummy makedepend; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MAKEDEPEND+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAKEDEPEND in - [\\/]* | ?:[\\/]*) - ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MAKEDEPEND=$ac_cv_path_MAKEDEPEND -if test -n "$MAKEDEPEND"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5 -$as_echo "$MAKEDEPEND" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5 -$as_echo_n "checking how to generate dependency info... " >&6; } - -STDOUT="> .depend" - -if test "$ac_cv_c_compiler_gnu" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5 -$as_echo "gcc -MM" >&6; } - MKDEP="$CC -MM" -elif test ! -z "$MKDEP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5 -$as_echo "mkdep" >&6; } - - if test -z "$Tru"; then - STDOUT="" - else - STDOUT=" 2> /dev/null" - fi -elif test "$SunWorkShop" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5 -$as_echo "$CC -xM" >&6; } - MKDEP="$CC -xM" - STDOUT="> .depend 2> /dev/null" -elif test ! -z "$MAKEDEPEND"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5 -$as_echo "makedepend" >&6; } - MKDEP="$MAKEDEPEND -f-" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5 -$as_echo "nothing suitable.. forget it!" >&6; } - MKDEP=":" -fi - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 -$as_echo_n "checking for /dev/null... " >&6; } -if test -c /dev/null ; then - -$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - -$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 -$as_echo "no - using devnull.log" >&6; } -fi - -if test ! -z "$CFLAGS"; then - IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 -$as_echo_n "checking for library containing strerror... " >&6; } -if ${ac_cv_search_strerror+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char strerror (); -int -main () -{ -return strerror (); - ; - return 0; -} -_ACEOF -for ac_lib in '' cposix; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_strerror=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_strerror+:} false; then : - break -fi -done -if ${ac_cv_search_strerror+:} false; then : - -else - ac_cv_search_strerror=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 -$as_echo "$ac_cv_search_strerror" >&6; } -ac_res=$ac_cv_search_strerror -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_inline=$ac_kw -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } - -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac - -if test $ac_cv_c_compiler_gnu = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 -$as_echo_n "checking whether $CC needs -traditional... " >&6; } -if ${ac_cv_prog_gcc_traditional+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_pattern="Autoconf.*'x'" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TIOCGETP -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : - ac_cv_prog_gcc_traditional=yes -else - ac_cv_prog_gcc_traditional=no -fi -rm -f conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -Autoconf TCGETA -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "$ac_pattern" >/dev/null 2>&1; then : - ac_cv_prog_gcc_traditional=yes -fi -rm -f conftest* - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 -$as_echo "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat >conftest.make <<\_ACEOF -SHELL = /bin/sh -all: - @echo '@@@%%%=$(MAKE)=@@@%%%' -_ACEOF -# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. -case `${MAKE-make} -f conftest.make 2>/dev/null` in - *@@@%%%=?*=@@@%%%*) - eval ac_cv_prog_make_${ac_make}_set=yes;; - *) - eval ac_cv_prog_make_${ac_make}_set=no;; -esac -rm -f conftest.make -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SET_MAKE= -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - SET_MAKE="MAKE=${MAKE-make}" -fi - -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi - -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. - - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - rm -rf conftest.one conftest.two conftest.dir - echo one > conftest.one - echo two > conftest.two - mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && - test -s conftest.one && test -s conftest.two && - test -s conftest.dir/conftest.one && - test -s conftest.dir/conftest.two - then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - fi - done - done - ;; -esac - - done -IFS=$as_save_IFS - -rm -rf conftest.one conftest.two conftest.dir - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. Don't cache a - # value for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the value is a relative name. - INSTALL=$ac_install_sh - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -# Extract the first word of "rm", so it can be a program name with args. -set dummy rm; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_RM+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $RM in - [\\/]* | ?:[\\/]*) - ac_cv_path_RM="$RM" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -RM=$ac_cv_path_RM -if test -n "$RM"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 -$as_echo "$RM" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "cp", so it can be a program name with args. -set dummy cp; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_CP+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $CP in - [\\/]* | ?:[\\/]*) - ac_cv_path_CP="$CP" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -CP=$ac_cv_path_CP -if test -n "$CP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 -$as_echo "$CP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "mv", so it can be a program name with args. -set dummy mv; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MV+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MV in - [\\/]* | ?:[\\/]*) - ac_cv_path_MV="$MV" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -MV=$ac_cv_path_MV -if test -n "$MV"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 -$as_echo "$MV" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "ln", so it can be a program name with args. -set dummy ln; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LN+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $LN in - [\\/]* | ?:[\\/]*) - ac_cv_path_LN="$LN" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -LN=$ac_cv_path_LN -if test -n "$LN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 -$as_echo "$LN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "sed", so it can be a program name with args. -set dummy sed; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $SED in - [\\/]* | ?:[\\/]*) - ac_cv_path_SED="$SED" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -SED=$ac_cv_path_SED -if test -n "$SED"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $AR in - [\\/]* | ?:[\\/]*) - ac_cv_path_AR="$AR" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -AR=$ac_cv_path_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "ld", so it can be a program name with args. -set dummy ld; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $LD in - [\\/]* | ?:[\\/]*) - ac_cv_path_LD="$LD" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac -fi -LD=$ac_cv_path_LD -if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -# Extract the first word of "test", so it can be a program name with args. -set dummy test; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_TEST+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $TEST in - [\\/]* | ?:[\\/]*) - ac_cv_path_TEST="$TEST" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test" - ;; -esac -fi -TEST=$ac_cv_path_TEST -if test -n "$TEST"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST" >&5 -$as_echo "$TEST" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -for ac_prog in 'bison -y' byacc -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_YACC+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$YACC"; then - ac_cv_prog_YACC="$YACC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_YACC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -YACC=$ac_cv_prog_YACC -if test -n "$YACC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 -$as_echo "$YACC" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$YACC" && break -done -test -n "$YACC" || YACC="yacc" - - -if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then - as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 -fi - -for ac_prog in flex lex -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LEX+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$LEX"; then - ac_cv_prog_LEX="$LEX" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_LEX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -LEX=$ac_cv_prog_LEX -if test -n "$LEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 -$as_echo "$LEX" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$LEX" && break -done -test -n "$LEX" || LEX=":" - -if test "x$LEX" != "x:"; then - cat >conftest.l <<_ACEOF -%% -a { ECHO; } -b { REJECT; } -c { yymore (); } -d { yyless (1); } -e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ - yyless ((input () != 0)); } -f { unput (yytext[0]); } -. { BEGIN INITIAL; } -%% -#ifdef YYTEXT_POINTER -extern char *yytext; -#endif -int -main (void) -{ - return ! yylex () + ! yywrap (); -} -_ACEOF -{ { ac_try="$LEX conftest.l" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$LEX conftest.l") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 -$as_echo_n "checking lex output file root... " >&6; } -if ${ac_cv_prog_lex_root+:} false; then : - $as_echo_n "(cached) " >&6 -else - -if test -f lex.yy.c; then - ac_cv_prog_lex_root=lex.yy -elif test -f lexyy.c; then - ac_cv_prog_lex_root=lexyy -else - as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 -$as_echo "$ac_cv_prog_lex_root" >&6; } -LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root - -if test -z "${LEXLIB+set}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 -$as_echo_n "checking lex library... " >&6; } -if ${ac_cv_lib_lex+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_save_LIBS=$LIBS - ac_cv_lib_lex='none needed' - for ac_lib in '' -lfl -ll; do - LIBS="$ac_lib $ac_save_LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -`cat $LEX_OUTPUT_ROOT.c` -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_lex=$ac_lib -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - test "$ac_cv_lib_lex" != 'none needed' && break - done - LIBS=$ac_save_LIBS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 -$as_echo "$ac_cv_lib_lex" >&6; } - test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 -$as_echo_n "checking whether yytext is a pointer... " >&6; } -if ${ac_cv_prog_lex_yytext_pointer+:} false; then : - $as_echo_n "(cached) " >&6 -else - # POSIX says lex can declare yytext either as a pointer or an array; the -# default is implementation-dependent. Figure out which it is, since -# not all implementations provide the %pointer and %array declarations. -ac_cv_prog_lex_yytext_pointer=no -ac_save_LIBS=$LIBS -LIBS="$LEXLIB $ac_save_LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #define YYTEXT_POINTER 1 -`cat $LEX_OUTPUT_ROOT.c` -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_prog_lex_yytext_pointer=yes -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_save_LIBS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 -$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } -if test $ac_cv_prog_lex_yytext_pointer = yes; then - -$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h - -fi -rm -f conftest.l $LEX_OUTPUT_ROOT.c - -fi -if test "$LEX" = ":"; then - as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 -fi - - -if test "$libexecdir" = '${exec_prefix}/libexec' && - test "$localstatedir" = '${prefix}/var'; then - libexecdir='${bindir}' - localstatedir='${prefix}' -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - - -for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 -$as_echo_n "checking for library containing socket... " >&6; } -if ${ac_cv_search_socket+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char socket (); -int -main () -{ -return socket (); - ; - return 0; -} -_ACEOF -for ac_lib in '' socket; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_socket=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_socket+:} false; then : - break -fi -done -if ${ac_cv_search_socket+:} false; then : - -else - ac_cv_search_socket=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 -$as_echo "$ac_cv_search_socket" >&6; } -ac_res=$ac_cv_search_socket -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 -$as_echo_n "checking for library containing inet_aton... " >&6; } -if ${ac_cv_search_inet_aton+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char inet_aton (); -int -main () -{ -return inet_aton (); - ; - return 0; -} -_ACEOF -for ac_lib in '' resolv; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_inet_aton=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_inet_aton+:} false; then : - break -fi -done -if ${ac_cv_search_inet_aton+:} false; then : - -else - ac_cv_search_inet_aton=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 -$as_echo "$ac_cv_search_inet_aton" >&6; } -ac_res=$ac_cv_search_inet_aton -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - inet_misc=1; -$as_echo "#define NO_INET_ATON 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 -$as_echo_n "checking for library containing inet_pton... " >&6; } -if ${ac_cv_search_inet_pton+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char inet_pton (); -int -main () -{ -return inet_pton (); - ; - return 0; -} -_ACEOF -for ac_lib in '' resolv nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_inet_pton=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_inet_pton+:} false; then : - break -fi -done -if ${ac_cv_search_inet_pton+:} false; then : - -else - ac_cv_search_inet_pton=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 -$as_echo "$ac_cv_search_inet_pton" >&6; } -ac_res=$ac_cv_search_inet_pton -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - inet_misc=1; -$as_echo "#define NO_INET_PTON 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 -$as_echo_n "checking for library containing inet_ntop... " >&6; } -if ${ac_cv_search_inet_ntop+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char inet_ntop (); -int -main () -{ -return inet_ntop (); - ; - return 0; -} -_ACEOF -for ac_lib in '' resolv nsl; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_inet_ntop=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_inet_ntop+:} false; then : - break -fi -done -if ${ac_cv_search_inet_ntop+:} false; then : - -else - ac_cv_search_inet_ntop=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 -$as_echo "$ac_cv_search_inet_ntop" >&6; } -ac_res=$ac_cv_search_inet_ntop -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else - inet_misc=1; -$as_echo "#define NO_INET_NTOP 1" >>confdefs.h - -fi - - -if test "$inet_misc" = 1; then - INET_MISC=inet_misc.c - -fi - -ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include -#include - -" -if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_SOCKADDR_STORAGE 1 -_ACEOF - - -fi - - -if test "$ac_cv_type_struct_sockaddr_storage" = no; then - ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "$ac_includes_default" -if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : - -$as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h - -fi - -fi - -ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include -" -if test "x$ac_cv_type_struct_addrinfo" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_ADDRINFO 1 -_ACEOF - - -fi - - -ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include -#include -" -if test "x$ac_cv_type_socklen_t" = xyes; then : - -else - -$as_echo "#define socklen_t unsigned int" >>confdefs.h - -fi - - -if test -z "$Tru"; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken glibc with __ss_family" >&5 -$as_echo_n "checking for broken glibc with __ss_family... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -int -main () -{ -struct sockaddr_storage s; s.__ss_family = AF_INET; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define ss_family __ss_family" >>confdefs.h - - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for core IPv6 support" >&5 -$as_echo_n "checking for core IPv6 support... " >&6; } - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define IN_AUTOCONF - #include "include/stdinc.h" -int -main () -{ -struct sockaddr_in6 s; - struct sockaddr_storage t; - s.sin6_family = 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - if test "$CYGWIN" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Cygwin's IPv6 is incomplete" >&5 -$as_echo "no, Cygwin's IPv6 is incomplete" >&6; } - have_v6=no - else - have_v6=yes - -$as_echo "#define IPV6 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6addr_any" >&5 -$as_echo_n "checking for struct in6addr_any... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define IN_AUTOCONF - #include "include/stdinc.h" -int -main () -{ -struct in6_addr a = in6addr_any; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -$as_echo "#define NO_IN6ADDR_ANY 1" >>confdefs.h - - inet_misc=1 - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -have_v6="no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 -$as_echo_n "checking for library containing crypt... " >&6; } -if ${ac_cv_search_crypt+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char crypt (); -int -main () -{ -return crypt (); - ; - return 0; -} -_ACEOF -for ac_lib in '' crypt descrypt; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_crypt=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_crypt+:} false; then : - break -fi -done -if ${ac_cv_search_crypt+:} false; then : - -else - ac_cv_search_crypt=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 -$as_echo "$ac_cv_search_crypt" >&6; } -ac_res=$ac_cv_search_crypt -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - -CRYPT_LIB=$ac_cv_search_crypt - -if test "$CRYPT_LIB" = "none required"; then - unset CRYPT_LIB -elif test "$CRYPT_LIB" = no; then - CRYPT_C=crypt.c - unset CRYPT_LIB -fi - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 -$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } -if ${gcc_cv_header_string+:} false; then : - $as_echo_n "(cached) " >&6 -else - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include - #include , - gcc_cv_header_string=yes, - gcc_cv_header_string=no -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 -$as_echo "$gcc_cv_header_string" >&6; } - -if test "$gcc_cv_header_string" = "yes"; then - -$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 -$as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if ${ac_cv_c_bigendian+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_c_bigendian=unknown - # See if we're dealing with a universal compiler. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __APPLE_CC__ - not a universal capable compiler - #endif - typedef int dummy; - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - # Check for potential -arch flags. It is not universal unless - # there are at least two -arch flags with different values. - ac_arch= - ac_prev= - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do - if test -n "$ac_prev"; then - case $ac_word in - i?86 | x86_64 | ppc | ppc64) - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then - ac_arch=$ac_word - else - ac_cv_c_bigendian=universal - break - fi - ;; - esac - ac_prev= - elif test "x$ac_word" = "x-arch"; then - ac_prev=arch - fi - done -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - # See if sys/param.h defines the BYTE_ORDER macro. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - -int -main () -{ -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ - && LITTLE_ENDIAN) - bogus endian macros - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # It does; now see whether it defined to BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - -int -main () -{ -#if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -int -main () -{ -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) - bogus endian macros - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - # It does; now see whether it defined to _BIG_ENDIAN or not. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -int -main () -{ -#ifndef _BIG_ENDIAN - not big endian - #endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_bigendian=yes -else - ac_cv_c_bigendian=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - if test $ac_cv_c_bigendian = unknown; then - # Compile a test program. - if test "$cross_compiling" = yes; then : - # Try to guess by grepping values from an object file. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -short int ascii_mm[] = - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; - short int ascii_ii[] = - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; - int use_ascii (int i) { - return ascii_mm[i] + ascii_ii[i]; - } - short int ebcdic_ii[] = - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; - short int ebcdic_mm[] = - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; - int use_ebcdic (int i) { - return ebcdic_mm[i] + ebcdic_ii[i]; - } - extern int foo; - -int -main () -{ -return use_ascii (foo) == use_ebcdic (foo); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then - ac_cv_c_bigendian=yes - fi - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then - if test "$ac_cv_c_bigendian" = unknown; then - ac_cv_c_bigendian=no - else - # finding both strings is unlikely to happen, but who knows? - ac_cv_c_bigendian=unknown - fi - fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ - - /* Are we little or big endian? From Harbison&Steele. */ - union - { - long int l; - char c[sizeof (long int)]; - } u; - u.l = 1; - return u.c[sizeof (long int) - 1] == 1; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_c_bigendian=no -else - ac_cv_c_bigendian=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 -$as_echo "$ac_cv_c_bigendian" >&6; } - case $ac_cv_c_bigendian in #( - yes) - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h -;; #( - no) - ;; #( - universal) - -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h - - ;; #( - *) - as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; - esac - - -ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" -if test "x$ac_cv_header_stdarg_h" = xyes; then : - -else - as_fn_error $? "** stdarg.h could not be found - ircd-hybrid will not compile without it **" "$LINENO" 5 -fi - - - - -if test "$ac_cv_c_compiler_gnu" = yes; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 -$as_echo_n "checking for strlcpy... " >&6; } -save_CFLAGS=$CFLAGS -CFLAGS="$CFLAGS -Wimplicit -Werror" - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include -int -main () -{ -char *a = malloc(6), *b = strdup("hello"); - strlcpy(a, b, 6); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 -$as_echo_n "checking for strlcat... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include -int -main () -{ -char *a = malloc(6), *b = strdup("hello"); - strlcat(a, b, 6); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -CFLAGS=$save_CFLAGS - -else - - -for ac_func in strlcat strlcpy -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -fi - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 -$as_echo_n "checking size of int64_t... " >&6; } -if ${ac_cv_sizeof_int64_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_int64_t" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (int64_t) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_int64_t=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 -$as_echo "$ac_cv_sizeof_int64_t" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t -_ACEOF - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 -$as_echo_n "checking size of long long... " >&6; } -if ${ac_cv_sizeof_long_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_long_long" = yes; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (long long) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_long_long=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 -$as_echo "$ac_cv_sizeof_long_long" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long -_ACEOF - - - -if test "$ac_cv_sizeof_int64_t" = 8; then - ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" -if test "x$ac_cv_type_uint64_t" = xyes; then : - -fi - - ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" -if test "x$ac_cv_type_int64_t" = xyes; then : - -fi - -elif test "$ac_cv_sizeof_long_long" = 8; then - ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" -if test "x$ac_cv_type_uint64_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define uint64_t unsigned long long -_ACEOF - -fi - - ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" -if test "x$ac_cv_type_int64_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define int64_t long long -_ACEOF - -fi - -else - as_fn_error $? "Your system doesn't appear to have 64 bit integers. Aborting." "$LINENO" 5 -fi - -ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" -if test "x$ac_cv_type_u_int32_t" = xyes; then : - -else - - ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" -if test "x$ac_cv_type_uint32_t" = xyes; then : - - -$as_echo "#define u_int32_t uint32_t" >>confdefs.h - - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 -$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} - -$as_echo "#define u_int32_t unsigned long int" >>confdefs.h - - -fi - - -fi - - -ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" -if test "x$ac_cv_type_u_int16_t" = xyes; then : - -else - - ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" -if test "x$ac_cv_type_uint16_t" = xyes; then : - - -$as_echo "#define u_int16_t uint16_t" >>confdefs.h - - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 -$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} - -$as_echo "#define u_int16_t unsigned short int" >>confdefs.h - - -fi - - -fi - - -ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include -#include -" -if test "x$ac_cv_type_in_port_t" = xyes; then : - -else - -$as_echo "#define in_port_t u_int16_t" >>confdefs.h - -fi - - -ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include -#include -" -if test "x$ac_cv_type_sa_family_t" = xyes; then : - -else - -$as_echo "#define sa_family_t u_int16_t" >>confdefs.h - -fi - - -for ac_func in socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then - SNPRINTF_C="snprintf.c" -fi - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 -$as_echo_n "checking for OpenSSL... " >&6; } -# Check whether --enable-openssl was given. -if test "${enable_openssl+set}" = set; then : - enableval=$enable_openssl; cf_enable_openssl=$enableval -else - cf_enable_openssl="auto" -fi - - -if test "$cf_enable_openssl" != "no" ; then - cf_openssl_basedir="" - if test "$cf_enable_openssl" != "auto" && - test "$cf_enable_openssl" != "yes" ; then - cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" - else - for dirs in /usr/local/ssl /usr/pkg /usr/local \ - /usr/local/openssl /usr/sfw; do - if test -f "${dirs}/include/openssl/opensslv.h" ; then - cf_openssl_basedir="${dirs}" - break - fi - done - unset dirs - fi - if test ! -z "$cf_openssl_basedir"; then - if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then - SSL_INCLUDES="-I${cf_openssl_basedir}/include" - SSL_LIBS="-L${cf_openssl_basedir}/lib" - else - cf_openssl_basedir="" - fi - else - if test -f "/usr/include/openssl/opensslv.h" ; then - cf_openssl_basedir="/usr" - fi - fi - - if test ! -z "$cf_openssl_basedir"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 -$as_echo "$cf_openssl_basedir" >&6; } - cf_enable_openssl="yes" - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 -$as_echo "not found. Specify a correct path?" >&6; } - cf_enable_openssl="no" - fi - unset cf_openssl_basedir -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 -$as_echo "disabled" >&6; } -fi - -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" -save_LIBS="$LIBS" -LIBS="$LIBS $SSL_LIBS" -if test "$cf_enable_openssl" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 -$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } - if test "$cross_compiling" = yes; then : - cf_openssl_version_ok=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include - #include -int -main () -{ -if (OPENSSL_VERSION_NUMBER >= 0x00906000) - exit(0); else exit(1); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - cf_openssl_version_ok=yes -else - cf_openssl_version_ok=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - - if test "$cf_openssl_version_ok" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 -$as_echo "found" >&6; } - - ENCSPEED=encspeed - - - CPPFLAGS="$CPPFLAGS $SSL_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 -$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } -if ${ac_cv_lib_crypto_RSA_free+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcrypto $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char RSA_free (); -int -main () -{ -return RSA_free (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_crypto_RSA_free=yes -else - ac_cv_lib_crypto_RSA_free=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 -$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } -if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCRYPTO 1 -_ACEOF - - LIBS="-lcrypto $LIBS" - -fi - - if test "$ac_cv_lib_crypto_RSA_free" = yes; then - LIBS="$LIBS -lcrypto" - cf_openssl_ciphers='' - for ac_func in EVP_bf_cfb -do : - ac_fn_c_check_func "$LINENO" "EVP_bf_cfb" "ac_cv_func_EVP_bf_cfb" -if test "x$ac_cv_func_EVP_bf_cfb" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_BF_CFB 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 " -fi -done - - for ac_func in EVP_bf_cfb64 -do : - ac_fn_c_check_func "$LINENO" "EVP_bf_cfb64" "ac_cv_func_EVP_bf_cfb64" -if test "x$ac_cv_func_EVP_bf_cfb64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_BF_CFB64 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 " -fi -done - - for ac_func in EVP_cast5_cfb -do : - ac_fn_c_check_func "$LINENO" "EVP_cast5_cfb" "ac_cv_func_EVP_cast5_cfb" -if test "x$ac_cv_func_EVP_cast5_cfb" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_CAST5_CFB 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 " -fi -done - - for ac_func in EVP_cast5_cfb64 -do : - ac_fn_c_check_func "$LINENO" "EVP_cast5_cfb64" "ac_cv_func_EVP_cast5_cfb64" -if test "x$ac_cv_func_EVP_cast5_cfb64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_CAST5_CFB64 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 " -fi -done - - for ac_func in EVP_idea_cfb -do : - ac_fn_c_check_func "$LINENO" "EVP_idea_cfb" "ac_cv_func_EVP_idea_cfb" -if test "x$ac_cv_func_EVP_idea_cfb" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_IDEA_CFB 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 " -fi -done - - for ac_func in EVP_idea_cfb64 -do : - ac_fn_c_check_func "$LINENO" "EVP_idea_cfb64" "ac_cv_func_EVP_idea_cfb64" -if test "x$ac_cv_func_EVP_idea_cfb64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_IDEA_CFB64 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 " -fi -done - - for ac_func in EVP_rc5_32_12_16_cfb -do : - ac_fn_c_check_func "$LINENO" "EVP_rc5_32_12_16_cfb" "ac_cv_func_EVP_rc5_32_12_16_cfb" -if test "x$ac_cv_func_EVP_rc5_32_12_16_cfb" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_RC5_32_12_16_CFB 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 " -fi -done - - for ac_func in EVP_rc5_32_12_16_cfb64 -do : - ac_fn_c_check_func "$LINENO" "EVP_rc5_32_12_16_cfb64" "ac_cv_func_EVP_rc5_32_12_16_cfb64" -if test "x$ac_cv_func_EVP_rc5_32_12_16_cfb64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_RC5_32_12_16_CFB64 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 " -fi -done - - for ac_func in EVP_des_ede3_cfb -do : - ac_fn_c_check_func "$LINENO" "EVP_des_ede3_cfb" "ac_cv_func_EVP_des_ede3_cfb" -if test "x$ac_cv_func_EVP_des_ede3_cfb" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_DES_EDE3_CFB 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 " -fi -done - - for ac_func in EVP_des_ede3_cfb64 -do : - ac_fn_c_check_func "$LINENO" "EVP_des_ede3_cfb64" "ac_cv_func_EVP_des_ede3_cfb64" -if test "x$ac_cv_func_EVP_des_ede3_cfb64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_DES_EDE3_CFB64 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 " -fi -done - - for ac_func in EVP_des_cfb -do : - ac_fn_c_check_func "$LINENO" "EVP_des_cfb" "ac_cv_func_EVP_des_cfb" -if test "x$ac_cv_func_EVP_des_cfb" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_DES_CFB 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 " -fi -done - - for ac_func in EVP_des_cfb64 -do : - ac_fn_c_check_func "$LINENO" "EVP_des_cfb64" "ac_cv_func_EVP_des_cfb64" -if test "x$ac_cv_func_EVP_des_cfb64" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_EVP_DES_CFB64 1 -_ACEOF - cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 " -fi -done - - fi - SSL_LIBS="$SSL_LIBS -lssl -lcrypto" - SSL_SRCS_ENABLE='$(SSL_SRCS)' - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 -$as_echo "no - OpenSSL support disabled" >&6; } - fi -fi - -CPPFLAGS="$save_CPPFLAGS" -LIBS="$save_LIBS" - - - - -# Check whether --with-zlib-path was given. -if test "${with_zlib_path+set}" = set; then : - withval=$with_zlib_path; LIBS="$LIBS -L$withval" -fi - - -# Check whether --enable-zlib was given. -if test "${enable_zlib+set}" = set; then : - enableval=$enable_zlib; zlib=$enableval -else - zlib=yes -fi - - -if test "$zlib" = yes; then - -ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" -if test "x$ac_cv_header_zlib_h" = xyes; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 -$as_echo_n "checking for zlibVersion in -lz... " >&6; } -if ${ac_cv_lib_z_zlibVersion+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lz $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char zlibVersion (); -int -main () -{ -return zlibVersion (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_z_zlibVersion=yes -else - ac_cv_lib_z_zlibVersion=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 -$as_echo "$ac_cv_lib_z_zlibVersion" >&6; } -if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : - - ZLIB_LD=-lz - - -$as_echo "#define HAVE_LIBZ 1" >>confdefs.h - - -else - zlib=no -fi - - -else - zlib=no -fi - - - -fi - - -# Check whether --enable-poll was given. -if test "${enable_poll+set}" = set; then : - enableval=$enable_poll; SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled" -fi - - -# Check whether --enable-select was given. -if test "${enable_select+set}" = set; then : - enableval=$enable_select; SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled" -fi - - -# Check whether --enable-kqueue was given. -if test "${enable_kqueue+set}" = set; then : - enableval=$enable_kqueue; SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled" -fi - - -# Check whether --enable-devpoll was given. -if test "${enable_devpoll+set}" = set; then : - enableval=$enable_devpoll; SELECT_TYPE_EXPLICIT="devpoll" -echo "Forcing /dev/poll to be enabled" -for ac_header in sys/devpoll.h devpoll.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - -fi - - -# Check whether --enable-rtsigio was given. -if test "${enable_rtsigio+set}" = set; then : - enableval=$enable_rtsigio; SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled" -fi - - -# Check whether --enable-epoll was given. -if test "${enable_epoll+set}" = set; then : - enableval=$enable_epoll; SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled" -fi - - -if test ! -z "$SELECT_TYPE_EXPLICIT"; then - SELECT_TYPE="$SELECT_TYPE_EXPLICIT" -else - -ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" -if test "x$ac_cv_func_kevent" = xyes; then : - - SELECT_TYPE="kqueue" - -else - - ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_epoll_h" = xyes; then : - HAS_EPOLL=1 -else - HAS_EPOLL=0 -fi - - - if test $HAS_EPOLL -eq 1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 -$as_echo_n "checking for epoll support in kernel... " >&6; } - if test "$cross_compiling" = yes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - HAS_EPOLL=0 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) -#if !defined(__NR_epoll_create) -#if defined(__ia64__) -#define __NR_epoll_create 1243 -#elif defined(__x86_64__) -#define __NR_epoll_create 214 -#elif defined(__sparc64__) || defined(__sparc__) -#define __NR_epoll_create 193 -#elif defined(__s390__) || defined(__m68k__) -#define __NR_epoll_create 249 -#elif defined(__ppc64__) || defined(__ppc__) -#define __NR_epoll_create 236 -#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) -#define __NR_epoll_create 224 -#elif defined(__alpha__) -#define __NR_epoll_create 407 -#elif defined(__sh64__) -#define __NR_epoll_create 282 -#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) -#define __NR_epoll_create 254 -#else -#error No system call numbers defined for epoll family. -#endif -#endif -_syscall1(int, epoll_create, int, size) -#endif -main() { return epoll_create(256) == -1 ? 1 : 0; } -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - SELECT_TYPE="epoll" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - HAS_EPOLL=0 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - fi - if test $HAS_EPOLL -eq 0; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5 -$as_echo_n "checking for /dev/poll... " >&6; } - if test -c "/dev/poll"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - for ac_header in devpoll.h sys/devpoll.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - SELECT_TYPE="devpoll" - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RT Signal IO" >&5 -$as_echo_n "checking for RT Signal IO... " >&6; } - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _GNU_SOURCE - #include - #ifdef F_SETSIG - YUP_HAVE_F_SETSIG - #endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then : - - SELECT_TYPE="sigio" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" -if test "x$ac_cv_func_poll" = xyes; then : - SELECT_TYPE="poll" -else - - ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" -if test "x$ac_cv_func_select" = xyes; then : - SELECT_TYPE="select" -else - as_fn_error $? "Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" "$LINENO" 5 - -fi - - -fi - - -fi -rm -f conftest* - - fi - fi - -fi - - -fi - -echo "Using $SELECT_TYPE for select loop." - - -cat >>confdefs.h <<_ACEOF -#define SELECT_TYPE "$SELECT_TYPE" -_ACEOF - - - - - -# Check whether --enable-clobber was given. -if test "${enable_clobber+set}" = set; then : - enableval=$enable_clobber; clobber=$enableval -else - clobber=no -fi - - -if test "$clobber" = yes; then - CLOBBER=yes - -fi - -# Check whether --enable-assert was given. -if test "${enable_assert+set}" = set; then : - enableval=$enable_assert; assert=$enableval -else - assert=no -fi - - -if test "$assert" = no; then - -$as_echo "#define NDEBUG 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 -$as_echo_n "checking if you want to do a profile build... " >&6; } -# Check whether --enable-profile was given. -if test "${enable_profile+set}" = set; then : - enableval=$enable_profile; profile=$enableval -else - profile=no -fi - - -if test "$profile" = yes; then - if test "$ac_cv_c_compiler_gnu" = yes; then - IRC_CFLAGS="$IRC_CFLAGS -pg -static" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5 -$as_echo "yes, adding -pg -static" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 -$as_echo "no, profile builds only work with gcc" >&6; } - fi -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want ElectricFence" >&5 -$as_echo_n "checking if you want ElectricFence... " >&6; } -# Check whether --enable-efence was given. -if test "${enable_efence+set}" = set; then : - enableval=$enable_efence; -if test "$enableval" != no; then - if test ! -z "$enableval" -a "$enableval" != yes; then - LIBS="$LIBS -L$enableval" - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 -$as_echo_n "checking for malloc in -lefence... " >&6; } -if ${ac_cv_lib_efence_malloc+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lefence $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char malloc (); -int -main () -{ -return malloc (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_efence_malloc=yes -else - ac_cv_lib_efence_malloc=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 -$as_echo "$ac_cv_lib_efence_malloc" >&6; } -if test "x$ac_cv_lib_efence_malloc" = xyes; then : - - LIBS="$LIBS -lefence" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 -$as_echo "not found" >&6; } -fi - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want the block allocator" >&5 -$as_echo_n "checking if you want the block allocator... " >&6; } -# Check whether --enable-block-alloc was given. -if test "${enable_block_alloc+set}" = set; then : - enableval=$enable_block_alloc; balloc=$enableval -else - balloc=yes -fi - - -if test "$balloc" = no; then - - -$as_echo "#define NOBALLOC 1" >>confdefs.h - -else - BALLOC_C=balloc.c - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $balloc" >&5 -$as_echo "$balloc" >&6; } - -# Check whether --enable-warnings was given. -if test "${enable_warnings+set}" = set; then : - enableval=$enable_warnings; IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused" -fi - - - -# Check whether --enable-small-net was given. -if test "${enable_small_net+set}" = set; then : - enableval=$enable_small_net; small_net=$enableval -else - small_net=no -fi - - -if test "$small_net" = yes; then - -$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h - - -$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h - - -$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h - - -$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h - - -$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h - - -$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h - - -$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h - - -$as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h - -else - -$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h - - -$as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h - - -$as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h - - -$as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h - - -$as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h - - -$as_echo "#define DNODE_HEAP_SIZE 2048" >>confdefs.h - - -$as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h - - -$as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h - -fi - -# Check whether --enable-efnet was given. -if test "${enable_efnet+set}" = set; then : - enableval=$enable_efnet; efnet=$enableval -else - efnet=no -fi - - -if test "$efnet" = yes; then - -$as_echo "#define EFNET 1" >>confdefs.h - - -$as_echo "#define TS5_ONLY 1" >>confdefs.h - - echo "Building ircd for use with EFnet" - EXAMPLE_CONF=example.efnet.conf -else - -$as_echo "#define INVARIANTS 1" >>confdefs.h - - EXAMPLE_CONF=example.conf -fi - -# Check whether --enable-gline-voting was given. -if test "${enable_gline_voting+set}" = set; then : - enableval=$enable_gline_voting; gline_voting=$enableval -else - gline_voting=yes -fi - - -if test "$gline_voting" = yes; then - -$as_echo "#define GLINE_VOTING 1" >>confdefs.h - - echo "Building ircd with G-Line voting support" -fi - -# Check whether --enable-halfops was given. -if test "${enable_halfops+set}" = set; then : - enableval=$enable_halfops; halfops=$enableval -else - halfops=no -fi - - -if test "$halfops" = yes; then - -$as_echo "#define HALFOPS 1" >>confdefs.h - -fi - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog options" >&5 -$as_echo_n "checking for syslog options... " >&6; } - -# Check whether --enable-syslog was given. -if test "${enable_syslog+set}" = set; then : - enableval=$enable_syslog; - -if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then - -if test "$enableval" != no; then - syslogstuff=core - -for option in $enableval; do -case "$option" in - kill) - syslogstuff="$syslogstuff kill" - -$as_echo "#define SYSLOG_KILL 1" >>confdefs.h - - ;; - squit) - syslogstuff="$syslogstuff squit" - -$as_echo "#define SYSLOG_SQUIT 1" >>confdefs.h - - ;; - connect) - syslogstuff="$syslogstuff connect" - -$as_echo "#define SYSLOG_CONNECT 1" >>confdefs.h - - ;; - users) - syslogstuff="$syslogstuff users" - -$as_echo "#define SYSLOG_USERS 1" >>confdefs.h - - ;; - oper) - syslogstuff="$syslogstuff oper" - -$as_echo "#define SYSLOG_OPER 1" >>confdefs.h - - ;; - yes) - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown event $option" >&5 -$as_echo "$as_me: WARNING: unknown event $option" >&2;} - ;; -esac -done - - if test ! -z "$syslogstuff" -o "$enableval" = yes; then - -$as_echo "#define USE_SYSLOG 1" >>confdefs.h - - fi -else syslogstuff=none -fi - -else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5 -$as_echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;} - syslogstuff=none -fi - -else - syslogstuff=none -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $syslogstuff" >&5 -$as_echo "$syslogstuff" >&6; } - - -# Check whether --with-syslog-facility was given. -if test "${with_syslog_facility+set}" = set; then : - withval=$with_syslog_facility; facility=$withval -else - facility="LOG_LOCAL4" -fi - - -if test "$syslogstuff" != none; then - -cat >>confdefs.h <<_ACEOF -#define LOG_FACILITY $facility -_ACEOF - -fi - - -# Check whether --with-nicklen was given. -if test "${with_nicklen+set}" = set; then : - withval=$with_nicklen; NICKLEN="$withval" -else - NICKLEN="9" -fi - - - -# Check whether --with-topiclen was given. -if test "${with_topiclen+set}" = set; then : - withval=$with_topiclen; - if test $withval -ge 390; then - TOPICLEN=390 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 -$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} - else - TOPICLEN=$withval - fi - -else - TOPICLEN=160 -fi - - - -# Check whether --with-services-name was given. -if test "${with_services_name+set}" = set; then : - withval=$with_services_name; SERVICES_NAME="$withval" -else - SERVICES_NAME="services.oftc.net" -fi - - - -cat >>confdefs.h <<_ACEOF -#define TOPICLEN ${TOPICLEN} -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define NICKLEN (${NICKLEN}+1) -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define SERVICES_NAME "${SERVICES_NAME}" -_ACEOF - - -# Check whether --enable-shared-modules was given. -if test "${enable_shared_modules+set}" = set; then : - enableval=$enable_shared_modules; shared_modules=$enableval -else - shared_modules="yes" -fi - - -if test "$shared_modules" = yes; then - - if test "$profile" = "no"; then - shared_modules="yes" - else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules; cannot coexist with profile builds" >&5 -$as_echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;} - shared_modules="no" - fi - - if test "$CYGWIN" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 -$as_echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} - shared_modules="no" - fi - - if test "$CC" = tcc -a "$TenDRA" = "no"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 -$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} - shared_modules="no" - fi -fi - -if test "$shared_modules" = yes; then - DYNLINK_C=dynlink.c - for ac_header in dlfcn.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - -fi - -done - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 -$as_echo_n "checking for library containing shl_load... " >&6; } -if ${ac_cv_search_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dld; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_shl_load=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_shl_load+:} false; then : - break -fi -done -if ${ac_cv_search_shl_load+:} false; then : - -else - ac_cv_search_shl_load=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 -$as_echo "$ac_cv_search_shl_load" >&6; } -ac_res=$ac_cv_search_shl_load -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - - -$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h - - SUFFIX=".sl" - MOD_TARGET=hpux_shared - SEDOBJ="s/\.o/.sl/g" - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 -$as_echo_n "checking for library containing dlopen... " >&6; } -if ${ac_cv_search_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$LIBS -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dl c_r; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_dlopen=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_dlopen+:} false; then : - break -fi -done -if ${ac_cv_search_dlopen+:} false; then : - -else - ac_cv_search_dlopen=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 -$as_echo "$ac_cv_search_dlopen" >&6; } -ac_res=$ac_cv_search_dlopen -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - - -$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h - - SUFFIX=".so" - MOD_TARGET=shared_modules - SEDOBJ="s/\.o/.so/g" - if test "$AppleGCC" = yes; then - for ac_header in mach-o/dyld.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" -if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MACH_O_DYLD_H 1 -_ACEOF - -fi - -done - - fi - ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" -if test "x$ac_cv_func_dlsym" = xyes; then : - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5 -$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} - shared_modules=no - -fi - - for ac_func in dlfunc dlinfo -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -else - - shared_modules=no - -fi - - -fi - -fi - - -cat >>confdefs.h <<_ACEOF -#define SHARED_SUFFIX "$SUFFIX" -_ACEOF - - -if test "$shared_modules" = yes; then - # The GNU linker requires the -export-dynamic option to make - # all symbols visible in the dynamic symbol table. - hold_ldflags=$LDFLAGS - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5 -$as_echo_n "checking for the ld -export-dynamic flag... " >&6; } - LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -int i; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - found=yes -else - found=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$hold_ldflags - - if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then - found="no, IRIX ld uses -B,dynamic" - LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 -$as_echo "$found" >&6; } - - if test "$found" = yes; then - LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5 -$as_echo_n "checking for compiler option to produce PIC... " >&6; } - if test "$SGS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 -$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } - PICFLAGS="-KPIC -DPIC -G" - fi - - if test "$AppleGCC" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 -$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } - PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" - fi - - if test "$ClangGCC" = "yes"; then - PICFLAGS="-Wl,-undefined -Wl,dynamic_lookup -shared -fPIC -DPIC" - fi - if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5 -$as_echo "HP-UX cc: +z -r -q -n" >&6; } - PICFLAGS="+z -r -q -n -c" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5 -$as_echo_n "checking if +ESfic is required on this platform... " >&6; } - - if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - PICFLAGS="$PICFLAGS +ESfic" - fi - - LDFLAGS="${LDFLAGS} -Wl,-E" - fi - if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5 -$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; } - PICFLAGS="-shared -expect_unresolved '*' " - LDFLAGS="-call_shared" - fi - if test -z "$PICFLAGS"; then - if test "$ac_cv_c_compiler_gnu" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5 -$as_echo "gcc: -fPIC -DPIC -shared" >&6; } - PICFLAGS="-fPIC -DPIC -shared" - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - shared_modules=no - fi - fi -fi - -if test "$shared_modules" = no; then - DYNLINK_C="" - MOD_TARGET="libmodules.a" - MODULES_LIBS="../modules/libmodules.a" - SEDOBJ="" - -$as_echo "#define STATIC_MODULES 1" >>confdefs.h - - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5 -$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;} -fi - - - - - - - - - - - - - - -if test "$prefix" = "NONE"; then - -cat >>confdefs.h <<_ACEOF -#define IRCD_PREFIX "$ac_default_prefix" -_ACEOF - - -else - - - prefix=`echo $prefix | sed 's/\/$//'` - -cat >>confdefs.h <<_ACEOF -#define IRCD_PREFIX "$prefix" -_ACEOF - - -fi - -ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile lib/Makefile lib/pcre/Makefile" - - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, we kill variables containing newlines. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -( - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do - eval ac_val=\$$ac_var - case $ac_val in #( - *${as_nl}*) - case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; - esac - case $ac_var in #( - _ | IFS | as_nl) ;; #( - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( - *) { eval $ac_var=; unset $ac_var;} ;; - esac ;; - esac - done - - (set) 2>&1 | - case $as_nl`(ac_space=' '; set) 2>&1` in #( - *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \. - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; #( - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" - ;; - esac | - sort -) | - sed ' - /^ac_cv_env_/b end - t clear - :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - :end' >>confcache -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else - if test -w "$cache_file"; then - if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} - if test ! -f "$cache_file" || test -h "$cache_file"; then - cat confcache >"$cache_file" - else - case $cache_file in #( - */* | ?:*) - mv -f confcache "$cache_file"$$ && - mv -f "$cache_file"$$ "$cache_file" ;; #( - *) - mv -f confcache "$cache_file" ;; - esac - fi - fi - else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -U= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR - # will be set to the directory where LIBOBJS objects are built. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - - - -: "${CONFIG_STATUS=./config.status}" -ac_write_fail=0 -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -as_write_fail=0 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false - -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 -## -------------------- ## -## M4sh Initialization. ## -## -------------------- ## - -# Be more Bourne compatible -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac -fi - - -as_nl=' -' -export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - -# Find who we are. Look in the path if we contain no directory separator. -as_myself= -case $0 in #(( - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break - done -IFS=$as_save_IFS - - ;; -esac -# We did not find ourselves, most probably we were run as `sh COMMAND' -# in which case we are not to be found in the path. -if test "x$as_myself" = x; then - as_myself=$0 -fi -if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - - -# as_fn_error STATUS ERROR [LINENO LOG_FD] -# ---------------------------------------- -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with STATUS, using 1 if that was 0. -as_fn_error () -{ - as_status=$1; test $as_status -eq 0 && as_status=1 - if test "$4"; then - as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - $as_echo "$as_me: error: $2" >&2 - as_fn_exit $as_status -} # as_fn_error - - -# as_fn_set_status STATUS -# ----------------------- -# Set $? to STATUS, without forking. -as_fn_set_status () -{ - return $1 -} # as_fn_set_status - -# as_fn_exit STATUS -# ----------------- -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. -as_fn_exit () -{ - set +e - as_fn_set_status $1 - exit $1 -} # as_fn_exit - -# as_fn_unset VAR -# --------------- -# Portably unset VAR. -as_fn_unset () -{ - { eval $1=; unset $1;} -} -as_unset=as_fn_unset -# as_fn_append VAR VALUE -# ---------------------- -# Append the text in VALUE to the end of the definition contained in VAR. Take -# advantage of any shell optimizations that allow amortized linear growth over -# repeated appends, instead of the typical quadratic growth present in naive -# implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : - eval 'as_fn_append () - { - eval $1+=\$2 - }' -else - as_fn_append () - { - eval $1=\$$1\$2 - } -fi # as_fn_append - -# as_fn_arith ARG... -# ------------------ -# Perform arithmetic evaluation on the ARGs, and store the result in the -# global $as_val. Take advantage of shells that can avoid forks. The arguments -# must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : - eval 'as_fn_arith () - { - as_val=$(( $* )) - }' -else - as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } -fi # as_fn_arith - - -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi - -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - -as_me=`$as_basename -- "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in #((((( --n*) - case `echo 'xy\c'` in - *c*) ECHO_T=' ';; # ECHO_T is single tab character. - xy) ECHO_C='\c';; - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null - ECHO_T=' ';; - esac;; -*) - ECHO_N='-n';; -esac - -rm -f conf$$ conf$$.exe conf$$.file -if test -d conf$$.dir; then - rm -f conf$$.dir/conf$$.file -else - rm -f conf$$.dir - mkdir conf$$.dir 2>/dev/null -fi -if (echo >conf$$.file) 2>/dev/null; then - if ln -s conf$$.file conf$$ 2>/dev/null; then - as_ln_s='ln -s' - # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -pR' - elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln - else - as_ln_s='cp -pR' - fi -else - as_ln_s='cp -pR' -fi -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file -rmdir conf$$.dir 2>/dev/null - - -# as_fn_mkdir_p -# ------------- -# Create "$as_dir" as a directory, including parents if necessary. -as_fn_mkdir_p () -{ - - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || eval $as_mkdir_p || { - as_dirs= - while :; do - case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( - *) as_qdir=$as_dir;; - esac - as_dirs="'$as_qdir' $as_dirs" - as_dir=`$as_dirname -- "$as_dir" || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - test -d "$as_dir" && break - done - test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" - - -} # as_fn_mkdir_p -if mkdir -p . 2>/dev/null; then - as_mkdir_p='mkdir -p "$as_dir"' -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - - -# as_fn_executable_p FILE -# ----------------------- -# Test if FILE is an executable regular file. -as_fn_executable_p () -{ - test -f "$1" && test -x "$1" -} # as_fn_executable_p -as_test_x='test -x' -as_executable_p=as_fn_executable_p - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -exec 6>&1 -## ----------------------------------- ## -## Main body of $CONFIG_STATUS script. ## -## ----------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# Save the log message, to keep $0 and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. -ac_log=" -This file was extended by ircd-hybrid $as_me 7.2.2, which was -generated by GNU Autoconf 2.69. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -on `(hostname || uname -n) 2>/dev/null | sed 1q` -" - -_ACEOF - -case $ac_config_files in *" -"*) set x $ac_config_files; shift; ac_config_files=$*;; -esac - -case $ac_config_headers in *" -"*) set x $ac_config_headers; shift; ac_config_headers=$*;; -esac - - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# Files that config.status was made for. -config_files="$ac_config_files" -config_headers="$ac_config_headers" - -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions -from templates according to the current configuration. Unless the files -and actions are specified as TAGs, all are instantiated by default. - -Usage: $0 [OPTION]... [TAG]... - - -h, --help print this help, then exit - -V, --version print version number and configuration settings, then exit - --config print configuration, then exit - -q, --quiet, --silent - do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Report bugs to the package provider." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -ircd-hybrid config.status 7.2.2 -configured by $0, generated by GNU Autoconf 2.69, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2012 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." - -ac_pwd='$ac_pwd' -srcdir='$srcdir' -INSTALL='$INSTALL' -test -n "\$AWK" || AWK=awk -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# The default lists apply if the user does not specify any file. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=?*) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` - ac_shift=: - ;; - --*=) - ac_option=`expr "X$1" : 'X\([^=]*\)='` - ac_optarg= - ac_shift=: - ;; - *) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - esac - - case $ac_option in - # Handling of the options. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - '') as_fn_error $? "missing file argument" ;; - esac - as_fn_append CONFIG_FILES " '$ac_optarg'" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append CONFIG_HEADERS " '$ac_optarg'" - ac_need_defaults=false;; - --he | --h) - # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; - --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; - - *) as_fn_append ac_config_targets " $1" - ac_need_defaults=false ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -if \$ac_cs_recheck; then - set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion - shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 - CONFIG_SHELL='$SHELL' - export CONFIG_SHELL - exec "\$@" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX - $as_echo "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - -# Handling of arguments. -for ac_config_target in $ac_config_targets -do - case $ac_config_target in - "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; - "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; - "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; - "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; - "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; - "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; - "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; - "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;; - - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; - esac -done - - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason against having it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Hook for its removal unless debugging. -# Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. -$debug || -{ - tmp= ac_tmp= - trap 'exit_status=$? - : "${ac_tmp:=$tmp}" - { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status -' 0 - trap 'as_fn_exit 1' 1 2 13 15 -} -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -d "$tmp" -} || -{ - tmp=./conf$$-$RANDOM - (umask 077 && mkdir "$tmp") -} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 -ac_tmp=$tmp - -# Set up the scripts for CONFIG_FILES section. -# No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. -if test -n "$CONFIG_FILES"; then - - -ac_cr=`echo X | tr X '\015'` -# On cygwin, bash can eat \r inside `` if the user requested igncr. -# But we know of no other shell where ac_cr would be empty at this -# point, so we can use a bashism as a fallback. -if test "x$ac_cr" = x; then - eval ac_cr=\$\'\\r\' -fi -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then - ac_cs_awk_cr='\\r' -else - ac_cs_awk_cr=$ac_cr -fi - -echo 'BEGIN {' >"$ac_tmp/subs1.awk" && -_ACEOF - - -{ - echo "cat >conf$$subs.awk <<_ACEOF" && - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && - echo "_ACEOF" -} >conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 -ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` -ac_delim='%!_!# ' -for ac_last_try in false false false false false :; do - . ./conf$$subs.sh || - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` - if test $ac_delim_n = $ac_delim_num; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done -rm -f conf$$subs.sh - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && -_ACEOF -sed -n ' -h -s/^/S["/; s/!.*/"]=/ -p -g -s/^[^!]*!// -:repl -t repl -s/'"$ac_delim"'$// -t delim -:nl -h -s/\(.\{148\}\)..*/\1/ -t more1 -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ -p -n -b repl -:more1 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t nl -:delim -h -s/\(.\{148\}\)..*/\1/ -t more2 -s/["\\]/\\&/g; s/^/"/; s/$/"/ -p -b -:more2 -s/["\\]/\\&/g; s/^/"/; s/$/"\\/ -p -g -s/.\{148\}// -t delim -' >$CONFIG_STATUS || ac_write_fail=1 -rm -f conf$$subs.awk -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -_ACAWK -cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && - for (key in S) S_is_set[key] = 1 - FS = "" - -} -{ - line = $ 0 - nfields = split(line, field, "@") - substed = 0 - len = length(field[1]) - for (i = 2; i < nfields; i++) { - key = field[i] - keylen = length(key) - if (S_is_set[key]) { - value = S[key] - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) - len += length(value) + length(field[++i]) - substed = 1 - } else - len += 1 + keylen - } - - print line -} - -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" -else - cat -fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ - || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 -_ACEOF - -# VPATH may cause trouble with some makes, so we remove sole $(srcdir), -# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ -h -s/// -s/^/:/ -s/[ ]*$/:/ -s/:\$(srcdir):/:/g -s/:\${srcdir}:/:/g -s/:@srcdir@:/:/g -s/^:*// -s/:*$// -x -s/\(=[ ]*\).*/\1/ -G -s/\n// -s/^[^=]*=[ ]*$// -}' -fi - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -fi # test -n "$CONFIG_FILES" - -# Set up the scripts for CONFIG_HEADERS section. -# No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. -if test -n "$CONFIG_HEADERS"; then -cat >"$ac_tmp/defines.awk" <<\_ACAWK || -BEGIN { -_ACEOF - -# Transform confdefs.h into an awk script `defines.awk', embedded as -# here-document in config.status, that substitutes the proper values into -# config.h.in to produce config.h. - -# Create a delimiter string that does not exist in confdefs.h, to ease -# handling of long lines. -ac_delim='%!_!# ' -for ac_last_try in false false :; do - ac_tt=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_tt"; then - break - elif $ac_last_try; then - as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 - else - ac_delim="$ac_delim!$ac_delim _$ac_delim!! " - fi -done - -# For the awk script, D is an array of macro values keyed by name, -# likewise P contains macro parameters if any. Preserve backslash -# newline sequences. - -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* -sed -n ' -s/.\{148\}/&'"$ac_delim"'/g -t rset -:rset -s/^[ ]*#[ ]*define[ ][ ]*/ / -t def -d -:def -s/\\$// -t bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3"/p -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p -d -:bsnl -s/["\\]/\\&/g -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ -D["\1"]=" \3\\\\\\n"\\/p -t cont -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p -t cont -d -:cont -n -s/.\{148\}/&'"$ac_delim"'/g -t clear -:clear -s/\\$// -t bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/"/p -d -:bsnlc -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p -b cont -' >$CONFIG_STATUS || ac_write_fail=1 - -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - for (key in D) D_is_set[key] = 1 - FS = "" -} -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { - line = \$ 0 - split(line, arg, " ") - if (arg[1] == "#") { - defundef = arg[2] - mac1 = arg[3] - } else { - defundef = substr(arg[1], 2) - mac1 = arg[2] - } - split(mac1, mac2, "(") #) - macro = mac2[1] - prefix = substr(line, 1, index(line, defundef) - 1) - if (D_is_set[macro]) { - # Preserve the white space surrounding the "#". - print prefix "define", macro P[macro] D[macro] - next - } else { - # Replace #undef with comments. This is necessary, for example, - # in the case of _POSIX_SOURCE, which is predefined and required - # on some systems where configure will not decide to define it. - if (defundef == "undef") { - print "/*", prefix defundef, macro, "*/" - next - } - } -} -{ print } -_ACAWK -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 -fi # test -n "$CONFIG_HEADERS" - - -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " -shift -for ac_tag -do - case $ac_tag in - :[FHLC]) ac_mode=$ac_tag; continue;; - esac - case $ac_mode$ac_tag in - :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; - :[FH]-) ac_tag=-:-;; - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; - esac - ac_save_IFS=$IFS - IFS=: - set x $ac_tag - IFS=$ac_save_IFS - shift - ac_file=$1 - shift - - case $ac_mode in - :L) ac_source=$1;; - :[FH]) - ac_file_inputs= - for ac_f - do - case $ac_f in - -) ac_f="$ac_tmp/stdin";; - *) # Look for the file first in the build tree, then in the source tree - # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. - test -f "$ac_f" || - case $ac_f in - [\\/$]*) false;; - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; - esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; - esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac - as_fn_append ac_file_inputs " '$ac_f'" - done - - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | - sed 's/[\\\\&|]/\\\\&/g'`;; #( - *) ac_sed_conf_input=$configure_input;; - esac - - case $ac_tag in - *:-:* | *:-) cat >"$ac_tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; - esac - ;; - esac - - ac_dir=`$as_dirname -- "$ac_file" || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - as_dir="$ac_dir"; as_fn_mkdir_p - ac_builddir=. - -case "$ac_dir" in -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; -*) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` - case $ac_top_builddir_sub in - "") ac_top_builddir_sub=. ac_top_build_prefix= ;; - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; - esac ;; -esac -ac_abs_top_builddir=$ac_pwd -ac_abs_builddir=$ac_pwd$ac_dir_suffix -# for backward compatibility: -ac_top_builddir=$ac_top_build_prefix - -case $srcdir in - .) # We are building in place. - ac_srcdir=. - ac_top_srcdir=$ac_top_builddir_sub - ac_abs_top_srcdir=$ac_pwd ;; - [\\/]* | ?:[\\/]* ) # Absolute name. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir - ac_abs_top_srcdir=$srcdir ;; - *) # Relative name. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_build_prefix$srcdir - ac_abs_top_srcdir=$ac_pwd/$srcdir ;; -esac -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix - - - case $ac_mode in - :F) - # - # CONFIG_FILE - # - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; - esac -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -# If the template does not know about datarootdir, expand it. -# FIXME: This hack should be removed a few years after 2.60. -ac_datarootdir_hack=; ac_datarootdir_seen= -ac_sed_dataroot=' -/datarootdir/ { - p - q -} -/@datadir@/p -/@docdir@/p -/@infodir@/p -/@localedir@/p -/@mandir@/p' -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in -*datarootdir*) ac_datarootdir_seen=yes;; -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 - ac_datarootdir_hack=' - s&@datadir@&$datadir&g - s&@docdir@&$docdir&g - s&@infodir@&$infodir&g - s&@localedir@&$localedir&g - s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; -esac -_ACEOF - -# Neutralize VPATH when `$srcdir' = `.'. -# Shell code in configure.ac might set extrasub. -# FIXME: do we really want to maintain this feature? -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_sed_extra="$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s|@configure_input@|$ac_sed_conf_input|;t t -s&@top_builddir@&$ac_top_builddir_sub&;t t -s&@top_build_prefix@&$ac_top_build_prefix&;t t -s&@srcdir@&$ac_srcdir&;t t -s&@abs_srcdir@&$ac_abs_srcdir&;t t -s&@top_srcdir@&$ac_top_srcdir&;t t -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t -s&@builddir@&$ac_builddir&;t t -s&@abs_builddir@&$ac_abs_builddir&;t t -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t -s&@INSTALL@&$ac_INSTALL&;t t -$ac_datarootdir_hack -" -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ - >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ - "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined" >&2;} - - rm -f "$ac_tmp/stdin" - case $ac_file in - -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; - *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; - esac \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - ;; - :H) - # - # CONFIG_HEADER - # - if test x"$ac_file" != x-; then - { - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" - } >"$ac_tmp/config.h" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} - else - rm -f "$ac_file" - mv "$ac_tmp/config.h" "$ac_file" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - fi - else - $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ - || as_fn_error $? "could not create -" "$LINENO" 5 - fi - ;; - - - esac - -done # for ac_tag - - -as_fn_exit 0 -_ACEOF -ac_clean_files=$ac_clean_files_save - -test $ac_write_fail = 0 || - as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || as_fn_exit 1 -fi -if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - - -rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend - - -echo -echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" -echo - -echo "Installing into: $prefix" - -echo "Ziplinks ................ $zlib" - -if test ! -z "$cf_openssl_ciphers"; then - tmpresult="yes - ${cf_openssl_ciphers}" -else - tmpresult=no -fi - -echo "OpenSSL ................. $tmpresult" - -if test "$shared_modules" = yes; then - tmpresult=shared -else - tmpresult=static -fi - -echo "Modules ................. $tmpresult" -echo "IPv6 support ............ $have_v6" -echo "Net I/O implementation .. $SELECT_TYPE" - -if test "$efnet" = "yes"; then - tmpresult="yes (use example.efnet.conf)" -else - tmpresult="no (use example.conf)" -fi - -echo "EFnet server ............ $tmpresult" -echo "Halfops support ......... $halfops" -echo "Small network ........... $small_net" -echo "G-Line voting ........... $gline_voting" -echo -echo "Configured limits:" -echo "NICKLEN ................. $NICKLEN" -echo "TOPICLEN ................ $TOPICLEN" -echo diff --git a/configure.ac b/configure.ac index 9f1de731a..88615ddbb 100644 --- a/configure.ac +++ b/configure.ac @@ -1,1203 +1,154 @@ -dnl $Id$ -dnl Process this file with autoconf to produce a configure script. +# Inspired by work Copyright (C) 2006 Luca Filipozzi +# vim: set fdm=marker ts=2 sw=2 et: -dnl TODO: clean up all the OpenSSL and shared module checking stuff; -dnl the most major changes have already been made and it looks like -dnl said functions need to be just about as complex as they already are. +AC_PREREQ(2.59) +AC_INIT([oftc-hybrid],[1.7.0]) -AC_PREREQ(2.57) +AC_CONFIG_MACRO_DIR([m4]) -dnl Sneaky way to get an Id tag into the configure script -AC_COPYRIGHT([$Id$]) +AC_USE_SYSTEM_EXTENSIONS -AC_INIT([ircd-hybrid],[7.2.2]) +AM_INIT_AUTOMAKE([subdir-objects]) +AM_SILENT_RULES([yes]) +LT_INIT([dlopen]) +AC_CONFIG_HEADERS([include/setup.h]) +AM_MAINTAINER_MODE +LTDL_INIT([convenience]) +AC_LIBTOOL_DLOPEN +AM_ENABLE_SHARED -AC_CONFIG_HEADER(include/setup.h) +# Checks for programs. -AC_PREFIX_DEFAULT(/usr/local/ircd) +CFLAGS="-g -Wall -Wextra -Wno-missing-braces -Wno-padded -Wno-unused-parameter \ + -Wno-documentation -Wno-gnu -Wno-used-but-marked-unused \ + -Wno-missing-field-initializers -Wno-static-in-inline \ + -Wno-missing-variable-declarations -Wno-error=deprecated-declarations" -AC_GNU_SOURCE - -OLD_CFLAGS="$CFLAGS" -dnl Checks for programs. -AC_PROG_CC -AC_LANG(C) - -dnl Make sure autoconf doesn't interfere with cflags -jmallett -CFLAGS="$OLD_CFLAGS" - -dnl Check for various compilers. -jmallett -dnl But if $CC turns out to be gcc, sure as hell it's, well, gcc. -joshk - -if test "$ac_cv_c_compiler_gnu" != yes; then - -SGS=no -AC_MSG_CHECKING($CC -version for TenDRA or MIPSpro) -case `$CC -version 2>&1` in -*TenDRA*) - AC_MSG_RESULT([yes, TenDRA]) - IRC_CFLAGS="" - CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem" - SGS=yes - TenDRA=yes -;; -*MIPSpro*) - AC_MSG_RESULT([yes, MIPSpro]) - MIPSpro=yes - SGS=yes -;; -*) - AC_MSG_RESULT(no) - TenDRA=no - MIPSpro=no -;; -esac - -AC_MSG_CHECKING([$CC -V for Sun Workshop, Forte, HPUX or Tru64 cc]) -case `$CC -V 2>&1` in -*Sun*WorkShop* | *Forte*Developer* | *Sun*C*) - AC_MSG_RESULT(Sun Workshop/Forte) - IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" - SunWorkShop=yes - SGS=yes -;; -*Tru64*) - AC_MSG_RESULT(Tru64 cc) - IRC_CFLAGS="" - CPPFLAGS="-I/usr/local/include" - Tru=yes -;; -*HP*ANSI*) - AC_MSG_RESULT(HPUX cc) - HPUX=yes - IRC_CFLAGS="+e" -;; -*) - AC_MSG_RESULT(no) -;; -esac - -fi - -AC_MSG_CHECKING([uname -s for Cygwin, Solaris or HPUX]) -case `uname -s` in - HP-UX*) - dnl only do this if we haven't already detected the newer one - dnl and we're not already using gcc - - if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then - AC_MSG_RESULT(assuming old HPUX with its own cc) - IRC_CFLAGS="$IRC_CFLAGS +e" - HPUX=yes - else - AC_MSG_RESULT(already using newer HPUX) - fi - ;; - CYGWIN*) - AC_MSG_RESULT(Cygwin) - CYGWIN=yes - ;; - SunOS*) - AC_MSG_RESULT(SunOS or Solaris) - AC_DEFINE(__EXTENSIONS__, 1, [This is needed to use strtok_r on Solaris.]) - ;; - *) - AC_MSG_RESULT(no) - ;; -esac - -if test "$ac_cv_c_compiler_gnu" = yes; then - AC_MSG_CHECKING(if $CC is clang) - - if expr "`$CC -v 2>&1`" : ".*clang.*" >/dev/null; then - ClangGCC=yes - else - ClangGCC=no - fi - - AC_MSG_RESULT($ClangGCC) -fi - -if test "$ac_cv_c_compiler_gnu" = yes; then - AC_MSG_CHECKING(if $CC is Apple GCC) - - if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then - AppleGCC=yes - else - AppleGCC=no - fi - - AC_MSG_RESULT($AppleGCC) - - IRC_CFLAGS="$IRC_CFLAGS -Wall" -fi - -dnl If we support -g, use it! -if test "$ac_cv_prog_cc_g" = yes; then - dnl Tru64 needs -g3 for -O2 - if test "$Tru" = yes; then - IRC_CFLAGS="$IRC_CFLAGS -g3" - else - IRC_CFLAGS="$IRC_CFLAGS -g" - fi -fi - -dnl SVR4 SGS based on what we know about the compiler -jmallett -AC_MSG_CHECKING(if $CC supports the SVR4 SGS interfaces) -if test "$SGS" = "yes"; then - AC_MSG_RESULT(yes) -else - AC_MSG_RESULT(no) -fi - -dnl We prefer gcc -MM because it's a lot less bloated -AC_PATH_PROG(MKDEP, mkdep) -AC_PATH_PROG(MAKEDEPEND, makedepend) - -AC_MSG_CHECKING(how to generate dependency info) - -STDOUT="> .depend" - -if test "$ac_cv_c_compiler_gnu" = yes; then - AC_MSG_RESULT(gcc -MM) - MKDEP="$CC -MM" -elif test ! -z "$MKDEP"; then - AC_MSG_RESULT(mkdep) - - dnl Tru64's mkdep is very loud - if test -z "$Tru"; then - STDOUT="" - else - STDOUT=" 2> /dev/null" - fi -elif test "$SunWorkShop" = yes; then - AC_MSG_RESULT($CC -xM) - MKDEP="$CC -xM" - STDOUT="> .depend 2> /dev/null" -elif test ! -z "$MAKEDEPEND"; then - AC_MSG_RESULT(makedepend) - MKDEP="$MAKEDEPEND -f-" -else - AC_MSG_RESULT([nothing suitable.. forget it!]) - MKDEP=":" -fi +AX_ARG_ENABLE_DEBUGGING +AX_ARG_ENABLE_PROFILING -AC_SUBST(MKDEP) -AC_SUBST(STDOUT) +C_FLAGS_CHECK([-Weverything]) -dnl check for /dev/null so we can use it to hold evil fd's -AC_MSG_CHECKING([for /dev/null]) -if test -c /dev/null ; then - AC_DEFINE(PATH_DEVNULL, "/dev/null", [Path to /dev/null]) - AC_MSG_RESULT(yes) -else - AC_DEFINE(PATH_DEVNULL, "devnull.log", [Path to /dev/null]) - AC_MSG_RESULT(no - using devnull.log) -fi - -dnl jdc -- If CFLAGS is defined, best use it everywhere... -dnl NOTE: jv says it must be added to the *END*, because things like -dnl "gcc -O9 -O2" will result in -O2 getting preference. How stupid. -if test ! -z "$CFLAGS"; then - IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" -fi - -AC_ISC_POSIX -AC_C_INLINE -AC_PROG_GCC_TRADITIONAL -AC_PROG_MAKE_SET AC_PROG_INSTALL -AC_PATH_PROG(RM, rm) -AC_PATH_PROG(CP, cp) -AC_PATH_PROG(MV, mv) -AC_PATH_PROG(LN, ln) -AC_PATH_PROG(SED, sed) -AC_PATH_PROG(AR, ar) -AC_PATH_PROG(LD, ld) -AC_PATH_PROG(TEST, [test], [test]) +AC_GNU_SOURCE +AC_PROG_CC_C99 + AS_IF([test "$ac_cv_prog_cc_c99" = "no"], + [AC_MSG_ERROR([no C99 compiler found. Aborting.])]) +AC_PROG_RANLIB +AC_PROG_LIBTOOL +LIBTOOL="$LIBTOOL --silent" +AM_PROG_LEX AC_PROG_YACC - -dnl AC_PROG_YACC defaults to yacc unconditionally if nothing can be found -if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then - AC_MSG_ERROR([could not locate a suitable parser generator; install bison, yacc, or byacc]) -fi - -AC_PROG_LEX -if test "$LEX" = ":"; then - AC_MSG_ERROR([could not locate a suitable lexical generator, install flex or lex.]) -fi - - -dnl use directory structure of cached as default (hack) -if test "$libexecdir" = '${exec_prefix}/libexec' && - test "$localstatedir" = '${prefix}/var'; then - libexecdir='${bindir}' - localstatedir='${prefix}' -fi - -dnl Checks for header files. -AC_HEADER_STDC - -AC_CHECK_HEADERS([crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h]) - -dnl Networking Functions -dnl ==================== - -AC_SEARCH_LIBS(socket, socket, , [AC_MSG_ERROR([You have no socket()! Aborting.])]) - -dnl Don't use them if they're available natively... else, they're available in inet_misc -AC_SEARCH_LIBS(inet_aton, resolv, , [inet_misc=1; AC_DEFINE(NO_INET_ATON, 1, [Define if you have no native inet_aton() function.])]) -AC_SEARCH_LIBS(inet_pton, resolv nsl, , [inet_misc=1; AC_DEFINE(NO_INET_PTON, 1, [Define if you have no native inet_pton() function.])]) -AC_SEARCH_LIBS(inet_ntop, resolv nsl, , [inet_misc=1; AC_DEFINE(NO_INET_NTOP, 1, [Define if you have no native inet_ntop() function.])]) - -if test "$inet_misc" = 1; then - AC_SUBST(INET_MISC, inet_misc.c) -fi - -AC_CHECK_TYPES([struct sockaddr_storage], , , -[[#include -#include -]]) - -if test "$ac_cv_type_struct_sockaddr_storage" = no; then - AC_CHECK_MEMBER([struct sockaddr_in.sin_len], - [AC_DEFINE(SOCKADDR_IN_HAS_LEN, 1, [Define to 1 if sockaddr_in has a 'sin_len' member.])]) -fi - -AC_CHECK_TYPES([struct addrinfo], , , [[#include ]]) - -AC_CHECK_TYPE(socklen_t, , -[AC_DEFINE([socklen_t], [unsigned int], -[If we don't have a real socklen_t, unsigned int is good enough.])], -[#include -#include ]) - -dnl Tru64 accepts *both* -if test -z "$Tru"; then - -AC_MSG_CHECKING(for broken glibc with __ss_family) -AC_COMPILE_IFELSE( -[AC_LANG_PROGRAM( -[#include -#include ], -[struct sockaddr_storage s; s.__ss_family = AF_INET;])], -[ - AC_MSG_RESULT(yes) - AC_DEFINE(ss_family, __ss_family, [Broken glibc implementations use __ss_family instead of ss_family. Define to __ss_family if true.]) -], -[AC_MSG_RESULT(no)]) - -fi - -AC_MSG_CHECKING([for core IPv6 support]) - -AC_COMPILE_IFELSE( -[AC_LANG_PROGRAM( - [[#define IN_AUTOCONF - #include "include/stdinc.h"]], - [[struct sockaddr_in6 s; - struct sockaddr_storage t; - s.sin6_family = 0;]] - )], -[ - if test "$CYGWIN" = "yes"; then - AC_MSG_RESULT([no, Cygwin's IPv6 is incomplete]) - have_v6=no - else - have_v6=yes - AC_DEFINE(IPV6, 1, [Define if IPv6 support is present and available.]) - AC_MSG_RESULT(yes) - AC_MSG_CHECKING([for struct in6addr_any]) - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[#define IN_AUTOCONF - #include "include/stdinc.h"]], - [[struct in6_addr a = in6addr_any;]] - )], - [AC_MSG_RESULT(yes)], - [ - AC_MSG_RESULT(no) - AC_DEFINE(NO_IN6ADDR_ANY, 1, [Define to 1 if your system has no in6addr_any.]) - inet_misc=1 - ] - ) - fi -], -[AC_MSG_RESULT(no) -have_v6="no"]) - -AC_SEARCH_LIBS(crypt, [crypt descrypt],,) - -CRYPT_LIB=$ac_cv_search_crypt - -if test "$CRYPT_LIB" = "none required"; then - unset CRYPT_LIB -elif test "$CRYPT_LIB" = no; then - CRYPT_C=crypt.c - unset CRYPT_LIB -fi - -AC_SUBST(CRYPT_C) -AC_SUBST(CRYPT_LIB) - -dnl See whether we can include both string.h and strings.h. -AC_CACHE_CHECK([whether string.h and strings.h may both be included], -gcc_cv_header_string, -[ - AC_COMPILE_IFELSE([AC_LANG_SOURCE([ - [#include - #include ], - [gcc_cv_header_string=yes], - [gcc_cv_header_string=no]])]) -]) - -if test "$gcc_cv_header_string" = "yes"; then - AC_DEFINE(STRING_WITH_STRINGS, 1, [Define to 1 if string.h may be included along with strings.h]) -fi - +AC_PROG_AWK +AC_PROG_EGREP +AC_PATH_PROG([TAIL],[tail]) +AM_PROG_CC_C_O + +# Checks for libraries. +AX_CHECK_OPENSSL([AC_CHECK_LIB(crypto, RSA_free) + AS_IF([test "$ac_cv_lib_crypto_RSA_free" = "yes"], + [AC_CHECK_FUNCS(EVP_bf_cfb \ + EVP_cast5_cfb \ + EVP_idea_cfb \ + EVP_rc5_32_12_16_cfb \ + EVP_des_ede3_cfb \ + EVP_des_cfb)])], [AC_MSG_RESULT(no - OpenSSL support disabled) + cf_enable_openssl="no"]) +AX_CHECK_LIB_IPV4 +AX_CHECK_LIB_IPV6 +AX_CHECK_LIB_CRYPT + +# Checks for header files. +AC_CHECK_HEADERS([sys/resource.h]) # ick + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_C_INLINE +AC_C_VOLATILE AC_C_BIGENDIAN -dnl Check for stdarg.h - if we can't find it, halt configure -AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** stdarg.h could not be found - ircd-hybrid will not compile without it **])]) - -dnl Checks for the existence of strlcat, strlcpy, basename... -dnl This more reliable test only works with gcc though. - -if test "$ac_cv_c_compiler_gnu" = yes; then - -AC_MSG_CHECKING(for strlcpy) -save_CFLAGS=$CFLAGS -CFLAGS="$CFLAGS -Wimplicit -Werror" - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include - #include ]], - [[char *a = malloc(6), *b = strdup("hello"); - strlcpy(a, b, 6);]] - )], - [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_STRLCPY, 1, [Define if strlcpy is available (most BSDs.)])], - [AC_MSG_RESULT(no)] -) - -AC_MSG_CHECKING(for strlcat) -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include - #include ]], - [[char *a = malloc(6), *b = strdup("hello"); - strlcat(a, b, 6);]] - )], - [AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available (most BSDs.)])], - [AC_MSG_RESULT(no)] -) - -CFLAGS=$save_CFLAGS - -else - -dnl Better than nothing. The more complicated test above probably fixes powerpc, -dnl so who cares. - -AC_CHECK_FUNCS([strlcat strlcpy]) - -fi - -AC_CHECK_SIZEOF(int64_t) -AC_CHECK_SIZEOF(long long) - -if test "$ac_cv_sizeof_int64_t" = 8; then - AC_CHECK_TYPE(uint64_t) - AC_CHECK_TYPE(int64_t) -elif test "$ac_cv_sizeof_long_long" = 8; then - AC_CHECK_TYPE(uint64_t, unsigned long long) - AC_CHECK_TYPE(int64_t, long long) -else - AC_MSG_ERROR([Your system doesn't appear to have 64 bit integers. Aborting.]) -fi - -AC_CHECK_TYPE([u_int32_t], [], -[ - AC_CHECK_TYPE([uint32_t], - [ - AC_DEFINE(u_int32_t, [uint32_t], [If system does not define u_int32_t, define a reasonable substitute.]) - ], - [ - AC_MSG_WARN([system has no u_int32_t or uint32_t, default to unsigned long int]) - AC_DEFINE(u_int32_t, [unsigned long int], [If system does not define u_int32_t, define to unsigned long int here.]) - ]) -]) - -AC_CHECK_TYPE([u_int16_t], [], -[ - AC_CHECK_TYPE([uint16_t], - [ - AC_DEFINE(u_int16_t, [uint16_t], [If system does not define u_int16_t, define a usable substitute]) - ], - [ - AC_MSG_WARN([system has no u_int16_t or uint16_t, default to unsigned short int]) - AC_DEFINE(u_int16_t, [unsigned short int], [If system does not define u_int16_t, define a usable substitute.]) - ]) -]) - -AC_CHECK_TYPE([in_port_t], [], -[AC_DEFINE(in_port_t, [u_int16_t], [If system does not define in_port_t, define it to what it should be.])], -[[#include -#include ]]) - -AC_CHECK_TYPE([sa_family_t], [], -[AC_DEFINE(sa_family_t, [u_int16_t], [If system does not define sa_family_t, define it here.])], -[[#include -#include ]]) - -dnl check for various functions... -AC_CHECK_FUNCS([socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep]) - -if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then - SNPRINTF_C="snprintf.c" -fi - -AC_SUBST(SNPRINTF_C) - -dnl Specialized functions checks -dnl ============================ - -dnl OpenSSL support -AC_MSG_CHECKING(for OpenSSL) -AC_ARG_ENABLE(openssl, -[AC_HELP_STRING([--enable-openssl[=DIR]],[Enable OpenSSL support (DIR optional).]) -AC_HELP_STRING([--disable-openssl],[Disable OpenSSL support.])], -[cf_enable_openssl=$enableval], -[cf_enable_openssl="auto"]) - -if test "$cf_enable_openssl" != "no" ; then - cf_openssl_basedir="" - if test "$cf_enable_openssl" != "auto" && - test "$cf_enable_openssl" != "yes" ; then - dnl Support for --enable-openssl=/some/place - cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" - else - dnl Do the auto-probe here. Check some common directory paths. - for dirs in /usr/local/ssl /usr/pkg /usr/local \ - /usr/local/openssl /usr/sfw; do - if test -f "${dirs}/include/openssl/opensslv.h" ; then - cf_openssl_basedir="${dirs}" - break - fi - done - unset dirs - fi - dnl Now check cf_openssl_found to see if we found anything. - if test ! -z "$cf_openssl_basedir"; then - if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then - SSL_INCLUDES="-I${cf_openssl_basedir}/include" - SSL_LIBS="-L${cf_openssl_basedir}/lib" - else - dnl OpenSSL wasn't found in the directory specified. Naughty - dnl administrator... - cf_openssl_basedir="" - fi - else - dnl Check for stock FreeBSD 4.x and 5.x systems, since their files - dnl are in /usr/include and /usr/lib. In this case, we don't want to - dnl change INCLUDES or LIBS, but still want to enable OpenSSL. - dnl We can't do this check above, because some people want two versions - dnl of OpenSSL installed (stock FreeBSD 4.x/5.x and /usr/local/ssl) - dnl and they want /usr/local/ssl to have preference. - if test -f "/usr/include/openssl/opensslv.h" ; then - cf_openssl_basedir="/usr" - fi - fi - - dnl If we have a basedir defined, then everything is okay. Otherwise, - dnl we have a problem. - if test ! -z "$cf_openssl_basedir"; then - AC_MSG_RESULT($cf_openssl_basedir) - cf_enable_openssl="yes" - else - AC_MSG_RESULT([not found. Specify a correct path?]) - cf_enable_openssl="no" - fi - unset cf_openssl_basedir -else - dnl If --disable-openssl was specified - AC_MSG_RESULT(disabled) -fi - -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" -save_LIBS="$LIBS" -LIBS="$LIBS $SSL_LIBS" -if test "$cf_enable_openssl" != no; then - dnl Check OpenSSL version (must be 0.9.6 or above!) - AC_MSG_CHECKING(for OpenSSL 0.9.6 or above) - AC_RUN_IFELSE([ - AC_LANG_PROGRAM( - [#include - #include ], - [[if (OPENSSL_VERSION_NUMBER >= 0x00906000) - exit(0); else exit(1);]])], - cf_openssl_version_ok=yes, - cf_openssl_version_ok=no, - cf_openssl_version_ok=no) - - if test "$cf_openssl_version_ok" = yes; then - AC_MSG_RESULT(found) - - dnl Work around pmake/gmake conditional incompatibilities - AC_SUBST(ENCSPEED, encspeed) - - dnl Do all the HAVE_LIBCRYPTO magic -- and check for ciphers - CPPFLAGS="$CPPFLAGS $SSL_LIBS" - AC_CHECK_LIB(crypto, RSA_free) - if test "$ac_cv_lib_crypto_RSA_free" = yes; then - LIBS="$LIBS -lcrypto" - cf_openssl_ciphers='' - AC_CHECK_FUNCS(EVP_bf_cfb, - cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 ") - AC_CHECK_FUNCS(EVP_bf_cfb64, - cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 ") - AC_CHECK_FUNCS(EVP_cast5_cfb, - cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 ") - AC_CHECK_FUNCS(EVP_cast5_cfb64, - cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 ") - AC_CHECK_FUNCS(EVP_idea_cfb, - cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 ") - AC_CHECK_FUNCS(EVP_idea_cfb64, - cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 ") - AC_CHECK_FUNCS(EVP_rc5_32_12_16_cfb, - cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 ") - AC_CHECK_FUNCS(EVP_rc5_32_12_16_cfb64, - cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 ") - AC_CHECK_FUNCS(EVP_des_ede3_cfb, - cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 ") - AC_CHECK_FUNCS(EVP_des_ede3_cfb64, - cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 ") - AC_CHECK_FUNCS(EVP_des_cfb, - cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 ") - AC_CHECK_FUNCS(EVP_des_cfb64, - cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 ") - fi - SSL_LIBS="$SSL_LIBS -lssl -lcrypto" - SSL_SRCS_ENABLE='$(SSL_SRCS)' - else - AC_MSG_RESULT(no - OpenSSL support disabled) - fi -fi - -CPPFLAGS="$save_CPPFLAGS" -LIBS="$save_LIBS" - -dnl End OpenSSL detection - -dnl Specialized functions and libraries -dnl =================================== - -AC_ARG_WITH(zlib-path, -AC_HELP_STRING([--with-zlib-path=DIR],[Path to libz.so for ziplinks support.]), -[LIBS="$LIBS -L$withval"],) - -AC_ARG_ENABLE(zlib, -AC_HELP_STRING([--disable-zlib],[Disable ziplinks support]), -[zlib=$enableval],[zlib=yes]) - -if test "$zlib" = yes; then - -AC_CHECK_HEADER(zlib.h, [ - AC_CHECK_LIB(z, zlibVersion, - [ - AC_SUBST(ZLIB_LD, -lz) - AC_DEFINE(HAVE_LIBZ, 1, [Define to 1 if zlib (-lz) is available.]) - ], zlib=no) -], zlib=no) - -fi - -dnl IO Loop Selection -dnl ================= - -AC_ARG_ENABLE(poll, -AC_HELP_STRING([--enable-poll],[Force poll() usage.]), -[SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"],) - -AC_ARG_ENABLE(select, -AC_HELP_STRING([--enable-select],[Force select() usage.]), -[SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"],) - -AC_ARG_ENABLE(kqueue, -AC_HELP_STRING([--enable-kqueue],[Force kqueue() usage.]), -[SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"],) - -AC_ARG_ENABLE(devpoll, -AC_HELP_STRING([--enable-devpoll],[Force usage of /dev/poll.]), -[SELECT_TYPE_EXPLICIT="devpoll" -echo "Forcing /dev/poll to be enabled" -dnl These need to be defined or not defined -AC_CHECK_HEADERS([sys/devpoll.h devpoll.h])],) - -AC_ARG_ENABLE(rtsigio, -AC_HELP_STRING([--enable-rtsigio],[Enable SIGIO with RT Signals (Linux only)]), -[SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"],) - -AC_ARG_ENABLE(epoll, -AC_HELP_STRING([--enable-epoll], [Enable Linux epoll support.]), -[SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"],) - -if test ! -z "$SELECT_TYPE_EXPLICIT"; then - SELECT_TYPE="$SELECT_TYPE_EXPLICIT" -else - -AC_CHECK_FUNC([kevent], -[ - SELECT_TYPE="kqueue" -], -[ - AC_CHECK_HEADER(sys/epoll.h, [HAS_EPOLL=1], [HAS_EPOLL=0]) - if test $HAS_EPOLL -eq 1; then - AC_MSG_CHECKING(for epoll support in kernel) - AC_TRY_RUN( -#include -#include -#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) -#if !defined(__NR_epoll_create) -#if defined(__ia64__) -#define __NR_epoll_create 1243 -#elif defined(__x86_64__) -#define __NR_epoll_create 214 -#elif defined(__sparc64__) || defined(__sparc__) -#define __NR_epoll_create 193 -#elif defined(__s390__) || defined(__m68k__) -#define __NR_epoll_create 249 -#elif defined(__ppc64__) || defined(__ppc__) -#define __NR_epoll_create 236 -#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) -#define __NR_epoll_create 224 -#elif defined(__alpha__) -#define __NR_epoll_create 407 -#elif defined(__sh64__) -#define __NR_epoll_create 282 -#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) -#define __NR_epoll_create 254 -#else -#error No system call numbers defined for epoll family. -#endif -#endif -_syscall1(int, epoll_create, int, size) -#endif -main() { return epoll_create(256) == -1 ? 1 : 0; }, - [AC_MSG_RESULT(yes) - SELECT_TYPE="epoll"], - [AC_MSG_RESULT(no) - HAS_EPOLL=0], - [AC_MSG_RESULT(no) - HAS_EPOLL=0]) - fi - if test $HAS_EPOLL -eq 0; then - AC_MSG_CHECKING(for /dev/poll) - if test -c "/dev/poll"; then - AC_MSG_RESULT(yes) - AC_CHECK_HEADERS([devpoll.h sys/devpoll.h]) - SELECT_TYPE="devpoll" - else - AC_MSG_RESULT(no) - AC_MSG_CHECKING(for RT Signal IO) - - dnl check for rtsig readiness notification under Linux - dnl (but don't use it unless kernel 2.4 or higher) - AC_EGREP_CPP(YUP_HAVE_F_SETSIG, - [#define _GNU_SOURCE - #include - #ifdef F_SETSIG - YUP_HAVE_F_SETSIG - #endif - ], - [ - SELECT_TYPE="sigio" - AC_MSG_RESULT(yes) - ], - [ - AC_MSG_RESULT(no) - AC_CHECK_FUNC(poll, [SELECT_TYPE="poll"], - [ - AC_CHECK_FUNC(select, [SELECT_TYPE="select"], - [AC_MSG_ERROR([Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?]) - ]) - ]) - ]) - fi - fi -]) - -fi - -echo "Using $SELECT_TYPE for select loop." - -AC_DEFINE_UNQUOTED(SELECT_TYPE, "$SELECT_TYPE", [This is the type of IO loop we are using]) -AC_SUBST(SELECT_TYPE) - - -dnl Debug-related options -dnl ===================== - -AC_ARG_ENABLE(clobber, -AC_HELP_STRING([--enable-clobber], [Don't preserve old binaries on make install]), -[clobber=$enableval], [clobber=no]) - -if test "$clobber" = yes; then - AC_SUBST(CLOBBER, yes) -fi - -AC_ARG_ENABLE(assert, -AC_HELP_STRING([--enable-assert],[Enable assert().]), -[assert=$enableval], [assert=no]) - -if test "$assert" = no; then - AC_DEFINE(NDEBUG, 1, [Define this to disable debugging support.]) -fi - -AC_MSG_CHECKING(if you want to do a profile build) -AC_ARG_ENABLE(profile, -AC_HELP_STRING([--enable-profile],[Enable profiling]), -[profile=$enableval], [profile=no]) - -if test "$profile" = yes; then - if test "$ac_cv_c_compiler_gnu" = yes; then - IRC_CFLAGS="$IRC_CFLAGS -pg -static" - AC_MSG_RESULT([yes, adding -pg -static]) - else - AC_MSG_RESULT([no, profile builds only work with gcc]) - fi -else - AC_MSG_RESULT(no) -fi - -dnl Check if we want to use efence -AC_MSG_CHECKING(if you want ElectricFence) -AC_ARG_ENABLE(efence, -AC_HELP_STRING([--enable-efence],[Enable ElectricFence (memory debugger).]), -[ -if test "$enableval" != no; then - if test ! -z "$enableval" -a "$enableval" != yes; then - LIBS="$LIBS -L$enableval" - fi - - AC_CHECK_LIB(efence, malloc, - [ - LIBS="$LIBS -lefence" - AC_MSG_RESULT(yes) - ], - [AC_MSG_RESULT(not found, disabling)]) -else - AC_MSG_RESULT(no) -fi -],[AC_MSG_RESULT(no)]) - -dnl Check if we want to enable the block allocator -AC_MSG_CHECKING(if you want the block allocator) -AC_ARG_ENABLE(block-alloc, -AC_HELP_STRING([--disable-block-alloc],[Disable the block allocator (Only useful with ElectricFence)]), -[balloc=$enableval], [balloc=yes]) - -if test "$balloc" = no; then - AC_SUBST(BALLOC_C, []) - AC_DEFINE(NOBALLOC, 1, [Disable the block allocator.]) -else - AC_SUBST(BALLOC_C, balloc.c) -fi - -AC_MSG_RESULT($balloc) - -AC_ARG_ENABLE(warnings, -AC_HELP_STRING([--enable-warnings],[Enable all sorts of warnings for debugging.]), -[IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused"],[]) - -dnl Server Tweaks -dnl ============= - -AC_ARG_ENABLE(small-net, -AC_HELP_STRING([--enable-small-net],[Enable small network support.]), -[small_net=$enableval], [small_net=no]) - -if test "$small_net" = yes; then - AC_DEFINE([NICKNAMEHISTORYLENGTH], 1500, [Size of the WHOWAS array.]) - AC_DEFINE([CHANNEL_HEAP_SIZE], 256, [Size of the channel heap.]) - AC_DEFINE([BAN_HEAP_SIZE], 128, [Size of the ban heap.]) - AC_DEFINE([CLIENT_HEAP_SIZE], 256, [Size of the client heap.]) - AC_DEFINE([LCLIENT_HEAP_SIZE], 128, [Size of the local client heap.]) - AC_DEFINE([DNODE_HEAP_SIZE], 256, [Size of the dlink_node heap.]) - AC_DEFINE([TOPIC_HEAP_SIZE], 256, [Size of the topic heap.]) - AC_DEFINE([DBUF_HEAP_SIZE], 64, [Size of the dbuf heap.]) -else - AC_DEFINE([NICKNAMEHISTORYLENGTH], 15000, [Size of the WHOWAS array.]) - AC_DEFINE([CHANNEL_HEAP_SIZE], 1024, [Size of the channel heap.]) - AC_DEFINE([BAN_HEAP_SIZE], 1024, [Size of the ban heap.]) - AC_DEFINE([CLIENT_HEAP_SIZE], 1024, [Size of the client heap.]) - AC_DEFINE([LCLIENT_HEAP_SIZE], 512, [Size of the local client heap.]) - AC_DEFINE([DNODE_HEAP_SIZE], 2048, [Size of the dlink_node heap.]) - AC_DEFINE([TOPIC_HEAP_SIZE], 1024, [Size of the topic heap.]) - AC_DEFINE([DBUF_HEAP_SIZE], 512, [Size of the dbuf heap.]) -fi - -AC_ARG_ENABLE(efnet, -AC_HELP_STRING([--enable-efnet],[For IRCDs running on EFnet.]), -[efnet=$enableval], [efnet=no]) - -if test "$efnet" = yes; then - AC_DEFINE(EFNET, 1, [Define if this ircd will be an EFnet server.]) - AC_DEFINE(TS5_ONLY, 1, [If enabled, server links to your network must have a minimum of TS5.]) - echo "Building ircd for use with EFnet" - EXAMPLE_CONF=example.efnet.conf -else - AC_DEFINE(INVARIANTS, 1, [Miscellaneous sanity checks for the ircd. Makes it slightly slower]) - EXAMPLE_CONF=example.conf -fi - -AC_ARG_ENABLE(gline-voting, -AC_HELP_STRING([--disable-gline-voting],[Disable G-line voting.]), -[gline_voting=$enableval], [gline_voting=yes]) - -if test "$gline_voting" = yes; then - AC_DEFINE(GLINE_VOTING, 1, [Define this if you want to enable gline voting.]) - echo "Building ircd with G-Line voting support" -fi - -AC_ARG_ENABLE(halfops, -AC_HELP_STRING([--enable-halfops],[Enable halfops support.]), -[halfops=$enableval], [halfops=no]) - -if test "$halfops" = yes; then - AC_DEFINE(HALFOPS, 1, [Define if you want halfops support.]) -fi - -AC_SUBST(EXAMPLE_CONF) - -AC_MSG_CHECKING(for syslog options) - -AC_ARG_ENABLE(syslog, -AC_HELP_STRING([--enable-syslog="EVENTS"], [Enable syslog for events: kill, squit, connect, users, oper, space separated in quotes (default: disabled)]), -[ -dnl Hopelessly swiped from the mozilla source (kind of) - -dnl We must have these headers for it to work.. -if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then - -if test "$enableval" != no; then - syslogstuff=core - -for option in $enableval; do -case "$option" in - kill) - syslogstuff="$syslogstuff kill" - AC_DEFINE(SYSLOG_KILL, 1, [Send oper kills to syslog]) - ;; - squit) - syslogstuff="$syslogstuff squit" - AC_DEFINE(SYSLOG_SQUIT, 1, [Send remote squits for all servers to syslog]) - ;; - connect) - syslogstuff="$syslogstuff connect" - AC_DEFINE(SYSLOG_CONNECT, 1, [Send connect notices for other servers to syslog]) - ;; - users) - syslogstuff="$syslogstuff users" - AC_DEFINE(SYSLOG_USERS, 1, [Send user log stuff to syslog]) - ;; - oper) - syslogstuff="$syslogstuff oper" - AC_DEFINE(SYSLOG_OPER, 1, [Send /OPER successes to syslog]) - ;; -dnl yes is okay, shut up you - yes) - ;; - *) - AC_MSG_WARN(unknown event $option) - ;; -esac -done - - if test ! -z "$syslogstuff" -o "$enableval" = yes; then - AC_DEFINE(USE_SYSLOG, 1, [Send vital ircd messages to syslog]) - fi -else dnl $enableval is no - syslogstuff=none -fi - -else dnl checking for syslog.h's - AC_MSG_WARN([both syslog.h and sys/syslog.h unavailable, not enabling syslog]) - syslogstuff=none -fi -],[syslogstuff=none]) - -AC_MSG_RESULT($syslogstuff) - -AC_ARG_WITH(syslog-facility, -AC_HELP_STRING([--with-syslog-facility=LOG], [Define the log facility to use with ircd's syslog output (default LOG_LOCAL4)]), -[facility=$withval],[facility="LOG_LOCAL4"]) - -if test "$syslogstuff" != none; then -AC_DEFINE_UNQUOTED(LOG_FACILITY, $facility, [Log facility to use for syslog()]) -fi - -AC_ARG_WITH(nicklen, -AC_HELP_STRING([--with-nicklen=LENGTH],[Set the nick length to LENGTH (default 9)]), - NICKLEN="$withval", NICKLEN="9") - -AC_ARG_WITH(topiclen, -AC_HELP_STRING([--with-topiclen=NUMBER],[Set the max topic length to NUMBER (default 160, max 390)]), -[ - if test $withval -ge 390; then - TOPICLEN=390 - AC_MSG_WARN([TOPICLEN has a hard limit of 390. Setting TOPICLEN=390]) - else - TOPICLEN=$withval - fi -], [TOPICLEN=160]) - -AC_ARG_WITH(services-name, -AC_HELP_STRING([--with-services-name=SERVICES_NAME],[Set the name of your services server]), - [SERVICES_NAME="$withval"],[SERVICES_NAME="services.oftc.net"]) - -AC_DEFINE_UNQUOTED(TOPICLEN, ${TOPICLEN}, [Maximum topic length (<=390)]) -AC_DEFINE_UNQUOTED(NICKLEN, (${NICKLEN}+1), [Nickname length]) -AC_DEFINE_UNQUOTED(SERVICES_NAME, ["${SERVICES_NAME}"], [Services server name]) - -AC_ARG_ENABLE(shared-modules, -AC_HELP_STRING([--disable-shared-modules],[ Disable shared modules.]), -[shared_modules=$enableval], [shared_modules="yes"]) - -dnl Some first-stage sanity checks. -if test "$shared_modules" = yes; then - - if test "$profile" = "no"; then - shared_modules="yes" - else - AC_MSG_WARN([disabling shared modules; cannot coexist with profile builds]) - shared_modules="no" - fi - - if test "$CYGWIN" = yes; then - AC_MSG_WARN([disabling shared modules; Cygwin is at present unable to build them.]) - shared_modules="no" - fi - - dnl TenDRA's cc is called tcc too. - if test "$CC" = tcc -a "$TenDRA" = "no"; then - AC_MSG_WARN([disabling shared modules: Tiny C Compiler can't create PIC]) - shared_modules="no" - fi -fi - -dnl Second stage: check for functions and headers. -if test "$shared_modules" = yes; then - DYNLINK_C=dynlink.c - AC_CHECK_HEADERS(dlfcn.h) - AC_SEARCH_LIBS(shl_load, dld, - [ - AC_DEFINE(HAVE_SHL_LOAD, 1, [Define if the shl_load function is available.]) - SUFFIX=".sl" - MOD_TARGET=hpux_shared - SEDOBJ="s/\.o/.sl/g" - ], - dnl !shl_load: - [ - dnl standard dlopen - AC_SEARCH_LIBS(dlopen, [dl c_r], - [ - AC_DEFINE(HAVE_DLOPEN, 1, [Define if the dlopen function is available.]) - SUFFIX=".so" - MOD_TARGET=shared_modules - SEDOBJ="s/\.o/.so/g" - if test "$AppleGCC" = yes; then - AC_CHECK_HEADERS([mach-o/dyld.h]) - fi - AC_CHECK_FUNC(dlsym, , - [ - AC_MSG_WARN([dlsym is not available, shared modules disabled]) - shared_modules=no - ]) - AC_CHECK_FUNCS(dlfunc dlinfo) - ], - [ - shared_modules=no - ]) - ]) -fi - -AC_DEFINE_UNQUOTED(SHARED_SUFFIX, "$SUFFIX", [Suffix for shared libraries on this platform.]) - -dnl Third stage - wrangling the linker. -if test "$shared_modules" = yes; then - # The GNU linker requires the -export-dynamic option to make - # all symbols visible in the dynamic symbol table. - hold_ldflags=$LDFLAGS - AC_MSG_CHECKING(for the ld -export-dynamic flag) - LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[int i;])], found=yes, found=no) - LDFLAGS=$hold_ldflags - - if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then - found="no, IRIX ld uses -B,dynamic" - LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" - fi - - AC_MSG_RESULT($found) - - if test "$found" = yes; then - LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" - fi - - AC_MSG_CHECKING(for compiler option to produce PIC) - dnl The order should be here to check for groups of compilers, - dnl then for odd compilers, then if no PICFLAGS were set up, - dnl check for GCC and set defaults, or else error. -jmallett - if test "$SGS" = "yes"; then - AC_MSG_RESULT([SVR4 SGS interfaces: -KPIC -DPIC -G]) - PICFLAGS="-KPIC -DPIC -G" - fi - - if test "$AppleGCC" = "yes"; then - AC_MSG_RESULT([Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress]) - PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" - fi - - if test "$ClangGCC" = "yes"; then - PICFLAGS="-Wl,-undefined -Wl,dynamic_lookup -shared -fPIC -DPIC" - fi - dnl Please note, that on HPUX two different stages of module compilation occurs, since - dnl while compiling modules, the compiler does not allow you to give arguments - dnl to the linker. (I did not design this) - dnl So we need -c in the first stage of module compilation. - dnl In the second stage, we link the modules via ld -b. - dnl Additionally, HPUX does not like -export-dynamic, it likes -E instead. - dnl -TimeMr14C - if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then - AC_MSG_RESULT(HP-UX cc: +z -r -q -n) - PICFLAGS="+z -r -q -n -c" - AC_MSG_CHECKING([if +ESfic is required on this platform]) - - if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then - AC_MSG_RESULT(no) - else - AC_MSG_RESULT(yes) - PICFLAGS="$PICFLAGS +ESfic" - fi - - LDFLAGS="${LDFLAGS} -Wl,-E" - fi - if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then - AC_MSG_RESULT([Tru64: -shared -expect_unresolved '*']) - PICFLAGS="-shared -expect_unresolved '*' " - LDFLAGS="-call_shared" - fi - if test -z "$PICFLAGS"; then - if test "$ac_cv_c_compiler_gnu" = "yes"; then - AC_MSG_RESULT(gcc: -fPIC -DPIC -shared) - PICFLAGS="-fPIC -DPIC -shared" - else - AC_MSG_RESULT(no) - shared_modules=no - fi - fi -fi - -if test "$shared_modules" = no; then - DYNLINK_C="" - MOD_TARGET="libmodules.a" - MODULES_LIBS="../modules/libmodules.a" - SEDOBJ="" - AC_DEFINE(STATIC_MODULES, 1, [Define to 1 if dynamic modules can't be used.]) - AC_MSG_WARN([shared module support has been disabled!]) -fi - -AC_SUBST(MODULES_LIBS) -AC_SUBST(MOD_TARGET) - -AC_SUBST(SSL_SRCS_ENABLE) -AC_SUBST(SSL_INCLUDES) -AC_SUBST(SSL_LIBS) - -AC_SUBST(PICFLAGS) -AC_SUBST(IRC_CFLAGS) -AC_SUBST(SEDOBJ) - -AC_SUBST(DYNLINK_C) - -if test "$prefix" = "NONE"; then - AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$ac_default_prefix", [Prefix where the ircd is installed.]) - -else - -dnl Don't get bitten by Cygwin's stupidity if the user specified -dnl a custom prefix with a trailing slash - - prefix=`echo $prefix | sed 's/\/$//'` - AC_DEFINE_UNQUOTED(IRCD_PREFIX, "$prefix", [Prefix where the ircd is installed.]) - -fi - -AC_CONFIG_FILES( \ - Makefile \ - etc/Makefile \ - servlink/Makefile \ - contrib/Makefile \ - contrib/help/Makefile \ - src/Makefile \ - messages/Makefile \ - modules/Makefile \ - tools/Makefile \ - doc/Makefile \ - help/Makefile \ - lib/Makefile \ - lib/pcre/Makefile +AC_CONFIG_MACRO_DIR([m4]) + +# Checks for library functions. +AC_CHECK_FUNC([snprintf],[AC_DEFINE([HAVE_SNPRINTF],[1],[Define to 1 if you have the snprintf() function.])]) +AC_CHECK_FUNC([vsnprintf],[AC_DEFINE([HAVE_VSNPRINTF],[1],[Define to 1 if you have the vsnprintf() function.])]) +AC_CHECK_FUNC([lrand48],[AC_DEFINE([HAVE_LRAND48],[1],[Define to 1 if you have the lrand48() function.])]) +AC_CHECK_FUNC([srand48],[AC_DEFINE([HAVE_LRAND48],[1],[Define to 1 if you have the srand48() function.])]) +AC_CHECK_FUNC([mmap],[AC_DEFINE([HAVE_MMAP],[1],[Define to 1 if you have the mmap() function.])]) +AC_CHECK_FUNC([strtok_r],[AC_DEFINE([HAVE_STRTOK_R],[1],[Define to 1 if you have the strtok_r() function.])]) +AC_CHECK_FUNC([usleep],[AC_DEFINE([HAVE_USLEEP],[1],[Define to 1 if you have the usleep() function.])]) +AC_CHECK_FUNC([strlcat],[AC_DEFINE([HAVE_STRLCAT],[1],[Define to 1 if you have the strlcat() function.])]) +AC_CHECK_FUNC([strlcpy],[AC_DEFINE([HAVE_STRLCPY],[1],[Define to 1 if you have the strlcpy() function.])]) +AC_CHECK_FUNC([basename],[AC_DEFINE([HAVE_BASENAME],[1],[Define to 1 if you have the basename() function.])]) +AC_CHECK_FUNC([socketpair],[AC_DEFINE([HAVE_SOCKETPAIR],[1],[Define to 1 if you have the socketpair() function.])]) + +# Argument processing. +AX_ARG_ENABLE_IOLOOP_MECHANISM +AX_ARG_DISABLE_BLOCK_ALLOC +AX_ARG_DISABLE_SHARED_MODULES +AX_ARG_WITH_NICKLEN +AX_ARG_WITH_USERLEN +AX_ARG_WITH_HOSTLEN +AX_ARG_WITH_TOPICLEN +AX_ARG_WITH_LCLIENT_HEAP_SIZE +AX_ARG_WITH_CLIENT_HEAP_SIZE +AX_ARG_WITH_CHANNEL_HEAP_SIZE +AX_ARG_WITH_DBUF_HEAP_SIZE +AX_ARG_WITH_DNODE_HEAP_SIZE +AX_ARG_WITH_BAN_HEAP_SIZE +AX_ARG_WITH_TOPIC_HEAP_SIZE +AX_ARG_WITH_IRCD_HEAP_SIZE +AX_ARG_WITH_MQUEUE_HEAP_SIZE +AX_ARG_WITH_FMSG_HEAP_SIZE +AX_ARG_WITH_NICKNAME_HISTORY_LENGTH +AX_ARG_WITH_SYSLOG +AX_ARG_WITH_SERVICS_NAME +AX_ARG_ENABLE_EFNET +AX_ARG_ENABLE_HALFOPS +AX_ARG_ENABLE_DEBUGGING +AX_ARG_ENABLE_WARNINGS +AX_ARG_ENABLE_EFENCE +AX_ARG_ENABLE_SYSLOG +AC_CHECK_FUNCS(EVP_bf_cfb64, + cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 ") +AC_CHECK_FUNCS(EVP_cast5_cfb64, + cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 ") +AC_CHECK_FUNCS(EVP_idea_cfb64, + cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 ") +AC_CHECK_FUNCS(EVP_rc5_32_12_16_cfb64, + cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 ") +AC_CHECK_FUNCS(EVP_des_ede3_cfb64, + cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 ") +AC_CHECK_FUNCS(EVP_des_cfb64, + cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 ") + +dnl Only put werror on here because configure checks can fail otherwise +CFLAGS="-Werror $CFLAGS" + +AC_DEFINE_DIR([PREFIX],[prefix],[Set to prefix.]) +AC_DEFINE_DIR([SYSCONFDIR],[sysconfdir],[Set to sysconfdir.]) +AC_DEFINE_DIR([LIBDIR],[libdir],[Set to libdir.]) +AC_DEFINE_DIR([MODULEDIR],[moduledir],[Set to moduledir.]) +AC_DEFINE_DIR([DATADIR],[datadir],[Set to datadir.]) +AC_DEFINE_DIR([LOCALSTATEDIR],[localstatedir],[Set to localstatedir.]) + +AC_CONFIG_FILES( \ + Makefile \ + etc/Makefile \ + servlink/Makefile \ + contrib/Makefile \ + contrib/help/Makefile \ + src/Makefile \ + messages/Makefile \ + modules/Makefile \ + modules/core/Makefile \ + doc/Makefile \ + help/Makefile \ + help/opers/Makefile \ + help/users/Makefile \ + include/Makefile \ + lib/Makefile \ + lib/pcre/Makefile ) AC_OUTPUT - -dnl Configure options probably changed -rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend - -dnl Make it look sexay! - -echo -echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" -echo - -echo "Installing into: $prefix" - -echo "Ziplinks ................ $zlib" - -if test ! -z "$cf_openssl_ciphers"; then - tmpresult="yes - ${cf_openssl_ciphers}" -else - tmpresult=no -fi - -echo "OpenSSL ................. $tmpresult" - -if test "$shared_modules" = yes; then - tmpresult=shared -else - tmpresult=static -fi - -echo "Modules ................. $tmpresult" -echo "IPv6 support ............ $have_v6" -echo "Net I/O implementation .. $SELECT_TYPE" - -if test "$efnet" = "yes"; then - tmpresult="yes (use example.efnet.conf)" -else - tmpresult="no (use example.conf)" -fi - -echo "EFnet server ............ $tmpresult" -echo "Halfops support ......... $halfops" -echo "Small network ........... $small_net" -echo "G-Line voting ........... $gline_voting" -echo -echo "Configured limits:" -echo "NICKLEN ................. $NICKLEN" -echo "TOPICLEN ................ $TOPICLEN" -echo diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 000000000..ced48a3a6 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,2 @@ +MAINTAINERCLEANFILES=Makefile.in +man_MANS = ircd.8 diff --git a/doc/Makefile.in b/doc/Makefile.in deleted file mode 100644 index 03b03cad3..000000000 --- a/doc/Makefile.in +++ /dev/null @@ -1,18 +0,0 @@ -# $Id$ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -RM = @RM@ -prefix = @prefix@ -datarootdir = @datarootdir@ -mandir = $(DESTDIR)@mandir@ - -all: - -install: - mkdir -p $(mandir)/man8 - $(INSTALL_DATA) ircd.8 $(mandir)/man8/ - -distclean: - ${RM} -f Makefile - -.PHONY: install distclean diff --git a/etc/Makefile.am b/etc/Makefile.am new file mode 100644 index 000000000..7eb946562 --- /dev/null +++ b/etc/Makefile.am @@ -0,0 +1,6 @@ +MAINTAINERCLEANFILES=Makefile.in +if EFNET +dist_sysconf_DATA=example.efnet.conf +else +dist_sysconf_DATA=example.conf +endif diff --git a/etc/Makefile.in b/etc/Makefile.in deleted file mode 100644 index 6a041fc29..000000000 --- a/etc/Makefile.in +++ /dev/null @@ -1,57 +0,0 @@ -# $Id$ - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -MV = @MV@ -RM = @RM@ -TEST = @TEST@ - -# no whitespace here, test will mess up -CLOBBER=@CLOBBER@ - -prefix = @prefix@ -sysconfdir = $(DESTDIR)@sysconfdir@ -exec_prefix = @exec_prefix@ -datarootdir = $(DESTDIR)@datarootdir@ - -DISTFILES = @EXAMPLE_CONF@ - -all: - -install: - -@if $(TEST) $(sysconfdir) -ef `pwd`; then exit; fi; \ - mkdir -p $(sysconfdir); \ - for i in $(DISTFILES); do \ - if test -f $(sysconfdir)/$$i -a -z "$(CLOBBER)"; then \ - echo $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i.old; \ - $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i.old; \ - fi; \ - echo $(INSTALL_DATA) $$i $(sysconfdir); \ - $(INSTALL_DATA) $$i $(sysconfdir); \ - done - - @echo "Note: more example configuration files can be found in this directory (etc/)." - - @if test ! -f "$(sysconfdir)/ircd.motd"; then \ - echo "Creating generic $(sysconfdir)/ircd.motd"; \ - echo "This is ircd-hybrid MOTD replace it with something better" > $(sysconfdir)/ircd.motd; \ - fi - - @for i in d k x rx rk; do \ - if test ! -f "$(sysconfdir)/$${i}line.conf"; then \ - echo touch $(sysconfdir)/$${i}line.conf; \ - touch $(sysconfdir)/$${i}line.conf; \ - fi; \ - done - - @for i in n c; do \ - if test ! -f "$(sysconfdir)/$${i}resv.conf"; then \ - echo touch $(sysconfdir)/$${i}resv.conf; \ - touch $(sysconfdir)/$${i}resv.conf; \ - fi; \ - done - -distclean: - ${RM} -f Makefile - -.PHONY: install distclean diff --git a/help/Makefile.am b/help/Makefile.am new file mode 100644 index 000000000..37a13b2ab --- /dev/null +++ b/help/Makefile.am @@ -0,0 +1,2 @@ +MAINTAINERCLEANFILES=Makefile.in +SUBDIRS=opers users diff --git a/help/Makefile.in b/help/Makefile.in deleted file mode 100644 index d92e7f82d..000000000 --- a/help/Makefile.in +++ /dev/null @@ -1,51 +0,0 @@ -# Makefile to install help files -# $Id: Makefile.in 33 2005-10-02 20:50:00Z knight $ - -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -RM = @RM@ - -prefix = @prefix@ -exec_prefix = @execprefix@ -datarootdir = $(DESTDIR)@datarootdir@ -uhelpdir = ${prefix}/help/users -ohelpdir = ${prefix}/help/opers - -SYMLINKS = topic accept cmode admin names links away whowas \ - version kick who invite quit join list nick oper part \ - time motd userhost users whois ison lusers user help \ - challenge map pass error knock ping pong -all: -build: -clean: -depend: - -install: - @echo installing help files... - -@if test ! -d $(DESTDIR)$(prefix)/help; then \ - echo "mkdir $(DESTDIR)$(prefix)/help"; \ - mkdir $(DESTDIR)$(prefix)/help; \ - echo "mkdir $(DESTDIR)$(uhelpdir)"; \ - mkdir $(DESTDIR)$(uhelpdir); \ - echo "mkdir $(DESTDIR)$(ohelpdir)"; \ - mkdir $(DESTDIR)$(ohelpdir); \ - fi - @for help in opers/*; do \ - if [ -f $$help ]; then \ - ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \ - fi \ - done - @for help in users/*; do \ - if [ -f $$help ]; then \ - $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \ - fi \ - done - @for link in $(SYMLINKS); do \ - rm -f $(DESTDIR)$(uhelpdir)/$$link; \ - ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \ - done - -distclean: - ${RM} -f Makefile - -depend: diff --git a/help/opers/Makefile.am b/help/opers/Makefile.am new file mode 100644 index 000000000..9cd22929f --- /dev/null +++ b/help/opers/Makefile.am @@ -0,0 +1 @@ +MAINTAINERCLEANFILES=Makefile.in diff --git a/help/users/Makefile.am b/help/users/Makefile.am new file mode 100644 index 000000000..9cd22929f --- /dev/null +++ b/help/users/Makefile.am @@ -0,0 +1 @@ +MAINTAINERCLEANFILES=Makefile.in diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 000000000..623f96d75 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,58 @@ +MAINTAINERCLEANFILES=Makefile.in setup.h.in setup.h.in~ +noinst_HEADERS= balloc.h \ + hook.h \ + irc_string.h \ + restart.h \ + s_misc.h \ + channel.h \ + hostmask.h \ + listener.h \ + resv.h \ + sprintf_irc.h \ + channel_mode.h \ + inet_misc.h \ + list.h \ + rlimits.h \ + s_serv.h \ + client.h \ + ircd_defs.h \ + memory.h \ + rsa.h \ + stdinc.h \ + common.h \ + ircd_getopt.h \ + m_info.h \ + s_auth.h \ + supported.h \ + dbuf.h \ + ircd.h \ + modules.h \ + s_bsd.h \ + s_user.h \ + defaults.h \ + ircd_handler.h \ + motd.h \ + s_conf.h \ + tools.h \ + event.h \ + ircd_signal.h \ + msg.h \ + send.h \ + userhost.h \ + fdlist.h \ + irc_getaddrinfo.h \ + numeric.h \ + serno.h \ + fileio.h \ + irc_getnameinfo.h \ + packet.h \ + setup.h.in \ + whowas.h \ + handlers.h \ + irc_res.h \ + parse.h \ + s_gline.h \ + hash.h \ + irc_reslib.h \ + patchlevel.h \ + s_log.h diff --git a/include/defaults.h b/include/defaults.h index bb73594ba..7d677d2ac 100644 --- a/include/defaults.h +++ b/include/defaults.h @@ -30,14 +30,14 @@ /* * Directory paths and filenames for UNIX systems. - * IRCD_PREFIX is set using ./configure --prefix, see INSTALL. + * PREFIX is set using ./configure --prefix, see INSTALL. * The other defaults should be fine. * * NOTE: CHANGING THESE WILL NOT ALTER THE DIRECTORY THAT FILES WILL * BE INSTALLED TO. IF YOU CHANGE THESE, DO NOT USE MAKE INSTALL, * BUT COPY THE FILES MANUALLY TO WHERE YOU WANT THEM. * - * IRCD_PREFIX = prefix for all directories + * PREFIX = prefix for all directories * DPATH = root directory of installation * BINPATH = directory for binary files * MSGPATH = directory for language files @@ -48,14 +48,16 @@ */ /* dirs */ -#define DPATH IRCD_PREFIX -#define BINPATH IRCD_PREFIX "/bin/" -#define MSGPATH IRCD_PREFIX "/messages/" -#define ETCPATH IRCD_PREFIX "/etc" -#define LOGPATH IRCD_PREFIX "/logs" -#define MODPATH IRCD_PREFIX "/modules/" -#define AUTOMODPATH IRCD_PREFIX "/modules/autoload/" -#define OFTCLOG LOGPATH "/oftc.log" +#define DPATH PREFIX +#define BINPATH PREFIX "/bin/" +#define MSGPATH DATADIR "/" PACKAGE "/messages" +#define MODPATH LIBDIR "/" PACKAGE "/" +#define HPATH DATADIR "/" PACKAGE "/help/opers" +#define UHPATH DATADIR "/" PACKAGE "/help/users" +#define AUTOMODPATH MODPATH "/autoload/" +#define ETCPATH SYSCONFDIR +#define LOGPATH LOCALSTATEDIR "/log" + /* files */ #define SPATH BINPATH "/ircd" /* ircd executable */ @@ -71,7 +73,8 @@ #define RKPATH ETCPATH "/rkline.conf" #define MPATH ETCPATH "/ircd.motd" /* MOTD file */ #define LPATH LOGPATH "/ircd.log" /* ircd logfile */ -#define PPATH ETCPATH "/ircd.pid" /* pid file */ +#define OFTCLOG LOGPATH "/oftc.log" +#define PPATH LOCALSTATEDIR "/ircd.pid" /* pid file */ #define OPATH ETCPATH "/opers.motd" /* oper MOTD file */ #define LIPATH ETCPATH "/links.txt" /* cached links file */ diff --git a/include/ircd_defs.h b/include/ircd_defs.h index 837dc574a..16c574aee 100644 --- a/include/ircd_defs.h +++ b/include/ircd_defs.h @@ -37,11 +37,8 @@ /* Right out of the RFC */ #define IRCD_BUFSIZE 512 /* WARNING: *DONT* CHANGE THIS!!!! */ -#define HOSTLEN 63 /* Length of hostname. Updated to */ - /* comply with RFC1123 */ #define PORTNAMELEN 6 /* ":31337" */ -#define USERLEN 10 #define REALLEN 50 #define KILLLEN 90 #define LOCAL_CHANNELLEN 50 @@ -84,6 +81,10 @@ struct utsname char domainname[_UTSNAME_DOMAIN_LENGTH]; }; int uname (struct utsname *); + +#define PATH_DEVNULL "dev.null" +#else +#define PATH_DEVNULL "/dev/null" #endif /* This is to get around the fact that some implementations have ss_len and diff --git a/include/listener.h b/include/listener.h index 20916369b..9f72da058 100644 --- a/include/listener.h +++ b/include/listener.h @@ -27,6 +27,7 @@ #define LISTENER_SSL 0x1 #define LISTENER_HIDDEN 0x2 +#define LISTENER_SERVER 0x4 #include "ircd_defs.h" #include "tools.h" diff --git a/include/m_info.h b/include/m_info.h index 5537709c0..b1cf23381 100644 --- a/include/m_info.h +++ b/include/m_info.h @@ -120,7 +120,7 @@ Info MyInformation[] = { { "PPATH", "NONE", 0, "Path to Pid File" }, #endif /* PPATH */ - { "SELECT_TYPE", SELECT_TYPE, 0, "Method of Multiplexed I/O" }, + { "SELECT_TYPE", "This needs to be done another way XXX TODO", 0, "Method of Multiplexed I/O" }, #ifdef SPATH { "SPATH", SPATH, 0, "Path to Server Executable" }, diff --git a/include/memory.h b/include/memory.h index 0e6fb6720..b044899e9 100644 --- a/include/memory.h +++ b/include/memory.h @@ -46,47 +46,5 @@ extern void *MyRealloc(void *x, size_t y); extern void MyFree(void *x); extern void _DupString(char **x, const char *y); -/* forte (and maybe others) don't like double declarations, - * so we don't declare the inlines unless GNUC - */ -#if __GNUC__ && !__clang__ -extern inline void * -MyMalloc(size_t size) -{ - void *ret = calloc(1, size); - - if (ret == NULL) - outofmemory(); - return(ret); -} - -extern inline void * -MyRealloc(void *x, size_t y) -{ - void *ret = realloc(x, y); - - if (ret == NULL) - outofmemory(); - return(ret); -} - -extern inline void -MyFree(void *x) -{ - if (x != NULL) - free(x); -} - -extern inline void -_DupString(char **x, const char *y) -{ - (*x) = malloc(strlen(y) + 1); - - if (x == NULL) - outofmemory(); - strcpy((*x), y); -} -#endif /* __GNUC__ */ - #define DupString(x,y) _DupString(&x, y) #endif /* _I_MEMORY_H */ diff --git a/include/modules.h b/include/modules.h index 9e082e243..e2d27bb94 100644 --- a/include/modules.h +++ b/include/modules.h @@ -81,6 +81,8 @@ extern int load_a_module(char *, int, int); extern dlink_node *findmodule_byname(const char *); extern void modules_init(void); +extern void dynlink_init(); + #else /* STATIC_MODULES */ extern struct Message accept_msgtab; diff --git a/include/patchlevel.h b/include/patchlevel.h index 0f1aaf7fd..2e43f0357 100644 --- a/include/patchlevel.h +++ b/include/patchlevel.h @@ -23,5 +23,5 @@ */ #ifndef PATCHLEVEL -#define PATCHLEVEL "hybrid-7.2.2+oftc1.6.19" +#define PATCHLEVEL "hybrid-7.2.2+oftc1.7.0" #endif diff --git a/include/setup.h.in b/include/setup.h.in deleted file mode 100644 index adcc2d105..000000000 --- a/include/setup.h.in +++ /dev/null @@ -1,386 +0,0 @@ -/* include/setup.h.in. Generated from configure.ac by autoheader. */ - -/* Define if building universal (internal helper macro) */ -#undef AC_APPLE_UNIVERSAL_BUILD - -/* Size of the ban heap. */ -#undef BAN_HEAP_SIZE - -/* Size of the channel heap. */ -#undef CHANNEL_HEAP_SIZE - -/* Size of the client heap. */ -#undef CLIENT_HEAP_SIZE - -/* Size of the dbuf heap. */ -#undef DBUF_HEAP_SIZE - -/* Size of the dlink_node heap. */ -#undef DNODE_HEAP_SIZE - -/* Define if this ircd will be an EFnet server. */ -#undef EFNET - -/* Define this if you want to enable gline voting. */ -#undef GLINE_VOTING - -/* Define if you want halfops support. */ -#undef HALFOPS - -/* Define to 1 if you have the `basename' function. */ -#undef HAVE_BASENAME - -/* Define to 1 if you have the header file. */ -#undef HAVE_CRYPT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_DEVPOLL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the `dlfunc' function. */ -#undef HAVE_DLFUNC - -/* Define to 1 if you have the `dlinfo' function. */ -#undef HAVE_DLINFO - -/* Define if the dlopen function is available. */ -#undef HAVE_DLOPEN - -/* Define to 1 if you have the header file. */ -#undef HAVE_ERRNO_H - -/* Define to 1 if you have the `EVP_bf_cfb' function. */ -#undef HAVE_EVP_BF_CFB - -/* Define to 1 if you have the `EVP_bf_cfb64' function. */ -#undef HAVE_EVP_BF_CFB64 - -/* Define to 1 if you have the `EVP_cast5_cfb' function. */ -#undef HAVE_EVP_CAST5_CFB - -/* Define to 1 if you have the `EVP_cast5_cfb64' function. */ -#undef HAVE_EVP_CAST5_CFB64 - -/* Define to 1 if you have the `EVP_des_cfb' function. */ -#undef HAVE_EVP_DES_CFB - -/* Define to 1 if you have the `EVP_des_cfb64' function. */ -#undef HAVE_EVP_DES_CFB64 - -/* Define to 1 if you have the `EVP_des_ede3_cfb' function. */ -#undef HAVE_EVP_DES_EDE3_CFB - -/* Define to 1 if you have the `EVP_des_ede3_cfb64' function. */ -#undef HAVE_EVP_DES_EDE3_CFB64 - -/* Define to 1 if you have the `EVP_idea_cfb' function. */ -#undef HAVE_EVP_IDEA_CFB - -/* Define to 1 if you have the `EVP_idea_cfb64' function. */ -#undef HAVE_EVP_IDEA_CFB64 - -/* Define to 1 if you have the `EVP_rc5_32_12_16_cfb' function. */ -#undef HAVE_EVP_RC5_32_12_16_CFB - -/* Define to 1 if you have the `EVP_rc5_32_12_16_cfb64' function. */ -#undef HAVE_EVP_RC5_32_12_16_CFB64 - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the `crypto' library (-lcrypto). */ -#undef HAVE_LIBCRYPTO - -/* Define to 1 if you have the header file. */ -#undef HAVE_LIBGEN_H - -/* Define to 1 if zlib (-lz) is available. */ -#undef HAVE_LIBZ - -/* Define to 1 if you have the header file. */ -#undef HAVE_LINK_H - -/* Define to 1 if you have the `lrand48' function. */ -#undef HAVE_LRAND48 - -/* Define to 1 if you have the header file. */ -#undef HAVE_MACH_O_DYLD_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `mmap' function. */ -#undef HAVE_MMAP - -/* Define if the shl_load function is available. */ -#undef HAVE_SHL_LOAD - -/* Define to 1 if you have the `snprintf' function. */ -#undef HAVE_SNPRINTF - -/* Define to 1 if you have the `socketpair' function. */ -#undef HAVE_SOCKETPAIR - -/* Define to 1 if you have the `srand48' function. */ -#undef HAVE_SRAND48 - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDDEF_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the `strlcat' function. */ -#undef HAVE_STRLCAT - -/* Define to 1 if you have the `strlcpy' function. */ -#undef HAVE_STRLCPY - -/* Define to 1 if you have the `strtok_r' function. */ -#undef HAVE_STRTOK_R - -/* Define to 1 if the system has the type `struct addrinfo'. */ -#undef HAVE_STRUCT_ADDRINFO - -/* Define to 1 if the system has the type `struct sockaddr_storage'. */ -#undef HAVE_STRUCT_SOCKADDR_STORAGE - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_DEVPOLL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_RESOURCE_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SYSLOG_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if you have the `usleep' function. */ -#undef HAVE_USLEEP - -/* Define to 1 if you have the `vsnprintf' function. */ -#undef HAVE_VSNPRINTF - -/* Define to 1 if you have the header file. */ -#undef HAVE_WAIT_H - -/* Miscellaneous sanity checks for the ircd. Makes it slightly slower */ -#undef INVARIANTS - -/* Define if IPv6 support is present and available. */ -#undef IPV6 - -/* Prefix where the ircd is installed. */ -#undef IRCD_PREFIX - -/* Size of the local client heap. */ -#undef LCLIENT_HEAP_SIZE - -/* Log facility to use for syslog() */ -#undef LOG_FACILITY - -/* Define this to disable debugging support. */ -#undef NDEBUG - -/* Nickname length */ -#undef NICKLEN - -/* Size of the WHOWAS array. */ -#undef NICKNAMEHISTORYLENGTH - -/* Disable the block allocator. */ -#undef NOBALLOC - -/* Define to 1 if your system has no in6addr_any. */ -#undef NO_IN6ADDR_ANY - -/* Define if you have no native inet_aton() function. */ -#undef NO_INET_ATON - -/* Define if you have no native inet_ntop() function. */ -#undef NO_INET_NTOP - -/* Define if you have no native inet_pton() function. */ -#undef NO_INET_PTON - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Path to /dev/null */ -#undef PATH_DEVNULL - -/* This is the type of IO loop we are using */ -#undef SELECT_TYPE - -/* Services server name */ -#undef SERVICES_NAME - -/* Suffix for shared libraries on this platform. */ -#undef SHARED_SUFFIX - -/* The size of `int64_t', as computed by sizeof. */ -#undef SIZEOF_INT64_T - -/* The size of `long long', as computed by sizeof. */ -#undef SIZEOF_LONG_LONG - -/* Define to 1 if sockaddr_in has a 'sin_len' member. */ -#undef SOCKADDR_IN_HAS_LEN - -/* Define to 1 if dynamic modules can't be used. */ -#undef STATIC_MODULES - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if string.h may be included along with strings.h */ -#undef STRING_WITH_STRINGS - -/* Send connect notices for other servers to syslog */ -#undef SYSLOG_CONNECT - -/* Send oper kills to syslog */ -#undef SYSLOG_KILL - -/* Send /OPER successes to syslog */ -#undef SYSLOG_OPER - -/* Send remote squits for all servers to syslog */ -#undef SYSLOG_SQUIT - -/* Send user log stuff to syslog */ -#undef SYSLOG_USERS - -/* Maximum topic length (<=390) */ -#undef TOPICLEN - -/* Size of the topic heap. */ -#undef TOPIC_HEAP_SIZE - -/* If enabled, server links to your network must have a minimum of TS5. */ -#undef TS5_ONLY - -/* Send vital ircd messages to syslog */ -#undef USE_SYSLOG - -/* Enable extensions on AIX 3, Interix. */ -#ifndef _ALL_SOURCE -# undef _ALL_SOURCE -#endif -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif -/* Enable threading extensions on Solaris. */ -#ifndef _POSIX_PTHREAD_SEMANTICS -# undef _POSIX_PTHREAD_SEMANTICS -#endif -/* Enable extensions on HP NonStop. */ -#ifndef _TANDEM_SOURCE -# undef _TANDEM_SOURCE -#endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ -#endif - - -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ -# define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -# undef WORDS_BIGENDIAN -# endif -#endif - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#undef YYTEXT_POINTER - -/* Define to 1 if on MINIX. */ -#undef _MINIX - -/* Define to 2 if the system does not provide POSIX.1 features except with - this defined. */ -#undef _POSIX_1_SOURCE - -/* Define to 1 if you need to in order for `stat' and other things to work. */ -#undef _POSIX_SOURCE - -/* This is needed to use strtok_r on Solaris. */ -#undef __EXTENSIONS__ - -/* If system does not define in_port_t, define it to what it should be. */ -#undef in_port_t - -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus -#undef inline -#endif - -/* Define to `long long' if does not define. */ -#undef int64_t - -/* If system does not define sa_family_t, define it here. */ -#undef sa_family_t - -/* If we don't have a real socklen_t, unsigned int is good enough. */ -#undef socklen_t - -/* Broken glibc implementations use __ss_family instead of ss_family. Define - to __ss_family if true. */ -#undef ss_family - -/* If system does not define u_int16_t, define a usable substitute. */ -#undef u_int16_t - -/* If system does not define u_int32_t, define to unsigned long int here. */ -#undef u_int32_t - -/* Define to `unsigned long long' if does not define. */ -#undef uint64_t diff --git a/include/tools.h b/include/tools.h index db7410ce9..5b0d2e68f 100644 --- a/include/tools.h +++ b/include/tools.h @@ -83,183 +83,4 @@ void mem_frob(void *data, int len); /* Returns the list length */ #define dlink_list_length(list) (list)->length -/* - * The functions below are included for the sake of inlining - * hopefully this will speed up things just a bit - * - */ -/* forte (and maybe others) dont like these being declared twice, - * so we dont declare the inlines unless GNUC. - */ -#if __GNUC__ && !__clang__ - -/* - * dlink_ routines are stolen from squid, except for dlinkAddBefore, - * which is mine. - * -- adrian - */ -extern inline void -dlinkAdd(void *data, dlink_node * m, dlink_list * list) -{ - m->data = data; - m->prev = NULL; - m->next = list->head; - /* Assumption: If list->tail != NULL, list->head != NULL */ - if (list->head != NULL) - list->head->prev = m; - else if (list->tail == NULL) - list->tail = m; - list->head = m; - list->length++; -} - -extern inline void -dlinkAddBefore(dlink_node *b, void *data, dlink_node *m, dlink_list *list) -{ - /* Shortcut - if its the first one, call dlinkAdd only */ - if (b == list->head) - dlinkAdd(data, m, list); - else { - m->data = data; - b->prev->next = m; - m->prev = b->prev; - b->prev = m; - m->next = b; - list->length++; - } -} - -extern inline void -dlinkAddTail(void *data, dlink_node *m, dlink_list *list) -{ - m->data = data; - m->next = NULL; - m->prev = list->tail; - /* Assumption: If list->tail != NULL, list->head != NULL */ - if (list->tail != NULL) - list->tail->next = m; - else if (list->head == NULL) - list->head = m; - list->tail = m; - list->length++; -} - -/* Execution profiles show that this function is called the most - * often of all non-spontaneous functions. So it had better be - * efficient. */ -extern inline void -dlinkDelete(dlink_node *m, dlink_list *list) -{ - /* Assumption: If m->next == NULL, then list->tail == m - * and: If m->prev == NULL, then list->head == m - */ - if (m->next) - m->next->prev = m->prev; - else { - assert(list->tail == m); - list->tail = m->prev; - } - if (m->prev) - m->prev->next = m->next; - else { - assert(list->head == m); - list->head = m->next; - } - /* Set this to NULL does matter */ - m->next = m->prev = NULL; - list->length--; -} - -/* - * dlinkFind - * inputs - list to search - * - data - * output - pointer to link or NULL if not found - * side effects - Look for ptr in the linked listed pointed to by link. - */ -extern inline dlink_node * -dlinkFind(dlink_list *list, void *data) -{ - dlink_node *ptr; - - DLINK_FOREACH(ptr, list->head) - { - if (ptr->data == data) - return(ptr); - } - - return(NULL); -} - -extern inline void -dlinkMoveList(dlink_list *from, dlink_list *to) -{ - /* There are three cases */ - /* case one, nothing in from list */ - - if (from->head == NULL) - return; - - /* case two, nothing in to list */ - /* actually if to->head is NULL and to->tail isn't, thats a bug */ - - if (to->head == NULL) - { - to->head = from->head; - to->tail = from->tail; - from->head = from->tail = NULL; - to->length = from->length; - from->length = 0; - return; - } - - /* third case play with the links */ - - from->tail->next = to->head; - from->head->prev = to->head->prev; - to->head->prev = from->tail; - to->head = from->head; - from->head = from->tail = NULL; - to->length += from->length; - from->length = 0; - - /* I think I got that right */ -} - -extern inline dlink_node * -dlinkFindDelete(dlink_list *list, void *data) -{ - dlink_node *m; - - DLINK_FOREACH(m, list->head) - { - if (m->data == data) - { - if (m->next) - m->next->prev = m->prev; - else - { - assert(list->tail == m); - list->tail = m->prev; - } - if (m->prev) - m->prev->next = m->next; - else - { - assert(list->head == m); - list->head = m->next; - } - /* Set this to NULL does matter */ - m->next = m->prev = NULL; - list->length--; - - return(m); - } - } - - return(NULL); -} - -#endif /* __GNUC__ */ - #endif /* __TOOLS_H__ */ diff --git a/install-sh b/install-sh deleted file mode 100644 index 297960d1f..000000000 --- a/install-sh +++ /dev/null @@ -1,270 +0,0 @@ -#!/bin/sh -# $Id$ -# -# install - install a program, script, or datafile -# -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename="" -transform_arg="" -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -else - true -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d $dst ]; then - instcmd=: - chmodcmd="" - else - instcmd=mkdir - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f $src -o -d $src ] - then - true - else - echo "install: $src does not exist" - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "install: no destination specified" - exit 1 - else - true - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d $dst ] - then - dst="$dst"/`basename $src` - else - true - fi -fi - -## this sed command emulates the dirname command -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' -' -IFS="${IFS-${defaultIFS}}" - -oIFS="${IFS}" -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS="${oIFS}" - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp="${pathcomp}${1}" - shift - - if [ ! -d "${pathcomp}" ] ; - then - $mkdirprog "${pathcomp}" - else - true - fi - - pathcomp="${pathcomp}/" -done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd $dst && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename $dst` - else - dstfile=`basename $dst $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename $dst` - else - true - fi - -# Make a temp file name in the proper directory. - - dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - - $doit $instcmd $src $dsttmp && - - trap "rm -f ${dsttmp}" 0 && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && - -# Now rename the file to the real destination. - - $doit $rmcmd -f $dstdir/$dstfile && - $doit $mvcmd $dsttmp $dstdir/$dstfile - -fi && - - -exit 0 diff --git a/lib/Makefile.am b/lib/Makefile.am new file mode 100644 index 000000000..757deb603 --- /dev/null +++ b/lib/Makefile.am @@ -0,0 +1,2 @@ +MAINTAINERCLEANFILES=Makefile.in +SUBDIRS=pcre diff --git a/lib/Makefile.in b/lib/Makefile.in deleted file mode 100644 index 68462da74..000000000 --- a/lib/Makefile.in +++ /dev/null @@ -1,55 +0,0 @@ -# $Id: Makefile.in 33 2005-10-02 20:50:00Z knight $ - -RM = @RM@ - -# Default make flags - you may want to uncomment this on a multicpu machine -#MFLAGS = -j 4 -BUILD_DIRS = pcre -datarootdir = $(DESTDIR)@datarootdir@ - -# The make used HAS to set $(MAKE). But then, if we don't do it this -# way, people lose the option to use a 'make' called something other -# than `make.' If it doesn't set $(MAKE), fall back to the old behavior -# by substing SET_MAKE. - -@SET_MAKE@ - -all: build - -build: .depend - @for i in $(BUILD_DIRS); do \ - echo "build ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} build || exit; cd ..;\ - done - -clean: - ${RM} -f *~ core - @for i in $(BUILD_DIRS); do \ - echo "clean ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} clean || exit; cd ..;\ - done - -@if [ -f include/setup.h ] ; then \ - echo "To really restart installation, ${MAKE} distclean" ; \ - fi - -distclean: - ${RM} -f Makefile *~ *.rej *.orig *core - @for i in $(BUILD_DIRS); do \ - echo "distclean ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} distclean || exit; cd ..; \ - done - -.depend: - @for i in $(BUILD_DIRS); do \ - echo "depend ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} .depend || exit; cd .. ; \ - done - -install: - @for i in $(BUILD_DIRS); do \ - echo "install ==> $$i";\ - cd $$i && ${MAKE} ${MFLAGS} install || exit; cd .. ; \ - done - -# A la Linux kernel config :) -dep: .depend diff --git a/lib/pcre/Makefile.am b/lib/pcre/Makefile.am new file mode 100644 index 000000000..5c7b872c7 --- /dev/null +++ b/lib/pcre/Makefile.am @@ -0,0 +1,3 @@ +MAINTAINERCLEANFILES=Makefile.in +noinst_LIBRARIES=libpcre.a +libpcre_a_SOURCES=pcre_chartables.c pcre_compile.c pcre_exec.c pcre_globals.c pcre_study.c pcre_tables.c pcre_fullinfo.c pcre_try_flipped.c diff --git a/lib/pcre/Makefile.in b/lib/pcre/Makefile.in deleted file mode 100644 index 400d4919c..000000000 --- a/lib/pcre/Makefile.in +++ /dev/null @@ -1,58 +0,0 @@ -# $Id: Makefile.in 33 2005-10-02 20:50:00Z knight $ - -CC = @CC@ -AR = @AR@ -RM = @RM@ -SED = @SED@ -SEDOBJ = @SEDOBJ@ -STDOUT = @STDOUT@ -CFLAGS = @IRC_CFLAGS@ -MKDEP = @MKDEP@ -MV = @MV@ -LD = @LD@ - -IRCDLIBS = @LIBS@ $(SSL_LIBS) - -INCLUDES = -I. -CPPFLAGS = ${INCLUDES} @CPPFLAGS@ -datarootdir = $(DESTDIR)@datarootdir@ - -PCRE_SRCS = \ - pcre_chartables.c \ - pcre_compile.c \ - pcre_exec.c \ - pcre_globals.c \ - pcre_study.c \ - pcre_tables.c \ - pcre_fullinfo.c \ - pcre_try_flipped.c - -PCRE_OBJS = ${PCRE_SRCS:.c=.o} - -default: build -build: all -all: .depend libpcre.a - -libpcre.a: $(PCRE_OBJS) - $(RM) -f $@ - $(AR) csrv $@ $(PCRE_OBJS) - -.c.o: - ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@ - -.depend: - ${MKDEP} ${CPPFLAGS} ${PCRE_SRCS} ${STDOUT} - @${SED} -e '/^# Autogenerated - do not delete/,$$d' Makefile.depend - @echo "# Autogenerated - do not delete" >>Makefile.depend - @echo "include .depend" >> Makefile.depend - @${MV} Makefile.depend Makefile - -clean: - ${RM} -f $(PCRE_OBJS) libpcre.a - -distclean: clean - ${RM} -f Makefile .depend - -install: - -.PHONY: clean distclean install build diff --git a/lib/pcre/pcre_compile.c b/lib/pcre/pcre_compile.c index 66c618144..b44849842 100644 --- a/lib/pcre/pcre_compile.c +++ b/lib/pcre/pcre_compile.c @@ -762,8 +762,6 @@ Returns: pointer to the opcode for the bracket, or NULL if not found static const uschar * find_bracket(const uschar *code, BOOL utf8, int number) { -utf8 = utf8; /* Stop pedantic compilers complaining */ - for (;;) { register int c = *code; @@ -801,8 +799,6 @@ Returns: pointer to the opcode for OP_RECURSE, or NULL if not found static const uschar * find_recurse(const uschar *code, BOOL utf8) { -utf8 = utf8; /* Stop pedantic compilers complaining */ - for (;;) { register int c = *code; @@ -2183,7 +2179,7 @@ for (;; ptr++) if a digit follows ( then there will just be digits until ) because the syntax was checked in the first pass. */ - else if ((digitab[ptr[1]] && ctype_digit) != 0) + else if ((digitab[ptr[1]] & ctype_digit) != 0) { int condref; /* Don't amalgamate; some compilers */ condref = *(++ptr) - '0'; /* grumble at autoincrement in declaration */ diff --git a/lib/pcre/pcre_exec.c b/lib/pcre/pcre_exec.c index e8a9d85bc..aeb405f31 100644 --- a/lib/pcre/pcre_exec.c +++ b/lib/pcre/pcre_exec.c @@ -354,7 +354,7 @@ because they are used a lot in loops. */ register int rrc; /* Returns from recursive calls */ register int i; /* Used for loops not involving calls to RMATCH() */ register int c; /* Character values not kept over RMATCH() calls */ -register BOOL utf8; /* Local copy of UTF-8 flag for speed */ +//register BOOL utf8; /* Local copy of UTF-8 flag for speed */ /* When recursion is not being used, all "local" variables that have to be preserved over calls to RMATCH() are part of a "frame" which is obtained from @@ -472,7 +472,7 @@ performance when true recursion is being used. */ if (md->match_call_count++ >= md->match_limit) RRETURN(PCRE_ERROR_MATCHLIMIT); original_ims = ims; /* Save for resetting on ')' */ -utf8 = md->utf8; /* Local copy of the flag */ +//utf8 = md->utf8; /* Local copy of the flag */ /* At the start of a bracketed group, add the current subject pointer to the stack of such pointers, to be re-instated at the end of the group when we hit diff --git a/lib/pcre/pcre_study.c b/lib/pcre/pcre_study.c index d843a6950..5dc156ab4 100644 --- a/lib/pcre/pcre_study.c +++ b/lib/pcre/pcre_study.c @@ -103,7 +103,7 @@ code. Apparently IBM isn't going to fix the problem, and we would rather not disable optimization (in this module it actually makes a big difference, and the pcre module can use all the optimization it can get). */ -volatile int dummy; +//volatile int dummy; do { @@ -161,7 +161,7 @@ do case OP_BRAMINZERO: if (!set_start_bits(++tcode, start_bits, caseless, utf8, cd)) return FALSE; - dummy = 1; + //dummy = 1; do tcode += GET(tcode,1); while (*tcode == OP_ALT); tcode += 1+LINK_SIZE; break; diff --git a/m4/ax_check_openssl.m4 b/m4/ax_check_openssl.m4 new file mode 100644 index 000000000..a87c5a6b6 --- /dev/null +++ b/m4/ax_check_openssl.m4 @@ -0,0 +1,124 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_check_openssl.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]]) +# +# DESCRIPTION +# +# Look for OpenSSL in a number of default spots, or in a user-selected +# spot (via --with-openssl). Sets +# +# OPENSSL_INCLUDES to the include directives required +# OPENSSL_LIBS to the -l directives required +# OPENSSL_LDFLAGS to the -L or -R flags required +# +# and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately +# +# This macro sets OPENSSL_INCLUDES such that source files should use the +# openssl/ directory in include directives: +# +# #include +# +# LICENSE +# +# Copyright (c) 2009,2010 Zmanda Inc. +# Copyright (c) 2009,2010 Dustin J. Mitchell +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. + +#serial 8 + +AU_ALIAS([CHECK_SSL], [AX_CHECK_OPENSSL]) +AC_DEFUN([AX_CHECK_OPENSSL], [ + found=false + AC_ARG_WITH([openssl], + [AS_HELP_STRING([--with-openssl=DIR], + [root of the OpenSSL directory])], + [ + case "$withval" in + "" | y | ye | yes | n | no) + AC_MSG_ERROR([Invalid --with-openssl value]) + ;; + *) ssldirs="$withval" + ;; + esac + ], [ + # if pkg-config is installed and openssl has installed a .pc file, + # then use that information and don't search ssldirs + AC_PATH_PROG([PKG_CONFIG], [pkg-config]) + if test x"$PKG_CONFIG" != x""; then + OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` + if test $? = 0; then + OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` + OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` + found=true + fi + fi + + # no such luck; use some default ssldirs + if ! $found; then + ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" + fi + ] + ) + + + # note that we #include , so the OpenSSL headers have to be in + # an 'openssl' subdirectory + + if ! $found; then + OPENSSL_INCLUDES= + for ssldir in $ssldirs; do + AC_MSG_CHECKING([for openssl/ssl.h in $ssldir]) + if test -f "$ssldir/include/openssl/ssl.h"; then + OPENSSL_INCLUDES="-I$ssldir/include" + OPENSSL_LDFLAGS="-L$ssldir/lib" + OPENSSL_LIBS="-lssl -lcrypto" + found=true + AC_MSG_RESULT([yes]) + break + else + AC_MSG_RESULT([no]) + fi + done + + # if the file wasn't found, well, go ahead and try the link anyway -- maybe + # it will just work! + fi + + # try the preprocessor and linker with our new flags, + # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS + + AC_MSG_CHECKING([whether compiling and linking against OpenSSL works]) + echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ + "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&AS_MESSAGE_LOG_FD + + save_LIBS="$LIBS" + save_LDFLAGS="$LDFLAGS" + save_CPPFLAGS="$CPPFLAGS" + LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" + LIBS="$OPENSSL_LIBS $LIBS" + CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([#include ], [SSL_new(NULL)])], + [ + AC_MSG_RESULT([yes]) + $1 + ], [ + AC_MSG_RESULT([no]) + $2 + ]) + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + + AC_SUBST([OPENSSL_INCLUDES]) + AC_SUBST([OPENSSL_LIBS]) + AC_SUBST([OPENSSL_LDFLAGS]) +]) diff --git a/messages/Makefile.am b/messages/Makefile.am new file mode 100644 index 000000000..f481a51bf --- /dev/null +++ b/messages/Makefile.am @@ -0,0 +1,2 @@ +MAINTAINERCLEANFILES=Makefile.in +dist_pkgdata_DATA=ayb.lang custom.lang ircd-brazilian_pt.lang ircd-croatian.lang ircd-danish.lang ircd-dutch.lang ircd-french.lang ircd-german.lang ircd-norwegian.lang ircd-polish.lang ircd-russian.lang ircd-spanish.lang ircd-swedish.lang diff --git a/messages/Makefile.in b/messages/Makefile.in deleted file mode 100644 index 9ff5d7933..000000000 --- a/messages/Makefile.in +++ /dev/null @@ -1,45 +0,0 @@ -# $Id$ -# -RM = @RM@ -MV = @MV@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -prefix = $(DESTDIR)@prefix@ -messagedir = $(prefix)/messages -datarootdir = $(DESTDIR)@datarootdir@ - -CLOBBER = @CLOBBER@ - -LANGFILES = ayb.lang \ - custom.lang \ - ircd-brazilian_pt.lang \ - ircd-croatian.lang \ - ircd-danish.lang \ - ircd-dutch.lang \ - ircd-french.lang \ - ircd-german.lang \ - ircd-norwegian.lang \ - ircd-polish.lang \ - ircd-russian.lang \ - ircd-spanish.lang \ - ircd-swedish.lang - -all: - -install: - mkdir -p $(messagedir) - -@echo "Installing language files to $(messagedir)..."; \ - - @for i in $(LANGFILES); do \ - if test -f $(messagedir)/$$i -a -z "$(CLOBBER)"; then \ - echo $(MV) $(messagedir)/$$i $(messagedir)/$$i.old; \ - $(MV) $(messagedir)/$$i $(messagedir)/$$i.old; \ - fi; \ - echo $(INSTALL_DATA) $$i $(messagedir); \ - $(INSTALL_DATA) $$i $(messagedir); \ - done - -distclean: - ${RM} -f Makefile - -.PHONY: install distclean diff --git a/modules/Makefile.am b/modules/Makefile.am new file mode 100644 index 000000000..c4c8bfe88 --- /dev/null +++ b/modules/Makefile.am @@ -0,0 +1,159 @@ +MAINTAINERCLEANFILES=Makefile.in +SUBDIRS=core +AM_CPPFLAGS=-I$(top_srcdir)/lib/pcre -I$(top_srcdir)/include $(OPENSSL_INCLUDES) + +moduledir=$(pkglibdir)/autoload + +if USE_SHARED_MODULES +AM_LDFLAGS= -module +module_LTLIBRARIES= m_accept.la \ + m_admin.la \ + m_away.la \ + m_capab.la \ + m_cap.la \ + m_cburst.la \ + m_certfp.la \ + m_challenge.la \ + m_close.la \ + m_connect.la \ + m_cryptlink.la \ + m_drop.la \ + m_encap.la \ + m_eob.la \ + m_etrace.la \ + m_gline.la \ + m_gnotice.la \ + m_hash.la \ + m_help.la \ + m_info.la \ + m_invite.la \ + m_ison.la \ + m_kline.la \ + m_knock.la \ + m_links.la \ + m_list.la \ + m_lljoin.la \ + m_llnick.la \ + m_locops.la \ + m_log.la \ + m_lusers.la \ + m_map.la \ + m_motd.la \ + m_names.la \ + m_nburst.la \ + m_omotd.la \ + m_oper.la \ + m_operwall.la \ + m_pass.la \ + m_ping.la \ + m_pong.la \ + m_post.la \ + m_realhost.la \ + m_rehash.la \ + m_restart.la \ + m_resv.la \ + m_rkline.la \ + m_rxline.la \ + m_set.la \ + m_shedding.la \ + m_stats.la \ + m_services.la \ + m_svinfo.la \ + m_svscloak.la \ + m_svsmode.la \ + m_tburst.la \ + m_testline.la \ + m_testmask.la \ + m_time.la \ + m_topic.la \ + m_trace.la \ + m_user.la \ + m_userhost.la \ + m_users.la \ + m_version.la \ + m_wallops.la \ + m_who.la \ + m_whois.la \ + m_whowas.la \ + m_xline.la \ + #soft_reboot.la +else +AM_LDFLAGS=-static +noinst_LTLIBRARIES= m_accept.la \ + m_admin.la \ + m_away.la \ + m_capab.la \ + m_cap.la \ + m_cburst.la \ + m_certfp.la \ + m_challenge.la \ + m_close.la \ + m_connect.la \ + m_cryptlink.la \ + m_drop.la \ + m_encap.la \ + m_eob.la \ + m_etrace.la \ + m_gline.la \ + m_gnotice.la \ + m_hash.la \ + m_help.la \ + m_info.la \ + m_invite.la \ + m_ison.la \ + m_kline.la \ + m_knock.la \ + m_links.la \ + m_list.la \ + m_lljoin.la \ + m_llnick.la \ + m_locops.la \ + m_log.la \ + m_lusers.la \ + m_map.la \ + m_motd.la \ + m_names.la \ + m_nburst.la \ + m_omotd.la \ + m_oper.la \ + m_operwall.la \ + m_pass.la \ + m_ping.la \ + m_pong.la \ + m_post.la \ + m_realhost.la \ + m_rehash.la \ + m_restart.la \ + m_resv.la \ + m_rkline.la \ + m_rxline.la \ + m_set.la \ + m_shedding.la \ + m_stats.la \ + m_services.la \ + m_svinfo.la \ + m_svscloak.la \ + m_svsmode.la \ + m_tburst.la \ + m_testline.la \ + m_testmask.la \ + m_time.la \ + m_topic.la \ + m_trace.la \ + m_user.la \ + m_userhost.la \ + m_users.la \ + m_version.la \ + m_wallops.la \ + m_who.la \ + m_whois.la \ + m_whowas.la \ + m_xline.la \ + #soft_reboot.la + +endif + +AM_LDFLAGS+=$(OPENSSL_LDFLAGS) + +install-exec-local: + rm -f $(DESTDIR)/$(moduledir)/*.la $(DESTDIR)/$(moduledir)/*.a $(DESTDIR)/$(moduledir)/*.so diff --git a/modules/Makefile.in b/modules/Makefile.in deleted file mode 100644 index d060e491c..000000000 --- a/modules/Makefile.in +++ /dev/null @@ -1,226 +0,0 @@ -# -# Makefile.in for ircd/modules -# -# $Id$ -# -CC = @CC@ -AR = @AR@ -RM = @RM@ -SED = @SED@ -SEDOBJ = @SEDOBJ@ -STDOUT = @STDOUT@ -CFLAGS = @IRC_CFLAGS@ -PICFLAGS = @PICFLAGS@ -MKDEP = @MKDEP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -MV = @MV@ -LD = @LD@ - -SSL_LIBS = @SSL_LIBS@ -SSL_INCLUDES = @SSL_INCLUDES@ -IRCDLIBS = @LIBS@ $(SSL_LIBS) - -prefix = @prefix@ -datarootdir = $(DESTDIR)@datarootdir@ -# Change this later! -- adrian -moduledir = $(DESTDIR)${prefix}/modules -automoduledir = ${moduledir}/autoload - -INCLUDES = -I../include -I../lib/pcre $(SSL_INCLUDES) -CPPFLAGS = ${INCLUDES} @CPPFLAGS@ - -CORE_SRCS = \ - core/m_die.c \ - core/m_join.c \ - core/m_kick.c \ - core/m_kill.c \ - core/m_message.c \ - core/m_mode.c \ - core/m_nick.c \ - core/m_part.c \ - core/m_quit.c \ - core/m_server.c \ - core/m_sjoin.c \ - core/m_squit.c \ - core/spy_admin_notice.c \ - core/spy_info_notice.c \ - core/spy_links_notice.c \ - core/spy_motd_notice.c \ - core/spy_stats_notice.c \ - core/spy_stats_p_notice.c \ - core/spy_trace_notice.c \ - core/spy_whois_notice.c - -SSL_SRCS = \ - m_challenge.c \ - m_cryptlink.c - -OFTC_SRCS = \ - m_certfp.c \ - m_gnotice.c \ - m_map.c \ - m_realhost.c \ - m_services.c \ - m_shedding.c \ - m_svscloak.c \ - m_svsmode.c \ - m_svsjoin.c \ - m_tburst.c \ - m_webirc.c - -SRCS = \ - m_accept.c \ - m_admin.c \ - m_away.c \ - m_cap.c \ - m_capab.c \ - m_cburst.c \ - m_close.c \ - @SSL_SRCS_ENABLE@ \ - m_connect.c \ - m_drop.c \ - m_encap.c \ - m_eob.c \ - m_etrace.c \ - m_hash.c \ - m_help.c \ - m_gline.c \ - m_info.c \ - m_invite.c \ - m_ison.c \ - m_kline.c \ - m_knock.c \ - m_links.c \ - m_list.c \ - m_log.c \ - m_lljoin.c \ - m_llnick.c \ - m_locops.c \ - m_lusers.c \ - m_map.c \ - m_motd.c \ - m_names.c \ - m_nburst.c \ - m_omotd.c \ - m_oper.c \ - m_operwall.c \ - m_pass.c \ - m_ping.c \ - m_pong.c \ - m_post.c \ - m_rehash.c \ - m_restart.c \ - m_resv.c \ - m_rkline.c \ - m_rxline.c \ - m_set.c \ - m_stats.c \ - m_svinfo.c \ - m_tburst.c \ - m_testmask.c \ - m_testline.c \ - m_time.c \ - m_topic.c \ - m_trace.c \ - m_user.c \ - m_userhost.c \ - m_users.c \ - m_version.c \ - m_wallops.c \ - m_who.c \ - m_whois.c \ - m_whowas.c \ - m_xline.c - -ALL_SRCS = $(CORE_SRCS) $(SRCS) ${OFTC_SRCS} @SSL_SRCS_ENABLE@ - -SH_OBJS = ${SRCS:.c=.so} ${OFTC_SRCS:.c=.so} -SH_CORE_OBJS = ${CORE_SRCS:.c=.so} - -HPUX_OBJS = ${SH_OBJS:.so=.sl} -HPUX_CORE_OBJS = ${SH_CORE_OBJS:.so=.sl} - -S_OBJS = ${ALL_SRCS:.c=.o} - -default: build -build: all -all: .depend @MOD_TARGET@ - -shared_modules: $(SH_CORE_OBJS) $(SH_OBJS) - -hpux_shared: $(SH_CORE_OBJS) $(SH_OBJS) $(HPUX_CORE_OBJS) $(HPUX_OBJS) - -libmodules.a: $(S_OBJS) - $(RM) -f $@ - $(AR) csrv $@ $(S_OBJS) - -install-mkdirs: - mkdir -p $(prefix) - - -@if test -d $(moduledir)-old; then \ - echo "${RM} -rf $(moduledir)-old"; \ - ${RM} -rf $(moduledir)-old; \ - fi - -@if test -d $(moduledir); then \ - echo "${MV} $(moduledir) $(moduledir)-old"; \ - ${MV} $(moduledir) $(moduledir)-old; \ - fi - - mkdir -p $(moduledir) $(automoduledir) - -install: install_@MOD_TARGET@ - -install_libmodules.a: libmodules.a -# Ye olde noop here. - -install_shared_modules: install-mkdirs - @echo "Installing core modules into $(moduledir) .." - @for file in $(SH_CORE_OBJS); do \ - $(INSTALL_DATA) $$file $(moduledir); \ - done - @echo "Installing modules into $(automoduledir) .." - @for file in $(SH_OBJS); do \ - $(INSTALL_DATA) $$file $(automoduledir); \ - done - -install_hpux_shared: install-mkdirs - @echo "Installing core modules into $(moduledir) .." - @for file in $(HPUX_CORE_OBJS); do \ - $(INSTALL_DATA) $$file $(moduledir); \ - done - @echo "Installing modules into $(automoduledir) .." - @for file in $(HPUX_OBJS); do \ - $(INSTALL_DATA) $$file $(automoduledir); \ - done - -.SUFFIXES: .sl .so .o - -.c.o: - ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@ - -.c.so: - ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ - -.so.sl: - $(LD) -b $< -o $@ - -.depend: - ${MKDEP} ${CPPFLAGS} ${ALL_SRCS} ${STDOUT} - ${SED} -e '${SEDOBJ}' < .depend > .depend.tmp-1 - ${SED} -e 's/^m_\(server\|squit\|die\|join\|kick\|kill\|message\|mode\|nick\|part\|quit\|sjoin\)/core\/m_\1/' .depend.tmp-1 > .depend.tmp - @${SED} -e '/^# Autogenerated - do not delete/,$$d' Makefile.depend - @echo '# Autogenerated - do not delete' >>Makefile.depend - @echo 'include .depend' >> Makefile.depend - @${MV} Makefile.depend Makefile - ${MV} -f .depend.tmp .depend - ${RM} -f .depend.tmp-1 - -clean: - ${RM} -f *.so *.sl *~ *.o *.a so_locations - ${RM} -f core/*.so core/*.sl core/*~ core/*.o - -distclean: clean - ${RM} -f Makefile .depend - -.PHONY: clean distclean install install_hpux_shared hpux_shared install_shared_modules shared_modules install_libmodules.a install-mkdirs build diff --git a/modules/core/Makefile.am b/modules/core/Makefile.am new file mode 100644 index 000000000..996e92703 --- /dev/null +++ b/modules/core/Makefile.am @@ -0,0 +1,34 @@ +MAINTAINERCLEANFILES=Makefile.in +AM_CPPFLAGS=-I$(top_srcdir)/include -I$(top_srcdir)/lib/pcre +if USE_SHARED_MODULES +AM_LDFLAGS= -module +pkglib_LTLIBRARIES= m_die.la \ + m_join.la \ + m_kick.la \ + m_kill.la \ + m_message.la \ + m_mode.la \ + m_nick.la \ + m_part.la \ + m_quit.la \ + m_server.la \ + m_sjoin.la \ + m_squit.la +else +AM_LDFLAGS=-static +noinst_LTLIBRARIES= m_die.la \ + m_join.la \ + m_kick.la \ + m_kill.la \ + m_message.la \ + m_mode.la \ + m_nick.la \ + m_part.la \ + m_quit.la \ + m_server.la \ + m_sjoin.la \ + m_squit.la +endif + +install-exec-local: + rm -f $(DESTDIR)/$(pkglibdir)/*.la $(DESTDIR)/$(pkblibdir)/*.a $(DESTDIR)/$(pkblibdir)/*.so diff --git a/modules/core/m_sjoin.c b/modules/core/m_sjoin.c index 719904cdc..69f4f2a33 100644 --- a/modules/core/m_sjoin.c +++ b/modules/core/m_sjoin.c @@ -906,8 +906,7 @@ introduce_lazy_link_clients(struct Client *client_p, continue; /* Ignore servers we won't tell anyway */ - if (!chptr->lazyLinkChannelExists & - (lclient_p->localClient->serverMask)) + if (!(chptr->lazyLinkChannelExists & (lclient_p->localClient->serverMask))) continue; /* Ignore servers that already know target_p */ diff --git a/modules/m_encap.c b/modules/m_encap.c index f01f4a689..b042221df 100644 --- a/modules/m_encap.c +++ b/modules/m_encap.c @@ -70,7 +70,6 @@ ms_encap(struct Client *client_p, struct Client *source_p, { char buffer[IRCD_BUFSIZE], *ptr = buffer; unsigned int cur_len = 0, len, i; - int paramcount, mpara = 0; struct Message *mptr = NULL; MessageHandler handler = 0; @@ -111,8 +110,6 @@ ms_encap(struct Client *client_p, struct Client *source_p, if ((mptr = find_command(parv[2])) == NULL) return; - paramcount = mptr->parameters; - mpara = mptr->maxpara; mptr->bytes += strlen(buffer); diff --git a/modules/m_etrace.c b/modules/m_etrace.c index 6442817b6..4f4e17dca 100644 --- a/modules/m_etrace.c +++ b/modules/m_etrace.c @@ -179,7 +179,6 @@ static void report_this_status(struct Client *source_p, struct Client *target_p, int full_etrace) { - const char *name; const char *class_name; char ip[HOSTIPLEN]; @@ -188,7 +187,6 @@ report_this_status(struct Client *source_p, struct Client *target_p, target_p->ip.ss_len, ip, HOSTIPLEN, NULL, 0, NI_NUMERICHOST); - name = get_client_name(target_p, HIDE_IP); class_name = get_client_class(target_p); set_time(); diff --git a/modules/m_help.c b/modules/m_help.c index 76e179c2d..2f6a5fef4 100644 --- a/modules/m_help.c +++ b/modules/m_help.c @@ -36,8 +36,6 @@ #include "modules.h" #include "irc_string.h" -#define HPATH IRCD_PREFIX "/help/opers" -#define UHPATH IRCD_PREFIX "/help/users" #define HELPLEN 400 static void m_help(struct Client *, struct Client *, int, char *[]); @@ -201,7 +199,6 @@ sendhelpfile(struct Client *source_p, const char *path, const char *topic) me.name, source_p->name, topic); return; } - else if (line[0] != '#') { line[strlen(line) - 1] = '\0'; @@ -218,12 +215,12 @@ sendhelpfile(struct Client *source_p, const char *path, const char *topic) if (!started) { type = RPL_HELPSTART; - started = 1; + started = 1; } else type = RPL_HELPTXT; - sendto_one(source_p, form_str(RPL_HELPTXT), + sendto_one(source_p, form_str(type), me.name, source_p->name, topic, line); } } diff --git a/modules/m_restart.c b/modules/m_restart.c index b70cbeba5..c4dae68e9 100644 --- a/modules/m_restart.c +++ b/modules/m_restart.c @@ -302,7 +302,7 @@ do_shutdown(const char *msg, int rboot) burst_all(make_dummy(transfd[1])); send_queued_all(); - snprintf(buf, sizeof(buf), "\001%ld\r\n", me.since); + snprintf(buf, sizeof(buf), "\001%zd\r\n", me.since); write(transfd[1], buf, strlen(buf)); DLINK_FOREACH(ptr, local_client_list.head) diff --git a/modules/m_stats.c b/modules/m_stats.c index 38241b12e..599243024 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -747,7 +747,6 @@ static void stats_deny(struct Client *source_p) { struct AddressRec *arec; - struct ConfItem *conf; struct AccessItem *aconf; int i; @@ -763,11 +762,9 @@ stats_deny(struct Client *source_p) if (aconf->flags & CONF_FLAGS_TEMPORARY) continue; - conf = unmap_conf_item(aconf); - sendto_one(source_p, form_str(RPL_STATSDLINE), - from, to, 'D', aconf->host, aconf->reason, - aconf->oper_reason); + from, to, 'D', aconf->host, aconf->reason, + aconf->oper_reason); } } } @@ -783,7 +780,6 @@ static void stats_tdeny(struct Client *source_p) { struct AddressRec *arec; - struct ConfItem *conf; struct AccessItem *aconf; int i; @@ -799,11 +795,10 @@ stats_tdeny(struct Client *source_p) if (!(aconf->flags & CONF_FLAGS_TEMPORARY)) continue; - conf = unmap_conf_item(aconf); sendto_one(source_p, form_str(RPL_STATSDLINE), - from, to, 'd', aconf->host, aconf->reason, - aconf->oper_reason); + from, to, 'd', aconf->host, aconf->reason, + aconf->oper_reason); } } } @@ -819,7 +814,6 @@ static void stats_exempt(struct Client *source_p) { struct AddressRec *arec; - struct ConfItem *conf; struct AccessItem *aconf; int i; @@ -838,11 +832,9 @@ stats_exempt(struct Client *source_p) { aconf = arec->aconf; - conf = unmap_conf_item(aconf); - sendto_one(source_p, form_str(RPL_STATSDLINE), - from, to, 'e', aconf->host, - aconf->reason, aconf->oper_reason); + from, to, 'e', aconf->host, + aconf->reason, aconf->oper_reason); } } } @@ -988,7 +980,6 @@ stats_auth(struct Client *source_p) /* If unopered, Only return matching auth blocks */ else if ((ConfigFileEntry.stats_i_oper_only == 1) && !IsOper(source_p)) { - struct ConfItem *conf; struct AccessItem *aconf; if (MyConnect(source_p)) @@ -1002,8 +993,6 @@ stats_auth(struct Client *source_p) if (aconf == NULL) return; - conf = unmap_conf_item(aconf); - sendto_one(source_p, form_str(RPL_STATSILINE), from, to, 'I', "*", show_iline_prefix(source_p, aconf, aconf->user), @@ -1018,7 +1007,6 @@ stats_auth(struct Client *source_p) static void stats_tklines(struct Client *source_p) { - struct ConfItem *conf; /* Oper only, if unopered, return ERR_NOPRIVILEGES */ if ((ConfigFileEntry.stats_k_oper_only == 2) && !IsOper(source_p)) sendto_one(source_p, form_str(ERR_NOPRIVILEGES), @@ -1043,8 +1031,6 @@ stats_tklines(struct Client *source_p) if (!(aconf->flags & CONF_FLAGS_TEMPORARY)) return; - conf = unmap_conf_item(aconf); - sendto_one(source_p, form_str(RPL_STATSKLINE), from, to, "k", aconf->host, aconf->user, aconf->reason, ""); } diff --git a/modules/m_svinfo.c b/modules/m_svinfo.c index 25efb015b..09a3777f4 100644 --- a/modules/m_svinfo.c +++ b/modules/m_svinfo.c @@ -103,7 +103,7 @@ ms_svinfo(struct Client *client_p, struct Client *source_p, */ set_time(); theirtime = atol(parv[4]); - deltat = abs(theirtime - CurrentTime); + deltat = labs(theirtime - CurrentTime); strftime(timestamp, sizeof(timestamp), "%Y-%m-%d %H:%M:%S Z", gmtime(&CurrentTime)); strftime(theirtimestamp, sizeof(theirtimestamp), "%Y-%m-%d %H:%M:%S Z", gmtime(&theirtime)); diff --git a/modules/m_trace.c b/modules/m_trace.c index c7ee3ee93..cac210de5 100644 --- a/modules/m_trace.c +++ b/modules/m_trace.c @@ -185,7 +185,7 @@ do_actual_trace(struct Client *source_p, int parc, char **parv) struct ConfItem *conf; struct ClassItem *cltmp; int doall = 0; - int cnt = 0, wilds, dow; + int wilds, dow; dlink_node *ptr; const char *from, *to, *tname; @@ -273,7 +273,7 @@ do_actual_trace(struct Client *source_p, int parc, char **parv) if (!dow && irccmp(tname, target_p->name)) continue; - cnt = report_this_status(source_p, target_p, dow, 0, 0); + report_this_status(source_p, target_p, dow, 0, 0); } DLINK_FOREACH(ptr, serv_list.head) @@ -285,7 +285,7 @@ do_actual_trace(struct Client *source_p, int parc, char **parv) if (!dow && irccmp(tname, target_p->name)) continue; - cnt = report_this_status(source_p, target_p, dow, + report_this_status(source_p, target_p, dow, target_p->serv->dep_users, target_p->serv->dep_servers); } @@ -299,7 +299,7 @@ do_actual_trace(struct Client *source_p, int parc, char **parv) if (!dow && irccmp(tname, target_p->name)) continue; - cnt = report_this_status(source_p, target_p, dow, 0, 0); + report_this_status(source_p, target_p, dow, 0, 0); } DLINK_FOREACH(ptr, class_items.head) diff --git a/modules/m_user.c b/modules/m_user.c index 019d621d5..9e4b5629f 100644 --- a/modules/m_user.c +++ b/modules/m_user.c @@ -30,17 +30,17 @@ #include "numeric.h" #include "s_user.h" #include "send.h" -#include "s_conf.h" #include "msg.h" #include "parse.h" #include "modules.h" +#include "listener.h" -static void mr_user(struct Client*, struct Client*, int, char**); +static void mr_user(struct Client *, struct Client *, int, char *[]); struct Message user_msgtab = { "USER", 0, 0, 5, 0, MFLG_SLOW, 0L, - {mr_user, m_registered, m_ignore, m_ignore, m_registered, m_ignore} + { mr_user, m_registered, m_ignore, m_ignore, m_registered, m_ignore } }; #ifndef STATIC_MODULES @@ -73,13 +73,19 @@ mr_user(struct Client *client_p, struct Client *source_p, { char *p; - if ((p = strchr(parv[1],'@')) != NULL) + if (source_p->localClient->listener->flags & LISTENER_SERVER) + { + exit_client(source_p, &me, "Use a different port"); + return; + } + + if ((p = strchr(parv[1], '@')) != NULL) *p = '\0'; - if (*parv[4] == '\0') + if (EmptyString(parv[4])) { - sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), - me.name, EmptyString(parv[0]) ? "*" : parv[0], "USER"); + sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name, + source_p->name[0] ? source_p->name : "*", "USER"); return; } diff --git a/servlink/Makefile.am b/servlink/Makefile.am new file mode 100644 index 000000000..939fb9998 --- /dev/null +++ b/servlink/Makefile.am @@ -0,0 +1,10 @@ +MAINTAINERCLEANFILES=Makefile.in + +AM_CPPFLAGS=$(OPENSSL_INCLUDES) + +bin_PROGRAMS=servlink + +servlink_LDFLAGS=-export-dynamic $(OPENSSL_LDFLAGS) +servlink_LDADD=$(OPENSSL_LIBS) + +servlink_SOURCES=servlink.c io.c control.c diff --git a/servlink/Makefile.in b/servlink/Makefile.in deleted file mode 100644 index 6f1e1edc5..000000000 --- a/servlink/Makefile.in +++ /dev/null @@ -1,74 +0,0 @@ -# -# Makefile.in for servlink/src -# -# $Id$ -# - -CC = @CC@ -INSTALL = @INSTALL@ -INSTALL_BIN = @INSTALL_PROGRAM@ -CFLAGS = @IRC_CFLAGS@ -LDFLAGS = @LDFLAGS@ -MKDEP = @MKDEP@ -STDOUT = @STDOUT@ -MV = @MV@ -RM = @RM@ -SED = @SED@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = $(DESTDIR)@bindir@ -datarootdir = $(DESTDIR)@datarootdir@ - -CLOBBER = @CLOBBER@ -SSL_LIBS = @SSL_LIBS@ -SSL_INCLUDES = @SSL_INCLUDES@ -ZIP_LIB = @ZLIB_LD@ -IRCDLIBS = @LIBS@ $(SSL_LIBS) $(ZIP_LIB) - -INCLUDES = -I. -I../include $(SSL_INCLUDES) -CPPFLAGS = ${INCLUDES} @CPPFLAGS@ - -PROGS = servlink - -SOURCES = \ - servlink.c \ - io.c \ - control.c - -OBJECTS = ${SOURCES:.c=.o} - -all: .depend servlink - -build: all - -servlink: ${OBJECTS} - ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${IRCDLIBS} - -install: build - mkdir -p $(bindir) - @for i in $(PROGS); do \ - if test -f $(bindir)/$$i -a -z "$(CLOBBER)"; then \ - echo $(MV) $(bindir)/$$i $(bindir)/$$i.old; \ - $(MV) $(bindir)/$$i $(bindir)/$$i.old; \ - fi; \ - echo $(INSTALL_BIN) $$i $(bindir); \ - $(INSTALL_BIN) $$i $(bindir); \ - done - -.c.o: - ${CC} ${CPPFLAGS} ${CFLAGS} -c $< - -.depend: - ${MKDEP} ${CPPFLAGS} ${SOURCES} ${STDOUT} - @${SED} -e '/^# Autogenerated - do not delete/,$$d' Makefile.depend - @echo '# Autogenerated - do not delete' >>Makefile.depend - @echo 'include .depend' >> Makefile.depend - @${MV} Makefile.depend Makefile - -clean: - ${RM} -f $(OBJECTS) servlink - -distclean: clean - ${RM} -f Makefile .depend - -.PHONY: clean distclean install build diff --git a/servlink/io.c b/servlink/io.c index 6b4ddd26c..968625c9e 100644 --- a/servlink/io.c +++ b/servlink/io.c @@ -166,15 +166,13 @@ process_sendq(struct ctrl_command *cmd) void process_recvq(struct ctrl_command *cmd) { - int ret; unsigned char *buf; - int blen; + unsigned int blen; unsigned char *data = cmd->data; unsigned int datalen = cmd->datalen; buf = data; blen = datalen; - ret = -1; if (datalen > READLEN) send_error("Error processing INJECT_RECVQ - buffer too long (%d > %d)", datalen, READLEN); @@ -183,7 +181,7 @@ process_recvq(struct ctrl_command *cmd) if (in_state.crypt) { assert(EVP_DecryptUpdate(&in_state.crypt_state.ctx, - tmp_buf, &blen, + tmp_buf, (int *)&blen, data, datalen)); assert(blen == datalen); buf = tmp_buf; @@ -193,6 +191,9 @@ process_recvq(struct ctrl_command *cmd) #ifdef HAVE_LIBZ if (in_state.zip) { + int ret; + + ret = -1; /* decompress data */ in_state.zip_state.stream.next_in = buf; in_state.zip_state.stream.avail_in = blen; @@ -447,10 +448,9 @@ write_ctrl(void) void read_data(void) { - int ret, ret2; + int ret; unsigned char *buf = out_state.buf; int blen; - ret2 = -1; assert(!out_state.len); #if defined(HAVE_LIBZ) || defined(HAVE_LIBCRYPTO) @@ -465,6 +465,8 @@ read_data(void) #ifdef HAVE_LIBZ if (out_state.zip) { + int ret2 = -1; + out_state.zip_state.stream.next_in = buf; out_state.zip_state.stream.avail_in = ret; @@ -556,10 +558,8 @@ void read_net(void) { int ret; - int ret2; unsigned char *buf = in_state.buf; int blen; - ret2 = -1; assert(!in_state.len); #if defined(HAVE_LIBCRYPTO) || defined(HAVE_LIBZ) @@ -592,6 +592,7 @@ read_net(void) #ifdef HAVE_LIBZ if (in_state.zip) { + int ret2 = -1; /* decompress data */ in_state.zip_state.stream.next_in = buf; in_state.zip_state.stream.avail_in = ret; diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 000000000..ccbd4a618 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,75 @@ +MAINTAINERCLEANFILES=Makefile.in +sbin_PROGRAMS=ircd +ircd_SOURCES= balloc.c \ + channel.c \ + channel_mode.c \ + client.c \ + csvlib.c \ + dbuf.c \ + dynlink.c \ + event.c \ + fdlist.c \ + fileio.c \ + getopt.c \ + hash.c \ + hook.c \ + hostmask.c \ + irc_getaddrinfo.c \ + irc_getnameinfo.c \ + irc_res.c \ + irc_reslib.c \ + irc_string.c \ + ircd.c \ + ircd_signal.c \ + list.c \ + listener.c \ + m_error.c \ + match.c \ + memory.c \ + modules.c \ + motd.c \ + numeric.c \ + packet.c \ + parse.c \ + s_conf.c \ + s_bsd_epoll.c \ + s_bsd_poll.c \ + s_bsd_sigio.c \ + s_bsd_devpoll.c \ + s_bsd_kqueue.c \ + s_bsd_select.c \ + s_bsd_win32.c \ + restart.c \ + resv.c \ + rsa.c \ + s_auth.c \ + s_bsd.c \ + s_gline.c \ + s_log.c \ + s_misc.c \ + s_serv.c \ + s_user.c \ + s_stats.c \ + send.c \ + sprintf_irc.c \ + tools.c \ + version.c \ + whowas.c \ + ircd_parser.y \ + ircd_lexer.l + +if HAVE_CRYPT +ircd_SOURCES+=crypt.c +endif + +ircd_LDFLAGS=-export-dynamic $(OPENSSL_LDFLAGS) +AM_CPPFLAGS=$(LTDLINCL) -I$(top_srcdir)/include -I$(top_srcdir)/lib/pcre $(OPENSSL_INCLUDES) + +if USE_SHARED_MODULES +ircd_LDADD=$(LIBLTDL) +ircd_DEPENDENCIES=$(LTDLDEPS) +else +ircd_LDADD=$(top_srcdir)/modules/libmodules.la +endif +ircd_LDADD+=$(top_srcdir)/lib/pcre/libpcre.a $(OPENSSL_LIBS) +AM_YFLAGS=-d diff --git a/src/Makefile.in b/src/Makefile.in deleted file mode 100644 index 35e9f93f8..000000000 --- a/src/Makefile.in +++ /dev/null @@ -1,160 +0,0 @@ -# -# Makefile.in for ircd/src -# -# $Id$ -# -@SET_MAKE@ - -CC = @CC@ -INSTALL = @INSTALL@ -INSTALL_BIN = @INSTALL_PROGRAM@ -INSTALL_DATA = @INSTALL_DATA@ -LEX = @LEX@ -CFLAGS = @IRC_CFLAGS@ -LDFLAGS = @LDFLAGS@ -MKDEP = @MKDEP@ -STDOUT = @STDOUT@ -MV = @MV@ -RM = @RM@ -SED = @SED@ -YACC = @YACC@ - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = $(DESTDIR)@bindir@ -sysconfdir = $(DESTDIR)@sysconfdir@ -localstatedir = $(DESTDIR)@localstatedir@ -datarootdir = $(DESTDIR)@datarootdir@ - -# must not have whitespace here -CLOBBER=@CLOBBER@ - -NETIO_SRC = s_bsd_@SELECT_TYPE@.c -INET_MISC = @INET_MISC@ - -# If you wish to change this, look in include/defaults.h also and change SPATH -PROGS = ircd - -SSL_LIBS = @SSL_LIBS@ -SSL_INCLUDES = @SSL_INCLUDES@ -IRCDLIBS = @MODULES_LIBS@ @LIBS@ ../lib/pcre/libpcre.a $(SSL_LIBS) -INCLUDES = -I../include -I../lib/pcre $(SSL_INCLUDES) -CPPFLAGS = ${INCLUDES} @CPPFLAGS@ - -default: all - -y.tab.o: y.tab.c ircd_parser.y - ${CC} ${CPPFLAGS} ${CFLAGS} -I. -c y.tab.c - -# Note GNU bison uses .tab.c not y.tab.c -y.tab.c: ircd_parser.y - ${YACC} -d ircd_parser.y - -lex.yy.o: y.tab.c lex.yy.c ircd_lexer.l - ${CC} ${CPPFLAGS} ${CFLAGS} -I. -c lex.yy.c - -lex.yy.c: ircd_lexer.l - ${LEX} ircd_lexer.l - -SSL_SRCS = rsa.c - -BASE_SRCS = \ - @BALLOC_C@ \ - channel.c \ - channel_mode.c \ - client.c \ - @CRYPT_C@ \ - csvlib.c \ - dbuf.c \ - @DYNLINK_C@ \ - event.c \ - fdlist.c \ - fileio.c \ - getopt.c \ - hash.c \ - hook.c \ - hostmask.c \ - @INET_MISC@ \ - irc_getaddrinfo.c \ - irc_getnameinfo.c \ - irc_res.c \ - irc_reslib.c \ - irc_string.c \ - ircd.c \ - ircd_signal.c \ - list.c \ - listener.c \ - m_error.c \ - match.c \ - memory.c \ - modules.c \ - motd.c \ - numeric.c \ - packet.c \ - parse.c \ - restart.c \ - resv.c \ - @SSL_SRCS_ENABLE@ \ - s_auth.c \ - s_bsd.c \ - s_conf.c \ - s_gline.c \ - s_log.c \ - s_misc.c \ - s_serv.c \ - s_stats.c \ - s_user.c \ - send.c \ - @SNPRINTF_C@ \ - sprintf_irc.c \ - tools.c \ - version.c \ - whowas.c - -SRCS = ${BASE_SRCS} $(NETIO_SRC) -OBJS = ${SRCS:.c=.o} - -all: .depend ircd - -build: all - -ircd: @MODULES_LIBS@ ../lib/libpcre.a y.tab.o lex.yy.o $(OBJS) - ${CC} ${CFLAGS} ${LDFLAGS} -o $@ y.tab.o lex.yy.o ${OBJS} ${IRCDLIBS} - -../modules/libmodules.a: - cd ../modules && ${MAKE} ${MFLAGS} -../lib/libpcre.a: - cd ../lib/pcre && ${MAKE} ${MFLAGS} - -install-mkdirs: - mkdir -p $(DESTDIR)$(prefix) $(exec_prefix) $(bindir) $(sysconfdir) \ - $(localstatedir)/logs - -install: install-mkdirs build - @for i in $(PROGS); do \ - if test -f $(bindir)/$$i -a -z "$(CLOBBER)"; then \ - echo $(MV) $(bindir)/$$i $(bindir)/$$i.old; \ - $(MV) $(bindir)/$$i $(bindir)/$$i.old; \ - fi; \ - echo $(INSTALL_BIN) $$i $(bindir); \ - $(INSTALL_BIN) $$i $(bindir); \ - done - -# this is really the default rule for c files -.c.o: - ${CC} ${CPPFLAGS} ${CFLAGS} -c $< - -.depend: - ${MKDEP} ${CPPFLAGS} ${BASE_SRCS} ${NETIO_SRC} ${STDOUT} - @${SED} -e '/^# Autogenerated - do not delete/,$$d' Makefile.depend - @echo "# Autogenerated - do not delete" >> Makefile.depend - @echo "include .depend" >> Makefile.depend - @${MV} Makefile.depend Makefile - -clean: - ${RM} -f *.o *.exe *~ *core ircd - -distclean: clean - ${RM} -f Makefile .depend - -.PHONY: clean distclean install install-mkdirs build diff --git a/src/balloc.c b/src/balloc.c index 6da1ca2a8..73caef139 100644 --- a/src/balloc.c +++ b/src/balloc.c @@ -50,7 +50,10 @@ * down after we no longer need it. */ + #include "stdinc.h" + +#if USE_BLOCK_ALLOC #ifdef HAVE_MMAP /* We've got mmap() that is good */ #include @@ -502,3 +505,5 @@ block_heap_report_stats(struct Client *client_p) block_heap_get_size_elm(bh), block_heap_get_size_mem(bh)); } + +#endif diff --git a/src/channel.c b/src/channel.c index 4c51d68cc..b86c764a4 100644 --- a/src/channel.c +++ b/src/channel.c @@ -159,7 +159,7 @@ send_members(struct Client *client_p, struct Channel *chptr, { struct Membership *ms; dlink_node *ptr; - int tlen; /* length of text to append */ + unsigned int tlen; /* length of text to append */ char *t, *start; /* temp char pointer */ start = t = buf + ircsprintf(buf, ":%s SJOIN %lu %s %s %s:", @@ -186,7 +186,7 @@ send_members(struct Client *client_p, struct Channel *chptr, /* space will be converted into CR, but we also need space for LF.. * That's why we use '- 1' here * -adx */ - if (t + tlen - buf > sizeof(buf) - 1) + if ((unsigned long)(t + tlen - buf) > sizeof(buf) - 1) { *(t - 1) = '\0'; /* kill the space and terminate the string */ sendto_one(client_p, "%s", buf); diff --git a/src/channel_mode.c b/src/channel_mode.c index ba4d3b161..7395634d1 100644 --- a/src/channel_mode.c +++ b/src/channel_mode.c @@ -627,7 +627,7 @@ chm_simple(struct Client *client_p, struct Client *source_p, struct Channel *chp * * -Dianora */ - if ((dir == MODE_ADD)) /* && !(chptr->mode.mode & mode_type)) */ + if (dir == MODE_ADD) /* && !(chptr->mode.mode & mode_type)) */ { chptr->mode.mode |= mode_type; @@ -639,7 +639,7 @@ chm_simple(struct Client *client_p, struct Client *source_p, struct Channel *chp mode_changes[mode_count].mems = ALL_MEMBERS; mode_changes[mode_count++].arg = NULL; } - else if ((dir == MODE_DEL)) /* && (chptr->mode.mode & mode_type)) */ + else if (dir == MODE_DEL) /* && (chptr->mode.mode & mode_type)) */ { /* setting - */ diff --git a/src/csvlib.c b/src/csvlib.c index e0f226e72..1d9e9d872 100644 --- a/src/csvlib.c +++ b/src/csvlib.c @@ -354,7 +354,7 @@ write_conf_line(struct Client *source_p, struct ConfItem *conf, sendto_one(source_p, ":%s NOTICE %s :Added temporary %d min. K-Line [%s@%s]", from, to, duration/60, aconf->user, aconf->host); - ilog(L_TRACE, "%s added temporary %ld min. K-Line for [%s@%s] [%s]", + ilog(L_TRACE, "%s added temporary %zd min. K-Line for [%s@%s] [%s]", source_p->name, duration/60, aconf->user, aconf->host, aconf->reason); log_oper_action(LOG_TEMP_KLINE_TYPE, source_p, "[%s@%s] [%s]\n", aconf->user, aconf->host, aconf->reason); @@ -392,7 +392,7 @@ write_conf_line(struct Client *source_p, struct ConfItem *conf, sendto_one(source_p, ":%s NOTICE %s :Added temporary %d min. RK-Line [%s@%s]", from, to, duration/60, aconf->user, aconf->host); - ilog(L_TRACE, "%s added temporary %ld min. RK-Line for [%s@%s] [%s]", + ilog(L_TRACE, "%s added temporary %zd min. RK-Line for [%s@%s] [%s]", source_p->name, duration/60, aconf->user, aconf->host, aconf->reason); log_oper_action(LOG_TEMP_RKLINE_TYPE, source_p, "[%s@%s] [%s]\n", @@ -832,8 +832,7 @@ remove_conf_line(ConfType type, struct Client *source_p, const char *pat1, const if (pairme == 0) { - if(temppath != NULL) - (void)unlink(temppath); + (void)unlink(temppath); return 0; } else diff --git a/src/dynlink.c b/src/dynlink.c index b6ee9c00d..19ae88db5 100644 --- a/src/dynlink.c +++ b/src/dynlink.c @@ -22,6 +22,7 @@ * $Id$ * */ +#include "ltdl.h" #include "stdinc.h" #include "tools.h" #include "irc_string.h" @@ -29,14 +30,9 @@ #include "s_log.h" #include "client.h" #include "send.h" +#include -#ifndef RTLD_NOW -#define RTLD_NOW RTLD_LAZY /* openbsd deficiency */ -#endif - -#if defined(HAVE_DLINFO) && defined(HAVE_LINK_H) -# include -#endif +#if USE_SHARED_MODULES extern dlink_list mod_list; @@ -46,145 +42,16 @@ static char unknown_ver[] = ""; * -TimeMr14C */ -#if !defined(HAVE_SHL_LOAD) && !defined(HAVE_DLFUNC) -/* - * Fake dlfunc(3) if we don't have it, cause it's happy. - */ -typedef void (*__function_p)(void); - -static __function_p -dlfunc(void *myHandle, const char *functionName) -{ - /* XXX This is not guaranteed to work, but with - * traditional dl*(3), it is the best we can do. - * -jmallett - */ - void *symbolp; - - symbolp = dlsym(myHandle, functionName); - return((__function_p)(uintptr_t)symbolp); -} -#endif - -#ifdef HAVE_MACH_O_DYLD_H -/* -** jmallett's dl*(3) shims for NSModule(3) systems. -*/ -#include - -#ifndef HAVE_DLOPEN -#ifndef RTLD_LAZY -#define RTLD_LAZY 2185 /* built-in dl*(3) don't care */ -#endif - -void undefinedErrorHandler(const char *); -NSModule multipleErrorHandler(NSSymbol, NSModule, NSModule); -void linkEditErrorHandler(NSLinkEditErrors, int, const char *, const char *); -char *dlerror(void); -void *dlopen(char *, int); -int dlclose(void *); -void *dlsym(void *, char *); - -static int firstLoad = TRUE; -static int myDlError; -static const char *myErrorTable[] = -{ - "Loading file as object failed\n", - "Loading file as object succeeded\n", - "Not a valid shared object\n", - "Architecture of object invalid on this architecture\n", - "Invalid or corrupt image\n", - "Could not access object\n", - "NSCreateObjectFileImageFromFile failed\n", - NULL -}; - void -undefinedErrorHandler(const char *symbolName) +dynlink_init() { - sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL, "Undefined symbol: %s", symbolName); - ilog(L_WARN, "Undefined symbol: %s", symbolName); - return; -} - -NSModule -multipleErrorHandler(NSSymbol s, NSModule old, NSModule new) -{ - /* XXX - ** This results in substantial leaking of memory... Should free one - ** module, maybe? - */ - sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL,"Symbol `%s' found in `%s' and `%s'", - NSNameOfSymbol(s), NSNameOfModule(old), NSNameOfModule(new)); - ilog(L_WARN, "Symbol `%s' found in `%s' and `%s'", NSNameOfSymbol(s), - NSNameOfModule(old), NSNameOfModule(new)); - /* We return which module should be considered valid, I believe */ - return(new); -} - -void -linkEditErrorHandler(NSLinkEditErrors errorClass, int errnum, - const char *fileName, const char *errorString) -{ - sendto_realops_flags(UMODE_ALL, L_ALL, "Link editor error: %s for %s", - errorString, fileName); - ilog(L_WARN, "Link editor error: %s for %s", errorString, fileName); - return; -} - -char * -dlerror(void) -{ - return(myDlError == NSObjectFileImageSuccess ? NULL : myErrorTable[myDlError % 7]); -} - -void * -dlopen(char *filename, int unused) -{ - NSObjectFileImage myImage; - NSModule myModule; - - if (firstLoad) + if(lt_dlinit()) { - /* If we are loading our first symbol (huzzah!) we should go ahead - * and install link editor error handling! - */ - NSLinkEditErrorHandlers linkEditorErrorHandlers; - - linkEditorErrorHandlers.undefined = undefinedErrorHandler; - linkEditorErrorHandlers.multiple = multipleErrorHandler; - linkEditorErrorHandlers.linkEdit = linkEditErrorHandler; - NSInstallLinkEditErrorHandlers(&linkEditorErrorHandlers); - firstLoad = FALSE; + ilog(L_ERROR, "Couldn't initialize the libltdl runtime dynamic link library. Exiting"); + exit(0); } - - myDlError = NSCreateObjectFileImageFromFile(filename, &myImage); - - if (myDlError != NSObjectFileImageSuccess) - return(NULL); - - myModule = NSLinkModule(myImage, filename, NSLINKMODULE_OPTION_PRIVATE); - return((void *)myModule); } -int -dlclose(void *myModule) -{ - NSUnLinkModule(myModule, FALSE); - return(0); -} - -void * -dlsym(void *myModule, char *mySymbolName) -{ - NSSymbol mySymbol; - - mySymbol = NSLookupSymbolInModule((NSModule)myModule, mySymbolName); - return NSAddressOfSymbol(mySymbol); -} -#endif -#endif - /* unload_one_module() * * inputs - name of module to unload @@ -206,21 +73,8 @@ unload_one_module(char *name, int warn) if (modp->modremove) (*modp->modremove)(); -#ifdef HAVE_SHL_LOAD - /* shl_* and friends have a slightly different format than dl*. But it does not - * require creation of a totally new modules.c, instead proper usage of - * defines solve this case. -TimeMr14C - */ - shl_unload((shl_t) & (modp->handle)); -#else - /* We use FreeBSD's dlfunc(3) interface, or fake it as we - * used to here if it isn't there. The interface should - * be standardised some day, and so it eventually will be - * providing something guaranteed to do the right thing here. - * -jmallett - */ - dlclose(modp->handle); -#endif + lt_dlclose(modp->handle); + assert(dlink_list_length(&mod_list) > 0); dlinkDelete(ptr, &mod_list); MyFree(modp->name); @@ -244,14 +98,7 @@ unload_one_module(char *name, int warn) int load_a_module(char *path, int warn, int core) { -#ifdef HAVE_DLINFO - struct link_map *map; -#endif -#ifdef HAVE_SHL_LOAD - shl_t tmpptr; -#else - void *tmpptr = NULL; -#endif + lt_dlhandle tmpptr = NULL; void *addr = NULL; char *mod_basename; void (*initfunc)(void) = NULL; @@ -263,79 +110,34 @@ load_a_module(char *path, int warn, int core) mod_basename = basename(path); if (findmodule_byname(mod_basename) != NULL) - return(1); + return 1; -#ifdef HAVE_SHL_LOAD - tmpptr = shl_load(path, BIND_IMMEDIATE, NULL); -#else - tmpptr = dlopen(path, RTLD_NOW); -#endif - - if (tmpptr == NULL) + if(!(tmpptr = lt_dlopen(path))) { -#ifdef HAVE_SHL_LOAD - const char *err = strerror(errno); -#else - const char *err = dlerror(); -#endif + const char *err = ((err = lt_dlerror())) ? err : ""; + sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL, "Error loading module %s: %s", mod_basename, err); ilog(L_WARN, "Error loading module %s: %s", mod_basename, err); - return(-1); - } - -#ifdef HAVE_SHL_LOAD - if (shl_findsym(&tmpptr, "_modinit", TYPE_UNDEFINED, (void *)&initfunc) == -1) - { - if (shl_findsym(&tmpptr, "__modinit", TYPE_UNDEFINED, (void *)&initfunc) == -1) - { - ilog(L_WARN, "Module %s has no _modinit() function", mod_basename); - sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL, "Module %s has no _modinit() function", - mod_basename); - shl_unload(tmpptr); - return(-1); - } - } - - if (shl_findsym(&tmpptr, "_moddeinit", TYPE_UNDEFINED, (void *)&mod_deinit) == -1) - { - if (shl_findsym(&tmpptr, "__moddeinit", TYPE_UNDEFINED, (void *)&mod_deinit) == -1) - { - ilog(L_WARN, "Module %s has no _moddeinit() function", mod_basename); - sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL, "Module %s has no _moddeinit() function", - mod_basename); - /* this is a soft error. we're allowed not to have one, i guess. - * (judging by the code in unload_one_module() */ - mod_deinit = NULL; - } + return -1; } - if (shl_findsym(&tmpptr, "_version", TYPE_UNDEFINED, &verp) == -1) - { - if (shl_findsym(&tmpptr, "__version", TYPE_UNDEFINED, &verp) == -1) - ver = unknown_ver; - else - ver = *verp; - } - else - ver = *verp; -#else - if ((initfunc = (void(*)(void))dlfunc(tmpptr, "_modinit")) == NULL && + if ((initfunc = lt_dlsym(tmpptr, "_modinit")) == NULL && /* Only for compatibility, because some systems have underscore * prepended symbol names */ - (initfunc = (void(*)(void))dlfunc(tmpptr, "__modinit")) == NULL) + (initfunc = lt_dlsym(tmpptr, "__modinit")) == NULL) { sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL, "Module %s has no _modinit() function", mod_basename); ilog(L_WARN, "Module %s has no _modinit() function", mod_basename); - dlclose(tmpptr); - return(-1); + lt_dlclose(tmpptr); + return -1; } - mod_deinit = (void(*)(void))dlfunc(tmpptr, "_moddeinit"); + mod_deinit = lt_dlsym(tmpptr, "_moddeinit"); - if (mod_deinit == NULL && (mod_deinit = (void(*)(void))dlfunc(tmpptr, "__moddeinit")) == NULL) + if (mod_deinit == NULL && (mod_deinit = lt_dlsym(tmpptr, "__moddeinit")) == NULL) { sendto_gnotice_flags(UMODE_ALL, L_ALL, me.name, &me, NULL, "Module %s has no _moddeinit() function", mod_basename); @@ -344,22 +146,15 @@ load_a_module(char *path, int warn, int core) mod_deinit = NULL; } - verp = (char **)dlsym(tmpptr, "_version"); + verp = (char **)lt_dlsym(tmpptr, "_version"); - if (verp == NULL && (verp = (char **)dlsym(tmpptr, "__version")) == NULL) + if (verp == NULL && (verp = (char **)lt_dlsym(tmpptr, "__version")) == NULL) ver = unknown_ver; else ver = *verp; -#endif modp = MyMalloc(sizeof(struct module)); -#ifdef HAVE_DLINFO - dlinfo(tmpptr, RTLD_DI_LINKMAP, &map); - if (map != NULL) - addr = (void *)map->l_addr; - else -#endif - addr = tmpptr; + addr = tmpptr; modp->handle = tmpptr; modp->address = addr; @@ -381,5 +176,6 @@ load_a_module(char *path, int warn, int core) mod_basename, ver, addr); } - return(0); + return 0; } +#endif diff --git a/src/irc_res.c b/src/irc_res.c index a840a621a..7e18863ac 100644 --- a/src/irc_res.c +++ b/src/irc_res.c @@ -622,7 +622,6 @@ proc_answer(struct reslist *request, HEADER* header, char* buf, char* eob) { char hostbuf[HOSTLEN + 100]; /* working buffer */ unsigned char *current; /* current position in buf */ - int query_class; /* answer class */ int type; /* answer type */ int n; /* temp count */ int rd_length; @@ -679,7 +678,7 @@ proc_answer(struct reslist *request, HEADER* header, char* buf, char* eob) type = irc_ns_get16(current); current += TYPE_SIZE; - query_class = irc_ns_get16(current); + irc_ns_get16(current); current += CLASS_SIZE; request->ttl = irc_ns_get32(current); diff --git a/src/ircd_lexer.l b/src/ircd_lexer.l index d39ca30b3..b1c2d085d 100644 --- a/src/ircd_lexer.l +++ b/src/ircd_lexer.l @@ -37,7 +37,7 @@ #include "hostmask.h" #include "s_log.h" -#include "y.tab.h" +#include "ircd_parser.h" #undef YY_INPUT #define YY_FATAL_ERROR(msg) conf_yy_fatal_error(msg) @@ -291,6 +291,7 @@ ssl { return T_SSL; } ssl_certificate_file { return SSL_CERTIFICATE_FILE; } send_password { return SEND_PASSWORD; } sendq { return SENDQ; } +server { return T_SERVER; } serverhide { return SERVERHIDE; } serverinfo { return SERVERINFO; } servlink_path { return SERVLINK_PATH; } diff --git a/src/ircd_parser.y b/src/ircd_parser.y index 46d6bfe7e..ea51a713e 100644 --- a/src/ircd_parser.y +++ b/src/ircd_parser.y @@ -26,6 +26,7 @@ #define YY_NO_UNPUT #include +#include #include "stdinc.h" #include "ircd.h" @@ -359,6 +360,7 @@ unhook_hub_leaf_confs(void) %token T_NCHANGE %token T_OPERWALL %token T_REJ +%token T_SERVER %token T_SERVNOTICE %token T_SKILL %token T_SPY @@ -477,10 +479,6 @@ modules_module: MODULE '=' QSTRING ';' #ifndef STATIC_MODULES /* NOOP in the static case */ if (ypass == 2) { - char *m_bn; - - m_bn = basename(yylval.string); - /* I suppose we should just ignore it if it is already loaded(since * otherwise we would flood the opers on rehash) -A1kmm. */ @@ -652,7 +650,7 @@ serverinfo_network_name: NETWORK_NAME '=' QSTRING ';' char *p; if ((p = strchr(yylval.string, ' ')) != NULL) - p = '\0'; + *p = '\0'; MyFree(ServerInfo.network_name); DupString(ServerInfo.network_name, yylval.string); @@ -1788,8 +1786,14 @@ listen_flags_item: T_SSL { if (ypass == 2) listener_flags |= LISTENER_HIDDEN; +} | T_SERVER +{ + if (ypass == 2) + listener_flags |= LISTENER_SERVER; }; + + listen_items: listen_items listen_item | listen_item; listen_item: listen_port | listen_flags | listen_address | listen_host | error ';'; diff --git a/src/ircd_signal.c b/src/ircd_signal.c index 2b2da53a8..e166be4ab 100644 --- a/src/ircd_signal.c +++ b/src/ircd_signal.c @@ -31,6 +31,8 @@ #include "memory.h" #include "s_bsd.h" +#include + /* * sigterm_handler - exit the server */ diff --git a/src/listener.c b/src/listener.c index bc45725e5..56f426d37 100644 --- a/src/listener.c +++ b/src/listener.c @@ -86,11 +86,11 @@ get_listener_name(const struct Listener *listener) assert(listener != NULL); if (listener == NULL) - return(NULL); + return NULL; ircsprintf(buf, "%s[%s/%u]", me.name, listener->name, listener->port); - return(buf); + return buf; } /* show_ports() @@ -102,7 +102,7 @@ get_listener_name(const struct Listener *listener) void show_ports(struct Client *source_p) { - char buf[4]; + char buf[6]; char *p = NULL; dlink_node *ptr; @@ -117,6 +117,8 @@ show_ports(struct Client *source_p) *p++ = 'H'; } + if (listener->flags & LISTENER_SERVER) + *p++ = 'S'; if (listener->flags & LISTENER_SSL) *p++ = 's'; *p = '\0'; @@ -177,7 +179,7 @@ inetport(struct Listener *listener) report_error(L_ALL, "setting SO_REUSEADDR for listener %s:%s", get_listener_name(listener), errno); fd_close(&listener->fd); - return(0); + return 0; } /* @@ -194,7 +196,7 @@ inetport(struct Listener *listener) report_error(L_ALL, "binding listener socket %s:%s", get_listener_name(listener), errno); fd_close(&listener->fd); - return(0); + return 0; } if (listen(listener->fd.fd, HYBRID_SOMAXCONN)) @@ -205,7 +207,7 @@ inetport(struct Listener *listener) report_error(L_ALL, "listen failed for %s:%s", get_listener_name(listener), errno); fd_close(&listener->fd); - return(0); + return 0; } /* Listen completion events are READ events .. */ diff --git a/src/memory.c b/src/memory.c index db1d4f726..ed2e0a06e 100644 --- a/src/memory.c +++ b/src/memory.c @@ -39,7 +39,6 @@ /* * MyMalloc - allocate memory, call outofmemory on failure */ - void * MyMalloc(size_t size) { @@ -53,7 +52,7 @@ MyMalloc(size_t size) /* * MyRealloc - reallocate memory, call outofmemory on failure */ -void * +inline void * MyRealloc(void *x, size_t y) { void *ret = realloc(x, y); @@ -63,14 +62,14 @@ MyRealloc(void *x, size_t y) return(ret); } -void +inline void MyFree(void *x) { if (x) free(x); } -void +inline void _DupString(char **x, const char *y) { (*x) = malloc(strlen(y) + 1); diff --git a/src/modules.c b/src/modules.c index 27440e4f3..868c29090 100644 --- a/src/modules.c +++ b/src/modules.c @@ -37,6 +37,9 @@ #include "irc_string.h" #include "memory.h" #include "list.h" +#include + +#define SHARED_SUFFIX ".la" /* -TimeMr14C: * I have moved the dl* function definitions and @@ -130,6 +133,7 @@ extern struct Message error_msgtab; void modules_init(void) { + dynlink_init(); mod_add_cmd(&modload_msgtab); mod_add_cmd(&modunload_msgtab); mod_add_cmd(&modreload_msgtab); diff --git a/src/parse.c b/src/parse.c index ad4ca5561..bc29a0578 100644 --- a/src/parse.c +++ b/src/parse.c @@ -185,8 +185,6 @@ parse(struct Client *client_p, char *pbuffer, char *bufend) char *s; char *numeric = 0; unsigned int i = 0; - int paramcount; - int mpara = 0; struct Message *mptr = NULL; if (IsDefunct(client_p)) @@ -283,7 +281,6 @@ parse(struct Client *client_p, char *pbuffer, char *bufend) { mptr = NULL; numeric = ch; - paramcount = MAXPARA; ServerStats->is_num++; s = ch + 3; /* I know this is ' ' from above if */ *s++ = '\0'; /* blow away the ' ', and point s to next part */ @@ -320,9 +317,6 @@ parse(struct Client *client_p, char *pbuffer, char *bufend) assert(mptr->cmd != NULL); - paramcount = mptr->parameters; - mpara = mptr->maxpara; - ii = bufend - ((s) ? s : ch); mptr->bytes += ii; } diff --git a/src/restart.c b/src/restart.c index f5986bddf..17b24ce4e 100644 --- a/src/restart.c +++ b/src/restart.c @@ -79,7 +79,7 @@ server_die(const char *mesg, int rboot) sendto_one(target_p, ":%s ERROR :%s", me.name, buffer); } - ilog(L_NOTICE, buffer); + ilog(L_NOTICE, "%s", buffer); send_queued_all(); close_fds(NULL); diff --git a/src/s_bsd_devpoll.c b/src/s_bsd_devpoll.c index e02cbaff5..3f1c76df9 100644 --- a/src/s_bsd_devpoll.c +++ b/src/s_bsd_devpoll.c @@ -20,10 +20,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_bsd_devpoll.c 282 2005-11-24 10:31:22Z adx $ + * $Id: s_bsd_devpoll.c 908 2007-11-04 23:21:51Z stu $ */ #include "stdinc.h" +#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_DEVPOLL #include /* HPUX uses devpoll.h and not sys/devpoll.h */ #ifdef HAVE_DEVPOLL_H @@ -187,3 +188,4 @@ comm_select(void) comm_setselect(F, 0, NULL, NULL, 0); } } +#endif diff --git a/src/s_bsd_epoll.c b/src/s_bsd_epoll.c index b4f621725..77e8575c5 100644 --- a/src/s_bsd_epoll.c +++ b/src/s_bsd_epoll.c @@ -20,10 +20,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_bsd_epoll.c 33 2005-10-02 20:50:00Z knight $ + * $Id: s_bsd_epoll.c 908 2007-11-04 23:21:51Z stu $ */ #include "stdinc.h" +#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_EPOLL #include "fdlist.h" #include "ircd.h" #include "memory.h" @@ -221,3 +222,4 @@ comm_select(void) comm_setselect(F, 0, NULL, NULL, 0); } } +#endif diff --git a/src/s_bsd_kqueue.c b/src/s_bsd_kqueue.c index f8ae52117..08dac2052 100644 --- a/src/s_bsd_kqueue.c +++ b/src/s_bsd_kqueue.c @@ -24,6 +24,7 @@ */ #include "stdinc.h" +#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_KQUEUE #include #include "fdlist.h" #include "ircd.h" @@ -204,3 +205,4 @@ comm_select(void) comm_setselect(F, 0, NULL, NULL, 0); } } +#endif diff --git a/src/s_bsd_poll.c b/src/s_bsd_poll.c index 2eda35817..db0bd4e42 100644 --- a/src/s_bsd_poll.c +++ b/src/s_bsd_poll.c @@ -20,10 +20,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_bsd_poll.c 33 2005-10-02 20:50:00Z knight $ + * $Id: s_bsd_poll.c 908 2007-11-04 23:21:51Z stu $ */ #include "stdinc.h" +#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_POLL #include #include "fdlist.h" #include "hook.h" @@ -224,3 +225,4 @@ comm_select(void) comm_setselect(F, 0, NULL, NULL, 0); } } +#endif diff --git a/src/s_bsd_select.c b/src/s_bsd_select.c index 557844f4e..daea0cbf0 100644 --- a/src/s_bsd_select.c +++ b/src/s_bsd_select.c @@ -20,10 +20,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_bsd_select.c 33 2005-10-02 20:50:00Z knight $ + * $Id: s_bsd_select.c 908 2007-11-04 23:21:51Z stu $ */ #include "stdinc.h" +#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_SELECT #include "fdlist.h" #include "hook.h" #include "ircd.h" @@ -204,3 +205,4 @@ comm_select(void) comm_setselect(F, 0, NULL, NULL, 0); } } +#endif diff --git a/src/s_bsd_sigio.c b/src/s_bsd_sigio.c index 01f0266c2..d396143e2 100644 --- a/src/s_bsd_sigio.c +++ b/src/s_bsd_sigio.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_bsd_sigio.c 33 2005-10-02 20:50:00Z knight $ + * $Id: s_bsd_sigio.c 908 2007-11-04 23:21:51Z stu $ */ #ifndef _GNU_SOURCE @@ -29,6 +29,7 @@ #endif #include "stdinc.h" +#if USE_IOPOLL_MECHANISM == __IOPOLL_MECHANISM_RTSIGIO #include #include "fdlist.h" #include "hook.h" @@ -317,3 +318,4 @@ comm_select(void) mask_our_signal(SIGIO_SIGNAL); } +#endif diff --git a/src/s_bsd_win32.c b/src/s_bsd_win32.c index 910016036..889913130 100644 --- a/src/s_bsd_win32.c +++ b/src/s_bsd_win32.c @@ -19,9 +19,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: s_bsd_win32.c 33 2005-10-02 20:50:00Z knight $ + * $Id: s_bsd_win32.c 908 2007-11-04 23:21:51Z stu $ */ +#ifdef WIN32 + #include "stdinc.h" #include #include "fdlist.h" @@ -502,3 +504,4 @@ uname(struct utsname *uts) GetComputerName (uts->nodename, &sLength); return 0; } +#endif diff --git a/src/s_user.c b/src/s_user.c index cf06e1c01..b89508e3e 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -905,12 +905,11 @@ do_local_user(const char *nick, struct Client *client_p, struct Client *source_p static void * change_simple_umode(va_list args) { - struct Client *client_p; struct Client *source_p; int what; unsigned int flag; - client_p = va_arg(args, struct Client *); + va_arg(args, struct Client *); source_p = va_arg(args, struct Client *); what = va_arg(args, int); flag = va_arg(args, unsigned int); diff --git a/src/send.c b/src/send.c index 1ec5c867b..afb622751 100644 --- a/src/send.c +++ b/src/send.c @@ -1119,7 +1119,6 @@ sendto_gnotice_flags(int flags, int level, char *origin, { struct Client *target_p; dlink_node *ptr; - dlink_node *ptr_next; va_list args; char nbuf[IRCD_BUFSIZE*2]; @@ -1129,7 +1128,6 @@ sendto_gnotice_flags(int flags, int level, char *origin, DLINK_FOREACH(ptr, oper_list.head) { - ptr_next = ptr->next; target_p = ptr->data; if(target_p->umodes & flags) diff --git a/src/tools.c b/src/tools.c index 3a0f8b61e..dd5c2d25f 100644 --- a/src/tools.c +++ b/src/tools.c @@ -54,7 +54,7 @@ mem_frob(void *data, int len) * which is mine. * -- adrian */ -void +inline void dlinkAdd(void *data, dlink_node * m, dlink_list * list) { m->data = data; @@ -71,7 +71,7 @@ dlinkAdd(void *data, dlink_node * m, dlink_list * list) list->length++; } -void +inline void dlinkAddBefore(dlink_node *b, void *data, dlink_node *m, dlink_list *list) { /* Shortcut - if its the first one, call dlinkAdd only */ @@ -90,7 +90,7 @@ dlinkAddBefore(dlink_node *b, void *data, dlink_node *m, dlink_list *list) } } -void +inline void dlinkAddTail(void *data, dlink_node *m, dlink_list *list) { m->data = data; @@ -109,7 +109,7 @@ dlinkAddTail(void *data, dlink_node *m, dlink_list *list) /* Execution profiles show that this function is called the most * often of all non-spontaneous functions. So it had better be * efficient. */ -void +inline void dlinkDelete(dlink_node *m, dlink_list *list) { /* Assumption: If m->next == NULL, then list->tail == m @@ -141,7 +141,7 @@ dlinkDelete(dlink_node *m, dlink_list *list) * output - pointer to link or NULL if not found * side effects - Look for ptr in the linked listed pointed to by link. */ -dlink_node * +inline dlink_node * dlinkFind(dlink_list *list, void *data) { dlink_node *ptr; @@ -155,7 +155,7 @@ dlinkFind(dlink_list *list, void *data) return(NULL); } -void +inline void dlinkMoveList(dlink_list *from, dlink_list *to) { /* There are three cases */ @@ -188,7 +188,7 @@ dlinkMoveList(dlink_list *from, dlink_list *to) /* I think I got that right */ } -dlink_node * +inline dlink_node * dlinkFindDelete(dlink_list *list, void *data) { dlink_node *m; diff --git a/src/version.c b/src/version.c index 50605a469..982e5422d 100644 --- a/src/version.c +++ b/src/version.c @@ -107,7 +107,7 @@ const char *infotext[] = "toot, Toby Verrall ", "vx0, Mark Miller ", "wiz, Jason Dambrosio ", - "Xride, Søren Straarup ", + "Xride, Soeren Straarup ", "zb^3, Alfred Perlstein ", "", "Others are welcome. Always. And if we left anyone off the above list,", diff --git a/tools/Makefile.in b/tools/Makefile.in deleted file mode 100644 index 81c8ec26d..000000000 --- a/tools/Makefile.in +++ /dev/null @@ -1,58 +0,0 @@ -# $Id$ - -CC = @CC@ -INSTALL = @INSTALL@ -INSTALL_BIN = @INSTALL_PROGRAM@ -RM = @RM@ -CFLAGS = @IRC_CFLAGS@ -CPPFLAGS = @CPPFLAGS@ -LDFLAGS = @LDFLAGS@ -MV = @MV@ -RM = @RM@ -LN = @LN@ -CLOBBER = @CLOBBER@ - -SSL_LIBS = @SSL_LIBS@ -SSL_INCLUDES = @SSL_INCLUDES@ -CRYPT_LIB = @CRYPT_LIB@ - -INCLUDES = -I../include $(SSL_INCLUDES) - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = $(DESTDIR)@bindir@ -datarootdir = $(DESTDIR)@datarootdir@ - -PROGS = mkpasswd @ENCSPEED@ - -all: $(PROGS) - -build: all - -# We must link these two against special libs -encspeed: ../include/setup.h encspeed.c - $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) encspeed.c -o encspeed $(SSL_LIBS) - -mkpasswd: ../include/setup.h mkpasswd.c - $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) mkpasswd.c -o mkpasswd $(CRYPT_LIB) - -# Default rule for everything - -clean: - $(RM) -f *.o *~ core *.exe $(PROGS) - -distclean: clean - $(RM) -f Makefile - -install: build - mkdir -p $(bindir) - @for i in $(PROGS); do \ - if test -f $(bindir)/$$i -a -z "$(CLOBBER)"; then \ - echo $(MV) $(bindir)/$$i $(bindir)/$$i.old; \ - $(MV) $(bindir)/$$i $(bindir)/$$i.old; \ - fi; \ - echo $(INSTALL_BIN) $$i $(bindir); \ - $(INSTALL_BIN) $$i $(bindir); \ - done - -.PHONY: install distclean clean build