diff -Nru libircclient-1.3+dfsg1/build-release.sh libircclient-1.8/build-release.sh --- libircclient-1.3+dfsg1/build-release.sh 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/build-release.sh 2014-05-09 20:31:24.128957000 +0000 @@ -0,0 +1,74 @@ +#!/bin/sh + +# Export the source code + +PACKAGE=libircclient +BINARYFILE="libircclient.dll" + +FILE_VERSION="src/params.h" + +# Get current version +VERSION_MAJOR=`sed -n 's/^\#define\s\+LIBIRC_VERSION_HIGH\s\+\([0-9]\+\)/\1/p' $FILE_VERSION` +VERSION_MINOR=`sed -n 's/^\#define\s\+LIBIRC_VERSION_LOW\s\+\([0-9]\+\)/\1/p' $FILE_VERSION` +CURRENTVER="$VERSION_MAJOR.$VERSION_MINOR" + +BUILDDIR="build" +RELEASEDIR="release/$CURRENTVER" +PKGDIR="$PACKAGE-$CURRENTVER" + +if [ -d "$BUILDDIR" ]; then + rm -rf "$BUILDDIR" +fi + +if [ ! -d "$RELEASEDIR" ]; then + mkdir -p $RELEASEDIR +fi + +if [ -d "$PKGDIR" ]; then + rm -rf "$PKGDIR" +fi + +# Export the build directory to build the documentation +svn export . "$BUILDDIR/" || exit 1 + +# Build the documentation +(cd $BUILDDIR/doc && make singlehtml && make man && make latexpdf) || exit 1 + +# Package the documentations +cp $BUILDDIR/doc/_build/latex/Libircclient.pdf $RELEASEDIR/$PKGDIR.pdf || exit 1 +(cd $BUILDDIR/doc/_build/singlehtml && zip -r ../$PKGDIR-html.zip .) +mv $BUILDDIR/doc/_build/$PKGDIR-html.zip $RELEASEDIR/ || exit 1 + +# Source package +svn export . "$PKGDIR/" || exit 1 +mkdir $PKGDIR/man +cp $BUILDDIR/doc/_build/man/libircclient.1 $PKGDIR/man/ || exit 1 +tar zcf "$RELEASEDIR/$PKGDIR.tar.gz" $PKGDIR/ || exit 1 +rm -rf $PKGDIR/* + +# win32 +export PATH=$PATH:/usr/toolchains/windows-x86-complete/bin/ +(cd $BUILDDIR && ./configure --enable-shared --host=i686-pc-mingw32 && make) || exit 1 + +BINDIR="$PKGDIR/bin" +mkdir -p $BINDIR +cp $BUILDDIR/src/libircclient.dll $BINDIR/ || exit 1 +cp $BUILDDIR/src/libircclient.lib $BINDIR/ || exit 1 +mkdir "$PKGDIR/include" +cp include/*.h "$PKGDIR/include" || exit 1 +mkdir "$PKGDIR/examples" +cp examples/*.c* $PKGDIR/examples || exit 1 +mkdir "$PKGDIR/doc" +cp $RELEASEDIR/$PKGDIR.pdf "$PKGDIR/doc/" || exit 1 + +zip -r $RELEASEDIR/$PKGDIR-win32-dll.zip $PKGDIR || exit 1 + +# And the SSL version +(cd $BUILDDIR && make distclean && ./configure --enable-shared --host=i686-pc-mingw32 --enable-openssl && make clean && make) || exit 1 +cp $BUILDDIR/src/libircclient.dll $BINDIR/ || exit 1 +cp $BUILDDIR/src/libircclient.lib $BINDIR/ || exit 1 + +zip -r $RELEASEDIR/$PKGDIR-win32-dll-openssl.zip $PKGDIR || exit 1 + +rm -rf "$BUILDDIR" "$PKGDIR" +echo "Done! Version $CURRENTVER released!" diff -Nru libircclient-1.3+dfsg1/Changelog libircclient-1.8/Changelog --- libircclient-1.3+dfsg1/Changelog 2009-01-03 23:15:12.000000000 +0000 +++ libircclient-1.8/Changelog 2012-02-13 03:07:47.041345000 +0000 @@ -1,56 +1,68 @@ -2009-01-03 Georgy Yunaev +2012-01-22 George Yunaev + * libircclient 1.6 released. + * Fixed PRIVMSG events incorrectly reported as CHANNEL (thx Dennis Bretjes) + * Added -fpic option for the shared library; fixed make install + * WIN32 macro replaced by _WIN32 (Lothar May) + * Fixed IPv6 and IPv4 connections being used simultaneously (Lothar May) + * Fixed DCC file transfer with IPv6 build (Lothar May) + +2012-01-18 George Yunaev + * libircclient 1.5 released. + * Added SSL support + * Fixed some compilation warnings + +2009-01-03 George Yunaev * libircclient 1.3 released. * Added IPv6 support (thanks Lothar May) * Now provides more information about ACTION (thx chromerium) * Updated contact info and copyrights. * Removed ircmud sample as it never worked anyway. - * Added mingw build. -2006-08-29 Georgy Yunaev +2006-08-29 George Yunaev * libircclient 1.2 released. * Windows: added missed expored functions from .def file. -2005-03-10 Georgy Yunaev +2005-03-10 George Yunaev * libircclient 1.1 released. * Fixed DCC buffer size which resulted extra callback on DCC tranfers (thanks flohimself). -2004-11-12 Georgy Yunaev +2004-11-12 George Yunaev * libircclient 1.0 released. * Fixed compilation on FreeBSD. -2004-10-31 Georgy Yunaev +2004-10-31 George Yunaev * When more than one DCC chat sessions were active, only the latest generated callbacks. * libircclient 0.8 released. -2004-10-17 Georgy Yunaev +2004-10-17 George Yunaev * libircclient 0.7 released. * Fixed DCC chat lockup in multithread programs (thanks olifozzy). -2004-10-15 Georgy Yunaev +2004-10-15 George Yunaev * Win32 static library does not have dllmain anymore (thanks olifozzy). * DCC chat crashed if there were several DCC session, and one of them was closed (thanks olifozzy). * DCC chat speed increased when several messages are stored in buffer. -2004-10-10 Georgy Yunaev +2004-10-10 George Yunaev * libircclient 0.6 released. * Added color support. -2004-10-07 Georgy Yunaev +2004-10-07 George Yunaev * CTCP TIME reply was malformed on some platforms with buggy locales. * Socket stuff rewritten to be signal-safe and more portable. * Data and commands are now sent faster to IRC server. * event_umode now works. -2004-10-06 Georgy Yunaev +2004-10-06 George Yunaev * CHANGED BEHAVIOR: the built-in CTCP handler is used if not set. Therefore, irc_event_ctcp_internal() is not public anymore. * Added a small (as yet) FAQ. * Add extra numeric codes from RFC2812. -2004-10-03 Georgy Yunaev +2004-10-03 George Yunaev * Libircclient error codes are now well-documented. * Modules documentation is extended. * Added new methods: irc_cmd_part, irc_cmd_invite, irc_cmd_names, @@ -63,7 +75,7 @@ * All the numeric reply codes from RFC1459 are now documented. * Numeric reply codes for every command are now described. -2004-09-30 Georgy Yunaev +2004-09-30 George Yunaev * libircclient 0.4 released * exported an irc_is_connected method. * fixed error output in examples. @@ -71,17 +83,17 @@ * add a Win32 dsp/dsw to build the library from VC6/7 * add a .dsp for an example. -2004-09-14 Georgy Yunaev +2004-09-14 George Yunaev * libircclient 0.3 released * Fix CTCP time bug. * Added working Win32 Visual Studio build, and libs. * Added ircmud example, which allows people to play MUD through IRC client. * Some stuff rewritten in more portable way. -2004-09-13 Georgy Yunaev +2004-09-13 George Yunaev * Fix solaris x86/sparc compilation. -2004-09-12 Georgy Yunaev +2004-09-12 George Yunaev * libircclient 0.2 released * select() timeout decreased to 0.25sec (was 1 sec). The reason: when the output buffer is empty, and server doesn't send anything, but a @@ -92,5 +104,5 @@ * Add DCC error description in irctest example. -2004-09-08 Georgy Yunaev +2004-09-08 George Yunaev * libircclient 0.1 released diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/DDInvocationGrabber.h libircclient-1.8/cocoa/Classes/DDInvocationGrabber.h --- libircclient-1.3+dfsg1/cocoa/Classes/DDInvocationGrabber.h 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/DDInvocationGrabber.h 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2007-2008 Dave Dribin + * + * 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 AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + + +/* + * This class is based on CInvocationGrabber: + * + * Copyright (c) 2007, Toxic Software + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of the Toxic Software nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#import + +/* + * @class DDInvocationGrabber + * @discussion DDInvocationGrabber is a helper object that makes it very easy to construct instances of NSInvocation for later use. The object is inspired by NSUndoManager's prepareWithInvocationTarget method. To use a DDInvocationGrabber object, you set its target to some object, then send it a message as if it were the target object (the DDInvocationGrabber object acts as a proxy), if the target message understands the message the DDInvocationGrabber object stores the message invocation. + + DDInvocationGrabber *theGrabber = [DDInvocationGrabber invocationGrabber]; + [theGrabber setTarget:someObject] + [theGrabber doSomethingWithParameter:someParameter]; // Send messages to 'theGrabber' as if it were 'someObject' + NSInvocation *theInvocation = [theGrabber invocation]; + + A slightly more concise version (using the covenience category) follows: + + DDInvocationGrabber *theGrabber = [DDInvocationGrabber invocationGrabber]; + [[theGrabber prepareWithInvocationTarget:someObject] doSomethingWithParameter:someParameter]; + NSInvocation *theInvocation = [theGrabber invocation]; + + */ +@interface DDInvocationGrabber : NSProxy +{ + id _target; + NSInvocation * _invocation; + BOOL _forwardInvokesOnMainThread; + BOOL _waitUntilDone; +} + +/* + * @method invocationGrabber + * @abstract Returns a newly allocated, inited, autoreleased DDInvocationGrabber object. + */ ++ (id)invocationGrabber; + +- (id)target; +- (void)setTarget:(id)inTarget; + +- (NSInvocation *)invocation; +- (void)setInvocation:(NSInvocation *)inInvocation; + +- (BOOL)forwardInvokesOnMainThread; +- (void)setForwardInvokesOnMainThread:(BOOL)forwardInvokesOnMainThread; + +- (BOOL)waitUntilDone; +- (void)setWaitUntilDone:(BOOL)waitUntilDone; + +@end + +@interface DDInvocationGrabber (DDInvocationGrabber_Conveniences) + +/* + * @method prepareWithInvocationTarget: + * @abstract Sets the target object of the receiver and returns itself. The sender can then send a message to the + */ +- (id)prepareWithInvocationTarget:(id)inTarget; + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/DDInvocationGrabber.m libircclient-1.8/cocoa/Classes/DDInvocationGrabber.m --- libircclient-1.3+dfsg1/cocoa/Classes/DDInvocationGrabber.m 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/DDInvocationGrabber.m 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,171 @@ +/* + * Copyright (c) 2007-2008 Dave Dribin + * + * 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 AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + + +/* + * This class is based on CInvocationGrabber: + * + * Copyright (c) 2007, Toxic Software + * All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of the Toxic Software nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF + * THE POSSIBILITY OF SUCH DAMAGE. + * + */ + +#import "DDInvocationGrabber.h" + + +@implementation DDInvocationGrabber + ++ (id)invocationGrabber +{ + return([[[self alloc] init] autorelease]); +} + +- (id)init +{ + _target = nil; + _invocation = nil; + _forwardInvokesOnMainThread = NO; + _waitUntilDone = NO; + + return self; +} + +- (void)dealloc +{ + [self setTarget:NULL]; + [self setInvocation:NULL]; + // + [super dealloc]; +} + +#pragma mark - + +- (id)target +{ + return _target; +} + +- (void)setTarget:(id)inTarget +{ + if (_target != inTarget) + { + [_target autorelease]; + _target = [inTarget retain]; + } +} + +- (NSInvocation *)invocation +{ + return _invocation; +} + +- (void)setInvocation:(NSInvocation *)inInvocation +{ + if (_invocation != inInvocation) + { + [_invocation autorelease]; + _invocation = [inInvocation retain]; + } +} + +- (BOOL)forwardInvokesOnMainThread; +{ + return _forwardInvokesOnMainThread; +} + +- (void)setForwardInvokesOnMainThread:(BOOL)forwardInvokesOnMainThread; +{ + _forwardInvokesOnMainThread = forwardInvokesOnMainThread; +} + +- (BOOL)waitUntilDone; +{ + return _waitUntilDone; +} + +- (void)setWaitUntilDone:(BOOL)waitUntilDone; +{ + _waitUntilDone = waitUntilDone; +} + +#pragma mark - + +- (NSMethodSignature *)methodSignatureForSelector:(SEL)selector +{ + return [[self target] methodSignatureForSelector:selector]; +} + +- (void)forwardInvocation:(NSInvocation *)ioInvocation +{ + [ioInvocation setTarget:[self target]]; + [self setInvocation:ioInvocation]; + if (_forwardInvokesOnMainThread) + { + if (!_waitUntilDone) + [_invocation retainArguments]; + [_invocation performSelectorOnMainThread:@selector(invoke) + withObject:nil + waitUntilDone:_waitUntilDone]; + } +} + +@end + +#pragma mark - + +@implementation DDInvocationGrabber (DDnvocationGrabber_Conveniences) + +- (id)prepareWithInvocationTarget:(id)inTarget +{ + [self setTarget:inTarget]; + return(self); +} + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/IRCClientChannelDelegate.h libircclient-1.8/cocoa/Classes/IRCClientChannelDelegate.h --- libircclient-1.3+dfsg1/cocoa/Classes/IRCClientChannelDelegate.h 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/IRCClientChannelDelegate.h 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,116 @@ +/* + * Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This library 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 Lesser General Public + * License for more details. + */ + +/** + * @file IRCClientChannelDelegate.h + * @author Nathan Ollerenshaw + * @version 1.0 + * @date 01.2009 + * @brief Receives delegate messages from an IRCClientChannel. + * @protocol IRCClientChannelDelegate + */ + +#import + +/** @brief Receives delegate messages from an IRCClientChannel. + * + * Each IRCClientChannel object needs a delegate. Delegate methods are called + * for each event that occurs on an IRC channel that the client is current on. + * + * Note that for any given parameter, it may be optional, in which case a nil + * object may be supplied instead of the given parameter. + */ + +@interface NSObject (IRCClientChannelDelegate) + +/** When a client joins this channel, the onJoin event is fired. Note that + * the nickname is most likely in nick!user\@host format, but may simply be a + * nickname, depending on the server implementation. + * + * You should also expect to see this event when the client first joins a channel, + * with a parameter of the client's nickname. + * + * @param nick The nickname of the user that joined the channel. + */ + +- (void)onJoin:(NSString *)nick; + +/** When an IRC client parts a channel you are connect to, you will see + * an onPart event. You will also see this event when you part a channel. + * + * @param nick (required) The nickname of the user that left the channel. + * @param reason (optional) The reason, if any, that the user gave for leaving. + */ + +- (void)onPart:(NSString *)nick reason:(NSString *)reason; + +/** Received when an IRC client changes the channel mode. What modes are available + * for a given channel is an implementation detail for each server. + * + * @param mode the new channel mode. + * @param params any parameters with the mode (such as channel key). + * @param nick the nickname of the IRC client that changed the mode. + */ + +- (void)onMode:(NSString *)mode params:(NSString *)params nick:(NSString *)nick; + +/** Received when the topic is changed for the channel. + * + * @param aTopic The new topic of the channel. + * @param nick Nickname of the IRC client that changed the topic. + */ + +- (void)onTopic:(NSString *)aTopic nick:(NSString *)nick; + +/** Received when an IRC client is kicked from a channel. + * + * @param nick nickname of the client that was kicked + * @param reason reason message given for the kick + * @param byNick nickname of the client that performed the kick command + */ + +- (void)onKick:(NSString *)nick reason:(NSString *)reason byNick:(NSString *)byNick; + +/** Received when an IRC client sends a public PRIVMSG to the channel. Note that the + * user may not necessarily be required to be on the channel to send a message + * to it. + * + * @param message the message sent to the channel. + * @param nick the nickname of the IRC client that sent the message. + */ + +- (void)onPrivmsg:(NSString *)message nick:(NSString *)nick; + +/** Received when an IRC client sends a public NOTICE to the channel. Note that + * the user may not necessarily be required to be on the channel to send a notice to + * it. Furthermore, the RFC states that the only difference between PRIVMSG and + * NOTICE is that a NOTICE may never be responded to automatically. + * + * @param notice the notice sent to the channel. + * @param nick the nickname of the IRC client that sent the notice. + */ + +- (void)onNotice:(NSString *)notice nick:(NSString *)nick; + +/** Received when an IRC client sends a CTCP ACTION message to the channel. + * used by lamers with no life to pretend that they are playing some form of + * MMORPG. + * + * @param action the action message sent to the channel. + * @param nick the nickname of the IRC client that sent the message. + */ + +- (void)onAction:(NSString *)action nick:(NSString *)nick; + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/IRCClientChannel.h libircclient-1.8/cocoa/Classes/IRCClientChannel.h --- libircclient-1.3+dfsg1/cocoa/Classes/IRCClientChannel.h 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/IRCClientChannel.h 2009-01-19 02:16:01.668394000 +0000 @@ -0,0 +1,153 @@ +/* + * Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This library 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 Lesser General Public + * License for more details. + */ + +/** + * @file IRCClientChannel.h + * @author Nathan Ollerenshaw + * @version 1.0 + * @date 01.2009 + * @brief Represents a connected IRC Channel. + */ + +#import +#import + +/** \class IRCClientChannel + * @brief Represents a connected IRC Channel. + * + * IRCClientChannel objects are created by the IRCClientSession object + * for a given session when the client joins an IRC channel. At that time + * you are expected to register event handlers for each of the delegate + * methods described in the IRCClientChannelDelegate interface. + */ + +@class IRCClientSession; +@interface IRCClientChannel : NSObject { + id delegate; + NSString *name; + NSStringEncoding encoding; + IRCClientSession *session; + NSString *topic; + NSString *modes; + NSMutableArray *names; +} + +/** Delegate to send events to */ +@property (assign) id delegate; + +/** Name of the channel */ +@property (copy) NSString *name; + +/** Encoding used by this channel */ +@property (assign) NSStringEncoding encoding; + +/** Associated IRCClientSession object */ +@property (assign) IRCClientSession *session; + +/** Topic of the channel */ +@property (copy) NSString *topic; + +/** Mode of the channel */ +@property (copy) NSString *modes; + +/** An array of nicknames stored as NSStrings that list the connected users + for the channel */ +@property (assign, readonly) NSMutableArray *names; + +/** initWithName: + * + * Returns an initialised IRCClientChannel with a given channel name. You + * are not expected to initialise your own IRCClientChannel objects; if you + * wish to join a channel you should send a [IRCClientSession join:key:] message + * to your IRCClientSession object. + * + * @param aName Name of the channel. + */ + +- (id)initWithName:(NSString *)aName; + +/** Parts the channel. + */ + +- (int)part; + +/** Invites another IRC client to the channel. + * + * @param nick the nickname of the client to invite. + */ + +- (int)invite:(NSString *)nick; + +/** Sets the topic of the channel. + * + * Note that not all users on a channel have permission to change the topic; if you fail + * to set the topic, then you will not see an onTopic event on the IRCClientChannelDelegate. + * + * @param aTopic the topic the client wishes to set for the channel. + */ + +- (void)setTopic:(NSString *)aTopic; + +/** Sets the mode of the channel. + * + * Note that not all users on a channel have permission to change the mode; if you fail + * to set the mode, then you will not see an onMode event on the IRCClientChannelDelegate. + * + * @param mode the mode to set the channel to + * @param params paramaters for the mode, if it requires parameters. + */ + +- (int)setMode:(NSString *)mode params:(NSString *)params; + +/** Sends a public PRIVMSG to the channel. If you try to send more than can fit on an IRC + * buffer, it will be truncated. + * + * @param message the message to send to the channel. + */ + +- (int)message:(NSString *)message; + +/** Sends a public CTCP ACTION to the channel. + * + * @param action action to send to the channel. + */ + +- (int)action:(NSString *)action; + +/** Sends a public NOTICE to the channel. + * + * @param notice message to send to the channel. + */ + +- (int)notice:(NSString *)notice; + +/** Kicks someone from a channel. + * + * @param nick the IRC client to kick from the channel. + * @param reason the message to give to the channel and the IRC client for the kick. + */ + +- (int)kick:(NSString *)nick reason:(NSString *)reason; + +/** Sends a CTCP request to the channel. + * + * It is perfectly legal to send a CTCP request to an IRC channel, however many clients + * decline to respond to them, and often they are percieved as annoying. + * + * @param request the string of the request, in CTCP format. + */ + +- (int)ctcpRequest:(NSString *)request; + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/IRCClientChannel.m libircclient-1.8/cocoa/Classes/IRCClientChannel.m --- libircclient-1.3+dfsg1/cocoa/Classes/IRCClientChannel.m 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/IRCClientChannel.m 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,157 @@ +/* + * Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This library 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 Lesser General Public + * License for more details. + */ + +#import "IRCClientChannel.h" +#import "IRCClientSession.h" +#import "NSObject+DDExtensions.h" + +@implementation IRCClientChannel + +@synthesize delegate; +@synthesize name; +@synthesize encoding; +@synthesize session; +@synthesize topic; +@synthesize modes; +@synthesize names; + +-(id)init +{ + return [self initWithName:nil]; +} + +-(id)initWithName:(NSString *)aName +{ + if ((self = [super init])) { + [self setName:aName]; + topic = [[NSString alloc] init]; + encoding = NSASCIIStringEncoding; + } + + return self; +} + +-(void)dealloc +{ + [super dealloc]; +} + +- (int)part +{ + return irc_cmd_part([session session], [name cStringUsingEncoding:NSASCIIStringEncoding]); +} + +- (int)invite:(NSString *)nick +{ + return irc_cmd_invite([session session], [nick cStringUsingEncoding:NSASCIIStringEncoding], [name cStringUsingEncoding:NSASCIIStringEncoding]); +} + +- (int)refreshNames +{ + return irc_cmd_names([session session], [name cStringUsingEncoding:NSASCIIStringEncoding]); +} + +- (void)setTopic:(NSString *)aTopic +{ + irc_cmd_topic([session session], [name cStringUsingEncoding:NSASCIIStringEncoding], [topic cStringUsingEncoding:encoding]); +} + +- (int)setMode:(NSString *)mode params:(NSString *)params +{ + return irc_cmd_channel_mode([session session], [name cStringUsingEncoding:NSASCIIStringEncoding], [mode cStringUsingEncoding:NSASCIIStringEncoding]); +} + +- (int)message:(NSString *)message +{ + return irc_cmd_msg([session session], [name cStringUsingEncoding:NSASCIIStringEncoding], [message cStringUsingEncoding:encoding]); +} + +- (int)action:(NSString *)action +{ + return irc_cmd_me([session session], [name cStringUsingEncoding:NSASCIIStringEncoding], [action cStringUsingEncoding:encoding]); +} + +- (int)notice:(NSString *)notice +{ + return irc_cmd_notice([session session], [name cStringUsingEncoding:NSASCIIStringEncoding], [notice cStringUsingEncoding:encoding]); +} + +- (int)kick:(NSString *)nick reason:(NSString *)reason +{ + return irc_cmd_kick([session session], [nick cStringUsingEncoding:NSASCIIStringEncoding], [name cStringUsingEncoding:NSASCIIStringEncoding], [reason cStringUsingEncoding:encoding]); +} + +- (int)ctcpRequest:(NSString *)request +{ + return irc_cmd_ctcp_request([session session], [name cStringUsingEncoding:NSASCIIStringEncoding], [request cStringUsingEncoding:encoding]); +} + + +// event handlers +// +// These farm events out to the delegate on the main thread. + +- (void)onJoin:(NSString *)nick +{ + if ([delegate respondsToSelector:@selector(onJoin:)]) + [[delegate dd_invokeOnMainThread] onJoin:nick]; +} + +- (void)onPart:(NSString *)nick reason:(NSString *)reason +{ + if ([delegate respondsToSelector:@selector(onPart:reason:)]) + [[delegate dd_invokeOnMainThread] onPart:nick reason:reason]; +} + +- (void)onMode:(NSString *)mode params:(NSString *)params nick:(NSString *)nick +{ + if ([delegate respondsToSelector:@selector(onMode:params:nick:)]) + [[delegate dd_invokeOnMainThread] onMode:mode params:params nick:nick]; +} + +- (void)onTopic:(NSString *)aTopic nick:(NSString *)nick +{ + [topic release]; + topic = [NSString stringWithString:aTopic]; + + if ([delegate respondsToSelector:@selector(onTopic:nick:)]) + [[delegate dd_invokeOnMainThread] onTopic:aTopic nick:nick]; +} + +- (void)onKick:(NSString *)nick reason:(NSString *)reason byNick:(NSString *)byNick +{ + if ([delegate respondsToSelector:@selector(onKick:reason:byNick:)]) + [[delegate dd_invokeOnMainThread] onKick:nick reason:reason byNick:byNick]; +} + +- (void)onPrivmsg:(NSString *)message nick:(NSString *)nick +{ + if ([delegate respondsToSelector:@selector(onPrivmsg:nick:)]) + [[delegate dd_invokeOnMainThread] onPrivmsg:message nick:nick]; +} + +- (void)onNotice:(NSString *)notice nick:(NSString *)nick +{ + if ([delegate respondsToSelector:@selector(onNotice:nick:)]) + [[delegate dd_invokeOnMainThread] onNotice:notice nick:nick]; +} + +- (void)onAction:(NSString *)action nick:(NSString *)nick +{ + if ([delegate respondsToSelector:@selector(onAction:nick:)]) + [[delegate dd_invokeOnMainThread] onAction:action nick:nick]; +} + + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/IRCClientSessionDelegate.h libircclient-1.8/cocoa/Classes/IRCClientSessionDelegate.h --- libircclient-1.3+dfsg1/cocoa/Classes/IRCClientSessionDelegate.h 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/IRCClientSessionDelegate.h 2009-01-19 02:16:01.668394000 +0000 @@ -0,0 +1,152 @@ +/* + * Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This library 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 Lesser General Public + * License for more details. + */ + +#import +#include + +/** + * @file IRCClientChannelDelegate.h + * @author Nathan Ollerenshaw + * @version 1.0 + * @date 01.2009 + * @brief Receives delegate messages from an IRCClientSession. + * @protocol IRCClientSessionDelegate + */ + +@class IRCClientChannel; + +/** @brief Receives delegate messages from an IRCClientSession. + * + * Each IRCClientSession object needs a single delegate. Methods are called + * for each event that occurs on an IRC server that the client is connected to. + * + * Note that for any given parameter, it may be optional, in which case a nil + * object may be supplied instead of the given parameter. + */ + +@interface NSObject (IRCClientSessionDelegate) + +/** The client has successfully connected to the IRC server. */ + +- (void)onConnect; + +/** An IRC client on a channel that this client is connected to has changed nickname, + * or this IRC client has changed nicknames. + * + * @param nick the new nickname + * @param oldNick the old nickname + */ + +- (void)onNick:(NSString *)nick oldNick:(NSString *)oldNick; + +/** An IRC client on a channel that this client is connected to has quit IRC. + * + * @param nick the nickname of the client that quit. + * @param reason (optional) the quit message, if any. + */ + +- (void)onQuit:(NSString *)nick reason:(NSString *)reason; + +/** The IRC client has joined (connected) successfully to a new channel. This + * event creates an IRCClientChannel object, which you are expected to asign a + * delegate to, to handle events from the channel. + * + * For example, on receipt of this message, a graphical IRC client would most + * likely open a new window, create an IRCClientChannelDelegate for the window, + * set the new IRCClientChannel's delegate to the new delegate, and then hook + * it up so that new events sent to the IRCClientChannelDelegate are sent to + * the window. + * + * @param channel the IRCClientChannel object for the newly joined channel. + */ + +- (void)onJoinChannel:(IRCClientChannel *)channel; + +/** The client has changed it's user mode. + * + * @param mode the new mode. + */ + +- (void)onMode:(NSString *)mode; + +/** The client has received a private PRIVMSG from another IRC client. + * + * @param message the text of the message + * @param nick the other IRC Client that sent the message. + */ + +- (void)onPrivmsg:(NSData *)message nick:(NSString *)nick; + +/** The client has received a private NOTICE from another client. + * + * @param notice the text of the message + * @param nick the nickname of the other IRC client that sent the message. + */ + +- (void)onNotice:(NSData *)notice nick:(NSString *)nick; + +/** The IRC client has been invited to a channel. + * + * @param channel the channel for the invitation. + * @param nick the nickname of the user that sent the invitation. + */ + +- (void)onInvite:(NSString *)channel nick:(NSString *)nick; + +/** A private CTCP request was sent to the IRC client. + * + * @param request the CTCP request string (after the type) + * @param type the CTCP request type + * @param nick the nickname of the user that sent the request. + */ + +- (void)onCtcpRequest:(NSString *)request type:(NSString *)type nick:(NSString *)nick; + +/** A private CTCP reply was sent to the IRC client. + * + * @param reply an NSData containing the raw C string of the reply. + * @param nick the nickname of the user that sent the reply. + */ + +- (void)onCtcpReply:(NSData *)reply nick:(NSString *)nick; + +/** A private CTCP ACTION was sent to the IRC client. + * + * CTCP ACTION is not limited to channels; it may also be sent directly to other users. + * + * @param action the action message text. + * @param nick the nickname of the client that sent the action. + */ + +- (void)onAction:(NSData *)action nick:(NSString *)nick; + +/** An unhandled event was received from the IRC server. + * + * @param event the unknown event name + * @param origin the sender of the event + * @param params an NSArray of NSData objects that are the raw C strings of the event. + */ + +- (void)onUnknownEvent:(NSString *)event origin:(NSString *)origin params:(NSArray *)params; + +/** An unhandled numeric was received from the IRC server + * + * @param event the unknown event number + * @param origin the sender of the event + * @param params an NSArray of NSData objects that are the raw C strings of the event. + */ + +- (void)onNumericEvent:(NSUInteger)event origin:(NSString *)origin params:(NSArray *)params; + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/IRCClientSession.h libircclient-1.8/cocoa/Classes/IRCClientSession.h --- libircclient-1.3+dfsg1/cocoa/Classes/IRCClientSession.h 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/IRCClientSession.h 2009-01-19 02:16:01.668394000 +0000 @@ -0,0 +1,264 @@ +/*! \mainpage IRCClient - a Cocoa IRC Framework to create IRC clients + * + * \section intro_sec Introduction + * + * IRCClient is a Cocoa Framework that uses the excellent libircclient library + * written by Georgy Yunaev. + * + * \section usage Basic Usage + * + * To use this framework, you will need to write an IRCClientSessionDelegate to + * handle all of the events generated by the server, and an IRCClientChannelDelegate + * to handle all of the events generated by channels on that server. + * + * You then create an IRCClientSession object in your code, assign the required + * properties, and call connect: to connect to the server and run: to create + * the new thread and start receiving events. For example: + * + * \code + * IRCClientSession *session = [[IRCClientSession alloc] init]; + * MyIRCClientSessionDelegate *controller = [[MyIRCClientSessionDelegate alloc] init]; + * + * [session setDelegate:controller]; + * [controller setSession:session]; + * + * [session setServer:@"irc.dal.net"]; + * [session setPort:@"6667"]; + * [session setNickname:@"test"]; + * [session setUsername:@"test"]; + * [session setRealname:@"test"]; + * [session connect]; + * + * [session run]; //starts the thread + * \endcode + * + * \section author Author, copyright, support. + * + * If you have any questions, bug reports, suggestions regarding libircclient + * or the IRCClient framework, please visit http://libircclient.sourceforge.net + * + *
+ * libircclient Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
+ * IRCClient Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net
+ *
+ * This library is free software; you can redistribute it and/or modify it 
+ * under the terms of the GNU Lesser General Public License as published by 
+ * the Free Software Foundation; either version 2 of the License, or (at your 
+ * option) any later version.
+ *
+ * This library 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 Lesser General Public 
+ * License for more details.
+ * 
+ */ + +/** + * @file IRCClientSession.h + * @author Nathan Ollerenshaw + * @version 1.0 + * @date 01.2009 + * @brief Represents a connected IRC Session. + */ + +#import +#import +#include + +/** @class IRCClientSession + * @brief Represents a connected IRC Session. + * + * IRCClientSession represents a single connection to an IRC server. On initialising + * the object, and setting the delegate, server, port, password, nickname, username and realname + * properties, you call the connect: and run: methods to connect to the IRC server + * and start a new thread. + * + * This thread then sends messages back to the main runloop to the IRC server delegate, + * or to the IRCClientChannel delegate as required. + */ + +@class IRCClientChannel; +@interface IRCClientSession : NSObject { + id delegate; + irc_callbacks_t callbacks; + irc_session_t *session; + NSThread *thread; + + NSString *version; + NSString *server; + NSString *port; + NSString *password; + + NSString *nickname; + NSString *username; + NSString *realname; + + NSMutableDictionary *channels; + NSMutableDictionary *nicks; + NSStringEncoding encoding; +} + +/** delegate to send events to. */ +@property (assign) id delegate; + +/** The underlying libircclient handle */ +@property (assign) irc_session_t *session; + +/** The version string for the client to send back on CTCP VERSION requests */ +@property (copy) NSString *version; + +/** IRC server to connect to */ +@property (copy) NSString *server; + +/** IRC port to connect to */ +@property (copy) NSString *port; + +/** Server password to provide on connect (may be left empty or nil) */ +@property (copy) NSString *password; + +/** Nickname of the connected client. Note that setting this after connection will + not result in the client renaming on IRC. You need to send a nick: message instead. + */ +@property (copy) NSString *nickname; + +/** Username of the connected client. Also known as the ident. + + Setting this after connection does nothing. + */ +@property (copy) NSString *username; + +/** Realname of the connected client. + + Setting this after connection does nothing. */ +@property (copy) NSString *realname; + +/** An NSMutableDictionary of channels that the client is currently connected to. + + You should not modify this. */ +@property (assign,readonly) NSMutableDictionary *channels; + +/** The default text encoding for messages on this server. + + This affects messages received via PRIVMSG and NOTICE, and TOPIC in a channel. + You may change this at any time. + */ + +@property (assign) NSStringEncoding encoding; + +/** Connect to the IRC server. + + Note that this performs the initial DNS lookup and the TCP connection, so if + there are any problems you will be notified via the return code of the message. + + Look at the libircclient documentation for the different return codes. */ + +- (int)connect; + +/** Disconnect from the IRC server. + + This always works, as it simply shuts down the socket. If you want to disconnect + in a friendly way, you should use the quit: message. */ + +- (void)disconnect; + +/** returns YES if the server is currently connected successfully, and NO if + it is not. */ + +- (bool)isConnected; + +/** Starts a new thread and starts the libircclient runloop, processing events and + firing messages back to the main runloop as required. Calling this again will + do nothing other than raise a warning in your logs. */ + +- (void)run; + +/** Sends a raw message to the IRC server. Please consult rfc1459 for the format + of IRC commands. */ + +- (int)sendRawWithFormat:(NSString *)format, ...; + +/** quits the IRC server with the given reason. On success, an onQuit event will be + sent to the IRCClientSessionDelegate with the nickname of the IRC client. + + The format is a standard NSString format string, followed by optional arguments. + */ + +- (int)quit:(NSString *)reason; + +/** Joins a channel with a given name and key + + @param channel the channel to join + @param key they key for the channel (may be nil) + */ + +- (int)join:(NSString *)channel key:(NSString *)key; + +/** lists channels on the IRC server. + + @param channel a channel name or string to pass to the LIST command. Implementation specific. + */ + +- (int)list:(NSString *)channel; + +/** sets the user mode for the IRC client + + @param mode string to set + */ + +- (int)userMode:(NSString *)mode; + +/** sets the IRC client nickname. On success, an onNick event will be sent to the delegate + + @param newnick new nickname to set. + */ + +- (int)nick:(NSString *)newnick; + +/** sends a WHOIS request to the IRC server + + @param nick nickname of the irc client to whois. +*/ + +- (int)whois:(NSString *)nick; + +/** send a PRIVMSG to another IRC client + + @param message message to send + @param target the other IRC client to send the message to. + */ + +- (int)message:(NSString *)message to:(NSString *)target; + +/** send a CTCP ACTION to another IRC client + + @param action the action message to send + @param target the nickname of the irc client to send the message to. + */ + +- (int)action:(NSString *)action to:(NSString *)target; + +/** send a NOTICE to another IRC client + + @param notice the message text to send + @param target the nickname of the irc client to send the notice to. + */ + +- (int)notice:(NSString *)notice to:(NSString *)target; + +/** send a CTCP request to another IRC client + + @param request the CTCP request string to send + @param target the nickname of the IRC client to send the request to. + */ + +- (int)ctcpRequest:(NSString *)request target:(NSString *)target; + +/** send a CTCP reply to another IRC client + + @param reply the CTCP reply string to send + @param target the nickname of the IRC client to send the reply to. + */ + +- (int)ctcpReply:(NSString *)reply target:(NSString *)target; + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/IRCClientSession.m libircclient-1.8/cocoa/Classes/IRCClientSession.m --- libircclient-1.3+dfsg1/cocoa/Classes/IRCClientSession.m 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/IRCClientSession.m 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,744 @@ +/* + * Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This library 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 Lesser General Public + * License for more details. + */ + +#define IRCCLIENTVERSION "1.0" + +#import "IRCClientSession.h" +#import "NSObject+DDExtensions.h" +#import "IRCClientChannel.h" +#include "string.h" + +static void onConnect(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onNick(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onQuit(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onJoinChannel(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onPartChannel(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onMode(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onUserMode(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onTopic(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onKick(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onChannelPrvmsg(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onPrivmsg(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onNotice(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onInvite(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onCtcpRequest(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onCtcpReply(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onCtcpAction(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onUnknownEvent(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count); +static void onNumericEvent(irc_session_t * session, unsigned int event, const char * origin, const char ** params, unsigned int count); + +@implementation IRCClientSession + +@synthesize delegate; +@synthesize session; +@synthesize version; +@synthesize server; +@synthesize port; +@synthesize password; +@synthesize nickname; +@synthesize username; +@synthesize realname; +@synthesize channels; +@synthesize encoding; + +-(id)init +{ + if ((self = [super init])) { + callbacks.event_connect = onConnect; + callbacks.event_nick = onNick; + callbacks.event_quit = onQuit; + callbacks.event_join = onJoinChannel; + callbacks.event_part = onPartChannel; + callbacks.event_mode = onMode; + callbacks.event_umode = onUserMode; + callbacks.event_topic = onTopic; + callbacks.event_kick = onKick; + callbacks.event_channel = onChannelPrvmsg; + callbacks.event_privmsg = onPrivmsg; + callbacks.event_notice = onNotice; + callbacks.event_invite = onInvite; + callbacks.event_ctcp_req = onCtcpRequest; + callbacks.event_ctcp_rep = onCtcpReply; + callbacks.event_ctcp_action = onCtcpAction; + callbacks.event_unknown = onUnknownEvent; + callbacks.event_numeric = onNumericEvent; + callbacks.event_dcc_chat_req = NULL; + callbacks.event_dcc_send_req = NULL; + + session = irc_create_session(&callbacks); + + if (!session) { + NSLog(@"Could not create irc_session."); + return nil; + } + + irc_set_ctx(session, self); + + unsigned int high, low; + irc_get_version (&high, &low); + + [self setVersion:[NSString stringWithFormat:@"IRCClient Framework v%s (Nathan Ollerenshaw) - libirc v%d.%d (Georgy Yunaev)", IRCCLIENTVERSION, high, low]]; + + channels = [[[NSMutableDictionary alloc] init] retain]; + encoding = NSASCIIStringEncoding; + } + return self; +} + +-(void)dealloc +{ + if (irc_is_connected(session)) + NSLog(@"Warning: IRC Session is not disconnected on dealloc"); + + irc_destroy_session(session); + + [channels release]; + + [super dealloc]; +} + +- (int)connect; +{ + unsigned short sPort = [port intValue]; + + return irc_connect(session, [server cStringUsingEncoding:encoding], sPort, [password length] > 0 ? [password cStringUsingEncoding:encoding] : NULL , [nickname cStringUsingEncoding:encoding], [username cStringUsingEncoding:encoding], [realname cStringUsingEncoding:encoding]); +} + +- (void)disconnect +{ + irc_disconnect(session); +} + +- (bool)isConnected +{ + return irc_is_connected(session); +} + +- (void)startThread +{ + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + + irc_run(session); + + [pool drain]; +} + +- (void)run +{ + if (thread) { + NSLog(@"Thread already running!"); + return; + } + + thread = [[NSThread alloc] initWithTarget:self selector:@selector(startThread) object:nil]; + [thread retain]; + [thread start]; +} + +- (int)sendRawWithFormat:(NSString *)format, ... +{ + va_list ap; + + va_start(ap, format); + NSString *line = [[NSString alloc] initWithFormat:format arguments:ap]; + va_end(ap); + + return irc_send_raw(session, [line cStringUsingEncoding:encoding]); +} + +- (int)quit:(NSString *)reason +{ + return irc_cmd_quit(session, [reason cStringUsingEncoding:encoding]); +} + +- (int)join:(NSString *)channel key:(NSString *)key +{ + NSLog(@"Joining %@", channel); + + if (!key || ![key length] > 0) + return irc_cmd_join(session, [channel cStringUsingEncoding:encoding], NULL); + + return irc_cmd_join(session, [channel cStringUsingEncoding:encoding], [key cStringUsingEncoding:encoding]); +} + +- (int)list:(NSString *)channel +{ + return irc_cmd_list(session, [channel cStringUsingEncoding:encoding]); +} + +- (int)userMode:(NSString *)mode +{ + return irc_cmd_user_mode(session, [mode cStringUsingEncoding:encoding]); +} + +- (int)nick:(NSString *)newnick +{ + return irc_cmd_nick(session, [newnick cStringUsingEncoding:encoding]); +} + +- (int)whois:(NSString *)nick +{ + return irc_cmd_whois(session, [nick cStringUsingEncoding:encoding]); +} + +- (int)message:(NSString *)message to:(NSString *)target +{ + return irc_cmd_msg(session, [target cStringUsingEncoding:encoding], [message cStringUsingEncoding:encoding]); +} + +- (int)action:(NSString *)action to:(NSString *)target +{ + return irc_cmd_me(session, [target cStringUsingEncoding:encoding], [action cStringUsingEncoding:encoding]); +} + +- (int)notice:(NSString *)notice to:(NSString *)target +{ + return irc_cmd_notice(session, [target cStringUsingEncoding:encoding], [notice cStringUsingEncoding:encoding]); +} + +- (int)ctcpRequest:(NSString *)request target:(NSString *)target +{ + return irc_cmd_ctcp_request(session, [target cStringUsingEncoding:encoding], [request cStringUsingEncoding:encoding]); +} + +- (int)ctcpReply:(NSString *)reply target:(NSString *)target +{ + return irc_cmd_ctcp_reply(session, [target cStringUsingEncoding:encoding], [reply cStringUsingEncoding:encoding]); +} + + + +@end + +NSString * +getNickFromNickUserHost(NSString *nuh) +{ + NSArray *nuhArray = [nuh componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"!@"]]; + + if ([nuhArray count] == 3) + return [NSString stringWithString:[nuhArray objectAtIndex:0]]; + else + return [NSString stringWithString:nuh]; +} + +NSString * +getUserFromNickUserHost(NSString *nuh) +{ + NSArray *nuhArray = [nuh componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"!@"]]; + + if ([nuhArray count] == 3) + return [NSString stringWithString:[nuhArray objectAtIndex:1]]; + else + return nil; +} + +NSString * +getHostFromNickUserHost(NSString *nuh) +{ + NSArray *nuhArray = [nuh componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"!@"]]; + + if ([nuhArray count] == 3) + return [NSString stringWithString:[nuhArray objectAtIndex:2]]; + else + return nil; +} + +/*! + * The "on_connect" event is triggered when the client successfully + * connects to the server, and could send commands to the server. + * No extra params supplied; \a params is 0. + */ +static void onConnect(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + + if ([[client delegate] respondsToSelector:@selector(onConnect)]) + [[[client delegate] dd_invokeOnMainThread] onConnect]; +} + +/*! + * The "nick" event is triggered when the client receives a NICK message, + * meaning that someone (including you) on a channel with the client has + * changed their nickname. + * + * \param origin the person, who changes the nick. Note that it can be you! + * \param params[0] mandatory, contains the new nick. + */ +static void onNick(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + + NSString *nick = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSString *oldNick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + + if ([[client nickname] compare:oldNick] == NSOrderedSame) { + [client setNickname:nick]; + } + + if ([[client delegate] respondsToSelector:@selector(onNick:oldNick:)]) + [[[client delegate] dd_invokeOnMainThread] onNick:nick oldNick:oldNick]; +} + +/*! + * The "quit" event is triggered upon receipt of a QUIT message, which + * means that someone on a channel with the client has disconnected. + * + * \param origin the person, who is disconnected + * \param params[0] optional, contains the reason message (user-specified). + */ +static void onQuit(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *reason = [NSString stringWithCString:params[0] encoding:[client encoding]]; + + if ([[client delegate] respondsToSelector:@selector(onQuit:reason:)]) + [[[client delegate] dd_invokeOnMainThread] onQuit:nick reason:reason]; +} + +/*! + * The "join" event is triggered upon receipt of a JOIN message, which + * means that someone has entered a channel that the client is on. + * + * \param origin the person, who joins the channel. By comparing it with + * your own nickname, you can check whether your JOIN + * command succeed. + * \param params[0] mandatory, contains the channel name. + */ +static void onJoinChannel(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + + NSString *nickOnly = getNickFromNickUserHost(nick); + + if ([[client nickname] compare:nickOnly] == NSOrderedSame) { + // We just joined a channel; allocate an IRCClientChannel object and send it + // to the main thread. + + IRCClientChannel *newChannel = [[IRCClientChannel alloc] initWithName:channel]; + [[client channels] setObject:newChannel forKey:channel]; + + if ([[client delegate] respondsToSelector:@selector(onJoinChannel:)]) + [[[client delegate] dd_invokeOnMainThread] onJoinChannel:newChannel]; + } else { + // Someone joined a channel we're on. + + IRCClientChannel *currentChannel = [[client channels] objectForKey:channel]; + [currentChannel onJoin:nick]; + } +} + +/*! + * The "part" event is triggered upon receipt of a PART message, which + * means that someone has left a channel that the client is on. + * + * \param origin the person, who leaves the channel. By comparing it with + * your own nickname, you can check whether your PART + * command succeed. + * \param params[0] mandatory, contains the channel name. + * \param params[1] optional, contains the reason message (user-defined). + */ +static void onPartChannel(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSData *reason = nil; + IRCClientChannel *currentChannel = nil; + + if (count > 1) + reason = [NSData dataWithBytes:params[1] length:strlen(params[1])]; + + if ([[client nickname] compare:nick] == NSOrderedSame) { + // We just left a channel; remove it from the channels dict. + + currentChannel = [[client channels] objectForKey:channel]; + [[client channels] removeObjectForKey:channel]; + } else { + // Someone left a channel we're on. + + currentChannel = [[client channels] objectForKey:channel]; + } + + [currentChannel onPart:nick reason:[[NSString alloc] initWithData:reason encoding:[currentChannel encoding]]]; +} + +/*! + * The "mode" event is triggered upon receipt of a channel MODE message, + * which means that someone on a channel with the client has changed the + * channel's parameters. + * + * \param origin the person, who changed the channel mode. + * \param params[0] mandatory, contains the channel name. + * \param params[1] mandatory, contains the changed channel mode, like + * '+t', '-i' and so on. + * \param params[2] optional, contains the mode argument (for example, a + * key for +k mode, or user who got the channel operator status for + * +o mode) + */ +static void onMode(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSString *mode = [NSString stringWithCString:params[1] encoding:NSASCIIStringEncoding]; + NSString *modeParams = nil; + + if (count > 2) + modeParams = [NSString stringWithCString:params[2] encoding:NSASCIIStringEncoding]; + + IRCClientChannel *currentChannel = [[client channels] objectForKey:channel]; + + [currentChannel onMode:mode params:modeParams nick:nick]; +} + +/*! + * The "umode" event is triggered upon receipt of a user MODE message, + * which means that your user mode has been changed. + * + * \param origin the person, who changed the channel mode. + * \param params[0] mandatory, contains the user changed mode, like + * '+t', '-i' and so on. + */ +static void onUserMode(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *mode = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + + if ([[client delegate] respondsToSelector:@selector(onMode:)]) + [[[client delegate] dd_invokeOnMainThread] onMode:mode]; +} + +/*! + * The "topic" event is triggered upon receipt of a TOPIC message, which + * means that someone on a channel with the client has changed the + * channel's topic. + * + * \param origin the person, who changes the channel topic. + * \param params[0] mandatory, contains the channel name. + * \param params[1] optional, contains the new topic. + */ +static void onTopic(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSData *topic = nil; + + if (count > 1) + topic = [NSData dataWithBytes:params[1] length:strlen(params[1])]; + + IRCClientChannel *currentChannel = [[client channels] objectForKey:channel]; + + [currentChannel onTopic:[[NSString alloc] initWithData:topic encoding:[currentChannel encoding]] nick:nick]; +} + +/*! + * The "kick" event is triggered upon receipt of a KICK message, which + * means that someone on a channel with the client (or possibly the + * client itself!) has been forcibly ejected. + * + * \param origin the person, who kicked the poor. + * \param params[0] mandatory, contains the channel name. + * \param params[1] optional, contains the nick of kicked person. + * \param params[2] optional, contains the kick text + */ +static void onKick(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *byNick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSString *nick = nil; + NSData *reason = nil; + + if (count > 1) + nick = [NSString stringWithCString:params[1] encoding:NSASCIIStringEncoding]; + + if (count > 2) + reason = [NSData dataWithBytes:params[2] length:strlen(params[2])]; + + if (nick == nil) { + // we got kicked + IRCClientChannel *currentChannel = [[client channels] objectForKey:channel]; + [[client channels] removeObjectForKey:channel]; + + [currentChannel onKick:[client nickname] reason:[[NSString alloc] initWithData:reason encoding:[currentChannel encoding]] byNick:byNick]; + } else { + // someone else got booted + IRCClientChannel *currentChannel = [[client channels] objectForKey:channel]; + + [currentChannel onKick:nick reason:[[NSString alloc] initWithData:reason encoding:[currentChannel encoding]] byNick:byNick]; + } +} + +/*! + * The "channel" event is triggered upon receipt of a PRIVMSG message + * to an entire channel, which means that someone on a channel with + * the client has said something aloud. Your own messages don't trigger + * PRIVMSG event. + * + * \param origin the person, who generates the message. + * \param params[0] mandatory, contains the channel name. + * \param params[1] optional, contains the message text + */ +static void onChannelPrvmsg(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSData *message = nil; + + if (count > 1) { + message = [NSData dataWithBytes:params[1] length:strlen(params[1])]; + + IRCClientChannel *currentChannel = [[client channels] objectForKey:channel]; + + [currentChannel onPrivmsg:[[NSString alloc] initWithData:message encoding:[currentChannel encoding]] nick:nick]; + } +} + +/*! + * The "privmsg" event is triggered upon receipt of a PRIVMSG message + * which is addressed to one or more clients, which means that someone + * is sending the client a private message. + * + * \param origin the person, who generates the message. + * \param params[0] mandatory, contains your nick. + * \param params[1] optional, contains the message text + */ +static void onPrivmsg(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSData *message = nil; + + if (count > 1) { + message = [NSData dataWithBytes:params[1] length:strlen(params[1])]; + + if ([[client delegate] respondsToSelector:@selector(onPrivmsg:nick:)]) + [[[client delegate] dd_invokeOnMainThread] onPrivmsg:message nick:nick]; + } + + // we eat privmsgs with no message +} + +/*! + * The "notice" event is triggered upon receipt of a NOTICE message + * which means that someone has sent the client a public or private + * notice. According to RFC 1459, the only difference between NOTICE + * and PRIVMSG is that you should NEVER automatically reply to NOTICE + * messages. Unfortunately, this rule is frequently violated by IRC + * servers itself - for example, NICKSERV messages require reply, and + * are NOTICEs. + * + * \param origin the person, who generates the message. + * \param params[0] mandatory, contains the channel name. + * \param params[1] optional, contains the message text + */ +static void onNotice(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *target = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSData *notice = nil; + + IRCClientChannel *currentChannel = [[client channels] objectForKey:target]; + + if (count > 1) { + notice = [NSData dataWithBytes:params[1] length:strlen(params[1])]; + + if (currentChannel != nil) { + [currentChannel onNotice:[[NSString alloc] initWithData:notice encoding:[currentChannel encoding]] nick:nick]; + } else { + if ([[client delegate] respondsToSelector:@selector(onNotice:nick:)]) + [[[client delegate] dd_invokeOnMainThread] onNotice:notice nick:nick]; + } + } + + // we eat notices with no message +} + +/*! + * The "invite" event is triggered upon receipt of an INVITE message, + * which means that someone is permitting the client's entry into a +i + * channel. + * + * \param origin the person, who INVITEs you. + * \param params[0] mandatory, contains your nick. + * \param params[1] mandatory, contains the channel name you're invited into. + * + * \sa irc_cmd_invite irc_cmd_chanmode_invite + */ +static void onInvite(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *channel = [NSString stringWithCString:params[1] encoding:NSASCIIStringEncoding]; + + if ([[client delegate] respondsToSelector:@selector(onInvite:nick:)]) + [[[client delegate] dd_invokeOnMainThread] onInvite:channel nick:nick]; +} + +/*! + * The "ctcp" event is triggered when the client receives the CTCP + * request. By default, the built-in CTCP request handler is used. The + * build-in handler automatically replies on most CTCP messages, so you + * will rarely need to override it. + * + * \param origin the person, who generates the message. + * \param params[0] mandatory, the complete CTCP message, including its + * arguments. + * + * Mirc generates PING, FINGER, VERSION, TIME and ACTION messages, + * check the source code of \c libirc_event_ctcp_internal function to + * see how to write your own CTCP request handler. Also you may find + * useful this question in FAQ: \ref faq4 + */ +static void onCtcpRequest(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + + if ( origin ) + { + char nickbuf[128]; + irc_target_get_nick (origin, nickbuf, sizeof(nickbuf)); + + if ( strstr (params[0], "PING") == params[0] ) { + irc_cmd_ctcp_reply (session, nickbuf, params[0]); + } + else if ( !strcmp (params[0], "VERSION") ) + { + irc_cmd_ctcp_reply (session, nickbuf, [[NSString stringWithFormat:@"VERSION %@", [client version]] UTF8String]); + } + else if ( !strcmp (params[0], "FINGER") ) + { + irc_cmd_ctcp_reply (session, nickbuf, [[NSString stringWithFormat:@"FINGER %@ (%@) Idle 0 seconds", [client username], [client realname]] UTF8String]); + } + else if ( !strcmp (params[0], "TIME") ) + { + irc_cmd_ctcp_reply(session, nickbuf, [[[NSDate dateWithTimeIntervalSinceNow:0] descriptionWithCalendarFormat:@"TIME %a %b %e %H:%M:%S %Z %Y" timeZone:nil locale:[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]] UTF8String]); + } else { + if ([[client delegate] respondsToSelector:@selector(onCtcpRequest:type:nick:)]) { + NSString *requestString = [[NSString alloc] initWithData:[NSData dataWithBytes:params[0] length:strlen(params[0])] encoding:[client encoding]]; + + NSRange firstSpace = [requestString rangeOfString:@" "]; + + NSString *type = [requestString substringToIndex:firstSpace.location]; + NSString *request = [requestString substringFromIndex:(firstSpace.location + 1)]; + + [[[client delegate] dd_invokeOnMainThread] onCtcpRequest:request type:type nick:nick]; + } + } + } +} + +/*! + * The "ctcp" event is triggered when the client receives the CTCP reply. + * + * \param origin the person, who generates the message. + * \param params[0] mandatory, the CTCP message itself with its arguments. + */ +static void onCtcpReply(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSData *reply = [NSData dataWithBytes:params[0] length:strlen(params[0])]; + + if ([[client delegate] respondsToSelector:@selector(onCtcpReply:nick:)]) + [[[client delegate] dd_invokeOnMainThread] onCtcpReply:reply nick:nick]; +} + +/*! + * The "action" event is triggered when the client receives the CTCP + * ACTION message. These messages usually looks like:\n + * \code + * [23:32:55] * Tim gonna sleep. + * \endcode + * + * \param origin the person, who generates the message. + * \param params[0] mandatory, the target of the message. + * \param params[1] mandatory, the ACTION message. + */ +static void onCtcpAction(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + + NSString *nick = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + NSString *target = [NSString stringWithCString:params[0] encoding:NSASCIIStringEncoding]; + NSData *action = [NSData dataWithBytes:params[1] length:strlen(params[1])]; + + IRCClientChannel *currentChannel = [[client channels] objectForKey:target]; + + if (currentChannel) { + // An action on a channel we're on + + [currentChannel onAction:[[NSString alloc] initWithData:action encoding:[currentChannel encoding]] nick:nick]; + } else { + // An action in a private message + + if ([[client delegate] respondsToSelector:@selector(onAction:nick:)]) + [[[client delegate] dd_invokeOnMainThread] onAction:action nick:nick]; + } +} + +/*! + * The "unknown" event is triggered upon receipt of any number of + * unclassifiable miscellaneous messages, which aren't handled by the + * library. + */ +static void onUnknownEvent(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSString *eventString = [NSString stringWithCString:event encoding:NSASCIIStringEncoding]; + NSString *sender = nil; + + if (origin != NULL) + sender = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + + NSMutableArray *paramsArray = [[NSMutableArray alloc] init]; + + for (unsigned int i = 0; i < count; i++) + [paramsArray addObject:[[NSString alloc] initWithData:[NSData dataWithBytes:params[i] length:strlen(params[i])] encoding:[client encoding]]]; + + if ([[client delegate] respondsToSelector:@selector(onUnknownEvent:origin:params:)]) + [[[client delegate] dd_invokeOnMainThread] onUnknownEvent:eventString origin:sender params:paramsArray]; +} + +/*! + * The "numeric" event is triggered upon receipt of any numeric response + * from the server. There is a lot of such responses, see the full list + * here: \ref rfcnumbers. + * + * See the params in ::irc_eventcode_callback_t specification. + */ +static void onNumericEvent(irc_session_t * session, unsigned int event, const char * origin, const char ** params, unsigned int count) +{ + IRCClientSession *client = (IRCClientSession *) irc_get_ctx(session); + NSUInteger eventNumber = event; + NSString *originString = [NSString stringWithCString:origin encoding:NSASCIIStringEncoding]; + + NSMutableArray *paramsArray = [[NSMutableArray alloc] init]; + + for (unsigned int i = 0; i < count; i++) + [paramsArray addObject:[[NSString alloc] initWithData:[NSData dataWithBytes:params[i] length:strlen(params[i])] encoding:[client encoding]]]; + + if ([[client delegate] respondsToSelector:@selector(onNumericEvent:origin:params:)]) + [[[client delegate] dd_invokeOnMainThread] onNumericEvent:eventNumber origin:originString params:paramsArray]; +} diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/NSObject+DDExtensions.h libircclient-1.8/cocoa/Classes/NSObject+DDExtensions.h --- libircclient-1.3+dfsg1/cocoa/Classes/NSObject+DDExtensions.h 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/NSObject+DDExtensions.h 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2007-2008 Dave Dribin + * + * 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 AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#import + + +@interface NSObject (DDExtensions) + +- (id)dd_invokeOnMainThread; +- (id)dd_invokeOnMainThreadAndWaitUntilDone:(BOOL)waitUntilDone; + +@end + +#define ddsynthesize(_X_) @synthesize _X_ = _##_X_ diff -Nru libircclient-1.3+dfsg1/cocoa/Classes/NSObject+DDExtensions.m libircclient-1.8/cocoa/Classes/NSObject+DDExtensions.m --- libircclient-1.3+dfsg1/cocoa/Classes/NSObject+DDExtensions.m 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Classes/NSObject+DDExtensions.m 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2007-2008 Dave Dribin + * + * 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 AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#import "NSObject+DDExtensions.h" +#import "DDInvocationGrabber.h" + +@implementation NSObject (DDExtensions) + +- (id)dd_invokeOnMainThread; +{ + return [self dd_invokeOnMainThreadAndWaitUntilDone:NO]; +} + +- (id)dd_invokeOnMainThreadAndWaitUntilDone:(BOOL)waitUntilDone; +{ + DDInvocationGrabber * grabber = [DDInvocationGrabber invocationGrabber]; + [grabber setForwardInvokesOnMainThread:YES]; + [grabber setWaitUntilDone:waitUntilDone]; + return [grabber prepareWithInvocationTarget:self]; +} + +@end diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/annotated.html libircclient-1.8/cocoa/doc/html/annotated.html --- libircclient-1.3+dfsg1/cocoa/doc/html/annotated.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/annotated.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,36 @@ + + +IRCClient: Class List + + + + + +
+

Class List

Here are the classes, structs, unions and interfaces with brief descriptions: + + + + +
IRCClientChannelRepresents a connected IRC Channel
IRCClientSessionRepresents a connected IRC Session
NSObject(IRCClientChannelDelegate)Receives delegate messages from an IRCClientChannel
NSObject(IRCClientSessionDelegate)Receives delegate messages from an IRCClientSession
+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/classes.html libircclient-1.8/cocoa/doc/html/classes.html --- libircclient-1.3+dfsg1/cocoa/doc/html/classes.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/classes.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,35 @@ + + +IRCClient: Alphabetical List + + + + + +
+

Class Index

I | N

+ +
  I  
+
IRCClientSession   
  N  
+
NSObject(IRCClientChannelDelegate)   NSObject(IRCClientSessionDelegate)   
IRCClientChannel   

I | N

+

+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/class_i_r_c_client_channel-members.html libircclient-1.8/cocoa/doc/html/class_i_r_c_client_channel-members.html --- libircclient-1.3+dfsg1/cocoa/doc/html/class_i_r_c_client_channel-members.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/class_i_r_c_client_channel-members.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,55 @@ + + +IRCClient: Member List + + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/class_i_r_c_client_session-members.html libircclient-1.8/cocoa/doc/html/class_i_r_c_client_session-members.html --- libircclient-1.3+dfsg1/cocoa/doc/html/class_i_r_c_client_session-members.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/class_i_r_c_client_session-members.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,69 @@ + + +IRCClient: Member List + + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/class_n_s_object_07_i_r_c_client_channel_delegate_08-members.html libircclient-1.8/cocoa/doc/html/class_n_s_object_07_i_r_c_client_channel_delegate_08-members.html --- libircclient-1.3+dfsg1/cocoa/doc/html/class_n_s_object_07_i_r_c_client_channel_delegate_08-members.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/class_n_s_object_07_i_r_c_client_channel_delegate_08-members.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,39 @@ + + +IRCClient: Member List + + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/class_n_s_object_07_i_r_c_client_session_delegate_08-members.html libircclient-1.8/cocoa/doc/html/class_n_s_object_07_i_r_c_client_session_delegate_08-members.html --- libircclient-1.3+dfsg1/cocoa/doc/html/class_n_s_object_07_i_r_c_client_session_delegate_08-members.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/class_n_s_object_07_i_r_c_client_session_delegate_08-members.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,44 @@ + + +IRCClient: Member List + + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_d_d_invocation_grabber_8h-source.html libircclient-1.8/cocoa/doc/html/_d_d_invocation_grabber_8h-source.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_d_d_invocation_grabber_8h-source.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_d_d_invocation_grabber_8h-source.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,140 @@ + + +IRCClient: DDInvocationGrabber.h Source File + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/doxygen.css libircclient-1.8/cocoa/doc/html/doxygen.css --- libircclient-1.3+dfsg1/cocoa/doc/html/doxygen.css 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/doxygen.css 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,441 @@ +body, table, div, p, dl { + font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; + font-size: 12px; +} + +/* @group Heading Levels */ + +h1 { + text-align: center; + font-size: 150%; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 100%; +} + +/* @end */ + +caption { + font-weight: bold; +} + +div.qindex, div.navpath, div.navtab{ + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #153788; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #1b77c5; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + border: 1px double #9295C2; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code { +} + +a.codeRef { +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +.fragment { + font-family: monospace, fixed; + font-size: 105%; +} + +pre.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + padding: 4px 6px; + margin: 4px 8px 4px 2px; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} + +td.indexkey { + background-color: #e8eef2; + font-weight: bold; + border: 1px solid #CCCCCC; + margin: 2px 0px 2px 0; + padding: 2px 10px; +} + +td.indexvalue { + background-color: #e8eef2; + border: 1px solid #CCCCCC; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #f0f0f0; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +/* @end */ + +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #84b0c7; +} + +th.dirtab { + background: #e8eef2; + font-weight: bold; +} + +hr { + height: 0; + border: none; + border-top: 1px solid #666; +} + +/* @group Member Descriptions */ + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #FAFAFA; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memItemLeft, .memItemRight, .memTemplParams { + border-top: 1px solid #ccc; +} + +.memTemplParams { + color: #606060; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #606060; + font-weight: normal; + margin-left: 3px; +} + +.memnav { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.memitem { + padding: 0; +} + +.memname { + white-space: nowrap; + font-weight: bold; +} + +.memproto, .memdoc { + border: 1px solid #84b0c7; +} + +.memproto { + padding: 0; + background-color: #d5e1e8; + font-weight: bold; + -webkit-border-top-left-radius: 8px; + -webkit-border-top-right-radius: 8px; + -moz-border-radius-topleft: 8px; + -moz-border-radius-topright: 8px; +} + +.memdoc { + padding: 2px 5px; + background-color: #eef3f5; + border-top-width: 0; + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; +} + +.memdoc p, .memdoc dl, .memdoc ul { + margin: 6px 0; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} + +/* @end */ + +/* @group Directory (tree) */ + +/* for the tree view */ + +.ftvtree { + font-family: sans-serif; + margin: 0.5em; +} + +/* these are for tree view when used as main index */ + +.directory { + font-size: 9pt; + font-weight: bold; +} + +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* +The following two styles can be used to replace the root node title +with an image of your choice. Simply uncomment the next two styles, +specify the name of your image and be sure to set 'height' to the +proper pixel height of your image. +*/ + +/* +.directory h3.swap { + height: 61px; + background-repeat: no-repeat; + background-image: url("yourimage.gif"); +} +.directory h3.swap span { + display: none; +} +*/ + +.directory > h3 { + margin-top: 0; +} + +.directory p { + margin: 0px; + white-space: nowrap; +} + +.directory div { + display: none; + margin: 0px; +} + +.directory img { + vertical-align: -30%; +} + +/* these are for tree view when not used as main index */ + +.directory-alt { + font-size: 100%; + font-weight: bold; +} + +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +.directory-alt > h3 { + margin-top: 0; +} + +.directory-alt p { + margin: 0px; + white-space: nowrap; +} + +.directory-alt div { + display: none; + margin: 0px; +} + +.directory-alt img { + vertical-align: -30%; +} + +/* @end */ + +address { + font-style: normal; + color: #333; +} Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/doc/html/doxygen.png and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/doc/html/doxygen.png differ diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/files.html libircclient-1.8/cocoa/doc/html/files.html --- libircclient-1.3+dfsg1/cocoa/doc/html/files.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/files.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,36 @@ + + +IRCClient: File Index + + + + + +
+

File List

Here is a list of all documented files with brief descriptions: + + + + + + +
DDInvocationGrabber.h [code]
IRCClientChannel.h [code]Represents a connected IRC Channel
IRCClientChannelDelegate.h [code]Receives delegate messages from an IRCClientChannel
IRCClientSession.h [code]Represents a connected IRC Session
IRCClientSessionDelegate.h [code]
NSObject+DDExtensions.h [code]
+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/functions_func.html libircclient-1.8/cocoa/doc/html/functions_func.html --- libircclient-1.3+dfsg1/cocoa/doc/html/functions_func.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/functions_func.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,182 @@ + + +IRCClient: Class Members - Functions + + + + + +
+  +

+

- a -

+

- c -

+

- d -

+

- i -

+

- j -

+

- k -

+

- l -

+

- m -

+

- n -

+

- o -

+

- p -

+

- q -

+

- r -

+

- s -

+

- u -

+

- w -

+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/functions.html libircclient-1.8/cocoa/doc/html/functions.html --- libircclient-1.3+dfsg1/cocoa/doc/html/functions.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/functions.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,224 @@ + + +IRCClient: Class Members + + + + + +
+Here is a list of all documented class members with links to the class documentation for each member: +

+

- a -

+

- c -

+

- d -

+

- e -

+

- i -

+

- j -

+

- k -

+

- l -

+

- m -

+

- n -

+

- o -

+

- p -

+

- q -

+

- r -

+

- s -

+

- t -

+

- u -

+

- v -

+

- w -

+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/functions_prop.html libircclient-1.8/cocoa/doc/html/functions_prop.html --- libircclient-1.3+dfsg1/cocoa/doc/html/functions_prop.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/functions_prop.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,74 @@ + + +IRCClient: Class Members - Properties + + + + + +
+  +

+

+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/hierarchy.html libircclient-1.8/cocoa/doc/html/hierarchy.html --- libircclient-1.3+dfsg1/cocoa/doc/html/hierarchy.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/hierarchy.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,38 @@ + + +IRCClient: Hierarchical Index + + + + + +
+

Class Hierarchy

This inheritance list is sorted roughly, but not completely, alphabetically: +
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/index.html libircclient-1.8/cocoa/doc/html/index.html --- libircclient-1.3+dfsg1/cocoa/doc/html/index.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/index.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,59 @@ + + +IRCClient: IRCClient - a Cocoa IRC Framework to create IRC clients + + + + + +
+

IRCClient - a Cocoa IRC Framework to create IRC clients

+

+

1.0

+Introduction

+IRCClient is a Cocoa Framework that uses the excellent libircclient library written by Georgy Yunaev.

+Basic Usage

+To use this framework, you will need to write an IRCClientSessionDelegate to handle all of the events generated by the server, and an IRCClientChannelDelegate to handle all of the events generated by channels on that server.

+You then create an IRCClientSession object in your code, assign the required properties, and call connect: to connect to the server and run: to create the new thread and start receiving events. For example:

+

 IRCClientSession *session = [[IRCClientSession alloc] init];
+ MyIRCClientSessionDelegate *controller = [[MyIRCClientSessionDelegate alloc] init];
+ 
+ [session setDelegate:controller];
+ [controller setSession:session];
+ 
+ [session setServer:@"irc.dal.net"];
+ [session setPort:@"6667"];
+ [session setNickname:@"test"];
+ [session setUsername:@"test"];
+ [session setRealname:@"test"];
+ [session connect];
+ 
+ [session run]; //starts the thread
+

+Author, copyright, support.

+If you have any questions, bug reports, suggestions regarding libircclient or the IRCClient framework, please visit http://libircclient.sourceforge.net

+

+ libircclient Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com
+ IRCClient Copyright (C) 2009 Nathan Ollerenshaw chrome@stupendous.net

+

 This library is free software; you can redistribute it and/or modify it 
+ under the terms of the GNU Lesser General Public License as published by 
+ the Free Software Foundation; either version 2 of the License, or (at your 
+ option) any later version.

+

 This library 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 Lesser General Public 
+ License for more details.
+ 
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/interface_i_r_c_client_channel.html libircclient-1.8/cocoa/doc/html/interface_i_r_c_client_channel.html --- libircclient-1.3+dfsg1/cocoa/doc/html/interface_i_r_c_client_channel.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/interface_i_r_c_client_channel.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,473 @@ + + +IRCClient: IRCClientChannel Class Reference + + + + + +
+

IRCClientChannel Class Reference

Represents a connected IRC Channel. +More... +

+#import <IRCClientChannel.h> +

+

+Inheritance diagram for IRCClientChannel:
+
+ +

+ + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

(id) - initWithName:
(int) - part
(int) - invite:
(void) - setTopic:
(int) - setMode:params:
(int) - message:
(int) - action:
(int) - notice:
(int) - kick:reason:
(int) - ctcpRequest:

Properties

id delegate
NSString * name
NSStringEncoding encoding
IRCClientSessionsession
NSString * topic
NSString * modes
NSMutableArray * names
+


Detailed Description

+Represents a connected IRC Channel. +

+IRCClientChannel objects are created by the IRCClientSession object for a given session when the client joins an IRC channel. At that time you are expected to register event handlers for each of the delegate methods described in the IRCClientChannelDelegate interface.


Member Function Documentation

+ +
+
+ + + + + + + + + +
- (int) action: (NSString *)  action  
+
+
+ +

+Sends a public CTCP ACTION to the channel.

+

Parameters:
+ + +
action action to send to the channel.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) ctcpRequest: (NSString *)  request  
+
+
+ +

+Sends a CTCP request to the channel.

+It is perfectly legal to send a CTCP request to an IRC channel, however many clients decline to respond to them, and often they are percieved as annoying.

+

Parameters:
+ + +
request the string of the request, in CTCP format.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (id) initWithName: (NSString *)  aName  
+
+
+ +

+initWithName:

+Returns an initialised IRCClientChannel with a given channel name. You are not expected to initialise your own IRCClientChannel objects; if you wish to join a channel you should send a [IRCClientSession join:key:] message to your IRCClientSession object.

+

Parameters:
+ + +
aName Name of the channel.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) invite: (NSString *)  nick  
+
+
+ +

+Invites another IRC client to the channel.

+

Parameters:
+ + +
nick the nickname of the client to invite.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) kick: (NSString *)  nick
reason:(NSString *)  reason 
+
+
+ +

+Kicks someone from a channel.

+

Parameters:
+ + + +
nick the IRC client to kick from the channel.
reason the message to give to the channel and the IRC client for the kick.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) message: (NSString *)  message  
+
+
+ +

+Sends a public PRIVMSG to the channel. If you try to send more than can fit on an IRC buffer, it will be truncated.

+

Parameters:
+ + +
message the message to send to the channel.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) notice: (NSString *)  notice  
+
+
+ +

+Sends a public NOTICE to the channel.

+

Parameters:
+ + +
notice message to send to the channel.
+
+ +
+

+ +

+
+ + + + + + + + +
- (int) part  
+
+
+ +

+Parts the channel. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) setMode: (NSString *)  mode
params:(NSString *)  params 
+
+
+ +

+Sets the mode of the channel.

+Note that not all users on a channel have permission to change the mode; if you fail to set the mode, then you will not see an onMode event on the IRCClientChannelDelegate.

+

Parameters:
+ + + +
mode the mode to set the channel to
params paramaters for the mode, if it requires parameters.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (void) setTopic: (NSString *)  aTopic  
+
+
+ +

+Sets the topic of the channel.

+Note that not all users on a channel have permission to change the topic; if you fail to set the topic, then you will not see an onTopic event on the IRCClientChannelDelegate.

+

Parameters:
+ + +
aTopic the topic the client wishes to set for the channel.
+
+ +
+

+


Property Documentation

+ +
+
+ + + + +
- (id) delegate [read, write, assign]
+
+
+ +

+Delegate to send events to +

+

+ +

+
+ + + + +
- (NSStringEncoding) encoding [read, write, assign]
+
+
+ +

+Encoding used by this channel +

+

+ +

+
+ + + + +
- (NSString *) modes [read, write, copy]
+
+
+ +

+Mode of the channel +

+

+ +

+
+ + + + +
- (NSString *) name [read, write, copy]
+
+
+ +

+Name of the channel +

+

+ +

+
+ + + + +
- (NSMutableArray *) names [read, assign]
+
+
+ +

+An array of nicknames stored as NSStrings that list the connected users for the channel +

+

+ +

+
+ + + + +
- (IRCClientSession *) session [read, write, assign]
+
+
+ +

+Associated IRCClientSession object +

+

+ +

+
+ + + + +
- (NSString *) topic [read, write, copy]
+
+
+ +

+Topic of the channel +

+

+


The documentation for this class was generated from the following files: +
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/doc/html/interface_i_r_c_client_channel.png and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/doc/html/interface_i_r_c_client_channel.png differ diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/interface_i_r_c_client_session.html libircclient-1.8/cocoa/doc/html/interface_i_r_c_client_session.html --- libircclient-1.3+dfsg1/cocoa/doc/html/interface_i_r_c_client_session.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/interface_i_r_c_client_session.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,730 @@ + + +IRCClient: IRCClientSession Class Reference + + + + + +
+

IRCClientSession Class Reference

Represents a connected IRC Session. +More... +

+#import <IRCClientSession.h> +

+

+Inheritance diagram for IRCClientSession:
+
+ +

+ + +
+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

(int) - connect
(void) - disconnect
(bool) - isConnected
(void) - run
(int) - sendRawWithFormat:
(int) - quit:
(int) - join:key:
(int) - list:
(int) - userMode:
(int) - nick:
(int) - whois:
(int) - message:to:
(int) - action:to:
(int) - notice:to:
(int) - ctcpRequest:target:
(int) - ctcpReply:target:

Properties

id delegate
irc_session_t * session
NSString * version
NSString * server
NSString * port
NSString * password
NSString * nickname
NSString * username
NSString * realname
NSMutableDictionary * channels
NSStringEncoding encoding
+


Detailed Description

+Represents a connected IRC Session. +

+IRCClientSession represents a single connection to an IRC server. On initialising the object, and setting the delegate, server, port, password, nickname, username and realname properties, you call the connect: and run: methods to connect to the IRC server and start a new thread.

+This thread then sends messages back to the main runloop to the IRC server delegate, or to the IRCClientChannel delegate as required.


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
- (int) action: (NSString *)  action
to:(NSString *)  target 
+
+
+ +

+send a CTCP ACTION to another IRC client

+

Parameters:
+ + + +
action the action message to send
target the nickname of the irc client to send the message to.
+
+ +
+

+ +

+
+ + + + + + + + +
- (int) connect  
+
+
+ +

+Connect to the IRC server.

+Note that this performs the initial DNS lookup and the TCP connection, so if there are any problems you will be notified via the return code of the message.

+Look at the libircclient documentation for the different return codes. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) ctcpReply: (NSString *)  reply
target:(NSString *)  target 
+
+
+ +

+send a CTCP reply to another IRC client

+

Parameters:
+ + + +
reply the CTCP reply string to send
target the nickname of the IRC client to send the reply to.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) ctcpRequest: (NSString *)  request
target:(NSString *)  target 
+
+
+ +

+send a CTCP request to another IRC client

+

Parameters:
+ + + +
request the CTCP request string to send
target the nickname of the IRC client to send the request to.
+
+ +
+

+ +

+
+ + + + + + + + +
- (void) disconnect  
+
+
+ +

+Disconnect from the IRC server.

+This always works, as it simply shuts down the socket. If you want to disconnect in a friendly way, you should use the quit: message. +

+

+ +

+
+ + + + + + + + +
- (bool) isConnected  
+
+
+ +

+returns YES if the server is currently connected successfully, and NO if it is not. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) join: (NSString *)  channel
key:(NSString *)  key 
+
+
+ +

+Joins a channel with a given name and key

+

Parameters:
+ + + +
channel the channel to join
key they key for the channel (may be nil)
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) list: (NSString *)  channel  
+
+
+ +

+lists channels on the IRC server.

+

Parameters:
+ + +
channel a channel name or string to pass to the LIST command. Implementation specific.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) message: (NSString *)  message
to:(NSString *)  target 
+
+
+ +

+send a PRIVMSG to another IRC client

+

Parameters:
+ + + +
message message to send
target the other IRC client to send the message to.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) nick: (NSString *)  newnick  
+
+
+ +

+sets the IRC client nickname. On success, an onNick event will be sent to the delegate

+

Parameters:
+ + +
newnick new nickname to set.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) notice: (NSString *)  notice
to:(NSString *)  target 
+
+
+ +

+send a NOTICE to another IRC client

+

Parameters:
+ + + +
notice the message text to send
target the nickname of the irc client to send the notice to.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) quit: (NSString *)  reason  
+
+
+ +

+quits the IRC server with the given reason. On success, an onQuit event will be sent to the IRCClientSessionDelegate with the nickname of the IRC client.

+The format is a standard NSString format string, followed by optional arguments. +

+

+ +

+
+ + + + + + + + +
- (void) run  
+
+
+ +

+Starts a new thread and starts the libircclient runloop, processing events and firing messages back to the main runloop as required. Calling this again will do nothing other than raise a warning in your logs. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (int) sendRawWithFormat: (NSString *)  format
,  ... 
+
+
+ +

+Sends a raw message to the IRC server. Please consult rfc1459 for the format of IRC commands. +

+

+ +

+
+ + + + + + + + + +
- (int) userMode: (NSString *)  mode  
+
+
+ +

+sets the user mode for the IRC client

+

Parameters:
+ + +
mode string to set
+
+ +
+

+ +

+
+ + + + + + + + + +
- (int) whois: (NSString *)  nick  
+
+
+ +

+sends a WHOIS request to the IRC server

+

Parameters:
+ + +
nick nickname of the irc client to whois.
+
+ +
+

+


Property Documentation

+ +
+
+ + + + +
- (NSMutableDictionary *) channels [read, assign]
+
+
+ +

+An NSMutableDictionary of channels that the client is currently connected to.

+You should not modify this. +

+

+ +

+
+ + + + +
- (id) delegate [read, write, assign]
+
+
+ +

+delegate to send events to. +

+

+ +

+
+ + + + +
- (NSStringEncoding) encoding [read, write, assign]
+
+
+ +

+The default text encoding for messages on this server.

+This affects messages received via PRIVMSG and NOTICE, and TOPIC in a channel. You may change this at any time. +

+

+ +

+
+ + + + +
- (NSString *) nickname [read, write, copy]
+
+
+ +

+Nickname of the connected client. Note that setting this after connection will not result in the client renaming on IRC. You need to send a nick: message instead. +

+

+ +

+
+ + + + +
- (NSString *) password [read, write, copy]
+
+
+ +

+Server password to provide on connect (may be left empty or nil) +

+

+ +

+
+ + + + +
- (NSString *) port [read, write, copy]
+
+
+ +

+IRC port to connect to +

+

+ +

+
+ + + + +
- (NSString *) realname [read, write, copy]
+
+
+ +

+Realname of the connected client.

+Setting this after connection does nothing. +

+

+ +

+
+ + + + +
- (NSString *) server [read, write, copy]
+
+
+ +

+IRC server to connect to +

+

+ +

+
+ + + + +
- (irc_session_t *) session [read, write, assign]
+
+
+ +

+The underlying libircclient handle +

+

+ +

+
+ + + + +
- (NSString *) username [read, write, copy]
+
+
+ +

+Username of the connected client. Also known as the ident.

+Setting this after connection does nothing. +

+

+ +

+
+ + + + +
- (NSString *) version [read, write, copy]
+
+
+ +

+The version string for the client to send back on CTCP VERSION requests +

+

+


The documentation for this class was generated from the following files: +
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/doc/html/interface_i_r_c_client_session.png and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/doc/html/interface_i_r_c_client_session.png differ diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_channel_delegate_08.html libircclient-1.8/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_channel_delegate_08.html --- libircclient-1.3+dfsg1/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_channel_delegate_08.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_channel_delegate_08.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,357 @@ + + +IRCClient: NSObject(IRCClientChannelDelegate) Class Reference + + + + + +
+

NSObject(IRCClientChannelDelegate) Class Reference

Receives delegate messages from an IRCClientChannel. +More... +

+#import <IRCClientChannelDelegate.h> +

+ +

+List of all members. + + + + + + + + + + + + + + + + + + +

Public Member Functions

(void) - onJoin:
(void) - onPart:reason:
(void) - onMode:params:nick:
(void) - onTopic:nick:
(void) - onKick:reason:byNick:
(void) - onPrivmsg:nick:
(void) - onNotice:nick:
(void) - onAction:nick:
+


Detailed Description

+Receives delegate messages from an IRCClientChannel. +

+Each IRCClientChannel object needs a delegate. Delegate methods are called for each event that occurs on an IRC channel that the client is current on.

+Note that for any given parameter, it may be optional, in which case a nil object may be supplied instead of the given parameter.


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
- (void) onAction: (NSString *)  action
nick:(NSString *)  nick 
+
+
+ +

+Received when an IRC client sends a CTCP ACTION message to the channel. used by lamers with no life to pretend that they are playing some form of MMORPG.

+

Parameters:
+ + + +
action the action message sent to the channel.
nick the nickname of the IRC client that sent the message.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (void) onJoin: (NSString *)  nick  
+
+
+ +

+When a client joins this channel, the onJoin event is fired. Note that the nickname is most likely in nick!user@host format, but may simply be a nickname, depending on the server implementation.

+You should also expect to see this event when the client first joins a channel, with a parameter of the client's nickname.

+

Parameters:
+ + +
nick The nickname of the user that joined the channel.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
- (void) onKick: (NSString *)  nick
reason:(NSString *)  reason
byNick:(NSString *)  byNick 
+
+
+ +

+Received when an IRC client is kicked from a channel.

+

Parameters:
+ + + + +
nick nickname of the client that was kicked
reason reason message given for the kick
byNick nickname of the client that performed the kick command
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
- (void) onMode: (NSString *)  mode
params:(NSString *)  params
nick:(NSString *)  nick 
+
+
+ +

+Received when an IRC client changes the channel mode. What modes are available for a given channel is an implementation detail for each server.

+

Parameters:
+ + + + +
mode the new channel mode.
params any parameters with the mode (such as channel key).
nick the nickname of the IRC client that changed the mode.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onNotice: (NSString *)  notice
nick:(NSString *)  nick 
+
+
+ +

+Received when an IRC client sends a public NOTICE to the channel. Note that the user may not necessarily be required to be on the channel to send a notice to it. Furthermore, the RFC states that the only difference between PRIVMSG and NOTICE is that a NOTICE may never be responded to automatically.

+

Parameters:
+ + + +
notice the notice sent to the channel.
nick the nickname of the IRC client that sent the notice.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onPart: (NSString *)  nick
reason:(NSString *)  reason 
+
+
+ +

+When an IRC client parts a channel you are connect to, you will see an onPart event. You will also see this event when you part a channel.

+

Parameters:
+ + + +
nick (required) The nickname of the user that left the channel.
reason (optional) The reason, if any, that the user gave for leaving.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onPrivmsg: (NSString *)  message
nick:(NSString *)  nick 
+
+
+ +

+Received when an IRC client sends a public PRIVMSG to the channel. Note that the user may not necessarily be required to be on the channel to send a message to it.

+

Parameters:
+ + + +
message the message sent to the channel.
nick the nickname of the IRC client that sent the message.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onTopic: (NSString *)  aTopic
nick:(NSString *)  nick 
+
+
+ +

+Received when the topic is changed for the channel.

+

Parameters:
+ + + +
aTopic The new topic of the channel.
nick Nickname of the IRC client that changed the topic.
+
+ +
+

+


The documentation for this class was generated from the following file: +
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_session_delegate_08.html libircclient-1.8/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_session_delegate_08.html --- libircclient-1.3+dfsg1/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_session_delegate_08.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/interface_n_s_object_07_i_r_c_client_session_delegate_08.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,528 @@ + + +IRCClient: NSObject(IRCClientSessionDelegate) Class Reference + + + + + +
+

NSObject(IRCClientSessionDelegate) Class Reference

Receives delegate messages from an IRCClientSession. +More... +

+#import <IRCClientSessionDelegate.h> +

+ +

+List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Member Functions

(void) - onConnect
(void) - onNick:oldNick:
(void) - onQuit:reason:
(void) - onJoinChannel:
(void) - onMode:
(void) - onPrivmsg:nick:
(void) - onNotice:nick:
(void) - onInvite:nick:
(void) - onCtcpRequest:type:nick:
(void) - onCtcpReply:nick:
(void) - onAction:nick:
(void) - onUnknownEvent:origin:params:
(void) - onNumericEvent:origin:params:
+


Detailed Description

+Receives delegate messages from an IRCClientSession. +

+Each IRCClientSession object needs a single delegate. Methods are called for each event that occurs on an IRC server that the client is connected to.

+Note that for any given parameter, it may be optional, in which case a nil object may be supplied instead of the given parameter.


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
- (void) onAction: (NSData *)  action
nick:(NSString *)  nick 
+
+
+ +

+A private CTCP ACTION was sent to the IRC client.

+CTCP ACTION is not limited to channels; it may also be sent directly to other users.

+

Parameters:
+ + + +
action the action message text.
nick the nickname of the client that sent the action.
+
+ +
+

+ +

+
+ + + + + + + + +
- (void) onConnect  
+
+
+ +

+The client has successfully connected to the IRC server. +

+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onCtcpReply: (NSData *)  reply
nick:(NSString *)  nick 
+
+
+ +

+A private CTCP reply was sent to the IRC client.

+

Parameters:
+ + + +
reply an NSData containing the raw C string of the reply.
nick the nickname of the user that sent the reply.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
- (void) onCtcpRequest: (NSString *)  request
type:(NSString *)  type
nick:(NSString *)  nick 
+
+
+ +

+A private CTCP request was sent to the IRC client.

+

Parameters:
+ + + + +
request the CTCP request string (after the type)
type the CTCP request type
nick the nickname of the user that sent the request.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onInvite: (NSString *)  channel
nick:(NSString *)  nick 
+
+
+ +

+The IRC client has been invited to a channel.

+

Parameters:
+ + + +
channel the channel for the invitation.
nick the nickname of the user that sent the invitation.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (void) onJoinChannel: (IRCClientChannel *)  channel  
+
+
+ +

+The IRC client has joined (connected) successfully to a new channel. This event creates an IRCClientChannel object, which you are expected to asign a delegate to, to handle events from the channel.

+For example, on receipt of this message, a graphical IRC client would most likely open a new window, create an IRCClientChannelDelegate for the window, set the new IRCClientChannel's delegate to the new delegate, and then hook it up so that new events sent to the IRCClientChannelDelegate are sent to the window.

+

Parameters:
+ + +
channel the IRCClientChannel object for the newly joined channel.
+
+ +
+

+ +

+
+ + + + + + + + + +
- (void) onMode: (NSString *)  mode  
+
+
+ +

+The client has changed it's user mode.

+

Parameters:
+ + +
mode the new mode.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onNick: (NSString *)  nick
oldNick:(NSString *)  oldNick 
+
+
+ +

+An IRC client on a channel that this client is connected to has changed nickname, or this IRC client has changed nicknames.

+

Parameters:
+ + + +
nick the new nickname
oldNick the old nickname
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onNotice: (NSData *)  notice
nick:(NSString *)  nick 
+
+
+ +

+The client has received a private NOTICE from another client.

+

Parameters:
+ + + +
notice the text of the message
nick the nickname of the other IRC client that sent the message.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
- (void) onNumericEvent: (NSUInteger)  event
origin:(NSString *)  origin
params:(NSArray *)  params 
+
+
+ +

+An unhandled numeric was received from the IRC server

+

Parameters:
+ + + + +
event the unknown event number
origin the sender of the event
params an NSArray of NSData objects that are the raw C strings of the event.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onPrivmsg: (NSData *)  message
nick:(NSString *)  nick 
+
+
+ +

+The client has received a private PRIVMSG from another IRC client.

+

Parameters:
+ + + +
message the text of the message
nick the other IRC Client that sent the message.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
- (void) onQuit: (NSString *)  nick
reason:(NSString *)  reason 
+
+
+ +

+An IRC client on a channel that this client is connected to has quit IRC.

+

Parameters:
+ + + +
nick the nickname of the client that quit.
reason (optional) the quit message, if any.
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
- (void) onUnknownEvent: (NSString *)  event
origin:(NSString *)  origin
params:(NSArray *)  params 
+
+
+ +

+An unhandled event was received from the IRC server.

+

Parameters:
+ + + + +
event the unknown event name
origin the sender of the event
params an NSArray of NSData objects that are the raw C strings of the event.
+
+ +
+

+


The documentation for this class was generated from the following file: +
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_8h.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_8h.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_8h.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_8h.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,48 @@ + + +IRCClient: IRCClientChannel.h File Reference + + + + + +
+

IRCClientChannel.h File Reference

Represents a connected IRC Channel. +More... +

+#import <Cocoa/Cocoa.h>
+#import "IRCClientChannelDelegate.h"
+ +

+Go to the source code of this file. + + + + + +

Classes

class  IRCClientChannel
 Represents a connected IRC Channel. More...
+


Detailed Description

+Represents a connected IRC Channel. +

+

Author:
Nathan Ollerenshaw
+
Version:
1.0
+
Date:
01.2009
+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_8h-source.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_8h-source.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_8h-source.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_8h-source.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,89 @@ + + +IRCClient: IRCClientChannel.h Source File + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_delegate_8h.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_delegate_8h.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_delegate_8h.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_delegate_8h.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,51 @@ + + +IRCClient: IRCClientChannelDelegate.h File Reference + + + + + +
+

IRCClientChannelDelegate.h File Reference

Receives delegate messages from an IRCClientChannel. +More... +

+#import <Cocoa/Cocoa.h>
+ +

+Go to the source code of this file. + + + + + +

Classes

class  NSObject(IRCClientChannelDelegate)
 Receives delegate messages from an IRCClientChannel. More...
+


Detailed Description

+Receives delegate messages from an IRCClientChannel. +

+Receives delegate messages from an IRCClientSession.

+

Author:
Nathan Ollerenshaw
+
Version:
1.0
+
Date:
01.2009
+
Author:
Nathan Ollerenshaw
+
Version:
1.0
+
Date:
01.2009
+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_delegate_8h-source.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_delegate_8h-source.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_channel_delegate_8h-source.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_channel_delegate_8h-source.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,61 @@ + + +IRCClient: IRCClientChannelDelegate.h Source File + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_session_8h.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_session_8h.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_session_8h.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_session_8h.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,49 @@ + + +IRCClient: IRCClientSession.h File Reference + + + + + +
+

IRCClientSession.h File Reference

Represents a connected IRC Session. +More... +

+#import <Cocoa/Cocoa.h>
+#import "IRCClientSessionDelegate.h"
+#include "libircclient.h"
+ +

+Go to the source code of this file. + + + + + +

Classes

class  IRCClientSession
 Represents a connected IRC Session. More...
+


Detailed Description

+Represents a connected IRC Session. +

+

Author:
Nathan Ollerenshaw
+
Version:
1.0
+
Date:
01.2009
+
+
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_session_8h-source.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_session_8h-source.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_session_8h-source.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_session_8h-source.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,107 @@ + + +IRCClient: IRCClientSession.h Source File + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_session_delegate_8h-source.html libircclient-1.8/cocoa/doc/html/_i_r_c_client_session_delegate_8h-source.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_i_r_c_client_session_delegate_8h-source.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_i_r_c_client_session_delegate_8h-source.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,74 @@ + + +IRCClient: IRCClientSessionDelegate.h Source File + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/_n_s_object_09_d_d_extensions_8h-source.html libircclient-1.8/cocoa/doc/html/_n_s_object_09_d_d_extensions_8h-source.html --- libircclient-1.3+dfsg1/cocoa/doc/html/_n_s_object_09_d_d_extensions_8h-source.html 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/_n_s_object_09_d_d_extensions_8h-source.html 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,61 @@ + + +IRCClient: NSObject+DDExtensions.h Source File + + + + + +
Generated on Sat Jan 10 18:10:37 2009 for IRCClient by  + +doxygen 1.5.7.1
+ + Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/doc/html/tab_b.gif and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/doc/html/tab_b.gif differ Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/doc/html/tab_l.gif and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/doc/html/tab_l.gif differ Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/doc/html/tab_r.gif and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/doc/html/tab_r.gif differ diff -Nru libircclient-1.3+dfsg1/cocoa/doc/html/tabs.css libircclient-1.8/cocoa/doc/html/tabs.css --- libircclient-1.3+dfsg1/cocoa/doc/html/tabs.css 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/doc/html/tabs.css 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,102 @@ +/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ + +DIV.tabs +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs LI, DIV.tabs FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs FORM +{ + float : right; +} + +DIV.tabs A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : 8px; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs A:link, DIV.tabs A:visited, +DIV.tabs A:active, DIV.tabs A:hover +{ + color: #1A419D; +} + +DIV.tabs SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs TD +{ + font-size : 8px; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs LI.current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs LI.current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} + +DIV.navpath +{ + background : none; + border : none; + border-bottom : 1px solid #84B0C7; +} diff -Nru libircclient-1.3+dfsg1/cocoa/Doxyfile libircclient-1.8/cocoa/Doxyfile --- libircclient-1.3+dfsg1/cocoa/Doxyfile 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Doxyfile 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,293 @@ +# Doxyfile 1.5.7.1 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +DOXYFILE_ENCODING = UTF-8 +PROJECT_NAME = IRCClient +PROJECT_NUMBER = 1.0 +OUTPUT_DIRECTORY = doc +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = NO +STRIP_FROM_PATH = /Extra/ +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +QT_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +INHERIT_DOCS = YES +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +OPTIMIZE_FOR_FORTRAN = NO +OPTIMIZE_OUTPUT_VHDL = NO +BUILTIN_STL_SUPPORT = NO +CPP_CLI_SUPPORT = NO +SIP_SUPPORT = NO +IDL_PROPERTY_SUPPORT = YES +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES +TYPEDEF_HIDES_STRUCT = NO +SYMBOL_CACHE_SIZE = 0 +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = NO +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = NO +EXTRACT_LOCAL_METHODS = NO +EXTRACT_ANON_NSPACES = NO +HIDE_UNDOC_MEMBERS = YES +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = NO +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_GROUP_NAMES = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = NO +SHOW_FILES = YES +SHOW_NAMESPACES = YES +FILE_VERSION_FILTER = +LAYOUT_FILE = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = NO +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = Classes +INPUT_ENCODING = UTF-8 +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.d \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.idl \ + *.odl \ + *.cs \ + *.php \ + *.php3 \ + *.inc \ + *.m \ + *.mm \ + *.dox \ + *.py \ + *.f90 \ + *.f \ + *.vhd \ + *.vhdl +RECURSIVE = NO +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXCLUDE_SYMBOLS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = * +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = NO +REFERENCES_RELATION = NO +REFERENCES_LINK_SOURCE = YES +USE_HTAGS = NO +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +HTML_DYNAMIC_SECTIONS = NO +GENERATE_DOCSET = NO +DOCSET_FEEDNAME = "Doxygen generated docs" +DOCSET_BUNDLE_ID = org.doxygen.Project +GENERATE_HTMLHELP = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +CHM_INDEX_ENCODING = +BINARY_TOC = NO +TOC_EXPAND = NO +GENERATE_QHP = NO +QCH_FILE = +QHP_NAMESPACE = org.doxygen.Project +QHP_VIRTUAL_FOLDER = doc +QHG_LOCATION = +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NONE +TREEVIEW_WIDTH = 250 +FORMULA_FONTSIZE = 10 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = YES +USE_PDFLATEX = YES +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +MSCGEN_PATH = /Extra/Doxygen.app/Contents/Resources/ +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +DOT_FONTNAME = FreeSans +DOT_FONTSIZE = 10 +DOT_FONTPATH = +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +CALLER_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = /usr/local/bin +DOTFILE_DIRS = +DOT_GRAPH_MAX_NODES = 50 +MAX_DOT_GRAPH_DEPTH = 1000 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/English.lproj/InfoPlist.strings and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/English.lproj/InfoPlist.strings differ diff -Nru libircclient-1.3+dfsg1/cocoa/Info.plist libircclient-1.8/cocoa/Info.plist --- libircclient-1.3+dfsg1/cocoa/Info.plist 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/Info.plist 2009-01-10 08:08:07.470006000 +0000 @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + net.stupendous.${PRODUCT_NAME:identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSPrincipalClass + + + diff -Nru libircclient-1.3+dfsg1/cocoa/IRCClient_Prefix.pch libircclient-1.8/cocoa/IRCClient_Prefix.pch --- libircclient-1.3+dfsg1/cocoa/IRCClient_Prefix.pch 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/IRCClient_Prefix.pch 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,7 @@ +// +// Prefix header for all source files of the 'IRCClient' target in the 'IRCClient' project. +// + +#ifdef __OBJC__ + #import +#endif diff -Nru libircclient-1.3+dfsg1/cocoa/IRCClient.xcodeproj/project.pbxproj libircclient-1.8/cocoa/IRCClient.xcodeproj/project.pbxproj --- libircclient-1.3+dfsg1/cocoa/IRCClient.xcodeproj/project.pbxproj 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/IRCClient.xcodeproj/project.pbxproj 2009-01-19 02:16:01.668394000 +0000 @@ -0,0 +1,408 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 693CA3360F188B3400BF8670 /* libircclient.c in Sources */ = {isa = PBXBuildFile; fileRef = 693CA3350F188B3400BF8670 /* libircclient.c */; }; + 694762D30F10AAAE002C0318 /* DDInvocationGrabber.h in Headers */ = {isa = PBXBuildFile; fileRef = 694762CB0F10AAAE002C0318 /* DDInvocationGrabber.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 694762D40F10AAAE002C0318 /* DDInvocationGrabber.m in Sources */ = {isa = PBXBuildFile; fileRef = 694762CC0F10AAAE002C0318 /* DDInvocationGrabber.m */; }; + 694762D50F10AAAE002C0318 /* NSObject+DDExtensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 694762CD0F10AAAE002C0318 /* NSObject+DDExtensions.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 694762D60F10AAAE002C0318 /* NSObject+DDExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 694762CE0F10AAAE002C0318 /* NSObject+DDExtensions.m */; }; + 694762D70F10AAAE002C0318 /* IRCClientChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = 694762CF0F10AAAE002C0318 /* IRCClientChannel.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 694762D80F10AAAE002C0318 /* IRCClientChannel.m in Sources */ = {isa = PBXBuildFile; fileRef = 694762D00F10AAAE002C0318 /* IRCClientChannel.m */; }; + 694762D90F10AAAE002C0318 /* IRCClientSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 694762D10F10AAAE002C0318 /* IRCClientSession.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 694762DA0F10AAAE002C0318 /* IRCClientSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 694762D20F10AAAE002C0318 /* IRCClientSession.m */; }; + 6947631E0F10AE32002C0318 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 6947631D0F10AE32002C0318 /* LICENSE */; }; + 694763200F10AE46002C0318 /* README in Resources */ = {isa = PBXBuildFile; fileRef = 6947631F0F10AE46002C0318 /* README */; }; + 6989EABC0F1861FB0083030A /* IRCClientChannelDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 6989EABA0F1861FB0083030A /* IRCClientChannelDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6989EAC00F1862090083030A /* IRCClientSessionDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 6989EABE0F1862090083030A /* IRCClientSessionDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 6989EADD0F18810C0083030A /* Doxyfile in Resources */ = {isa = PBXBuildFile; fileRef = 6989EADC0F18810C0083030A /* Doxyfile */; }; + 69B1CAAC0F1F2F1B00EF6DE2 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA10F1F2F1B00EF6DE2 /* config.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAAD0F1F2F1B00EF6DE2 /* libirc_dcc.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA20F1F2F1B00EF6DE2 /* libirc_dcc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAAE0F1F2F1B00EF6DE2 /* libirc_doc.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA30F1F2F1B00EF6DE2 /* libirc_doc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAAF0F1F2F1B00EF6DE2 /* libirc_doc_faq.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA40F1F2F1B00EF6DE2 /* libirc_doc_faq.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB00F1F2F1B00EF6DE2 /* libirc_errors.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA50F1F2F1B00EF6DE2 /* libirc_errors.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB10F1F2F1B00EF6DE2 /* libirc_events.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA60F1F2F1B00EF6DE2 /* libirc_events.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB20F1F2F1B00EF6DE2 /* libirc_options.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA70F1F2F1B00EF6DE2 /* libirc_options.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB30F1F2F1B00EF6DE2 /* libirc_params.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA80F1F2F1B00EF6DE2 /* libirc_params.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB40F1F2F1B00EF6DE2 /* libirc_rfcnumeric.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAA90F1F2F1B00EF6DE2 /* libirc_rfcnumeric.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB50F1F2F1B00EF6DE2 /* libirc_session.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAAA0F1F2F1B00EF6DE2 /* libirc_session.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 69B1CAB60F1F2F1B00EF6DE2 /* libircclient.h in Headers */ = {isa = PBXBuildFile; fileRef = 69B1CAAB0F1F2F1B00EF6DE2 /* libircclient.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; }; + 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; + 0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; + 089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; + 32DBCF5E0370ADEE00C91783 /* IRCClient_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRCClient_Prefix.pch; sourceTree = ""; }; + 693CA3350F188B3400BF8670 /* libircclient.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = libircclient.c; path = ../src/libircclient.c; sourceTree = SOURCE_ROOT; }; + 694762CB0F10AAAE002C0318 /* DDInvocationGrabber.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DDInvocationGrabber.h; sourceTree = ""; }; + 694762CC0F10AAAE002C0318 /* DDInvocationGrabber.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DDInvocationGrabber.m; sourceTree = ""; }; + 694762CD0F10AAAE002C0318 /* NSObject+DDExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+DDExtensions.h"; sourceTree = ""; }; + 694762CE0F10AAAE002C0318 /* NSObject+DDExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+DDExtensions.m"; sourceTree = ""; }; + 694762CF0F10AAAE002C0318 /* IRCClientChannel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRCClientChannel.h; sourceTree = ""; }; + 694762D00F10AAAE002C0318 /* IRCClientChannel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IRCClientChannel.m; sourceTree = ""; }; + 694762D10F10AAAE002C0318 /* IRCClientSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRCClientSession.h; sourceTree = ""; }; + 694762D20F10AAAE002C0318 /* IRCClientSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IRCClientSession.m; sourceTree = ""; }; + 6947631D0F10AE32002C0318 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; + 6947631F0F10AE46002C0318 /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = ""; }; + 6989EABA0F1861FB0083030A /* IRCClientChannelDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRCClientChannelDelegate.h; sourceTree = ""; }; + 6989EABE0F1862090083030A /* IRCClientSessionDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRCClientSessionDelegate.h; sourceTree = ""; }; + 6989EADC0F18810C0083030A /* Doxyfile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Doxyfile; sourceTree = SOURCE_ROOT; }; + 69B1CAA10F1F2F1B00EF6DE2 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = config.h; path = ../include/config.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA20F1F2F1B00EF6DE2 /* libirc_dcc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_dcc.h; path = ../include/libirc_dcc.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA30F1F2F1B00EF6DE2 /* libirc_doc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_doc.h; path = ../include/libirc_doc.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA40F1F2F1B00EF6DE2 /* libirc_doc_faq.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_doc_faq.h; path = ../include/libirc_doc_faq.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA50F1F2F1B00EF6DE2 /* libirc_errors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_errors.h; path = ../include/libirc_errors.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA60F1F2F1B00EF6DE2 /* libirc_events.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_events.h; path = ../include/libirc_events.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA70F1F2F1B00EF6DE2 /* libirc_options.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_options.h; path = ../include/libirc_options.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA80F1F2F1B00EF6DE2 /* libirc_params.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_params.h; path = ../include/libirc_params.h; sourceTree = SOURCE_ROOT; }; + 69B1CAA90F1F2F1B00EF6DE2 /* libirc_rfcnumeric.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_rfcnumeric.h; path = ../include/libirc_rfcnumeric.h; sourceTree = SOURCE_ROOT; }; + 69B1CAAA0F1F2F1B00EF6DE2 /* libirc_session.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libirc_session.h; path = ../include/libirc_session.h; sourceTree = SOURCE_ROOT; }; + 69B1CAAB0F1F2F1B00EF6DE2 /* libircclient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = libircclient.h; path = ../include/libircclient.h; sourceTree = SOURCE_ROOT; }; + 8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8DC2EF5B0486A6940098B216 /* IRCClient.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = IRCClient.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + D2F7E79907B2D74100F64583 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8DC2EF560486A6940098B216 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DC2EF570486A6940098B216 /* Cocoa.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 034768DFFF38A50411DB9C8B /* Products */ = { + isa = PBXGroup; + children = ( + 8DC2EF5B0486A6940098B216 /* IRCClient.framework */, + ); + name = Products; + sourceTree = ""; + }; + 0867D691FE84028FC02AAC07 /* IRCClient */ = { + isa = PBXGroup; + children = ( + 6947632B0F10AFD3002C0318 /* doc */, + 6947631F0F10AE46002C0318 /* README */, + 6947631D0F10AE32002C0318 /* LICENSE */, + 6989EADC0F18810C0083030A /* Doxyfile */, + 08FB77AEFE84172EC02AAC07 /* Classes */, + 32C88DFF0371C24200C91783 /* Other Sources */, + 089C1665FE841158C02AAC07 /* Resources */, + 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */, + 034768DFFF38A50411DB9C8B /* Products */, + ); + name = IRCClient; + sourceTree = ""; + }; + 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */ = { + isa = PBXGroup; + children = ( + 1058C7B0FEA5585E11CA2CBB /* Linked Frameworks */, + 1058C7B2FEA5585E11CA2CBB /* Other Frameworks */, + ); + name = "External Frameworks and Libraries"; + sourceTree = ""; + }; + 089C1665FE841158C02AAC07 /* Resources */ = { + isa = PBXGroup; + children = ( + 8DC2EF5A0486A6940098B216 /* Info.plist */, + 089C1666FE841158C02AAC07 /* InfoPlist.strings */, + ); + name = Resources; + sourceTree = ""; + }; + 08FB77AEFE84172EC02AAC07 /* Classes */ = { + isa = PBXGroup; + children = ( + 694762CB0F10AAAE002C0318 /* DDInvocationGrabber.h */, + 694762CC0F10AAAE002C0318 /* DDInvocationGrabber.m */, + 694762CD0F10AAAE002C0318 /* NSObject+DDExtensions.h */, + 694762CE0F10AAAE002C0318 /* NSObject+DDExtensions.m */, + 6989EABA0F1861FB0083030A /* IRCClientChannelDelegate.h */, + 694762CF0F10AAAE002C0318 /* IRCClientChannel.h */, + 694762D00F10AAAE002C0318 /* IRCClientChannel.m */, + 6989EABE0F1862090083030A /* IRCClientSessionDelegate.h */, + 694762D10F10AAAE002C0318 /* IRCClientSession.h */, + 694762D20F10AAAE002C0318 /* IRCClientSession.m */, + ); + path = Classes; + sourceTree = ""; + }; + 1058C7B0FEA5585E11CA2CBB /* Linked Frameworks */ = { + isa = PBXGroup; + children = ( + 1058C7B1FEA5585E11CA2CBB /* Cocoa.framework */, + ); + name = "Linked Frameworks"; + sourceTree = ""; + }; + 1058C7B2FEA5585E11CA2CBB /* Other Frameworks */ = { + isa = PBXGroup; + children = ( + 0867D6A5FE840307C02AAC07 /* AppKit.framework */, + D2F7E79907B2D74100F64583 /* CoreData.framework */, + 0867D69BFE84028FC02AAC07 /* Foundation.framework */, + ); + name = "Other Frameworks"; + sourceTree = ""; + }; + 32C88DFF0371C24200C91783 /* Other Sources */ = { + isa = PBXGroup; + children = ( + 69B1CAA10F1F2F1B00EF6DE2 /* config.h */, + 69B1CAA20F1F2F1B00EF6DE2 /* libirc_dcc.h */, + 69B1CAA30F1F2F1B00EF6DE2 /* libirc_doc.h */, + 69B1CAA40F1F2F1B00EF6DE2 /* libirc_doc_faq.h */, + 69B1CAA50F1F2F1B00EF6DE2 /* libirc_errors.h */, + 69B1CAA60F1F2F1B00EF6DE2 /* libirc_events.h */, + 69B1CAA70F1F2F1B00EF6DE2 /* libirc_options.h */, + 69B1CAA80F1F2F1B00EF6DE2 /* libirc_params.h */, + 69B1CAA90F1F2F1B00EF6DE2 /* libirc_rfcnumeric.h */, + 69B1CAAA0F1F2F1B00EF6DE2 /* libirc_session.h */, + 69B1CAAB0F1F2F1B00EF6DE2 /* libircclient.h */, + 32DBCF5E0370ADEE00C91783 /* IRCClient_Prefix.pch */, + 693CA3350F188B3400BF8670 /* libircclient.c */, + ); + name = "Other Sources"; + sourceTree = ""; + }; + 6947632B0F10AFD3002C0318 /* doc */ = { + isa = PBXGroup; + children = ( + ); + path = doc; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 8DC2EF500486A6940098B216 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 694762D30F10AAAE002C0318 /* DDInvocationGrabber.h in Headers */, + 694762D50F10AAAE002C0318 /* NSObject+DDExtensions.h in Headers */, + 694762D70F10AAAE002C0318 /* IRCClientChannel.h in Headers */, + 694762D90F10AAAE002C0318 /* IRCClientSession.h in Headers */, + 6989EABC0F1861FB0083030A /* IRCClientChannelDelegate.h in Headers */, + 6989EAC00F1862090083030A /* IRCClientSessionDelegate.h in Headers */, + 69B1CAAC0F1F2F1B00EF6DE2 /* config.h in Headers */, + 69B1CAAD0F1F2F1B00EF6DE2 /* libirc_dcc.h in Headers */, + 69B1CAAE0F1F2F1B00EF6DE2 /* libirc_doc.h in Headers */, + 69B1CAAF0F1F2F1B00EF6DE2 /* libirc_doc_faq.h in Headers */, + 69B1CAB00F1F2F1B00EF6DE2 /* libirc_errors.h in Headers */, + 69B1CAB10F1F2F1B00EF6DE2 /* libirc_events.h in Headers */, + 69B1CAB20F1F2F1B00EF6DE2 /* libirc_options.h in Headers */, + 69B1CAB30F1F2F1B00EF6DE2 /* libirc_params.h in Headers */, + 69B1CAB40F1F2F1B00EF6DE2 /* libirc_rfcnumeric.h in Headers */, + 69B1CAB50F1F2F1B00EF6DE2 /* libirc_session.h in Headers */, + 69B1CAB60F1F2F1B00EF6DE2 /* libircclient.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 8DC2EF4F0486A6940098B216 /* IRCClient */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "IRCClient" */; + buildPhases = ( + 8DC2EF500486A6940098B216 /* Headers */, + 8DC2EF520486A6940098B216 /* Resources */, + 8DC2EF540486A6940098B216 /* Sources */, + 8DC2EF560486A6940098B216 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = IRCClient; + productInstallPath = "$(HOME)/Library/Frameworks"; + productName = IRCClient; + productReference = 8DC2EF5B0486A6940098B216 /* IRCClient.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0867D690FE84028FC02AAC07 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "IRCClient" */; + compatibilityVersion = "Xcode 3.1"; + hasScannedForEncodings = 1; + mainGroup = 0867D691FE84028FC02AAC07 /* IRCClient */; + productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8DC2EF4F0486A6940098B216 /* IRCClient */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8DC2EF520486A6940098B216 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DC2EF530486A6940098B216 /* InfoPlist.strings in Resources */, + 6947631E0F10AE32002C0318 /* LICENSE in Resources */, + 694763200F10AE46002C0318 /* README in Resources */, + 6989EADD0F18810C0083030A /* Doxyfile in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8DC2EF540486A6940098B216 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 694762D40F10AAAE002C0318 /* DDInvocationGrabber.m in Sources */, + 694762D60F10AAAE002C0318 /* NSObject+DDExtensions.m in Sources */, + 694762D80F10AAAE002C0318 /* IRCClientChannel.m in Sources */, + 694762DA0F10AAAE002C0318 /* IRCClientSession.m in Sources */, + 693CA3360F188B3400BF8670 /* libircclient.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 089C1666FE841158C02AAC07 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C1667FE841158C02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 1DEB91AE08733DA50010E9CD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = NO; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + FRAMEWORK_VERSION = A; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = IRCClient_Prefix.pch; + HEADER_SEARCH_PATHS = ( + ../src, + ../include, + ); + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Library/Frameworks"; + LD_DYLIB_INSTALL_NAME = "@executable_path/../Frameworks/$(EXECUTABLE_PATH)"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ../libircclient/trunk/src, + "\"$(SRCROOT)/../src\"", + ); + PRODUCT_NAME = IRCClient; + WRAPPER_EXTENSION = framework; + }; + name = Debug; + }; + 1DEB91AF08733DA50010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + FRAMEWORK_VERSION = A; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = IRCClient_Prefix.pch; + HEADER_SEARCH_PATHS = ( + ../src, + ../include, + ); + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(HOME)/Library/Frameworks"; + LD_DYLIB_INSTALL_NAME = "../Frameworks/$(EXECUTABLE_PATH)"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + ../libircclient/trunk/src, + "\"$(SRCROOT)/../src\"", + ); + PRODUCT_NAME = IRCClient; + WRAPPER_EXTENSION = framework; + }; + name = Release; + }; + 1DEB91B208733DA50010E9CD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + ONLY_ACTIVE_ARCH = YES; + PREBINDING = NO; + SDKROOT = macosx10.5; + }; + name = Debug; + }; + 1DEB91B308733DA50010E9CD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + PREBINDING = NO; + SDKROOT = macosx10.5; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "IRCClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91AE08733DA50010E9CD /* Debug */, + 1DEB91AF08733DA50010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "IRCClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB91B208733DA50010E9CD /* Debug */, + 1DEB91B308733DA50010E9CD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 0867D690FE84028FC02AAC07 /* Project object */; +} Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/cocoa/IRCClient.xcodeproj/TemplateIcon.icns and /tmp/KWj2gbk6pU/libircclient-1.8/cocoa/IRCClient.xcodeproj/TemplateIcon.icns differ diff -Nru libircclient-1.3+dfsg1/cocoa/LICENSE libircclient-1.8/cocoa/LICENSE --- libircclient-1.3+dfsg1/cocoa/LICENSE 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/LICENSE 2009-01-10 07:31:04.408484000 +0000 @@ -0,0 +1,482 @@ + GNU LIBRARY GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1991 Free Software Foundation, Inc. + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is + numbered 2 because it goes with version 2 of the ordinary GPL.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Library General Public License, applies to some +specially designated Free Software Foundation software, and to any +other libraries whose authors decide to use it. You can use it for +your libraries, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if +you distribute copies of the library, or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link a program with the library, you must provide +complete object files to the recipients so that they can relink them +with the library, after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + Our method of protecting your rights has two steps: (1) copyright +the library, and (2) offer you this license which gives you legal +permission to copy, distribute and/or modify the library. + + Also, for each distributor's protection, we want to make certain +that everyone understands that there is no warranty for this free +library. If the library is modified by someone else and passed on, we +want its recipients to know that what they have is not the original +version, so that any problems introduced by others will not reflect on +the original authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that companies distributing free +software will individually obtain patent licenses, thus in effect +transforming the program into proprietary software. To prevent this, +we have made it clear that any patent must be licensed for everyone's +free use or not licensed at all. + + Most GNU software, including some libraries, is covered by the ordinary +GNU General Public License, which was designed for utility programs. This +license, the GNU Library General Public License, applies to certain +designated libraries. This license is quite different from the ordinary +one; be sure to read it in full, and don't assume that anything in it is +the same as in the ordinary license. + + The reason we have a separate public license for some libraries is that +they blur the distinction we usually make between modifying or adding to a +program and simply using it. Linking a program with a library, without +changing the library, is in some sense simply using the library, and is +analogous to running a utility program or application program. However, in +a textual and legal sense, the linked executable is a combined work, a +derivative of the original library, and the ordinary General Public License +treats it as such. + + Because of this blurred distinction, using the ordinary General +Public License for libraries did not effectively promote software +sharing, because most developers did not use the libraries. We +concluded that weaker conditions might promote sharing better. + + However, unrestricted linking of non-free programs would deprive the +users of those programs of all benefit from the free status of the +libraries themselves. This Library General Public License is intended to +permit developers of non-free programs to use free libraries, while +preserving your freedom as a user of such programs to change the free +libraries that are incorporated in them. (We have not seen how to achieve +this as regards changes in header files, but we have achieved it as regards +changes in the actual functions of the Library.) The hope is that this +will lead to faster development of free libraries. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, while the latter only +works together with the library. + + Note that it is possible for a library to be covered by the ordinary +General Public License rather than by this special one. + + GNU LIBRARY GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library which +contains a notice placed by the copyright holder or other authorized +party saying it may be distributed under the terms of this Library +General Public License (also called "this License"). Each licensee is +addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also compile or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + c) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + d) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the source code distributed need not include anything that is normally +distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Library General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + MA 02111-1307, USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff -Nru libircclient-1.3+dfsg1/cocoa/README libircclient-1.8/cocoa/README --- libircclient-1.3+dfsg1/cocoa/README 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/cocoa/README 2009-01-10 07:59:50.999433000 +0000 @@ -0,0 +1,21 @@ +IRCClient.framework 1.0 by Nathan Ollerenshaw (chrome@stupendous.net) + +This is a Cocoa framework wrapper around Georgy Yunaev's (gyunaev@ulduzsoft.com) +excellent libircclient library. + +While Georgy's library is portable, obviously this Cocoa framework is specific +to Mac OS X systems. Though you might be able to get it working under +cocotron or GNUstep, those implementations of Cocoa are not supported. + +To build the framework, you will need to configure libircclient library first. +From the Terminal, run the following command in the distribution directory: + + ./configure --enable-thread --enable-ipv6 + +The Xcode project is configured to include the libircclient.c source. + +The framework is configured to build with a relative path of ../Frameworks/ so +it can be easily embedded in your application. + +For documentation, examine the header files or read the Doxygen documentations +in 'doc'. diff -Nru libircclient-1.3+dfsg1/configure libircclient-1.8/configure --- libircclient-1.3+dfsg1/configure 2009-01-03 11:14:32.000000000 +0000 +++ libircclient-1.8/configure 2012-01-22 00:46:50.517601000 +0000 @@ -1,20 +1,24 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for libircclient 1.3. +# Generated by GNU Autoconf 2.68 for libircclient 1.3. # # Report bugs to . # +# # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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. ## -## --------------------- ## +## -------------------- ## +## 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 +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 @@ -22,23 +26,15 @@ alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# 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_nl=' ' export as_nl @@ -46,7 +42,13 @@ 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 -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# 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 @@ -57,7 +59,7 @@ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -80,13 +82,6 @@ } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -96,15 +91,16 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +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 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -116,12 +112,16 @@ fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# 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='> ' @@ -133,330 +133,307 @@ LANGUAGE=C export LANGUAGE -# Required to use basename. -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 - - -# Name of the executable. -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'` - # CDPATH. -$as_unset CDPATH - +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then - if (eval ":") 2>/dev/null; then - as_have_required=yes + 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 - as_have_required=no + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac fi - - if test $as_have_required = yes && (eval ": -(as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +" + 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 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. -fi - -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +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" + 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 - exitcode=1 - echo positional parameters were not saved. + as_have_required=no fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : -test \$exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=\$LINENO - as_lineno_2=\$LINENO - test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && - test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } -") 2> /dev/null; then - : else - as_candidate_shells= - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + 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=. - case $as_dir in + as_found=: + case $as_dir in #( /*) for as_base in sh bash ksh sh5; do - as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + # 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 - for as_shell in $as_candidate_shells $SHELL; do - # Try only shells that exist, to save several forks. - if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { ("$as_shell") 2> /dev/null <<\_ASEOF -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 - - -: -_ASEOF -}; then - CONFIG_SHELL=$as_shell - as_have_required=yes - if { "$as_shell" 2> /dev/null <<\_ASEOF -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_func_return () { - (exit $1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} - -exitcode=0 -if as_func_success; then - : -else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. -fi - -if as_func_ret_success; then - : -else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. + if test "x$CONFIG_SHELL" != x; then : + # 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 + export CONFIG_SHELL + 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+"$@"} fi -if ( set x; as_func_ret_success y && test x = "$1" ); then - : -else - exitcode=1 - echo positional parameters were not saved. + 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 and +$0: gyunaev@ulduzsoft.com about your system, including any +$0: error possibly output before this message. Then install +$0: a modern shell, or manually run the script under such a +$0: shell if you do have one." + fi + exit 1 fi - -test $exitcode = 0) || { (exit 1); exit 1; } - -( - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } - -_ASEOF -}; then - break 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 - done - - if test "x$CONFIG_SHELL" != x; then - for as_var in BASH_ENV ENV - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var - done - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} -fi +## --------------------- ## +## 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 - if test $as_have_required = no; then - echo This script requires a shell more modern than all the - echo shells that I found on your system. Please install a - echo modern shell, or manually run the script under such a - echo shell if you do have one. - { (exit 1); exit 1; } -fi +# 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" -fi -fi +} # as_fn_mkdir_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 -(eval "as_func_return () { - (exit \$1) -} -as_func_success () { - as_func_return 0 -} -as_func_failure () { - as_func_return 1 -} -as_func_ret_success () { - return 0 -} -as_func_ret_failure () { - return 1 -} +# 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 -exitcode=0 -if as_func_success; then - : +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr else - exitcode=1 - echo as_func_success failed. -fi - -if as_func_failure; then - exitcode=1 - echo as_func_failure succeeded. + as_expr=false fi -if as_func_ret_success; then - : +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename else - exitcode=1 - echo as_func_ret_success failed. -fi - -if as_func_ret_failure; then - exitcode=1 - echo as_func_ret_failure succeeded. + as_basename=false fi -if ( set x; as_func_ret_success y && test x = \"\$1\" ); then - : +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname else - exitcode=1 - echo positional parameters were not saved. + as_dirname=false fi -test \$exitcode = 0") || { - echo No shell found that supports shell functions. - echo Please tell bug-autoconf@gnu.org about your system, - echo including any error possibly output before this message. - echo This can help us improve future autoconf versions. - echo Configuration will now proceed without shell functions. -} +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_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. Blame Lee - # E. McMahon (1931-1989) for sed's syntax. :-) + 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/= @@ -473,8 +450,7 @@ 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 - { (exit 1); exit 1; }; } + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # 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 @@ -484,29 +460,18 @@ exit } - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi - ECHO_C= ECHO_N= ECHO_T= -case `echo -n x` in +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then @@ -536,7 +501,7 @@ rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then - as_mkdir_p=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -555,10 +520,10 @@ if test -d "$1"; then test -d "$1/."; else - case $1 in + case $1 in #( -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -572,11 +537,11 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - -exec 7<&0 &1 +test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# 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` @@ -591,7 +556,6 @@ subdirs= MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='libircclient' @@ -599,6 +563,7 @@ PACKAGE_VERSION='1.3' PACKAGE_STRING='libircclient 1.3' PACKAGE_BUGREPORT='gyunaev@ulduzsoft.com' +PACKAGE_URL='' ac_unique_file="include/libircclient.h" # Factoring default headers for most tests. @@ -639,6 +604,7 @@ ac_subst_vars='LTLIBOBJS PREFIX +TARGET LIBOBJS EGREP GREP @@ -685,6 +651,7 @@ program_transform_name prefix exec_prefix +PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION @@ -696,8 +663,10 @@ ac_user_opts=' enable_option_checking enable_debug -enable_thread +enable_shared +enable_threads enable_ipv6 +enable_openssl ' ac_precious_vars='build_alias host_alias @@ -773,8 +742,9 @@ fi case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. @@ -819,8 +789,7 @@ 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_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + 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 @@ -846,8 +815,7 @@ 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_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + 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 @@ -1051,8 +1019,7 @@ 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_echo "$as_me: error: invalid package name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + 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 @@ -1068,8 +1035,7 @@ 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_echo "$as_me: error: invalid package name: $ac_useropt" >&2 - { (exit 1); exit 1; }; } + 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 @@ -1099,17 +1065,17 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { $as_echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } + -*) 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. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } + 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 ;; @@ -1118,7 +1084,7 @@ $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} + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -1126,15 +1092,13 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { $as_echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; - fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 - { (exit 1); exit 1; }; } ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1157,8 +1121,7 @@ [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; } + 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' @@ -1172,8 +1135,8 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -1188,11 +1151,9 @@ ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - { $as_echo "$as_me: error: working directory cannot be determined" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 - { (exit 1); exit 1; }; } + as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. @@ -1231,13 +1192,11 @@ fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } + 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_echo "$as_me: error: $ac_msg" >&2 - { (exit 1); exit 1; }; } + 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 @@ -1277,7 +1236,7 @@ --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 + -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 @@ -1333,8 +1292,10 @@ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug compile with debug information (no) + --enable-shared build a shared library (no) --enable-threads compile with multithread support (yes) --enable-ipv6 compile with IPv6 support (no) + --enable-openssl compile with OpenSSL support (no) Some influential environment variables: CXX C++ compiler command @@ -1342,7 +1303,7 @@ 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 C/C++/Objective C preprocessor flags, e.g. -I if + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags @@ -1415,21 +1376,468 @@ if $ac_init_version; then cat <<\_ACEOF libircclient configure 1.3 -generated by GNU Autoconf 2.63 +generated by GNU Autoconf 2.68 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_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_cxx_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_cxx_try_compile + +# 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_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_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_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_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;} +( $as_echo "## ------------------------------------ ## +## Report this to gyunaev@ulduzsoft.com ## +## ------------------------------------ ##" + ) | sed "s/^/$as_me: WARNING: /" >&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_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 || + $as_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_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 cat >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 libircclient $as_me 1.3, which was -generated by GNU Autoconf 2.63. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -1465,8 +1873,8 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" -done + $as_echo "PATH: $as_dir" + done IFS=$as_save_IFS } >&5 @@ -1503,9 +1911,9 @@ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" + 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 @@ -1521,13 +1929,13 @@ -* ) ac_must_keep_next=true ;; esac fi - ac_configure_args="$ac_configure_args '$ac_arg'" + as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } +{ 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 @@ -1539,11 +1947,9 @@ { echo - cat <<\_ASBOX -## ---------------- ## + $as_echo "## ---------------- ## ## Cache variables. ## -## ---------------- ## -_ASBOX +## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( @@ -1552,13 +1958,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 + *_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= ;; #( - *) $as_unset $ac_var ;; + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -1577,11 +1983,9 @@ ) echo - cat <<\_ASBOX -## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## -## ----------------- ## -_ASBOX +## ----------------- ##" echo for ac_var in $ac_subst_vars do @@ -1594,11 +1998,9 @@ echo if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## + $as_echo "## ------------------- ## ## File substitutions. ## -## ------------------- ## -_ASBOX +## ------------------- ##" echo for ac_var in $ac_subst_files do @@ -1612,11 +2014,9 @@ fi if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## + $as_echo "## ----------- ## ## confdefs.h. ## -## ----------- ## -_ASBOX +## ----------- ##" echo cat confdefs.h echo @@ -1630,46 +2030,53 @@ exit $exit_status ' 0 for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal + 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 - ac_site_file1=$CONFIG_SITE + # 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 @@ -1680,19 +2087,23 @@ for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue - if test -r "$ac_site_file"; then - { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 + 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" + . "$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. - if test -f "$cache_file"; then - { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 + # 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";; @@ -1700,7 +2111,7 @@ esac fi else - { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi @@ -1715,11 +2126,11 @@ eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 + { $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:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 + { $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=: ;; ,);; @@ -1729,17 +2140,17 @@ 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:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 + { $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:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 + { $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:$LINENO: former value: \`$ac_old_val'" >&5 + { $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:$LINENO: current value: \`$ac_new_val'" >&5 + { $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 @@ -1751,77 +2162,70 @@ esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then - { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + { $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:$LINENO: error: changes in the environment can compromise the build" >&5 + { $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_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } + 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 src/config.h" +# Check for command-line +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; use_debug=$enableval +else + use_debug=no +fi +# Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; build_shared=$enableval +else + build_shared=no +fi +# Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; use_threads=$enableval +else + use_threads=yes +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_config_headers="$ac_config_headers include/config.h" - - -# Check for command-line -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then - enableval=$enable_debug; use_debug=$enableval -else - use_debug=no -fi - - -# Check whether --enable-thread was given. -if test "${enable_thread+set}" = set; then - enableval=$enable_thread; use_threads=$enableval +# Check whether --enable-ipv6 was given. +if test "${enable_ipv6+set}" = set; then : + enableval=$enable_ipv6; use_ipv6=$enableval else - use_threads=yes + use_ipv6=no fi -# Check whether --enable-ipv6 was given. -if test "${enable_ipv6+set}" = set; then - enableval=$enable_ipv6; use_ipv6=$enableval +# Check whether --enable-openssl was given. +if test "${enable_openssl+set}" = set; then : + enableval=$enable_openssl; use_openssl=$enableval else - use_ipv6=no + use_openssl=no fi @@ -1840,9 +2244,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then +if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then @@ -1853,24 +2257,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:$LINENO: result: $CXX" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -1884,9 +2288,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then +if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then @@ -1897,24 +2301,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -1927,7 +2331,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $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 @@ -1938,48 +2342,31 @@ fi fi # Provide some information about the compiler. -$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" +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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -V >&5") 2>&5 +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=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -1995,8 +2382,8 @@ # 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:$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}: 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: @@ -2012,17 +2399,17 @@ done rm -f $ac_rmfiles -if { (ac_try="$ac_link_default" +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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +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:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $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, @@ -2039,7 +2426,7 @@ # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -2058,84 +2445,41 @@ else ac_file='' fi - -{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } -if test -z "$ac_file"; then - $as_echo "$as_me: failed program was:" >&5 +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:$LINENO: error: in \`$ac_pwd':" >&5 +{ { $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:$LINENO: error: C++ compiler cannot create executables -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C++ compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; }; } +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 -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 -$as_echo_n "checking whether the C++ compiler works... " >&6; } -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot run C++ compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } - fi - fi -fi -{ $as_echo "$as_me:$LINENO: result: yes" >&5 -$as_echo "yes" >&6; } - rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -# Check that the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } -{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } - -{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 +{ $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" +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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +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:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $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 @@ -2150,32 +2494,83 @@ esac done else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + { { $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:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } fi - -rm -f conftest$ac_cv_exeext -{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +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 -{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 +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 test "${ac_cv_objext+set}" = set; then +if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2187,17 +2582,17 @@ } _ACEOF rm -f conftest.o conftest.obj -if { (ac_try="$ac_compile" +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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 +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:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then + $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 @@ -2210,31 +2605,23 @@ $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +{ { $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:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +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:$LINENO: result: $ac_cv_objext" >&5 +{ $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:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +{ $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 test "${ac_cv_cxx_compiler_gnu+set}" = set; then +if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2248,37 +2635,16 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + ac_compiler_gnu=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes @@ -2287,20 +2653,16 @@ fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then +if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2311,35 +2673,11 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CXXFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2350,36 +2688,12 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2390,42 +2704,17 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - 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_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS @@ -2456,9 +2745,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2469,24 +2758,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2496,9 +2785,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -2509,24 +2798,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -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:$LINENO: result: $ac_ct_CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2535,7 +2824,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $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 @@ -2549,9 +2838,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2562,24 +2851,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2589,9 +2878,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2603,18 +2892,18 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then @@ -2633,10 +2922,10 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2648,9 +2937,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -2661,24 +2950,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:$LINENO: result: $CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2692,9 +2981,9 @@ 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -2705,24 +2994,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -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:$LINENO: result: $ac_ct_CC" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -2735,7 +3024,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $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 @@ -2746,62 +3035,42 @@ fi -test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +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_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +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:$LINENO: checking for C compiler version" >&5 +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -{ (ac_try="$ac_compiler --version >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler --version >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -v >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -v >&5") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (ac_try="$ac_compiler -V >&5" +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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compiler -V >&5") 2>&5 +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=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $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:$LINENO: checking whether we are using the GNU C compiler" >&5 +{ $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 test "${ac_cv_c_compiler_gnu+set}" = set; then +if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2815,37 +3084,16 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_compiler_gnu=no + 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:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +{ $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 @@ -2854,20 +3102,16 @@ fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then +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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2878,35 +3122,11 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - CFLAGS="" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2917,36 +3137,12 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_compile "$LINENO"; then : - ac_c_werror_flag=$ac_save_c_werror_flag +else + ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -2957,42 +3153,17 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - 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:$LINENO: result: $ac_cv_prog_cc_g" >&5 +{ $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 @@ -3009,18 +3180,14 @@ CFLAGS= fi fi -{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 +{ $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 test "${ac_cv_prog_cc_c89+set}" = set; then +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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -3077,32 +3244,9 @@ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then + if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done @@ -3113,17 +3257,19 @@ # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) - { $as_echo "$as_me:$LINENO: result: none needed" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) - { $as_echo "$as_me:$LINENO: result: unsupported" >&5 + { $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:$LINENO: result: $ac_cv_prog_cc_c89" >&5 + { $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' @@ -3134,9 +3280,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AR+set}" = set; then +if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then @@ -3147,24 +3293,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:$LINENO: result: $AR" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3174,9 +3320,9 @@ ac_ct_AR=$AR # 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:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then +if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then @@ -3187,24 +3333,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3213,7 +3359,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $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 @@ -3226,9 +3372,9 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then +if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then @@ -3239,24 +3385,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3266,9 +3412,9 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then @@ -3279,24 +3425,24 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do + for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done -done + done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:$LINENO: result: no" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi @@ -3305,7 +3451,7 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +{ $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 @@ -3323,14 +3469,14 @@ 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:$LINENO: checking how to run the C preprocessor" >&5 +{ $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 test "${ac_cv_prog_CPP+set}" = set; then + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded @@ -3345,11 +3491,7 @@ # 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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include @@ -3358,78 +3500,34 @@ #endif Syntax error _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_cpp "$LINENO"; then : +else # Broken: fails on valid input. continue fi - -rm -f conftest.err conftest.$ac_ext +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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then +if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. ac_preproc_ok=: break fi - -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : break fi @@ -3441,7 +3539,7 @@ else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 +{ $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 @@ -3452,11 +3550,7 @@ # 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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include @@ -3465,87 +3559,40 @@ #endif Syntax error _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +if ac_fn_c_try_cpp "$LINENO"; then : +else # Broken: fails on valid input. continue fi - -rm -f conftest.err conftest.$ac_ext +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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then +if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - # Passes both tests. ac_preproc_ok=: break fi - -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + else - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 + { { $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:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; }; } +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -3555,9 +3602,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 +{ $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 test "${ac_cv_path_GREP+set}" = set; then +if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then @@ -3568,7 +3615,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + 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" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue @@ -3588,7 +3635,7 @@ $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 - ac_count=`expr $ac_count + 1` + 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" @@ -3603,26 +3650,24 @@ $ac_path_GREP_found && break 3 done done -done + done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } + 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:$LINENO: result: $ac_cv_path_GREP" >&5 +{ $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:$LINENO: checking for egrep" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then +if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 @@ -3636,7 +3681,7 @@ do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + 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" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue @@ -3656,7 +3701,7 @@ $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 - ac_count=`expr $ac_count + 1` + 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" @@ -3671,12 +3716,10 @@ $ac_path_EGREP_found && break 3 done done -done + done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then - { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 -$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} - { (exit 1); exit 1; }; } + 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 @@ -3684,21 +3727,17 @@ fi fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 +{ $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:$LINENO: checking for ANSI C header files" >&5 +{ $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 test "${ac_cv_header_stdc+set}" = set; then +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -3713,48 +3752,23 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdc=no + 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 >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + 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 - : + $EGREP "memchr" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -3764,18 +3778,14 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + 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 - : + $EGREP "free" >/dev/null 2>&1; then : + else ac_cv_header_stdc=no fi @@ -3785,14 +3795,10 @@ 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 + if test "$cross_compiling" = yes; then : : else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -3819,120 +3825,35 @@ return 0; } _ACEOF -rm -f 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -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 +if ac_fn_c_try_run "$LINENO"; then : -( exit $ac_status ) -ac_cv_header_stdc=no +else + ac_cv_header_stdc=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +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:$LINENO: result: $ac_cv_header_stdc" >&5 +{ $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 -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF +$as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # Checks for typedefs, structures, and compiler characteristics. # 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` -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - eval "$as_ac_Header=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_Header=no" -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +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 @@ -3942,16 +3863,12 @@ done -{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } -if test "${ac_cv_header_stdbool_h+set}" = set; then +if ${ac_cv_header_stdbool_h+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include @@ -3980,7 +3897,7 @@ char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; - bool e = &s; + /* See body of main program for 'e'. */ char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; @@ -3991,25 +3908,6 @@ _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; -# if defined __xlc__ || defined __GNUC__ - /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 - reported by James Lemley on 2005-10-05; see - http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html - This test is not quite right, since xlc is allowed to - reject this program, as the initializer for xlcbug is - not one of the forms that C requires support for. - However, doing the test right would require a runtime - test, and that would make cross-compilation harder. - Let us hope that IBM fixes the xlc bug, and also adds - support for this kind of constant expression. In the - meantime, this test will reject xlc, which is OK, since - our stdbool.h substitute should suffice. We also test - this with GCC, where it should work, to detect more - quickly whether someone messes up the test in the - future. */ - char digs[] = "0123456789"; - int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); -# endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html @@ -4021,6 +3919,7 @@ main () { + bool e = &s; *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ @@ -4031,131 +3930,17 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdbool_h=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_stdbool_h=no + ac_cv_header_stdbool_h=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 $as_echo "$ac_cv_header_stdbool_h" >&6; } -{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5 -$as_echo_n "checking for _Bool... " >&6; } -if test "${ac_cv_type__Bool+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type__Bool=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (_Bool)) - return 0; - ; - return 0; -} -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((_Bool))) - return 0; - ; - return 0; -} -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_type__Bool=yes -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 -$as_echo "$ac_cv_type__Bool" >&6; } -if test "x$ac_cv_type__Bool" = x""yes; then +ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 @@ -4166,22 +3951,16 @@ if test $ac_cv_header_stdbool_h = yes; then -cat >>confdefs.h <<\_ACEOF -#define HAVE_STDBOOL_H 1 -_ACEOF +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h fi -{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if test "${ac_cv_c_const+set}" = set; then +if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -4241,140 +4020,24 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_c_const=no + ac_cv_c_const=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then -cat >>confdefs.h <<\_ACEOF -#define const /**/ -_ACEOF - -fi - -{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 -$as_echo_n "checking for size_t... " >&6; } -if test "${ac_cv_type_size_t+set}" = set; then - $as_echo_n "(cached) " >&6 -else - ac_cv_type_size_t=no -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof (size_t)) - return 0; - ; - return 0; -} -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if (sizeof ((size_t))) - return 0; - ; - return 0; -} -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - : -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +$as_echo "#define const /**/" >>confdefs.h - ac_cv_type_size_t=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 -$as_echo "$ac_cv_type_size_t" >&6; } -if test "x$ac_cv_type_size_t" = x""yes; then - : else cat >>confdefs.h <<_ACEOF @@ -4383,16 +4046,12 @@ fi -{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } -if test "${ac_cv_header_time+set}" = set; then +if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include @@ -4407,210 +4066,44 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_header_time=no + ac_cv_header_time=no fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then -cat >>confdefs.h <<\_ACEOF -#define TIME_WITH_SYS_TIME 1 -_ACEOF +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi # Checks for library functions. - for ac_header in stdlib.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi - -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$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:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------------ ## -## Report this to gyunaev@ulduzsoft.com ## -## ------------------------------------ ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - -fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +do : + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_STDLIB_H 1 _ACEOF fi done -{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then +if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include @@ -4626,215 +4119,42 @@ return 0; } _ACEOF -rm -f 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes -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 - -( exit $ac_status ) -ac_cv_func_malloc_0_nonnull=no -fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - -fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 -$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } -if test $ac_cv_func_malloc_0_nonnull = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_MALLOC 1 -_ACEOF - -else - cat >>confdefs.h <<\_ACEOF -#define HAVE_MALLOC 0 -_ACEOF - - case " $LIBOBJS " in - *" malloc.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS malloc.$ac_objext" - ;; -esac - - -cat >>confdefs.h <<\_ACEOF -#define malloc rpl_malloc -_ACEOF - -fi - - - - - -for ac_header in sys/select.h sys/socket.h -do -as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -else - # Is the header compilable? -{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 -$as_echo_n "checking $ac_header usability... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then - ac_header_compiler=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_compiler=no -fi - -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -$as_echo "$ac_header_compiler" >&6; } - -# Is the header present? -{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 -$as_echo_n "checking $ac_header presence... " >&6; } -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then - ac_header_preproc=yes -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +else + ac_cv_func_malloc_0_nonnull=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi - ac_header_preproc=no fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +if test $ac_cv_func_malloc_0_nonnull = yes; then : -rm -f conftest.err conftest.$ac_ext -{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -$as_echo "$ac_header_preproc" >&6; } +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( cat <<\_ASBOX -## ------------------------------------ ## -## Report this to gyunaev@ulduzsoft.com ## -## ------------------------------------ ## -_ASBOX - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 -$as_echo_n "checking for $ac_header... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 else - eval "$as_ac_Header=\$ac_header_preproc" -fi -ac_res=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h + + case " $LIBOBJS " in + *" malloc.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS malloc.$ac_objext" + ;; +esac + + +$as_echo "#define malloc rpl_malloc" >>confdefs.h fi -as_val=`eval 'as_val=${'$as_ac_Header'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then + + +for ac_header in sys/select.h sys/socket.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 @@ -4843,19 +4163,15 @@ done -{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 $as_echo_n "checking types of arguments for select... " >&6; } -if test "${ac_cv_func_select_args+set}" = set; then +if ${ac_cv_func_select_args+:} false; then : $as_echo_n "(cached) " >&6 else for ac_arg234 in 'fd_set *' 'int *' 'void *'; do for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default #ifdef HAVE_SYS_SELECT_H @@ -4875,41 +4191,18 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_compile") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then +if ac_fn_c_try_compile "$LINENO"; then : ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - fi - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done done done # Provide a safe default value. -: ${ac_cv_func_select_args='int,int *,struct timeval *'} +: "${ac_cv_func_select_args=int,int *,struct timeval *}" fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 $as_echo "$ac_cv_func_select_args" >&6; } ac_save_IFS=$IFS; IFS=',' set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` @@ -4932,29 +4225,25 @@ rm -f conftest* -{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 -$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; } -if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.sym conftest.file echo >conftest.file if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : ac_cv_func_lstat_dereferences_slashed_symlink=no else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { struct stat sbuf; - /* Linux will dereference the symlink and fail. + /* Linux will dereference the symlink and fail, as required by POSIX. That is better in the sense that it means we will not have to compile and use the lstat wrapper. */ return lstat ("conftest.sym/", &sbuf) == 0; @@ -4962,42 +4251,15 @@ return 0; } _ACEOF -rm -f 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_lstat_dereferences_slashed_symlink=yes 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 - -( exit $ac_status ) -ac_cv_func_lstat_dereferences_slashed_symlink=no + ac_cv_func_lstat_dereferences_slashed_symlink=no fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - else # If the `ln -s' command failed, then we probably don't even # have an lstat function. @@ -5006,7 +4268,7 @@ rm -f conftest.sym conftest.file fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && @@ -5016,7 +4278,7 @@ _ACEOF -if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then +if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then case " $LIBOBJS " in *" lstat.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS lstat.$ac_objext" @@ -5025,19 +4287,15 @@ fi -{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 $as_echo_n "checking whether stat accepts an empty string... " >&6; } -if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then +if ${ac_cv_func_stat_empty_string_bug+:} false; then : $as_echo_n "(cached) " >&6 else - if test "$cross_compiling" = yes; then + if test "$cross_compiling" = yes; then : ac_cv_func_stat_empty_string_bug=yes else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int @@ -5049,44 +4307,17 @@ return 0; } _ACEOF -rm -f 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { 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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then +if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_stat_empty_string_bug=no 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 - -( exit $ac_status ) -ac_cv_func_stat_empty_string_bug=yes + ac_cv_func_stat_empty_string_bug=yes fi -rm -rf conftest.dSYM -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } if test $ac_cv_func_stat_empty_string_bug = yes; then case " $LIBOBJS " in @@ -5102,101 +4333,11 @@ fi - - for ac_func in localtime_r socket -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func - -/* 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 $ac_func (); -/* 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_$ac_func || defined __stub___$ac_func -choke me -#endif - -int -main () -{ -return $ac_func (); - ; - return 0; -} -_ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" -fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext -fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +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 @@ -5205,18 +4346,14 @@ done -{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_socket+set}" = set; then +if ${ac_cv_lib_socket_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -5234,89 +4371,58 @@ return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then +if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_socket=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_socket_socket=no + ac_cv_lib_socket_socket=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +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:$LINENO: result: $ac_cv_lib_socket_socket" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 $as_echo "$ac_cv_lib_socket_socket" >&6; } -if test "x$ac_cv_lib_socket_socket" = x""yes; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_SOCKET 1 -_ACEOF +if test "x$ac_cv_lib_socket_socket" = xyes; then : + $as_echo "#define HAVE_SOCKET 1" >>confdefs.h LIBS="$LIBS -lsocket" fi if test "$use_debug" = "yes"; then - CFLAGS="-g -DENABLE_DEBUG" + CFLAGS="${CFLAGS} -g -DENABLE_DEBUG" else - CFLAGS="-O3" + CFLAGS="${CFLAGS} -O3" +fi + +# Choosing the target +TARGET="static" +if test "$build_shared" = "yes"; then + CFLAGS="$CFLAGS -fpic" + TARGET="shared" fi if test "$use_ipv6" = "yes"; then + for ac_func in getaddrinfo inet_pton +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 -for ac_func in getaddrinfo inet_pton -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5 +$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_getaddrinfo+:} false; then : $as_echo_n "(cached) " >&6 else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif - -#undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC @@ -5324,62 +4430,38 @@ #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* 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_$ac_func || defined __stub___$ac_func -choke me -#endif - +char getaddrinfo (); int main () { -return $ac_func (); +return getaddrinfo (); ; return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_getaddrinfo=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_lib_nsl_getaddrinfo=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getaddrinfo" >&5 +$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; } +if test "x$ac_cv_lib_nsl_getaddrinfo" = xyes; then : + $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h + LIBS="$LIBS -lnsl" +fi + + CFLAGS="$CFLAGS -DENABLE_IPV6" +else + for ac_func in gethostbyname_r inet_ntoa +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 @@ -5387,18 +4469,14 @@ fi done - { $as_echo "$as_me:$LINENO: checking for getaddrinfo in -lnsl" >&5 -$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl_getaddrinfo+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5 +$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_inet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -5407,92 +4485,63 @@ #ifdef __cplusplus extern "C" #endif -char getaddrinfo (); +char inet_ntoa (); int main () { -return getaddrinfo (); +return inet_ntoa (); ; return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_nsl_getaddrinfo=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_nsl_inet_ntoa=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_nsl_getaddrinfo=no + ac_cv_lib_nsl_inet_ntoa=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +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:$LINENO: result: $ac_cv_lib_nsl_getaddrinfo" >&5 -$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; } -if test "x$ac_cv_lib_nsl_getaddrinfo" = x""yes; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_GETADDRINFO 1 -_ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5 +$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } +if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then : + $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h LIBS="$LIBS -lnsl" fi - CFLAGS="$CFLAGS -DENABLE_IPV6" -else - - -for ac_func in gethostbyname_r inet_ntoa -do -as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 -$as_echo_n "checking for $ac_func... " >&6; } -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then - $as_echo_n "(cached) " >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case declares $ac_func. - For example, HP-UX 11i declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ +fi -#ifdef __STDC__ -# include -#else -# include -#endif +if test "$use_threads" = "yes"; then + CFLAGS="$CFLAGS -DENABLE_THREADS -D_REENTRANT" +fi + + +# Checking for mingw +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking For MinGW32" >&5 +$as_echo_n "checking For MinGW32... " >&6; } +case "$host" in + *-*-mingw*) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + CFLAGS="$CFLAGS -DWIN32_DLL" + LIBS="$LIBS -lz -lwsock32 -lgdi32 -lkernel32" # for openssl + TARGET="shared_mingw" + ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } ;; +esac -#undef $ac_func +if test "$use_openssl" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5 +$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; } +if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} 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 @@ -5500,81 +4549,45 @@ #ifdef __cplusplus extern "C" #endif -char $ac_func (); -/* 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_$ac_func || defined __stub___$ac_func -choke me -#endif - +char CRYPTO_new_ex_data (); int main () { -return $ac_func (); +return CRYPTO_new_ex_data (); ; return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - eval "$as_ac_var=yes" +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_crypto_CRYPTO_new_ex_data=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - eval "$as_ac_var=no" + ac_cv_lib_crypto_CRYPTO_new_ex_data=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -ac_res=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -as_val=`eval 'as_val=${'$as_ac_var'} - $as_echo "$as_val"'` - if test "x$as_val" = x""yes; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5 +$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; } +if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +#define HAVE_LIBCRYPTO 1 _ACEOF + LIBS="-lcrypto $LIBS" + +else + as_fn_error $? "OpenSSL not found" "$LINENO" 5 fi -done - { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5 -$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 +$as_echo_n "checking for SSL_library_init in -lssl... " >&6; } +if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lnsl $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF +LIBS="-lssl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. @@ -5583,62 +4596,46 @@ #ifdef __cplusplus extern "C" #endif -char inet_ntoa (); +char SSL_library_init (); int main () { -return inet_ntoa (); +return SSL_library_init (); ; return 0; } _ACEOF -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:$LINENO: $ac_try_echo\"" -$as_echo "$ac_try_echo") >&5 - (eval "$ac_link") 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { - test -z "$ac_c_werror_flag" || - test ! -s conftest.err - } && test -s conftest$ac_exeext && { - test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext - }; then - ac_cv_lib_nsl_inet_ntoa=yes +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_ssl_SSL_library_init=yes else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_cv_lib_nsl_inet_ntoa=no + ac_cv_lib_ssl_SSL_library_init=no fi - -rm -rf conftest.dSYM -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ - conftest$ac_exeext conftest.$ac_ext +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:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5 -$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } -if test "x$ac_cv_lib_nsl_inet_ntoa" = x""yes; then - cat >>confdefs.h <<\_ACEOF -#define HAVE_INET_NTOA 1 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 +$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } +if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBSSL 1 _ACEOF - LIBS="$LIBS -lnsl" + + LIBS="-lssl $LIBS" + +else + as_fn_error $? "OpenSSL not found" "$LINENO" 5 fi + ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" +if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : + +else + as_fn_error $? "OpenSSL headers not found; did you install the -dev package?" "$LINENO" 5 fi -if test "$use_threads" = "yes"; then - CFLAGS="$CFLAGS -DENABLE_THREADS -D_REENTRANT" + + CFLAGS="$CFLAGS -DENABLE_SSL" fi @@ -5674,13 +4671,13 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 + *_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= ;; #( - *) $as_unset $ac_var ;; + *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done @@ -5688,8 +4685,8 @@ (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 \). + # `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" @@ -5711,12 +4708,23 @@ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && - { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 + 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;} - cat confcache >$cache_file + 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:$LINENO: not updating unwritable cache $cache_file" >&5 + { $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 @@ -5730,14 +4738,15 @@ 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. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' + 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 @@ -5745,13 +4754,14 @@ -: ${CONFIG_STATUS=./config.status} +: "${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:$LINENO: creating $CONFIG_STATUS" >&5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +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. @@ -5761,17 +4771,18 @@ debug=false ac_cs_recheck=false ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## +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 +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 @@ -5779,23 +4790,15 @@ alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else - case `(set -o) 2>/dev/null` in - *posix*) set -o posix ;; + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; esac - fi - - -# PATH needs CR -# 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_nl=' ' export as_nl @@ -5803,7 +4806,13 @@ 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 -if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +# 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 @@ -5814,7 +4823,7 @@ as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; - case $arg in + case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; @@ -5837,13 +4846,6 @@ } fi -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - # IFS # We need space, tab and new line, in precisely that order. Quoting is @@ -5853,15 +4855,16 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. -case $0 in +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 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done IFS=$as_save_IFS ;; @@ -5873,12 +4876,16 @@ fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - { (exit 1); exit 1; } + exit 1 fi -# Work around bugs in pre-3.0 UWIN ksh. -for as_var in ENV MAIL MAILPATH -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +# 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='> ' @@ -5890,7 +4897,89 @@ LANGUAGE=C export LANGUAGE -# Required to use basename. +# 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 @@ -5904,8 +4993,12 @@ 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 -# Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ @@ -5925,76 +5018,25 @@ } s/.*/./; q'` -# CDPATH. -$as_unset CDPATH - - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line after each line using $LINENO; the second 'sed' - # does the real work. The second script uses 'N' to pair each - # line-number line with the line containing $LINENO, and appends - # trailing '-' during substitution so that $LINENO is not a special - # case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # scripts with optimization help from Paolo Bonzini. 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 - { (exit 1); exit 1; }; } - - # 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 -} - - -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then - as_dirname=dirname -else - as_dirname=false -fi +# 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 +case `echo -n x` in #((((( -n*) - case `echo 'x\c'` in + case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. - *) ECHO_C='\c';; + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac -if expr a : '\(a\)' >/dev/null 2>&1 && - test "X`expr 00001 : '.*\(...\)'`" = X001; then - as_expr=expr -else - as_expr=false -fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then @@ -6023,8 +5065,56 @@ 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=: + as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false @@ -6043,10 +5133,10 @@ if test -d "$1"; then test -d "$1/."; else - case $1 in + case $1 in #( -*)set "./$1";; esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' @@ -6061,13 +5151,19 @@ exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 -# Save the log message, to keep $[0] and so on meaningful, and to +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 libircclient $as_me 1.3, which was -generated by GNU Autoconf 2.63. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -6098,13 +5194,15 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. +\`$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]... [FILE]... +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 @@ -6120,16 +5218,17 @@ Configuration headers: $config_headers -Report bugs to ." +Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ libircclient config.status 1.3 -configured by $0, generated by GNU Autoconf 2.63, - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" +configured by $0, generated by GNU Autoconf 2.68, + with options \\"\$ac_cs_config\\" -Copyright (C) 2008 Free Software Foundation, Inc. +Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -6144,11 +5243,16 @@ 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 @@ -6162,27 +5266,29 @@ 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 - CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + 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 - CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - { $as_echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; };; + 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 \ @@ -6190,11 +5296,10 @@ ac_cs_silent=: ;; # This is an error. - -*) { $as_echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } ;; + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; - *) ac_config_targets="$ac_config_targets $1" + *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac @@ -6240,13 +5345,11 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in - "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -6268,26 +5371,24 @@ # after its creation but before its name has been assigned to `$tmp'. $debug || { - tmp= + tmp= ac_tmp= trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 + 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 -n "$tmp" && test -d "$tmp" + test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") -} || -{ - $as_echo "$as_me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} +} || 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. @@ -6295,8 +5396,13 @@ if test -n "$CONFIG_FILES"; then -ac_cr=' -' +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' @@ -6304,7 +5410,7 @@ ac_cs_awk_cr=$ac_cr fi -echo 'BEGIN {' >"$tmp/subs1.awk" && +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF @@ -6313,24 +5419,18 @@ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` + 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_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + 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_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -6338,7 +5438,7 @@ rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h @@ -6352,7 +5452,7 @@ t delim :nl h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p @@ -6366,7 +5466,7 @@ t nl :delim h -s/\(.\{148\}\).*/\1/ +s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p @@ -6386,7 +5486,7 @@ rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK -cat >>"\$tmp/subs1.awk" <<_ACAWK && +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" @@ -6418,23 +5518,29 @@ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ - || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 -$as_echo "$as_me: error: could not setup config files machinery" >&2;} - { (exit 1); exit 1; }; } +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 $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# 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[ ]*=/{ -s/:*\$(srcdir):*/:/ -s/:*\${srcdir}:*/:/ -s/:*@srcdir@:*/:/ -s/^\([^=]*=[ ]*\):*/\1/ + 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 @@ -6446,7 +5552,7 @@ # 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 >"$tmp/defines.awk" <<\_ACAWK || +cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF @@ -6458,13 +5564,11 @@ # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do - ac_t=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_t"; then + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then break elif $ac_last_try; then - { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 -$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi @@ -6549,9 +5653,7 @@ _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 - { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 -$as_echo "$as_me: error: could not setup config headers machinery" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" @@ -6564,9 +5666,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 -$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} - { (exit 1); exit 1; }; };; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -6585,7 +5685,7 @@ for ac_f do case $ac_f in - -) ac_f="$tmp/stdin";; + -) 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 `:'. @@ -6594,12 +5694,10 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 -$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} - { (exit 1); exit 1; }; };; + 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 - ac_file_inputs="$ac_file_inputs '$ac_f'" + as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't @@ -6610,7 +5708,7 @@ `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 + { $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. @@ -6622,10 +5720,8 @@ esac case $ac_tag in - *:-:* | *:-) cat >"$tmp/stdin" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } ;; + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -6653,47 +5749,7 @@ q } s/.*/./; q'` - { as_dir="$ac_dir" - case $as_dir in #( - -*) as_dir=./$as_dir;; - esac - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { - 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_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 -$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} - { (exit 1); exit 1; }; }; } + as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in @@ -6741,7 +5797,6 @@ # 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 @@ -6751,12 +5806,11 @@ /@docdir@/p /@infodir@/p /@localedir@/p -/@mandir@/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:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 + { $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 @@ -6766,7 +5820,7 @@ s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g - s&\\\${datarootdir}&$datarootdir&g' ;; + s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF @@ -6792,27 +5846,24 @@ s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } +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' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' -which seems to be undefined. Please make sure it is defined." >&5 + { 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;} +which seems to be undefined. Please make sure it is defined" >&2;} - rm -f "$tmp/stdin" + rm -f "$ac_tmp/stdin" case $ac_file in - -) cat "$tmp/out" && rm -f "$tmp/out";; - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # @@ -6821,27 +5872,21 @@ if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" - } >"$tmp/config.h" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 + && 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 "$tmp/config.h" "$ac_file" \ - || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 -$as_echo "$as_me: error: could not create $ac_file" >&2;} - { (exit 1); exit 1; }; } + 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 "$tmp/defines.awk"' "$ac_file_inputs" \ - || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 -$as_echo "$as_me: error: could not create -" >&2;} - { (exit 1); exit 1; }; } + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; @@ -6851,15 +5896,12 @@ done # for ac_tag -{ (exit 0); exit 0; } +as_fn_exit 0 _ACEOF -chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || - { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} - { (exit 1); exit 1; }; } + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. @@ -6880,10 +5922,10 @@ 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 || { (exit 1); exit 1; } + $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 + { $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 diff -Nru libircclient-1.3+dfsg1/configure.in libircclient-1.8/configure.in --- libircclient-1.3+dfsg1/configure.in 2009-01-03 11:14:32.000000000 +0000 +++ libircclient-1.8/configure.in 2012-01-22 00:46:50.517601000 +0000 @@ -4,7 +4,7 @@ AC_PREREQ(2.52) AC_INIT(libircclient, 1.3, gyunaev@ulduzsoft.com) AC_CONFIG_SRCDIR([include/libircclient.h]) -AC_CONFIG_HEADER([include/config.h]) +AC_CONFIG_HEADER([src/config.h]) # Check for command-line AC_ARG_ENABLE([debug], @@ -13,7 +13,13 @@ [use_debug=$enableval], [use_debug=no]) -AC_ARG_ENABLE([thread], +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared], + [build a shared library (no)])], + [build_shared=$enableval], + [build_shared=no]) + +AC_ARG_ENABLE([threads], [AS_HELP_STRING([--enable-threads], [compile with multithread support (yes)])], [use_threads=$enableval], @@ -25,6 +31,12 @@ [use_ipv6=$enableval], [use_ipv6=no]) +AC_ARG_ENABLE([openssl], + [AS_HELP_STRING([--enable-openssl], + [compile with OpenSSL support (no)])], + [use_openssl=$enableval], + [use_openssl=no]) + # Checks for programs. AC_PROG_CXX AC_PROG_CC @@ -49,9 +61,16 @@ AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket") if test "$use_debug" = "yes"; then - CFLAGS="-g -DENABLE_DEBUG" + CFLAGS="${CFLAGS} -g -DENABLE_DEBUG" else - CFLAGS="-O3" + CFLAGS="${CFLAGS} -O3" +fi + +# Choosing the target +TARGET="static" +if test "$build_shared" = "yes"; then + CFLAGS="$CFLAGS -fpic" + TARGET="shared" fi if test "$use_ipv6" = "yes"; then @@ -68,6 +87,26 @@ fi +# Checking for mingw +AC_MSG_CHECKING([For MinGW32]) +case "$host" in + *-*-mingw*) + AC_MSG_RESULT([yes]) + CFLAGS="$CFLAGS -DWIN32_DLL" + LIBS="$LIBS -lz -lwsock32 -lgdi32 -lkernel32" # for openssl + TARGET="shared_mingw" + ;; + *) AC_MSG_RESULT([no]) ;; +esac + +if test "$use_openssl" = "yes"; then + AC_CHECK_LIB(crypto, [CRYPTO_new_ex_data], [], [AC_MSG_ERROR([OpenSSL not found])]) + AC_CHECK_LIB(ssl, [SSL_library_init], [], [AC_MSG_ERROR([OpenSSL not found])]) + AC_CHECK_HEADER([openssl/ssl.h], [], [AC_MSG_ERROR([OpenSSL headers not found; did you install the -dev package?])]) + CFLAGS="$CFLAGS -DENABLE_SSL" +fi + +AC_SUBST(TARGET) AC_SUBST(CFLAGS) AC_SUBST(LIBS) AC_SUBST(PREFIX) diff -Nru libircclient-1.3+dfsg1/debian/build/bootstrap.sh libircclient-1.8/debian/build/bootstrap.sh --- libircclient-1.3+dfsg1/debian/build/bootstrap.sh 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/build/bootstrap.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,125 +0,0 @@ -#!/bin/sh -# Run this to generate all the initial makefiles, etc. - -DIE=0 - -debug () -# print out a debug message if DEBUG is a defined variable -{ - if [ ! -z "$DEBUG" ]; then - echo "DEBUG: $1" - fi -} - -version_check () -# check the version of a package -# first argument : complain ('1') or not ('0') -# second argument : package name (executable) -# third argument : source download url -# rest of arguments : major, minor, micro version -{ - COMPLAIN=$1 - PACKAGE=$2 - URL=$3 - MAJOR=$4 - MINOR=$5 - MICRO=$6 - - WRONG= - - debug "major $MAJOR minor $MINOR micro $MICRO" - VERSION=$MAJOR - if [ ! -z "$MINOR" ]; then VERSION=$VERSION.$MINOR; else MINOR=0; fi - if [ ! -z "$MICRO" ]; then VERSION=$VERSION.$MICRO; else MICRO=0; fi - - debug "version $VERSION" - echo "+ checking for $PACKAGE >= $VERSION ... " | tr -d '\n' - - ($PACKAGE --version) < /dev/null > /dev/null 2>&1 || - { - echo - echo "You must have $PACKAGE installed to compile $package." - echo "Download the appropriate package for your distribution," - echo "or get the source tarball at $URL" - return 1 - } - # the following line is carefully crafted sed magic - pkg_version=`$PACKAGE --version|head -n 1|sed 's/([^)]*)//g;s/^[a-zA-Z\.\ \-\/]*//;s/ .*$//'` - debug "pkg_version $pkg_version" - pkg_major=`echo $pkg_version | cut -d. -f1` - pkg_minor=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f2` - pkg_micro=`echo $pkg_version | sed s/[-,a-z,A-Z].*// | cut -d. -f3` - [ -z "$pkg_minor" ] && pkg_minor=0 - [ -z "$pkg_micro" ] && pkg_micro=0 - - debug "found major $pkg_major minor $pkg_minor micro $pkg_micro" - - #start checking the version - if [ "$pkg_major" -lt "$MAJOR" ]; then - WRONG=1 - elif [ "$pkg_major" -eq "$MAJOR" ]; then - if [ "$pkg_minor" -lt "$MINOR" ]; then - WRONG=1 - elif [ "$pkg_minor" -eq "$MINOR" -a "$pkg_micro" -lt "$MICRO" ]; then - WRONG=1 - fi - fi - - if [ ! -z "$WRONG" ]; then - echo "found $pkg_version, not ok !" - if [ "$COMPLAIN" -eq "1" ]; then - echo - echo "You must have $PACKAGE $VERSION or greater to compile $package." - echo "Get the latest version from <$URL>." - echo - fi - return 1 - else - echo "found $pkg_version, ok." - fi -} - -version_check 1 "autoconf" "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 56 || DIE=1 -version_check 1 "automake" "ftp://ftp.gnu.org/pub/gnu/automake/" 1 9 || DIE=1 -version_check 1 "libtool" "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 4 || DIE=1 -if [ "$DIE" -eq 1 ]; then - exit 1 -fi - -echo "+ running aclocal ..." -aclocal || { - echo - echo "aclocal failed - check that all needed development files are present on system" - exit 1 -} -echo "+ running autoconf ... " -autoconf || { - echo - echo "autoconf failed" - exit 1 -} -echo "+ running autoheader ... " -autoheader || { - echo - echo "autoheader failed" - exit 1 -} - -echo "+ running libtoolize ... " -libtoolize -c -f || { - echo - echo "libtoolize failed" - exit 1 -} -echo "+ running automake ... " -automake -a -c --foreign || { - echo - echo "automake failed" - exit 1 -} - -# now remove the cache, because it can be considered dangerous in this case -echo "+ Tidying up ... " -rm -rf config.cache autom4te.cache - -exit 0 diff -Nru libircclient-1.3+dfsg1/debian/build/configure.ac libircclient-1.8/debian/build/configure.ac --- libircclient-1.3+dfsg1/debian/build/configure.ac 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/build/configure.ac 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -AC_INIT([libircclient], [1.2], []) -AC_CONFIG_AUX_DIR(.) -AC_CONFIG_HEADER([config.h]) -AM_INIT_AUTOMAKE - -AC_PROG_LIBTOOL -AC_PROG_CC - -CFLAGS="-Wall -g" - -AC_OUTPUT( - Makefile -) diff -Nru libircclient-1.3+dfsg1/debian/build/Makefile.am libircclient-1.8/debian/build/Makefile.am --- libircclient-1.3+dfsg1/debian/build/Makefile.am 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/build/Makefile.am 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -topdir=../../src - -INCLUDES = -I$(topdir)/../include - -libircclient_includedir = $(includedir)/libircclient/ -libircclient_include_HEADERS = $(topdir)/../include/libircclient.h \ - $(topdir)/../include/libirc_options.h \ - $(topdir)/../include/libirc_errors.h \ - $(topdir)/../include/libirc_events.h \ - $(topdir)/../include/libirc_rfcnumeric.h - - -lib_LTLIBRARIES = libircclient.la - -libircclient_la_SOURCES = $(topdir)/libircclient.c - -libircclient_la_LDFLAGS = -version-info 3:0:2 -libircclient_la_LIBADD = diff -Nru libircclient-1.3+dfsg1/debian/changelog libircclient-1.8/debian/changelog --- libircclient-1.3+dfsg1/debian/changelog 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/changelog 2014-09-18 13:32:21.000000000 +0000 @@ -1,8 +1,61 @@ +libircclient (1.8-2) unstable; urgency=medium + + * patch/fix-ipv6-socaddr.patch added (Closes: #762027) + - fixes segfault when connecting to an IPv6 address + + + -- Dariusz Dwornikowski Thu, 18 Sep 2014 15:29:18 +0200 + +libircclient (1.8-1) unstable; urgency=medium + + * New maintainer (Closes: #674882) + * Imported Upstream version 1.8 + * Removed -dfsg, rfc file violating DFSG no longer in source + * Bump standards to 3.9.5, no changes needed + * Build-Dep in d/control changed to debhelper>=9 + * Added myself to d/copyright + * d/copyright updated for Authors of cocoa/ + * d/compat changed to 9 + * Deleted 00_fix_missing_headers patch, not needed + * Added dh-autoreconf to Build-Deps + * Switched to multiarch (Thanks Andreas Rönnquist) + * patch/proper-lib-building.patch added + - removed old build system + - uses autoreconf and libtool + - still allows using upstream's --enable system + - builds libircclient with IPv6 support + * removed README.source file, not needed + * README.Debian added with URL pointing to upstream's doc + + -- Dariusz Dwornikowski Fri, 15 Aug 2014 18:48:38 +0200 + +libircclient (1.6+dfsg1-1) UNRELEASED; urgency=medium + + [ Andreas Rönnquist ] + * Imported Upstream version 1.6+dfsg1 + * Update Standards Version to 3.9.3 (No changes) + * Update Vcs-* fields + * Reset executable flag of bootstrap after running it + * Convert package to quilt format + * Fix debian-rules-missing-recommended-target + * Add hardening flags to build system + * Fix Multiarch support + * Fix binary-control-field-duplicates-source field 'Section' + * Fix duplicate short description lintian warning + * Fix quilt-patch-missing-description lintian warning + * Add symbols file for libircclient1 + * Update homepage field + * Drop installing unneeded .la file + * Update Copyright file + * Fix closing bug lacking hash sign + + -- Dariusz Dwornikowski Fri, 15 Aug 2014 18:47:45 +0200 + libircclient (1.3+dfsg1-3) unstable; urgency=low * Add quilt patch system. * debian/patches: - - 00_fix_missing_headers.diff - Add missing includes. Closes: 534898. + - 00_fix_missing_headers.diff - Add missing includes. Closes: #534898. -- Bradley Smith Sun, 28 Jun 2009 13:58:40 +0100 diff -Nru libircclient-1.3+dfsg1/debian/compat libircclient-1.8/debian/compat --- libircclient-1.3+dfsg1/debian/compat 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/compat 2014-09-18 13:32:21.000000000 +0000 @@ -1 +1 @@ -7 +9 diff -Nru libircclient-1.3+dfsg1/debian/control libircclient-1.8/debian/control --- libircclient-1.3+dfsg1/debian/control 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/control 2014-09-18 13:32:21.000000000 +0000 @@ -1,18 +1,18 @@ Source: libircclient Priority: optional -Maintainer: Bradley Smith -Build-Depends: debhelper (>= 7), autoconf, automake, libtool, quilt -Standards-Version: 3.8.2 +Maintainer: Dariusz Dwornikowski +Build-Depends: debhelper (>= 9), dh-autoreconf +Standards-Version: 3.9.5 Section: libs -Homepage: http://libircclient.sourceforge.net/ -Vcs-Git: http://git.brad-smith.co.uk/git/debian/pkg-libircclient.git -Vcs-Browser: http://git.brad-smith.co.uk/?p=debian/pkg-libircclient.git +Homepage: http://www.ulduzsoft.com/libircclient/ +Vcs-Git: git://anonscm.debian.org/collab-maint/libircclient.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/libircclient.git;a=summary Package: libircclient-dev Section: libdevel Architecture: any Depends: libircclient1 (= ${binary:Version}), ${misc:Depends} -Description: C library to create IRC clients +Description: development files for libircclient libircclient is a small but powerful library that implements the client-server IRC protocol. It is designed to be small, fast, portable and compatible to RFC standards, and most IRC clients. libircclient features @@ -35,9 +35,9 @@ This package contains the development files. Package: libircclient1 -Section: libs Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends} Description: C library to create IRC clients libircclient is a small but powerful library that implements the client-server IRC protocol. It is designed to be small, fast, portable and diff -Nru libircclient-1.3+dfsg1/debian/copyright libircclient-1.8/debian/copyright --- libircclient-1.3+dfsg1/debian/copyright 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/copyright 2014-09-18 13:32:21.000000000 +0000 @@ -1,22 +1,101 @@ -Author: Georgy Yunaev -Download: http://sourceforge.net/projects/libircclient/ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Libircclient +Upstream-Contact: George Yunaev +Source: Downloaded from http://sourceforge.net/projects/libircclient/ Files: * -Copyright: (C) 2004 Georgy Yunaev +Copyright: (C) 2004-2013 George Yunaev +License: LGPL-3+ + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 3 of the License, or (at your + option) any later version. + . + This library 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 Lesser General Public + License for more details. + . + On Debian GNU/Linux systems, the complete text of the GNU Lesser General + Public License can be found in `/usr/share/common-licenses/LGPL-3'. + +Files: examples/* +Copyright: (C) 2004-2013 Georgy Yunaev +License: permissive + This example is free, and not covered by LGPL license. There is no + restriction applied to their modification, redistribution, using and so on. + You can study them, modify them, use them in your own program - either + completely or partially. By using it you may give me some credits in your + program, but you don't have to. + +Files: cocoa/Classes/DDInvocationGrabber.* cocoa/Classes/NSObject+DDExtensions.* +Copyright: (C) 2007-2008 Dave Dribin + (C) 2007 Toxic Software +License: BSD-3-clause + Permission is hereby granted, free of charge, to any persons + obtaining a copy of this software and associated documentations + files (the "Software"), to deal in the Software withouts + restriction, including without limitation the rights to use, copy,s + modify, merge, publish, distribute, sublicense, and/or sell copiess + of the Software, and to permit persons to whom the Software iss + furnished to do so, subject to the following conditions:s + .s + The above copyright notice and this permission notice shall bes + included in all copies or substantial portions of the Software.s + .s + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,s + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFs + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDs + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERSs + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN ANs + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INs + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THEs + SOFTWARE. + +Files: cocoa/Classes/NSObject+DDExtensions.* +Copyright: (C) 2007-2008 Dave Dribin +License: BSD-3-clause + Permission is hereby granted, free of charge, to any persons + obtaining a copy of this software and associated documentations + files (the "Software"), to deal in the Software withouts + restriction, including without limitation the rights to use, copy,s + modify, merge, publish, distribute, sublicense, and/or sell copiess + of the Software, and to permit persons to whom the Software iss + furnished to do so, subject to the following conditions:s + .s + The above copyright notice and this permission notice shall bes + included in all copies or substantial portions of the Software.s + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,s + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFs + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDs + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERSs + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN ANs + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INs + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THEs + SOFTWARE. + +Files: cocoa/Classes/IRCClientChannel.* + cocoa/Classes/IRCClientSessionDelegate.h + cocoa/Classes/IRCClientSession.* + cocoa/Classes/IRCClientChannelDelegate.h +Copyright: (C) 2009 Nathan Ollerenshaw License: LGPL-2+ - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. + This library is free software; you can redistribute it and/or modify its + under the terms of the GNU Lesser General Public License as published bys + the Free Software Foundation; either version 2 of the License, or (at yours + option) any later version. . - This library 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 - Lesser General Public License for more details. + This library is distributed in the hope that it will be useful, but WITHOUTs + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ors + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public + License for more details. Files: debian/* -Copyright: (C) 2008 Bradley Smith -License: GPL-2+. +Copyright: (C) 2008-2009 Bradley Smith + (C) 2012 Andreas Rönnquist + (C) 2014 Dariusz Dwornikowski +License: GPL-2+ 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 2 of the License, or @@ -30,9 +109,6 @@ 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -On Debian GNU/Linux systems, the complete text of the GNU Lesser General -Public License can be found in `/usr/share/common-licenses/LGPL-2'. - -On Debian systems, the complete text of the GNU General Public License -can be found in `/usr/share/common-licenses/GPL-2'. + . + On Debian systems, the complete text of the GNU General Public License + can be found in `/usr/share/common-licenses/GPL-2'. diff -Nru libircclient-1.3+dfsg1/debian/gbp.conf libircclient-1.8/debian/gbp.conf --- libircclient-1.3+dfsg1/debian/gbp.conf 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/debian/gbp.conf 2014-09-18 13:32:21.000000000 +0000 @@ -0,0 +1,7 @@ +[DEFAULT] +debian-branch=master +pristine-tar = True + +[git-buildpackage] +export-dir = ../build-area/ + diff -Nru libircclient-1.3+dfsg1/debian/libircclient1.install libircclient-1.8/debian/libircclient1.install --- libircclient-1.3+dfsg1/debian/libircclient1.install 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/libircclient1.install 2014-09-18 13:32:21.000000000 +0000 @@ -1 +1 @@ -usr/lib/libircclient.so.* +usr/lib/*/libircclient.so.* diff -Nru libircclient-1.3+dfsg1/debian/libircclient1.symbols libircclient-1.8/debian/libircclient1.symbols --- libircclient-1.3+dfsg1/debian/libircclient1.symbols 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/debian/libircclient1.symbols 2014-09-18 13:32:21.000000000 +0000 @@ -0,0 +1,47 @@ +libircclient.so.1 libircclient1 #MINVER# + irc_add_select_descriptors@Base 1.8 + irc_cmd_channel_mode@Base 1.8 + irc_cmd_ctcp_reply@Base 1.8 + irc_cmd_ctcp_request@Base 1.8 + irc_cmd_invite@Base 1.8 + irc_cmd_join@Base 1.8 + irc_cmd_kick@Base 1.8 + irc_cmd_list@Base 1.8 + irc_cmd_me@Base 1.8 + irc_cmd_msg@Base 1.8 + irc_cmd_names@Base 1.8 + irc_cmd_nick@Base 1.8 + irc_cmd_notice@Base 1.8 + irc_cmd_part@Base 1.8 + irc_cmd_quit@Base 1.8 + irc_cmd_topic@Base 1.8 + irc_cmd_user_mode@Base 1.8 + irc_cmd_whois@Base 1.8 + irc_color_convert_from_mirc@Base 1.8 + irc_color_convert_to_mirc@Base 1.8 + irc_color_strip_from_mirc@Base 1.8 + irc_connect6@Base 1.8 + irc_connect@Base 1.8 + irc_create_session@Base 1.8 + irc_dcc_accept@Base 1.8 + irc_dcc_chat@Base 1.8 + irc_dcc_decline@Base 1.8 + irc_dcc_destroy@Base 1.8 + irc_dcc_msg@Base 1.8 + irc_dcc_sendfile@Base 1.8 + irc_destroy_session@Base 1.8 + irc_disconnect@Base 1.8 + irc_errno@Base 1.8 + irc_get_ctx@Base 1.8 + irc_get_version@Base 1.8 + irc_is_connected@Base 1.8 + irc_option_reset@Base 1.8 + irc_option_set@Base 1.8 + irc_process_select_descriptors@Base 1.8 + irc_run@Base 1.8 + irc_send_raw@Base 1.8 + irc_set_ctcp_version@Base 1.8 + irc_set_ctx@Base 1.8 + irc_strerror@Base 1.8 + irc_target_get_host@Base 1.8 + irc_target_get_nick@Base 1.8 diff -Nru libircclient-1.3+dfsg1/debian/libircclient-dev.install libircclient-1.8/debian/libircclient-dev.install --- libircclient-1.3+dfsg1/debian/libircclient-dev.install 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/libircclient-dev.install 2014-09-18 13:32:21.000000000 +0000 @@ -1,4 +1,3 @@ -usr/include/libircclient/ -usr/lib/libircclient.so -usr/lib/libircclient.la -usr/lib/libircclient.a +usr/include/* +usr/lib/*/libircclient.a +usr/lib/*/libircclient.so diff -Nru libircclient-1.3+dfsg1/debian/patches/00_fix_missing_headers.diff libircclient-1.8/debian/patches/00_fix_missing_headers.diff --- libircclient-1.3+dfsg1/debian/patches/00_fix_missing_headers.diff 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/patches/00_fix_missing_headers.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,13 +0,0 @@ -Index: libircclient/include/libircclient.h -=================================================================== ---- libircclient.orig/include/libircclient.h 2009-06-28 13:56:44.000000000 +0100 -+++ libircclient/include/libircclient.h 2009-06-28 13:57:06.000000000 +0100 -@@ -43,6 +43,8 @@ - #ifndef INCLUDE_LIBIRC_H - #define INCLUDE_LIBIRC_H - -+#include -+ - #if !defined (WIN32) - #include /* fd_set */ - #else diff -Nru libircclient-1.3+dfsg1/debian/patches/fix-ipv6-socaddr.patch libircclient-1.8/debian/patches/fix-ipv6-socaddr.patch --- libircclient-1.3+dfsg1/debian/patches/fix-ipv6-socaddr.patch 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/debian/patches/fix-ipv6-socaddr.patch 2014-09-18 13:32:21.000000000 +0000 @@ -0,0 +1,14 @@ +Author: null_ptr +Description: fix ipv6 in libircclient +Forwarded: http://sourceforge.net/p/libircclient/bugs/24/ +--- a/src/libircclient.c ++++ a/src/libircclient.c +@@ -817,7 +817,7 @@ + if (saddr.ss_family == AF_INET) + memcpy (&session->local_addr, &((struct sockaddr_in *)&laddr)->sin_addr, sizeof(struct in_addr)); + else +- memcpy (&session->local_addr, &((struct sockaddr_in6 *)&laddr)->sin6_addr, sizeof(struct in6_addr)); ++ memcpy (&session->local_addr6, &((struct sockaddr_in6 *)&laddr)->sin6_addr, sizeof(struct in6_addr)); + + #if defined (ENABLE_DEBUG) + if ( IS_DEBUG_ENABLED(session) ) diff -Nru libircclient-1.3+dfsg1/debian/patches/proper-lib-building.patch libircclient-1.8/debian/patches/proper-lib-building.patch --- libircclient-1.3+dfsg1/debian/patches/proper-lib-building.patch 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/debian/patches/proper-lib-building.patch 2014-09-18 13:32:21.000000000 +0000 @@ -0,0 +1,6181 @@ +Author: Dariusz Dwornikowski +Description: drop old build process to enable proper libtool building + and multiarch support +Forwarded: no +--- a/Makefile ++++ /dev/null +@@ -1,26 +0,0 @@ +-# $Id: Makefile 84 2009-01-10 01:37:29Z chromerium $ +- +-SUBDIRS = src examples +- +-all: +- for subdir in $(SUBDIRS); do \ +- $(MAKE) -C $$subdir || exit 1; \ +- done +- +-clean: +- -for subdir in $(SUBDIRS); do \ +- $(MAKE) -C $$subdir clean || exit 1; \ +- done +- -rm -f core +- +-distclean: +- -for subdir in $(SUBDIRS); do \ +- $(MAKE) -C $$subdir distclean || exit 1; \ +- done +- -rm -f include/config.h config.cache config.status config.log core +- +-distro: distclean +- (cd .. && tar zcf libircclient-1.2.tar.gz libircclient-1.2) +- +-install: all +- -cd src && make install +--- a/configure.in ++++ /dev/null +@@ -1,114 +0,0 @@ +-# -*- Autoconf -*- +-# Process this file with autoconf to produce a configure script. +- +-AC_PREREQ(2.52) +-AC_INIT(libircclient, 1.3, gyunaev@ulduzsoft.com) +-AC_CONFIG_SRCDIR([include/libircclient.h]) +-AC_CONFIG_HEADER([src/config.h]) +- +-# Check for command-line +-AC_ARG_ENABLE([debug], +- [AS_HELP_STRING([--enable-debug], +- [compile with debug information (no)])], +- [use_debug=$enableval], +- [use_debug=no]) +- +-AC_ARG_ENABLE([shared], +- [AS_HELP_STRING([--enable-shared], +- [build a shared library (no)])], +- [build_shared=$enableval], +- [build_shared=no]) +- +-AC_ARG_ENABLE([threads], +- [AS_HELP_STRING([--enable-threads], +- [compile with multithread support (yes)])], +- [use_threads=$enableval], +- [use_threads=yes]) +- +-AC_ARG_ENABLE([ipv6], +- [AS_HELP_STRING([--enable-ipv6], +- [compile with IPv6 support (no)])], +- [use_ipv6=$enableval], +- [use_ipv6=no]) +- +-AC_ARG_ENABLE([openssl], +- [AS_HELP_STRING([--enable-openssl], +- [compile with OpenSSL support (no)])], +- [use_openssl=$enableval], +- [use_openssl=no]) +- +-# Checks for programs. +-AC_PROG_CXX +-AC_PROG_CC +-AC_CHECK_TOOL(AR, ar, :) +-AC_PROG_RANLIB +- +-# Checks for header files. +-AC_HEADER_STDC +- +-# Checks for typedefs, structures, and compiler characteristics. +-AC_HEADER_STDBOOL +-AC_C_CONST +-AC_TYPE_SIZE_T +-AC_HEADER_TIME +- +-# Checks for library functions. +-AC_FUNC_MALLOC +-AC_FUNC_SELECT_ARGTYPES +-AC_FUNC_STAT +-AC_CHECK_FUNCS([localtime_r socket]) +- +-AC_CHECK_LIB(socket, socket, AC_DEFINE(HAVE_SOCKET) LIBS="$LIBS -lsocket") +- +-if test "$use_debug" = "yes"; then +- CFLAGS="${CFLAGS} -g -DENABLE_DEBUG" +-else +- CFLAGS="${CFLAGS} -O3" +-fi +- +-# Choosing the target +-TARGET="static" +-if test "$build_shared" = "yes"; then +- CFLAGS="$CFLAGS -fpic" +- TARGET="shared" +-fi +- +-if test "$use_ipv6" = "yes"; then +- AC_CHECK_FUNCS([getaddrinfo inet_pton]) +- AC_CHECK_LIB(nsl, getaddrinfo, AC_DEFINE(HAVE_GETADDRINFO) LIBS="$LIBS -lnsl") +- CFLAGS="$CFLAGS -DENABLE_IPV6" +-else +- AC_CHECK_FUNCS([gethostbyname_r inet_ntoa]) +- AC_CHECK_LIB(nsl, inet_ntoa, AC_DEFINE(HAVE_INET_NTOA) LIBS="$LIBS -lnsl") +-fi +- +-if test "$use_threads" = "yes"; then +- CFLAGS="$CFLAGS -DENABLE_THREADS -D_REENTRANT" +-fi +- +- +-# Checking for mingw +-AC_MSG_CHECKING([For MinGW32]) +-case "$host" in +- *-*-mingw*) +- AC_MSG_RESULT([yes]) +- CFLAGS="$CFLAGS -DWIN32_DLL" +- LIBS="$LIBS -lz -lwsock32 -lgdi32 -lkernel32" # for openssl +- TARGET="shared_mingw" +- ;; +- *) AC_MSG_RESULT([no]) ;; +-esac +- +-if test "$use_openssl" = "yes"; then +- AC_CHECK_LIB(crypto, [CRYPTO_new_ex_data], [], [AC_MSG_ERROR([OpenSSL not found])]) +- AC_CHECK_LIB(ssl, [SSL_library_init], [], [AC_MSG_ERROR([OpenSSL not found])]) +- AC_CHECK_HEADER([openssl/ssl.h], [], [AC_MSG_ERROR([OpenSSL headers not found; did you install the -dev package?])]) +- CFLAGS="$CFLAGS -DENABLE_SSL" +-fi +- +-AC_SUBST(TARGET) +-AC_SUBST(CFLAGS) +-AC_SUBST(LIBS) +-AC_SUBST(PREFIX) +-AC_CONFIG_FILES([examples/Makefile src/Makefile]) +-AC_OUTPUT +--- a/src/Makefile.in ++++ /dev/null +@@ -1,46 +0,0 @@ +-# $Id: Makefile.in 110 2012-02-13 03:07:47Z gyunaev $ +-CC = @CC@ +-CFLAGS = -Wall -DIN_BUILDING_LIBIRC @CFLAGS@ +-AR=@AR@ cr +-RANLIB=@RANLIB@ +-INCLUDES=-I../include +-DESTDIR= +-APIVERSION = 1 +- +-OBJS = libircclient.o +- +-all: @TARGET@ +- +-static: libircclient.a +-shared: libircclient.so +-shared_mingw: libircclient.dll +- +-install: +- -mkdir -p $(DESTDIR)@prefix@/include +- -mkdir -p $(DESTDIR)@libdir@ +- cp ../include/libircclient.h $(DESTDIR)@prefix@/include/libircclient.h +- cp ../include/libirc_errors.h $(DESTDIR)@prefix@/include/libirc_errors.h +- cp ../include/libirc_events.h $(DESTDIR)@prefix@/include/libirc_events.h +- cp ../include/libirc_options.h $(DESTDIR)@prefix@/include/libirc_options.h +- cp ../include/libirc_rfcnumeric.h $(DESTDIR)@prefix@/include/libirc_rfcnumeric.h +- cp libircclient.so $(DESTDIR)@libdir@/libircclient.so.$(APIVERSION) +- ln -fs libircclient.so.$(APIVERSION) $(DESTDIR)@libdir@/libircclient.so +- +-libircclient.so: libircclient.o +- $(CC) -shared -s -Wl,-soname,libircclient.so.$(APIVERSION) -o libircclient.so libircclient.o @LIBS@ +- +-libircclient.dll: libircclient.o +- $(CC) -shared -s -o libircclient.dll -Wl,-out-implib,libircclient.lib libircclient.o libircclient.def -lkernel32 -lwsock32 @LIBS@ +- +-libircclient.a: libircclient.o +- $(AR) libircclient.a libircclient.o +- $(RANLIB) libircclient.a +- +-clean: +- rm -f libircclient.a libircclient.o +- +-distclean: clean +- -rm -f Makefile +- +-.c.o: +- $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< +--- /dev/null ++++ b/Makefile.am +@@ -0,0 +1,10 @@ ++AUTOMAKE_OPTIONS = subdir-objects ++ACLOCAL_AMFLAGS=-I m4 ++AM_CFLAGS = -g -Wall ++lib_LTLIBRARIES = libircclient.la ++libircclient_la_CFLAGS= -I include/ @LIBS@ ++libircclient_la_SOURCES = src/libircclient.c ++libircclient_la_LDFLAGS = -version-info 1:0:0 ++include_HEADERS= include/*.h ++ ++ +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,32 @@ ++AC_INIT([libircclient], [1.8], [gyunaev@ulduzsoft.com]) ++AM_INIT_AUTOMAKE([foreign]) ++AC_CONFIG_HEADER([src/config.h]) ++AC_CONFIG_SRCDIR([include/libircclient.h]) ++AC_CONFIG_MACRO_DIR([m4]) ++LT_INIT([dlopen]) ++ ++AC_PROG_CC ++AC_PROG_CXX ++AC_PROG_CC_C_O ++PKG_PROG_PKG_CONFIG ++ ++AC_CANONICAL_HOST ++CPPFLAGS = "$CPPFLAGS" ++ ++AC_ARG_ENABLE([ipv6], ++ [AS_HELP_STRING([--enable-ipv6], ++ [compile with IPv6 support (no)])], ++ [use_ipv6=$enableval], ++ [use_ipv6=no]) ++ ++if test "$use_ipv6" = "yes"; then ++ AC_CHECK_FUNCS([getaddrinfo inet_pton]) ++ AC_CHECK_LIB(nsl, getaddrinfo, AC_DEFINE(HAVE_GETADDRINFO) LIBS="$LIBS -lnsl") ++ CFLAGS="$CFLAGS -DENABLE_IPV6" ++else ++ AC_CHECK_FUNCS([gethostbyname_r inet_ntoa]) ++ AC_CHECK_LIB(nsl, inet_ntoa, AC_DEFINE(HAVE_INET_NTOA) LIBS="$LIBS -lnsl") ++fi ++ ++AC_CONFIG_FILES([Makefile]) ++AC_OUTPUT +--- a/configure ++++ /dev/null +@@ -1,5931 +0,0 @@ +-#! /bin/sh +-# Guess values for system-dependent variables and create Makefiles. +-# Generated by GNU Autoconf 2.68 for libircclient 1.3. +-# +-# Report bugs to . +-# +-# +-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 +- +-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" +- 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 : +- # 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 +- export CONFIG_SHELL +- 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+"$@"} +-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 and +-$0: gyunaev@ulduzsoft.com about your system, including any +-$0: error possibly output before this message. Then install +-$0: a modern shell, or manually run the script under such a +-$0: 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_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; } +- +- # 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 -p'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -p' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -p' +- fi +-else +- as_ln_s='cp -p' +-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 +- +-if test -x / >/dev/null 2>&1; then +- as_test_x='test -x' +-else +- if ls -dL / >/dev/null 2>&1; then +- as_ls_L_option=L +- else +- as_ls_L_option= +- fi +- as_test_x=' +- eval sh -c '\'' +- if test -d "$1"; then +- test -d "$1/."; +- else +- case $1 in #( +- -*)set "./$1";; +- esac; +- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( +- ???[sx]*):;;*)false;;esac;fi +- '\'' sh +- ' +-fi +-as_executable_p=$as_test_x +- +-# 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='libircclient' +-PACKAGE_TARNAME='libircclient' +-PACKAGE_VERSION='1.3' +-PACKAGE_STRING='libircclient 1.3' +-PACKAGE_BUGREPORT='gyunaev@ulduzsoft.com' +-PACKAGE_URL='' +- +-ac_unique_file="include/libircclient.h" +-# 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 +-PREFIX +-TARGET +-LIBOBJS +-EGREP +-GREP +-CPP +-RANLIB +-AR +-ac_ct_CC +-CFLAGS +-CC +-OBJEXT +-EXEEXT +-ac_ct_CXX +-CPPFLAGS +-LDFLAGS +-CXXFLAGS +-CXX +-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_debug +-enable_shared +-enable_threads +-enable_ipv6 +-enable_openssl +-' +- ac_precious_vars='build_alias +-host_alias +-target_alias +-CXX +-CXXFLAGS +-LDFLAGS +-LIBS +-CPPFLAGS +-CCC +-CC +-CFLAGS +-CPP' +- +- +-# 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 +- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. +- If a cross compiler is detected then cross compile mode will be used" >&2 +- 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 libircclient 1.3 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/libircclient] +- --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 libircclient 1.3:";; +- 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-debug compile with debug information (no) +- --enable-shared build a shared library (no) +- --enable-threads compile with multithread support (yes) +- --enable-ipv6 compile with IPv6 support (no) +- --enable-openssl compile with OpenSSL support (no) +- +-Some influential environment variables: +- CXX C++ compiler command +- CXXFLAGS 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 +- CC C compiler command +- CFLAGS C compiler flags +- CPP C preprocessor +- +-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 . +-_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 +-libircclient configure 1.3 +-generated by GNU Autoconf 2.68 +- +-Copyright (C) 2010 Free Software Foundation, Inc. +-This configure script is free software; the Free Software Foundation +-gives unlimited permission to copy, distribute and modify it. +-_ACEOF +- exit +-fi +- +-## ------------------------ ## +-## Autoconf initialization. ## +-## ------------------------ ## +- +-# ac_fn_cxx_try_compile LINENO +-# ---------------------------- +-# Try to compile conftest.$ac_ext, and return whether this succeeded. +-ac_fn_cxx_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_cxx_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_cxx_try_compile +- +-# 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_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_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_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_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;} +-( $as_echo "## ------------------------------------ ## +-## Report this to gyunaev@ulduzsoft.com ## +-## ------------------------------------ ##" +- ) | sed "s/^/$as_me: WARNING: /" >&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_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 || +- $as_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_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 +-cat >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 libircclient $as_me 1.3, which was +-generated by GNU Autoconf 2.68. 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 src/config.h" +- +- +-# Check for command-line +-# Check whether --enable-debug was given. +-if test "${enable_debug+set}" = set; then : +- enableval=$enable_debug; use_debug=$enableval +-else +- use_debug=no +-fi +- +- +-# Check whether --enable-shared was given. +-if test "${enable_shared+set}" = set; then : +- enableval=$enable_shared; build_shared=$enableval +-else +- build_shared=no +-fi +- +- +-# Check whether --enable-threads was given. +-if test "${enable_threads+set}" = set; then : +- enableval=$enable_threads; use_threads=$enableval +-else +- use_threads=yes +-fi +- +- +-# Check whether --enable-ipv6 was given. +-if test "${enable_ipv6+set}" = set; then : +- enableval=$enable_ipv6; use_ipv6=$enableval +-else +- use_ipv6=no +-fi +- +- +-# Check whether --enable-openssl was given. +-if test "${enable_openssl+set}" = set; then : +- enableval=$enable_openssl; use_openssl=$enableval +-else +- use_openssl=no +-fi +- +- +-# Checks for programs. +-ac_ext=cpp +-ac_cpp='$CXXCPP $CPPFLAGS' +-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +-if test -z "$CXX"; then +- if test -n "$CCC"; then +- CXX=$CCC +- else +- if test -n "$ac_tool_prefix"; then +- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +- 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_CXX+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$CXX"; then +- ac_cv_prog_CXX="$CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_prog_CXX="$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 +-CXX=$ac_cv_prog_CXX +-if test -n "$CXX"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +-$as_echo "$CXX" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$CXX" && break +- done +-fi +-if test -z "$CXX"; then +- ac_ct_CXX=$CXX +- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +-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_CXX+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_CXX"; then +- ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_prog_ac_ct_CXX="$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_CXX=$ac_cv_prog_ac_ct_CXX +-if test -n "$ac_ct_CXX"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +-$as_echo "$ac_ct_CXX" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +- test -n "$ac_ct_CXX" && break +-done +- +- if test "x$ac_ct_CXX" = x; then +- CXX="g++" +- 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 +- CXX=$ac_ct_CXX +- fi +-fi +- +- fi +-fi +-# 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_cxx_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_cxx_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_cxx_compiler_gnu=$ac_compiler_gnu +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +-$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +-if test $ac_compiler_gnu = yes; then +- GXX=yes +-else +- GXX= +-fi +-ac_test_CXXFLAGS=${CXXFLAGS+set} +-ac_save_CXXFLAGS=$CXXFLAGS +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +-$as_echo_n "checking whether $CXX accepts -g... " >&6; } +-if ${ac_cv_prog_cxx_g+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_save_cxx_werror_flag=$ac_cxx_werror_flag +- ac_cxx_werror_flag=yes +- ac_cv_prog_cxx_g=no +- CXXFLAGS="-g" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_cxx_try_compile "$LINENO"; then : +- ac_cv_prog_cxx_g=yes +-else +- CXXFLAGS="" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_cxx_try_compile "$LINENO"; then : +- +-else +- ac_cxx_werror_flag=$ac_save_cxx_werror_flag +- CXXFLAGS="-g" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_cxx_try_compile "$LINENO"; then : +- ac_cv_prog_cxx_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_cxx_werror_flag=$ac_save_cxx_werror_flag +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +-$as_echo "$ac_cv_prog_cxx_g" >&6; } +-if test "$ac_test_CXXFLAGS" = set; then +- CXXFLAGS=$ac_save_CXXFLAGS +-elif test $ac_cv_prog_cxx_g = yes; then +- if test "$GXX" = yes; then +- CXXFLAGS="-g -O2" +- else +- CXXFLAGS="-g" +- fi +-else +- if test "$GXX" = yes; then +- CXXFLAGS="-O2" +- else +- CXXFLAGS= +- fi +-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 +-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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 +-#include +-#include +-/* 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 +- +-if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +-set dummy ${ac_tool_prefix}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_prog_AR+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$AR"; then +- ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_prog_AR="${ac_tool_prefix}ar" +- $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 +-AR=$ac_cv_prog_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 +- +- +-fi +-if test -z "$ac_cv_prog_AR"; then +- ac_ct_AR=$AR +- # 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_prog_ac_ct_AR+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_AR"; then +- ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_prog_ac_ct_AR="ar" +- $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_AR=$ac_cv_prog_ac_ct_AR +-if test -n "$ac_ct_AR"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +-$as_echo "$ac_ct_AR" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_AR" = x; then +- AR=":" +- 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 +- AR=$ac_ct_AR +- fi +-else +- AR="$ac_cv_prog_AR" +-fi +- +-if test -n "$ac_tool_prefix"; then +- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +-set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$RANLIB"; then +- ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" +- $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 +-RANLIB=$ac_cv_prog_RANLIB +-if test -n "$RANLIB"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +-$as_echo "$RANLIB" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- +-fi +-if test -z "$ac_cv_prog_RANLIB"; then +- ac_ct_RANLIB=$RANLIB +- # Extract the first word of "ranlib", so it can be a program name with args. +-set dummy ranlib; 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_RANLIB+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test -n "$ac_ct_RANLIB"; then +- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then +- ac_cv_prog_ac_ct_RANLIB="ranlib" +- $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_RANLIB=$ac_cv_prog_ac_ct_RANLIB +-if test -n "$ac_ct_RANLIB"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +-$as_echo "$ac_ct_RANLIB" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-fi +- +- if test "x$ac_ct_RANLIB" = x; then +- RANLIB=":" +- 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 +- RANLIB=$ac_ct_RANLIB +- fi +-else +- RANLIB="$ac_cv_prog_RANLIB" +-fi +- +- +-# Checks for header files. +- +-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" +- { test -f "$ac_path_GREP" && $as_test_x "$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" +- { test -f "$ac_path_EGREP" && $as_test_x "$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 +- +- +-# Checks for typedefs, structures, and compiler characteristics. +-# 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 +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +-$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +-if ${ac_cv_header_stdbool_h+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-#include +-#ifndef bool +- "error: bool is not defined" +-#endif +-#ifndef false +- "error: false is not defined" +-#endif +-#if false +- "error: false is not 0" +-#endif +-#ifndef true +- "error: true is not defined" +-#endif +-#if true != 1 +- "error: true is not 1" +-#endif +-#ifndef __bool_true_false_are_defined +- "error: __bool_true_false_are_defined is not defined" +-#endif +- +- struct s { _Bool s: 1; _Bool t; } s; +- +- char a[true == 1 ? 1 : -1]; +- char b[false == 0 ? 1 : -1]; +- char c[__bool_true_false_are_defined == 1 ? 1 : -1]; +- char d[(bool) 0.5 == true ? 1 : -1]; +- /* See body of main program for 'e'. */ +- char f[(_Bool) 0.0 == false ? 1 : -1]; +- char g[true]; +- char h[sizeof (_Bool)]; +- char i[sizeof s.t]; +- enum { j = false, k = true, l = false * true, m = true * 256 }; +- /* The following fails for +- HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ +- _Bool n[m]; +- char o[sizeof n == m * sizeof n[0] ? 1 : -1]; +- char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; +- /* Catch a bug in an HP-UX C compiler. See +- http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html +- http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html +- */ +- _Bool q = true; +- _Bool *pq = &q; +- +-int +-main () +-{ +- +- bool e = &s; +- *pq |= q; +- *pq |= ! q; +- /* Refer to every declared value, to avoid compiler optimizations. */ +- return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l +- + !m + !n + !o + !p + !q + !pq); +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_header_stdbool_h=yes +-else +- ac_cv_header_stdbool_h=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +-$as_echo "$ac_cv_header_stdbool_h" >&6; } +-ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +-if test "x$ac_cv_type__Bool" = xyes; then : +- +-cat >>confdefs.h <<_ACEOF +-#define HAVE__BOOL 1 +-_ACEOF +- +- +-fi +- +-if test $ac_cv_header_stdbool_h = yes; then +- +-$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h +- +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 +-$as_echo_n "checking for an ANSI C-conforming const... " >&6; } +-if ${ac_cv_c_const+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +-/* FIXME: Include the comments suggested by Paul. */ +-#ifndef __cplusplus +- /* Ultrix mips cc rejects this. */ +- typedef int charset[2]; +- const charset cs; +- /* SunOS 4.1.1 cc rejects this. */ +- char const *const *pcpcc; +- char **ppc; +- /* NEC SVR4.0.2 mips cc rejects this. */ +- struct point {int x, y;}; +- static struct point const zero = {0,0}; +- /* AIX XL C 1.02.0.0 rejects this. +- It does not let you subtract one const X* pointer from another in +- an arm of an if-expression whose if-part is not a constant +- expression */ +- const char *g = "string"; +- pcpcc = &g + (g ? g-g : 0); +- /* HPUX 7.0 cc rejects these. */ +- ++pcpcc; +- ppc = (char**) pcpcc; +- pcpcc = (char const *const *) ppc; +- { /* SCO 3.2v4 cc rejects this. */ +- char *t; +- char const *s = 0 ? (char *) 0 : (char const *) 0; +- +- *t++ = 0; +- if (s) return 0; +- } +- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ +- int x[] = {25, 17}; +- const int *foo = &x[0]; +- ++foo; +- } +- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ +- typedef const int *iptr; +- iptr p = 0; +- ++p; +- } +- { /* AIX XL C 1.02.0.0 rejects this saying +- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ +- struct s { int j; const int *ap[3]; }; +- struct s *b; b->j = 5; +- } +- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ +- const int foo = 10; +- if (!foo) return 0; +- } +- return !cs[0] && !zero.x; +-#endif +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_c_const=yes +-else +- ac_cv_c_const=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 +-$as_echo "$ac_cv_c_const" >&6; } +-if test $ac_cv_c_const = no; then +- +-$as_echo "#define const /**/" >>confdefs.h +- +-fi +- +-ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +-if test "x$ac_cv_type_size_t" = xyes; then : +- +-else +- +-cat >>confdefs.h <<_ACEOF +-#define size_t unsigned int +-_ACEOF +- +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 +-$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } +-if ${ac_cv_header_time+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#include +-#include +-#include +- +-int +-main () +-{ +-if ((struct tm *) 0) +-return 0; +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_header_time=yes +-else +- ac_cv_header_time=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 +-$as_echo "$ac_cv_header_time" >&6; } +-if test $ac_cv_header_time = yes; then +- +-$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h +- +-fi +- +- +-# Checks for library functions. +-for ac_header in stdlib.h +-do : +- ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +-if test "x$ac_cv_header_stdlib_h" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_STDLIB_H 1 +-_ACEOF +- +-fi +- +-done +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 +-$as_echo_n "checking for GNU libc compatible malloc... " >&6; } +-if ${ac_cv_func_malloc_0_nonnull+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test "$cross_compiling" = yes; then : +- ac_cv_func_malloc_0_nonnull=no +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-#if defined STDC_HEADERS || defined HAVE_STDLIB_H +-# include +-#else +-char *malloc (); +-#endif +- +-int +-main () +-{ +-return ! malloc (0); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- ac_cv_func_malloc_0_nonnull=yes +-else +- ac_cv_func_malloc_0_nonnull=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 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 +-$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } +-if test $ac_cv_func_malloc_0_nonnull = yes; then : +- +-$as_echo "#define HAVE_MALLOC 1" >>confdefs.h +- +-else +- $as_echo "#define HAVE_MALLOC 0" >>confdefs.h +- +- case " $LIBOBJS " in +- *" malloc.$ac_objext "* ) ;; +- *) LIBOBJS="$LIBOBJS malloc.$ac_objext" +- ;; +-esac +- +- +-$as_echo "#define malloc rpl_malloc" >>confdefs.h +- +-fi +- +- +-for ac_header in sys/select.h sys/socket.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 types of arguments for select" >&5 +-$as_echo_n "checking types of arguments for select... " >&6; } +-if ${ac_cv_func_select_args+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- for ac_arg234 in 'fd_set *' 'int *' 'void *'; do +- for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do +- for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$ac_includes_default +-#ifdef HAVE_SYS_SELECT_H +-# include +-#endif +-#ifdef HAVE_SYS_SOCKET_H +-# include +-#endif +- +-int +-main () +-{ +-extern int select ($ac_arg1, +- $ac_arg234, $ac_arg234, $ac_arg234, +- $ac_arg5); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- done +- done +-done +-# Provide a safe default value. +-: "${ac_cv_func_select_args=int,int *,struct timeval *}" +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 +-$as_echo "$ac_cv_func_select_args" >&6; } +-ac_save_IFS=$IFS; IFS=',' +-set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` +-IFS=$ac_save_IFS +-shift +- +-cat >>confdefs.h <<_ACEOF +-#define SELECT_TYPE_ARG1 $1 +-_ACEOF +- +- +-cat >>confdefs.h <<_ACEOF +-#define SELECT_TYPE_ARG234 ($2) +-_ACEOF +- +- +-cat >>confdefs.h <<_ACEOF +-#define SELECT_TYPE_ARG5 ($3) +-_ACEOF +- +-rm -f conftest* +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 +-$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } +-if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- rm -f conftest.sym conftest.file +-echo >conftest.file +-if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then +- if test "$cross_compiling" = yes; then : +- ac_cv_func_lstat_dereferences_slashed_symlink=no +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$ac_includes_default +-int +-main () +-{ +-struct stat sbuf; +- /* Linux will dereference the symlink and fail, as required by POSIX. +- That is better in the sense that it means we will not +- have to compile and use the lstat wrapper. */ +- return lstat ("conftest.sym/", &sbuf) == 0; +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- ac_cv_func_lstat_dereferences_slashed_symlink=yes +-else +- ac_cv_func_lstat_dereferences_slashed_symlink=no +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- +-else +- # If the `ln -s' command failed, then we probably don't even +- # have an lstat function. +- ac_cv_func_lstat_dereferences_slashed_symlink=no +-fi +-rm -f conftest.sym conftest.file +- +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 +-$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } +- +-test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && +- +-cat >>confdefs.h <<_ACEOF +-#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 +-_ACEOF +- +- +-if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then +- case " $LIBOBJS " in +- *" lstat.$ac_objext "* ) ;; +- *) LIBOBJS="$LIBOBJS lstat.$ac_objext" +- ;; +-esac +- +-fi +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 +-$as_echo_n "checking whether stat accepts an empty string... " >&6; } +-if ${ac_cv_func_stat_empty_string_bug+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- if test "$cross_compiling" = yes; then : +- ac_cv_func_stat_empty_string_bug=yes +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +-$ac_includes_default +-int +-main () +-{ +-struct stat sbuf; +- return stat ("", &sbuf) == 0; +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- ac_cv_func_stat_empty_string_bug=no +-else +- ac_cv_func_stat_empty_string_bug=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 +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 +-$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } +-if test $ac_cv_func_stat_empty_string_bug = yes; then +- case " $LIBOBJS " in +- *" stat.$ac_objext "* ) ;; +- *) LIBOBJS="$LIBOBJS stat.$ac_objext" +- ;; +-esac +- +- +-cat >>confdefs.h <<_ACEOF +-#define HAVE_STAT_EMPTY_STRING_BUG 1 +-_ACEOF +- +-fi +- +-for ac_func in localtime_r socket +-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 +- +- +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 +-$as_echo_n "checking for socket in -lsocket... " >&6; } +-if ${ac_cv_lib_socket_socket+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lsocket $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 +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_socket_socket=yes +-else +- ac_cv_lib_socket_socket=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_socket_socket" >&5 +-$as_echo "$ac_cv_lib_socket_socket" >&6; } +-if test "x$ac_cv_lib_socket_socket" = xyes; then : +- $as_echo "#define HAVE_SOCKET 1" >>confdefs.h +- LIBS="$LIBS -lsocket" +-fi +- +- +-if test "$use_debug" = "yes"; then +- CFLAGS="${CFLAGS} -g -DENABLE_DEBUG" +-else +- CFLAGS="${CFLAGS} -O3" +-fi +- +-# Choosing the target +-TARGET="static" +-if test "$build_shared" = "yes"; then +- CFLAGS="$CFLAGS -fpic" +- TARGET="shared" +-fi +- +-if test "$use_ipv6" = "yes"; then +- for ac_func in getaddrinfo inet_pton +-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 +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lnsl" >&5 +-$as_echo_n "checking for getaddrinfo in -lnsl... " >&6; } +-if ${ac_cv_lib_nsl_getaddrinfo+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lnsl $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 getaddrinfo (); +-int +-main () +-{ +-return getaddrinfo (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_nsl_getaddrinfo=yes +-else +- ac_cv_lib_nsl_getaddrinfo=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_nsl_getaddrinfo" >&5 +-$as_echo "$ac_cv_lib_nsl_getaddrinfo" >&6; } +-if test "x$ac_cv_lib_nsl_getaddrinfo" = xyes; then : +- $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h +- LIBS="$LIBS -lnsl" +-fi +- +- CFLAGS="$CFLAGS -DENABLE_IPV6" +-else +- for ac_func in gethostbyname_r inet_ntoa +-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 +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5 +-$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; } +-if ${ac_cv_lib_nsl_inet_ntoa+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lnsl $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_ntoa (); +-int +-main () +-{ +-return inet_ntoa (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_nsl_inet_ntoa=yes +-else +- ac_cv_lib_nsl_inet_ntoa=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_nsl_inet_ntoa" >&5 +-$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; } +-if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then : +- $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h +- LIBS="$LIBS -lnsl" +-fi +- +-fi +- +-if test "$use_threads" = "yes"; then +- CFLAGS="$CFLAGS -DENABLE_THREADS -D_REENTRANT" +-fi +- +- +-# Checking for mingw +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking For MinGW32" >&5 +-$as_echo_n "checking For MinGW32... " >&6; } +-case "$host" in +- *-*-mingw*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- CFLAGS="$CFLAGS -DWIN32_DLL" +- LIBS="$LIBS -lz -lwsock32 -lgdi32 -lkernel32" # for openssl +- TARGET="shared_mingw" +- ;; +- *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } ;; +-esac +- +-if test "$use_openssl" = "yes"; then +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5 +-$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; } +-if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} 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 CRYPTO_new_ex_data (); +-int +-main () +-{ +-return CRYPTO_new_ex_data (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_crypto_CRYPTO_new_ex_data=yes +-else +- ac_cv_lib_crypto_CRYPTO_new_ex_data=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_CRYPTO_new_ex_data" >&5 +-$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; } +-if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBCRYPTO 1 +-_ACEOF +- +- LIBS="-lcrypto $LIBS" +- +-else +- as_fn_error $? "OpenSSL not found" "$LINENO" 5 +-fi +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 +-$as_echo_n "checking for SSL_library_init in -lssl... " >&6; } +-if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- ac_check_lib_save_LIBS=$LIBS +-LIBS="-lssl $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 SSL_library_init (); +-int +-main () +-{ +-return SSL_library_init (); +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_link "$LINENO"; then : +- ac_cv_lib_ssl_SSL_library_init=yes +-else +- ac_cv_lib_ssl_SSL_library_init=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_ssl_SSL_library_init" >&5 +-$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } +-if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : +- cat >>confdefs.h <<_ACEOF +-#define HAVE_LIBSSL 1 +-_ACEOF +- +- LIBS="-lssl $LIBS" +- +-else +- as_fn_error $? "OpenSSL not found" "$LINENO" 5 +-fi +- +- ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" +-if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : +- +-else +- as_fn_error $? "OpenSSL headers not found; did you install the -dev package?" "$LINENO" 5 +-fi +- +- +- CFLAGS="$CFLAGS -DENABLE_SSL" +-fi +- +- +- +- +- +-ac_config_files="$ac_config_files examples/Makefile src/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 -p'. +- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +- as_ln_s='cp -p' +- elif ln conf$$.file conf$$ 2>/dev/null; then +- as_ln_s=ln +- else +- as_ln_s='cp -p' +- fi +-else +- as_ln_s='cp -p' +-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 +- +-if test -x / >/dev/null 2>&1; then +- as_test_x='test -x' +-else +- if ls -dL / >/dev/null 2>&1; then +- as_ls_L_option=L +- else +- as_ls_L_option= +- fi +- as_test_x=' +- eval sh -c '\'' +- if test -d "$1"; then +- test -d "$1/."; +- else +- case $1 in #( +- -*)set "./$1";; +- esac; +- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( +- ???[sx]*):;;*)false;;esac;fi +- '\'' sh +- ' +-fi +-as_executable_p=$as_test_x +- +-# 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 libircclient $as_me 1.3, which was +-generated by GNU Autoconf 2.68. 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 ." +- +-_ACEOF +-cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +-ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +-ac_cs_version="\\ +-libircclient config.status 1.3 +-configured by $0, generated by GNU Autoconf 2.68, +- with options \\"\$ac_cs_config\\" +- +-Copyright (C) 2010 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' +-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 +- "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; +- "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; +- "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/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 +- # +- +-_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 +-$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 +- diff -Nru libircclient-1.3+dfsg1/debian/patches/series libircclient-1.8/debian/patches/series --- libircclient-1.3+dfsg1/debian/patches/series 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/patches/series 2014-09-18 13:32:21.000000000 +0000 @@ -1 +1,2 @@ -00_fix_missing_headers.diff +proper-lib-building.patch +fix-ipv6-socaddr.patch diff -Nru libircclient-1.3+dfsg1/debian/README.Debian libircclient-1.8/debian/README.Debian --- libircclient-1.3+dfsg1/debian/README.Debian 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/debian/README.Debian 2014-09-18 13:32:21.000000000 +0000 @@ -0,0 +1,6 @@ +libircclient for Debian +----------------------- + +Full information on how to use the library can be found +here: http://www.ulduzsoft.com/libircclient + -- Dariusz Dwornikowski , Fri, 22 Aug 2014 11:30:02 +0200 diff -Nru libircclient-1.3+dfsg1/debian/rules libircclient-1.8/debian/rules --- libircclient-1.3+dfsg1/debian/rules 2014-10-25 09:57:24.000000000 +0000 +++ libircclient-1.8/debian/rules 2014-09-18 13:32:21.000000000 +0000 @@ -1,61 +1,8 @@ #!/usr/bin/make -f -include /usr/share/quilt/quilt.make -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +%: + dh $@ --with autoreconf -BUILDDIR=$(CURDIR)/debian/build - -configure: configure-stamp -configure-stamp: $(QUILT_STAMPFN) - dh_testdir - chmod +x $(BUILDDIR)/bootstrap.sh - set -e; cd $(BUILDDIR); ./bootstrap.sh; \ - ./configure --build $(DEB_BUILD_GNU_TYPE) \ - --host $(DEB_HOST_GNU_TYPE) --prefix=/usr - touch $@ - -build: build-stamp -build-stamp: configure - dh_testdir - $(MAKE) -C $(BUILDDIR) - touch $@ - -clean: unpatch - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - [ ! -f $(BUILDDIR)/Makefile ] || $(MAKE) -C $(BUILDDIR) maintainer-clean - cd $(BUILDDIR); rm -f aclocal.m4 config.sub depcomp configure \ - install-sh Makefile.in config.guess ltmain.sh missing config.h.in - dh_clean - -install: build - dh_testdir - dh_testroot - dh_prep - $(MAKE) -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install - -binary-indep: build install - -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs Changelog - dh_installdocs - dh_install --fail-missing - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms - dh_makeshlibs - dh_installdeb - dh_shlibdeps -V "libircclient (>= 1.2)" - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +override_dh_auto_configure: + dh_auto_configure -- --enable-ipv6 diff -Nru libircclient-1.3+dfsg1/debian/source/format libircclient-1.8/debian/source/format --- libircclient-1.3+dfsg1/debian/source/format 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/debian/source/format 2014-09-18 13:32:21.000000000 +0000 @@ -0,0 +1 @@ +3.0 (quilt) diff -Nru libircclient-1.3+dfsg1/doc/conf.py libircclient-1.8/doc/conf.py --- libircclient-1.3+dfsg1/doc/conf.py 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/doc/conf.py 2013-06-24 06:09:38.603106000 +0000 @@ -0,0 +1,285 @@ +# -*- coding: utf-8 -*- +# +# Libircclient documentation build configuration file, created by +# sphinx-quickstart on Sat Jun 15 22:37:32 2013. +# +# This file is execfile()d with the current directory set to its containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys, os + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +#sys.path.insert(0, os.path.abspath('.')) + +# -- General configuration ----------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +#needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be extensions +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.doctest', 'rst2pdf.pdfbuilder'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8-sig' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u'Libircclient' +copyright = u'2013, George Yunaev' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = '1.7' +# The full version, including alpha/beta/rc tags. +release = '1.7' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +exclude_patterns = ['_build'] + +# The reST default role (used for this markup: `text`) to use for all documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# A list of ignored prefixes for module index sorting. +#modindex_common_prefix = [] + + +# -- Options for HTML output --------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = 'default' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +#html_theme_options = {} + +# Add any paths that contain custom themes here, relative to this directory. +#html_theme_path = [] + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = None + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_domain_indices = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, links to the reST sources are added to the pages. +#html_show_sourcelink = True + +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. +#html_show_sphinx = True + +# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. +#html_show_copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# This is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = None + +# Output file base name for HTML help builder. +htmlhelp_basename = 'Libircclientdoc' + + +# -- Options for LaTeX output -------------------------------------------------- + +latex_elements = { +# The paper size ('letterpaper' or 'a4paper'). +'papersize': 'letterpaper', + +# The font size ('10pt', '11pt' or '12pt'). +'pointsize': '10pt', + +# Additional stuff for the LaTeX preamble. +'preamble': '\setcounter{tocdepth}{4}', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, documentclass [howto/manual]). +latex_documents = [ + ('index', 'Libircclient.tex', u'Libircclient Documentation', + u'George Yunaev', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = None + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# If true, show page references after internal links. +#latex_show_pagerefs = False + +# If true, show URL addresses after external links. +#latex_show_urls = False + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_domain_indices = True + + +# -- Options for manual page output -------------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + ('index', 'libircclient', u'Libircclient Documentation', + [u'George Yunaev'], 1) +] + +# If true, show URL addresses after external links. +#man_show_urls = False + + +# -- Options for Texinfo output ------------------------------------------------ + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ('index', 'Libircclient', u'Libircclient Documentation', + u'George Yunaev', 'Libircclient', 'One line description of project.', + 'Miscellaneous'), +] + +# Documents to append as an appendix to all manuals. +#texinfo_appendices = [] + +# If false, no module index is generated. +#texinfo_domain_indices = True + +# How to display URL addresses: 'footnote', 'no', or 'inline'. +#texinfo_show_urls = 'footnote' + + +# -- Options for Epub output --------------------------------------------------- + +# Bibliographic Dublin Core info. +epub_title = u'Libircclient' +epub_author = u'George Yunaev' +epub_publisher = u'George Yunaev' +epub_copyright = u'2013, George Yunaev' + +# The language of the text. It defaults to the language option +# or en if the language is not set. +#epub_language = '' + +# The scheme of the identifier. Typical schemes are ISBN or URL. +#epub_scheme = '' + +# The unique identifier of the text. This can be a ISBN number +# or the project homepage. +#epub_identifier = '' + +# A unique identification for the text. +#epub_uid = '' + +# A tuple containing the cover image and cover page html template filenames. +#epub_cover = () + +# HTML files that should be inserted before the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_pre_files = [] + +# HTML files shat should be inserted after the pages created by sphinx. +# The format is a list of tuples containing the path and title. +#epub_post_files = [] + +# A list of files that should not be packed into the epub file. +#epub_exclude_files = [] + +# The depth of the table of contents in toc.ncx. +#epub_tocdepth = 3 + +# Allow duplicate toc entries. +#epub_tocdup = True diff -Nru libircclient-1.3+dfsg1/doc/html/annotated.html libircclient-1.8/doc/html/annotated.html --- libircclient-1.3+dfsg1/doc/html/annotated.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/annotated.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,34 +0,0 @@ - - -libircclient: Data Structures - - - - - -
-

Data Structures

Here are the data structures with brief descriptions: - -
irc_callbacks_tEvent callbacks structure
-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/doxygen.css libircclient-1.8/doc/html/doxygen.css --- libircclient-1.3+dfsg1/doc/html/doxygen.css 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/doxygen.css 1970-01-01 00:00:00.000000000 +0000 @@ -1,473 +0,0 @@ -BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { - font-family: Geneva, Arial, Helvetica, sans-serif; -} -BODY,TD { - font-size: 90%; -} -H1 { - text-align: center; - font-size: 160%; -} -H2 { - font-size: 120%; -} -H3 { - font-size: 100%; -} -CAPTION { - font-weight: bold -} -DIV.qindex { - width: 100%; - background-color: #e8eef2; - border: 1px solid #84b0c7; - text-align: center; - margin: 2px; - padding: 2px; - line-height: 140%; -} -DIV.navpath { - width: 100%; - background-color: #e8eef2; - border: 1px solid #84b0c7; - text-align: center; - margin: 2px; - padding: 2px; - line-height: 140%; -} -DIV.navtab { - background-color: #e8eef2; - border: 1px solid #84b0c7; - text-align: center; - margin: 2px; - margin-right: 15px; - padding: 2px; -} -TD.navtab { - font-size: 70%; -} -A.qindex { - text-decoration: none; - font-weight: bold; - color: #1A419D; -} -A.qindex:visited { - text-decoration: none; - font-weight: bold; - color: #1A419D -} -A.qindex:hover { - text-decoration: none; - background-color: #ddddff; -} -A.qindexHL { - text-decoration: none; - font-weight: bold; - background-color: #6666cc; - color: #ffffff; - border: 1px double #9295C2; -} -A.qindexHL:hover { - text-decoration: none; - background-color: #6666cc; - color: #ffffff; -} -A.qindexHL:visited { - text-decoration: none; - background-color: #6666cc; - color: #ffffff -} -A.el { - text-decoration: none; - font-weight: bold -} -A.elRef { - font-weight: bold -} -A.code:link { - text-decoration: none; - font-weight: normal; - color: #0000FF -} -A.code:visited { - text-decoration: none; - font-weight: normal; - color: #0000FF -} -A.codeRef:link { - font-weight: normal; - color: #0000FF -} -A.codeRef:visited { - font-weight: normal; - color: #0000FF -} -A:hover { - text-decoration: none; - background-color: #f2f2ff -} -DL.el { - margin-left: -1cm -} -.fragment { - font-family: monospace, fixed; - font-size: 95%; -} -PRE.fragment { - border: 1px solid #CCCCCC; - background-color: #f5f5f5; - margin-top: 4px; - margin-bottom: 4px; - margin-left: 2px; - margin-right: 8px; - padding-left: 6px; - padding-right: 6px; - padding-top: 4px; - padding-bottom: 4px; -} -DIV.ah { - background-color: black; - font-weight: bold; - color: #ffffff; - margin-bottom: 3px; - margin-top: 3px -} - -DIV.groupHeader { - margin-left: 16px; - margin-top: 12px; - margin-bottom: 6px; - font-weight: bold; -} -DIV.groupText { - margin-left: 16px; - font-style: italic; - font-size: 90% -} -BODY { - background: white; - color: black; - margin-right: 20px; - margin-left: 20px; -} -TD.indexkey { - background-color: #e8eef2; - font-weight: bold; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px; - border: 1px solid #CCCCCC; -} -TD.indexvalue { - background-color: #e8eef2; - font-style: italic; - padding-right : 10px; - padding-top : 2px; - padding-left : 10px; - padding-bottom : 2px; - margin-left : 0px; - margin-right : 0px; - margin-top : 2px; - margin-bottom : 2px; - border: 1px solid #CCCCCC; -} -TR.memlist { - background-color: #f0f0f0; -} -P.formulaDsp { - text-align: center; -} -IMG.formulaDsp { -} -IMG.formulaInl { - vertical-align: middle; -} -SPAN.keyword { color: #008000 } -SPAN.keywordtype { color: #604020 } -SPAN.keywordflow { color: #e08000 } -SPAN.comment { color: #800000 } -SPAN.preprocessor { color: #806020 } -SPAN.stringliteral { color: #002080 } -SPAN.charliteral { color: #008080 } -SPAN.vhdldigit { color: #ff00ff } -SPAN.vhdlchar { color: #000000 } -SPAN.vhdlkeyword { color: #700070 } -SPAN.vhdllogic { color: #ff0000 } - -.mdescLeft { - padding: 0px 8px 4px 8px; - font-size: 80%; - font-style: italic; - background-color: #FAFAFA; - border-top: 1px none #E0E0E0; - border-right: 1px none #E0E0E0; - border-bottom: 1px none #E0E0E0; - border-left: 1px none #E0E0E0; - margin: 0px; -} -.mdescRight { - padding: 0px 8px 4px 8px; - font-size: 80%; - font-style: italic; - background-color: #FAFAFA; - border-top: 1px none #E0E0E0; - border-right: 1px none #E0E0E0; - border-bottom: 1px none #E0E0E0; - border-left: 1px none #E0E0E0; - margin: 0px; -} -.memItemLeft { - padding: 1px 0px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-top-style: solid; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - background-color: #FAFAFA; - font-size: 80%; -} -.memItemRight { - padding: 1px 8px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-top-style: solid; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - background-color: #FAFAFA; - font-size: 80%; -} -.memTemplItemLeft { - padding: 1px 0px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-top-style: none; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - background-color: #FAFAFA; - font-size: 80%; -} -.memTemplItemRight { - padding: 1px 8px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-top-style: none; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - background-color: #FAFAFA; - font-size: 80%; -} -.memTemplParams { - padding: 1px 0px 0px 8px; - margin: 4px; - border-top-width: 1px; - border-right-width: 1px; - border-bottom-width: 1px; - border-left-width: 1px; - border-top-color: #E0E0E0; - border-right-color: #E0E0E0; - border-bottom-color: #E0E0E0; - border-left-color: #E0E0E0; - border-top-style: solid; - border-right-style: none; - border-bottom-style: none; - border-left-style: none; - color: #606060; - background-color: #FAFAFA; - font-size: 80%; -} -.search { - color: #003399; - font-weight: bold; -} -FORM.search { - margin-bottom: 0px; - margin-top: 0px; -} -INPUT.search { - font-size: 75%; - color: #000080; - font-weight: normal; - background-color: #e8eef2; -} -TD.tiny { - font-size: 75%; -} -a { - color: #1A41A8; -} -a:visited { - color: #2A3798; -} -.dirtab { - padding: 4px; - border-collapse: collapse; - border: 1px solid #84b0c7; -} -TH.dirtab { - background: #e8eef2; - font-weight: bold; -} -HR { - height: 1px; - border: none; - border-top: 1px solid black; -} - -/* Style for detailed member documentation */ -.memtemplate { - font-size: 80%; - color: #606060; - font-weight: normal; - margin-left: 3px; -} -.memnav { - background-color: #e8eef2; - border: 1px solid #84b0c7; - text-align: center; - margin: 2px; - margin-right: 15px; - padding: 2px; -} -.memitem { - padding: 4px; - background-color: #eef3f5; - border-width: 1px; - border-style: solid; - border-color: #dedeee; - -moz-border-radius: 8px 8px 8px 8px; -} -.memname { - white-space: nowrap; - font-weight: bold; -} -.memdoc{ - padding-left: 10px; -} -.memproto { - background-color: #d5e1e8; - width: 100%; - border-width: 1px; - border-style: solid; - border-color: #84b0c7; - font-weight: bold; - -moz-border-radius: 8px 8px 8px 8px; -} -.paramkey { - text-align: right; -} -.paramtype { - white-space: nowrap; -} -.paramname { - color: #602020; - font-style: italic; - white-space: nowrap; -} -/* End Styling for detailed member documentation */ - -/* for the tree view */ -.ftvtree { - font-family: sans-serif; - margin:0.5em; -} -/* these are for tree view when used as main index */ -.directory { - font-size: 9pt; - font-weight: bold; -} -.directory h3 { - margin: 0px; - margin-top: 1em; - font-size: 11pt; -} - -/* The following two styles can be used to replace the root node title */ -/* with an image of your choice. Simply uncomment the next two styles, */ -/* specify the name of your image and be sure to set 'height' to the */ -/* proper pixel height of your image. */ - -/* .directory h3.swap { */ -/* height: 61px; */ -/* background-repeat: no-repeat; */ -/* background-image: url("yourimage.gif"); */ -/* } */ -/* .directory h3.swap span { */ -/* display: none; */ -/* } */ - -.directory > h3 { - margin-top: 0; -} -.directory p { - margin: 0px; - white-space: nowrap; -} -.directory div { - display: none; - margin: 0px; -} -.directory img { - vertical-align: -30%; -} -/* these are for tree view when not used as main index */ -.directory-alt { - font-size: 100%; - font-weight: bold; -} -.directory-alt h3 { - margin: 0px; - margin-top: 1em; - font-size: 11pt; -} -.directory-alt > h3 { - margin-top: 0; -} -.directory-alt p { - margin: 0px; - white-space: nowrap; -} -.directory-alt div { - display: none; - margin: 0px; -} -.directory-alt img { - vertical-align: -30%; -} - Binary files /tmp/E2D54hf3nf/libircclient-1.3+dfsg1/doc/html/doxygen.png and /tmp/KWj2gbk6pU/libircclient-1.8/doc/html/doxygen.png differ diff -Nru libircclient-1.3+dfsg1/doc/html/files.html libircclient-1.8/doc/html/files.html --- libircclient-1.3+dfsg1/doc/html/files.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/files.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,40 +0,0 @@ - - -libircclient: File Index - - - - - -
-

File List

Here is a list of all documented files with brief descriptions: - - - - - - - -
libirc_doc.hThis file contains Doxygen modules
libirc_doc_faq.hThis file contains libircclient FAQ
libirc_errors.hThis file defines error codes generated by libircclient
libirc_events.hDescribes event callbacks generated by libircclient
libirc_options.hThis file defines the options used in irc_session_options()
libirc_rfcnumeric.hThis file defines RFC numeric reply codes, which should be used in event_numeric callback. Every code also has a comment regarding its arguments
libircclient.hThis file defines all prototypes and functions to use libircclient
-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/functions.html libircclient-1.8/doc/html/functions.html --- libircclient-1.3+dfsg1/doc/html/functions.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/functions.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,81 +0,0 @@ - - -libircclient: Data Fields - - - - - -
-Here is a list of all documented struct and union fields with links to the struct/union documentation for each field: -

-

-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/functions_vars.html libircclient-1.8/doc/html/functions_vars.html --- libircclient-1.3+dfsg1/doc/html/functions_vars.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/functions_vars.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,81 +0,0 @@ - - -libircclient: Data Fields - Variables - - - - - -
-  -

-

-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/globals_defs.html libircclient-1.8/doc/html/globals_defs.html --- libircclient-1.3+dfsg1/doc/html/globals_defs.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/globals_defs.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,356 +0,0 @@ - - -libircclient: Data Fields - - - - - -
-  -

-

- l -

-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/globals_func.html libircclient-1.8/doc/html/globals_func.html --- libircclient-1.3+dfsg1/doc/html/globals_func.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/globals_func.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,138 +0,0 @@ - - -libircclient: Data Fields - - - - - -
-  -

-

- i -

-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/globals.html libircclient-1.8/doc/html/globals.html --- libircclient-1.3+dfsg1/doc/html/globals.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/globals.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,155 +0,0 @@ - - -libircclient: Data Fields - - - - - -
-Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: -

-

- i -

-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/globals_type.html libircclient-1.8/doc/html/globals_type.html --- libircclient-1.3+dfsg1/doc/html/globals_type.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/globals_type.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,59 +0,0 @@ - - -libircclient: Data Fields - - - - - -
-  -

-

-
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__common.html libircclient-1.8/doc/html/group__common.html --- libircclient-1.3+dfsg1/doc/html/group__common.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__common.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ - - -libircclient: Getting libircclient version. - - - - - -
-

Getting libircclient version.

- - - - - -

Functions

void irc_get_version (unsigned int *high, unsigned int *low)
 Obtains a libircclient version.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void irc_get_version (unsigned int *  high,
unsigned int *  low 
)
-
-
- -

-Obtains a libircclient version. -

-

Parameters:
- - - -
high A pointer to receive the high version part.
low A pointer to receive the low version part.
-
-This function returns the libircclient version. You can use the version either to check whether required options are available, or to output the version. The preferred printf-like format string to output the version is:

-printf ("Version: %d.%02d", high, low); -

-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__conndisc.html libircclient-1.8/doc/html/group__conndisc.html --- libircclient-1.3+dfsg1/doc/html/group__conndisc.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__conndisc.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,251 +0,0 @@ - - -libircclient: Connecting, disconnecting from IRC server. - - - - - -
-

Connecting, disconnecting from IRC server.

- - - - - - - - - - - - - - -

Functions

int irc_connect (irc_session_t *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)
 Initiates a connection to IRC server.
int irc_connect6 (irc_session_t *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)
 Initiates a connection to IRC server using IPv6.
void irc_disconnect (irc_session_t *session)
 Disconnects a connection to IRC server.
int irc_is_connected (irc_session_t *session)
 Checks whether the session is connecting/connected to the IRC server.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_connect (irc_session_t session,
const char *  server,
unsigned short  port,
const char *  server_password,
const char *  nick,
const char *  username,
const char *  realname 
)
-
-
- -

-Initiates a connection to IRC server. -

-

Parameters:
- - - - - - - - -
session A session to initiate connections on. Must not be NULL.
server A domain name or an IP address of the IRC server to connect to. Must not be NULL.
port An IRC server port, usually 6667.
server_password An IRC server password, if the server requires it. May be NULL, in this case password will not be send to the IRC server. Vast majority of IRC servers do not require passwords.
nick A nick, which libircclient will use to login to the IRC server. Must not be NULL.
username A username of the account, which is used to connect to the IRC server. This is for information only, will be shown in "user properties" dialogs and returned by /whois request. May be NULL, in this case 'nobody' will be sent as username.
realname A real name of the person, who connects to the IRC. Usually people put some wide-available information here (URL, small description or something else). This information also will be shown in "user properties" dialogs and returned by /whois request. May be NULL, in this case 'noname' will be sent as username.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function prepares and initiates a connection to the IRC server. The connection is done asynchronously (see irc_callbacks_t::event_connect), so the success return value means that connection was initiated (but not completed!) successfully.

-

See also:
irc_run
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_connect6 (irc_session_t session,
const char *  server,
unsigned short  port,
const char *  server_password,
const char *  nick,
const char *  username,
const char *  realname 
)
-
-
- -

-Initiates a connection to IRC server using IPv6. -

-

Parameters:
- - - - - - - - -
session A session to initiate connections on. Must not be NULL.
server A domain name or an IP address of the IRC server to connect to. Must not be NULL.
port An IRC server port, usually 6667.
server_password An IRC server password, if the server requires it. May be NULL, in this case password will not be send to the IRC server. Vast majority of IRC servers do not require passwords.
nick A nick, which libircclient will use to login to the IRC server. Must not be NULL.
username A username of the account, which is used to connect to the IRC server. This is for information only, will be shown in "user properties" dialogs and returned by /whois request. May be NULL, in this case 'nobody' will be sent as username.
realname A real name of the person, who connects to the IRC. Usually people put some wide-available information here (URL, small description or something else). This information also will be shown in "user properties" dialogs and returned by /whois request. May be NULL, in this case 'noname' will be sent as username.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function prepares and initiates a connection to the IRC server. The connection is done asynchronously (see irc_callbacks_t::event_connect), so the success return value means that connection was initiated (but not completed!) successfully.

-

See also:
irc_run
- -
-

- -

-
- - - - - - - - - -
void irc_disconnect (irc_session_t session  ) 
-
-
- -

-Disconnects a connection to IRC server. -

-

Parameters:
- - -
session An IRC session.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function closes the IRC connection. After that connection is closed, libircclient automatically leaves irc_run loop.

-

See also:
irc_connect irc_run
- -
-

- -

-
- - - - - - - - - -
int irc_is_connected (irc_session_t session  ) 
-
-
- -

-Checks whether the session is connecting/connected to the IRC server. -

-

Parameters:
- - -
session An initialized IRC session.
-
-
Returns:
Return code 1 means that session is connecting or connected to the IRC server, zero value means that the session has been disconnected.
-
See also:
irc_connect irc_run
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__contexts.html libircclient-1.8/doc/html/group__contexts.html --- libircclient-1.3+dfsg1/doc/html/group__contexts.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__contexts.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,104 +0,0 @@ - - -libircclient: Managing contexts. - - - - - -
-

Managing contexts.

- - - - - - - - -

Functions

void irc_set_ctx (irc_session_t *session, void *ctx)
 Sets the IRC session context.
void * irc_get_ctx (irc_session_t *session)
 Returns the IRC session context.
-

Function Documentation

- -
-
- - - - - - - - - -
void * irc_get_ctx (irc_session_t session  ) 
-
-
- -

-Returns the IRC session context. -

-

Parameters:
- - -
session An initiated session.
-
-This function returns the IRC session context, which was set by irc_set_ctx(). If no context was set, this function returns NULL.

-

See also:
irc_set_ctx
- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
void irc_set_ctx (irc_session_t session,
void *  ctx 
)
-
-
- -

-Sets the IRC session context. -

-

Parameters:
- - - -
session An initiated session.
ctx A context.
-
-This function sets the user-defined context for this IRC session. This context is not used by libircclient. Its purpose is to store session-specific user data, which may be obtained later by calling irc_get_ctx(). Note that libircclient just 'carries out' this pointer. If you allocate some memory, and store its address in ctx (most common usage), it is your responsibility to free it before calling irc_destroy_session().

-

See also:
irc_get_ctx
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__ctcp.html libircclient-1.8/doc/html/group__ctcp.html --- libircclient-1.3+dfsg1/doc/html/group__ctcp.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__ctcp.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,135 +0,0 @@ - - -libircclient: CTCP requests and replies. - - - - - -
-

CTCP requests and replies.

- - - - - - - - -

Functions

int irc_cmd_ctcp_request (irc_session_t *session, const char *nick, const char *request)
 Generates a CTCP request.
int irc_cmd_ctcp_reply (irc_session_t *session, const char *nick, const char *reply)
 Generates a reply to the CTCP request.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_ctcp_reply (irc_session_t session,
const char *  nick,
const char *  reply 
)
-
-
- -

-Generates a reply to the CTCP request. -

-

Parameters:
- - - - -
session An initiated and connected session.
nick A target nick to send request to. Must not be NULL.
reply A reply string. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to send a reply to the CTCP request, generated by irc_callbacks_t::event_ctcp_req. Note that you will not receive this event unless you specify your own handler as event_ctcp_req callback during the IRC session initialization.

-Possible error responces for this command from the RFC1459:

- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_ctcp_request (irc_session_t session,
const char *  nick,
const char *  request 
)
-
-
- -

-Generates a CTCP request. -

-

Parameters:
- - - - -
session An initiated and connected session.
nick A target nick to send request to. Must not be NULL.
request A request string. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to send a CTCP request. There are four CTCP requests supported by Mirc: VERSION - get the client software name and version FINGER - get the client username, host and real name. PING - get the client delay. TIME - get the client local time.

-A reply to the CTCP request will be sent by the irc_callbacks_t::event_ctcp_rep callback; be sure to define it.

-Possible error responces for this command from the RFC1459:

-

-

See also:
irc_callbacks_t::event_ctcp_rep irc_callbacks_t::event_numeric
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__dccstuff.html libircclient-1.8/doc/html/group__dccstuff.html --- libircclient-1.3+dfsg1/doc/html/group__dccstuff.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__dccstuff.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,408 +0,0 @@ - - -libircclient: DCC chat/send requests and replies. - - - - - -
-

DCC chat/send requests and replies.

- - - - - - - - - - - - - - - - - - - - - - - - -

Typedefs

typedef void(* irc_dcc_callback_t )(irc_session_t *session, irc_dcc_t id, int status, void *ctx, const char *data, unsigned int length)
 A common DCC callback, used to inform you about the current DCC state or event.

Functions

int irc_dcc_chat (irc_session_t *session, void *ctx, const char *nick, irc_dcc_callback_t callback, irc_dcc_t *dccid)
 Initiates a DCC CHAT.
int irc_dcc_msg (irc_session_t *session, irc_dcc_t dccid, const char *text)
 Sends the message to the specific DCC CHAT.
int irc_dcc_accept (irc_session_t *session, irc_dcc_t dccid, void *ctx, irc_dcc_callback_t callback)
 Accepts a remote DCC CHAT or DCC RECVFILE request.
int irc_dcc_decline (irc_session_t *session, irc_dcc_t dccid)
 Declines a remote DCC CHAT or DCC RECVFILE request.
int irc_dcc_sendfile (irc_session_t *session, void *ctx, const char *nick, const char *filename, irc_dcc_callback_t callback, irc_dcc_t *dccid)
 Sends a file via DCC.
int irc_dcc_destroy (irc_session_t *session, irc_dcc_t dccid)
 Destroys a DCC session.
-

Typedef Documentation

- -
-
- - - - -
typedef void(* irc_dcc_callback_t)(irc_session_t *session, irc_dcc_t id, int status, void *ctx, const char *data, unsigned int length)
-
-
- -

-A common DCC callback, used to inform you about the current DCC state or event. -

-

Parameters:
- - - - - - - -
session An IRC session which generates the callback
id A DCC session id.
status An error status. 0 means no error, otherwise error code.
ctx A user-supplied context.
data Data supplied (if available)
length data length (if available)
-
-This callback is called for all DCC functions when state change occurs.

-For DCC CHAT, the callback is called in next circumstances:

    -
  • status is LIBIRC_ERR_CLOSED: connection is closed by remote peer. After returning from the callback, the DCC session is automatically destroyed.
  • status is neither 0 nor LIBIRC_ERR_CLOSED: socket I/O error (connect error, accept error, recv error, send error). After returning from the callback, the DCC session is automatically destroyed.
  • status is 0: new chat message received, data contains the message (null-terminated string), length contains the message length.
-

-For DCC SEND, while file is sending, callback called in next circumstances:

    -
  • status is neither 0 nor LIBIRC_ERR_CLOSED: socket I/O error (connect error, accept error, recv error, send error). After returning from the callback, the DCC session is automatically destroyed.
  • status is 0: new data received, data contains the data received, length contains the amount of data received.
-

-For DCC RECV, while file is sending, callback called in next circumstances:

    -
  • status is neither 0 nor LIBIRC_ERR_CLOSED: socket I/O error (connect error, accept error, recv error, send error). After returning from the callback, the DCC session is automatically destroyed.
  • status is 0, and data is 0: file has been received successfully. After returning from the callback, the DCC session is automatically destroyed.
  • status is 0, and data is not 0: new data received, data contains the data received, length contains the amount of data received.
- -
-

-


Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_dcc_accept (irc_session_t session,
irc_dcc_t  dccid,
void *  ctx,
irc_dcc_callback_t  callback 
)
-
-
- -

-Accepts a remote DCC CHAT or DCC RECVFILE request. -

-

Parameters:
- - - - - -
session An initiated and connected session.
dccid A DCC session ID, returned by appropriate callback.
ctx A user-supplied DCC session context, which will be passed to the DCC callback function. May be NULL.
callback A DCC callback function, which will be called when anything is said by other party. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function accepts a remote DCC request - either DCC CHAT or DCC FILE. After the request is accepted, the supplied callback will be called, and you can start sending messages or receiving the file.

-This function should be called only after either event_dcc_chat_req or event_dcc_send_req events are generated, and should react to them. It is possible not to call irc_dcc_accept or irc_dcc_decline immediately in callback function - you may just return, and call it later. However, to prevent memory leaks, you must call either irc_dcc_decline or irc_dcc_accept for any incoming DCC request.

-

See also:
irc_dcc_decline event_dcc_chat_req event_dcc_send_req
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_dcc_chat (irc_session_t session,
void *  ctx,
const char *  nick,
irc_dcc_callback_t  callback,
irc_dcc_t dccid 
)
-
-
- -

-Initiates a DCC CHAT. -

-

Parameters:
- - - - - - -
session An initiated and connected session.
ctx A user-supplied DCC session context, which will be passed to the DCC callback function. May be NULL.
nick A nick to DCC CHAT with.
callback A DCC callback function, which will be called when anything is said by other party. Must not be NULL.
dccid On success, DCC session ID will be stored in this var.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function requests a DCC CHAT between you and other user. For newbies, DCC chat is like private chat, but it goes directly between two users, and bypasses IRC server. DCC CHAT request must be accepted by other side before you can send anything.

-When the chat is accepted, terminated, or some data is received, the callback function is called. See the details in irc_dcc_callback_t declaration.

-Possible error responces for this command from the RFC1459:

-

-

See also:
irc_dcc_callback_t irc_dcc_msg
- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_dcc_decline (irc_session_t session,
irc_dcc_t  dccid 
)
-
-
- -

-Declines a remote DCC CHAT or DCC RECVFILE request. -

-

Parameters:
- - - -
session An initiated and connected session.
dccid A DCC session ID, returned by appropriate callback.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function declines a remote DCC request - either DCC CHAT or DCC FILE.

-This function should be called only after either event_dcc_chat_req or event_dcc_send_req events are generated, and should react to them. It is possible not to call irc_dcc_accept or irc_dcc_decline immediately in callback function - you may just return, and call it later. However, to prevent memory leaks, you must call either irc_dcc_decline or irc_dcc_accept for any incoming DCC request.

-Do not use this function to close the accepted or initiated DCC session. Use irc_dcc_destroy instead.

-

See also:
irc_dcc_accept irc_callbacks_t::event_dcc_chat_req irc_callbacks_t::event_dcc_send_req irc_dcc_destroy
- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_dcc_destroy (irc_session_t session,
irc_dcc_t  dccid 
)
-
-
- -

-Destroys a DCC session. -

-

Parameters:
- - - -
session An initiated and connected session.
dccid A DCC session ID.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function closes the DCC connection (if available), and destroys the DCC session, freeing the used resources. It can be called in any moment, even from callbacks or from different threads.

-Note that when DCC session is finished (either with success or failure), you should not destroy it - it will be destroyed automatically. -

-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_dcc_msg (irc_session_t session,
irc_dcc_t  dccid,
const char *  text 
)
-
-
- -

-Sends the message to the specific DCC CHAT. -

-

Parameters:
- - - - -
session An IRC session.
dccid A DCC session ID, which chat request must have been accepted.
text Message text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function is used to send the DCC CHAT messages. DCC CHAT request must be initiated and accepted first (or just accepted, if initiated by other side).

-

See also:
irc_dcc_chat
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_dcc_sendfile (irc_session_t session,
void *  ctx,
const char *  nick,
const char *  filename,
irc_dcc_callback_t  callback,
irc_dcc_t dccid 
)
-
-
- -

-Sends a file via DCC. -

-

Parameters:
- - - - - - - -
session An initiated and connected session.
ctx A user-supplied DCC session context, which will be passed to the DCC callback function. May be NULL.
nick A nick to send file via DCC to.
filename A file name to sent. Must be an existing file.
callback A DCC callback function, which will be called when file sent operation is failed, progressed or completed.
dccid On success, DCC session ID will be stored in this var.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function generates a DCC SEND request to send the file. When it is accepted, the file is sent to the remote party, and the DCC session is closed. The send operation progress and result can be checked in callback. See the details in irc_dcc_callback_t declaration.

-Possible error responces for this command from the RFC1459:

-

-

See also:
irc_dcc_callback_t
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__errorcodes.html libircclient-1.8/doc/html/group__errorcodes.html --- libircclient-1.3+dfsg1/doc/html/group__errorcodes.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__errorcodes.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,353 +0,0 @@ - - -libircclient: Error codes generated by libircclient. - - - - - -
-

Error codes generated by libircclient.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Defines

#define LIBIRC_ERR_OK   0
#define LIBIRC_ERR_INVAL   1
 Invalid argument.
#define LIBIRC_ERR_RESOLV   2
 Could not resolve host.
#define LIBIRC_ERR_SOCKET   3
 Could not create socket.
#define LIBIRC_ERR_CONNECT   4
 Could not connect.
#define LIBIRC_ERR_CLOSED   5
 Connection closed by remote peer.
#define LIBIRC_ERR_NOMEM   6
 Out of memory.
#define LIBIRC_ERR_ACCEPT   7
 Could not accept new connection.
#define LIBIRC_ERR_NODCCSEND   9
 Could not send this.
#define LIBIRC_ERR_READ   10
 Could not read DCC file or socket.
#define LIBIRC_ERR_WRITE   11
 Could not write DCC file or socket.
#define LIBIRC_ERR_STATE   12
 Invalid state.
#define LIBIRC_ERR_TIMEOUT   13
 Operation timed out.
#define LIBIRC_ERR_OPENFILE   14
 Could not open file for DCC send.
#define LIBIRC_ERR_TERMINATED   15
 IRC server connection terminated.
#define LIBIRC_ERR_NOIPV6   16
 IPv6 not supported.
-

Define Documentation

- -
-
- - - - -
#define LIBIRC_ERR_ACCEPT   7
-
-
- -

-Could not accept new connection. -

-A DCC chat/send connection from the remote peer could not be accepted. Either the connection was just terminated before it is accepted, or there is a bug in libircclient. -

-

- -

-
- - - - -
#define LIBIRC_ERR_CLOSED   5
-
-
- -

-Connection closed by remote peer. -

-The IRC connection was closed by the IRC server (which could mean that an IRC operator just have banned you from the server :)), or the DCC connection was closed by remote peer - for example, the other side just quits his mIrc. Usually it is not an error.

-

See also:
irc_run irc_connect irc_dcc_callback_t
- -
-

- -

-
- - - - -
#define LIBIRC_ERR_CONNECT   4
-
-
- -

-Could not connect. -

-The socket could not connect to the IRC server, or to the destination DCC part. Usually means that either the IRC server is down or its address is invalid. For DCC the reason usually is the firewall on your or destination computer, which refuses DCC transfer.

-

See also:
irc_run irc_connect
- -
-

- -

-
- - - - -
#define LIBIRC_ERR_INVAL   1
-
-
- -

-Invalid argument. -

-An invalid value was given for one of the arguments to a function. For example, supplying the NULL value for channel argument of irc_cmd_join() produces LIBIRC_ERR_INVAL error. You should fix the code. -

-

- -

-
- - - - -
#define LIBIRC_ERR_NODCCSEND   9
-
-
- -

-Could not send this. -

-A filename supplied to irc_dcc_sendfile() could not be sent. Either is is not a file (a directory or a socket, for example), or it is not readable. *

-

See also:
LIBIRC_ERR_OPENFILE
- -
-

- -

-
- - - - -
#define LIBIRC_ERR_NOIPV6   16
-
-
- -

-IPv6 not supported. -

-The function which requires IPv6 support was called, but the IPv6 support was not compiled into the application -

-

- -

-
- - - - -
#define LIBIRC_ERR_NOMEM   6
-
-
- -

-Out of memory. -

-There are two possible reasons for this error. First is that memory could not be allocated for libircclient use, and this error usually is fatal. Second reason is that the command queue (which keeps command ready to be sent to the IRC server) is full, and could not accept more commands yet. In this case you should just wait, and repeat the command later. -

-

- -

-
- - - - -
#define LIBIRC_ERR_OK   0
-
-
- -

-brief No error -

-

- -

-
- - - - -
#define LIBIRC_ERR_OPENFILE   14
-
-
- -

-Could not open file for DCC send. -

-The file specified in irc_dcc_sendfile() could not be opened. -

-

- -

-
- - - - -
#define LIBIRC_ERR_READ   10
-
-
- -

-Could not read DCC file or socket. -

-Either a DCC file could not be read (for example, was truncated during sending), or a DCC socket returns a read error, which usually means that the network connection is terminated. -

-

- -

-
- - - - -
#define LIBIRC_ERR_RESOLV   2
-
-
- -

-Could not resolve host. -

-The host name supplied for irc_connect() function could not be resolved into valid IP address. Usually means that host name is invalid. -

-

- -

-
- - - - -
#define LIBIRC_ERR_SOCKET   3
-
-
- -

-Could not create socket. -

-The new socket could not be created or made non-blocking. Usually means that the server is out of resources, or (rarely :) a bug in libircclient. -

-

- -

-
- - - - -
#define LIBIRC_ERR_STATE   12
-
-
- -

-Invalid state. -

-The function is called when it is not allowed to be called. For example, irc_cmd_join() was called before the connection to IRC server succeed, and event_connect is called. -

-

- -

-
- - - - -
#define LIBIRC_ERR_TERMINATED   15
-
-
- -

-IRC server connection terminated. -

-The connection to the IRC server was terminated - possibly, by network error. Try to irc_connect() again. -

-

- -

-
- - - - -
#define LIBIRC_ERR_TIMEOUT   13
-
-
- -

-Operation timed out. -

-The DCC request is timed out. There is a timer for each DCC request, which tracks connecting, accepting and non-accepted/declined DCC requests. For every request this timer is currently 60 seconds. If the DCC request was not connected, accepted or declined during this time, it will be terminated with this error. -

-

- -

-
- - - - -
#define LIBIRC_ERR_WRITE   11
-
-
- -

-Could not write DCC file or socket. -

-Either a DCC file could not be written (for example, there is no free space on disk), or a DCC socket returns a write error, which usually means that the network connection is terminated. -

-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__errors.html libircclient-1.8/doc/html/group__errors.html --- libircclient-1.3+dfsg1/doc/html/group__errors.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__errors.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,97 +0,0 @@ - - -libircclient: Obtaining error values and descriptions. - - - - - -
-

Obtaining error values and descriptions.

- - - - - - - - -

Functions

int irc_errno (irc_session_t *session)
 Returns the last error code.
const char * irc_strerror (int ircerrno)
 Returns the text error message associated with this error code.
-

Function Documentation

- -
-
- - - - - - - - - -
int irc_errno (irc_session_t session  ) 
-
-
- -

-Returns the last error code. -

-

Parameters:
- - -
session An initiated session.
-
-This function returns the last error code associated with last operation of this IRC session. Possible error codes are defined in libirc_errors.h

-As usual, next errno rules apply:

    -
  • irc_errno() should be called ONLY if the called function fails;
  • irc_errno() doesn't return 0 if function succeed; actually, the return value will be undefined.
  • you should call irc_errno() IMMEDIATELY after function fails, before calling any other libircclient function.
-

-

See also:
irc_strerror
- -
-

- -

-
- - - - - - - - - -
const char * irc_strerror (int  ircerrno  ) 
-
-
- -

-Returns the text error message associated with this error code. -

-

Parameters:
- - -
ircerrno A numeric error code returned by irc_errno()
-
-This function returns the text representation of the given error code.

-

See also:
irc_errno()
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__events.html libircclient-1.8/doc/html/group__events.html --- libircclient-1.3+dfsg1/doc/html/group__events.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__events.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,156 +0,0 @@ - - -libircclient: Handling IRC events. - - - - - -
-

Handling IRC events.

- - - - - - - - - - - - - - - - - - -

Data Structures

struct  irc_callbacks_t
 Event callbacks structure. More...

Typedefs

typedef void(* irc_event_callback_t )(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count)
 A most common event callback.
typedef void(* irc_eventcode_callback_t )(irc_session_t *session, unsigned int event, const char *origin, const char **params, unsigned int count)
 A numeric event callback.
typedef void(* irc_event_dcc_chat_t )(irc_session_t *session, const char *nick, const char *addr, irc_dcc_t dccid)
 A remote DCC CHAT request callback.
typedef void(* irc_event_dcc_send_t )(irc_session_t *session, const char *nick, const char *addr, const char *filename, unsigned long size, irc_dcc_t dccid)
 A remote DCC CHAT request callback.
-

Typedef Documentation

- -
-
- - - - -
typedef void(* irc_event_callback_t)(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count)
-
-
- -

-A most common event callback. -

-

Parameters:
- - - - - - -
session the session, which generates an event
event the text name of the event. Useful in case you use a single event handler for several events simultaneously.
origin the originator of the event. See the note below.
params a list of event params. Depending on the event nature, it could have zero or more params. The actual number of params is specified in count. None of the params can be NULL, but 'params' pointer itself could be NULL for some events.
count the total number of params supplied.
-
-Every event generates a callback. This callback is generated by most events. Depending on the event nature, it can provide zero or more params. For each event, the number of provided params is fixed, and their meaning is described.

-Every event has origin, though the origin variable may be NULL, which means that event origin is unknown. The origin usually looks like nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling irc_target_get_nick(), or implicitly for all the events - by setting the LIBIRC_OPTION_STRIPNICKS option with irc_option_set(). -

-

- -

-
- - - - -
typedef void(* irc_event_dcc_chat_t)(irc_session_t *session, const char *nick, const char *addr, irc_dcc_t dccid)
-
-
- -

-A remote DCC CHAT request callback. -

-

Parameters:
- - - - - -
session the session, which generates an event
nick the person who requested DCC CHAT with you.
addr the person's IP address in decimal-dot notation.
dccid an id associated with this request. Use it in calls to irc_dcc_accept() or irc_dcc_decline().
-
-This callback is called when someone requests DCC CHAT with you. In respond you should call either irc_dcc_accept() to accept chat request, or irc_dcc_decline() to decline chat request.

-

See also:
irc_dcc_accept or irc_dcc_decline
- -
-

- -

-
- - - - -
typedef void(* irc_event_dcc_send_t)(irc_session_t *session, const char *nick, const char *addr, const char *filename, unsigned long size, irc_dcc_t dccid)
-
-
- -

-A remote DCC CHAT request callback. -

-

Parameters:
- - - - - - - -
session the session, which generates an event
nick the person who requested DCC CHAT with you.
addr the person's IP address in decimal-dot notation.
filename the sent filename.
size the filename size.
dccid an id associated with this request. Use it in calls to irc_dcc_accept() or irc_dcc_decline().
-
-This callback is called when someone wants to send a file to you using DCC SEND. As with chat, in respond you should call either irc_dcc_accept() to accept this request and receive the file, or irc_dcc_decline() to decline this request.

-

See also:
irc_dcc_accept or irc_dcc_decline
- -
-

- -

-
- - - - -
typedef void(* irc_eventcode_callback_t)(irc_session_t *session, unsigned int event, const char *origin, const char **params, unsigned int count)
-
-
- -

-A numeric event callback. -

-

Parameters:
- - - - - - -
session the session, which generates an event
event the numeric code of the event. Useful in case you use a single event handler for several events simultaneously.
origin the originator of the event. See the note below.
params a list of event params. Depending on the event nature, it could have zero or more params. The actual number of params is specified in count. None of the params can be NULL, but 'params' pointer itself could be NULL for some events.
count the total number of params supplied.
-
-Most times in reply to your actions the IRC server generates numeric callbacks. Most of them are error codes, and some of them mark list start and list stop markers. Every code has its own set of params; for details you can either experiment, or read RFC 1459.

-Every event has origin, though the origin variable may be NULL, which means that event origin is unknown. The origin usually looks like nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling irc_target_get_nick(), or implicitly for all the events - by setting the LIBIRC_OPTION_STRIPNICKS option with irc_option_set(). -

-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__initclose.html libircclient-1.8/doc/html/group__initclose.html --- libircclient-1.3+dfsg1/doc/html/group__initclose.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__initclose.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,100 +0,0 @@ - - -libircclient: Initiating and destroying IRC session. - - - - - -
-

Initiating and destroying IRC session.

- - - - - - - - -

Functions

irc_session_tirc_create_session (irc_callbacks_t *callbacks)
 Creates and initiates a new IRC session.
void irc_destroy_session (irc_session_t *session)
 Destroys previously created IRC session.
-

Function Documentation

- -
-
- - - - - - - - - -
irc_session_t * irc_create_session (irc_callbacks_t callbacks  ) 
-
-
- -

-Creates and initiates a new IRC session. -

-

Parameters:
- - -
callbacks A structure, which defines several callbacks, which will be called on appropriate events. Must not be NULL.
-
-
Returns:
An irc_session_t object, or 0 if creation failed. Usually, failure is caused by out of memory error.
-Every irc_session_t object describes a single IRC session - a connection to an IRC server, and possibly to some DCC clients. Almost every irc_* function requires this object to be passed to, and therefore this function should be called first.

-Every session created must be destroyed when it is not needed anymore by calling irc_destroy_session().

-The most common function sequence is:

  ... prepare irc_callbacks_t structure ...
-  irc_create_session();
-  irc_connect();
-  irc_run();
-  irc_destroy_session();
-

-

See also:
irc_destroy_session
- -
-

- -

-
- - - - - - - - - -
void irc_destroy_session (irc_session_t session  ) 
-
-
- -

-Destroys previously created IRC session. -

-

Parameters:
- - -
session A session to destroy. Must not be NULL.
-
-This function should be used to destroy an IRC session, close the connection to the IRC server, and free all the used resources. After calling this function, you should not use this session object anymore. -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__ircmd__ch.html libircclient-1.8/doc/html/group__ircmd__ch.html --- libircclient-1.3+dfsg1/doc/html/group__ircmd__ch.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__ircmd__ch.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,486 +0,0 @@ - - -libircclient: IRC commands: channel management. - - - - - -
-

IRC commands: channel management.

- - - - - - - - - - - - - - - - - - - - - - - - - - -

Functions

int irc_cmd_join (irc_session_t *session, const char *channel, const char *key)
 Joins the new IRC channel.
int irc_cmd_part (irc_session_t *session, const char *channel)
 Leaves the IRC channel.
int irc_cmd_invite (irc_session_t *session, const char *nick, const char *channel)
 Invites a user to invite-only channel.
int irc_cmd_names (irc_session_t *session, const char *channel)
 Obtains a list of users who're in channel.
int irc_cmd_list (irc_session_t *session, const char *channel)
 Obtains a list of active server channels with their topics.
int irc_cmd_topic (irc_session_t *session, const char *channel, const char *topic)
 Views or changes the channel topic.
int irc_cmd_channel_mode (irc_session_t *session, const char *channel, const char *mode)
 Views or changes the channel mode.
int irc_cmd_kick (irc_session_t *session, const char *nick, const char *channel, const char *reason)
 Kick some lazy ass out of channel.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_channel_mode (irc_session_t session,
const char *  channel,
const char *  mode 
)
-
-
- -

-Views or changes the channel mode. -

-

Parameters:
- - - - -
session An initiated and connected session.
channel A channel name to invite to. Must not be NULL.
mode A channel mode, described below. If NULL, the channel mode is not changed, just the old mode is returned.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-The irc_cmd_channel_mode() is used to change or view the channel modes. The channel mode is returned if the mode is NULL. If the mode is not NULL, the mode for the channel will be changed. Note that, only channel operators can change the channel modes.

-Channel mode is represended by the letters combination. Every letter has its own meaning in channel modes. Most channel mode letters are boolean (i.e. could only be set or reset), but a few channel mode letters accept a parameter. All channel options are set by adding a plus sign before the letter, and reset by adding a minus sign before the letter.

-Here is the list of 'standard' channel modes:

-

    -
  • o nickname - gives (+o nick) or takes (-o nick) the channel operator privileges from a nickname. This mode affects the users in channel, not the channel itself. Examples: "+o tim", "-o watson".
-

-

    -
  • p - sets (+p) or resets (-p) private channel flag. Private channels are shown in channel list as 'Prv', without the topic.
-

-

    -
  • s - sets (+p) or resets (-p) secret channel flag. Secret channels aren't shown in channel list at all.
-

-

    -
  • i - sets (+i) or resets (-i) invite-only channel flag. When the flag is set, only the people who are invited by irc_cmd_invite(), can join this channel.
-

-

    -
  • t - sets (+t) or resets (-t) topic settable by channel operator only flag. When the flag is set, only the channel operators can change the channel topic.
-

-

    -
  • n - sets (+n) or resets (-n) the protection from the clients outside the channel. When the +n mode is set, only the clients, who are in channel, can send the messages to the channel.
-

-

    -
  • m - sets (+m) or resets (-m) the moderation of the channel. When the moderation mode is set, only channel operators and the users who have the +v user mode can speak in the channel.
-

-

    -
  • v nickname - gives (+v nick) or takes (-v nick) from user the ability to speak on a moderated channel. Examples: "+v tim", "-v watson".
-

-

    -
  • l number - sets (+l 20) or removes (-l) the restriction of maximum users in channel. When the restriction is set, and there is a number of users in the channel, no one can join the channel anymore.
-

-

    -
  • k key - sets (+k secret) or removes (-k) the password from the channel. When the restriction is set, any user joining the channel required to provide a channel key.
-

-

    -
  • b mask - sets (+b *!*@*.mil) or removes (-b *!*@*.mil) the ban mask on a user to keep him out of channel. Note that to remove the ban you must specify the ban mask to remove, not just "-b".
-

-Note that the actual list of channel modes depends on the IRC server, and can be bigger. If you know the popular channel modes, which aren't mentioned here - please contact me at tim@krasnogorsk.ru

-Possible error responces for this command from the RFC1459:

-

-And the mode information is given using following reply codes:

-

-

See also:
irc_cmd_topic irc_cmd_list
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_invite (irc_session_t session,
const char *  nick,
const char *  channel 
)
-
-
- -

-Invites a user to invite-only channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nick A nick to invite. Must not be NULL.
channel A channel name to invite to. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to invite someone to invite-only channel. "Invite-only" is a channel mode, which restricts anyone, except invided, to join this channel. After invitation, the user could join this channel. The user, who is invited, will receive the irc_callbacks_t::event_invite event. Note that you must be a channel operator to INVITE the users.

-Possible error responces for this command from the RFC1459:

-

-And on success one of the following replies returned:

-

-

See also:
irc_callbacks_t::event_invite irc_cmd_channel_mode
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_join (irc_session_t session,
const char *  channel,
const char *  key 
)
-
-
- -

-Joins the new IRC channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
channel A channel name to join to. Must not be NULL.
key Channel password. May be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to JOIN the IRC channel. If the channel is not exist, it will be automatically created by the IRC server. Note that to JOIN the password-protected channel, you must know the password, and specify it in the key argument.

-If join is successful, the irc_callbacks_t::event_join is called (with origin == your nickname), then you are sent the channel's topic (using LIBIRC_RFC_RPL_TOPIC) and the list of users who are on the channel (using LIBIRC_RFC_RPL_NAMREPLY), which includes the user joining - namely you.

-Possible error responces for this command from the RFC1459:

-

-And on success the following replies returned:

- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_kick (irc_session_t session,
const char *  nick,
const char *  channel,
const char *  reason 
)
-
-
- -

-Kick some lazy ass out of channel. -

-

Parameters:
- - - - - -
session An initiated and connected session.
nick A nick to kick. Must not be NULL.
channel A channel to kick this nick out of. Must not be NULL.
reason A reason to kick. May be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to kick a person out of channel. Note that you must be a channel operator to kick anyone.

-Possible error responces for this command from the RFC1459:

-

-On success the irc_callbacks_t::event_kick event will be generated.

-

See also:
irc_callbacks_t::event_numeric
- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_list (irc_session_t session,
const char *  channel 
)
-
-
- -

-Obtains a list of active server channels with their topics. -

-

Parameters:
- - - -
session An initiated and connected session.
channel A channel name(s) to list. May be NULL, in which case all the channels will be listed. It is possible to specify more than a single channel, but several channel names should be separated by a comma.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to ask the IRC server for the active (existing) channels list. The list will be returned using LIBIRC_RFC_RPL_LISTSTART - LIBIRC_RFC_RPL_LIST - LIBIRC_RFC_RPL_LISTEND sequence. Note that "private" channels are listed (without their topics) as channel "Prv" unless the client generating the LIST query is actually on that channel. Likewise, secret channels are not listed at all unless the client is a member of the channel in question.

-Possible error responces for this command from the RFC1459:

-

-And the channel list is returned using the following reply codes:

- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_names (irc_session_t session,
const char *  channel 
)
-
-
- -

-Obtains a list of users who're in channel. -

-

Parameters:
- - - -
session An initiated and connected session.
channel A channel name(s) to obtain user list. Must not be NULL. It is possible to specify more than a single channel, but several channel names should be separated by a comma.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to ask the IRC server for the list of the users who're in specified channel. You can list all nicknames that are visible to you on any channel that you can see. The list of users will be returned using RPL_NAMREPLY and RPL_ENDOFNAMES numeric codes.

-The channel names are returned by irc_callbacks_t::event_numeric using the following reply codes:

- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_part (irc_session_t session,
const char *  channel 
)
-
-
- -

-Leaves the IRC channel. -

-

Parameters:
- - - -
session An initiated and connected session.
channel A channel name to leave. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to leave the IRC channel you've already joined to. An attempt to leave the channel you aren't in results a LIBIRC_RFC_ERR_NOTONCHANNEL server error.

-Possible error responces for this command from the RFC1459:

- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_topic (irc_session_t session,
const char *  channel,
const char *  topic 
)
-
-
- -

-Views or changes the channel topic. -

-

Parameters:
- - - - -
session An initiated and connected session.
channel A channel name to invite to. Must not be NULL.
topic A new topic to change. If NULL, the old topic will be returned, and topic won't changed.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-The irc_cmd_topic() is used to change or view the topic of a channel. The topic for channel is returned if topic is NULL. If the topic is not NULL, the topic for the channel will be changed. Note that, depending on +t channel mode, you may be required to be a channel operator to change the channel topic.

-If the command succeed, the IRC server will generate a RPL_NOTOPIC or RPL_TOPIC message, containing either old or changed topic. Also the IRC server can (but not have to) generate the non-RFC RPL_TOPIC_EXTRA message, containing the nick of person, who's changed the topic, and the time of latest topic change.

-Possible error responces for this command from the RFC1459:

-

-And the topic information is returned using one of following reply codes:

-

-

See also:
irc_callbacks_t::event_topic irc_cmd_channel_mode
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__ircmd__msg.html libircclient-1.8/doc/html/group__ircmd__msg.html --- libircclient-1.3+dfsg1/doc/html/group__ircmd__msg.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__ircmd__msg.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,191 +0,0 @@ - - -libircclient: IRC commands: sending messages/notices. - - - - - -
-

IRC commands: sending messages/notices.

- - - - - - - - - - - -

Functions

int irc_cmd_msg (irc_session_t *session, const char *nch, const char *text)
 Sends the message to the nick or to the channel.
int irc_cmd_me (irc_session_t *session, const char *nch, const char *text)
 Sends the /me (CTCP ACTION) message to the nick or to the channel.
int irc_cmd_notice (irc_session_t *session, const char *nch, const char *text)
 Sends the notice to the nick or to the channel.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_me (irc_session_t session,
const char *  nch,
const char *  text 
)
-
-
- -

-Sends the /me (CTCP ACTION) message to the nick or to the channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nch A target nick or channel. Must not be NULL.
text Action message text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to send the /me message to channel or private. As for irc_cmd_msg, the target is determined by nch argument.

-Possible error responces for this command from the RFC1459:

-

-On success there is NOTHING generated. However, a LIBIRC_RFC_RPL_AWAY reply can be also generated.

-

See also:
irc_cmd_msg
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
irc_cmd_msg (irc_session_t session,
const char *  nch,
const char *  text 
)
-
-
- -

-Sends the message to the nick or to the channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nch A target nick or channel. Must not be NULL.
text Message text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to send the channel or private messages. The target is determined by nch argument: if it describes nick, this will be a private message, if a channel name - public (channel) message. Note that depending on channel modes, you may be required to join the channel to send the channel messages.

-Possible error responces for this command from the RFC1459:

-

-On success there is NOTHING generated. -

-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_notice (irc_session_t session,
const char *  nch,
const char *  text 
)
-
-
- -

-Sends the notice to the nick or to the channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nch A target nick or channel. Must not be NULL.
text Notice text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to send the channel or private notices. The target is determined by nch argument: if it describes nick, this will be a private message, if a channel name - public (channel) message. Note that depending on channel modes, you may be required to join the channel to send the channel notices.

-The only difference between message and notice is that, according to RFC 1459, you must not automatically reply to NOTICE messages.

-Possible error responces for this command from the RFC1459:

-

-On success there is NOTHING generated. On notices sent to target nick, a LIBIRC_RFC_RPL_AWAY reply may be generated.

-

See also:
irc_cmd_msg
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__ircmd__oth.html libircclient-1.8/doc/html/group__ircmd__oth.html --- libircclient-1.3+dfsg1/doc/html/group__ircmd__oth.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__ircmd__oth.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,275 +0,0 @@ - - -libircclient: IRC commands: other stuff. - - - - - -
-

IRC commands: other stuff.

- - - - - - - - - - - - - - - - - -

Functions

int irc_send_raw (irc_session_t *session, const char *format,...)
 Sends raw data to the IRC server.
int irc_cmd_quit (irc_session_t *session, const char *reason)
 Sends QUIT command to the IRC server.
int irc_cmd_user_mode (irc_session_t *session, const char *mode)
 Views or changes your own user mode.
int irc_cmd_nick (irc_session_t *session, const char *newnick)
 Changes your nick.
int irc_cmd_whois (irc_session_t *session, const char *nick)
 Queries the information about the nick.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_nick (irc_session_t session,
const char *  newnick 
)
-
-
- -

-Changes your nick. -

-

Parameters:
- - - -
session An initiated and connected session.
newnick A new nick. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function is used to change your current nick to another nick. Note that such a change is not always possible; for example you cannot change nick to the existing nick, or (on some servers) to the registered nick.

-Possible error responces for this command from the RFC1459:

- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_quit (irc_session_t session,
const char *  reason 
)
-
-
- -

-Sends QUIT command to the IRC server. -

-

Parameters:
- - - -
session An initiated and connected session.
reason A reason to quit. May be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function sends the QUIT command to the IRC server. This command forces the IRC server to close the IRC connection, and terminate the session. -
-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_user_mode (irc_session_t session,
const char *  mode 
)
-
-
- -

-Views or changes your own user mode. -

-

Parameters:
- - - -
session An initiated and connected session.
mode A user mode, described below. If NULL, the user mode is not changed, just the old mode is returned.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-The irc_cmd_user_mode() is used to change or view the user modes. Note that, unlike channel modes, not all user modes can be changed. The user mode is returned if the mode is NULL. If the mode is not NULL, the mode for you will be changed, and new mode will be returned.

-Like channel mode, user mode is also represended by the letters combination. All the user mode letters are boolean (i.e. could only be set or reset), they are set by adding a plus sign before the letter, and reset by adding a minus sign before the letter.

-Here is the list of 'standard' user modes:

-

    -
  • o - represents an IRC operator status. Could not be set directly (but can be reset though), to set it use the IRC OPER command.
-

-

    -
  • i - if set, marks a user as 'invisible' - that is, not seen by lookups if the user is not in a channel.
-

-

    -
  • w - if set, marks a user as 'receiving wallops' - special messages generated by IRC operators using WALLOPS command.
-

-

    -
  • s - if set, marks a user for receipt of server notices.
-

-

    -
  • r - NON-STANDARD MODE. If set, user has been authenticated with NICKSERV IRC service.
-

-

    -
  • x - NON-STANDARD MODE. If set, user's real IP is hidden by IRC servers, to prevent scriptkiddies to do nasty things to the user's computer.
-

-Note that the actual list of user modes depends on the IRC server, and can be bigger. If you know the popular user modes, which aren't mentioned here - please contact me at tim@krasnogorsk.ru

-Possible error responces for this command from the RFC1459:

-

-And the mode information is given using reply code LIBIRC_RFC_RPL_UMODEIS -

-

- -

-
- - - - - - - - - - - - - - - - - - -
int irc_cmd_whois (irc_session_t session,
const char *  nick 
)
-
-
- -

-Queries the information about the nick. -

-

Parameters:
- - - -
session An initiated and connected session.
nick A nick to query the information abour. Must not be NULL. A comma-separated list of several nicknames may be given.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function queries various information about the nick: username, real name, the IRC server used, the channels user is in, idle time, away mode and so on.

-Possible error responces for this command from the RFC1459:

-

-And the information is returned using the following reply codes. The whois query is completed when LIBIRC_RFC_RPL_ENDOFWHOIS message is received.

- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_send_raw (irc_session_t session,
const char *  format,
  ... 
)
-
-
- -

-Sends raw data to the IRC server. -

-

Parameters:
- - - -
session An initiated and connected session.
format A printf-formatted string, followed by function args.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through irc_callbacks_t::event_numeric.
-This function sends the raw data as-is to the IRC server. Use it to generate a server command, which is not (yet) provided by libircclient directly. -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__nnparse.html libircclient-1.8/doc/html/group__nnparse.html --- libircclient-1.3+dfsg1/doc/html/group__nnparse.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__nnparse.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,124 +0,0 @@ - - -libircclient: Nickname parsing. - - - - - -
-

Nickname parsing.

- - - - - - - - -

Functions

void irc_target_get_nick (const char *target, char *nick, size_t size)
 Gets the nick part from the target.
void irc_target_get_host (const char *target, char *nick, size_t size)
 Gets the host part from the target.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
void irc_target_get_host (const char *  target,
char *  nick,
size_t  size 
)
-
-
- -

-Gets the host part from the target. -

-

Parameters:
- - - - -
target A nick in common IRC server form like tim!root@mydomain.com
nick A buffer to hold the nickname.
size A buffer size. If nick is longer than buffer size, it will be truncated.
-
-For most events IRC server returns 'origin' (i.e. the person, who generated this event) in i.e. "common" form, like nick!host@domain. I don't know any command, which requires host, but it may be useful :) This function parses this origin, and gets the host, storing it into user-provided buffer. -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
void irc_target_get_nick (const char *  target,
char *  nick,
size_t  size 
)
-
-
- -

-Gets the nick part from the target. -

-

Parameters:
- - - - -
target A nick in common IRC server form like tim!root@mycomain.com
nick A buffer to hold the nickname.
size A buffer size. If nick is longer than buffer size, it will be truncated.
-
-For most events IRC server returns 'origin' (i.e. the person, who generated this event) in i.e. "common" form, like nick!host@domain. However, all the irc_cmd_* functions require just a nick/ This function parses this origin, and gets the nick, storing it into user-provided buffer. A buffer of size 90 should be enough for most nicks :) -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__options.html libircclient-1.8/doc/html/group__options.html --- libircclient-1.3+dfsg1/doc/html/group__options.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__options.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,153 +0,0 @@ - - -libircclient: Managing libircclient options. - - - - - -
-

Managing libircclient options.

- - - - - - - - - - - - - - -

Defines

#define LIBIRC_OPTION_DEBUG   (1 << 1)
#define LIBIRC_OPTION_STRIPNICKS   (1 << 2)
 allows to strip origins automatically.

Functions

void irc_option_set (irc_session_t *session, unsigned int option)
 Sets the libircclient option.
void irc_option_reset (irc_session_t *session, unsigned int option)
 Resets the libircclient option.
-

Define Documentation

- -
-
- - - - -
#define LIBIRC_OPTION_DEBUG   (1 << 1)
-
-
- -

-enables additional debug output -

-

- -

-
- - - - -
#define LIBIRC_OPTION_STRIPNICKS   (1 << 2)
-
-
- -

-allows to strip origins automatically. -

-For every IRC server event, the event origin is sent in standard form: nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling irc_target_get_nick(), or implicitly for all the events - by setting this option with irc_option_set(). -

-

-


Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void irc_option_reset (irc_session_t session,
unsigned int  option 
)
-
-
- -

-Resets the libircclient option. -

-

Parameters:
- - - -
session An initiated session.
option An option from libirc_options.h
-
-This function removes the previously set libircclient option, changing libircclient behavior. See the option list for the meaning for every option.

-

See also:
irc_option_set
- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
void irc_option_set (irc_session_t session,
unsigned int  option 
)
-
-
- -

-Sets the libircclient option. -

-

Parameters:
- - - -
session An initiated session.
option An option from libirc_options.h
-
-This function sets the libircclient option, changing libircclient behavior. See the option list for the meaning for every option.

-

See also:
irc_option_reset
- -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__rfcnumbers.html libircclient-1.8/doc/html/group__rfcnumbers.html --- libircclient-1.3+dfsg1/doc/html/group__rfcnumbers.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__rfcnumbers.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,2730 +0,0 @@ - - -libircclient: Numeric reply codes from RFC1459 - - - - - -
-

Numeric reply codes from RFC1459

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Defines

#define LIBIRC_RFC_RPL_WELCOME   001
 001 Welcome to the Internet Relay Network <nick>!<user>@<host>
#define LIBIRC_RFC_RPL_YOURHOST   002
 002 Your host is <servername>, running version <ver>
#define LIBIRC_RFC_RPL_CREATED   003
 003 This server was created <date>
#define LIBIRC_RFC_RPL_MYINFO   004
 004 <servername> <version> <available user modes> <available channel modes>
#define LIBIRC_RFC_RPL_BOUNCE   005
 005 Try server <server name>, port <port number>
#define LIBIRC_RFC_RPL_USERHOST   302
 302 :*1<reply> *(
#define LIBIRC_RFC_RPL_ISON   303
 303 :*1<nick> *(
#define LIBIRC_RFC_RPL_AWAY   301
 301 <nick> :<away message>
#define LIBIRC_RFC_RPL_UNAWAY   305
 305 :You are no longer marked as being away
#define LIBIRC_RFC_RPL_NOWAWAY   306
 306 :You have been marked as being away
#define LIBIRC_RFC_RPL_WHOISUSER   311
 311 <nick> <user> <host> * :<real name>
#define LIBIRC_RFC_RPL_WHOISSERVER   312
 312 <nick> <server> :<server info>
#define LIBIRC_RFC_RPL_WHOISOPERATOR   313
 313 <nick> :is an IRC operator
#define LIBIRC_RFC_RPL_WHOISIDLE   317
 317 <nick> <integer> :seconds idle
#define LIBIRC_RFC_RPL_ENDOFWHOIS   318
 318 <nick> :End of WHOIS list
#define LIBIRC_RFC_RPL_WHOISCHANNELS   319
 319 "<nick> :*( ( "@" / "+" ) <channel> " " )"
#define LIBIRC_RFC_RPL_WHOWASUSER   314
 314 <nick> <user> <host> * :<real name>
#define LIBIRC_RFC_RPL_ENDOFWHOWAS   369
 369 <nick> :End of WHOWAS
#define LIBIRC_RFC_RPL_LIST   322
 322 <channel> <# visible> :<topic>
#define LIBIRC_RFC_RPL_LISTEND   323
 323 :End of LIST
#define LIBIRC_RFC_RPL_UNIQOPIS   325
 325 <channel> <nickname>
#define LIBIRC_RFC_RPL_CHANNELMODEIS   324
 324 <channel> <mode> <mode params>
#define LIBIRC_RFC_RPL_NOTOPIC   331
 331 <channel> :No topic is set
#define LIBIRC_RFC_RPL_TOPIC   332
 332 <channel> :<topic>
#define LIBIRC_RFC_RPL_INVITING   341
 341 <channel> <nick>
#define LIBIRC_RFC_RPL_SUMMONING   342
 342 <user> :Summoning user to IRC
#define LIBIRC_RFC_RPL_INVITELIST   346
 346 <channel> <invitemask>
#define LIBIRC_RFC_RPL_ENDOFINVITELIST   347
 347 <channel> :End of channel invite list
#define LIBIRC_RFC_RPL_EXCEPTLIST   348
 348 <channel> <exceptionmask>
#define LIBIRC_RFC_RPL_ENDOFEXCEPTLIST   349
 349 <channel> :End of channel exception list
#define LIBIRC_RFC_RPL_VERSION   351
 351 <version>.<debuglevel> <server> :<comments>
#define LIBIRC_RFC_RPL_WHOREPLY   352
 352 <channel> <user> <host> <server> <nick> ( "H
#define LIBIRC_RFC_RPL_ENDOFWHO   315
 315 <name> :End of WHO list
#define LIBIRC_RFC_RPL_NAMREPLY   353
 353 ( "=
#define LIBIRC_RFC_RPL_ENDOFNAMES   366
 366 <channel> :End of NAMES list
#define LIBIRC_RFC_RPL_LINKS   364
 364 <mask> <server> :<hopcount> <server info>
#define LIBIRC_RFC_RPL_ENDOFLINKS   365
 365 <mask> :End of LINKS list
#define LIBIRC_RFC_RPL_BANLIST   367
 367 <channel> <banmask>
#define LIBIRC_RFC_RPL_ENDOFBANLIST   368
 368 <channel> :End of channel ban list
#define LIBIRC_RFC_RPL_INFO   371
 371 :<string>
#define LIBIRC_RFC_RPL_ENDOFINFO   374
 374 :End of INFO list
#define LIBIRC_RFC_RPL_MOTDSTART   375
 375 :- <server> Message of the day -
#define LIBIRC_RFC_RPL_MOTD   372
 372 :- <text>
#define LIBIRC_RFC_RPL_ENDOFMOTD   376
 376 :End of MOTD command
#define LIBIRC_RFC_RPL_YOUREOPER   381
 381 :You are now an IRC operator
#define LIBIRC_RFC_RPL_REHASHING   382
 382 <config file> :Rehashing
#define LIBIRC_RFC_RPL_YOURESERVICE   383
 383 You are service <servicename>
#define LIBIRC_RFC_RPL_TIME   391
 391 <server> :<string showing server's local time>
#define LIBIRC_RFC_RPL_USERSSTART   392
 392 :UserID Terminal Host
#define LIBIRC_RFC_RPL_USERS   393
 393 :<username> <ttyline> <hostname>
#define LIBIRC_RFC_RPL_ENDOFUSERS   394
 394 :End of users
#define LIBIRC_RFC_RPL_NOUSERS   395
 395 :Nobody logged in
#define LIBIRC_RFC_RPL_TRACELINK   200
 200 Link <version & debug level> <destination> <next server> V<protocol version> <link uptime in seconds> <backstream sendq> <upstream sendq>
#define LIBIRC_RFC_RPL_TRACECONNECTING   201
 201 Try. <class> <server>
#define LIBIRC_RFC_RPL_TRACEHANDSHAKE   202
 202 H.S. <class> <server>
#define LIBIRC_RFC_RPL_TRACEUNKNOWN   203
 203 ???? <class> [<client IP address in dot form>]
#define LIBIRC_RFC_RPL_TRACEOPERATOR   204
 204 Oper <class> <nick>
#define LIBIRC_RFC_RPL_TRACEUSER   205
 205 User <class> <nick>
#define LIBIRC_RFC_RPL_TRACESERVER   206
 206 Serv <class> <int>S <int>C <server> <nick!user|*!*>@<host|server> V<protocol version>
#define LIBIRC_RFC_RPL_TRACESERVICE   207
 207 Service <class> <name> <type> <active type>
#define LIBIRC_RFC_RPL_TRACENEWTYPE   208
 208 <newtype> 0 <client name>
#define LIBIRC_RFC_RPL_TRACECLASS   209
 209 Class <class> <count>
#define LIBIRC_RFC_RPL_TRACELOG   261
 261 File <logfile> <debug level>
#define LIBIRC_RFC_RPL_TRACEEND   262
 262 <server name> <version & debug level> :End of TRACE
#define LIBIRC_RFC_RPL_STATSLINKINFO   211
 211 <linkname> <sendq> <sent messages> <sent Kbytes> <received messages> <received Kbytes> <time open>
#define LIBIRC_RFC_RPL_STATSCOMMANDS   212
 212 <command> <count> <byte count> <remote count>
#define LIBIRC_RFC_RPL_ENDOFSTATS   219
 219 <stats letter> :End of STATS report
#define LIBIRC_RFC_RPL_STATSUPTIME   242
 242 :Server Up d days d:02d:02d
#define LIBIRC_RFC_RPL_STATSOLINE   243
 243 O <hostmask> * <name>
#define LIBIRC_RFC_RPL_UMODEIS   221
 221 <user mode string>
#define LIBIRC_RFC_RPL_SERVLIST   234
 234 <name> <server> <mask> <type> <hopcount> <info>
#define LIBIRC_RFC_RPL_SERVLISTEND   235
 235 <mask> <type> :End of service listing
#define LIBIRC_RFC_RPL_LUSERCLIENT   251
 251 :There are <integer> users and <integer> services on <integer> servers
#define LIBIRC_RFC_RPL_LUSEROP   252
 252 <integer> :operator(s) online
#define LIBIRC_RFC_RPL_LUSERUNKNOWN   253
 253 <integer> :unknown connection(s)
#define LIBIRC_RFC_RPL_LUSERCHANNELS   254
 254 <integer> :channels formed
#define LIBIRC_RFC_RPL_LUSERME   255
 255 :I have <integer> clients and <integer> servers
#define LIBIRC_RFC_RPL_ADMINME   256
 256 <server> :Administrative info
#define LIBIRC_RFC_RPL_ADMINLOC1   257
 257 :<admin info>
#define LIBIRC_RFC_RPL_ADMINLOC2   258
 258 :<admin info>
#define LIBIRC_RFC_RPL_ADMINEMAIL   259
 259 :<admin info>
#define LIBIRC_RFC_RPL_TRYAGAIN   263
 263 <command> :Please wait a while and try again.
#define LIBIRC_RFC_ERR_NOSUCHNICK   401
 401 <nickname> :No such nick/channel
#define LIBIRC_RFC_ERR_NOSUCHSERVER   402
 402 <server name> :No such server
#define LIBIRC_RFC_ERR_NOSUCHCHANNEL   403
 403 <channel name> :No such channel
#define LIBIRC_RFC_ERR_CANNOTSENDTOCHAN   404
 404 <channel name> :Cannot send to channel
#define LIBIRC_RFC_ERR_TOOMANYCHANNELS   405
 405 <channel name> :You have joined too many channels
#define LIBIRC_RFC_ERR_WASNOSUCHNICK   406
 406 <nickname> :There was no such nickname
#define LIBIRC_RFC_ERR_TOOMANYTARGETS   407
 407 <target> :<error code> recipients. <abort message>
#define LIBIRC_RFC_ERR_NOSUCHSERVICE   408
 408 <service name> :No such service
#define LIBIRC_RFC_ERR_NOORIGIN   409
 409 :No origin specified
#define LIBIRC_RFC_ERR_NORECIPIENT   411
 411 :No recipient given (<command>)
#define LIBIRC_RFC_ERR_NOTEXTTOSEND   412
 412 :No text to send
#define LIBIRC_RFC_ERR_NOTOPLEVEL   413
 413 <mask> :No toplevel domain specified
#define LIBIRC_RFC_ERR_WILDTOPLEVEL   414
 414 <mask> :Wildcard in toplevel domain
#define LIBIRC_RFC_ERR_BADMASK   415
 415 <mask> :Bad Server/host mask
#define LIBIRC_RFC_ERR_UNKNOWNCOMMAND   421
 421 <command> :Unknown command
#define LIBIRC_RFC_ERR_NOMOTD   422
 422 :MOTD File is missing
#define LIBIRC_RFC_ERR_NOADMININFO   423
 423 <server> :No administrative info available
#define LIBIRC_RFC_ERR_FILEERROR   424
 424 :File error doing <file op> on <file>
#define LIBIRC_RFC_ERR_NONICKNAMEGIVEN   431
 431 :No nickname given
#define LIBIRC_RFC_ERR_ERRONEUSNICKNAME   432
 432 <nick> :Erroneous nickname
#define LIBIRC_RFC_ERR_NICKNAMEINUSE   433
 433 <nick> :Nickname is already in use
#define LIBIRC_RFC_ERR_NICKCOLLISION   436
 436 <nick> :Nickname collision KILL from <user>@<host>
#define LIBIRC_RFC_ERR_UNAVAILRESOURCE   437
 437 <nick/channel> :Nick/channel is temporarily unavailable
#define LIBIRC_RFC_ERR_USERNOTINCHANNEL   441
 441 <nick> <channel> :They aren't on that channel
#define LIBIRC_RFC_ERR_NOTONCHANNEL   442
 442 <channel> :You're not on that channel
#define LIBIRC_RFC_ERR_USERONCHANNEL   443
 443 <user> <channel> :is already on channel
#define LIBIRC_RFC_ERR_NOLOGIN   444
 444 <user> :User not logged in
#define LIBIRC_RFC_ERR_SUMMONDISABLED   445
 445 :SUMMON has been disabled
#define LIBIRC_RFC_ERR_USERSDISABLED   446
 446 :USERS has been disabled
#define LIBIRC_RFC_ERR_NOTREGISTERED   451
 451 :You have not registered
#define LIBIRC_RFC_ERR_NEEDMOREPARAMS   461
 461 <command> :Not enough parameters
#define LIBIRC_RFC_ERR_ALREADYREGISTRED   462
 462 :Unauthorized command (already registered)
#define LIBIRC_RFC_ERR_NOPERMFORHOST   463
 463 :Your host isn't among the privileged
#define LIBIRC_RFC_ERR_PASSWDMISMATCH   464
 464 :Password incorrect
#define LIBIRC_RFC_ERR_YOUREBANNEDCREEP   465
 465 :You are banned from this server
#define LIBIRC_RFC_ERR_YOUWILLBEBANNED   466
 466 :You will be banned from this server
#define LIBIRC_RFC_ERR_KEYSET   467
 467 <channel> :Channel key already set
#define LIBIRC_RFC_ERR_CHANNELISFULL   471
 471 <channel> :Cannot join channel (+l)
#define LIBIRC_RFC_ERR_UNKNOWNMODE   472
 472 <char> :is unknown mode char to me for <channel>
#define LIBIRC_RFC_ERR_INVITEONLYCHAN   473
 473 <channel> :Cannot join channel (+i)
#define LIBIRC_RFC_ERR_BANNEDFROMCHAN   474
 474 <channel> :Cannot join channel (+b)
#define LIBIRC_RFC_ERR_BADCHANNELKEY   475
 475 <channel> :Cannot join channel (+k)
#define LIBIRC_RFC_ERR_BADCHANMASK   476
 476 <channel> :Bad Channel Mask
#define LIBIRC_RFC_ERR_NOCHANMODES   477
 477 <channel> :Channel doesn't support modes
#define LIBIRC_RFC_ERR_BANLISTFULL   478
 478 <channel> <char> :Channel list is full
#define LIBIRC_RFC_ERR_NOPRIVILEGES   481
 481 :Permission Denied- You're not an IRC operator
#define LIBIRC_RFC_ERR_CHANOPRIVSNEEDED   482
 482 <channel> :You're not channel operator
#define LIBIRC_RFC_ERR_CANTKILLSERVER   483
 483 :You can't kill a server!
#define LIBIRC_RFC_ERR_RESTRICTED   484
 484 :Your connection is restricted!
#define LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED   485
 485 :You're not the original channel operator
#define LIBIRC_RFC_ERR_NOOPERHOST   491
 491 :No O-lines for your host
#define LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG   501
 501 :Unknown MODE flag
#define LIBIRC_RFC_ERR_USERSDONTMATCH   502
 502 :Cannot change mode for other users
-

Define Documentation

- -
-
- - - - -
#define LIBIRC_RFC_ERR_ALREADYREGISTRED   462
-
-
- -

-462 :Unauthorized command (already registered) -

-Returned by the server to any link which tries to change part of the registered details (such as password or user details from second USER message). -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_BADCHANMASK   476
-
-
- -

-476 <channel> :Bad Channel Mask -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_BADCHANNELKEY   475
-
-
- -

-475 <channel> :Cannot join channel (+k) -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_BADMASK   415
-
-
- -

-415 <mask> :Bad Server/host mask -

-412 - 415 are returned by PRIVMSG to indicate that the message wasn't delivered for some reason. ERR_NOTOPLEVEL and ERR_WILDTOPLEVEL are errors that are returned when an invalid use of "PRIVMSG $\<server\>" or "PRIVMSG #\<host\>" is attempted. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_BANLISTFULL   478
-
-
- -

-478 <channel> <char> :Channel list is full -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_BANNEDFROMCHAN   474
-
-
- -

-474 <channel> :Cannot join channel (+b) -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_CANNOTSENDTOCHAN   404
-
-
- -

-404 <channel name> :Cannot send to channel -

-Sent to a user who is either (a) not on a channel which is mode +n or (b) not a chanop (or mode +v) on a channel which has mode +m set or where the user is banned and is trying to send a PRIVMSG message to that channel. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_CANTKILLSERVER   483
-
-
- -

-483 :You can't kill a server! -

-Any attempts to use the KILL command on a server are to be refused and this error returned directly to the client. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_CHANNELISFULL   471
-
-
- -

-471 <channel> :Cannot join channel (+l) -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_CHANOPRIVSNEEDED   482
-
-
- -

-482 <channel> :You're not channel operator -

-Any command requiring 'chanop' privileges (such as MODE messages) MUST return this error if the client making the attempt is not a chanop on the specified channel. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_ERRONEUSNICKNAME   432
-
-
- -

-432 <nick> :Erroneous nickname -

-Returned after receiving a NICK message which contains characters which do not fall in the defined set. See section 2.3.1 for details on valid nicknames. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_FILEERROR   424
-
-
- -

-424 :File error doing <file op> on <file> -

-Generic error message used to report a failed file operation during the processing of a message. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_INVITEONLYCHAN   473
-
-
- -

-473 <channel> :Cannot join channel (+i) -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_KEYSET   467
-
-
- -

-467 <channel> :Channel key already set -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NEEDMOREPARAMS   461
-
-
- -

-461 <command> :Not enough parameters -

-Returned by the server by numerous commands to indicate to the client that it didn't supply enough parameters. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NICKCOLLISION   436
-
-
- -

-436 <nick> :Nickname collision KILL from <user>@<host> -

-Returned by a server to a client when it detects a nickname collision (registered of a NICK that already exists by another server). -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NICKNAMEINUSE   433
-
-
- -

-433 <nick> :Nickname is already in use -

-Returned when a NICK message is processed that results in an attempt to change to a currently existing nickname. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOADMININFO   423
-
-
- -

-423 <server> :No administrative info available -

-Returned by a server in response to an ADMIN message when there is an error in finding the appropriate information. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOCHANMODES   477
-
-
- -

-477 <channel> :Channel doesn't support modes -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOLOGIN   444
-
-
- -

-444 <user> :User not logged in -

-Returned by the summon after a SUMMON command for a user was unable to be performed since they were not logged in. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOMOTD   422
-
-
- -

-422 :MOTD File is missing -

-Server's MOTD file could not be opened by the server. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NONICKNAMEGIVEN   431
-
-
- -

-431 :No nickname given -

-Returned when a nickname parameter expected for a command and isn't found. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOOPERHOST   491
-
-
- -

-491 :No O-lines for your host -

-If a client sends an OPER message and the server has not been configured to allow connections from the client's host as an operator, this error MUST be returned. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOORIGIN   409
-
-
- -

-409 :No origin specified -

-PING or PONG message missing the originator parameter. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOPERMFORHOST   463
-
-
- -

-463 :Your host isn't among the privileged -

-Returned to a client which attempts to register with a server which does not been setup to allow connections from the host the attempted connection is tried. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOPRIVILEGES   481
-
-
- -

-481 :Permission Denied- You're not an IRC operator -

-Any command requiring operator privileges to operate MUST return this error to indicate the attempt was unsuccessful. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NORECIPIENT   411
-
-
- -

-411 :No recipient given (<command>) -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOSUCHCHANNEL   403
-
-
- -

-403 <channel name> :No such channel -

-Used to indicate the given channel name is invalid. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOSUCHNICK   401
-
-
- -

-401 <nickname> :No such nick/channel -

-Used to indicate the nickname parameter supplied to a command is currently unused. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOSUCHSERVER   402
-
-
- -

-402 <server name> :No such server -

-Used to indicate the server name given currently does not exist. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOSUCHSERVICE   408
-
-
- -

-408 <service name> :No such service -

-Returned to a client which is attempting to send a SQUERY to a service which does not exist. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOTEXTTOSEND   412
-
-
- -

-412 :No text to send -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOTONCHANNEL   442
-
-
- -

-442 <channel> :You're not on that channel -

-Returned by the server whenever a client tries to perform a channel affecting command for which the client isn't a member. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOTOPLEVEL   413
-
-
- -

-413 <mask> :No toplevel domain specified -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_NOTREGISTERED   451
-
-
- -

-451 :You have not registered -

-Returned by the server to indicate that the client MUST be registered before the server will allow it to be parsed in detail. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_PASSWDMISMATCH   464
-
-
- -

-464 :Password incorrect -

-Returned to indicate a failed attempt at registering a connection for which a password was required and was either not given or incorrect. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_RESTRICTED   484
-
-
- -

-484 :Your connection is restricted! -

-Sent by the server to a user upon connection to indicate the restricted nature of the connection (user mode "+r"). -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_SUMMONDISABLED   445
-
-
- -

-445 :SUMMON has been disabled -

-Returned as a response to the SUMMON command. MUST be returned by any server which doesn't implement it. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_TOOMANYCHANNELS   405
-
-
- -

-405 <channel name> :You have joined too many channels -

-Sent to a user when they have joined the maximum number of allowed channels and they try to join another channel. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_TOOMANYTARGETS   407
-
-
- -

-407 <target> :<error code> recipients. <abort message> -

-Returned to a client which is attempting to send a PRIVMSG/NOTICE using the user@host destination format and for a user@host which has several occurrences. - Returned to a client which trying to send a PRIVMSG/NOTICE to too many recipients. - Returned to a client which is attempting to JOIN a safe channel using the shortname when there are more than one such channel. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG   501
-
-
- -

-501 :Unknown MODE flag -

-Returned by the server to indicate that a MODE message was sent with a nickname parameter and that the a mode flag sent was not recognized. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_UNAVAILRESOURCE   437
-
-
- -

-437 <nick/channel> :Nick/channel is temporarily unavailable -

-Returned by a server to a user trying to join a channel currently blocked by the channel delay mechanism. - Returned by a server to a user trying to change nickname when the desired nickname is blocked by the nick delay mechanism. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED   485
-
-
- -

-485 :You're not the original channel operator -

-Any MODE requiring "channel creator" privileges MUST return this error if the client making the attempt is not a chanop on the specified channel. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_UNKNOWNCOMMAND   421
-
-
- -

-421 <command> :Unknown command -

-Returned to a registered client to indicate that the command sent is unknown by the server. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_UNKNOWNMODE   472
-
-
- -

-472 <char> :is unknown mode char to me for <channel> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_USERNOTINCHANNEL   441
-
-
- -

-441 <nick> <channel> :They aren't on that channel -

-Returned by the server to indicate that the target user of the command is not on the given channel. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_USERONCHANNEL   443
-
-
- -

-443 <user> <channel> :is already on channel -

-Returned when a client tries to invite a user to a channel they are already on. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_USERSDISABLED   446
-
-
- -

-446 :USERS has been disabled -

-Returned as a response to the USERS command. MUST be returned by any server which does not implement it. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_USERSDONTMATCH   502
-
-
- -

-502 :Cannot change mode for other users -

-Error sent to any user trying to view or change the user mode for a user other than themselves. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_WASNOSUCHNICK   406
-
-
- -

-406 <nickname> :There was no such nickname -

-Returned by WHOWAS to indicate there is no history information for that nickname. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_WILDTOPLEVEL   414
-
-
- -

-414 <mask> :Wildcard in toplevel domain -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_YOUREBANNEDCREEP   465
-
-
- -

-465 :You are banned from this server -

-Returned after an attempt to connect and register yourself with a server which has been setup to explicitly deny connections to you. -

-

- -

-
- - - - -
#define LIBIRC_RFC_ERR_YOUWILLBEBANNED   466
-
-
- -

-466 :You will be banned from this server -

-Sent by a server to a user to inform that access to the server will soon be denied. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ADMINEMAIL   259
-
-
- -

-259 :<admin info> -

-When replying to an ADMIN message, a server is expected to use replies RPL_ADMINME through to RPL_ADMINEMAIL and provide a text message with each. For RPL_ADMINLOC1 a description of what city, state and country the server is in is expected, followed by details of the institution (RPL_ADMINLOC2) and finally the administrative contact for the server (an email address here is REQUIRED) in RPL_ADMINEMAIL. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ADMINLOC1   257
-
-
- -

-257 :<admin info> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ADMINLOC2   258
-
-
- -

-258 :<admin info> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ADMINME   256
-
-
- -

-256 <server> :Administrative info -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_AWAY   301
-
-
- -

-301 <nick> :<away message> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_BANLIST   367
-
-
- -

-367 <channel> <banmask> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_BOUNCE   005
-
-
- -

-005 Try server <server name>, port <port number> -

-Sent by the server to a user to suggest an alternative server. This is often used when the connection is refused because the server is already full. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_CHANNELMODEIS   324
-
-
- -

-324 <channel> <mode> <mode params> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_CREATED   003
-
-
- -

-003 This server was created <date> -

-The server sends replies 001 to 004 to a user upon successful registration. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFBANLIST   368
-
-
- -

-368 <channel> :End of channel ban list -

-When listing the active 'bans' for a given channel, a server is required to send the list back using the RPL_BANLIST and RPL_ENDOFBANLIST messages. A separate RPL_BANLIST is sent for each active banmask. After the banmasks have been listed (or if none present) a RPL_ENDOFBANLIST MUST be sent. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFEXCEPTLIST   349
-
-
- -

-349 <channel> :End of channel exception list -

-When listing the 'exception masks' for a given channel, a server is required to send the list back using the RPL_EXCEPTLIST and RPL_ENDOFEXCEPTLIST messages. A separate RPL_EXCEPTLIST is sent for each active mask. After the masks have been listed (or if none present) a RPL_ENDOFEXCEPTLIST MUST be sent. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFINFO   374
-
-
- -

-374 :End of INFO list -

-A server responding to an INFO message is required to send all its 'info' in a series of RPL_INFO messages with a RPL_ENDOFINFO reply to indicate the end of the replies. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFINVITELIST   347
-
-
- -

-347 <channel> :End of channel invite list -

-When listing the 'invitations masks' for a given channel, a server is required to send the list back using the RPL_INVITELIST and RPL_ENDOFINVITELIST messages. A separate RPL_INVITELIST is sent for each active mask. After the masks have been listed (or if none present) a RPL_ENDOFINVITELIST MUST be sent. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFLINKS   365
-
-
- -

-365 <mask> :End of LINKS list -

-In replying to the LINKS message, a server MUST send replies back using the RPL_LINKS numeric and mark the end of the list using an RPL_ENDOFLINKS reply. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFMOTD   376
-
-
- -

-376 :End of MOTD command -

-When responding to the MOTD message and the MOTD file is found, the file is displayed line by line, with each line no longer than 80 characters, using RPL_MOTD format replies. These MUST be surrounded by a RPL_MOTDSTART (before the RPL_MOTDs) and an RPL_ENDOFMOTD (after). -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFNAMES   366
-
-
- -

-366 <channel> :End of NAMES list -

-To reply to a NAMES message, a reply pair consisting of RPL_NAMREPLY and RPL_ENDOFNAMES is sent by the server back to the client. If there is no channel found as in the query, then only RPL_ENDOFNAMES is returned. The exception to this is when a NAMES message is sent with no parameters and all visible channels and contents are sent back in a series of RPL_NAMEREPLY messages with a RPL_ENDOFNAMES to mark the end. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFSTATS   219
-
-
- -

-219 <stats letter> :End of STATS report -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFUSERS   394
-
-
- -

-394 :End of users -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFWHO   315
-
-
- -

-315 <name> :End of WHO list -

-The RPL_WHOREPLY and RPL_ENDOFWHO pair are used to answer a WHO message. The RPL_WHOREPLY is only sent if there is an appropriate match to the WHO query. If there is a list of parameters supplied with a WHO message, a RPL_ENDOFWHO MUST be sent after processing each list item with <name> being the item. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFWHOIS   318
-
-
- -

-318 <nick> :End of WHOIS list -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ENDOFWHOWAS   369
-
-
- -

-369 <nick> :End of WHOWAS -

-When replying to a WHOWAS message, a server MUST use the replies RPL_WHOWASUSER, RPL_WHOISSERVER or ERR_WASNOSUCHNICK for each nickname in the presented list. At the end of all reply batches, there MUST be RPL_ENDOFWHOWAS (even if there was only one reply and it was an error). -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_EXCEPTLIST   348
-
-
- -

-348 <channel> <exceptionmask> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_INFO   371
-
-
- -

-371 :<string> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_INVITELIST   346
-
-
- -

-346 <channel> <invitemask> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_INVITING   341
-
-
- -

-341 <channel> <nick> -

-Returned by the server to indicate that the attempted INVITE message was successful and is being passed onto the end client. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_ISON   303
-
-
- -

-303 :*1<nick> *( -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LINKS   364
-
-
- -

-364 <mask> <server> :<hopcount> <server info> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LIST   322
-
-
- -

-322 <channel> <# visible> :<topic> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LISTEND   323
-
-
- -

-323 :End of LIST -

-Replies RPL_LIST, RPL_LISTEND mark the actual replies with data and end of the server's response to a LIST command. If there are no channels available to return, only the end reply MUST be sent. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LUSERCHANNELS   254
-
-
- -

-254 <integer> :channels formed -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LUSERCLIENT   251
-
-
- -

-251 :There are <integer> users and <integer> services on <integer> servers -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LUSERME   255
-
-
- -

-255 :I have <integer> clients and <integer> servers -

-In processing an LUSERS message, the server sends a set of replies from RPL_LUSERCLIENT, RPL_LUSEROP, RPL_USERUNKNOWN, RPL_LUSERCHANNELS and RPL_LUSERME. When replying, a server MUST send back RPL_LUSERCLIENT and RPL_LUSERME. The other replies are only sent back if a non-zero count is found for them. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LUSEROP   252
-
-
- -

-252 <integer> :operator(s) online -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_LUSERUNKNOWN   253
-
-
- -

-253 <integer> :unknown connection(s) -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_MOTD   372
-
-
- -

-372 :- <text> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_MOTDSTART   375
-
-
- -

-375 :- <server> Message of the day - -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_MYINFO   004
-
-
- -

-004 <servername> <version> <available user modes> <available channel modes> -

-The server sends replies 001 to 004 to a user upon successful registration. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_NAMREPLY   353
-
-
- -

-353 ( "= -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_NOTOPIC   331
-
-
- -

-331 <channel> :No topic is set -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_NOUSERS   395
-
-
- -

-395 :Nobody logged in -

-If the USERS message is handled by a server, the replies RPL_USERSTART, RPL_USERS, RPL_ENDOFUSERS and RPL_NOUSERS are used. RPL_USERSSTART MUST be sent first, following by either a sequence of RPL_USERS or a single RPL_NOUSER. Following this is RPL_ENDOFUSERS. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_NOWAWAY   306
-
-
- -

-306 :You have been marked as being away -

-These replies are used with the AWAY command (if allowed). RPL_AWAY is sent to any client sending a PRIVMSG to a client which is away. RPL_AWAY is only sent by the server to which the client is connected. Replies RPL_UNAWAY and RPL_NOWAWAY are sent when the client removes and sets an AWAY message. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_REHASHING   382
-
-
- -

-382 <config file> :Rehashing -

-If the REHASH option is used and an operator sends a REHASH message, an RPL_REHASHING is sent back to the operator. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_SERVLIST   234
-
-
- -

-234 <name> <server> <mask> <type> <hopcount> <info> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_SERVLISTEND   235
-
-
- -

-235 <mask> <type> :End of service listing -

-When listing services in reply to a SERVLIST message, a server is required to send the list back using the RPL_SERVLIST and RPL_SERVLISTEND messages. A separate RPL_SERVLIST is sent for each service. After the services have been listed (or if none present) a RPL_SERVLISTEND MUST be sent. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_STATSCOMMANDS   212
-
-
- -

-212 <command> <count> <byte count> <remote count> -

-reports statistics on commands usage. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_STATSLINKINFO   211
-
-
- -

-211 <linkname> <sendq> <sent messages> <sent Kbytes> <received messages> <received Kbytes> <time open> -

-reports statistics on a connection. <linkname> identifies the particular connection, <sendq> is the amount of data that is queued and waiting to be sent <sent messages> the number of messages sent, and <sent Kbytes> the amount of data sent, in Kbytes. <received messages> and <received Kbytes> are the equivalent of <sent messages> and <sent Kbytes> for received data, respectively. <time open> indicates how long ago the connection was opened, in seconds. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_STATSOLINE   243
-
-
- -

-243 O <hostmask> * <name> -

-reports the allowed hosts from where user may become IRC operators. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_STATSUPTIME   242
-
-
- -

-242 :Server Up d days d:02d:02d -

-reports the server uptime. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_SUMMONING   342
-
-
- -

-342 <user> :Summoning user to IRC -

-Returned by a server answering a SUMMON message to indicate that it is summoning that user. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TIME   391
-
-
- -

-391 <server> :<string showing server's local time> -

-When replying to the TIME message, a server MUST send the reply using the RPL_TIME format above. The string showing the time need only contain the correct day and time there. There is no further requirement for the time string. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TOPIC   332
-
-
- -

-332 <channel> :<topic> -

-When sending a TOPIC message to determine the channel topic, one of two replies is sent. If the topic is set, RPL_TOPIC is sent back else RPL_NOTOPIC. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACECLASS   209
-
-
- -

-209 Class <class> <count> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACECONNECTING   201
-
-
- -

-201 Try. <class> <server> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACEEND   262
-
-
- -

-262 <server name> <version & debug level> :End of TRACE -

-The RPL_TRACE* are all returned by the server in response to the TRACE message. How many are returned is dependent on the TRACE message and whether it was sent by an operator or not. There is no predefined order for which occurs first. Replies RPL_TRACEUNKNOWN, RPL_TRACECONNECTING and RPL_TRACEHANDSHAKE are all used for connections which have not been fully established and are either unknown, still attempting to connect or in the process of completing the 'server handshake'. RPL_TRACELINK is sent by any server which handles a TRACE message and has to pass it on to another server. The list of RPL_TRACELINKs sent in response to a TRACE command traversing the IRC network should reflect the actual connectivity of the servers themselves along that path. RPL_TRACENEWTYPE is to be used for any connection which does not fit in the other categories but is being displayed anyway. RPL_TRACEEND is sent to indicate the end of the list. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACEHANDSHAKE   202
-
-
- -

-202 H.S. <class> <server> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACELINK   200
-
-
- -

-200 Link <version & debug level> <destination> <next server> V<protocol version> <link uptime in seconds> <backstream sendq> <upstream sendq> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACELOG   261
-
-
- -

-261 File <logfile> <debug level> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACENEWTYPE   208
-
-
- -

-208 <newtype> 0 <client name> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACEOPERATOR   204
-
-
- -

-204 Oper <class> <nick> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACESERVER   206
-
-
- -

-206 Serv <class> <int>S <int>C <server> <nick!user|*!*>@<host|server> V<protocol version> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACESERVICE   207
-
-
- -

-207 Service <class> <name> <type> <active type> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACEUNKNOWN   203
-
-
- -

-203 ???? <class> [<client IP address in dot form>] -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRACEUSER   205
-
-
- -

-205 User <class> <nick> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_TRYAGAIN   263
-
-
- -

-263 <command> :Please wait a while and try again. -

-When a server drops a command without processing it, it MUST use the reply RPL_TRYAGAIN to inform the originating client. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_UMODEIS   221
-
-
- -

-221 <user mode string> -

-To answer a query about a client's own mode, RPL_UMODEIS is sent back. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_UNAWAY   305
-
-
- -

-305 :You are no longer marked as being away -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_UNIQOPIS   325
-
-
- -

-325 <channel> <nickname> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_USERHOST   302
-
-
- -

-302 :*1<reply> *( -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_USERS   393
-
-
- -

-393 :<username> <ttyline> <hostname> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_USERSSTART   392
-
-
- -

-392 :UserID Terminal Host -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_VERSION   351
-
-
- -

-351 <version>.<debuglevel> <server> :<comments> -

-Reply by the server showing its version details. The <version> is the version of the software being used (including any patchlevel revisions) and the <debuglevel> is used to indicate if the server is running in "debug mode". The "comments" field may contain any comments about the version or further version details. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WELCOME   001
-
-
- -

-001 Welcome to the Internet Relay Network <nick>!<user>@<host> -

-The server sends replies 001 to 004 to a user upon successful registration. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOISCHANNELS   319
-
-
- -

-319 "<nick> :*( ( "@" / "+" ) <channel> " " )" -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOISIDLE   317
-
-
- -

-317 <nick> <integer> :seconds idle -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOISOPERATOR   313
-
-
- -

-313 <nick> :is an IRC operator -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOISSERVER   312
-
-
- -

-312 <nick> <server> :<server info> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOISUSER   311
-
-
- -

-311 <nick> <user> <host> * :<real name> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOREPLY   352
-
-
- -

-352 <channel> <user> <host> <server> <nick> ( "H -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_WHOWASUSER   314
-
-
- -

-314 <nick> <user> <host> * :<real name> -

-No description available in RFC -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_YOUREOPER   381
-
-
- -

-381 :You are now an IRC operator -

-RPL_YOUREOPER is sent back to a client which has just successfully issued an OPER message and gained operator status. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_YOURESERVICE   383
-
-
- -

-383 You are service <servicename> -

-Sent by the server to a service upon successful registration. -

-

- -

-
- - - - -
#define LIBIRC_RFC_RPL_YOURHOST   002
-
-
- -

-002 Your host is <servername>, running version <ver> -

-The server sends replies 001 to 004 to a user upon successful registration. -

-

-

-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__running.html libircclient-1.8/doc/html/group__running.html --- libircclient-1.3+dfsg1/doc/html/group__running.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/group__running.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,168 +0,0 @@ - - -libircclient: Running IRC session. - - - - - -
-

Running IRC session.

- - - - - - - - - - - -

Functions

int irc_run (irc_session_t *session)
 Goes into forever-loop, processing IRC events and generating callbacks.
int irc_add_select_descriptors (irc_session_t *session, fd_set *in_set, fd_set *out_set, int *maxfd)
 Adds IRC socket(s) for the descriptor set to use in select().
int irc_process_select_descriptors (irc_session_t *session, fd_set *in_set, fd_set *out_set)
 Processes the IRC socket(s), which descriptor(s) are set.
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_add_select_descriptors (irc_session_t session,
fd_set *  in_set,
fd_set *  out_set,
int *  maxfd 
)
-
-
- -

-Adds IRC socket(s) for the descriptor set to use in select(). -

-

Parameters:
- - - - - -
session An initiated and connected session.
in_set A FD_IN descriptor set for select()
out_set A FD_OUT descriptor set for select()
maxfd A max descriptor found.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function should be used when you already have a program with select() based data processing. You prepare your descriptors, call this function to add session's descriptor(s) into set, and then call select(). When it returns, you should call irc_add_select_descriptors, which sends/recvs all available data, parses received data, calls your callbacks(!), and returns. Then you can process your sockets from set. See the example.

-

See also:
irc_process_select_descriptors
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_process_select_descriptors (irc_session_t session,
fd_set *  in_set,
fd_set *  out_set 
)
-
-
- -

-Processes the IRC socket(s), which descriptor(s) are set. -

-

Parameters:
- - - - -
session An initiated and connected session.
in_set A FD_IN descriptor set for select()
out_set A FD_OUT descriptor set for select()
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function should be used in pair with irc_add_select_descriptors function. See irc_add_select_descriptors description.

-

See also:
irc_add_select_descriptors
- -
-

- -

-
- - - - - - - - - -
int irc_run (irc_session_t session  ) 
-
-
- -

-Goes into forever-loop, processing IRC events and generating callbacks. -

-

Parameters:
- - -
session An initiated and connected session.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno().
-This function goes into forever loop, processing the IRC events, and calling appropriate callbacks. This function will not return until the server connection is terminated - either by server, or by calling irc_cmd_quit. This function should be used, if you don't need asynchronous request processing (i.e. your bot just reacts on the events, and doesn't generate it asynchronously). Even in last case, you still can call irc_run, and start the asynchronous thread in event_connect handler. See examples. -
-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/group__sendcmds.html libircclient-1.8/doc/html/group__sendcmds.html --- libircclient-1.3+dfsg1/doc/html/group__sendcmds.html 2004-09-29 22:17:53.000000000 +0000 +++ libircclient-1.8/doc/html/group__sendcmds.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,415 +0,0 @@ - - -libirc: Sending IRC commands. - - - - -

Sending IRC commands.

- - - - - - - - - - - - - - - - - - - - - - - -

Functions

int irc_send_raw (irc_session_t *session, const char *format,...)
 Sends raw data to the IRC server.
int irc_cmd_quit (irc_session_t *session, const char *reason)
 Sends QUIT command to the IRC server.
int irc_cmd_join (irc_session_t *session, const char *channel, const char *key)
 Joins the new IRC channel.
int irc_cmd_msg (irc_session_t *session, const char *nch, const char *text)
 Sends the message to the nick or to the channel.
int irc_cmd_me (irc_session_t *session, const char *nch, const char *text)
 Sends the /me (CTCP ACTION) message to the nick or to the channel.
int irc_cmd_notice (irc_session_t *session, const char *nch, const char *text)
 Sends the notice to the nick or to the channel.
int irc_cmd_kick (irc_session_t *session, const char *nick, const char *channel, const char *reason)
 Kick some lazy ass out of channel.
-

Function Documentation

-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_join irc_session_t session,
const char *  channel,
const char *  key
-
- - - - - -
-   - - -

-Joins the new IRC channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
channel A channel name to join to. Must not be NULL.
key Channel password. May be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through event_numeric.
-This function is used to JOIN the IRC channel. If the channel is not exist, it will be automatically created by the IRC server. Note that to JOIN the password-protected channel, you must know the password, and specify it in the key argument.
-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_kick irc_session_t session,
const char *  nick,
const char *  channel,
const char *  reason
-
- - - - - -
-   - - -

-Kick some lazy ass out of channel. -

-

Parameters:
- - - - - -
session An initiated and connected session.
nick A nick to kick. Must not be NULL.
channel A channel to kick this nick out of. Must not be NULL.
reason A reason to kick. May be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through ::event_numeric.
-This function is used to kick a person out of channel. Note that you must be a channel operator to kick anyone.

-

See also:
event_numeric
-
-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_me irc_session_t session,
const char *  nch,
const char *  text
-
- - - - - -
-   - - -

-Sends the /me (CTCP ACTION) message to the nick or to the channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nch A target nick or channel. Must not be NULL.
text Action message text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through event_numeric.
-This function is used to send the /me message to channel or private. As for irc_cmd_msg, the target is determined by nch argument.

-

See also:
irc_cmd_msg
-
-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
irc_cmd_msg irc_session_t session,
const char *  nch,
const char *  text
-
- - - - - -
-   - - -

-Sends the message to the nick or to the channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nch A target nick or channel. Must not be NULL.
text Message text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through event_numeric.
-This function is used to send the channel or private messages. The target is determined by nch argument: if it describes nick, this will be a private message, if a channel name - public (channel) message. Note that depending on channel modes, you may be required to join the channel to send the channel messages.
-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_cmd_notice irc_session_t session,
const char *  nch,
const char *  text
-
- - - - - -
-   - - -

-Sends the notice to the nick or to the channel. -

-

Parameters:
- - - - -
session An initiated and connected session.
nch A target nick or channel. Must not be NULL.
text Notice text. Must not be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through event_numeric.
-This function is used to send the channel or private notices. The target is determined by nch argument: if it describes nick, this will be a private message, if a channel name - public (channel) message. Note that depending on channel modes, you may be required to join the channel to send the channel notices.

-The only difference between message and notice is that, according to RFC 1459, you must not automatically reply to NOTICE messages.

-

See also:
irc_cmd_msg
-
-

- - - - -
- - - - - - - - - - - - - - - - - - -
int irc_cmd_quit irc_session_t session,
const char *  reason
-
- - - - - -
-   - - -

-Sends QUIT command to the IRC server. -

-

Parameters:
- - - -
session An initiated and connected session.
reason A reason to quit. May be NULL.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through event_numeric.
-This function sends the QUIT command to the IRC server. This command forces the IRC server to close the IRC connection, and terminate the session.
-

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - -
int irc_send_raw irc_session_t session,
const char *  format,
  ...
-
- - - - - -
-   - - -

-Sends raw data to the IRC server. -

-

Parameters:
- - - -
session An initiated and connected session.
format A printf-formatted string, followed by function args.
-
-
Returns:
Return code 0 means success. Other value means error, the error code may be obtained through irc_errno(). Any error, generated by the IRC server, is available through event_numeric.
-This function sends the raw data as-is to the IRC server. Use it to generate a server command, which is not (yet) provided by libirc directly.
-


Generated on Thu Sep 30 02:18:10 2004 for libirc by - -doxygen 1.3.8
- - diff -Nru libircclient-1.3+dfsg1/doc/html/index.html libircclient-1.8/doc/html/index.html --- libircclient-1.3+dfsg1/doc/html/index.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/index.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,48 +0,0 @@ - - -libircclient: libircclient - a IRC library to create IRC clients - - - - - -
-

libircclient - a IRC library to create IRC clients

-

-

1.3

-Introduction

-libircclient is a small but powerful library, which implements client-server IRC protocol. It is designed to be small, fast, portable and compatible to RFC standards, and most IRC clients. libircclient features include:
    -
  • Full multi-threading support.
  • Single threads handles all the IRC processing.
  • Support for single-threaded applications, and socket-based applications, which use select()
  • Synchronous and asynchronous interfaces.
  • CTCP support with optional build-in reply code.
  • Flexible DCC support, including both DCC chat, and DCC file transfer.
  • Can both initiate and react to initiated DCC.
  • Can accept or decline DCC sessions asynchronously.
  • Plain C interface and implementation (possible to use from C++ code, obviously)
  • Compatible with RFC 1459 and most IRC clients.
  • Free, licensed under LGPL license.
  • Good documentation and examples available.
-

-Compilation on Unix

-To compile libircclient, unpack the distribution, and do the standard mantra:
 # ./configure
- # make
- # make install
-

-Compilation under MS Windows

-To compile libircclient under MS Windows:
    -
  • open the src/win32/libircclient.dsw file;
  • select the appropriate library linkage (static or dynamic), and debug/release version;
  • do 'Make build'
-

-You can also build the example using spammer.dsp project file. Here you can see how to integrate libircclient into your own project.

-Documentation

-Documentation is not installed with make install; you should copy it somewhere by hand. There is html documentation (in doc/html) and manual pages (doc/man). It is also recommended to check the examples directory, there are a few examples, they'll help you.

-Author, copyright, support.

-If you have any questions, bug reports, suggestions regarding libircclient - please send them to gyunaev@ulduzsoft.com.

-Copyright (C) 2004-2009 Georgy Yunaev gyunaev@ulduzsoft.com

-This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

-This library 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 Lesser General Public License for more details.

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libircclient_8h.html libircclient-1.8/doc/html/libircclient_8h.html --- libircclient-1.3+dfsg1/doc/html/libircclient_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libircclient_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,244 +0,0 @@ - - -libircclient: libircclient.h File Reference - - - - - -
-

libircclient.h File Reference

This file defines all prototypes and functions to use libircclient. More... -

-#include <sys/select.h>
-#include "libirc_errors.h"
-#include "libirc_rfcnumeric.h"
-#include "libirc_events.h"
-#include "libirc_options.h"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Typedefs

typedef struct irc_session_s irc_session_t
 A libircclient IRC session.
typedef struct irc_dcc_session_s irc_dcc_session_t
 A libircclient DCC session.
typedef unsigned int irc_dcc_t
 A DCC session identifier.
typedef void(* irc_dcc_callback_t )(irc_session_t *session, irc_dcc_t id, int status, void *ctx, const char *data, unsigned int length)
 A common DCC callback, used to inform you about the current DCC state or event.

Functions

irc_session_tirc_create_session (irc_callbacks_t *callbacks)
 Creates and initiates a new IRC session.
void irc_destroy_session (irc_session_t *session)
 Destroys previously created IRC session.
int irc_connect (irc_session_t *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)
 Initiates a connection to IRC server.
int irc_connect6 (irc_session_t *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)
 Initiates a connection to IRC server using IPv6.
void irc_disconnect (irc_session_t *session)
 Disconnects a connection to IRC server.
int irc_is_connected (irc_session_t *session)
 Checks whether the session is connecting/connected to the IRC server.
int irc_run (irc_session_t *session)
 Goes into forever-loop, processing IRC events and generating callbacks.
int irc_add_select_descriptors (irc_session_t *session, fd_set *in_set, fd_set *out_set, int *maxfd)
 Adds IRC socket(s) for the descriptor set to use in select().
int irc_process_select_descriptors (irc_session_t *session, fd_set *in_set, fd_set *out_set)
 Processes the IRC socket(s), which descriptor(s) are set.
int irc_send_raw (irc_session_t *session, const char *format,...)
 Sends raw data to the IRC server.
int irc_cmd_quit (irc_session_t *session, const char *reason)
 Sends QUIT command to the IRC server.
int irc_cmd_join (irc_session_t *session, const char *channel, const char *key)
 Joins the new IRC channel.
int irc_cmd_part (irc_session_t *session, const char *channel)
 Leaves the IRC channel.
int irc_cmd_invite (irc_session_t *session, const char *nick, const char *channel)
 Invites a user to invite-only channel.
int irc_cmd_names (irc_session_t *session, const char *channel)
 Obtains a list of users who're in channel.
int irc_cmd_list (irc_session_t *session, const char *channel)
 Obtains a list of active server channels with their topics.
int irc_cmd_topic (irc_session_t *session, const char *channel, const char *topic)
 Views or changes the channel topic.
int irc_cmd_channel_mode (irc_session_t *session, const char *channel, const char *mode)
 Views or changes the channel mode.
int irc_cmd_user_mode (irc_session_t *session, const char *mode)
 Views or changes your own user mode.
int irc_cmd_nick (irc_session_t *session, const char *newnick)
 Changes your nick.
int irc_cmd_whois (irc_session_t *session, const char *nick)
 Queries the information about the nick.
int irc_cmd_msg (irc_session_t *session, const char *nch, const char *text)
 Sends the message to the nick or to the channel.
int irc_cmd_me (irc_session_t *session, const char *nch, const char *text)
 Sends the /me (CTCP ACTION) message to the nick or to the channel.
int irc_cmd_notice (irc_session_t *session, const char *nch, const char *text)
 Sends the notice to the nick or to the channel.
int irc_cmd_kick (irc_session_t *session, const char *nick, const char *channel, const char *reason)
 Kick some lazy ass out of channel.
int irc_cmd_ctcp_request (irc_session_t *session, const char *nick, const char *request)
 Generates a CTCP request.
int irc_cmd_ctcp_reply (irc_session_t *session, const char *nick, const char *reply)
 Generates a reply to the CTCP request.
void irc_target_get_nick (const char *target, char *nick, size_t size)
 Gets the nick part from the target.
void irc_target_get_host (const char *target, char *nick, size_t size)
 Gets the host part from the target.
int irc_dcc_chat (irc_session_t *session, void *ctx, const char *nick, irc_dcc_callback_t callback, irc_dcc_t *dccid)
 Initiates a DCC CHAT.
int irc_dcc_msg (irc_session_t *session, irc_dcc_t dccid, const char *text)
 Sends the message to the specific DCC CHAT.
int irc_dcc_accept (irc_session_t *session, irc_dcc_t dccid, void *ctx, irc_dcc_callback_t callback)
 Accepts a remote DCC CHAT or DCC RECVFILE request.
int irc_dcc_decline (irc_session_t *session, irc_dcc_t dccid)
 Declines a remote DCC CHAT or DCC RECVFILE request.
int irc_dcc_sendfile (irc_session_t *session, void *ctx, const char *nick, const char *filename, irc_dcc_callback_t callback, irc_dcc_t *dccid)
 Sends a file via DCC.
int irc_dcc_destroy (irc_session_t *session, irc_dcc_t dccid)
 Destroys a DCC session.
void irc_get_version (unsigned int *high, unsigned int *low)
 Obtains a libircclient version.
void irc_set_ctx (irc_session_t *session, void *ctx)
 Sets the IRC session context.
void * irc_get_ctx (irc_session_t *session)
 Returns the IRC session context.
int irc_errno (irc_session_t *session)
 Returns the last error code.
const char * irc_strerror (int ircerrno)
 Returns the text error message associated with this error code.
void irc_option_set (irc_session_t *session, unsigned int option)
 Sets the libircclient option.
void irc_option_reset (irc_session_t *session, unsigned int option)
 Resets the libircclient option.
char * irc_color_strip_from_mirc (const char *message)
 Removes all the color codes and format options.
char * irc_color_convert_from_mirc (const char *message)
 Converts all the color codes and format options to libircclient colors.
char * irc_color_convert_to_mirc (const char *message)
 Converts all the color codes from libircclient format to mIRC.
-


Detailed Description

-This file defines all prototypes and functions to use libircclient. -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004 libircclient is a small but powerful library, which implements client-server IRC protocol. It is designed to be small, fast, portable and compatible to RFC standards, and most IRC clients. libircclient features include:
    -
  • Full multi-threading support.
  • Single threads handles all the IRC processing.
  • Support for single-threaded applications, and socket-based applications, which use select()
  • Synchronous and asynchronous interfaces.
  • CTCP support with optional build-in reply code.
  • Flexible DCC support, including both DCC chat, and DCC file transfer.
  • Can both initiate and react to initiated DCC.
  • Can accept or decline DCC sessions asynchronously.
  • Plain C interface and implementation (possible to use from C++ code, obviously)
  • Compatible with RFC 1459 and most IRC clients.
  • Free, licensed under LGPL license.
-
-Note that to use libircclient, only libircclient.h should be included into your program. Do not include other libirc_* headers.

Typedef Documentation

- -
-
- - - - -
typedef struct irc_dcc_session_s irc_dcc_session_t
-
-
- -

-A libircclient DCC session. -

-This structure describes a DCC session used by libircclient. Its members are internal to libircclient, and should not be used directly. -

-

- -

-
- - - - -
typedef unsigned int irc_dcc_t
-
-
- -

-A DCC session identifier. -

-The irc_dcc_t type is a DCC session identifier, used to identify the DCC sessions in callbacks and various functions. -

-

- -

-
- - - - -
typedef struct irc_session_s irc_session_t
-
-
- -

-A libircclient IRC session. -

-This structure describes an IRC session. Its members are internal to libircclient, and should not be used directly. -

-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libirc__doc_8h.html libircclient-1.8/doc/html/libirc__doc_8h.html --- libircclient-1.3+dfsg1/doc/html/libirc__doc_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libirc__doc_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ - - -libircclient: libirc_doc.h File Reference - - - - - -
-

libirc_doc.h File Reference

This file contains Doxygen modules. More... -

- - -
-


Detailed Description

-This file contains Doxygen modules. -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004
-
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libirc__doc__faq_8h.html libircclient-1.8/doc/html/libirc__doc__faq_8h.html --- libircclient-1.3+dfsg1/doc/html/libirc__doc__faq_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libirc__doc__faq_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,36 +0,0 @@ - - -libircclient: libirc_doc_faq.h File Reference - - - - - -
-

libirc_doc_faq.h File Reference

This file contains libircclient FAQ. More... -

- - -
-


Detailed Description

-This file contains libircclient FAQ. -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004
-
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libirc__errors_8h.html libircclient-1.8/doc/html/libirc__errors_8h.html --- libircclient-1.3+dfsg1/doc/html/libirc__errors_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libirc__errors_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,102 +0,0 @@ - - -libircclient: libirc_errors.h File Reference - - - - - -
-

libirc_errors.h File Reference

This file defines error codes generated by libircclient. More... -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Defines

#define LIBIRC_ERR_OK   0
#define LIBIRC_ERR_INVAL   1
 Invalid argument.
#define LIBIRC_ERR_RESOLV   2
 Could not resolve host.
#define LIBIRC_ERR_SOCKET   3
 Could not create socket.
#define LIBIRC_ERR_CONNECT   4
 Could not connect.
#define LIBIRC_ERR_CLOSED   5
 Connection closed by remote peer.
#define LIBIRC_ERR_NOMEM   6
 Out of memory.
#define LIBIRC_ERR_ACCEPT   7
 Could not accept new connection.
#define LIBIRC_ERR_NODCCSEND   9
 Could not send this.
#define LIBIRC_ERR_READ   10
 Could not read DCC file or socket.
#define LIBIRC_ERR_WRITE   11
 Could not write DCC file or socket.
#define LIBIRC_ERR_STATE   12
 Invalid state.
#define LIBIRC_ERR_TIMEOUT   13
 Operation timed out.
#define LIBIRC_ERR_OPENFILE   14
 Could not open file for DCC send.
#define LIBIRC_ERR_TERMINATED   15
 IRC server connection terminated.
#define LIBIRC_ERR_NOIPV6   16
 IPv6 not supported.
#define LIBIRC_ERR_MAX   17
-


Detailed Description

-This file defines error codes generated by libircclient. -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004
-

Define Documentation

- -
-
- - - - -
#define LIBIRC_ERR_MAX   17
-
-
- -

-brief Internal max error value count -

-

-

-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libirc__events_8h.html libircclient-1.8/doc/html/libirc__events_8h.html --- libircclient-1.3+dfsg1/doc/html/libirc__events_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libirc__events_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,53 +0,0 @@ - - -libircclient: libirc_events.h File Reference - - - - - -
-

libirc_events.h File Reference

Describes event callbacks generated by libircclient. More... -

- - - - - - - - - - - - - - - - - - - -

Data Structures

struct  irc_callbacks_t
 Event callbacks structure. More...

Typedefs

typedef void(* irc_event_callback_t )(irc_session_t *session, const char *event, const char *origin, const char **params, unsigned int count)
 A most common event callback.
typedef void(* irc_eventcode_callback_t )(irc_session_t *session, unsigned int event, const char *origin, const char **params, unsigned int count)
 A numeric event callback.
typedef void(* irc_event_dcc_chat_t )(irc_session_t *session, const char *nick, const char *addr, irc_dcc_t dccid)
 A remote DCC CHAT request callback.
typedef void(* irc_event_dcc_send_t )(irc_session_t *session, const char *nick, const char *addr, const char *filename, unsigned long size, irc_dcc_t dccid)
 A remote DCC CHAT request callback.
-


Detailed Description

-Describes event callbacks generated by libircclient. -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004 This file should not be included directly. Include libircclient.h instead.
-
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libirc__options_8h.html libircclient-1.8/doc/html/libirc__options_8h.html --- libircclient-1.3+dfsg1/doc/html/libirc__options_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libirc__options_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,42 +0,0 @@ - - -libircclient: libirc_options.h File Reference - - - - - -
-

libirc_options.h File Reference

This file defines the options used in irc_session_options(). More... -

- - - - - - - - -

Defines

#define LIBIRC_OPTION_DEBUG   (1 << 1)
#define LIBIRC_OPTION_STRIPNICKS   (1 << 2)
 allows to strip origins automatically.
-


Detailed Description

-This file defines the options used in irc_session_options(). -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004
-
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/libirc__rfcnumeric_8h.html libircclient-1.8/doc/html/libirc__rfcnumeric_8h.html --- libircclient-1.3+dfsg1/doc/html/libirc__rfcnumeric_8h.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/libirc__rfcnumeric_8h.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,442 +0,0 @@ - - -libircclient: libirc_rfcnumeric.h File Reference - - - - - -
-

libirc_rfcnumeric.h File Reference

This file defines RFC numeric reply codes, which should be used in event_numeric callback. Every code also has a comment regarding its arguments. More... -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Defines

#define LIBIRC_RFC_RPL_WELCOME   001
 001 Welcome to the Internet Relay Network <nick>!<user>@<host>
#define LIBIRC_RFC_RPL_YOURHOST   002
 002 Your host is <servername>, running version <ver>
#define LIBIRC_RFC_RPL_CREATED   003
 003 This server was created <date>
#define LIBIRC_RFC_RPL_MYINFO   004
 004 <servername> <version> <available user modes> <available channel modes>
#define LIBIRC_RFC_RPL_BOUNCE   005
 005 Try server <server name>, port <port number>
#define LIBIRC_RFC_RPL_USERHOST   302
 302 :*1<reply> *(
#define LIBIRC_RFC_RPL_ISON   303
 303 :*1<nick> *(
#define LIBIRC_RFC_RPL_AWAY   301
 301 <nick> :<away message>
#define LIBIRC_RFC_RPL_UNAWAY   305
 305 :You are no longer marked as being away
#define LIBIRC_RFC_RPL_NOWAWAY   306
 306 :You have been marked as being away
#define LIBIRC_RFC_RPL_WHOISUSER   311
 311 <nick> <user> <host> * :<real name>
#define LIBIRC_RFC_RPL_WHOISSERVER   312
 312 <nick> <server> :<server info>
#define LIBIRC_RFC_RPL_WHOISOPERATOR   313
 313 <nick> :is an IRC operator
#define LIBIRC_RFC_RPL_WHOISIDLE   317
 317 <nick> <integer> :seconds idle
#define LIBIRC_RFC_RPL_ENDOFWHOIS   318
 318 <nick> :End of WHOIS list
#define LIBIRC_RFC_RPL_WHOISCHANNELS   319
 319 "<nick> :*( ( "@" / "+" ) <channel> " " )"
#define LIBIRC_RFC_RPL_WHOWASUSER   314
 314 <nick> <user> <host> * :<real name>
#define LIBIRC_RFC_RPL_ENDOFWHOWAS   369
 369 <nick> :End of WHOWAS
#define LIBIRC_RFC_RPL_LIST   322
 322 <channel> <# visible> :<topic>
#define LIBIRC_RFC_RPL_LISTEND   323
 323 :End of LIST
#define LIBIRC_RFC_RPL_UNIQOPIS   325
 325 <channel> <nickname>
#define LIBIRC_RFC_RPL_CHANNELMODEIS   324
 324 <channel> <mode> <mode params>
#define LIBIRC_RFC_RPL_NOTOPIC   331
 331 <channel> :No topic is set
#define LIBIRC_RFC_RPL_TOPIC   332
 332 <channel> :<topic>
#define LIBIRC_RFC_RPL_INVITING   341
 341 <channel> <nick>
#define LIBIRC_RFC_RPL_SUMMONING   342
 342 <user> :Summoning user to IRC
#define LIBIRC_RFC_RPL_INVITELIST   346
 346 <channel> <invitemask>
#define LIBIRC_RFC_RPL_ENDOFINVITELIST   347
 347 <channel> :End of channel invite list
#define LIBIRC_RFC_RPL_EXCEPTLIST   348
 348 <channel> <exceptionmask>
#define LIBIRC_RFC_RPL_ENDOFEXCEPTLIST   349
 349 <channel> :End of channel exception list
#define LIBIRC_RFC_RPL_VERSION   351
 351 <version>.<debuglevel> <server> :<comments>
#define LIBIRC_RFC_RPL_WHOREPLY   352
 352 <channel> <user> <host> <server> <nick> ( "H
#define LIBIRC_RFC_RPL_ENDOFWHO   315
 315 <name> :End of WHO list
#define LIBIRC_RFC_RPL_NAMREPLY   353
 353 ( "=
#define LIBIRC_RFC_RPL_ENDOFNAMES   366
 366 <channel> :End of NAMES list
#define LIBIRC_RFC_RPL_LINKS   364
 364 <mask> <server> :<hopcount> <server info>
#define LIBIRC_RFC_RPL_ENDOFLINKS   365
 365 <mask> :End of LINKS list
#define LIBIRC_RFC_RPL_BANLIST   367
 367 <channel> <banmask>
#define LIBIRC_RFC_RPL_ENDOFBANLIST   368
 368 <channel> :End of channel ban list
#define LIBIRC_RFC_RPL_INFO   371
 371 :<string>
#define LIBIRC_RFC_RPL_ENDOFINFO   374
 374 :End of INFO list
#define LIBIRC_RFC_RPL_MOTDSTART   375
 375 :- <server> Message of the day -
#define LIBIRC_RFC_RPL_MOTD   372
 372 :- <text>
#define LIBIRC_RFC_RPL_ENDOFMOTD   376
 376 :End of MOTD command
#define LIBIRC_RFC_RPL_YOUREOPER   381
 381 :You are now an IRC operator
#define LIBIRC_RFC_RPL_REHASHING   382
 382 <config file> :Rehashing
#define LIBIRC_RFC_RPL_YOURESERVICE   383
 383 You are service <servicename>
#define LIBIRC_RFC_RPL_TIME   391
 391 <server> :<string showing server's local time>
#define LIBIRC_RFC_RPL_USERSSTART   392
 392 :UserID Terminal Host
#define LIBIRC_RFC_RPL_USERS   393
 393 :<username> <ttyline> <hostname>
#define LIBIRC_RFC_RPL_ENDOFUSERS   394
 394 :End of users
#define LIBIRC_RFC_RPL_NOUSERS   395
 395 :Nobody logged in
#define LIBIRC_RFC_RPL_TRACELINK   200
 200 Link <version & debug level> <destination> <next server> V<protocol version> <link uptime in seconds> <backstream sendq> <upstream sendq>
#define LIBIRC_RFC_RPL_TRACECONNECTING   201
 201 Try. <class> <server>
#define LIBIRC_RFC_RPL_TRACEHANDSHAKE   202
 202 H.S. <class> <server>
#define LIBIRC_RFC_RPL_TRACEUNKNOWN   203
 203 ???? <class> [<client IP address in dot form>]
#define LIBIRC_RFC_RPL_TRACEOPERATOR   204
 204 Oper <class> <nick>
#define LIBIRC_RFC_RPL_TRACEUSER   205
 205 User <class> <nick>
#define LIBIRC_RFC_RPL_TRACESERVER   206
 206 Serv <class> <int>S <int>C <server> <nick!user|*!*>@<host|server> V<protocol version>
#define LIBIRC_RFC_RPL_TRACESERVICE   207
 207 Service <class> <name> <type> <active type>
#define LIBIRC_RFC_RPL_TRACENEWTYPE   208
 208 <newtype> 0 <client name>
#define LIBIRC_RFC_RPL_TRACECLASS   209
 209 Class <class> <count>
#define LIBIRC_RFC_RPL_TRACELOG   261
 261 File <logfile> <debug level>
#define LIBIRC_RFC_RPL_TRACEEND   262
 262 <server name> <version & debug level> :End of TRACE
#define LIBIRC_RFC_RPL_STATSLINKINFO   211
 211 <linkname> <sendq> <sent messages> <sent Kbytes> <received messages> <received Kbytes> <time open>
#define LIBIRC_RFC_RPL_STATSCOMMANDS   212
 212 <command> <count> <byte count> <remote count>
#define LIBIRC_RFC_RPL_ENDOFSTATS   219
 219 <stats letter> :End of STATS report
#define LIBIRC_RFC_RPL_STATSUPTIME   242
 242 :Server Up d days d:02d:02d
#define LIBIRC_RFC_RPL_STATSOLINE   243
 243 O <hostmask> * <name>
#define LIBIRC_RFC_RPL_UMODEIS   221
 221 <user mode string>
#define LIBIRC_RFC_RPL_SERVLIST   234
 234 <name> <server> <mask> <type> <hopcount> <info>
#define LIBIRC_RFC_RPL_SERVLISTEND   235
 235 <mask> <type> :End of service listing
#define LIBIRC_RFC_RPL_LUSERCLIENT   251
 251 :There are <integer> users and <integer> services on <integer> servers
#define LIBIRC_RFC_RPL_LUSEROP   252
 252 <integer> :operator(s) online
#define LIBIRC_RFC_RPL_LUSERUNKNOWN   253
 253 <integer> :unknown connection(s)
#define LIBIRC_RFC_RPL_LUSERCHANNELS   254
 254 <integer> :channels formed
#define LIBIRC_RFC_RPL_LUSERME   255
 255 :I have <integer> clients and <integer> servers
#define LIBIRC_RFC_RPL_ADMINME   256
 256 <server> :Administrative info
#define LIBIRC_RFC_RPL_ADMINLOC1   257
 257 :<admin info>
#define LIBIRC_RFC_RPL_ADMINLOC2   258
 258 :<admin info>
#define LIBIRC_RFC_RPL_ADMINEMAIL   259
 259 :<admin info>
#define LIBIRC_RFC_RPL_TRYAGAIN   263
 263 <command> :Please wait a while and try again.
#define LIBIRC_RFC_ERR_NOSUCHNICK   401
 401 <nickname> :No such nick/channel
#define LIBIRC_RFC_ERR_NOSUCHSERVER   402
 402 <server name> :No such server
#define LIBIRC_RFC_ERR_NOSUCHCHANNEL   403
 403 <channel name> :No such channel
#define LIBIRC_RFC_ERR_CANNOTSENDTOCHAN   404
 404 <channel name> :Cannot send to channel
#define LIBIRC_RFC_ERR_TOOMANYCHANNELS   405
 405 <channel name> :You have joined too many channels
#define LIBIRC_RFC_ERR_WASNOSUCHNICK   406
 406 <nickname> :There was no such nickname
#define LIBIRC_RFC_ERR_TOOMANYTARGETS   407
 407 <target> :<error code> recipients. <abort message>
#define LIBIRC_RFC_ERR_NOSUCHSERVICE   408
 408 <service name> :No such service
#define LIBIRC_RFC_ERR_NOORIGIN   409
 409 :No origin specified
#define LIBIRC_RFC_ERR_NORECIPIENT   411
 411 :No recipient given (<command>)
#define LIBIRC_RFC_ERR_NOTEXTTOSEND   412
 412 :No text to send
#define LIBIRC_RFC_ERR_NOTOPLEVEL   413
 413 <mask> :No toplevel domain specified
#define LIBIRC_RFC_ERR_WILDTOPLEVEL   414
 414 <mask> :Wildcard in toplevel domain
#define LIBIRC_RFC_ERR_BADMASK   415
 415 <mask> :Bad Server/host mask
#define LIBIRC_RFC_ERR_UNKNOWNCOMMAND   421
 421 <command> :Unknown command
#define LIBIRC_RFC_ERR_NOMOTD   422
 422 :MOTD File is missing
#define LIBIRC_RFC_ERR_NOADMININFO   423
 423 <server> :No administrative info available
#define LIBIRC_RFC_ERR_FILEERROR   424
 424 :File error doing <file op> on <file>
#define LIBIRC_RFC_ERR_NONICKNAMEGIVEN   431
 431 :No nickname given
#define LIBIRC_RFC_ERR_ERRONEUSNICKNAME   432
 432 <nick> :Erroneous nickname
#define LIBIRC_RFC_ERR_NICKNAMEINUSE   433
 433 <nick> :Nickname is already in use
#define LIBIRC_RFC_ERR_NICKCOLLISION   436
 436 <nick> :Nickname collision KILL from <user>@<host>
#define LIBIRC_RFC_ERR_UNAVAILRESOURCE   437
 437 <nick/channel> :Nick/channel is temporarily unavailable
#define LIBIRC_RFC_ERR_USERNOTINCHANNEL   441
 441 <nick> <channel> :They aren't on that channel
#define LIBIRC_RFC_ERR_NOTONCHANNEL   442
 442 <channel> :You're not on that channel
#define LIBIRC_RFC_ERR_USERONCHANNEL   443
 443 <user> <channel> :is already on channel
#define LIBIRC_RFC_ERR_NOLOGIN   444
 444 <user> :User not logged in
#define LIBIRC_RFC_ERR_SUMMONDISABLED   445
 445 :SUMMON has been disabled
#define LIBIRC_RFC_ERR_USERSDISABLED   446
 446 :USERS has been disabled
#define LIBIRC_RFC_ERR_NOTREGISTERED   451
 451 :You have not registered
#define LIBIRC_RFC_ERR_NEEDMOREPARAMS   461
 461 <command> :Not enough parameters
#define LIBIRC_RFC_ERR_ALREADYREGISTRED   462
 462 :Unauthorized command (already registered)
#define LIBIRC_RFC_ERR_NOPERMFORHOST   463
 463 :Your host isn't among the privileged
#define LIBIRC_RFC_ERR_PASSWDMISMATCH   464
 464 :Password incorrect
#define LIBIRC_RFC_ERR_YOUREBANNEDCREEP   465
 465 :You are banned from this server
#define LIBIRC_RFC_ERR_YOUWILLBEBANNED   466
 466 :You will be banned from this server
#define LIBIRC_RFC_ERR_KEYSET   467
 467 <channel> :Channel key already set
#define LIBIRC_RFC_ERR_CHANNELISFULL   471
 471 <channel> :Cannot join channel (+l)
#define LIBIRC_RFC_ERR_UNKNOWNMODE   472
 472 <char> :is unknown mode char to me for <channel>
#define LIBIRC_RFC_ERR_INVITEONLYCHAN   473
 473 <channel> :Cannot join channel (+i)
#define LIBIRC_RFC_ERR_BANNEDFROMCHAN   474
 474 <channel> :Cannot join channel (+b)
#define LIBIRC_RFC_ERR_BADCHANNELKEY   475
 475 <channel> :Cannot join channel (+k)
#define LIBIRC_RFC_ERR_BADCHANMASK   476
 476 <channel> :Bad Channel Mask
#define LIBIRC_RFC_ERR_NOCHANMODES   477
 477 <channel> :Channel doesn't support modes
#define LIBIRC_RFC_ERR_BANLISTFULL   478
 478 <channel> <char> :Channel list is full
#define LIBIRC_RFC_ERR_NOPRIVILEGES   481
 481 :Permission Denied- You're not an IRC operator
#define LIBIRC_RFC_ERR_CHANOPRIVSNEEDED   482
 482 <channel> :You're not channel operator
#define LIBIRC_RFC_ERR_CANTKILLSERVER   483
 483 :You can't kill a server!
#define LIBIRC_RFC_ERR_RESTRICTED   484
 484 :Your connection is restricted!
#define LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED   485
 485 :You're not the original channel operator
#define LIBIRC_RFC_ERR_NOOPERHOST   491
 491 :No O-lines for your host
#define LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG   501
 501 :Unknown MODE flag
#define LIBIRC_RFC_ERR_USERSDONTMATCH   502
 502 :Cannot change mode for other users
-


Detailed Description

-This file defines RFC numeric reply codes, which should be used in event_numeric callback. Every code also has a comment regarding its arguments. -

-

Author:
Georgy Yunaev
-
Version:
1.0
-
Date:
09.2004
-
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/modules.html libircclient-1.8/doc/html/modules.html --- libircclient-1.3+dfsg1/doc/html/modules.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/modules.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,44 +0,0 @@ - - -libircclient: Module Index - - - - - - -
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/pagefaq.html libircclient-1.8/doc/html/pagefaq.html --- libircclient-1.3+dfsg1/doc/html/pagefaq.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/pagefaq.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,76 +0,0 @@ - - -libircclient: Frequently Asked Questions - - - - - -
-

Frequently Asked Questions

-FAQ

-

-Why the IRC server generates all these event_numeric events, and what is their meaning?

-The IRC protocol itself is asynchronous and server-driven. For you, this means the following:
    -
  • For any IRC command, it is not possible to obtain an immediate response whether the command succeed or not. Instead the server will send the reply in a short (or long) period of time.
  • For some IRC command there is no 'success' response at all. For example, when you send a text message, IRC server will not send anything to confirm that the message is already sent.
  • You can send several commands to the IRC server, and then receive several replies regarding every command. The order of the replies you receive is generally undefined.
  • A lot of IRC events sent to you is generated by other users, or the IRC server itself, and are sent to you just when they are generated.
  • Long lists (for example, channel lists) are also sent as events. Moreover, these events could be separated by other events (message or notices). And it is your responsibility to separate the data (using event codes), and use some sort of data structure that will hold it until the data is complete. It is not possible to simply query the list of channels, and expect that its content will immediately arrive.
  • IRC protocol is event-based, not request-based. This means that if you send JOIN request asking to join a channel, you cannot assume that you have joined it until the server tells you so with JOIN event. Also it is possible for server to "JOIN" you to a specific channel implicitly, without even sending a join request.
  • You should be prepared to expect the unexpected from the IRC server. For example, the server can change your nick (seen on most servers, which use nickserv authentication. You can be "forced" to join the channel, to say something, to leave a channel, to change your usermode and so on. Listen what IRC server tells you, and do so.
-

-Why the irc_cmd_... functions does not return an error if the IRC server reports it? For example, why irc_cmd_join() returns success when I attempt to join a password-protected channel, and then the IRC server sends an error?

-The irc_cmd_... functions return success when the command is sent to the IRC server. The asynchronous nature of IRC makes it impossible to obtain the command result immediately. Please read Why the IRC server generates all these event_numeric events, and what is their meaning?.

-How to register/auth with NICKSERV?

-There is no 'standard' way. However, knowing that all NICKSERV messages are sent via irc_callbacks_t::event_notice, you can use following algorithm:
static void event_notice (irc_session_t * session, const char * event, 
-             const char * origin, const char ** params, unsigned int count)
-{
-    char buf[256];
-
-    if ( !origin )
-        return;
-
-    if ( strcasecmp (origin, "nickserv") )
-        return;
-
-    if ( strstr (params[1], "This nick is not registered") == params[1] )
-    {
-        sprintf (buf, "REGISTER %s NOMAIL", gCfg.irc_nickserv_password);
-        irc_cmd_msg (session, "nickserv", buf);
-    }
-    else if ( strstr (params[1], "This nickname is registered and protected") 
-      == params[1] )
-    {
-        sprintf (buf, "IDENTIFY %s", gCfg.irc_nickserv_password);
-        irc_cmd_msg (session, "nickserv", buf);
-    }
-    else if ( strstr (params[1], "Password accepted - you are now recognized") 
-      == params[1] )
-        printf ("Nickserv authentication succeed.");
-}
-

-The idea is to parse the messages sent from NICKSERV, and if they're matched the specific patterns, react on them appropriately.

-What is CTCP, and why do I need my own handler?

-CTCP abbreviature is deciphered as "Client-to-Client Protocol". It is used between the IRC clients to query the remote client for some data, or to send some information - for example, /me messages are sent via CTCP. There is no standard list of possible CTCP requests, and different IRC clients often add their own CTCP codes. The built-in handler reacts on TIME, VERSION, PING and FINGER CTCP queries. If you need to react on other queries, you'll have to write your own CTCP handler. See the source code of libirc_event_ctcp_internal to get an idea how to write it.

-Why don't I receive event_umode when I am made +o (a channel operator)?

-Because this is a channel mode, not a user mode. The user mode +o means that this user is an IRC network operator, not just a channel operator.

-Why do I get a LIBIRC_ERR_SOCKET error while using static library under Win32?

-Because if you use static library, you have to initialize Winsock manually:

-

WORD wVersionRequested = MAKEWORD (1, 1);
-WSADATA wsaData;
-
-if ( WSAStartup (wVersionRequested, &wsaData) != 0 )
-    // report an error
-
-// And now we can use libircclient
-
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/pages.html libircclient-1.8/doc/html/pages.html --- libircclient-1.3+dfsg1/doc/html/pages.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/pages.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,29 +0,0 @@ - - -libircclient: Page Index - - - - - -
-

Related Pages

Here is a list of all related documentation pages: -
-
Generated on Sat Jan 3 15:01:06 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/html/structirc__callbacks__t.html libircclient-1.8/doc/html/structirc__callbacks__t.html --- libircclient-1.3+dfsg1/doc/html/structirc__callbacks__t.html 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/html/structirc__callbacks__t.html 1970-01-01 00:00:00.000000000 +0000 @@ -1,512 +0,0 @@ - - -libircclient: irc_callbacks_t Struct Reference - - - - - -
-

irc_callbacks_t Struct Reference
- -[Handling IRC events.] -

Event callbacks structure. -More... -

-#include <libirc_events.h> -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Data Fields

irc_event_callback_t event_connect
irc_event_callback_t event_nick
irc_event_callback_t event_quit
irc_event_callback_t event_join
irc_event_callback_t event_part
irc_event_callback_t event_mode
irc_event_callback_t event_umode
irc_event_callback_t event_topic
irc_event_callback_t event_kick
irc_event_callback_t event_channel
irc_event_callback_t event_privmsg
irc_event_callback_t event_notice
irc_event_callback_t event_invite
irc_event_callback_t event_ctcp_req
irc_event_callback_t event_ctcp_rep
irc_event_callback_t event_ctcp_action
irc_event_callback_t event_unknown
irc_eventcode_callback_t event_numeric
irc_event_dcc_chat_t event_dcc_chat_req
irc_event_dcc_send_t event_dcc_send_req
-


Detailed Description

-Event callbacks structure. -

-All the communication with the IRC network is based on events. Generally speaking, event is anything generated by someone else in the network, or by the IRC server itself. "Someone sends you a message", "Someone has joined the channel", "Someone has quits IRC" - all these messages are events.

-Every event has its own event handler, which is called when the appropriate event is received. You don't have to define all the event handlers; define only the handlers for the events you need to intercept.

-Most event callbacks are the types of irc_event_callback_t. There are also events, which generate irc_eventcode_callback_t, irc_event_dcc_chat_t and irc_event_dcc_send_t callbacks.


Field Documentation

- -
- -
- -

-The "on_connect" event is triggered when the client successfully connects to the server, and could send commands to the server. No extra params supplied; params is 0. -

-

- -

- -
- -

-The "nick" event is triggered when the client receives a NICK message, meaning that someone (including you) on a channel with the client has changed their nickname.

-

Parameters:
- - - -
origin the person, who changes the nick. Note that it can be you!
params[0] mandatory, contains the new nick.
-
- -
-

- -

- -
- -

-The "quit" event is triggered upon receipt of a QUIT message, which means that someone on a channel with the client has disconnected.

-

Parameters:
- - - -
origin the person, who is disconnected
params[0] optional, contains the reason message (user-specified).
-
- -
-

- -

- -
- -

-The "join" event is triggered upon receipt of a JOIN message, which means that someone has entered a channel that the client is on.

-

Parameters:
- - - -
origin the person, who joins the channel. By comparing it with your own nickname, you can check whether your JOIN command succeed.
params[0] mandatory, contains the channel name.
-
- -
-

- -

- -
- -

-The "part" event is triggered upon receipt of a PART message, which means that someone has left a channel that the client is on.

-

Parameters:
- - - - -
origin the person, who leaves the channel. By comparing it with your own nickname, you can check whether your PART command succeed.
params[0] mandatory, contains the channel name.
params[1] optional, contains the reason message (user-defined).
-
- -
-

- -

- -
- -

-The "mode" event is triggered upon receipt of a channel MODE message, which means that someone on a channel with the client has changed the channel's parameters.

-

Parameters:
- - - - - -
origin the person, who changed the channel mode.
params[0] mandatory, contains the channel name.
params[1] mandatory, contains the changed channel mode, like '+t', '-i' and so on.
params[2] optional, contains the mode argument (for example, a key for +k mode, or user who got the channel operator status for +o mode)
-
- -
-

- -

- -
- -

-The "umode" event is triggered upon receipt of a user MODE message, which means that your user mode has been changed.

-

Parameters:
- - - -
origin the person, who changed the channel mode.
params[0] mandatory, contains the user changed mode, like '+t', '-i' and so on.
-
- -
-

- -

- -
- -

-The "topic" event is triggered upon receipt of a TOPIC message, which means that someone on a channel with the client has changed the channel's topic.

-

Parameters:
- - - - -
origin the person, who changes the channel topic.
params[0] mandatory, contains the channel name.
params[1] optional, contains the new topic.
-
- -
-

- -

- -
- -

-The "kick" event is triggered upon receipt of a KICK message, which means that someone on a channel with the client (or possibly the client itself!) has been forcibly ejected.

-

Parameters:
- - - - - -
origin the person, who kicked the poor.
params[0] mandatory, contains the channel name.
params[0] optional, contains the nick of kicked person.
params[1] optional, contains the kick text
-
- -
-

- -

- -
- -

-The "channel" event is triggered upon receipt of a PRIVMSG message to an entire channel, which means that someone on a channel with the client has said something aloud. Your own messages don't trigger PRIVMSG event.

-

Parameters:
- - - - -
origin the person, who generates the message.
params[0] mandatory, contains the channel name.
params[1] optional, contains the message text
-
- -
-

- -

- -
- -

-The "privmsg" event is triggered upon receipt of a PRIVMSG message which is addressed to one or more clients, which means that someone is sending the client a private message.

-

Parameters:
- - - - -
origin the person, who generates the message.
params[0] mandatory, contains your nick.
params[1] optional, contains the message text
-
- -
-

- -

- -
- -

-The "notice" event is triggered upon receipt of a NOTICE message which means that someone has sent the client a public or private notice. According to RFC 1459, the only difference between NOTICE and PRIVMSG is that you should NEVER automatically reply to NOTICE messages. Unfortunately, this rule is frequently violated by IRC servers itself - for example, NICKSERV messages require reply, and are NOTICEs.

-

Parameters:
- - - - -
origin the person, who generates the message.
params[0] mandatory, contains the channel name.
params[1] optional, contains the message text
-
- -
-

- -

- -
- -

-The "invite" event is triggered upon receipt of an INVITE message, which means that someone is permitting the client's entry into a +i channel.

-

Parameters:
- - - - -
origin the person, who INVITEs you.
params[0] mandatory, contains your nick.
params[1] mandatory, contains the channel name you're invited into.
-
-
See also:
irc_cmd_invite irc_cmd_chanmode_invite
- -
-

- -

- -
- -

-The "ctcp" event is triggered when the client receives the CTCP request. By default, the built-in CTCP request handler is used. The build-in handler automatically replies on most CTCP messages, so you will rarely need to override it.

-

Parameters:
- - - -
origin the person, who generates the message.
params[0] mandatory, the complete CTCP message, including its arguments.
-
-Mirc generates PING, FINGER, VERSION, TIME and ACTION messages, check the source code of libirc_event_ctcp_internal function to see how to write your own CTCP request handler. Also you may find useful this question in FAQ: What is CTCP, and why do I need my own handler? -
-

- -

- -
- -

-The "ctcp" event is triggered when the client receives the CTCP reply.

-

Parameters:
- - - -
origin the person, who generates the message.
params[0] mandatory, the CTCP message itself with its arguments.
-
- -
-

- -

- -
- -

-The "action" event is triggered when the client receives the CTCP ACTION message. These messages usually looks like:
-

 [23:32:55] * Tim gonna sleep.
-

-

Parameters:
- - - -
origin the person, who generates the message.
params[0] mandatory, the ACTION message.
-
- -
-

- -

- -
- -

-The "unknown" event is triggered upon receipt of any number of unclassifiable miscellaneous messages, which aren't handled by the library. -

-

- -

- -
- -

-The "numeric" event is triggered upon receipt of any numeric response from the server. There is a lot of such responses, see the full list here: Numeric reply codes from RFC1459.

-See the params in irc_eventcode_callback_t specification. -

-

- -

- -
- -

-The "dcc chat" event is triggered when someone requests a DCC CHAT from you.

-See the params in irc_event_dcc_chat_t specification. -

-

- -

- -
- -

-The "dcc chat" event is triggered when someone wants to send a file to you via DCC SEND request.

-See the params in irc_event_dcc_send_t specification. -

-

-


The documentation for this struct was generated from the following file: -
-
Generated on Sat Jan 3 15:01:07 2009 for libircclient by  - -doxygen 1.5.6
- - diff -Nru libircclient-1.3+dfsg1/doc/index.rst libircclient-1.8/doc/index.rst --- libircclient-1.3+dfsg1/doc/index.rst 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/doc/index.rst 2013-06-24 06:09:38.603106000 +0000 @@ -0,0 +1,52 @@ +.. Libircclient documentation master file, created by + sphinx-quickstart on Sat Jun 15 22:37:32 2013. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Libircclient technical documentation +"""""""""""""""""""""""""""""""""""" + +===================== + Introduction +===================== + +.. toctree:: + + sources/Introduction + + +===================== + Integration +===================== + +.. toctree:: + + sources/Writing_code + +===================== + API Reference +===================== + +.. toctree:: + + sources/API_reference_callbacks + sources/API_reference_functions + sources/API_reference_types + sources/API_reference_constants + +===================== + Appendix +===================== + +.. toctree:: + + sources/Appendix_FAQ + sources/Appendix_LGPL + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` + diff -Nru libircclient-1.3+dfsg1/doc/make.bat libircclient-1.8/doc/make.bat --- libircclient-1.3+dfsg1/doc/make.bat 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/doc/make.bat 2013-06-24 06:09:38.603106000 +0000 @@ -0,0 +1,190 @@ +@ECHO OFF + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set BUILDDIR=_build +set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% . +set I18NSPHINXOPTS=%SPHINXOPTS% . +if NOT "%PAPER%" == "" ( + set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS% + set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS% +) + +if "%1" == "" goto help + +if "%1" == "help" ( + :help + echo.Please use `make ^` where ^ is one of + echo. html to make standalone HTML files + echo. dirhtml to make HTML files named index.html in directories + echo. singlehtml to make a single large HTML file + echo. pickle to make pickle files + echo. json to make JSON files + echo. htmlhelp to make HTML files and a HTML help project + echo. qthelp to make HTML files and a qthelp project + echo. devhelp to make HTML files and a Devhelp project + echo. epub to make an epub + echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter + echo. text to make text files + echo. man to make manual pages + echo. texinfo to make Texinfo files + echo. gettext to make PO message catalogs + echo. changes to make an overview over all changed/added/deprecated items + echo. linkcheck to check all external links for integrity + echo. doctest to run all doctests embedded in the documentation if enabled + goto end +) + +if "%1" == "clean" ( + for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i + del /q /s %BUILDDIR%\* + goto end +) + +if "%1" == "html" ( + %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/html. + goto end +) + +if "%1" == "dirhtml" ( + %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml. + goto end +) + +if "%1" == "singlehtml" ( + %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml. + goto end +) + +if "%1" == "pickle" ( + %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the pickle files. + goto end +) + +if "%1" == "json" ( + %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can process the JSON files. + goto end +) + +if "%1" == "htmlhelp" ( + %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run HTML Help Workshop with the ^ +.hhp project file in %BUILDDIR%/htmlhelp. + goto end +) + +if "%1" == "qthelp" ( + %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; now you can run "qcollectiongenerator" with the ^ +.qhcp project file in %BUILDDIR%/qthelp, like this: + echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Libircclient.qhcp + echo.To view the help file: + echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Libircclient.ghc + goto end +) + +if "%1" == "devhelp" ( + %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. + goto end +) + +if "%1" == "epub" ( + %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The epub file is in %BUILDDIR%/epub. + goto end +) + +if "%1" == "latex" ( + %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex + if errorlevel 1 exit /b 1 + echo. + echo.Build finished; the LaTeX files are in %BUILDDIR%/latex. + goto end +) + +if "%1" == "text" ( + %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The text files are in %BUILDDIR%/text. + goto end +) + +if "%1" == "man" ( + %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The manual pages are in %BUILDDIR%/man. + goto end +) + +if "%1" == "texinfo" ( + %SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo. + goto end +) + +if "%1" == "gettext" ( + %SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale + if errorlevel 1 exit /b 1 + echo. + echo.Build finished. The message catalogs are in %BUILDDIR%/locale. + goto end +) + +if "%1" == "changes" ( + %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes + if errorlevel 1 exit /b 1 + echo. + echo.The overview file is in %BUILDDIR%/changes. + goto end +) + +if "%1" == "linkcheck" ( + %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck + if errorlevel 1 exit /b 1 + echo. + echo.Link check complete; look for any errors in the above output ^ +or in %BUILDDIR%/linkcheck/output.txt. + goto end +) + +if "%1" == "doctest" ( + %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest + if errorlevel 1 exit /b 1 + echo. + echo.Testing of doctests in the sources finished, look at the ^ +results in %BUILDDIR%/doctest/output.txt. + goto end +) + +:end diff -Nru libircclient-1.3+dfsg1/doc/Makefile libircclient-1.8/doc/Makefile --- libircclient-1.3+dfsg1/doc/Makefile 1970-01-01 00:00:00.000000000 +0000 +++ libircclient-1.8/doc/Makefile 2013-06-24 06:09:38.603106000 +0000 @@ -0,0 +1,153 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext + +help: + @echo "Please use \`make ' where is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + +clean: + -rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Libircclient.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Libircclient.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/Libircclient" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Libircclient" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." diff -Nru libircclient-1.3+dfsg1/doc/man/man3/common.3 libircclient-1.8/doc/man/man3/common.3 --- libircclient-1.3+dfsg1/doc/man/man3/common.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/common.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,29 +0,0 @@ -.TH "Getting libircclient version." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Getting libircclient version. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "void \fBirc_get_version\fP (unsigned int *high, unsigned int *low)" -.br -.RI "\fIObtains a libircclient version. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "void irc_get_version (unsigned int * high, unsigned int * low)" -.PP -Obtains a libircclient version. -.PP -\fBParameters:\fP -.RS 4 -\fIhigh\fP A pointer to receive the high version part. -.br -\fIlow\fP A pointer to receive the low version part. -.RE -.PP -This function returns the libircclient version. You can use the version either to check whether required options are available, or to output the version. The preferred printf-like format string to output the version is: -.PP -printf ('Version: %d.%02d', high, low); diff -Nru libircclient-1.3+dfsg1/doc/man/man3/conndisc.3 libircclient-1.8/doc/man/man3/conndisc.3 --- libircclient-1.3+dfsg1/doc/man/man3/conndisc.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/conndisc.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,137 +0,0 @@ -.TH "Connecting, disconnecting from IRC server." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Connecting, disconnecting from IRC server. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_connect\fP (\fBirc_session_t\fP *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)" -.br -.RI "\fIInitiates a connection to IRC server. \fP" -.ti -1c -.RI "int \fBirc_connect6\fP (\fBirc_session_t\fP *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)" -.br -.RI "\fIInitiates a connection to IRC server using IPv6. \fP" -.ti -1c -.RI "void \fBirc_disconnect\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIDisconnects a connection to IRC server. \fP" -.ti -1c -.RI "int \fBirc_is_connected\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIChecks whether the session is connecting/connected to the IRC server. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "int irc_connect (\fBirc_session_t\fP * session, const char * server, unsigned short port, const char * server_password, const char * nick, const char * username, const char * realname)" -.PP -Initiates a connection to IRC server. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP A session to initiate connections on. Must not be NULL. -.br -\fIserver\fP A domain name or an IP address of the IRC server to connect to. Must not be NULL. -.br -\fIport\fP An IRC server port, usually 6667. -.br -\fIserver_password\fP An IRC server password, if the server requires it. May be NULL, in this case password will not be send to the IRC server. Vast majority of IRC servers do not require passwords. -.br -\fInick\fP A nick, which libircclient will use to login to the IRC server. Must not be NULL. -.br -\fIusername\fP A username of the account, which is used to connect to the IRC server. This is for information only, will be shown in 'user properties' dialogs and returned by /whois request. May be NULL, in this case 'nobody' will be sent as username. -.br -\fIrealname\fP A real name of the person, who connects to the IRC. Usually people put some wide-available information here (URL, small description or something else). This information also will be shown in 'user properties' dialogs and returned by /whois request. May be NULL, in this case 'noname' will be sent as username. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function prepares and initiates a connection to the IRC server. The connection is done asynchronously (see \fBirc_callbacks_t::event_connect\fP), so the success return value means that connection was initiated (but not completed!) successfully. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_run\fP -.RE -.PP - -.SS "int irc_connect6 (\fBirc_session_t\fP * session, const char * server, unsigned short port, const char * server_password, const char * nick, const char * username, const char * realname)" -.PP -Initiates a connection to IRC server using IPv6. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP A session to initiate connections on. Must not be NULL. -.br -\fIserver\fP A domain name or an IP address of the IRC server to connect to. Must not be NULL. -.br -\fIport\fP An IRC server port, usually 6667. -.br -\fIserver_password\fP An IRC server password, if the server requires it. May be NULL, in this case password will not be send to the IRC server. Vast majority of IRC servers do not require passwords. -.br -\fInick\fP A nick, which libircclient will use to login to the IRC server. Must not be NULL. -.br -\fIusername\fP A username of the account, which is used to connect to the IRC server. This is for information only, will be shown in 'user properties' dialogs and returned by /whois request. May be NULL, in this case 'nobody' will be sent as username. -.br -\fIrealname\fP A real name of the person, who connects to the IRC. Usually people put some wide-available information here (URL, small description or something else). This information also will be shown in 'user properties' dialogs and returned by /whois request. May be NULL, in this case 'noname' will be sent as username. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function prepares and initiates a connection to the IRC server. The connection is done asynchronously (see \fBirc_callbacks_t::event_connect\fP), so the success return value means that connection was initiated (but not completed!) successfully. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_run\fP -.RE -.PP - -.SS "void irc_disconnect (\fBirc_session_t\fP * session)" -.PP -Disconnects a connection to IRC server. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An IRC session. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. -.RE -.PP -This function closes the IRC connection. After that connection is closed, libircclient automatically leaves irc_run loop. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_connect\fP \fBirc_run\fP -.RE -.PP - -.SS "int irc_is_connected (\fBirc_session_t\fP * session)" -.PP -Checks whether the session is connecting/connected to the IRC server. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initialized IRC session. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 1 means that session is connecting or connected to the IRC server, zero value means that the session has been disconnected. -.RE -.PP -\fBSee also:\fP -.RS 4 -\fBirc_connect\fP \fBirc_run\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/contexts.3 libircclient-1.8/doc/man/man3/contexts.3 --- libircclient-1.3+dfsg1/doc/man/man3/contexts.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/contexts.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,55 +0,0 @@ -.TH "Managing contexts." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Managing contexts. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "void \fBirc_set_ctx\fP (\fBirc_session_t\fP *session, void *ctx)" -.br -.RI "\fISets the IRC session context. \fP" -.ti -1c -.RI "void * \fBirc_get_ctx\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIReturns the IRC session context. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "void * irc_get_ctx (\fBirc_session_t\fP * session)" -.PP -Returns the IRC session context. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated session. -.RE -.PP -This function returns the IRC session context, which was set by \fBirc_set_ctx()\fP. If no context was set, this function returns NULL. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_set_ctx\fP -.RE -.PP - -.SS "void irc_set_ctx (\fBirc_session_t\fP * session, void * ctx)" -.PP -Sets the IRC session context. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated session. -.br -\fIctx\fP A context. -.RE -.PP -This function sets the user-defined context for this IRC session. This context is not used by libircclient. Its purpose is to store session-specific user data, which may be obtained later by calling \fBirc_get_ctx()\fP. Note that libircclient just 'carries out' this pointer. If you allocate some memory, and store its address in ctx (most common usage), it is your responsibility to free it before calling \fBirc_destroy_session()\fP. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_get_ctx\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/ctcp.3 libircclient-1.8/doc/man/man3/ctcp.3 --- libircclient-1.3+dfsg1/doc/man/man3/ctcp.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/ctcp.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,105 +0,0 @@ -.TH "CTCP requests and replies." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -CTCP requests and replies. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_cmd_ctcp_request\fP (\fBirc_session_t\fP *session, const char *nick, const char *request)" -.br -.RI "\fIGenerates a CTCP request. \fP" -.ti -1c -.RI "int \fBirc_cmd_ctcp_reply\fP (\fBirc_session_t\fP *session, const char *nick, const char *reply)" -.br -.RI "\fIGenerates a reply to the CTCP request. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "int irc_cmd_ctcp_reply (\fBirc_session_t\fP * session, const char * nick, const char * reply)" -.PP -Generates a reply to the CTCP request. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInick\fP A target nick to send request to. Must not be NULL. -.br -\fIreply\fP A reply string. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to send a reply to the CTCP request, generated by \fBirc_callbacks_t::event_ctcp_req\fP. Note that you will not receive this event unless you specify your own handler as \fCevent_ctcp_req\fP callback during the IRC session initialization. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP - -.SS "int irc_cmd_ctcp_request (\fBirc_session_t\fP * session, const char * nick, const char * request)" -.PP -Generates a CTCP request. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInick\fP A target nick to send request to. Must not be NULL. -.br -\fIrequest\fP A request string. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to send a CTCP request. There are four CTCP requests supported by Mirc: VERSION - get the client software name and version FINGER - get the client username, host and real name. PING - get the client delay. TIME - get the client local time. -.PP -A reply to the CTCP request will be sent by the \fBirc_callbacks_t::event_ctcp_rep\fP callback; be sure to define it. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_callbacks_t::event_ctcp_rep\fP \fBirc_callbacks_t::event_numeric\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/dccstuff.3 libircclient-1.8/doc/man/man3/dccstuff.3 --- libircclient-1.3+dfsg1/doc/man/man3/dccstuff.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/dccstuff.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,296 +0,0 @@ -.TH "DCC chat/send requests and replies." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -DCC chat/send requests and replies. \- -.SS "Typedefs" - -.in +1c -.ti -1c -.RI "typedef void(* \fBirc_dcc_callback_t\fP )(\fBirc_session_t\fP *session, \fBirc_dcc_t\fP id, int status, void *ctx, const char *data, unsigned int length)" -.br -.RI "\fIA common DCC callback, used to inform you about the current DCC state or event. \fP" -.in -1c -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_dcc_chat\fP (\fBirc_session_t\fP *session, void *ctx, const char *nick, \fBirc_dcc_callback_t\fP callback, \fBirc_dcc_t\fP *dccid)" -.br -.RI "\fIInitiates a DCC CHAT. \fP" -.ti -1c -.RI "int \fBirc_dcc_msg\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid, const char *text)" -.br -.RI "\fISends the message to the specific DCC CHAT. \fP" -.ti -1c -.RI "int \fBirc_dcc_accept\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid, void *ctx, \fBirc_dcc_callback_t\fP callback)" -.br -.RI "\fIAccepts a remote DCC CHAT or DCC RECVFILE request. \fP" -.ti -1c -.RI "int \fBirc_dcc_decline\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIDeclines a remote DCC CHAT or DCC RECVFILE request. \fP" -.ti -1c -.RI "int \fBirc_dcc_sendfile\fP (\fBirc_session_t\fP *session, void *ctx, const char *nick, const char *filename, \fBirc_dcc_callback_t\fP callback, \fBirc_dcc_t\fP *dccid)" -.br -.RI "\fISends a file via DCC. \fP" -.ti -1c -.RI "int \fBirc_dcc_destroy\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIDestroys a DCC session. \fP" -.in -1c -.SH "Typedef Documentation" -.PP -.SS "typedef void(* \fBirc_dcc_callback_t\fP)(\fBirc_session_t\fP *session, \fBirc_dcc_t\fP id, int status, void *ctx, const char *data, unsigned int length)" -.PP -A common DCC callback, used to inform you about the current DCC state or event. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An IRC session which generates the callback -.br -\fIid\fP A DCC session id. -.br -\fIstatus\fP An error status. 0 means no error, otherwise error code. -.br -\fIctx\fP A user-supplied context. -.br -\fIdata\fP Data supplied (if available) -.br -\fIlength\fP data length (if available) -.RE -.PP -This callback is called for all DCC functions when state change occurs. -.PP -For DCC CHAT, the callback is called in next circumstances: -.IP "\(bu" 2 -\fIstatus\fP is LIBIRC_ERR_CLOSED: connection is closed by remote peer. After returning from the callback, the DCC session is automatically destroyed. -.IP "\(bu" 2 -\fIstatus\fP is neither 0 nor LIBIRC_ERR_CLOSED: socket I/O error (connect error, accept error, recv error, send error). After returning from the callback, the DCC session is automatically destroyed. -.IP "\(bu" 2 -\fIstatus\fP is 0: new chat message received, \fIdata\fP contains the message (null-terminated string), \fIlength\fP contains the message length. -.PP -.PP -For DCC SEND, while file is sending, callback called in next circumstances: -.IP "\(bu" 2 -\fIstatus\fP is neither 0 nor LIBIRC_ERR_CLOSED: socket I/O error (connect error, accept error, recv error, send error). After returning from the callback, the DCC session is automatically destroyed. -.IP "\(bu" 2 -\fIstatus\fP is 0: new data received, \fIdata\fP contains the data received, \fIlength\fP contains the amount of data received. -.PP -.PP -For DCC RECV, while file is sending, callback called in next circumstances: -.IP "\(bu" 2 -\fIstatus\fP is neither 0 nor LIBIRC_ERR_CLOSED: socket I/O error (connect error, accept error, recv error, send error). After returning from the callback, the DCC session is automatically destroyed. -.IP "\(bu" 2 -\fIstatus\fP is 0, and \fIdata\fP is 0: file has been received successfully. After returning from the callback, the DCC session is automatically destroyed. -.IP "\(bu" 2 -\fIstatus\fP is 0, and \fIdata\fP is not 0: new data received, \fIdata\fP contains the data received, \fIlength\fP contains the amount of data received. -.PP - -.SH "Function Documentation" -.PP -.SS "int irc_dcc_accept (\fBirc_session_t\fP * session, \fBirc_dcc_t\fP dccid, void * ctx, \fBirc_dcc_callback_t\fP callback)" -.PP -Accepts a remote DCC CHAT or DCC RECVFILE request. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIdccid\fP A DCC session ID, returned by appropriate callback. -.br -\fIctx\fP A user-supplied DCC session context, which will be passed to the DCC callback function. May be NULL. -.br -\fIcallback\fP A DCC callback function, which will be called when anything is said by other party. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. -.RE -.PP -This function accepts a remote DCC request - either DCC CHAT or DCC FILE. After the request is accepted, the supplied callback will be called, and you can start sending messages or receiving the file. -.PP -This function should be called only after either event_dcc_chat_req or event_dcc_send_req events are generated, and should react to them. It is possible not to call irc_dcc_accept or irc_dcc_decline immediately in callback function - you may just return, and call it later. However, to prevent memory leaks, you must call either irc_dcc_decline or irc_dcc_accept for any incoming DCC request. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_decline\fP event_dcc_chat_req event_dcc_send_req -.RE -.PP - -.SS "int irc_dcc_chat (\fBirc_session_t\fP * session, void * ctx, const char * nick, \fBirc_dcc_callback_t\fP callback, \fBirc_dcc_t\fP * dccid)" -.PP -Initiates a DCC CHAT. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIctx\fP A user-supplied DCC session context, which will be passed to the DCC callback function. May be NULL. -.br -\fInick\fP A nick to DCC CHAT with. -.br -\fIcallback\fP A DCC callback function, which will be called when anything is said by other party. Must not be NULL. -.br -\fIdccid\fP On success, DCC session ID will be stored in this var. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function requests a DCC CHAT between you and other user. For newbies, DCC chat is like private chat, but it goes directly between two users, and bypasses IRC server. DCC CHAT request must be accepted by other side before you can send anything. -.PP -When the chat is accepted, terminated, or some data is received, the callback function is called. See the details in irc_dcc_callback_t declaration. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_callback_t\fP \fBirc_dcc_msg\fP -.RE -.PP - -.SS "int irc_dcc_decline (\fBirc_session_t\fP * session, \fBirc_dcc_t\fP dccid)" -.PP -Declines a remote DCC CHAT or DCC RECVFILE request. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIdccid\fP A DCC session ID, returned by appropriate callback. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. -.RE -.PP -This function declines a remote DCC request - either DCC CHAT or DCC FILE. -.PP -This function should be called only after either event_dcc_chat_req or event_dcc_send_req events are generated, and should react to them. It is possible not to call irc_dcc_accept or irc_dcc_decline immediately in callback function - you may just return, and call it later. However, to prevent memory leaks, you must call either irc_dcc_decline or irc_dcc_accept for any incoming DCC request. -.PP -Do not use this function to close the accepted or initiated DCC session. Use irc_dcc_destroy instead. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_accept\fP \fBirc_callbacks_t::event_dcc_chat_req\fP \fBirc_callbacks_t::event_dcc_send_req\fP \fBirc_dcc_destroy\fP -.RE -.PP - -.SS "int irc_dcc_destroy (\fBirc_session_t\fP * session, \fBirc_dcc_t\fP dccid)" -.PP -Destroys a DCC session. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIdccid\fP A DCC session ID. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. -.RE -.PP -This function closes the DCC connection (if available), and destroys the DCC session, freeing the used resources. It can be called in any moment, even from callbacks or from different threads. -.PP -Note that when DCC session is finished (either with success or failure), you should not destroy it - it will be destroyed automatically. -.SS "int irc_dcc_msg (\fBirc_session_t\fP * session, \fBirc_dcc_t\fP dccid, const char * text)" -.PP -Sends the message to the specific DCC CHAT. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An IRC session. -.br -\fIdccid\fP A DCC session ID, which chat request must have been accepted. -.br -\fItext\fP Message text. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. -.RE -.PP -This function is used to send the DCC CHAT messages. DCC CHAT request must be initiated and accepted first (or just accepted, if initiated by other side). -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_chat\fP -.RE -.PP - -.SS "int irc_dcc_sendfile (\fBirc_session_t\fP * session, void * ctx, const char * nick, const char * filename, \fBirc_dcc_callback_t\fP callback, \fBirc_dcc_t\fP * dccid)" -.PP -Sends a file via DCC. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIctx\fP A user-supplied DCC session context, which will be passed to the DCC callback function. May be NULL. -.br -\fInick\fP A nick to send file via DCC to. -.br -\fIfilename\fP A file name to sent. Must be an existing file. -.br -\fIcallback\fP A DCC callback function, which will be called when file sent operation is failed, progressed or completed. -.br -\fIdccid\fP On success, DCC session ID will be stored in this var. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function generates a DCC SEND request to send the file. When it is accepted, the file is sent to the remote party, and the DCC session is closed. The send operation progress and result can be checked in callback. See the details in irc_dcc_callback_t declaration. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_callback_t\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/errorcodes.3 libircclient-1.8/doc/man/man3/errorcodes.3 --- libircclient-1.3+dfsg1/doc/man/man3/errorcodes.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/errorcodes.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,173 +0,0 @@ -.TH "Error codes generated by libircclient." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Error codes generated by libircclient. \- -.SS "Defines" - -.in +1c -.ti -1c -.RI "#define \fBLIBIRC_ERR_OK\fP 0" -.br -.ti -1c -.RI "#define \fBLIBIRC_ERR_INVAL\fP 1" -.br -.RI "\fIInvalid argument. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_RESOLV\fP 2" -.br -.RI "\fICould not resolve host. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_SOCKET\fP 3" -.br -.RI "\fICould not create socket. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_CONNECT\fP 4" -.br -.RI "\fICould not connect. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_CLOSED\fP 5" -.br -.RI "\fIConnection closed by remote peer. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_NOMEM\fP 6" -.br -.RI "\fIOut of memory. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_ACCEPT\fP 7" -.br -.RI "\fICould not accept new connection. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_NODCCSEND\fP 9" -.br -.RI "\fICould not send this. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_READ\fP 10" -.br -.RI "\fICould not read DCC file or socket. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_WRITE\fP 11" -.br -.RI "\fICould not write DCC file or socket. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_STATE\fP 12" -.br -.RI "\fIInvalid state. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_TIMEOUT\fP 13" -.br -.RI "\fIOperation timed out. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_OPENFILE\fP 14" -.br -.RI "\fICould not open file for DCC send. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_TERMINATED\fP 15" -.br -.RI "\fIIRC server connection terminated. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_NOIPV6\fP 16" -.br -.RI "\fIIPv6 not supported. \fP" -.in -1c -.SH "Define Documentation" -.PP -.SS "#define LIBIRC_ERR_ACCEPT 7" -.PP -Could not accept new connection. -.PP -A DCC chat/send connection from the remote peer could not be accepted. Either the connection was just terminated before it is accepted, or there is a bug in libircclient. -.SS "#define LIBIRC_ERR_CLOSED 5" -.PP -Connection closed by remote peer. -.PP -The IRC connection was closed by the IRC server (which could mean that an IRC operator just have banned you from the server :)), or the DCC connection was closed by remote peer - for example, the other side just quits his mIrc. Usually it is not an error. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_run\fP \fBirc_connect\fP \fBirc_dcc_callback_t\fP -.RE -.PP - -.SS "#define LIBIRC_ERR_CONNECT 4" -.PP -Could not connect. -.PP -The socket could not connect to the IRC server, or to the destination DCC part. Usually means that either the IRC server is down or its address is invalid. For DCC the reason usually is the firewall on your or destination computer, which refuses DCC transfer. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_run\fP \fBirc_connect\fP -.RE -.PP - -.SS "#define LIBIRC_ERR_INVAL 1" -.PP -Invalid argument. -.PP -An invalid value was given for one of the arguments to a function. For example, supplying the NULL value for \fIchannel\fP argument of \fBirc_cmd_join()\fP produces LIBIRC_ERR_INVAL error. You should fix the code. -.SS "#define LIBIRC_ERR_NODCCSEND 9" -.PP -Could not send this. -.PP -A \fIfilename\fP supplied to \fBirc_dcc_sendfile()\fP could not be sent. Either is is not a file (a directory or a socket, for example), or it is not readable. * -.PP -\fBSee also:\fP -.RS 4 -\fBLIBIRC_ERR_OPENFILE\fP -.RE -.PP - -.SS "#define LIBIRC_ERR_NOIPV6 16" -.PP -IPv6 not supported. -.PP -The function which requires IPv6 support was called, but the IPv6 support was not compiled into the application -.SS "#define LIBIRC_ERR_NOMEM 6" -.PP -Out of memory. -.PP -There are two possible reasons for this error. First is that memory could not be allocated for libircclient use, and this error usually is fatal. Second reason is that the command queue (which keeps command ready to be sent to the IRC server) is full, and could not accept more commands yet. In this case you should just wait, and repeat the command later. -.SS "#define LIBIRC_ERR_OK 0" -.PP -brief No error -.SS "#define LIBIRC_ERR_OPENFILE 14" -.PP -Could not open file for DCC send. -.PP -The file specified in \fBirc_dcc_sendfile()\fP could not be opened. -.SS "#define LIBIRC_ERR_READ 10" -.PP -Could not read DCC file or socket. -.PP -Either a DCC file could not be read (for example, was truncated during sending), or a DCC socket returns a read error, which usually means that the network connection is terminated. -.SS "#define LIBIRC_ERR_RESOLV 2" -.PP -Could not resolve host. -.PP -The host name supplied for \fBirc_connect()\fP function could not be resolved into valid IP address. Usually means that host name is invalid. -.SS "#define LIBIRC_ERR_SOCKET 3" -.PP -Could not create socket. -.PP -The new socket could not be created or made non-blocking. Usually means that the server is out of resources, or (rarely :) a bug in libircclient. -.SS "#define LIBIRC_ERR_STATE 12" -.PP -Invalid state. -.PP -The function is called when it is not allowed to be called. For example, \fBirc_cmd_join()\fP was called before the connection to IRC server succeed, and event_connect is called. -.SS "#define LIBIRC_ERR_TERMINATED 15" -.PP -IRC server connection terminated. -.PP -The connection to the IRC server was terminated - possibly, by network error. Try to \fBirc_connect()\fP again. -.SS "#define LIBIRC_ERR_TIMEOUT 13" -.PP -Operation timed out. -.PP -The DCC request is timed out. There is a timer for each DCC request, which tracks connecting, accepting and non-accepted/declined DCC requests. For every request this timer is currently 60 seconds. If the DCC request was not connected, accepted or declined during this time, it will be terminated with this error. -.SS "#define LIBIRC_ERR_WRITE 11" -.PP -Could not write DCC file or socket. -.PP -Either a DCC file could not be written (for example, there is no free space on disk), or a DCC socket returns a write error, which usually means that the network connection is terminated. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/errors.3 libircclient-1.8/doc/man/man3/errors.3 --- libircclient-1.3+dfsg1/doc/man/man3/errors.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/errors.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,62 +0,0 @@ -.TH "Obtaining error values and descriptions." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Obtaining error values and descriptions. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_errno\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIReturns the last error code. \fP" -.ti -1c -.RI "const char * \fBirc_strerror\fP (int ircerrno)" -.br -.RI "\fIReturns the text error message associated with this error code. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "int irc_errno (\fBirc_session_t\fP * session)" -.PP -Returns the last error code. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated session. -.RE -.PP -This function returns the last error code associated with last operation of this IRC session. Possible error codes are defined in \fBlibirc_errors.h\fP -.PP -As usual, next errno rules apply: -.IP "\(bu" 2 -\fBirc_errno()\fP should be called ONLY if the called function fails; -.IP "\(bu" 2 -\fBirc_errno()\fP doesn't return 0 if function succeed; actually, the return value will be undefined. -.IP "\(bu" 2 -you should call \fBirc_errno()\fP IMMEDIATELY after function fails, before calling any other libircclient function. -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_strerror\fP -.RE -.PP - -.SS "const char * irc_strerror (int ircerrno)" -.PP -Returns the text error message associated with this error code. -.PP -\fBParameters:\fP -.RS 4 -\fIircerrno\fP A numeric error code returned by \fBirc_errno()\fP -.RE -.PP -This function returns the text representation of the given error code. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_errno()\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_channel.3 libircclient-1.8/doc/man/man3/event_channel.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_channel.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_channel.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_connect.3 libircclient-1.8/doc/man/man3/event_connect.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_connect.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_connect.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_ctcp_action.3 libircclient-1.8/doc/man/man3/event_ctcp_action.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_ctcp_action.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_ctcp_action.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_ctcp_rep.3 libircclient-1.8/doc/man/man3/event_ctcp_rep.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_ctcp_rep.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_ctcp_rep.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_ctcp_req.3 libircclient-1.8/doc/man/man3/event_ctcp_req.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_ctcp_req.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_ctcp_req.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_dcc_chat_req.3 libircclient-1.8/doc/man/man3/event_dcc_chat_req.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_dcc_chat_req.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_dcc_chat_req.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_dcc_send_req.3 libircclient-1.8/doc/man/man3/event_dcc_send_req.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_dcc_send_req.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_dcc_send_req.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_invite.3 libircclient-1.8/doc/man/man3/event_invite.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_invite.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_invite.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_join.3 libircclient-1.8/doc/man/man3/event_join.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_join.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_join.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_kick.3 libircclient-1.8/doc/man/man3/event_kick.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_kick.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_kick.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_mode.3 libircclient-1.8/doc/man/man3/event_mode.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_mode.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_mode.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_nick.3 libircclient-1.8/doc/man/man3/event_nick.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_nick.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_nick.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_notice.3 libircclient-1.8/doc/man/man3/event_notice.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_notice.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_notice.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_numeric.3 libircclient-1.8/doc/man/man3/event_numeric.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_numeric.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_numeric.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_part.3 libircclient-1.8/doc/man/man3/event_part.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_part.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_part.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_privmsg.3 libircclient-1.8/doc/man/man3/event_privmsg.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_privmsg.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_privmsg.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_quit.3 libircclient-1.8/doc/man/man3/event_quit.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_quit.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_quit.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/events.3 libircclient-1.8/doc/man/man3/events.3 --- libircclient-1.3+dfsg1/doc/man/man3/events.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/events.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,125 +0,0 @@ -.TH "Handling IRC events." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Handling IRC events. \- -.SS "Data Structures" - -.in +1c -.ti -1c -.RI "struct \fBirc_callbacks_t\fP" -.br -.RI "\fIEvent callbacks structure. \fP" -.in -1c -.SS "Typedefs" - -.in +1c -.ti -1c -.RI "typedef void(* \fBirc_event_callback_t\fP )(\fBirc_session_t\fP *session, const char *event, const char *origin, const char **params, unsigned int count)" -.br -.RI "\fIA most common event callback. \fP" -.ti -1c -.RI "typedef void(* \fBirc_eventcode_callback_t\fP )(\fBirc_session_t\fP *session, unsigned int event, const char *origin, const char **params, unsigned int count)" -.br -.RI "\fIA numeric event callback. \fP" -.ti -1c -.RI "typedef void(* \fBirc_event_dcc_chat_t\fP )(\fBirc_session_t\fP *session, const char *nick, const char *addr, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIA remote DCC CHAT request callback. \fP" -.ti -1c -.RI "typedef void(* \fBirc_event_dcc_send_t\fP )(\fBirc_session_t\fP *session, const char *nick, const char *addr, const char *filename, unsigned long size, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIA remote DCC CHAT request callback. \fP" -.in -1c -.SH "Typedef Documentation" -.PP -.SS "typedef void(* \fBirc_event_callback_t\fP)(\fBirc_session_t\fP *session, const char *event, const char *origin, const char **params, unsigned int count)" -.PP -A most common event callback. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP the session, which generates an event -.br -\fIevent\fP the text name of the event. Useful in case you use a single event handler for several events simultaneously. -.br -\fIorigin\fP the originator of the event. See the note below. -.br -\fIparams\fP a list of event params. Depending on the event nature, it could have zero or more params. The actual number of params is specified in count. None of the params can be NULL, but 'params' pointer itself could be NULL for some events. -.br -\fIcount\fP the total number of params supplied. -.RE -.PP -Every event generates a callback. This callback is generated by most events. Depending on the event nature, it can provide zero or more params. For each event, the number of provided params is fixed, and their meaning is described. -.PP -Every event has origin, though the \fIorigin\fP variable may be NULL, which means that event origin is unknown. The origin usually looks like nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling \fBirc_target_get_nick()\fP, or implicitly for all the events - by setting the \fBLIBIRC_OPTION_STRIPNICKS\fP option with \fBirc_option_set()\fP. -.SS "typedef void(* \fBirc_event_dcc_chat_t\fP)(\fBirc_session_t\fP *session, const char *nick, const char *addr, \fBirc_dcc_t\fP dccid)" -.PP -A remote DCC CHAT request callback. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP the session, which generates an event -.br -\fInick\fP the person who requested DCC CHAT with you. -.br -\fIaddr\fP the person's IP address in decimal-dot notation. -.br -\fIdccid\fP an id associated with this request. Use it in calls to \fBirc_dcc_accept()\fP or \fBirc_dcc_decline()\fP. -.RE -.PP -This callback is called when someone requests DCC CHAT with you. In respond you should call either \fBirc_dcc_accept()\fP to accept chat request, or \fBirc_dcc_decline()\fP to decline chat request. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_accept\fP or \fBirc_dcc_decline\fP -.RE -.PP - -.SS "typedef void(* \fBirc_event_dcc_send_t\fP)(\fBirc_session_t\fP *session, const char *nick, const char *addr, const char *filename, unsigned long size, \fBirc_dcc_t\fP dccid)" -.PP -A remote DCC CHAT request callback. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP the session, which generates an event -.br -\fInick\fP the person who requested DCC CHAT with you. -.br -\fIaddr\fP the person's IP address in decimal-dot notation. -.br -\fIfilename\fP the sent filename. -.br -\fIsize\fP the filename size. -.br -\fIdccid\fP an id associated with this request. Use it in calls to \fBirc_dcc_accept()\fP or \fBirc_dcc_decline()\fP. -.RE -.PP -This callback is called when someone wants to send a file to you using DCC SEND. As with chat, in respond you should call either \fBirc_dcc_accept()\fP to accept this request and receive the file, or \fBirc_dcc_decline()\fP to decline this request. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_dcc_accept\fP or \fBirc_dcc_decline\fP -.RE -.PP - -.SS "typedef void(* \fBirc_eventcode_callback_t\fP)(\fBirc_session_t\fP *session, unsigned int event, const char *origin, const char **params, unsigned int count)" -.PP -A numeric event callback. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP the session, which generates an event -.br -\fIevent\fP the numeric code of the event. Useful in case you use a single event handler for several events simultaneously. -.br -\fIorigin\fP the originator of the event. See the note below. -.br -\fIparams\fP a list of event params. Depending on the event nature, it could have zero or more params. The actual number of params is specified in count. None of the params can be NULL, but 'params' pointer itself could be NULL for some events. -.br -\fIcount\fP the total number of params supplied. -.RE -.PP -Most times in reply to your actions the IRC server generates numeric callbacks. Most of them are error codes, and some of them mark list start and list stop markers. Every code has its own set of params; for details you can either experiment, or read RFC 1459. -.PP -Every event has origin, though the \fIorigin\fP variable may be NULL, which means that event origin is unknown. The origin usually looks like nick!host@ircserver, i.e. like tim!home@irc.krasnogorsk.ru. Such origins can not be used in IRC commands, and need to be stripped (i.e. host and server part should be cut off) before using. This can be done either explicitly, by calling \fBirc_target_get_nick()\fP, or implicitly for all the events - by setting the \fBLIBIRC_OPTION_STRIPNICKS\fP option with \fBirc_option_set()\fP. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_topic.3 libircclient-1.8/doc/man/man3/event_topic.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_topic.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_topic.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_umode.3 libircclient-1.8/doc/man/man3/event_umode.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_umode.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_umode.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/event_unknown.3 libircclient-1.8/doc/man/man3/event_unknown.3 --- libircclient-1.3+dfsg1/doc/man/man3/event_unknown.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/event_unknown.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/irc_callbacks_t.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/initclose.3 libircclient-1.8/doc/man/man3/initclose.3 --- libircclient-1.3+dfsg1/doc/man/man3/initclose.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/initclose.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,65 +0,0 @@ -.TH "Initiating and destroying IRC session." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -Initiating and destroying IRC session. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "\fBirc_session_t\fP * \fBirc_create_session\fP (\fBirc_callbacks_t\fP *callbacks)" -.br -.RI "\fICreates and initiates a new IRC session. \fP" -.ti -1c -.RI "void \fBirc_destroy_session\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIDestroys previously created IRC session. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "\fBirc_session_t\fP * irc_create_session (\fBirc_callbacks_t\fP * callbacks)" -.PP -Creates and initiates a new IRC session. -.PP -\fBParameters:\fP -.RS 4 -\fIcallbacks\fP A structure, which defines several callbacks, which will be called on appropriate events. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -An \fBirc_session_t\fP object, or 0 if creation failed. Usually, failure is caused by out of memory error. -.RE -.PP -Every \fBirc_session_t\fP object describes a single IRC session - a connection to an IRC server, and possibly to some DCC clients. Almost every irc_* function requires this object to be passed to, and therefore this function should be called first. -.PP -Every session created must be destroyed when it is not needed anymore by calling \fBirc_destroy_session()\fP. -.PP -The most common function sequence is: -.PP -.nf - ... prepare irc_callbacks_t structure ... - irc_create_session(); - irc_connect(); - irc_run(); - irc_destroy_session(); - -.fi -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_destroy_session\fP -.RE -.PP - -.SS "void irc_destroy_session (\fBirc_session_t\fP * session)" -.PP -Destroys previously created IRC session. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP A session to destroy. Must not be NULL. -.RE -.PP -This function should be used to destroy an IRC session, close the connection to the IRC server, and free all the used resources. After calling this function, you should not use this session object anymore. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_add_select_descriptors.3 libircclient-1.8/doc/man/man3/irc_add_select_descriptors.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_add_select_descriptors.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_add_select_descriptors.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/running.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_callbacks_t.3 libircclient-1.8/doc/man/man3/irc_callbacks_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_callbacks_t.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_callbacks_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,325 +0,0 @@ -.TH "irc_callbacks_t" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -irc_callbacks_t \- Event callbacks structure. - -.PP -.SH SYNOPSIS -.br -.PP -\fC#include \fP -.PP -.SS "Data Fields" - -.in +1c -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_connect\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_nick\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_quit\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_join\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_part\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_mode\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_umode\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_topic\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_kick\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_channel\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_privmsg\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_notice\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_invite\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_ctcp_req\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_ctcp_rep\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_ctcp_action\fP" -.br -.ti -1c -.RI "\fBirc_event_callback_t\fP \fBevent_unknown\fP" -.br -.ti -1c -.RI "\fBirc_eventcode_callback_t\fP \fBevent_numeric\fP" -.br -.ti -1c -.RI "\fBirc_event_dcc_chat_t\fP \fBevent_dcc_chat_req\fP" -.br -.ti -1c -.RI "\fBirc_event_dcc_send_t\fP \fBevent_dcc_send_req\fP" -.br -.in -1c -.SH "Detailed Description" -.PP -Event callbacks structure. - -All the communication with the IRC network is based on events. Generally speaking, event is anything generated by someone else in the network, or by the IRC server itself. 'Someone sends you a message', 'Someone has joined the channel', 'Someone has quits IRC' - all these messages are events. -.PP -Every event has its own event handler, which is called when the appropriate event is received. You don't have to define all the event handlers; define only the handlers for the events you need to intercept. -.PP -Most event callbacks are the types of \fBirc_event_callback_t\fP. There are also events, which generate \fBirc_eventcode_callback_t\fP, \fBirc_event_dcc_chat_t\fP and \fBirc_event_dcc_send_t\fP callbacks. -.SH "Field Documentation" -.PP -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_connect\fP" -.PP -The 'on_connect' event is triggered when the client successfully connects to the server, and could send commands to the server. No extra params supplied; \fIparams\fP is 0. -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_nick\fP" -.PP -The 'nick' event is triggered when the client receives a NICK message, meaning that someone (including you) on a channel with the client has changed their nickname. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who changes the nick. Note that it can be you! -.br -\fIparams[0]\fP mandatory, contains the new nick. -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_quit\fP" -.PP -The 'quit' event is triggered upon receipt of a QUIT message, which means that someone on a channel with the client has disconnected. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who is disconnected -.br -\fIparams[0]\fP optional, contains the reason message (user-specified). -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_join\fP" -.PP -The 'join' event is triggered upon receipt of a JOIN message, which means that someone has entered a channel that the client is on. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who joins the channel. By comparing it with your own nickname, you can check whether your JOIN command succeed. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_part\fP" -.PP -The 'part' event is triggered upon receipt of a PART message, which means that someone has left a channel that the client is on. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who leaves the channel. By comparing it with your own nickname, you can check whether your PART command succeed. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.br -\fIparams[1]\fP optional, contains the reason message (user-defined). -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_mode\fP" -.PP -The 'mode' event is triggered upon receipt of a channel MODE message, which means that someone on a channel with the client has changed the channel's parameters. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who changed the channel mode. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.br -\fIparams[1]\fP mandatory, contains the changed channel mode, like '+t', '-i' and so on. -.br -\fIparams[2]\fP optional, contains the mode argument (for example, a key for +k mode, or user who got the channel operator status for +o mode) -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_umode\fP" -.PP -The 'umode' event is triggered upon receipt of a user MODE message, which means that your user mode has been changed. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who changed the channel mode. -.br -\fIparams[0]\fP mandatory, contains the user changed mode, like '+t', '-i' and so on. -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_topic\fP" -.PP -The 'topic' event is triggered upon receipt of a TOPIC message, which means that someone on a channel with the client has changed the channel's topic. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who changes the channel topic. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.br -\fIparams[1]\fP optional, contains the new topic. -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_kick\fP" -.PP -The 'kick' event is triggered upon receipt of a KICK message, which means that someone on a channel with the client (or possibly the client itself!) has been forcibly ejected. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who kicked the poor. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.br -\fIparams[0]\fP optional, contains the nick of kicked person. -.br -\fIparams[1]\fP optional, contains the kick text -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_channel\fP" -.PP -The 'channel' event is triggered upon receipt of a PRIVMSG message to an entire channel, which means that someone on a channel with the client has said something aloud. Your own messages don't trigger PRIVMSG event. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who generates the message. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.br -\fIparams[1]\fP optional, contains the message text -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_privmsg\fP" -.PP -The 'privmsg' event is triggered upon receipt of a PRIVMSG message which is addressed to one or more clients, which means that someone is sending the client a private message. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who generates the message. -.br -\fIparams[0]\fP mandatory, contains your nick. -.br -\fIparams[1]\fP optional, contains the message text -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_notice\fP" -.PP -The 'notice' event is triggered upon receipt of a NOTICE message which means that someone has sent the client a public or private notice. According to RFC 1459, the only difference between NOTICE and PRIVMSG is that you should NEVER automatically reply to NOTICE messages. Unfortunately, this rule is frequently violated by IRC servers itself - for example, NICKSERV messages require reply, and are NOTICEs. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who generates the message. -.br -\fIparams[0]\fP mandatory, contains the channel name. -.br -\fIparams[1]\fP optional, contains the message text -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_invite\fP" -.PP -The 'invite' event is triggered upon receipt of an INVITE message, which means that someone is permitting the client's entry into a +i channel. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who INVITEs you. -.br -\fIparams[0]\fP mandatory, contains your nick. -.br -\fIparams[1]\fP mandatory, contains the channel name you're invited into. -.RE -.PP -\fBSee also:\fP -.RS 4 -\fBirc_cmd_invite\fP irc_cmd_chanmode_invite -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_ctcp_req\fP" -.PP -The 'ctcp' event is triggered when the client receives the CTCP request. By default, the built-in CTCP request handler is used. The build-in handler automatically replies on most CTCP messages, so you will rarely need to override it. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who generates the message. -.br -\fIparams[0]\fP mandatory, the complete CTCP message, including its arguments. -.RE -.PP -Mirc generates PING, FINGER, VERSION, TIME and ACTION messages, check the source code of \fClibirc_event_ctcp_internal\fP function to see how to write your own CTCP request handler. Also you may find useful this question in FAQ: \fBWhat is CTCP, and why do I need my own handler?\fP -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_ctcp_rep\fP" -.PP -The 'ctcp' event is triggered when the client receives the CTCP reply. -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who generates the message. -.br -\fIparams[0]\fP mandatory, the CTCP message itself with its arguments. -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_ctcp_action\fP" -.PP -The 'action' event is triggered when the client receives the CTCP ACTION message. These messages usually looks like: -.br - -.PP -.nf - [23:32:55] * Tim gonna sleep. - -.fi -.PP -.PP -\fBParameters:\fP -.RS 4 -\fIorigin\fP the person, who generates the message. -.br -\fIparams[0]\fP mandatory, the ACTION message. -.RE -.PP - -.SS "\fBirc_event_callback_t\fP \fBirc_callbacks_t::event_unknown\fP" -.PP -The 'unknown' event is triggered upon receipt of any number of unclassifiable miscellaneous messages, which aren't handled by the library. -.SS "\fBirc_eventcode_callback_t\fP \fBirc_callbacks_t::event_numeric\fP" -.PP -The 'numeric' event is triggered upon receipt of any numeric response from the server. There is a lot of such responses, see the full list here: \fBNumeric reply codes from RFC1459\fP. -.PP -See the params in \fBirc_eventcode_callback_t\fP specification. -.SS "\fBirc_event_dcc_chat_t\fP \fBirc_callbacks_t::event_dcc_chat_req\fP" -.PP -The 'dcc chat' event is triggered when someone requests a DCC CHAT from you. -.PP -See the params in \fBirc_event_dcc_chat_t\fP specification. -.SS "\fBirc_event_dcc_send_t\fP \fBirc_callbacks_t::event_dcc_send_req\fP" -.PP -The 'dcc chat' event is triggered when someone wants to send a file to you via DCC SEND request. -.PP -See the params in \fBirc_event_dcc_send_t\fP specification. - -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_channel_mode.3 libircclient-1.8/doc/man/man3/irc_cmd_channel_mode.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_channel_mode.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_channel_mode.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_ch.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_ctcp_reply.3 libircclient-1.8/doc/man/man3/irc_cmd_ctcp_reply.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_ctcp_reply.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_ctcp_reply.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ctcp.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_ctcp_request.3 libircclient-1.8/doc/man/man3/irc_cmd_ctcp_request.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_ctcp_request.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_ctcp_request.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ctcp.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_invite.3 libircclient-1.8/doc/man/man3/irc_cmd_invite.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_invite.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_invite.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_ch.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_join.3 libircclient-1.8/doc/man/man3/irc_cmd_join.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_join.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_join.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_kick.3 libircclient-1.8/doc/man/man3/irc_cmd_kick.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_kick.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_kick.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_list.3 libircclient-1.8/doc/man/man3/irc_cmd_list.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_list.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_list.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_ch.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_me.3 libircclient-1.8/doc/man/man3/irc_cmd_me.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_me.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_me.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_msg.3 libircclient-1.8/doc/man/man3/irc_cmd_msg.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_msg.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_msg.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_names.3 libircclient-1.8/doc/man/man3/irc_cmd_names.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_names.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_names.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_ch.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_nick.3 libircclient-1.8/doc/man/man3/irc_cmd_nick.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_nick.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_nick.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_oth.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_notice.3 libircclient-1.8/doc/man/man3/irc_cmd_notice.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_notice.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_notice.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_part.3 libircclient-1.8/doc/man/man3/irc_cmd_part.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_part.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_part.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_ch.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_quit.3 libircclient-1.8/doc/man/man3/irc_cmd_quit.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_quit.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_quit.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_topic.3 libircclient-1.8/doc/man/man3/irc_cmd_topic.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_topic.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_topic.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_ch.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_user_mode.3 libircclient-1.8/doc/man/man3/irc_cmd_user_mode.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_user_mode.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_user_mode.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_oth.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_whois.3 libircclient-1.8/doc/man/man3/irc_cmd_whois.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_cmd_whois.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_cmd_whois.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ircmd_oth.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_connect.3 libircclient-1.8/doc/man/man3/irc_connect.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_connect.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_connect.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/conndisc.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_create_session.3 libircclient-1.8/doc/man/man3/irc_create_session.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_create_session.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_create_session.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/initclose.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_accept.3 libircclient-1.8/doc/man/man3/irc_dcc_accept.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_accept.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_accept.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_callback_t.3 libircclient-1.8/doc/man/man3/irc_dcc_callback_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_callback_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_callback_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_chat.3 libircclient-1.8/doc/man/man3/irc_dcc_chat.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_chat.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_chat.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_decline.3 libircclient-1.8/doc/man/man3/irc_dcc_decline.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_decline.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_decline.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_destroy.3 libircclient-1.8/doc/man/man3/irc_dcc_destroy.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_destroy.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_destroy.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_msg.3 libircclient-1.8/doc/man/man3/irc_dcc_msg.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_msg.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_msg.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_sendfile.3 libircclient-1.8/doc/man/man3/irc_dcc_sendfile.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_sendfile.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_sendfile.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/dccstuff.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_session_t.3 libircclient-1.8/doc/man/man3/irc_dcc_session_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_session_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_session_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libircclient.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_t.3 libircclient-1.8/doc/man/man3/irc_dcc_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_dcc_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_dcc_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libircclient.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_destroy_session.3 libircclient-1.8/doc/man/man3/irc_destroy_session.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_destroy_session.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_destroy_session.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/initclose.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_disconnect.3 libircclient-1.8/doc/man/man3/irc_disconnect.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_disconnect.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_disconnect.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/conndisc.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_errno.3 libircclient-1.8/doc/man/man3/irc_errno.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_errno.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_errno.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/errors.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_event_callback_t.3 libircclient-1.8/doc/man/man3/irc_event_callback_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_event_callback_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_event_callback_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/events.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_eventcode_callback_t.3 libircclient-1.8/doc/man/man3/irc_eventcode_callback_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_eventcode_callback_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_eventcode_callback_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/events.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_event_ctcp_internal.3 libircclient-1.8/doc/man/man3/irc_event_ctcp_internal.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_event_ctcp_internal.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_event_ctcp_internal.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/ctcp.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_event_dcc_chat_t.3 libircclient-1.8/doc/man/man3/irc_event_dcc_chat_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_event_dcc_chat_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_event_dcc_chat_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/events.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_event_dcc_send_t.3 libircclient-1.8/doc/man/man3/irc_event_dcc_send_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_event_dcc_send_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_event_dcc_send_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/events.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_get_ctx.3 libircclient-1.8/doc/man/man3/irc_get_ctx.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_get_ctx.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_get_ctx.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/contexts.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_get_version.3 libircclient-1.8/doc/man/man3/irc_get_version.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_get_version.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_get_version.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/common.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_is_connected.3 libircclient-1.8/doc/man/man3/irc_is_connected.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_is_connected.3 2004-09-29 22:19:43.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_is_connected.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/conndisc.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/ircmd_ch.3 libircclient-1.8/doc/man/man3/ircmd_ch.3 --- libircclient-1.3+dfsg1/doc/man/man3/ircmd_ch.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/ircmd_ch.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,410 +0,0 @@ -.TH "IRC commands: channel management." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -IRC commands: channel management. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_cmd_join\fP (\fBirc_session_t\fP *session, const char *channel, const char *key)" -.br -.RI "\fIJoins the new IRC channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_part\fP (\fBirc_session_t\fP *session, const char *channel)" -.br -.RI "\fILeaves the IRC channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_invite\fP (\fBirc_session_t\fP *session, const char *nick, const char *channel)" -.br -.RI "\fIInvites a user to invite-only channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_names\fP (\fBirc_session_t\fP *session, const char *channel)" -.br -.RI "\fIObtains a list of users who're in channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_list\fP (\fBirc_session_t\fP *session, const char *channel)" -.br -.RI "\fIObtains a list of active server channels with their topics. \fP" -.ti -1c -.RI "int \fBirc_cmd_topic\fP (\fBirc_session_t\fP *session, const char *channel, const char *topic)" -.br -.RI "\fIViews or changes the channel topic. \fP" -.ti -1c -.RI "int \fBirc_cmd_channel_mode\fP (\fBirc_session_t\fP *session, const char *channel, const char *mode)" -.br -.RI "\fIViews or changes the channel mode. \fP" -.ti -1c -.RI "int \fBirc_cmd_kick\fP (\fBirc_session_t\fP *session, const char *nick, const char *channel, const char *reason)" -.br -.RI "\fIKick some lazy ass out of channel. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "int irc_cmd_channel_mode (\fBirc_session_t\fP * session, const char * channel, const char * mode)" -.PP -Views or changes the channel mode. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIchannel\fP A channel name to invite to. Must not be NULL. -.br -\fImode\fP A channel mode, described below. If NULL, the channel mode is not changed, just the old mode is returned. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -The \fBirc_cmd_channel_mode()\fP is used to change or view the channel modes. The \fIchannel\fP mode is returned if the \fImode\fP is NULL. If the \fImode\fP is not NULL, the mode for the \fIchannel\fP will be changed. Note that, only channel operators can change the channel modes. -.PP -Channel mode is represended by the letters combination. Every letter has its own meaning in channel modes. Most channel mode letters are boolean (i.e. could only be set or reset), but a few channel mode letters accept a parameter. All channel options are set by adding a plus sign before the letter, and reset by adding a minus sign before the letter. -.PP -Here is the list of 'standard' channel modes: -.PP -.IP "\(bu" 2 -\fIo\fP \fInickname\fP - gives (+o nick) or takes (-o nick) the channel operator privileges from a \fInickname\fP. This mode affects the users in channel, not the channel itself. Examples: '+o tim', '-o watson'. -.PP -.PP -.IP "\(bu" 2 -\fIp\fP - sets (+p) or resets (-p) private channel flag. Private channels are shown in channel list as 'Prv', without the topic. -.PP -.PP -.IP "\(bu" 2 -\fIs\fP - sets (+p) or resets (-p) secret channel flag. Secret channels aren't shown in channel list at all. -.PP -.PP -.IP "\(bu" 2 -\fIi\fP - sets (+i) or resets (-i) invite-only channel flag. When the flag is set, only the people who are invited by \fBirc_cmd_invite()\fP, can join this channel. -.PP -.PP -.IP "\(bu" 2 -\fIt\fP - sets (+t) or resets (-t) topic settable by channel operator only flag. When the flag is set, only the channel operators can change the channel topic. -.PP -.PP -.IP "\(bu" 2 -\fIn\fP - sets (+n) or resets (-n) the protection from the clients outside the channel. When the \fI+n\fP mode is set, only the clients, who are in channel, can send the messages to the channel. -.PP -.PP -.IP "\(bu" 2 -\fIm\fP - sets (+m) or resets (-m) the moderation of the channel. When the moderation mode is set, only channel operators and the users who have the \fI+v\fP user mode can speak in the channel. -.PP -.PP -.IP "\(bu" 2 -\fIv\fP \fInickname\fP - gives (+v nick) or takes (-v nick) from user the ability to speak on a moderated channel. Examples: '+v tim', '-v watson'. -.PP -.PP -.IP "\(bu" 2 -\fIl\fP \fInumber\fP - sets (+l 20) or removes (-l) the restriction of maximum users in channel. When the restriction is set, and there is a number of users in the channel, no one can join the channel anymore. -.PP -.PP -.IP "\(bu" 2 -\fIk\fP \fIkey\fP - sets (+k secret) or removes (-k) the password from the channel. When the restriction is set, any user joining the channel required to provide a channel key. -.PP -.PP -.IP "\(bu" 2 -\fIb\fP \fImask\fP - sets (+b *!*@*.mil) or removes (-b *!*@*.mil) the ban mask on a user to keep him out of channel. Note that to remove the ban you must specify the ban mask to remove, not just '-b'. -.PP -.PP -Note that the actual list of channel modes depends on the IRC server, and can be bigger. If you know the popular channel modes, which aren't mentioned here - please contact me at tim@krasnogorsk.ru -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CHANOPRIVSNEEDED\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_KEYSET\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_UNKNOWNMODE\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHCHANNEL\fP -.PP -.PP -And the mode information is given using following reply codes: -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_CHANNELMODEIS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_BANLIST\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_ENDOFBANLIST\fP -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_cmd_topic\fP \fBirc_cmd_list\fP -.RE -.PP - -.SS "int irc_cmd_invite (\fBirc_session_t\fP * session, const char * nick, const char * channel)" -.PP -Invites a user to invite-only channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInick\fP A nick to invite. Must not be NULL. -.br -\fIchannel\fP A channel name to invite to. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to invite someone to invite-only channel. 'Invite-only' is a channel mode, which restricts anyone, except invided, to join this channel. After invitation, the user could join this channel. The user, who is invited, will receive the \fBirc_callbacks_t::event_invite\fP event. Note that you must be a channel operator to INVITE the users. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -LIBIRC_RFC_ERR_ERR_USERONCHANNEL -.IP "\(bu" 2 -LIBIRC_RFC_ERR_ERR_CHANOPRIVSNEEDED -.PP -.PP -And on success one of the following replies returned: -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_INVITING\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_AWAY\fP -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_callbacks_t::event_invite\fP \fBirc_cmd_channel_mode\fP -.RE -.PP - -.SS "int irc_cmd_join (\fBirc_session_t\fP * session, const char * channel, const char * key)" -.PP -Joins the new IRC channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIchannel\fP A channel name to join to. Must not be NULL. -.br -\fIkey\fP Channel password. May be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to JOIN the IRC channel. If the channel is not exist, it will be automatically created by the IRC server. Note that to JOIN the password-protected channel, you must know the password, and specify it in the \fIkey\fP argument. -.PP -If join is successful, the \fBirc_callbacks_t::event_join\fP is called (with \fIorigin\fP == your nickname), then you are sent the channel's topic (using \fBLIBIRC_RFC_RPL_TOPIC\fP) and the list of users who are on the channel (using \fBLIBIRC_RFC_RPL_NAMREPLY\fP), which includes the user joining - namely you. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_BANNEDFROMCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_INVITEONLYCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_BADCHANNELKEY\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CHANNELISFULL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_BADCHANMASK\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYCHANNELS\fP -.PP -.PP -And on success the following replies returned: -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_TOPIC\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_NAMREPLY\fP -.PP - -.SS "int irc_cmd_kick (\fBirc_session_t\fP * session, const char * nick, const char * channel, const char * reason)" -.PP -Kick some lazy ass out of channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInick\fP A nick to kick. Must not be NULL. -.br -\fIchannel\fP A channel to kick this nick out of. Must not be NULL. -.br -\fIreason\fP A reason to kick. May be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to kick a person out of channel. Note that you must be a channel operator to kick anyone. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_BADCHANMASK\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CHANOPRIVSNEEDED\fP -.PP -.PP -On success the \fBirc_callbacks_t::event_kick\fP event will be generated. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_callbacks_t::event_numeric\fP -.RE -.PP - -.SS "int irc_cmd_list (\fBirc_session_t\fP * session, const char * channel)" -.PP -Obtains a list of active server channels with their topics. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIchannel\fP A channel name(s) to list. May be NULL, in which case all the channels will be listed. It is possible to specify more than a single channel, but several channel names should be separated by a comma. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to ask the IRC server for the active (existing) channels list. The list will be returned using LIBIRC_RFC_RPL_LISTSTART - \fBLIBIRC_RFC_RPL_LIST\fP - \fBLIBIRC_RFC_RPL_LISTEND\fP sequence. Note that 'private' channels are listed (without their topics) as channel 'Prv' unless the client generating the LIST query is actually on that channel. Likewise, secret channels are not listed at all unless the client is a member of the channel in question. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHSERVER\fP -.PP -.PP -And the channel list is returned using the following reply codes: -.IP "\(bu" 2 -LIBIRC_RFC_RPL_LISTSTART -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_LISTEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_LIST\fP -.PP - -.SS "int irc_cmd_names (\fBirc_session_t\fP * session, const char * channel)" -.PP -Obtains a list of users who're in channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIchannel\fP A channel name(s) to obtain user list. Must not be NULL. It is possible to specify more than a single channel, but several channel names should be separated by a comma. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to ask the IRC server for the list of the users who're in specified channel. You can list all nicknames that are visible to you on any channel that you can see. The list of users will be returned using RPL_NAMREPLY and RPL_ENDOFNAMES numeric codes. -.PP -The channel names are returned by \fBirc_callbacks_t::event_numeric\fP using the following reply codes: -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_NAMREPLY\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_ENDOFNAMES\fP -.PP - -.SS "int irc_cmd_part (\fBirc_session_t\fP * session, const char * channel)" -.PP -Leaves the IRC channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIchannel\fP A channel name to leave. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to leave the IRC channel you've already joined to. An attempt to leave the channel you aren't in results a \fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP server error. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.PP - -.SS "int irc_cmd_topic (\fBirc_session_t\fP * session, const char * channel, const char * topic)" -.PP -Views or changes the channel topic. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIchannel\fP A channel name to invite to. Must not be NULL. -.br -\fItopic\fP A new topic to change. If NULL, the old topic will be returned, and topic won't changed. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -The \fBirc_cmd_topic()\fP is used to change or view the topic of a channel. The topic for \fIchannel\fP is returned if \fItopic\fP is NULL. If the \fItopic\fP is not NULL, the topic for the \fIchannel\fP will be changed. Note that, depending on \fI+t\fP channel mode, you may be required to be a channel operator to change the channel topic. -.PP -If the command succeed, the IRC server will generate a RPL_NOTOPIC or RPL_TOPIC message, containing either old or changed topic. Also the IRC server can (but not have to) generate the non-RFC RPL_TOPIC_EXTRA message, containing the nick of person, who's changed the topic, and the time of latest topic change. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CHANOPRIVSNEEDED\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.PP -.PP -And the topic information is returned using one of following reply codes: -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_NOTOPIC\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_TOPIC\fP -.PP -.PP -\fBSee also:\fP -.RS 4 -\fBirc_callbacks_t::event_topic\fP \fBirc_cmd_channel_mode\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/ircmd_msg.3 libircclient-1.8/doc/man/man3/ircmd_msg.3 --- libircclient-1.3+dfsg1/doc/man/man3/ircmd_msg.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/ircmd_msg.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,159 +0,0 @@ -.TH "IRC commands: sending messages/notices." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -IRC commands: sending messages/notices. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_cmd_msg\fP (\fBirc_session_t\fP *session, const char *nch, const char *text)" -.br -.RI "\fISends the message to the nick or to the channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_me\fP (\fBirc_session_t\fP *session, const char *nch, const char *text)" -.br -.RI "\fISends the /me (CTCP ACTION) message to the nick or to the channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_notice\fP (\fBirc_session_t\fP *session, const char *nch, const char *text)" -.br -.RI "\fISends the notice to the nick or to the channel. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "int irc_cmd_me (\fBirc_session_t\fP * session, const char * nch, const char * text)" -.PP -Sends the /me (CTCP ACTION) message to the nick or to the channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInch\fP A target nick or channel. Must not be NULL. -.br -\fItext\fP Action message text. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to send the /me message to channel or private. As for irc_cmd_msg, the target is determined by \fInch\fP argument. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP -.PP -On success there is NOTHING generated. However, a \fBLIBIRC_RFC_RPL_AWAY\fP reply can be also generated. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_cmd_msg\fP -.RE -.PP - -.SS "irc_cmd_msg (\fBirc_session_t\fP * session, const char * nch, const char * text)" -.PP -Sends the message to the nick or to the channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInch\fP A target nick or channel. Must not be NULL. -.br -\fItext\fP Message text. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to send the channel or private messages. The target is determined by \fInch\fP argument: if it describes nick, this will be a private message, if a channel name - public (channel) message. Note that depending on channel modes, you may be required to join the channel to send the channel messages. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP -.PP -On success there is NOTHING generated. -.SS "int irc_cmd_notice (\fBirc_session_t\fP * session, const char * nch, const char * text)" -.PP -Sends the notice to the nick or to the channel. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInch\fP A target nick or channel. Must not be NULL. -.br -\fItext\fP Notice text. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to send the channel or private notices. The target is determined by \fInch\fP argument: if it describes nick, this will be a private message, if a channel name - public (channel) message. Note that depending on channel modes, you may be required to join the channel to send the channel notices. -.PP -The only difference between message and notice is that, according to RFC 1459, you must not automatically reply to NOTICE messages. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NORECIPIENT\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTEXTTOSEND\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_CANNOTSENDTOCHAN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTONCHANNEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_WILDTOPLEVEL\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_TOOMANYTARGETS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.PP -.PP -On success there is NOTHING generated. On notices sent to target nick, a \fBLIBIRC_RFC_RPL_AWAY\fP reply may be generated. -.PP -\fBSee also:\fP -.RS 4 -\fBirc_cmd_msg\fP -.RE -.PP - diff -Nru libircclient-1.3+dfsg1/doc/man/man3/ircmd_oth.3 libircclient-1.8/doc/man/man3/ircmd_oth.3 --- libircclient-1.3+dfsg1/doc/man/man3/ircmd_oth.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/ircmd_oth.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,200 +0,0 @@ -.TH "IRC commands: other stuff." 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -IRC commands: other stuff. \- -.SS "Functions" - -.in +1c -.ti -1c -.RI "int \fBirc_send_raw\fP (\fBirc_session_t\fP *session, const char *format,...)" -.br -.RI "\fISends raw data to the IRC server. \fP" -.ti -1c -.RI "int \fBirc_cmd_quit\fP (\fBirc_session_t\fP *session, const char *reason)" -.br -.RI "\fISends QUIT command to the IRC server. \fP" -.ti -1c -.RI "int \fBirc_cmd_user_mode\fP (\fBirc_session_t\fP *session, const char *mode)" -.br -.RI "\fIViews or changes your own user mode. \fP" -.ti -1c -.RI "int \fBirc_cmd_nick\fP (\fBirc_session_t\fP *session, const char *newnick)" -.br -.RI "\fIChanges your nick. \fP" -.ti -1c -.RI "int \fBirc_cmd_whois\fP (\fBirc_session_t\fP *session, const char *nick)" -.br -.RI "\fIQueries the information about the nick. \fP" -.in -1c -.SH "Function Documentation" -.PP -.SS "int irc_cmd_nick (\fBirc_session_t\fP * session, const char * newnick)" -.PP -Changes your nick. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInewnick\fP A new nick. Must not be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function is used to change your current nick to another nick. Note that such a change is not always possible; for example you cannot change nick to the existing nick, or (on some servers) to the registered nick. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NONICKNAMEGIVEN\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_ERRONEUSNICKNAME\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NICKNAMEINUSE\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NICKCOLLISION\fP -.PP - -.SS "int irc_cmd_quit (\fBirc_session_t\fP * session, const char * reason)" -.PP -Sends QUIT command to the IRC server. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIreason\fP A reason to quit. May be NULL. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function sends the QUIT command to the IRC server. This command forces the IRC server to close the IRC connection, and terminate the session. -.SS "int irc_cmd_user_mode (\fBirc_session_t\fP * session, const char * mode)" -.PP -Views or changes your own user mode. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fImode\fP A user mode, described below. If NULL, the user mode is not changed, just the old mode is returned. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -The \fBirc_cmd_user_mode()\fP is used to change or view the user modes. Note that, unlike channel modes, not all user modes can be changed. The user mode is returned if the \fImode\fP is NULL. If the \fImode\fP is not NULL, the mode for you will be changed, and new mode will be returned. -.PP -Like channel mode, user mode is also represended by the letters combination. All the user mode letters are boolean (i.e. could only be set or reset), they are set by adding a plus sign before the letter, and reset by adding a minus sign before the letter. -.PP -Here is the list of 'standard' user modes: -.PP -.IP "\(bu" 2 -\fIo\fP - represents an IRC operator status. Could not be set directly (but can be reset though), to set it use the IRC \fIOPER\fP command. -.PP -.PP -.IP "\(bu" 2 -\fIi\fP - if set, marks a user as 'invisible' - that is, not seen by lookups if the user is not in a channel. -.PP -.PP -.IP "\(bu" 2 -\fIw\fP - if set, marks a user as 'receiving wallops' - special messages generated by IRC operators using WALLOPS command. -.PP -.PP -.IP "\(bu" 2 -\fIs\fP - if set, marks a user for receipt of server notices. -.PP -.PP -.IP "\(bu" 2 -\fIr\fP - NON-STANDARD MODE. If set, user has been authenticated with NICKSERV IRC service. -.PP -.PP -.IP "\(bu" 2 -\fIx\fP - NON-STANDARD MODE. If set, user's real IP is hidden by IRC servers, to prevent scriptkiddies to do nasty things to the user's computer. -.PP -.PP -Note that the actual list of user modes depends on the IRC server, and can be bigger. If you know the popular user modes, which aren't mentioned here - please contact me at tim@krasnogorsk.ru -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NEEDMOREPARAMS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_UNKNOWNMODE\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_USERSDONTMATCH\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_UMODEUNKNOWNFLAG\fP -.PP -.PP -And the mode information is given using reply code \fBLIBIRC_RFC_RPL_UMODEIS\fP -.SS "int irc_cmd_whois (\fBirc_session_t\fP * session, const char * nick)" -.PP -Queries the information about the nick. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fInick\fP A nick to query the information abour. Must not be NULL. A comma-separated list of several nicknames may be given. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function queries various information about the nick: username, real name, the IRC server used, the channels user is in, idle time, away mode and so on. -.PP -Possible error responces for this command from the RFC1459: -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHSERVER\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NOSUCHNICK\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_ERR_NONICKNAMEGIVEN\fP -.PP -.PP -And the information is returned using the following reply codes. The whois query is completed when \fBLIBIRC_RFC_RPL_ENDOFWHOIS\fP message is received. -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_WHOISUSER\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_WHOISCHANNELS\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_WHOISSERVER\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_AWAY\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_WHOISOPERATOR\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_WHOISIDLE\fP -.IP "\(bu" 2 -\fBLIBIRC_RFC_RPL_ENDOFWHOIS\fP -.PP - -.SS "int irc_send_raw (\fBirc_session_t\fP * session, const char * format, ...)" -.PP -Sends raw data to the IRC server. -.PP -\fBParameters:\fP -.RS 4 -\fIsession\fP An initiated and connected session. -.br -\fIformat\fP A printf-formatted string, followed by function args. -.RE -.PP -\fBReturns:\fP -.RS 4 -Return code 0 means success. Other value means error, the error code may be obtained through \fBirc_errno()\fP. Any error, generated by the IRC server, is available through \fBirc_callbacks_t::event_numeric\fP. -.RE -.PP -This function sends the raw data as-is to the IRC server. Use it to generate a server command, which is not (yet) provided by libircclient directly. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_option_reset.3 libircclient-1.8/doc/man/man3/irc_option_reset.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_option_reset.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_option_reset.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/options.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_option_set.3 libircclient-1.8/doc/man/man3/irc_option_set.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_option_set.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_option_set.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/options.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_process_select_descriptors.3 libircclient-1.8/doc/man/man3/irc_process_select_descriptors.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_process_select_descriptors.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_process_select_descriptors.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/running.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_run.3 libircclient-1.8/doc/man/man3/irc_run.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_run.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_run.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/running.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_send_raw.3 libircclient-1.8/doc/man/man3/irc_send_raw.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_send_raw.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_send_raw.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/sendcmds.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_session_t.3 libircclient-1.8/doc/man/man3/irc_session_t.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_session_t.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_session_t.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libircclient.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_set_ctx.3 libircclient-1.8/doc/man/man3/irc_set_ctx.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_set_ctx.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_set_ctx.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/contexts.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_strerror.3 libircclient-1.8/doc/man/man3/irc_strerror.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_strerror.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_strerror.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/errors.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_target_get_host.3 libircclient-1.8/doc/man/man3/irc_target_get_host.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_target_get_host.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_target_get_host.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/nnparse.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/irc_target_get_nick.3 libircclient-1.8/doc/man/man3/irc_target_get_nick.3 --- libircclient-1.3+dfsg1/doc/man/man3/irc_target_get_nick.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/irc_target_get_nick.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/nnparse.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libircclient.h.3 libircclient-1.8/doc/man/man3/libircclient.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libircclient.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libircclient.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,286 +0,0 @@ -.TH "libircclient.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libircclient.h \- This file defines all prototypes and functions to use libircclient. -.SH SYNOPSIS -.br -.PP -\fC#include \fP -.br -\fC#include 'libirc_errors.h'\fP -.br -\fC#include 'libirc_rfcnumeric.h'\fP -.br -\fC#include 'libirc_events.h'\fP -.br -\fC#include 'libirc_options.h'\fP -.br - -.SS "Typedefs" - -.in +1c -.ti -1c -.RI "typedef struct irc_session_s \fBirc_session_t\fP" -.br -.RI "\fIA libircclient IRC session. \fP" -.ti -1c -.RI "typedef struct irc_dcc_session_s \fBirc_dcc_session_t\fP" -.br -.RI "\fIA libircclient DCC session. \fP" -.ti -1c -.RI "typedef unsigned int \fBirc_dcc_t\fP" -.br -.RI "\fIA DCC session identifier. \fP" -.ti -1c -.RI "typedef void(* \fBirc_dcc_callback_t\fP )(\fBirc_session_t\fP *session, \fBirc_dcc_t\fP id, int status, void *ctx, const char *data, unsigned int length)" -.br -.RI "\fIA common DCC callback, used to inform you about the current DCC state or event. \fP" -.in -1c -.SS "Functions" - -.in +1c -.ti -1c -.RI "\fBirc_session_t\fP * \fBirc_create_session\fP (\fBirc_callbacks_t\fP *callbacks)" -.br -.RI "\fICreates and initiates a new IRC session. \fP" -.ti -1c -.RI "void \fBirc_destroy_session\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIDestroys previously created IRC session. \fP" -.ti -1c -.RI "int \fBirc_connect\fP (\fBirc_session_t\fP *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)" -.br -.RI "\fIInitiates a connection to IRC server. \fP" -.ti -1c -.RI "int \fBirc_connect6\fP (\fBirc_session_t\fP *session, const char *server, unsigned short port, const char *server_password, const char *nick, const char *username, const char *realname)" -.br -.RI "\fIInitiates a connection to IRC server using IPv6. \fP" -.ti -1c -.RI "void \fBirc_disconnect\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIDisconnects a connection to IRC server. \fP" -.ti -1c -.RI "int \fBirc_is_connected\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIChecks whether the session is connecting/connected to the IRC server. \fP" -.ti -1c -.RI "int \fBirc_run\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIGoes into forever-loop, processing IRC events and generating callbacks. \fP" -.ti -1c -.RI "int \fBirc_add_select_descriptors\fP (\fBirc_session_t\fP *session, fd_set *in_set, fd_set *out_set, int *maxfd)" -.br -.RI "\fIAdds IRC socket(s) for the descriptor set to use in select(). \fP" -.ti -1c -.RI "int \fBirc_process_select_descriptors\fP (\fBirc_session_t\fP *session, fd_set *in_set, fd_set *out_set)" -.br -.RI "\fIProcesses the IRC socket(s), which descriptor(s) are set. \fP" -.ti -1c -.RI "int \fBirc_send_raw\fP (\fBirc_session_t\fP *session, const char *format,...)" -.br -.RI "\fISends raw data to the IRC server. \fP" -.ti -1c -.RI "int \fBirc_cmd_quit\fP (\fBirc_session_t\fP *session, const char *reason)" -.br -.RI "\fISends QUIT command to the IRC server. \fP" -.ti -1c -.RI "int \fBirc_cmd_join\fP (\fBirc_session_t\fP *session, const char *channel, const char *key)" -.br -.RI "\fIJoins the new IRC channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_part\fP (\fBirc_session_t\fP *session, const char *channel)" -.br -.RI "\fILeaves the IRC channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_invite\fP (\fBirc_session_t\fP *session, const char *nick, const char *channel)" -.br -.RI "\fIInvites a user to invite-only channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_names\fP (\fBirc_session_t\fP *session, const char *channel)" -.br -.RI "\fIObtains a list of users who're in channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_list\fP (\fBirc_session_t\fP *session, const char *channel)" -.br -.RI "\fIObtains a list of active server channels with their topics. \fP" -.ti -1c -.RI "int \fBirc_cmd_topic\fP (\fBirc_session_t\fP *session, const char *channel, const char *topic)" -.br -.RI "\fIViews or changes the channel topic. \fP" -.ti -1c -.RI "int \fBirc_cmd_channel_mode\fP (\fBirc_session_t\fP *session, const char *channel, const char *mode)" -.br -.RI "\fIViews or changes the channel mode. \fP" -.ti -1c -.RI "int \fBirc_cmd_user_mode\fP (\fBirc_session_t\fP *session, const char *mode)" -.br -.RI "\fIViews or changes your own user mode. \fP" -.ti -1c -.RI "int \fBirc_cmd_nick\fP (\fBirc_session_t\fP *session, const char *newnick)" -.br -.RI "\fIChanges your nick. \fP" -.ti -1c -.RI "int \fBirc_cmd_whois\fP (\fBirc_session_t\fP *session, const char *nick)" -.br -.RI "\fIQueries the information about the nick. \fP" -.ti -1c -.RI "int \fBirc_cmd_msg\fP (\fBirc_session_t\fP *session, const char *nch, const char *text)" -.br -.RI "\fISends the message to the nick or to the channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_me\fP (\fBirc_session_t\fP *session, const char *nch, const char *text)" -.br -.RI "\fISends the /me (CTCP ACTION) message to the nick or to the channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_notice\fP (\fBirc_session_t\fP *session, const char *nch, const char *text)" -.br -.RI "\fISends the notice to the nick or to the channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_kick\fP (\fBirc_session_t\fP *session, const char *nick, const char *channel, const char *reason)" -.br -.RI "\fIKick some lazy ass out of channel. \fP" -.ti -1c -.RI "int \fBirc_cmd_ctcp_request\fP (\fBirc_session_t\fP *session, const char *nick, const char *request)" -.br -.RI "\fIGenerates a CTCP request. \fP" -.ti -1c -.RI "int \fBirc_cmd_ctcp_reply\fP (\fBirc_session_t\fP *session, const char *nick, const char *reply)" -.br -.RI "\fIGenerates a reply to the CTCP request. \fP" -.ti -1c -.RI "void \fBirc_target_get_nick\fP (const char *target, char *nick, size_t size)" -.br -.RI "\fIGets the nick part from the target. \fP" -.ti -1c -.RI "void \fBirc_target_get_host\fP (const char *target, char *nick, size_t size)" -.br -.RI "\fIGets the host part from the target. \fP" -.ti -1c -.RI "int \fBirc_dcc_chat\fP (\fBirc_session_t\fP *session, void *ctx, const char *nick, \fBirc_dcc_callback_t\fP callback, \fBirc_dcc_t\fP *dccid)" -.br -.RI "\fIInitiates a DCC CHAT. \fP" -.ti -1c -.RI "int \fBirc_dcc_msg\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid, const char *text)" -.br -.RI "\fISends the message to the specific DCC CHAT. \fP" -.ti -1c -.RI "int \fBirc_dcc_accept\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid, void *ctx, \fBirc_dcc_callback_t\fP callback)" -.br -.RI "\fIAccepts a remote DCC CHAT or DCC RECVFILE request. \fP" -.ti -1c -.RI "int \fBirc_dcc_decline\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIDeclines a remote DCC CHAT or DCC RECVFILE request. \fP" -.ti -1c -.RI "int \fBirc_dcc_sendfile\fP (\fBirc_session_t\fP *session, void *ctx, const char *nick, const char *filename, \fBirc_dcc_callback_t\fP callback, \fBirc_dcc_t\fP *dccid)" -.br -.RI "\fISends a file via DCC. \fP" -.ti -1c -.RI "int \fBirc_dcc_destroy\fP (\fBirc_session_t\fP *session, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIDestroys a DCC session. \fP" -.ti -1c -.RI "void \fBirc_get_version\fP (unsigned int *high, unsigned int *low)" -.br -.RI "\fIObtains a libircclient version. \fP" -.ti -1c -.RI "void \fBirc_set_ctx\fP (\fBirc_session_t\fP *session, void *ctx)" -.br -.RI "\fISets the IRC session context. \fP" -.ti -1c -.RI "void * \fBirc_get_ctx\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIReturns the IRC session context. \fP" -.ti -1c -.RI "int \fBirc_errno\fP (\fBirc_session_t\fP *session)" -.br -.RI "\fIReturns the last error code. \fP" -.ti -1c -.RI "const char * \fBirc_strerror\fP (int ircerrno)" -.br -.RI "\fIReturns the text error message associated with this error code. \fP" -.ti -1c -.RI "void \fBirc_option_set\fP (\fBirc_session_t\fP *session, unsigned int option)" -.br -.RI "\fISets the libircclient option. \fP" -.ti -1c -.RI "void \fBirc_option_reset\fP (\fBirc_session_t\fP *session, unsigned int option)" -.br -.RI "\fIResets the libircclient option. \fP" -.ti -1c -.RI "char * \fBirc_color_strip_from_mirc\fP (const char *message)" -.br -.RI "\fIRemoves all the color codes and format options. \fP" -.ti -1c -.RI "char * \fBirc_color_convert_from_mirc\fP (const char *message)" -.br -.RI "\fIConverts all the color codes and format options to libircclient colors. \fP" -.ti -1c -.RI "char * \fBirc_color_convert_to_mirc\fP (const char *message)" -.br -.RI "\fIConverts all the color codes from libircclient format to mIRC. \fP" -.in -1c -.SH "Detailed Description" -.PP -This file defines all prototypes and functions to use libircclient. - -\fBAuthor:\fP -.RS 4 -Georgy Yunaev -.RE -.PP -\fBVersion:\fP -.RS 4 -1.0 -.RE -.PP -\fBDate:\fP -.RS 4 -09.2004 libircclient is a small but powerful library, which implements client-server IRC protocol. It is designed to be small, fast, portable and compatible to RFC standards, and most IRC clients. libircclient features include: -.IP "\(bu" 2 -Full multi-threading support. -.IP "\(bu" 2 -Single threads handles all the IRC processing. -.IP "\(bu" 2 -Support for single-threaded applications, and socket-based applications, which use select() -.IP "\(bu" 2 -Synchronous and asynchronous interfaces. -.IP "\(bu" 2 -CTCP support with optional build-in reply code. -.IP "\(bu" 2 -Flexible DCC support, including both DCC chat, and DCC file transfer. -.IP "\(bu" 2 -Can both initiate and react to initiated DCC. -.IP "\(bu" 2 -Can accept or decline DCC sessions asynchronously. -.IP "\(bu" 2 -Plain C interface and implementation (possible to use from C++ code, obviously) -.IP "\(bu" 2 -Compatible with RFC 1459 and most IRC clients. -.IP "\(bu" 2 -Free, licensed under LGPL license. -.PP -.RE -.PP -Note that to use libircclient, only \fBlibircclient.h\fP should be included into your program. Do not include other libirc_* headers. -.SH "Typedef Documentation" -.PP -.SS "typedef struct irc_dcc_session_s \fBirc_dcc_session_t\fP" -.PP -A libircclient DCC session. -.PP -This structure describes a DCC session used by libircclient. Its members are internal to libircclient, and should not be used directly. -.SS "typedef unsigned int \fBirc_dcc_t\fP" -.PP -A DCC session identifier. -.PP -The irc_dcc_t type is a DCC session identifier, used to identify the DCC sessions in callbacks and various functions. -.SS "typedef struct irc_session_s \fBirc_session_t\fP" -.PP -A libircclient IRC session. -.PP -This structure describes an IRC session. Its members are internal to libircclient, and should not be used directly. -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libirc_doc_faq.h.3 libircclient-1.8/doc/man/man3/libirc_doc_faq.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libirc_doc_faq.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libirc_doc_faq.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -.TH "libirc_doc_faq.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libirc_doc_faq.h \- This file contains libircclient FAQ. -.SH SYNOPSIS -.br -.PP -.SH "Detailed Description" -.PP -This file contains libircclient FAQ. - -\fBAuthor:\fP -.RS 4 -Georgy Yunaev -.RE -.PP -\fBVersion:\fP -.RS 4 -1.0 -.RE -.PP -\fBDate:\fP -.RS 4 -09.2004 -.RE -.PP - -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libirc_doc.h.3 libircclient-1.8/doc/man/man3/libirc_doc.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libirc_doc.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libirc_doc.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,31 +0,0 @@ -.TH "libirc_doc.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libirc_doc.h \- This file contains Doxygen modules. -.SH SYNOPSIS -.br -.PP -.SH "Detailed Description" -.PP -This file contains Doxygen modules. - -\fBAuthor:\fP -.RS 4 -Georgy Yunaev -.RE -.PP -\fBVersion:\fP -.RS 4 -1.0 -.RE -.PP -\fBDate:\fP -.RS 4 -09.2004 -.RE -.PP - -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_ACCEPT.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_ACCEPT.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_ACCEPT.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_ACCEPT.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_CLOSED.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_CLOSED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_CLOSED.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_CLOSED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_CONNECT.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_CONNECT.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_CONNECT.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_CONNECT.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_INVAL.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_INVAL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_INVAL.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_INVAL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_MAX.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_MAX.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_MAX.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_MAX.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_NODCCSEND.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_NODCCSEND.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_NODCCSEND.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_NODCCSEND.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_NOMEM.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_NOMEM.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_NOMEM.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_NOMEM.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_NOTFOUND.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_NOTFOUND.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_NOTFOUND.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_NOTFOUND.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_OK.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_OK.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_OK.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_OK.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_OPENFILE.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_OPENFILE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_OPENFILE.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_OPENFILE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libirc_errors.h.3 libircclient-1.8/doc/man/man3/libirc_errors.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libirc_errors.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libirc_errors.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,106 +0,0 @@ -.TH "libirc_errors.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libirc_errors.h \- This file defines error codes generated by libircclient. -.SH SYNOPSIS -.br -.PP -.SS "Defines" - -.in +1c -.ti -1c -.RI "#define \fBLIBIRC_ERR_OK\fP 0" -.br -.ti -1c -.RI "#define \fBLIBIRC_ERR_INVAL\fP 1" -.br -.RI "\fIInvalid argument. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_RESOLV\fP 2" -.br -.RI "\fICould not resolve host. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_SOCKET\fP 3" -.br -.RI "\fICould not create socket. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_CONNECT\fP 4" -.br -.RI "\fICould not connect. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_CLOSED\fP 5" -.br -.RI "\fIConnection closed by remote peer. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_NOMEM\fP 6" -.br -.RI "\fIOut of memory. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_ACCEPT\fP 7" -.br -.RI "\fICould not accept new connection. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_NODCCSEND\fP 9" -.br -.RI "\fICould not send this. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_READ\fP 10" -.br -.RI "\fICould not read DCC file or socket. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_WRITE\fP 11" -.br -.RI "\fICould not write DCC file or socket. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_STATE\fP 12" -.br -.RI "\fIInvalid state. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_TIMEOUT\fP 13" -.br -.RI "\fIOperation timed out. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_OPENFILE\fP 14" -.br -.RI "\fICould not open file for DCC send. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_TERMINATED\fP 15" -.br -.RI "\fIIRC server connection terminated. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_NOIPV6\fP 16" -.br -.RI "\fIIPv6 not supported. \fP" -.ti -1c -.RI "#define \fBLIBIRC_ERR_MAX\fP 17" -.br -.in -1c -.SH "Detailed Description" -.PP -This file defines error codes generated by libircclient. - -\fBAuthor:\fP -.RS 4 -Georgy Yunaev -.RE -.PP -\fBVersion:\fP -.RS 4 -1.0 -.RE -.PP -\fBDate:\fP -.RS 4 -09.2004 -.RE -.PP - -.SH "Define Documentation" -.PP -.SS "#define LIBIRC_ERR_MAX 17" -.PP -brief Internal max error value count -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_READ.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_READ.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_READ.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_READ.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_RESOLV.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_RESOLV.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_RESOLV.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_RESOLV.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_SOCKET.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_SOCKET.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_SOCKET.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_SOCKET.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_STATE.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_STATE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_STATE.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_STATE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_TERMINATED.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_TERMINATED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_TERMINATED.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_TERMINATED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_TIMEOUT.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_TIMEOUT.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_TIMEOUT.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_TIMEOUT.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_WRITE.3 libircclient-1.8/doc/man/man3/LIBIRC_ERR_WRITE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_ERR_WRITE.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_ERR_WRITE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_errors.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libirc_events.h.3 libircclient-1.8/doc/man/man3/libirc_events.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libirc_events.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libirc_events.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,59 +0,0 @@ -.TH "libirc_events.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libirc_events.h \- Describes event callbacks generated by libircclient. -.SH SYNOPSIS -.br -.PP -.SS "Data Structures" - -.in +1c -.ti -1c -.RI "struct \fBirc_callbacks_t\fP" -.br -.RI "\fIEvent callbacks structure. \fP" -.in -1c -.SS "Typedefs" - -.in +1c -.ti -1c -.RI "typedef void(* \fBirc_event_callback_t\fP )(\fBirc_session_t\fP *session, const char *event, const char *origin, const char **params, unsigned int count)" -.br -.RI "\fIA most common event callback. \fP" -.ti -1c -.RI "typedef void(* \fBirc_eventcode_callback_t\fP )(\fBirc_session_t\fP *session, unsigned int event, const char *origin, const char **params, unsigned int count)" -.br -.RI "\fIA numeric event callback. \fP" -.ti -1c -.RI "typedef void(* \fBirc_event_dcc_chat_t\fP )(\fBirc_session_t\fP *session, const char *nick, const char *addr, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIA remote DCC CHAT request callback. \fP" -.ti -1c -.RI "typedef void(* \fBirc_event_dcc_send_t\fP )(\fBirc_session_t\fP *session, const char *nick, const char *addr, const char *filename, unsigned long size, \fBirc_dcc_t\fP dccid)" -.br -.RI "\fIA remote DCC CHAT request callback. \fP" -.in -1c -.SH "Detailed Description" -.PP -Describes event callbacks generated by libircclient. - -\fBAuthor:\fP -.RS 4 -Georgy Yunaev -.RE -.PP -\fBVersion:\fP -.RS 4 -1.0 -.RE -.PP -\fBDate:\fP -.RS 4 -09.2004 This file should not be included directly. Include \fBlibircclient.h\fP instead. -.RE -.PP - -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_OPTION_DEBUG.3 libircclient-1.8/doc/man/man3/LIBIRC_OPTION_DEBUG.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_OPTION_DEBUG.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_OPTION_DEBUG.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/options.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libirc_options.h.3 libircclient-1.8/doc/man/man3/libirc_options.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libirc_options.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libirc_options.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,42 +0,0 @@ -.TH "libirc_options.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libirc_options.h \- This file defines the options used in irc_session_options(). -.SH SYNOPSIS -.br -.PP -.SS "Defines" - -.in +1c -.ti -1c -.RI "#define \fBLIBIRC_OPTION_DEBUG\fP (1 << 1)" -.br -.ti -1c -.RI "#define \fBLIBIRC_OPTION_STRIPNICKS\fP (1 << 2)" -.br -.RI "\fIallows to strip origins automatically. \fP" -.in -1c -.SH "Detailed Description" -.PP -This file defines the options used in irc_session_options(). - -\fBAuthor:\fP -.RS 4 -Georgy Yunaev -.RE -.PP -\fBVersion:\fP -.RS 4 -1.0 -.RE -.PP -\fBDate:\fP -.RS 4 -09.2004 -.RE -.PP - -.SH "Author" -.PP -Generated automatically by Doxygen for libircclient from the source code. diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_OPTION_STRIPNICKS.3 libircclient-1.8/doc/man/man3/LIBIRC_OPTION_STRIPNICKS.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_OPTION_STRIPNICKS.3 2004-09-08 11:49:02.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_OPTION_STRIPNICKS.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/options.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_ALREADYREGISTRED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_ALREADYREGISTRED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_ALREADYREGISTRED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_ALREADYREGISTRED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BADCHANMASK.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BADCHANMASK.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BADCHANMASK.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BADCHANMASK.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BADCHANNELKEY.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BADCHANNELKEY.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BADCHANNELKEY.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BADCHANNELKEY.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BADMASK.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BADMASK.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BADMASK.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BADMASK.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BANLISTFULL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BANLISTFULL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BANLISTFULL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BANLISTFULL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BANNEDFROMCHAN.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BANNEDFROMCHAN.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_BANNEDFROMCHAN.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_BANNEDFROMCHAN.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CANNOTSENDTOCHAN.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CANNOTSENDTOCHAN.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CANNOTSENDTOCHAN.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CANNOTSENDTOCHAN.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CANTKILLSERVER.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CANTKILLSERVER.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CANTKILLSERVER.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CANTKILLSERVER.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CHANNELISFULL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CHANNELISFULL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CHANNELISFULL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CHANNELISFULL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CHANOPRIVSNEEDED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CHANOPRIVSNEEDED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_CHANOPRIVSNEEDED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_CHANOPRIVSNEEDED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_ERRONEUSNICKNAME.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_ERRONEUSNICKNAME.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_ERRONEUSNICKNAME.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_ERRONEUSNICKNAME.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_FILEERROR.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_FILEERROR.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_FILEERROR.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_FILEERROR.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_INVITEONLYCHAN.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_INVITEONLYCHAN.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_INVITEONLYCHAN.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_INVITEONLYCHAN.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_KEYSET.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_KEYSET.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_KEYSET.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_KEYSET.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NEEDMOREPARAMS.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NEEDMOREPARAMS.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NEEDMOREPARAMS.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NEEDMOREPARAMS.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NICKCOLLISION.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NICKCOLLISION.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NICKCOLLISION.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NICKCOLLISION.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NICKNAMEINUSE.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NICKNAMEINUSE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NICKNAMEINUSE.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NICKNAMEINUSE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOADMININFO.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOADMININFO.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOADMININFO.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOADMININFO.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOCHANMODES.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOCHANMODES.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOCHANMODES.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOCHANMODES.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOLOGIN.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOLOGIN.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOLOGIN.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOLOGIN.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOMOTD.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOMOTD.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOMOTD.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOMOTD.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NONICKNAMEGIVEN.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NONICKNAMEGIVEN.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NONICKNAMEGIVEN.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NONICKNAMEGIVEN.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOOPERHOST.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOOPERHOST.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOOPERHOST.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOOPERHOST.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOORIGIN.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOORIGIN.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOORIGIN.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOORIGIN.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOPERMFORHOST.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOPERMFORHOST.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOPERMFORHOST.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOPERMFORHOST.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOPRIVILEGES.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOPRIVILEGES.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOPRIVILEGES.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOPRIVILEGES.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NORECIPIENT.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NORECIPIENT.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NORECIPIENT.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NORECIPIENT.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHCHANNEL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHCHANNEL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHCHANNEL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHCHANNEL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHNICK.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHNICK.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHNICK.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHNICK.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVER.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVER.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVER.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVER.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVICE.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVICE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVICE.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOSUCHSERVICE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTEXTTOSEND.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTEXTTOSEND.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTEXTTOSEND.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTEXTTOSEND.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTONCHANNEL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTONCHANNEL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTONCHANNEL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTONCHANNEL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTOPLEVEL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTOPLEVEL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTOPLEVEL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTOPLEVEL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTREGISTERED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTREGISTERED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_NOTREGISTERED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_NOTREGISTERED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_PASSWDMISMATCH.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_PASSWDMISMATCH.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_PASSWDMISMATCH.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_PASSWDMISMATCH.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_RESTRICTED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_RESTRICTED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_RESTRICTED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_RESTRICTED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_SUMMONDISABLED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_SUMMONDISABLED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_SUMMONDISABLED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_SUMMONDISABLED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYCHANNELS.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYCHANNELS.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYCHANNELS.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYCHANNELS.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYTARGETS.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYTARGETS.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYTARGETS.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_TOOMANYTARGETS.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UMODEUNKNOWNFLAG.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNAVAILRESOURCE.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNAVAILRESOURCE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNAVAILRESOURCE.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNAVAILRESOURCE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNIQOPPRIVSNEEDED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNCOMMAND.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNCOMMAND.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNCOMMAND.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNCOMMAND.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNMODE.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNMODE.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNMODE.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_UNKNOWNMODE.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERNOTINCHANNEL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERNOTINCHANNEL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERNOTINCHANNEL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERNOTINCHANNEL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERONCHANNEL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERONCHANNEL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERONCHANNEL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERONCHANNEL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERSDISABLED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERSDISABLED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERSDISABLED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERSDISABLED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERSDONTMATCH.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERSDONTMATCH.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_USERSDONTMATCH.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_USERSDONTMATCH.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_WASNOSUCHNICK.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_WASNOSUCHNICK.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_WASNOSUCHNICK.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_WASNOSUCHNICK.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_WILDTOPLEVEL.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_WILDTOPLEVEL.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_WILDTOPLEVEL.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_WILDTOPLEVEL.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_YOUREBANNEDCREEP.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_YOUREBANNEDCREEP.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_YOUREBANNEDCREEP.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_YOUREBANNEDCREEP.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/libirc_rfcnumeric.h.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_YOUWILLBEBANNED.3 libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_YOUWILLBEBANNED.3 --- libircclient-1.3+dfsg1/doc/man/man3/LIBIRC_RFC_ERR_YOUWILLBEBANNED.3 2004-10-07 19:13:44.000000000 +0000 +++ libircclient-1.8/doc/man/man3/LIBIRC_RFC_ERR_YOUWILLBEBANNED.3 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -.so man3/rfcnumbers.3 diff -Nru libircclient-1.3+dfsg1/doc/man/man3/libirc_rfcnumeric.h.3 libircclient-1.8/doc/man/man3/libirc_rfcnumeric.h.3 --- libircclient-1.3+dfsg1/doc/man/man3/libirc_rfcnumeric.h.3 2009-01-03 23:08:07.000000000 +0000 +++ libircclient-1.8/doc/man/man3/libirc_rfcnumeric.h.3 1970-01-01 00:00:00.000000000 +0000 @@ -1,575 +0,0 @@ -.TH "libirc_rfcnumeric.h" 3 "3 Jan 2009" "Version 1.3" "libircclient" \" -*- nroff -*- -.ad l -.nh -.SH NAME -libirc_rfcnumeric.h \- This file defines RFC numeric reply codes, which should be used in event_numeric callback. Every code also has a comment regarding its arguments. -.SH SYNOPSIS -.br -.PP -.SS "Defines" - -.in +1c -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WELCOME\fP 001" -.br -.RI "\fI001 Welcome to the Internet Relay Network !@ \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_YOURHOST\fP 002" -.br -.RI "\fI002 Your host is , running version \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_CREATED\fP 003" -.br -.RI "\fI003 This server was created \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_MYINFO\fP 004" -.br -.RI "\fI004 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_BOUNCE\fP 005" -.br -.RI "\fI005 Try server , port \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_USERHOST\fP 302" -.br -.RI "\fI302 :*1 *( \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ISON\fP 303" -.br -.RI "\fI303 :*1 *( \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_AWAY\fP 301" -.br -.RI "\fI301 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_UNAWAY\fP 305" -.br -.RI "\fI305 :You are no longer marked as being away \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_NOWAWAY\fP 306" -.br -.RI "\fI306 :You have been marked as being away \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOISUSER\fP 311" -.br -.RI "\fI311 * : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOISSERVER\fP 312" -.br -.RI "\fI312 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOISOPERATOR\fP 313" -.br -.RI "\fI313 :is an IRC operator \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOISIDLE\fP 317" -.br -.RI "\fI317 :seconds idle \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFWHOIS\fP 318" -.br -.RI "\fI318 :End of WHOIS list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOISCHANNELS\fP 319" -.br -.RI "\fI319 ' :*( ( '@' / '+' ) ' ' )' \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOWASUSER\fP 314" -.br -.RI "\fI314 * : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFWHOWAS\fP 369" -.br -.RI "\fI369 :End of WHOWAS \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_LIST\fP 322" -.br -.RI "\fI322 <# visible> : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_LISTEND\fP 323" -.br -.RI "\fI323 :End of LIST \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_UNIQOPIS\fP 325" -.br -.RI "\fI325 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_CHANNELMODEIS\fP 324" -.br -.RI "\fI324 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_NOTOPIC\fP 331" -.br -.RI "\fI331 :No topic is set \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TOPIC\fP 332" -.br -.RI "\fI332 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_INVITING\fP 341" -.br -.RI "\fI341 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_SUMMONING\fP 342" -.br -.RI "\fI342 :Summoning user to IRC \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_INVITELIST\fP 346" -.br -.RI "\fI346 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFINVITELIST\fP 347" -.br -.RI "\fI347 :End of channel invite list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_EXCEPTLIST\fP 348" -.br -.RI "\fI348 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFEXCEPTLIST\fP 349" -.br -.RI "\fI349 :End of channel exception list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_VERSION\fP 351" -.br -.RI "\fI351 . : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_WHOREPLY\fP 352" -.br -.RI "\fI352 ( 'H \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFWHO\fP 315" -.br -.RI "\fI315 :End of WHO list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_NAMREPLY\fP 353" -.br -.RI "\fI353 ( '= \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFNAMES\fP 366" -.br -.RI "\fI366 :End of NAMES list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_LINKS\fP 364" -.br -.RI "\fI364 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFLINKS\fP 365" -.br -.RI "\fI365 :End of LINKS list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_BANLIST\fP 367" -.br -.RI "\fI367 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFBANLIST\fP 368" -.br -.RI "\fI368 :End of channel ban list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_INFO\fP 371" -.br -.RI "\fI371 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFINFO\fP 374" -.br -.RI "\fI374 :End of INFO list \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_MOTDSTART\fP 375" -.br -.RI "\fI375 :- Message of the day - \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_MOTD\fP 372" -.br -.RI "\fI372 :- \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFMOTD\fP 376" -.br -.RI "\fI376 :End of MOTD command \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_YOUREOPER\fP 381" -.br -.RI "\fI381 :You are now an IRC operator \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_REHASHING\fP 382" -.br -.RI "\fI382 :Rehashing \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_YOURESERVICE\fP 383" -.br -.RI "\fI383 You are service \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TIME\fP 391" -.br -.RI "\fI391 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_USERSSTART\fP 392" -.br -.RI "\fI392 :UserID Terminal Host \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_USERS\fP 393" -.br -.RI "\fI393 : \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_ENDOFUSERS\fP 394" -.br -.RI "\fI394 :End of users \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_NOUSERS\fP 395" -.br -.RI "\fI395 :Nobody logged in \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACELINK\fP 200" -.br -.RI "\fI200 Link V \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACECONNECTING\fP 201" -.br -.RI "\fI201 Try. \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACEHANDSHAKE\fP 202" -.br -.RI "\fI202 H.S. \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACEUNKNOWN\fP 203" -.br -.RI "\fI203 ???? [] \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACEOPERATOR\fP 204" -.br -.RI "\fI204 Oper \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACEUSER\fP 205" -.br -.RI "\fI205 User \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACESERVER\fP 206" -.br -.RI "\fI206 Serv S C @ V \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACESERVICE\fP 207" -.br -.RI "\fI207 Service \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACENEWTYPE\fP 208" -.br -.RI "\fI208 0 \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACECLASS\fP 209" -.br -.RI "\fI209 Class \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACELOG\fP 261" -.br -.RI "\fI261 File \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_TRACEEND\fP 262" -.br -.RI "\fI262 :End of TRACE \fP" -.ti -1c -.RI "#define \fBLIBIRC_RFC_RPL_STATSLINKINFO\fP 211" -.br -.RI "\fI211