diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-05-25 20:09:04 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-05-25 20:09:04 +0200 |
commit | 4440a86cfa359b8e40a484a2cd46d33db5455d8a (patch) | |
tree | f5c0c59aebf0058ae97e7ef8b5fb8017f459a05a /support | |
download | ircd-4440a86cfa359b8e40a484a2cd46d33db5455d8a.tar.gz |
Initial
Diffstat (limited to 'support')
-rw-r--r-- | support/Makefile.in | 488 | ||||
-rw-r--r-- | support/acconfig.h | 101 | ||||
-rwxr-xr-x | support/config.guess | 954 | ||||
-rw-r--r-- | support/config.h.dist | 555 | ||||
-rw-r--r-- | support/config.sub | 955 | ||||
-rwxr-xr-x | support/configure | 4671 | ||||
-rw-r--r-- | support/configure.in | 1519 | ||||
-rw-r--r-- | support/iauth.conf | 18 | ||||
-rwxr-xr-x | support/install-sh | 253 | ||||
-rwxr-xr-x | support/mkdirhier | 70 | ||||
-rw-r--r-- | support/setup.h.in | 413 | ||||
-rw-r--r-- | support/sums.in | 39 | ||||
-rw-r--r-- | support/tkconf.h.dist | 35 |
13 files changed, 10071 insertions, 0 deletions
diff --git a/support/Makefile.in b/support/Makefile.in new file mode 100644 index 0000000..1cebf69 --- /dev/null +++ b/support/Makefile.in @@ -0,0 +1,488 @@ +#************************************************************************ +#* IRC - Internet Relay Chat, Makefile +#* Copyright (C) 1990, Jarkko Oikarinen +#* +#* This program is free software; you can redistribute it and/or modify +#* it under the terms of the GNU General Public License as published by +#* the Free Software Foundation; either version 1, or (at your option) +#* any later version. +#* +#* This program is distributed in the hope that it will be useful, +#* but WITHOUT ANY WARRANTY; without even the implied warranty of +#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +#* GNU General Public License for more details. +#* +#* You should have received a copy of the GNU General Public License +#* along with this program; if not, write to the Free Software +#* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#* +#* $Id: Makefile.in,v 1.45 1999/07/22 12:17:15 kalt Exp $ +#* +#*/ + +# ------------------------------------------------------------------------- +# Start of system configuration section. +# +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +# compiler program +CC = @CC@ +# compiler flags used for the server +S_CFLAGS = @CFLAGS@ -I. -I../ircd -I../common @IRC_ZLIB_INCLUDE@ +# compiler flags used for the authentication slave +A_CFLAGS = @CFLAGS@ -I. -I../iauth -I../common @IRC_ZLIB_INCLUDE@ +# compiler flags used for chkconfig +CC_CFLAGS = @CFLAGS@ -I. -I../ircd -I../common +# compiler flags used for the client +C_CFLAGS = @CFLAGS@ -I. -I../irc -I../common +# compiler flags used for other things (in contrib/) +O_CFLAGS = @CFLAGS@ -I. -I../common -DCONTRIB_COMPILE +# linker flags +LDFLAGS = @LDFLAGS@ +# required libraries, except zlib and curses/termcap +LIBS = @LIBS@ +MATHLIBS = -lm +# zlib, eventually +ZLIBS = @IRC_ZLIB_LIBRARY@ +# for DSM support (dlopen(), dlsym(), dlclose()) +DLIBS = @IRC_DLIB@ +# curses library +CURSESLIBS = @IRC_CURSES_TERMCAP_LIBRARY@ +# install and related programs +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +MKDIRHIER = ../support/mkdirhier + +# +# Binary names +# +CLIENT = irc +SERVER = ircd +IAUTH = iauth +IRCDWATCH = ircdwatch + +# +# Directories definitions +# +# Directory in which to install irc. +client_bin_dir = @bindir@ +# Directory in which to install ircd, iauth, ircdwatch, mkpasswd and chkconf. +server_bin_dir = @sbindir@ +# Directory in which to install the client manual page. +client_man_dir = @mandir@/man1 +# Directory in which to install the configuration manual page. +conf_man_dir = @mandir@/man5 +# Directory in which to install the server manual page. +server_man_dir = @mandir@/man8 +# Directory where config files (ircd.conf, ircd.motd and iauth.conf) live. +ircd_conf_dir = @sysconfdir@ +# Directory where state files (ircd.pid, ircd.tune) live. +ircd_var_dir = @localstatedir@ +# Directory where log files (users, opers, rejects and auth) live. +ircd_log_dir = @logdir@ + +# +# Most of these PATHs are hardcoded in the binaries. +# They should all be absolute. +# +# Path to server binary +IRCD_PATH = $(server_bin_dir)/$(SERVER) +# Path to authentification slave binary +IAUTH_PATH = $(server_bin_dir)/$(IAUTH) +# Path to the m4 configuration file +IRCDM4_PATH = $(ircd_conf_dir)/ircd.m4 + +# server configuration file +IRCDCONF_PATH = $(ircd_conf_dir)/ircd.conf +# server Message Of The Day +IRCDMOTD_PATH = $(ircd_conf_dir)/ircd.motd +# authentication slave configuration file +IAUTHCONF_PATH = $(ircd_conf_dir)/iauth.conf +# server PID file +IRCDPID_PATH = $(ircd_var_dir)/ircd.pid +# server state file +IRCDTUNE_PATH = $(ircd_var_dir)/ircd.tune +# ircdwatch PID file +IRCDWATCHPID_PATH = $(ircd_var_dir)/ircdwatch.pid + +# Define these filenames to maintain a list of persons who log +# into this server. Logging will stop when the file does not exist. +# Logging will be disabled also if you do not define this. +FNAME_USERLOG = $(ircd_log_dir)/users +FNAME_OPERLOG = $(ircd_log_dir)/opers +FNAME_CONNLOG = $(ircd_log_dir)/rejects +FNAME_AUTHLOG = $(ircd_log_dir)/auth + +# files used for debugging purposes +IRCDDBG_PATH = $(ircd_log_dir)/ircd.log +IAUTHDBG_PATH = $(ircd_log_dir)/iauth.log + +# Access mode for irc. +irc_mode = 755 + +# Access mode for ircd. +ircd_mode = 711 + +# +# TK line service configuration +# +# TK line service binary +TKSERV = tkserv +# TK line service logfile +TKSERV_LOGFILE = $(ircd_log_dir)/tkserv.log +# TK line service access file +TKSERV_ACCESSFILE = $(ircd_conf_dir)/tkserv.access +# IRCD config file without path (from CPATH) +TKSERV_IRCD_CONF = ircd.conf + +# End of system configuration section. +# ------------------------------------------------------------------------ +# Please don't change anything below this point - no need really - I hope. + +RM = rm -f + +CLIENT_COMMON_OBJS = clbsd.o cldbuf.o clpacket.o clsend.o clmatch.o \ + clparse.o clsupport.o +CLIENT_OBJS = c_bsd.o c_msg.o c_numeric.o c_version.o edit.o help.o \ + ignore.o irc.o screen.o str.o swear.o c_debug.o ctcp.o + +SERVER_COMMON_OBJS = bsd.o dbuf.o packet.o send.o match.o parse.o \ + support.o +SERVER_OBJS = channel.o class.o hash.o ircd.o list.o res.o s_auth.o \ + s_bsd.o s_conf.o s_debug.o s_err.o s_id.o s_misc.o s_numeric.o \ + s_serv.o s_service.o s_user.o s_zip.o whowas.o \ + res_init.o res_comp.o res_mkquery.o + +IAUTH_COMMON_OBJS = clsupport.o clmatch.o # This is a little evil +IAUTH_OBJS = iauth.o a_conf.o a_io.o a_log.o \ + mod_lhex.o mod_pipe.o mod_rfc931.o mod_socks.o +IAUTH = iauth + +CHKCONF_COMMON_OBJS = match.o +CHKCONF_OBJS = chkconf.o +CHKCONF = chkconf + +help: + @echo "Choose one of the following:" + @echo " all : build everything" + @echo " server : build server programs" + @echo " ircd : build the irc daemon" + @echo " iauth : build the authentication slave" + @echo " chkconf : build the configuration file checker" + @echo " ircd-mkpasswd : build ircd-mkpasswd" + @echo " ircdwatch : build ircdwatch" + @echo " client : build the client" + @echo " $(TKSERV) : build tkserv" + @echo + @echo " install : build and install server and client programs" + @echo " install-server : build and install server programs" + @echo " install-client : build and install client program" + @echo " install-tkserv : build and install tkserv" + +all: server client + +server: $(SERVER) $(IAUTH) $(CHKCONF) ircd-mkpasswd $(IRCDWATCH) + +client: $(CLIENT) + +$(SERVER): $(SERVER_COMMON_OBJS) $(SERVER_OBJS) + $(RM) $@ + ./version.c.SH + $(CC) $(S_CFLAGS) -c -o version.o version.c + $(CC) $(LDFLAGS) -o $@ $(SERVER_COMMON_OBJS) version.o $(SERVER_OBJS) $(ZLIBS) $(MATHLIBS) $(LIBS) + +$(IAUTH): $(IAUTH_COMMON_OBJS) $(IAUTH_OBJS) + $(RM) $@ + $(CC) $(LDFLAGS) -o $@ $(IAUTH_COMMON_OBJS) $(IAUTH_OBJS) $(LIBS) $(DLIBS) + +$(CLIENT): $(CLIENT_COMMON_OBJS) $(CLIENT_OBJS) + $(RM) $@ + $(CC) $(LDFLAGS) -o $@ $(CLIENT_COMMON_OBJS) $(CLIENT_OBJS) $(CURSESLIBS) $(LIBS) + +$(CHKCONF): $(CHKCONF_COMMON_OBJS) $(CHKCONF_OBJS) + $(RM) $@ + $(CC) $(LDFLAGS) -o $@ $(CHKCONF_COMMON_OBJS) $(CHKCONF_OBJS) $(LIBS) + +# stuff in contrib/ + +$(IRCDWATCH): ircdwatch.o clsupport.o clmatch.o + $(RM) $(IRCDWATCH) + $(CC) -o $(IRCDWATCH) clsupport.o clmatch.o ircdwatch.o + +ircd-mkpasswd: mkpasswd.o + $(RM) ircd-mkpasswd + $(CC) $(LDFLAGS) -o ircd-mkpasswd mkpasswd.o $(LIBS) + +$(TKSERV): tkserv.o + $(RM) $(TKSERV) + $(CC) $(LDFLAGS) -o $(TKSERV) tkserv.o $(LIBS) + +install: install-server install-client + +install-client: client + -@if [ ! -d $(client_bin_dir) ]; then \ + $(MKDIRHIER) $(client_bin_dir); \ + fi + -@if [ ! -d $(client_man_dir) ]; then \ + $(MKDIRHIER) $(client_man_dir); \ + fi + $(INSTALL_PROGRAM) -m $(irc_mode) $(CLIENT) $(client_bin_dir) + (cd ../doc; $(INSTALL_DATA) irc.1 $(client_man_dir)) + @echo "installation of client done." + +install-server: server + -@if [ ! -d $(server_bin_dir) ]; then \ + $(MKDIRHIER) $(server_bin_dir); \ + fi + -@if [ ! -d $(server_man_dir) ]; then \ + $(MKDIRHIER) $(server_man_dir); \ + fi + -@if [ ! -d $(conf_man_dir) ]; then \ + $(MKDIRHIER) $(conf_man_dir); \ + fi + -@if [ ! -d $(ircd_conf_dir) ]; then \ + $(MKDIRHIER) $(ircd_conf_dir); \ + fi + -@if [ ! -d $(ircd_var_dir) ]; then \ + $(MKDIRHIER) $(ircd_var_dir); \ + fi + -@if [ ! -d $(ircd_log_dir) ]; then \ + $(MKDIRHIER) $(ircd_log_dir); \ + fi + $(INSTALL_PROGRAM) -m $(ircd_mode) $(SERVER) $(server_bin_dir) + $(INSTALL_PROGRAM) -m $(ircd_mode) $(IAUTH) $(server_bin_dir) + $(INSTALL_PROGRAM) -m $(ircd_mode) $(CHKCONF) $(server_bin_dir) + $(INSTALL_PROGRAM) -m $(ircd_mode) ircd-mkpasswd $(server_bin_dir) + $(INSTALL_PROGRAM) -m $(ircd_mode) $(IRCDWATCH) $(server_bin_dir) + $(RM) $(IRCDM4_PATH) + ../ircd/buildm4 $(IRCDM4_PATH) + $(INSTALL_DATA) ../doc/ircd.8 $(server_man_dir) + $(INSTALL_DATA) ../doc/iauth.8 $(server_man_dir) + $(INSTALL_DATA) ../doc/iauth.conf.5 $(conf_man_dir) + $(INSTALL_DATA) ../contrib/ircdwatch/ircdwatch.8 $(server_man_dir) + $(INSTALL_DATA) ../doc/example.conf $(ircd_conf_dir) + -@if [ ! -f $(IAUTHCONF_PATH) ]; then \ + $(INSTALL_DATA) ../support/iauth.conf $(IAUTHCONF_PATH); \ + fi + @echo "installation of server done." + +install-tkserv: $(TKSERV) + -@if [ ! -d $(server_bin_dir) ]; then \ + $(MKDIRHIER) $(server_bin_dir); \ + fi + -@if [ ! -d $(ircd_conf_dir) ]; then \ + $(MKDIRHIER) $(ircd_conf_dir); \ + fi + $(INSTALL_PROGRAM) -m $(ircd_mode) $(TKSERV) $(server_bin_dir) + @echo "installation of client done." + +clbsd.o: ../common/bsd.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/bsd.c + +cldbuf.o: ../common/dbuf.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/dbuf.c + +clpacket.o: ../common/packet.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/packet.c + +clsend.o: ../common/send.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/send.c + +clmatch.o: ../common/match.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/match.c + +clparse.o: ../common/parse.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/parse.c + +clsupport.o: ../common/support.c setup.h config.h ../common/patchlevel.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../common/support.c + +c_bsd.o: ../irc/c_bsd.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/c_bsd.c + +c_msg.o: ../irc/c_msg.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/c_msg.c + +c_numeric.o: ../irc/c_numeric.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/c_numeric.c + +c_version.o: ../irc/c_version.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/c_version.c + +edit.o: ../irc/edit.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/edit.c + +help.o: ../irc/help.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/help.c + +ignore.o: ../irc/ignore.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/ignore.c + +irc.o: ../irc/irc.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/irc.c + +screen.o: ../irc/screen.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/screen.c + +str.o: ../irc/str.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/str.c + +swear.o: ../irc/swear.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/swear.c + +c_debug.o: ../irc/c_debug.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/c_debug.c + +ctcp.o: ../irc/ctcp.c setup.h config.h + $(CC) $(C_CFLAGS) -DCLIENT_COMPILE -c -o $@ ../irc/ctcp.c + +bsd.o: ../common/bsd.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../common/bsd.c + +dbuf.o: ../common/dbuf.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../common/dbuf.c + +packet.o: ../common/packet.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../common/packet.c + +send.o: ../common/send.c setup.h config.h + $(CC) $(S_CFLAGS) -DFNAME_USERLOG="\"$(FNAME_USERLOG)\"" -DFNAME_CONNLOG="\"$(FNAME_CONNLOG)\"" -c -o $@ ../common/send.c + +match.o: ../common/match.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../common/match.c + +parse.o: ../common/parse.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../common/parse.c + +support.o: ../common/support.c setup.h config.h ../common/patchlevel.h + $(CC) $(S_CFLAGS) -c -o $@ ../common/support.c + +channel.o: ../ircd/channel.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/channel.c + +class.o: ../ircd/class.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/class.c + +hash.o: ../common/struct_def.h ../common/os.h ../ircd/hash_def.h \ + ../ircd/hash_ext.h ../common/common_def.h ../ircd/s_bsd.c \ + ../ircd/s_serv.c ../ircd/s_user.c ../ircd/channel.c ../ircd/s_misc.c \ + ../ircd/hash.c ../ircd/ircd.c Makefile setup.h config.h + @cp ../ircd/hash.c . + @/bin/sh ./sums + $(CC) $(S_CFLAGS) -c -o $@ hash.c + @$(RM) hash.c hash.c.old + @touch hash.o + +ircd.o: ../ircd/ircd.c setup.h config.h + $(CC) $(S_CFLAGS) -DIRCDCONF_PATH="\"$(IRCDCONF_PATH)\"" \ + -DIRCDTUNE_PATH="\"$(IRCDTUNE_PATH)\"" \ + -DIRCDMOTD_PATH="\"$(IRCDMOTD_PATH)\"" \ + -DIRCD_PATH="\"$(IRCD_PATH)\"" -DIAUTH_PATH="\"$(IAUTH_PATH)\"" \ + -DIAUTH="\"$(IAUTH)\"" -DIRCDDBG_PATH="\"$(IRCDDBG_PATH)\"" \ + -c -o $@ ../ircd/ircd.c + +list.o: ../ircd/list.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/list.c + +res.o: ../ircd/res.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/res.c + +s_auth.o: ../ircd/s_auth.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_auth.c + +s_bsd.o: ../ircd/s_bsd.c setup.h config.h + $(CC) $(S_CFLAGS) -DIRCDPID_PATH="\"$(IRCDPID_PATH)\"" -DIAUTH_PATH="\"$(IAUTH_PATH)\"" -DIAUTH="\"$(IAUTH)\"" -c -o $@ ../ircd/s_bsd.c + +s_conf.o: ../ircd/s_conf.c setup.h config.h + $(CC) $(S_CFLAGS) -DIRCDMOTD_PATH="\"$(IRCDMOTD_PATH)\"" -DIRCDM4_PATH="\"$(IRCDM4_PATH)\"" -c -o $@ ../ircd/s_conf.c + +s_debug.o: ../ircd/s_debug.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_debug.c + +s_err.o: ../ircd/s_err.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_err.c + +s_id.o: ../ircd/s_id.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_id.c + +s_misc.o: ../ircd/s_misc.c setup.h config.h + $(CC) $(S_CFLAGS) -DFNAME_USERLOG="\"$(FNAME_USERLOG)\"" -DFNAME_CONNLOG="\"$(FNAME_CONNLOG)\"" -c -o $@ ../ircd/s_misc.c + +s_numeric.o: ../ircd/s_numeric.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_numeric.c + +s_serv.o: ../ircd/s_serv.c setup.h config.h + $(CC) $(S_CFLAGS) -DIRCDMOTD_PATH="\"$(IRCDMOTD_PATH)\"" -c -o $@ ../ircd/s_serv.c + +s_service.o: ../ircd/s_service.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_service.c + +s_user.o: ../ircd/s_user.c setup.h config.h + $(CC) $(S_CFLAGS) -DFNAME_USERLOG="\"$(FNAME_USERLOG)\"" -DFNAME_CONNLOG="\"$(FNAME_CONNLOG)\"" -DFNAME_OPERLOG="\"$(FNAME_OPERLOG)\"" -c -o $@ ../ircd/s_user.c + +s_zip.o: ../ircd/s_zip.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/s_zip.c + +whowas.o: ../ircd/whowas.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/whowas.c + +res_init.o: ../ircd/res_init.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/res_init.c + +res_comp.o: ../ircd/res_comp.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/res_comp.c + +res_mkquery.o: ../ircd/res_mkquery.c setup.h config.h + $(CC) $(S_CFLAGS) -c -o $@ ../ircd/res_mkquery.c + +iauth.o: ../iauth/iauth.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/iauth.c + +a_conf.o: ../iauth/a_conf.c config.h setup.h + $(CC) $(A_CFLAGS) -DIAUTHCONF_PATH="\"$(IAUTHCONF_PATH)\"" -c -o $@ ../iauth/a_conf.c + +a_dyn.o: ../iauth/a_dyn.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/a_dyn.c + +a_io.o: ../iauth/a_io.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/a_io.c + +a_log.o: ../iauth/a_log.c config.h setup.h + $(CC) $(A_CFLAGS) -DIAUTHDBG_PATH="\"$(IAUTHDBG_PATH)\"" -DFNAME_AUTHLOG="\"$(FNAME_AUTHLOG)\"" -c -o $@ ../iauth/a_log.c + +mod_lhex.o: ../iauth/mod_lhex.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/mod_lhex.c + +mod_pipe.o: ../iauth/mod_pipe.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/mod_pipe.c + +mod_rfc931.o: ../iauth/mod_rfc931.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/mod_rfc931.c + +mod_socks.o: ../iauth/mod_socks.c config.h setup.h + $(CC) $(A_CFLAGS) -c -o $@ ../iauth/mod_socks.c + +chkconf.o: ../ircd/chkconf.c setup.h config.h + $(CC) $(CC_CFLAGS) -DCHKCONF_COMPILE -DIRCDCONF_PATH="\"$(IRCDCONF_PATH)\"" -DIRCDM4_PATH="\"$(IRCDM4_PATH)\"" -c -o $@ ../ircd/chkconf.c + +# stuff in contrib/ + +ircdwatch.o: ../contrib/ircdwatch/ircdwatch.c + $(CC) $(O_CFLAGS) -DIRCDWATCH_PID_FILENAME="\"$(IRCDWATCHPID_PATH)\"" -DIRCD_PATH="\"$(IRCD_PATH)\"" -DIRCDCONF_PATH="\"$(IRCDCONF_PATH)\"" -DIRCDPID_PATH="\"$(IRCDPID_PATH)\"" -c -o $@ ../contrib/ircdwatch/ircdwatch.c + +mkpasswd.o: ../contrib/mkpasswd/mkpasswd.c + $(CC) $(O_CFLAGS) -c -o $@ ../contrib/mkpasswd/mkpasswd.c + +tkserv.o: ../contrib/tkserv/tkserv.c tkconf.h + $(CC) $(O_CFLAGS) -DTKSERV_LOGFILE="\"$(TKSERV_LOGFILE)\"" -DTKSERV_ACCESSFILE="\"$(TKSERV_ACCESSFILE)\"" -DTKSERV_IRCD_CONF="\"$(TKSERV_IRCD_CONF)\"" -DCPATH="\"$(IRCDCONF_PATH)\"" -DPPATH="\"$(IRCDPID_PATH)\"" -c -o $@ ../contrib/tkserv/tkserv.c + +clean: + $(RM) $(CLIENT) $(SERVER) $(IAUTH) $(CHKCONF) ircd-mkpasswd $(IRCDWATCH) $(TKSERV) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"* version.c + +distclean: + @echo "To make distclean, just delete the current directory." + +rcs: + (cd ..; cii -H -R configure common doc include irc ircd support) diff --git a/support/acconfig.h b/support/acconfig.h new file mode 100644 index 0000000..6372a57 --- /dev/null +++ b/support/acconfig.h @@ -0,0 +1,101 @@ +/* $Id: acconfig.h,v 1.9 1999/03/10 00:30:17 kalt Exp $ */ + +/* Define if zlib package must be used for compilation/linking. */ +#undef USE_ZLIB + +/* Define if ncurses library must be used for compilation/linking. */ +#undef USE_NCURSES + +/* Define if cursesX library must be used for compilation/linking. */ +#undef USE_CURSESX + +/* Define if curses library must be used for compilation/linking. */ +#undef USE_CURSES + +/* Define if termcap library must be used for compilation/linking. */ +#undef USE_TERMCAP + +/* Define if the second argument of waitpid must be an "union wait *" instead + of an "int *". */ +#undef USE_UNION_WAIT + +/* Define if int8_t, u_int8_t, int16_t, u_int16_t, int32_t, u_int32_t, u_char, + * u_short, u_int, u_long are not known types. */ +#undef int8_t +#undef u_int8_t +#undef int16_t +#undef u_int16_t +#undef int32_t +#undef u_int32_t +#undef u_char +#undef u_short +#undef u_int +#undef u_long + +/* Define if memcmp is not 8-bit clean. */ +#undef MEMCMP_BROKEN + +/* Define if the operating system is AIX 3.2. */ +#undef AIX_3_2 + +/* Define if the operating system is Solaris 2.x (SunOS 5.x). */ +#undef SOLARIS_2 + +/* Define if the operating system is Solaris 2.3 (SunOS 5.3). */ +#undef SOLARIS_2_3 + +/* Define if the operating system is Solaris 2.[0-2] (SunOS 5.[0-2]). */ +#undef SOLARIS_2_0_2_1_2_2 + +/* Define if <netdb.h> contains bad __const usages (Linux). */ +#undef BAD___CONST_NETDB_H + +/* Define if sys_errlist is declared in stdio.h or errno.h. */ +#undef SYS_ERRLIST_DECLARED + +/* Define if sys_nerr is declared in stdio.h or errno.h. */ +#undef SYS_NERR_DECLARED + +/* Define if errno is declared in errno.h. */ +#undef ERRNO_DECLARED + +/* Define if h_errno is declared in errno.h or netdb.h. */ +#undef H_ERRNO_DECLARED + +/* Define if poll(2) must be used instead of select(2). */ +/* Note: some systems (e.g. linux 2.0.x) have a non-working poll() */ +#undef USE_POLL + +/* Define if the system provides POSIX sigaction. */ +#undef POSIX_SIGNALS + +/* Define if the system provides reliable BSD signals through sigset instead + of signal. */ +/* #define signal sigset */ + +/* Define if the system provides reliable BSD signals. */ +#undef BSD_RELIABLE_SIGNALS + +/* Define if the system provides unreliable SystemV signals. */ +#undef SYSV_UNRELIABLE_SIGNALS + +/* Define if the system provides POSIX non-blocking system. */ +#undef NBLOCK_POSIX + +/* Define if the system provides BSD non-blocking system. */ +#undef NBLOCK_BSD + +/* Define if the system provides SystemV non-blocking system. */ +#undef NBLOCK_SYSV + +/* Define is the system can use variable arguments. */ +#undef USE_STDARG + +/* Define as the resolver configuration file. */ +#undef IRC_RESCONF + +/* Define to enable IPv6 support */ +#undef INET6 + +/* Define to enable dynamically shared iauth module support */ +#undef USE_DSM diff --git a/support/config.guess b/support/config.guess new file mode 100755 index 0000000..b8bc3ba --- /dev/null +++ b/support/config.guess @@ -0,0 +1,954 @@ +#! /bin/sh +# +# $Id: config.guess,v 1.4 1999/01/18 00:24:17 kalt Exp $ +# +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. +# +# This file 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Written by Per Bothner <bothner@cygnus.com>. +# The master version of this file is at the FSF in /home/gd/gnu/lib. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit system type (host/target name). +# +# Only a few systems have been added to this list; please add others +# (but try to keep the structure clean). +# + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 8/24/94.) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15 + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + alpha:OSF1:*:*) + if test $UNAME_RELEASE = "V4.0"; then + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + fi + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + cat <<EOF >dummy.s + .globl main + .ent main +main: + .frame \$30,0,\$26,0 + .prologue 0 + .long 0x47e03d80 # implver $0 + lda \$2,259 + .long 0x47e20c21 # amask $2,$1 + srl \$1,8,\$2 + sll \$2,2,\$2 + sll \$0,3,\$0 + addl \$1,\$0,\$0 + addl \$2,\$0,\$0 + ret \$31,(\$26),1 + .end main +EOF + ${CC-cc} dummy.s -o dummy 2>/dev/null + if test "$?" = 0 ; then + ./dummy + case "$?" in + 7) + UNAME_MACHINE="alpha" + ;; + 15) + UNAME_MACHINE="alphaev5" + ;; + 14) + UNAME_MACHINE="alphaev56" + ;; + 10) + UNAME_MACHINE="alphapca56" + ;; + 16) + UNAME_MACHINE="alphaev6" + ;; + esac + fi + rm -f dummy.s dummy + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-cbm-sysv4 + exit 0;; + amiga:NetBSD:*:*) + echo m68k-cbm-netbsd${UNAME_RELEASE} + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + arc64:OpenBSD:*:*) + echo mips64el-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hkmips:OpenBSD:*:*) + echo mips-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mips-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + arm32:NetBSD:*:*) + echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + SR2?01:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + atari*:NetBSD:*:*) + echo m68k-atari-netbsd${UNAME_RELEASE} + exit 0 ;; + atari*:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:NetBSD:*:*) + echo m68k-sun-netbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:NetBSD:*:*) + echo m68k-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + macppc:NetBSD:*:*) + echo powerpc-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + sed 's/^ //' << EOF >dummy.c + int main (argc, argv) int argc; char **argv; { + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + ${CC-cc} dummy.c -o dummy \ + && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ + -o ${TARGET_BINARY_INTERFACE}x = x ] ; then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i?86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + sed 's/^ //' << EOF >dummy.c + #include <sys/systemcfg.h> + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:4) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` + if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=4.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[34678]??:HP-UX:*:*) + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 ) + sed 's/^ //' << EOF >dummy.c + #include <stdlib.h> + #include <unistd.h> + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy` + rm -f dummy.c dummy + esac + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + sed 's/^ //' << EOF >dummy.c + #include <unistd.h> + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i?86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*X-MP:*:*:*) + echo xmp-cray-unicos + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY-2:*:*:*) + echo cray2-cray-unicos + exit 0 ;; + F300:UNIX_System_V:*:*) + FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + F301:UNIX_System_V:*:*) + echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` + exit 0 ;; + hp3[0-9][05]:NetBSD:*:*) + echo m68k-hp-netbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + i?86:BSD/386:*:* | *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:NetBSD:*:*) + echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *:Linux:*:*) + # uname on the ARM produces all sorts of strangeness, and we need to + # filter it out. + case "$UNAME_MACHINE" in + arm* | sa110*) UNAME_MACHINE="arm" ;; + esac + + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. + ld_help_string=`ld --help 2>&1` + ld_supported_emulations=`echo $ld_help_string \ + | sed -ne '/supported emulations:/!d + s/[ ][ ]*/ /g + s/.*supported emulations: *// + s/ .*// + p'` + case "$ld_supported_emulations" in + i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; + i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; + sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; + esac + + if test "${UNAME_MACHINE}" = "alpha" ; then + sed 's/^ //' <<EOF >dummy.s + .globl main + .ent main + main: + .frame \$30,0,\$26,0 + .prologue 0 + .long 0x47e03d80 # implver $0 + lda \$2,259 + .long 0x47e20c21 # amask $2,$1 + srl \$1,8,\$2 + sll \$2,2,\$2 + sll \$0,3,\$0 + addl \$1,\$0,\$0 + addl \$2,\$0,\$0 + ret \$31,(\$26),1 + .end main +EOF + LIBC="" + ${CC-cc} dummy.s -o dummy 2>/dev/null + if test "$?" = 0 ; then + ./dummy + case "$?" in + 7) + UNAME_MACHINE="alpha" + ;; + 15) + UNAME_MACHINE="alphaev5" + ;; + 14) + UNAME_MACHINE="alphaev56" + ;; + 10) + UNAME_MACHINE="alphapca56" + ;; + 16) + UNAME_MACHINE="alphaev6" + ;; + esac + + objdump --private-headers dummy | \ + grep ld.so.1 > /dev/null + if test "$?" = 0 ; then + LIBC="libc1" + fi + fi + rm -f dummy.s dummy + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 + elif test "${UNAME_MACHINE}" = "mips" ; then + cat >dummy.c <<EOF +main(argc, argv) + int argc; + char *argv[]; +{ +#ifdef __MIPSEB__ + printf ("%s-unknown-linux-gnu\n", argv[1]); +#endif +#ifdef __MIPSEL__ + printf ("%sel-unknown-linux-gnu\n", argv[1]); +#endif + return 0; +} +EOF + ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + else + # Either a pre-BFD a.out linker (linux-gnuoldld) + # or one that does not give us useful --help. + # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. + # If ld does not provide *any* "supported emulations:" + # that means it is gnuoldld. + echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" + test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 + + case "${UNAME_MACHINE}" in + i?86) + VENDOR=pc; + ;; + *) + VENDOR=unknown; + ;; + esac + # Determine whether the default compiler is a.out or elf + cat >dummy.c <<EOF +#include <features.h> +main(argc, argv) + int argc; + char *argv[]; +{ +#ifdef __ELF__ +# ifdef __GLIBC__ +# if __GLIBC__ >= 2 + printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); +# else + printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); +# endif +# else + printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); +# endif +#else + printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); +#endif + return 0; +} +EOF + ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0 + rm -f dummy.c dummy + fi ;; +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions +# are messed up and put the nodename in both sysname and nodename. + i?86:DYNIX/ptx:4*:*) + echo i386-sequent-sysv4 + exit 0 ;; + i?86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit 0 ;; + i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} + fi + exit 0 ;; + i?86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL + elif /bin/uname -X 2>/dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` + (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + i?86:UnixWare:*:*) + if /bin/uname -X 2>/dev/null >/dev/null ; then + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + fi + echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION} + exit 0 ;; + pc:*:*:*) + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + i?86:LynxOS:2.*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says <Richard.M.Bartel@ccMail.Census.GOV> + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes <hewes@openmarket.com>. + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:*:6*) + echo mips-sony-newsos6 + exit 0 ;; + R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +cat >dummy.c <<EOF +#ifdef _SEQUENT_ +# include <sys/types.h> +# include <sys/utsname.h> +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include <sys/param.h> + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +#if !defined (ultrix) + printf ("vax-dec-bsd\n"); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0 +rm -f dummy.c dummy + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +#echo '(Unable to guess system type)' 1>&2 + +exit 1 diff --git a/support/config.h.dist b/support/config.h.dist new file mode 100644 index 0000000..4d742c3 --- /dev/null +++ b/support/config.h.dist @@ -0,0 +1,555 @@ +/************************************************************************ + * IRC - Internet Relay Chat, support/config.h + * Copyright (C) 1990 Jarkko Oikarinen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 1, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +/* + * ircdwatch configuration options. + */ + +/* how often (in seconds) should we check that ircd runs? */ +#define IRCDWATCH_POLLING_INTERVAL 30 + +/* + * should we check for config file changes and HUP the server + * if a change is detected? + */ +#undef IRCDWATCH_HUP_ON_CONFIG_CHANGE + +/* + * although you may not want to log ircd-messages to syslog you + * may want to log when ircdwatch reloads the config or when + * ircd croaks and ircdwatch has to restart it + */ +#define IRCDWATCH_USE_SYSLOG +#ifdef IRCDWATCH_USE_SYSLOG +# define IRCDWATCH_SYSLOG_IDENT "ircdwatch" +# define IRCDWATCH_SYSLOG_OPTIONS (LOG_PID) +# define IRCDWATCH_SYSLOG_FACILITY LOG_DAEMON +#endif + + +/* + * irc[d] configuration options. + * + * Most of the following defines are related to the server, + * some apply to the client. + * + */ + +/* + * If you don't want the server to keep reading the MOTD file from the disk, + * define CACHED_MOTD. The server will store the MOTD in memory, and only + * read it again from the disk when rehashing if the file has changed. + */ +#define CACHED_MOTD + +/* CHROOTDIR + * + * Define for value added security if you are a rooter. + * + * CPATH, MPATH, LPATH, PPATH, TPATH, QPATH, OPATH, + * FNAME_USERLOG, FNAME_OPERLOG, FNAME_CONNLOG, FNAME_AUTHLOG + * must have RPATH as root directory! Set them in Makefile + * + * You may want to define IRC_UID and IRC_GID + */ +#undef CHROOTDIR + +#if defined(CHROOTDIR) + #define ROOT_PATH "/where/to/change/root/dir" +#endif + +/* ENABLE_SUMMON + * + * The SUMMON command requires the ircd to be run as group tty in order + * to work properly in many cases. If you are on a machine where it + * won't work, or simply don't want local users to be summoned, undefine + * this. + */ +#undef ENABLE_SUMMON /* local summon */ +#undef ENABLE_USERS /* enables local /users (same as who/finger output) */ + +/* SHOW_INVISIBLE_LUSERS + * + * As defined this will show the correct invisible count for anyone who does + * LUSERS on your server. On a large net this doesnt mean much, but on a + * small net it might be an advantage to undefine it. + */ +#define SHOW_INVISIBLE_LUSERS + +/* NO_DEFAULT_INVISIBLE + * + * When defined, your users will not automatically be attributed with user + * mode "i" (i == invisible). Invisibility means people dont showup in + * WHO or NAMES unless they are on the same channel as you. + */ +#undef NO_DEFAULT_INVISIBLE + +/* OPER_KILL + * + * If you dont believe operators should be allowed to use the /KILL command + * or believe it is uncessary for them to use it, then leave OPER_KILL + * undefined. This will not affect other operators or servers issuing KILL + * commands however. OPER_REHASH and OPER_RESTART allow operators to + * issue the REHASH and RESTART commands when connected to your server. + * Left undefined they increase the security of your server from wayward + * operators and accidents. Defining OPER_REMOTE removes the restriction + * that O-lines only become fully effective for people on the 'same network' + * as the server. Undefined, it increases the security of the server by + * placing restrictions on where people can use operator powers from. + * The 'LOCOP_' #defines are for making the respective commands available + * to 'local' operators. Note that the 'OPER_' #defines affect both global + * (big O) and local (little o) operators. Defining 'LOCOP_x' has no effect + * if 'OPER_x' is undefined so you can't give local operators more rights + * than global ones. + */ +#undef OPER_KILL +#define OPER_REHASH +#undef OPER_RESTART +#define OPER_DIE +#undef OPER_REMOTE +#undef LOCOP_REHASH +#undef LOCOP_RESTART +#undef LOCOP_DIE + +/* + * Maximum number of network connections your server will allow. This should + * never exceed max. number of open file descrpitors and wont increase this. + * Should remain LOW as possible. Most sites will usually have under 50 or so + * connections. + * if you have a lot of server connections, it may be worth splitting the load + * over 2 or more servers. + * 1 server = 1 connection, 1 user = 1 connection. + * This should be at *least* 4: 2 listen ports (1 tcp, 1 udp) + * 1 dns port, 1 client + */ +#define MAXCONNECTIONS 50 + +/* MAXIMUM LINKS + * + * This define is useful for leaf nodes and gateways. It keeps you from + * connecting to too many places. It works by keeping you from + * connecting to more than "n" nodes which you have C:blah::blah:6667 + * lines for. + * + * Note that any number of nodes can still connect to you. This only + * limits the number that you actively reach out to connect to. + * + * Leaf nodes are nodes which are on the edge of the tree. If you want + * to have a backup link, then sometimes you end up connected to both + * your primary and backup, routing traffic between them. To prevent + * this, #define MAXIMUM_LINKS 1 and set up both primary and + * secondary with C:blah::blah:6667 lines. THEY SHOULD NOT TRY TO + * CONNECT TO YOU, YOU SHOULD CONNECT TO THEM. + * + * Gateways such as the server which connects Australia to the US can + * do a similar thing. Put the American nodes you want to connect to + * in with C:blah::blah:6667 lines, and the Australian nodes with + * C:blah::blah lines. Have the Americans put you in with C:blah::blah + * lines. Then you will only connect to one of the Americans. + * + * This value is only used if you don't have server classes defined, and + * a server is in class 0 (the default class if none is set). + * + */ +#define MAXIMUM_LINKS 1 + +/* + * A pure non-routing leaf server can undefine HUB for best performance. + * If your server is running as a a HUB Server then define this. + * A HUB Server has many servers connect to it at the same as opposed + * to a leaf which just has 1 server (typically the uplink). + */ +/* #define HUB */ + +#ifdef HUB +/* + * MAXSERVERS is the maximum number of servers that will be linked + * to your server at the same time. This number is not a limit, + * it is used to allocate memory when ircd is started. + */ +# define MAXSERVERS 3 +#else +# define MAXSERVERS 1 +#endif + +/* R_LINES: The conf file now allows the existence of R lines, or + * restrict lines. These allow more freedom in the ability to restrict + * who is to sign on and when. What the R line does is call an outside + * program which returns a reply indicating whether to let the person on. + * Because there is another program involved, Delays and overhead could + * result. It is for this reason that there is a line in config.h to + * decide whether it is something you want or need. -Hoppie + * + * The default is no R_LINES as most people probably don't need it. --Jto + */ +#undef R_LINES + +#ifdef R_LINES +/* Also, even if you have R lines defined, you might not want them to be + checked everywhere, since it could cost lots of time and delay. Therefore, + The following two options are also offered: R_LINES_REHASH rechecks for + R lines after a rehash, and R_LINES_OFTEN, which rechecks it as often + as it does K lines. Note that R_LINES_OFTEN is *very* likely to cause + a resource drain, use at your own risk. R_LINES_REHASH shouldn't be too + bad, assuming the programs are fairly short. */ +#define R_LINES_REHASH +#define R_LINES_OFTEN +#endif + +/* + * NOTE: defining CMDLINE_CONFIG and installing ircd SUID or SGID is a MAJOR + * security problem - they can use the "-f" option to read any files + * that the 'new' access lets them. Note also that defining this is + * a major security hole if your ircd goes down and some other user + * starts up the server with a new conf file that has some extra + * O-lines. So don't use this unless you're debugging. + */ +#undef CMDLINE_CONFIG /* allow conf-file to be specified on command line */ + +/* + * To use m4 as a preprocessor on the ircd.conf file, define M4_PREPROC. + * The server will then call m4 each time it reads the ircd.conf file, + * reading m4 output as the server's ircd.conf file. + */ +#undef M4_PREPROC + +/* + * If you wish to have the server send 'vital' messages about server + * through syslog, define USE_SYSLOG. Only system errors and events critical + * to the server are logged although if this is defined with FNAME_USERLOG, + * syslog() is used instead of the above file. It is not recommended that + * this option is used unless you tell the system administrator beforehand + * and obtain their permission to send messages to the system log files. + */ +#undef USE_SYSLOG + +#ifdef USE_SYSLOG +/* + * If you use syslog above, you may want to turn some (none) of the + * spurious log messages for KILL/SQUIT off. + */ +#undef SYSLOG_KILL /* log all operator kills to syslog */ +#undef SYSLOG_SQUIT /* log all remote squits for all servers to syslog */ +#undef SYSLOG_CONNECT /* log remote connect messages for other all servs */ +#undef SYSLOG_USERS /* send userlog stuff to syslog */ +#undef SYSLOG_OPER /* log all users who successfully become an Op */ +#undef SYSLOG_CONN /* log all uncomplete/rejected connections */ + +/* + * If you want to log to a different facility than DAEMON, change + * this define. + */ +#define LOG_FACILITY LOG_DAEMON +#endif /* USE_SYSLOG */ + +/* + * define this if you want to use crypted passwords for operators in your + * ircd.conf file. See contrib/mkpasswd/README for more details on this. + */ +#undef CRYPT_OPER_PASSWORD + +/* + * If you want to store encrypted passwords in N-lines for server links, + * define this. For a C/N pair in your ircd.conf file, the password + * need not be the same for both, as long as hte opposite end has the + * right password in the opposite line. See INSTALL doc for more details. + */ +#undef CRYPT_LINK_PASSWORD + +/* + * define this if you enable summon and if you want summon to look for the + * least idle tty a user is logged in on. + */ +#undef LEAST_IDLE + +/* + * IDLE_FROM_MSG + * + * Idle-time nullified only from privmsg, if undefined idle-time + * is nullified from everything except ping/pong. + * Added 3.8.1992, kny@cs.hut.fi (nam) + */ +#define IDLE_FROM_MSG + +/* + * use these to setup a Unix domain socket to connect clients/servers to. + */ +#undef UNIXPORT + +/* + * IRC_UID + * + * If you start the server as root but wish to have it run as another user, + * define IRC_UID to that UID. This should only be defined if you are running + * as root and even then perhaps not. + */ +#undef IRC_UID +#undef IRC_GID + +#ifdef notdef +#define IRC_UID 65534 /* eg for what to do to enable this feature */ +#define IRC_GID 65534 +#endif + +/* + * CLIENT_FLOOD + * + * this controls the number of bytes the server will allow a client to + * send to the server without processing before disconnecting the client for + * flooding it. Values greater than 8000 make no difference to the server. + */ +#define CLIENT_FLOOD 1000 + +/* Remote query flood protection. */ +#define CHREPLLEN 8192 + +/* Default server for standard client */ +#define UPHOST "irc" + +/* + * If you wish to run services, define USE_SERVICES. + * This can make the server noticeably bigger and slower. + * services are not fully implemented yet, so don't use it unless you really + * know what you are doing. + */ +#undef USE_SERVICES + +/* + * Define the following to make the delay for nicks random. + * Some people believe a bot can exactly time the delay and don't like it, + * I think this is a useless concern. -krys + */ +#undef RANDOM_NDELAY + +/* + * You've read the BOFH saga and you liked it, then define the following. + * + * The two following will change the nick delay and channel delay features + * making them totally user unfriendly but more efficient. + */ +#undef BETTER_NDELAY +#undef BETTER_CDELAY + +/* + * Defining this will enable the use of compressed server-server links. + * In order to have it work, you must have the zlib version 1.0 or higher. + * The library and the include files must have been found by configure, + * if you have installed the zlib after running configure, run it again. + */ +#undef ZIP_LINKS + +/* + * Defining this will add an artificial 2 seconds delay for accepting + * connections. This is the OLD behaviour of the server. + * + * NOTE: Undefining this leads to a significant increase in CPU usage if + * you reject client which keeps connecting. + */ +#define SLOW_ACCEPT + +/* + * Defining this will make the server check for rapid connections from a single + * host and reject new connections from this host if the limit is reached. + * + * NOTE: Enabling this feature will significantly increase the CPU usage + * for servers carrying several hundred clients and getting many connections. + * + * IMPORTANT: This **MUST** defined if SLOW_ACCEPT is NOT defined + */ +#undef CLONE_CHECK + +/* STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP */ +/* STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP */ +/* STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP */ + +/* You shouldn't change anything below this line, unless absolutely needed. */ + +#ifdef OPER_KILL +/* LOCAL_KILL_ONLY + * + * To be used, OPER_KILL must be defined. + * LOCAL_KILL_ONLY restricts KILLs to clients which are connected to the + * server the Operator is connected to (ie lets them deal with local + * problem users or 'ghost' clients + */ +#define LOCAL_KILL_ONLY +#endif + +/* Default server port, used by client. */ +#define PORTNUM 6667 + +/* Maximum length the queue of pending connections to one port may grow to. */ +#define LISTENQUEUE 128 + +/* define DEBUGMODE to enable debugging mode.*/ +#undef DEBUGMODE + +/* + * Time interval to wait and if no messages have been received, then check for + * PINGFREQUENCY and CONNECTFREQUENCY + */ +#define TIMESEC 60 /* Recommended value: 60 */ + +/* + * If daemon doesn't receive anything from any of its links within + * PINGFREQUENCY seconds, then the server will attempt to check for + * an active link with a PING message. If no reply is received within + * (PINGFREQUENCY * 2) seconds, then the connection will be closed. + */ +#define PINGFREQUENCY 120 /* Recommended value: 120 */ + +/* + * If the connection to to uphost is down, then attempt to reconnect every + * CONNECTFREQUENCY seconds. + */ +#define CONNECTFREQUENCY 600 /* Recommended value: 600 */ + +/* + * Often net breaks for a short time and it's useful to try to + * establishing the same connection again faster than CONNECTFREQUENCY + * would allow. But, to keep trying on bad connection, we require + * that connection has been open for certain minimum time + * (HANGONGOODLINK) and we give the net few seconds to steady + * (HANGONRETRYDELAY). This latter has to be long enough that the + * other end of the connection has time to notice it broke too. + */ +#define HANGONRETRYDELAY 30 /* Recommended value: 30 seconds */ +#define HANGONGOODLINK 900 /* Recommended value: 15 minutes */ + +/* + * Number of seconds to wait for write to complete if stuck. + */ +#define WRITEWAITDELAY 15 /* Recommended value: 15 */ + +/* + * Number of seconds to wait for DNS/authentication to complete. + * Note that iauth's default timeout per module is 30 seconds, so this value + * should be at least 30 * number of modules. Extra time should really be + * given to be safe. + */ +#define ACCEPTTIMEOUT 90 /* Recommended value: 90 */ + +/* + * Max time from the nickname change that still causes KILL + * automaticly to switch for the current nick of that user. (seconds) + */ +#define KILLCHASETIMELIMIT 90 /* Recommended value: 90 */ + +/* + * Max time for the channel history and nick delay to be effective. + * It should be the same value on all servers of a same net, and + * be greater than the split durations usually seen. + * DELAYCHASETIMELIMIT is the default. + */ +#define DELAYCHASETIMELIMIT 1800 /* Recommended value: 1800 */ + +/* + * Max time for !channel history, this *MUST* be fairly long (usually + * much longer than the value above) to ensure shortname unicity. + * It makes very little sense to use a short time limit here. + */ +#define LDELAYCHASETIMELIMIT 5400 /* Recommended value: 5400 */ + +/* + * Max number of channels a user is allowed to join. + */ +#define MAXCHANNELSPERUSER 10 /* Recommended value: 10 */ + +/* + * USE_IAUTH makes ircd use the iauth program for authentication. + * it can always be overriden by using the -s switch + */ +#define USE_IAUTH + +#ifdef ZIP_LINKS +/* + * the compression level used. (Suggested values: 3, 4, 5) + * Above 5 will only give a *very* marginal increase in compression for a + * *very* large increase in CPU usage. + */ +# define ZIP_LEVEL 5 +#endif + +#ifdef CLONE_CHECK +/* + * If CLONE_CHECK has been defined, these control how the checks are performed, + * and how the alarm is triggered. + */ +# define CLONE_MAX 2 +# define CLONE_PERIOD 10 +#endif + +/* + * define NO_IDENT if you don't want to support ident (RFC1413). + * it is a VERY bad idea to do so, since this will make it impossible to + * efficientely track abusers. + * NO_PREFIX should always be undefined. + */ +/* #undef NO_IDENT */ +/* #undef NO_PREFIX */ + +/* ------------------------- END CONFIGURATION SECTION -------------------- */ +#ifndef ENABLE_SUMMON +# undef LEAST_IDLE +#endif + +#define SEQ_NOFILE 128 /* For Dynix (sequent OS) users : + * set to your current kernel impl, + * max number of socket connections; + * ignored on other OS. + */ +/* + * safety margin so we can always have one spare fd, for motd/authd or + * whatever else. -5 allows "safety" margin of 1 and space reserved. + */ +#define MAXCLIENTS (MAXCONNECTIONS-5) + +#if defined(CLIENT_FLOOD) +# if (CLIENT_FLOOD > 8000) || (CLIENT_FLOOD < 512) +error CLIENT_FLOOD needs redefining. +# endif +#else +error CLIENT_FLOOD undefined +#endif + +#if defined(ZIP_LINKS) +# if (ZIP_MINIMUM > ZIP_MAXIMUM) +error ZIP_MINIMUM needs redefining. +# endif +#endif + +#if !defined(SLOW_ACCEPT) && !defined(CLONE_CHECK) +# define CLONE_CHECK +# define CLONE_MAX 2 +# define CLONE_PERIOD 10 +#endif + +/* +** you wouldn't want to compress messages one by one.. would you? +** (it's not implemented anyways) +*/ +#ifdef ZIP_LINKS +# define SENDQ_ALWAYS +#endif + +#if ! USE_POLL +# if (MAXCONNECTIONS > FD_SETSIZE) +error FD_SETSIZE must be bigger than MAXCONNECTIONS +# endif +#endif diff --git a/support/config.sub b/support/config.sub new file mode 100644 index 0000000..00bea6e --- /dev/null +++ b/support/config.sub @@ -0,0 +1,955 @@ +#! /bin/sh +# Configuration validation subroutine script, version 1.1. +# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +if [ x$1 = x ] +then + echo Configuration name missing. 1>&2 + echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 + echo "or $0 ALIAS" 1>&2 + echo where ALIAS is a recognized configuration type. 1>&2 + exit 1 +fi + +# First pass through any local machine types. +case $1 in + *local*) + echo $1 + exit 0 + ;; + *) + ;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + linux-gnu*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple) + os= + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ + | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ + | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ + | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ + | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ + | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ + | mipstx39 | mipstx39el \ + | sparc | sparclet | sparclite | sparc64 | v850) + basic_machine=$basic_machine-unknown + ;; + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i[34567]86) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ + | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ + | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ + | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ + | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ + | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ + | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ + | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ + | sparc64-* | mips64-* | mipsel-* \ + | mips64el-* | mips64orion-* | mips64orionel-* \ + | mipstx39-* | mipstx39el-* \ + | f301-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-cbm + ;; + amigaos | amigados) + basic_machine=m68k-cbm + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-cbm + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | ymp) + basic_machine=ymp-cray + os=-unicos + ;; + cray2) + basic_machine=cray2-cray + os=-unicos + ;; + [ctj]90-cray) + basic_machine=c90-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + os=-mvs + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i[34567]86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i[34567]86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i[34567]86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i[34567]86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + miniframe) + basic_machine=m68000-convergent + ;; + mipsel*-linux*) + basic_machine=mipsel-unknown + os=-linux-gnu + ;; + mips*-linux*) + basic_machine=mips-unknown + os=-linux-gnu + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + np1) + basic_machine=np1-gould + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | nexen) + basic_machine=i586-pc + ;; + pentiumpro | p6 | k6 | 6x86) + basic_machine=i686-pc + ;; + pentiumii | pentium2) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | nexen-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | k6-* | 6x86-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=rs6000-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + xmp) + basic_machine=xmp-cray + os=-unicos + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + mips) + if [ x$os = x-linux-gnu ]; then + basic_machine=mips-unknown + else + basic_machine=mips-mips + fi + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sparc) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -uxpv* | -beos*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -ctix* | -uts*) + os=-sysv + ;; + -ns2 ) + os=-nextstep2 + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -xenix) + os=-xenix + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-semi) + os=-aout + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-ibm) + os=-aix + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f301-fujitsu) + os=-uxpv + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -hpux*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxsim* | -vxworks*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os diff --git a/support/configure b/support/configure new file mode 100755 index 0000000..6af37fe --- /dev/null +++ b/support/configure @@ -0,0 +1,4671 @@ +#! /bin/sh + +# From configure.in Id: configure.in,v 1.45 1999/07/17 21:12:43 kalt Exp + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --with-zlib checks for zlib; if found, enables compressed links" +ac_help="$ac_help + --without-zlib does not check for zlib; disables compressed links" +ac_help="$ac_help + --without-ncurses does not look for ncurses library, will not use it" +ac_help="$ac_help + --without-cursesX does not look for cursesX library, will not use it" +ac_help="$ac_help + --without-curses does not look for curses library, will not use it" +ac_help="$ac_help + --without-termcap does not look for termcap library, will not use it" +ac_help="$ac_help + --enable-ip6 enables IPv6" +ac_help="$ac_help + --enable-dsm enables dynamically shared modules for iauth" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +zlib_include=NONE +zlib_library=NONE +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var/run' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' +logdir='${prefix}/var/log/ircd' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -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 ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$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" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$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) + # 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 << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR[PREFIX/var/run] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --logdir=DIR log files in DIR [PREFIX/var/log/ircd] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --resconf=FILE use FILE as resolver config file [/etc/resolv.conf] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --zlib-prefix=ZDIR zlib installation prefix is ZDIR + --zlib-include=ZIDIR zlib include files are in ZIDIR [ZDIR/include] + --zlib-library=ZLDIR zlib library files are in ZLDIR [ZDIR/lib] +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$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" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -logdir | --logdir | --logdi | --logd) + ac_prev=logdir ;; + -logdir=* | --logdir=* | --logdi=* | --logd=*) + logdir="$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) + 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" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -resconf | --resconf | --rescon | --resco | --resc | --res \ + | --re | --r) + ac_prev=irc_resconf ;; + -resconf=* | --resconf=* | --rescon=* | --resco=* | --resc=* \ + | --res=* | --re=* | --r=*) + irc_resconf="$ac_optarg" ;; + + -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 ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + -zlib-prefix | --zlib-prefix | --zlib-prefi | --zlib-pref \ + | --zlib-pre | --zlib-pr | --zlib-p) + ac_prev=irc_zlib_prefix ;; + -zlib-prefix=* | --zlib-prefix=* | --zlib-prefi=* | --zlib-pref=* \ + | --zlib-pre=* | --zlib-pr=* | --zlib-p=*) + irc_zlib_prefix="$ac_optarg" ;; + + -zlib-include | --zlib-include | --zlib-includ | --zlib-inclu \ + | --zlib-incl | --zlib-inc | --zlib-in | --zlib-i) + ac_prev=irc_zlib_include ;; + -zlib-include=* | --zlib-include=* | --zlib-includ=* | --zlib-inclu=* \ + | --zlib-incl=* | --zlib-inc=* | --zlib-in=* | --zlib-i=*) + irc_zlib_include="$ac_optarg" ;; + + -zlib-library | --zlib-library | --zlib-librar | --zlib-libra | --zlib-libr \ + | --zlib-lib | --zlib-li | --zlib-l) + ac_prev=irc_zlib_library ;; + -zlib-library=* | --zlib-library=* | --zlib-librar=* | --zlib-libra=* \ + | --zlib-libr=* | --zlib-lib=* | --zlib-li=* | --zlib-l=*) + irc_zlib_library="$ac_optarg" ;; + + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + + + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=../ircd/ircd.c + +# 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 its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + 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 + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + +ac_aux_dir= +for ac_dir in ../support $srcdir/../support; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in ../support $srcdir/../support" 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + + +# Do some error checking and defaulting for the host and target type. +# The inputs are: +# configure --host=HOST --target=TARGET --build=BUILD NONOPT +# +# The rules are: +# 1. You are not allowed to specify --host, --target, and nonopt at the +# same time. +# 2. Host defaults to nonopt. +# 3. If nonopt is not specified, then host defaults to the current host, +# as determined by config.guess. +# 4. Target and build default to nonopt. +# 5. If nonopt is not specified, then target and build default to host. + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +case $host---$target---$nonopt in +NONE---*---* | *---NONE---* | *---*---NONE) ;; +*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; +esac + + +# Make sure we can run config.sub. +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } +fi + +echo $ac_n "checking host system type""... $ac_c" 1>&6 +echo "configure:609: checking host system type" >&5 + +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$host" 1>&6 + +echo $ac_n "checking target system type""... $ac_c" 1>&6 +echo "configure:630: checking target system type" >&5 + +target_alias=$target +case "$target_alias" in +NONE) + case $nonopt in + NONE) target_alias=$host_alias ;; + *) target_alias=$nonopt ;; + esac ;; +esac + +target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` +target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$target" 1>&6 + +echo $ac_n "checking build system type""... $ac_c" 1>&6 +echo "configure:648: checking build system type" >&5 + +build_alias=$build +case "$build_alias" in +NONE) + case $nonopt in + NONE) build_alias=$host_alias ;; + *) build_alias=$nonopt ;; + esac ;; +esac + +build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` +build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$build" 1>&6 + +test "$host_alias" != "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + + + echo $ac_n "checking cached system tuple""... $ac_c" 1>&6 +echo "configure:673: checking cached system tuple" >&5 + if { test x"${ac_cv_host_system_type+set}" = x"set" && + test x"$ac_cv_host_system_type" != x"$host"; } || + { test x"${ac_cv_build_system_type+set}" = x"set" && + test x"$ac_cv_build_system_type" != x"$build"; } || + { test x"${ac_cv_target_system_type+set}" = x"set" && + test x"$ac_cv_target_system_type" != x"$target"; }; then + echo "$ac_t""different" 1>&6 + + else + echo "$ac_t""ok" 1>&6 + fi + ac_cv_host_system_type="$host" + ac_cv_build_system_type="$build" + ac_cv_target_system_type="$target" + + + +# Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:694: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +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 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:724: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_prog_rejected=no + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_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 $# -gt 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 + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +cat > conftest.$ac_ext << EOF + +#line 783 "configure" +#include "confdefs.h" + +main(){return(0);} +EOF +if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cc_cross=no + else + ac_cv_prog_cc_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cc_works=no +fi +rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +if test $ac_cv_prog_cc_works = no; then + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 +cross_compiling=$ac_cv_prog_cc_cross + +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +echo "configure:819: checking whether we are using GNU C" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <<EOF +#ifdef __GNUC__ + yes; +#endif +EOF +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 +ac_test_CFLAGS="${CFLAGS+set}" +if test $ac_cv_prog_gcc = yes; then + GCC=yes + ac_save_CFLAGS="$CFLAGS" + CFLAGS= + echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:842: checking whether ${CC-cc} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_cc_g=yes +else + ac_cv_prog_cc_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + CFLAGS="-O2" + fi +else + GCC= +fi + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:867: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext <<EOF +#line 882 "configure" +#include "confdefs.h" +#include <assert.h> +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext <<EOF +#line 899 "configure" +#include "confdefs.h" +#include <assert.h> +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext <<EOF +#line 916 "configure" +#include "confdefs.h" +#include <assert.h> +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +for ac_prog in mawk gawk nawk awk +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:951: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AWK="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +AWK="$ac_cv_prog_AWK" +if test -n "$AWK"; then + echo "$ac_t""$AWK" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$AWK" && break +done + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX v4 /usr/bin/installbsd, which does not work if the user is not root +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:993: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + for ac_prog in ginstall installbsd scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + # OSF/1 installbsd also uses dspmsg, but is usable. + : + elif test $ac_prog = installbsd -a "x`(uname -sv) 2>/dev/null`" = "xAIX 4"; then + # AIX v4 installbsd. Does not work if the user is not root. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +for ac_prog in md5sum sum cksum +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1050: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_SUM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$SUM" in + /*) + ac_cv_path_SUM="$SUM" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_SUM="$SUM" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_SUM="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +SUM="$ac_cv_path_SUM" +if test -n "$SUM"; then + echo "$ac_t""$SUM" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$SUM" && break +done +test -n "$SUM" || SUM="true" + +if test $ac_cv_prog_gcc = yes; then + echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 +echo "configure:1088: checking whether ${CC-cc} needs -traditional" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_pattern="Autoconf.*'x'" + cat > conftest.$ac_ext <<EOF +#line 1094 "configure" +#include "confdefs.h" +#include <sgtty.h> +Autoconf TIOCGETP +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "$ac_pattern" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_prog_gcc_traditional=yes +else + rm -rf conftest* + ac_cv_prog_gcc_traditional=no +fi +rm -f conftest* + + + if test $ac_cv_prog_gcc_traditional = no; then + cat > conftest.$ac_ext <<EOF +#line 1112 "configure" +#include "confdefs.h" +#include <termio.h> +Autoconf TCGETA +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "$ac_pattern" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_prog_gcc_traditional=yes +fi +rm -f conftest* + + fi +fi + +echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi + + +echo $ac_n "checking for AIX""... $ac_c" 1>&6 +echo "configure:1135: checking for AIX" >&5 +if eval "test \"`echo '$''{'irc_cv_aix'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "x`(uname) 2>/dev/null`" = "xAIX"; then + irc_cv_aix="`uname -rv`" +else + irc_cv_aix=no +fi + +fi + +if test "$irc_cv_aix" = no; then + echo "$ac_t""no" 1>&6 +else + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define _ALL_SOURCE 1 +EOF + + if test "x$irc_cv_aix" = "x2 3"; then + cat >> confdefs.h <<\EOF +#define AIX_3_2 1 +EOF + + fi + if test x$CC = xcc; then + CFLAGS="$CFLAGS -O3 -qstrict" + fi +fi + +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 +echo "configure:1167: checking for POSIXized ISC" >&5 +if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 +then + echo "$ac_t""yes" 1>&6 + ISC=yes # If later tests want to check for ISC. + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + if test "$GCC" = yes; then + CC="$CC -posix" + else + CC="$CC -Xp" + fi +else + echo "$ac_t""no" 1>&6 + ISC= +fi + +ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 +echo "configure:1189: checking for minix/config.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1194 "configure" +#include "confdefs.h" +#include <minix/config.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + MINIX=yes +else + echo "$ac_t""no" 1>&6 +MINIX= +fi + +if test "$MINIX" = yes; then + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + cat >> confdefs.h <<\EOF +#define _POSIX_1_SOURCE 2 +EOF + + cat >> confdefs.h <<\EOF +#define _MINIX 1 +EOF + +fi + +echo $ac_n "checking for SGI's cc""... $ac_c" 1>&6 +echo "configure:1237: checking for SGI's cc" >&5 +cat > conftest.$ac_ext <<EOF +#line 1239 "configure" +#include "confdefs.h" +#ifdef sgi +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + if test x$CC = xcc; then + echo "$ac_t""yes" 1>&6 + CC="$CC -cckr" +else + echo "$ac_t""no" 1>&6 +fi +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + +echo $ac_n "checking for HPUX's cc""... $ac_c" 1>&6 +echo "configure:1262: checking for HPUX's cc" >&5 +cat > conftest.$ac_ext <<EOF +#line 1264 "configure" +#include "confdefs.h" +#ifdef hpux +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + if test x$CC = xcc; then + echo "$ac_t""yes" 1>&6 + CC="$CC -Ae" +else + echo "$ac_t""no" 1>&6 +fi +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + +echo $ac_n "checking for SunOS""... $ac_c" 1>&6 +echo "configure:1287: checking for SunOS" >&5 +if eval "test \"`echo '$''{'irc_cv_sun'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "x`(uname) 2>/dev/null`" = "xSunOS"; then + irc_cv_sun="`uname -r`" +else + irc_cv_sun=no +fi + +fi + +irc_cv_solaris_2=no +if test "$irc_sun" = no; then + echo "$ac_t""no" 1>&6 +else + if uname -r 2>/dev/null | grep "^5" >/dev/null; then + irc_cv_solaris_2="`uname -r | sed -e \"s/^5/2/g\"`" + echo "$ac_t""yes, Solaris $irc_cv_solaris_2" 1>&6 + cat >> confdefs.h <<\EOF +#define SOLARIS_2 1 +EOF + + if echo "$irc_cv_solaris_2" | egrep "^2\.(0|1|2)" >/dev/null; then + cat >> confdefs.h <<\EOF +#define SOLARIS_2_0_2_1_2_2 1 +EOF + + elif echo "$irc_cv_solaris_2" | grep "^2\.3" >/dev/null; then + cat >> confdefs.h <<\EOF +#define SOLARIS_2_3 1 +EOF + + fi + else + echo "$ac_t""yes, SunOS $irc_cv_sun" 1>&6 + fi +fi + +echo $ac_n "checking for Linux""... $ac_c" 1>&6 +echo "configure:1327: checking for Linux" >&5 +if eval "test \"`echo '$''{'irc_cv_linux'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "x`(uname) 2>/dev/null`" = "xLinux"; then + cat > conftest.$ac_ext <<EOF +#line 1333 "configure" +#include "confdefs.h" +#include <netdb.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $AWK "{if (NR > 1) printf(\" \"); printf(\$0)}" | + egrep "struct( | )+hostent( | )+\{.*const.*h_name" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_linux=bad +else + rm -rf conftest* + irc_cv_linux=good +fi +rm -f conftest* + +else + irc_cv_linux=no +fi + +fi + +if test "$irc_cv_linux" = no; then + echo "$ac_t""no" 1>&6 +elif test "$irc_cv_linux" = good; then + echo "$ac_t""yes, with a good <netdb.h> file" 1>&6 +else + echo "$ac_t""yes, with a bad <netdb.h> file" 1>&6 + cat >> confdefs.h <<\EOF +#define BAD___CONST_NETDB_H 1 +EOF + +fi + +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 +echo "configure:1367: checking for Cygwin environment" >&5 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1372 "configure" +#include "confdefs.h" + +int main() { + +#ifndef __CYGWIN__ +#define __CYGWIN__ __CYGWIN32__ +#endif +return __CYGWIN__; +; return 0; } +EOF +if { (eval echo configure:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_cygwin=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_cygwin=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_cygwin" 1>&6 +CYGWIN= +test "$ac_cv_cygwin" = yes && CYGWIN=yes +if test ! -z "$CYGWIN"; then + if test ! -x /bin/mv || test ! -x /bin/rm || test ! -x /bin/sh; then + { echo "configure: error: mv, rm and/or sh is missing from /bin" 1>&2; exit 1; } + fi + echo "configure: warning: The IRC client and the iauth program do not work under the CYGWIN environment." 1>&2 +fi + + +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +echo "configure:1408: checking for ANSI C header files" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1413 "configure" +#include "confdefs.h" +#include <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <float.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ac_cv_header_stdc=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +cat > conftest.$ac_ext <<EOF +#line 1438 "configure" +#include "confdefs.h" +#include <string.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + rm -rf conftest* + 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 > conftest.$ac_ext <<EOF +#line 1456 "configure" +#include "confdefs.h" +#include <stdlib.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + rm -rf conftest* + 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 > conftest.$ac_ext <<EOF +#line 1477 "configure" +#include "confdefs.h" +#include <ctype.h> +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#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)) exit(2); +exit (0); } + +EOF +if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_header_stdc=no +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_header_stdc" 1>&6 +if test $ac_cv_header_stdc = yes; then + cat >> confdefs.h <<\EOF +#define STDC_HEADERS 1 +EOF + +fi + +echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 +echo "configure:1512: checking for sys/wait.h that is POSIX.1 compatible" >&5 +if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1517 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/wait.h> +#ifndef WEXITSTATUS +#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +#endif +#ifndef WIFEXITED +#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +#endif +int main() { +int s; +wait (&s); +s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; +; return 0; } +EOF +if { (eval echo configure:1533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_sys_wait_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_sys_wait_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 +if test $ac_cv_header_sys_wait_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SYS_WAIT_H 1 +EOF + +fi + +for ac_hdr in stdio.h stdlib.h sys/types.h sys/bitypes.h stddef.h stdarg.h unistd.h ctype.h memory.h ncurses.h curses.h cursesX.h term.h sgtty.h errno.h sys/errno.h sys/syscall.h pwd.h math.h utmp.h fcntl.h signal.h sys/ioctl.h sys/file.h sys/filio.h sys/socket.h sys/stat.h sys/resource.h sys/select.h sys/poll.h stropts.h netdb.h netinet/in.h sys/un.h arpa/inet.h sys/param.h syslog.h sys/syslog.h string.h strings.h sys/time.h time.h sys/times.h netinet/in_systm.h netinfo/ni.h resolv.h arpa/nameser.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1557: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1562 "configure" +#include "confdefs.h" +#include <$ac_hdr> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $ac_tr_hdr 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + +echo $ac_n "checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h""... $ac_c" 1>&6 +echo "configure:1594: checking for sys_errlist declaration in stdio.h, errno.h or sys/errno.h" >&5 +if eval "test \"`echo '$''{'irc_cv_decl_sys_errlist'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1599 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_STDIO_H +#include <stdio.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif +int main() { +char *msg = sys_errlist[0]; +; return 0; } +EOF +if { (eval echo configure:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_sys_errlist=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_cv_decl_sys_errlist=no +fi +rm -f conftest* +fi + +echo "$ac_t""$irc_cv_decl_sys_errlist" 1>&6 +if test $irc_cv_decl_sys_errlist = yes; then + cat >> confdefs.h <<\EOF +#define SYS_ERRLIST_DECLARED 1 +EOF + +fi + +echo $ac_n "checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h""... $ac_c" 1>&6 +echo "configure:1639: checking for sys_nerr declaration in stdio.h, errno.h or sys/errno.h" >&5 +if eval "test \"`echo '$''{'irc_cv_decl_sys_nerr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1644 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_STDIO_H +#include <stdio.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif +int main() { +int num = sys_nerr; +; return 0; } +EOF +if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_sys_nerr=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_cv_decl_sys_nerr=no +fi +rm -f conftest* +fi + +echo "$ac_t""$irc_cv_decl_sys_nerr" 1>&6 +if test $irc_cv_decl_sys_nerr = yes; then + cat >> confdefs.h <<\EOF +#define SYS_NERR_DECLARED 1 +EOF + +fi + +echo $ac_n "checking for errno declaration in errno.h or sys/errno.h""... $ac_c" 1>&6 +echo "configure:1684: checking for errno declaration in errno.h or sys/errno.h" >&5 +if eval "test \"`echo '$''{'irc_cv_decl_errno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1689 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif +int main() { +int num = errno; +; return 0; } +EOF +if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_errno=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_cv_decl_errno=no +fi +rm -f conftest* +fi + +echo "$ac_t""$irc_cv_decl_errno" 1>&6 +if test $irc_cv_decl_errno = yes; then + cat >> confdefs.h <<\EOF +#define ERRNO_DECLARED 1 +EOF + +fi + +echo $ac_n "checking for h_errno declaration in errno.h, sys/errno.h or netdb.h""... $ac_c" 1>&6 +echo "configure:1726: checking for h_errno declaration in errno.h, sys/errno.h or netdb.h" >&5 +if eval "test \"`echo '$''{'irc_cv_decl_h_errno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1731 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif +#if HAVE_NETDB_H +#include <netdb.h> +#endif +int main() { +int num = h_errno; +; return 0; } +EOF +if { (eval echo configure:1750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_decl_h_errno=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_cv_decl_h_errno=no +fi +rm -f conftest* +fi + +echo "$ac_t""$irc_cv_decl_h_errno" 1>&6 +if test $irc_cv_decl_h_errno = yes; then + cat >> confdefs.h <<\EOF +#define H_ERRNO_DECLARED 1 +EOF + +fi + +echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 +echo "configure:1771: checking whether stat file-mode macros are broken" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1776 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/stat.h> + +#if defined(S_ISBLK) && defined(S_IFDIR) +# if S_ISBLK (S_IFDIR) +You lose. +# endif +#endif + +#if defined(S_ISBLK) && defined(S_IFCHR) +# if S_ISBLK (S_IFCHR) +You lose. +# endif +#endif + +#if defined(S_ISLNK) && defined(S_IFREG) +# if S_ISLNK (S_IFREG) +You lose. +# endif +#endif + +#if defined(S_ISSOCK) && defined(S_IFREG) +# if S_ISSOCK (S_IFREG) +You lose. +# endif +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "You lose" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_header_stat_broken=yes +else + rm -rf conftest* + ac_cv_header_stat_broken=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 +if test $ac_cv_header_stat_broken = yes; then + cat >> confdefs.h <<\EOF +#define STAT_MACROS_BROKEN 1 +EOF + +fi + +echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 +echo "configure:1827: checking whether time.h and sys/time.h may both be included" >&5 +if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1832 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/time.h> +#include <time.h> +int main() { +struct tm *tp; +; return 0; } +EOF +if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_time=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_time=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_time" 1>&6 +if test $ac_cv_header_time = yes; then + cat >> confdefs.h <<\EOF +#define TIME_WITH_SYS_TIME 1 +EOF + +fi + +echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 +echo "configure:1862: checking whether struct tm is in sys/time.h or time.h" >&5 +if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1867 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <time.h> +int main() { +struct tm *tp; tp->tm_sec; +; return 0; } +EOF +if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_struct_tm=time.h +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_struct_tm=sys/time.h +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_struct_tm" 1>&6 +if test $ac_cv_struct_tm = sys/time.h; then + cat >> confdefs.h <<\EOF +#define TM_IN_SYS_TIME 1 +EOF + +fi + +echo $ac_n "checking for mode_t""... $ac_c" 1>&6 +echo "configure:1896: checking for mode_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1901 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_mode_t=yes +else + rm -rf conftest* + ac_cv_type_mode_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_mode_t" 1>&6 +if test $ac_cv_type_mode_t = no; then + cat >> confdefs.h <<\EOF +#define mode_t int +EOF + +fi + +echo $ac_n "checking for off_t""... $ac_c" 1>&6 +echo "configure:1929: checking for off_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1934 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_off_t=yes +else + rm -rf conftest* + ac_cv_type_off_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_off_t" 1>&6 +if test $ac_cv_type_off_t = no; then + cat >> confdefs.h <<\EOF +#define off_t long +EOF + +fi + +echo $ac_n "checking for pid_t""... $ac_c" 1>&6 +echo "configure:1962: checking for pid_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1967 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_pid_t=yes +else + rm -rf conftest* + ac_cv_type_pid_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_pid_t" 1>&6 +if test $ac_cv_type_pid_t = no; then + cat >> confdefs.h <<\EOF +#define pid_t int +EOF + +fi + +echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 +echo "configure:1995: checking return type of signal handlers" >&5 +if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2000 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <signal.h> +#ifdef signal +#undef signal +#endif +#ifdef __cplusplus +extern "C" void (*signal (int, void (*)(int)))(int); +#else +void (*signal ()) (); +#endif + +int main() { +int i; +; return 0; } +EOF +if { (eval echo configure:2017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_type_signal=void +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_type_signal=int +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_type_signal" 1>&6 +cat >> confdefs.h <<EOF +#define RETSIGTYPE $ac_cv_type_signal +EOF + + +echo $ac_n "checking for size_t""... $ac_c" 1>&6 +echo "configure:2036: checking for size_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2041 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_size_t=yes +else + rm -rf conftest* + ac_cv_type_size_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_size_t" 1>&6 +if test $ac_cv_type_size_t = no; then + cat >> confdefs.h <<\EOF +#define size_t unsigned +EOF + +fi + +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:2069: checking for uid_t in sys/types.h" >&5 +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2074 "configure" +#include "confdefs.h" +#include <sys/types.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "uid_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_uid_t=yes +else + rm -rf conftest* + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +if test $ac_cv_type_uid_t = no; then + cat >> confdefs.h <<\EOF +#define uid_t int +EOF + + cat >> confdefs.h <<\EOF +#define gid_t int +EOF + +fi + +echo $ac_n "checking whether an union wait * is mandatory in waitpid""... $ac_c" 1>&6 +echo "configure:2103: checking whether an union wait * is mandatory in waitpid" >&5 +if eval "test \"`echo '$''{'irc_cv_type_union_wait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2108 "configure" +#include "confdefs.h" + +#if HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif +int main() { + +int status; +waitpid(-1, &status, 0); + +; return 0; } +EOF +if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_type_union_wait=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + cat > conftest.$ac_ext <<EOF +#line 2129 "configure" +#include "confdefs.h" + +#if HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif +int main() { + +union wait status; +waitpid(-1, &status, 0); + +; return 0; } +EOF +if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + irc_cv_type_union_wait=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_cv_type_union_wait=no +fi +rm -f conftest* +fi +rm -f conftest* +fi + +if test $irc_cv_type_union_wait = yes; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_UNION_WAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for int8_t""... $ac_c" 1>&6 +echo "configure:2167: checking for int8_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_int8_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2172 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_int8_t=yes +else + rm -rf conftest* + ac_cv_type_int8_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_int8_t" 1>&6 +if test $ac_cv_type_int8_t = no; then + cat >> confdefs.h <<\EOF +#define int8_t char +EOF + +fi + +echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6 +echo "configure:2206: checking for u_int8_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_int8_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2211 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_int8_t=yes +else + rm -rf conftest* + ac_cv_type_u_int8_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_int8_t" 1>&6 +if test $ac_cv_type_u_int8_t = no; then + cat >> confdefs.h <<\EOF +#define u_int8_t unsigned char +EOF + +fi + +echo $ac_n "checking for int16_t""... $ac_c" 1>&6 +echo "configure:2245: checking for int16_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_int16_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2250 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_int16_t=yes +else + rm -rf conftest* + ac_cv_type_int16_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_int16_t" 1>&6 +if test $ac_cv_type_int16_t = no; then + cat >> confdefs.h <<\EOF +#define int16_t short +EOF + +fi + +echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6 +echo "configure:2284: checking for u_int16_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2289 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_int16_t=yes +else + rm -rf conftest* + ac_cv_type_u_int16_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6 +if test $ac_cv_type_u_int16_t = no; then + cat >> confdefs.h <<\EOF +#define u_int16_t unsigned short +EOF + +fi + +echo $ac_n "checking for int32_t""... $ac_c" 1>&6 +echo "configure:2323: checking for int32_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_int32_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2328 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_int32_t=yes +else + rm -rf conftest* + ac_cv_type_int32_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_int32_t" 1>&6 +if test $ac_cv_type_int32_t = no; then + cat >> confdefs.h <<\EOF +#define int32_t int +EOF + +fi + +echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6 +echo "configure:2362: checking for u_int32_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2367 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_int32_t=yes +else + rm -rf conftest* + ac_cv_type_u_int32_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6 +if test $ac_cv_type_u_int32_t = no; then + cat >> confdefs.h <<\EOF +#define u_int32_t unsigned int +EOF + +fi + +echo $ac_n "checking for u_char""... $ac_c" 1>&6 +echo "configure:2401: checking for u_char" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2406 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_char[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_char=yes +else + rm -rf conftest* + ac_cv_type_u_char=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_char" 1>&6 +if test $ac_cv_type_u_char = no; then + cat >> confdefs.h <<\EOF +#define u_char unsigned char +EOF + +fi + +echo $ac_n "checking for u_short""... $ac_c" 1>&6 +echo "configure:2440: checking for u_short" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_short'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2445 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_short[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_short=yes +else + rm -rf conftest* + ac_cv_type_u_short=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_short" 1>&6 +if test $ac_cv_type_u_short = no; then + cat >> confdefs.h <<\EOF +#define u_short unsigned short +EOF + +fi + +echo $ac_n "checking for u_int""... $ac_c" 1>&6 +echo "configure:2479: checking for u_int" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2484 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_int[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_int=yes +else + rm -rf conftest* + ac_cv_type_u_int=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_int" 1>&6 +if test $ac_cv_type_u_int = no; then + cat >> confdefs.h <<\EOF +#define u_int unsigned int +EOF + +fi + +echo $ac_n "checking for u_long""... $ac_c" 1>&6 +echo "configure:2518: checking for u_long" >&5 +if eval "test \"`echo '$''{'ac_cv_type_u_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2523 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "u_long[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_u_long=yes +else + rm -rf conftest* + ac_cv_type_u_long=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_u_long" 1>&6 +if test $ac_cv_type_u_long = no; then + cat >> confdefs.h <<\EOF +#define u_long unsigned long +EOF + +fi + + +echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 +echo "configure:2558: checking whether byte ordering is bigendian" >&5 +if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_bigendian=unknown +# See if sys/param.h defines the BYTE_ORDER macro. +cat > conftest.$ac_ext <<EOF +#line 2565 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/param.h> +int main() { + +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN + bogus endian macros +#endif +; return 0; } +EOF +if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # It does; now see whether it defined to BIG_ENDIAN or not. +cat > conftest.$ac_ext <<EOF +#line 2580 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/param.h> +int main() { + +#if BYTE_ORDER != BIG_ENDIAN + not big endian +#endif +; return 0; } +EOF +if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_bigendian=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_bigendian=no +fi +rm -f conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +if test $ac_cv_c_bigendian = unknown; then +if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 2611 "configure" +#include "confdefs.h" +main () { + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long l; + char c[sizeof (long)]; + } u; + u.l = 1; + exit (u.c[sizeof (long) - 1] == 1); +} +EOF +if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_c_bigendian=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_c_bigendian=yes +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_c_bigendian" 1>&6 +if test $ac_cv_c_bigendian = yes; then + cat >> confdefs.h <<\EOF +#define WORDS_BIGENDIAN 1 +EOF + +fi + +echo $ac_n "checking for working const""... $ac_c" 1>&6 +echo "configure:2648: checking for working const" >&5 +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2653 "configure" +#include "confdefs.h" + +int main() { + +/* Ultrix mips cc rejects this. */ +typedef int charset[2]; const charset x; +/* SunOS 4.1.1 cc rejects this. */ +char const *const *ccp; +char **p; +/* 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"; +ccp = &g + (g ? g-g : 0); +/* HPUX 7.0 cc rejects these. */ +++ccp; +p = (char**) ccp; +ccp = (char const *const *) p; +{ /* SCO 3.2v4 cc rejects this. */ + char *t; + char const *s = 0 ? (char *) 0 : (char const *) 0; + + *t++ = 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; +} + +; return 0; } +EOF +if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_const=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_const=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_const" 1>&6 +if test $ac_cv_c_const = no; then + cat >> confdefs.h <<\EOF +#define const +EOF + +fi + + +echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 +echo "configure:2724: checking for crypt in -lcrypt" >&5 +ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lcrypt $LIBS" +cat > conftest.$ac_ext <<EOF +#line 2732 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char crypt(); + +int main() { +crypt() +; return 0; } +EOF +if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lcrypt $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 +echo "configure:2771: checking for socket in -lsocket" >&5 +ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <<EOF +#line 2779 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char socket(); + +int main() { +socket() +; return 0; } +EOF +if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lsocket $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for socket in -lnsl""... $ac_c" 1>&6 +echo "configure:2818: checking for socket in -lnsl" >&5 +ac_lib_var=`echo nsl'_'socket | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 2826 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char socket(); + +int main() { +socket() +; return 0; } +EOF +if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lnsl $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for zlib package""... $ac_c" 1>&6 +echo "configure:2866: checking for zlib package" >&5 +# Check whether --with-zlib or --without-zlib was given. +if test "${with_zlib+set}" = set; then + withval="$with_zlib" + : +fi + +# Check whether --with-zlib or --without-zlib was given. +if test "${with_zlib+set}" = set; then + withval="$with_zlib" + : +fi + +if test "x$with_zlib" = xno; then + no_zlib=yes +else +if eval "test \"`echo '$''{'irc_cv_path_zlib'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + no_zlib=yes +no_zlib_include=yes +no_zlib_library=yes +cat > conftest.$ac_ext <<EOF +#line 2889 "configure" +#include "confdefs.h" +#include <zlib.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:2894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + no_zlib_include= +irc_zlib_include= +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + for irc_dir in "$irc_zlib_include" \ + `test -z "$irc_zlib_prefix" || echo "$irc_zlib_prefix/include"` \ + `echo "$irc_zlib_library" | sed s/lib/include/` \ + /usr/include /usr/local/include /usr/unsupported/include \ + /usr/share/include /usr/local/share/include /include \ + /usr/zlib/include /usr/local/zlib/include \ + /usr/include/zlib /usr/local/include/zlib \ + /usr/unsupported/include/zlib /usr/share/include/zlib \ + /usr/local/share/include/zlib /include/zlib \ + /usr/zlib/include/zlib /usr/local/zlib/include/zlib; \ + do + if test -r "$irc_dir/zlib.h"; then + no_zlib_include= + irc_zlib_include=$irc_dir + break + fi + done + +fi +rm -f conftest* +irc_save_LIBS="$LIBS" +LIBS="-lz $LIBS" +cat > conftest.$ac_ext <<EOF +#line 2928 "configure" +#include "confdefs.h" + +int main() { +inflate() +; return 0; } +EOF +if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + no_zlib_library= +irc_zlib_library= +LIBS="$irc_save_LIBS" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + LIBS="$irc_save_LIBS" +for irc_dir in "$irc_zlib_library" \ + `test -z "$irc_zlib_prefix" || echo "$irc_zlib_prefix/lib"` \ + `echo "$irc_zlib_include" | sed s/include/lib/` \ + /usr/lib /usr/local/lib /usr/unsupported/lib \ + /usr/share/lib /usr/local/share/lib /lib /usr/zlib/lib \ + /usr/local/zlib/lib /usr/lib/zlib /usr/local/lib/zlib \ + /usr/unsupported/lib/zlib /usr/share/lib/zlib \ + /usr/local/share/lib/zlib /lib/zlib \ + /usr/zlib/lib/zlib /usr/local/zlib/lib/zlib; \ +do + for irc_extension in a so sl; do + if test -r $irc_dir/libz.$irc_extension; then + no_zlib_library= + irc_zlib_library=$irc_dir + break 2 + fi + done +done + +fi +rm -f conftest* +if test "x$no_zlib_include" = x && test "x$no_zlib_library" = x; then + no_zlib= +fi +if test "$no_zlib" = yes; then + irc_cv_path_zlib="no_zlib=yes" +else + irc_cv_path_zlib="no_zlib= irc_zlib_include=$irc_zlib_include irc_zlib_library=$irc_zlib_library" +fi +fi + + eval "$irc_cv_path_zlib" +fi +if test "$no_zlib" = yes; then + IRC_ZLIB_LIBRARY= + IRC_ZLIB_INCLUDE= + echo "$ac_t""no" 1>&6 +else + cat >> confdefs.h <<\EOF +#define USE_ZLIB 1 +EOF + + if test "x$irc_zlib_library" = x; then + irc_zlib_library_message="found by the linker" + IRC_ZLIB_LIBRARY=-lz + else + irc_zlib_library_message="in $irc_zlib_library" + IRC_ZLIB_LIBRARY=-L$irc_zlib_library + if test ! "$irc_cv_solaris_2" = no; then + IRC_ZLIB_LIBRARY="$IRC_ZLIB_LIBRARY -R$irc_zlib_library" + fi + IRC_ZLIB_LIBRARY="$IRC_ZLIB_LIBRARY -lz" + fi + if test "x$irc_zlib_include" = x; then + irc_zlib_include_message="found by the compiler" + IRC_ZLIB_INCLUDE= + else + irc_zlib_include_message="in $irc_zlib_include" + IRC_ZLIB_INCLUDE=-I$irc_zlib_include + fi + echo "$ac_t""" 1>&6 + echo "$ac_t"" library $irc_zlib_library_message" 1>&6 + echo "$ac_t"" header $irc_zlib_include_message" 1>&6 +fi + + + +echo $ac_n "checking which curses or termcap library will be used""... $ac_c" 1>&6 +echo "configure:3013: checking which curses or termcap library will be used" >&5 +# Check whether --with-ncurses or --without-ncurses was given. +if test "${with_ncurses+set}" = set; then + withval="$with_ncurses" + : +fi + +# Check whether --with-cursesX or --without-cursesX was given. +if test "${with_cursesX+set}" = set; then + withval="$with_cursesX" + : +fi + +# Check whether --with-curses or --without-curses was given. +if test "${with_curses+set}" = set; then + withval="$with_curses" + : +fi + +# Check whether --with-termcap or --without-termcap was given. +if test "${with_termcap+set}" = set; then + withval="$with_termcap" + : +fi + +if eval "test \"`echo '$''{'irc_cv_curses_termcap'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + irc_save_LIBS="$LIBS" +LIBS="-lncurses $irc_save_LIBS" +cat > conftest.$ac_ext <<EOF +#line 3044 "configure" +#include "confdefs.h" + +int main() { +initscr() +; return 0; } +EOF +if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_ncurses=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_ncurses=no +fi +rm -f conftest* +LIBS="-lcursesX $irc_save_LIBS" +cat > conftest.$ac_ext <<EOF +#line 3063 "configure" +#include "confdefs.h" + +int main() { +initscr() +; return 0; } +EOF +if { (eval echo configure:3070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_cursesX=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_cursesX=no +fi +rm -f conftest* +LIBS="-lcurses $irc_save_LIBS" +cat > conftest.$ac_ext <<EOF +#line 3082 "configure" +#include "confdefs.h" + +int main() { +initscr() +; return 0; } +EOF +if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_curses=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_curses=no +fi +rm -f conftest* +LIBS="-lcurses -ltermcap $irc_save_LIBS" +cat > conftest.$ac_ext <<EOF +#line 3101 "configure" +#include "confdefs.h" + +int main() { +initscr() +; return 0; } +EOF +if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_curses_termcap=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_curses_termcap=no +fi +rm -f conftest* +LIBS="-ltermcap $irc_save_LIBS" +cat > conftest.$ac_ext <<EOF +#line 3120 "configure" +#include "confdefs.h" + +int main() { +tgetent() +; return 0; } +EOF +if { (eval echo configure:3127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + irc_termcap=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + irc_termcap=no +fi +rm -f conftest* +LIBS="$irc_save_LIBS" +irc_cv_curses_termcap="irc_ncurses=$irc_ncurses irc_curses=$irc_curses irc_cursesX=$irc_cursesX irc_curses_termcap=$irc_curses_termcap irc_termcap=$irc_termcap" + +fi + +eval $irc_cv_curses_termcap +if test "x$with_ncurses" = xno; then + irc_ncurses=no +fi +if test "x$with_cursesX" = xno; then + irc_cursesX=no +fi +if test "x$with_curses" = xno; then + irc_curses=no + irc_curses_termcap=no +fi +if test "x$with_termcap" = xno; then + irc_termcap=no +fi +if test $irc_ncurses = yes; then + echo "$ac_t""ncurses" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_NCURSES 1 +EOF + + IRC_CURSES_TERMCAP_LIBRARY="-lncurses" +elif test $irc_cursesX = yes; then + echo "$ac_t""cursesX" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_CURSESX 1 +EOF + + IRC_CURSES_TERMCAP_LIBRARY="-lcursesX" +elif test $irc_curses = yes; then + echo "$ac_t""curses" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_CURSES 1 +EOF + + IRC_CURSES_TERMCAP_LIBRARY="-lcurses" +elif test $irc_curses_termcap = yes; then + echo "$ac_t""curses over termcap" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_CURSES 1 +EOF + + IRC_CURSES_TERMCAP_LIBRARY="-lcurses -ltermcap" +elif test $irc_termcap = yes; then + echo "$ac_t""termcap" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_TERMCAP 1 +EOF + + IRC_CURSES_TERMCAP_LIBRARY="-ltermcap" +else + echo "$ac_t""none" 1>&6 + echo "configure: warning: I can't find either ncurses, cursesX, curses or termcap library." 1>&2 + IRC_CURSES_TERMCAP_LIBRARY= +fi + + + +echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6 +echo "configure:3200: checking whether setpgrp takes no argument" >&5 +if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3208 "configure" +#include "confdefs.h" + +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +/* + * If this system has a BSD-style setpgrp, which takes arguments, exit + * successfully. + */ +main() +{ + if (setpgrp(1,1) == -1) + exit(0); + else + exit(1); +} + +EOF +if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_func_setpgrp_void=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_setpgrp_void=yes +fi +rm -fr conftest* +fi + + +fi + +echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6 +if test $ac_cv_func_setpgrp_void = yes; then + cat >> confdefs.h <<\EOF +#define SETPGRP_VOID 1 +EOF + +fi + +echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 +echo "configure:3252: checking whether setvbuf arguments are reversed" >&5 +if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3260 "configure" +#include "confdefs.h" +#include <stdio.h> +/* If setvbuf has the reversed format, exit 0. */ +main () { + /* This call has the arguments reversed. + A reversed system may check and see that the address of main + is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ + if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) + exit(1); + putc('\r', stdout); + exit(0); /* Non-reversed systems segv here. */ +} +EOF +if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_func_setvbuf_reversed=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_setvbuf_reversed=no +fi +rm -fr conftest* +fi + +rm -f core core.* *.core +fi + +echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 +if test $ac_cv_func_setvbuf_reversed = yes; then + cat >> confdefs.h <<\EOF +#define SETVBUF_REVERSED 1 +EOF + +fi + +ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 +echo "configure:3299: checking for vfork.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 3304 "configure" +#include "confdefs.h" +#include <vfork.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_VFORK_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for working vfork""... $ac_c" 1>&6 +echo "configure:3334: checking for working vfork" >&5 +if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + echo $ac_n "checking for vfork""... $ac_c" 1>&6 +echo "configure:3340: checking for vfork" >&5 +if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 3345 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char vfork(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char vfork(); + +int main() { + +/* 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_vfork) || defined (__stub___vfork) +choke me +#else +vfork(); +#endif + +; return 0; } +EOF +if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_vfork=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_vfork=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +ac_cv_func_vfork_works=$ac_cv_func_vfork +else + cat > conftest.$ac_ext <<EOF +#line 3390 "configure" +#include "confdefs.h" +/* Thanks to Paul Eggert for this test. */ +#include <stdio.h> +#include <sys/types.h> +#include <sys/stat.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#ifdef HAVE_VFORK_H +#include <vfork.h> +#endif +/* On some sparc systems, changes by the child to local and incoming + argument registers are propagated back to the parent. + The compiler is told about this with #include <vfork.h>, + but some compilers (e.g. gcc -O) don't grok <vfork.h>. + Test for this by using a static variable whose address + is put into a register that is clobbered by the vfork. */ +static +#ifdef __cplusplus +sparc_address_test (int arg) +#else +sparc_address_test (arg) int arg; +#endif +{ + static pid_t child; + if (!child) { + child = vfork (); + if (child < 0) { + perror ("vfork"); + _exit(2); + } + if (!child) { + arg = getpid(); + write(-1, "", 0); + _exit (arg); + } + } +} +main() { + pid_t parent = getpid (); + pid_t child; + + sparc_address_test (); + + child = vfork (); + + if (child == 0) { + /* Here is another test for sparc vfork register problems. + This test uses lots of local variables, at least + as many local variables as main has allocated so far + including compiler temporaries. 4 locals are enough for + gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. + A buggy compiler should reuse the register of parent + for one of the local variables, since it will think that + parent can't possibly be used any more in this routine. + Assigning to the local variable will thus munge parent + in the parent process. */ + pid_t + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); + /* Convince the compiler that p..p7 are live; otherwise, it might + use the same hardware register for all 8 local variables. */ + if (p != p1 || p != p2 || p != p3 || p != p4 + || p != p5 || p != p6 || p != p7) + _exit(1); + + /* On some systems (e.g. IRIX 3.3), + vfork doesn't separate parent from child file descriptors. + If the child closes a descriptor before it execs or exits, + this munges the parent's descriptor as well. + Test for this by closing stdout in the child. */ + _exit(close(fileno(stdout)) != 0); + } else { + int status; + struct stat st; + + while (wait(&status) != child) + ; + exit( + /* Was there some problem with vforking? */ + child < 0 + + /* Did the child fail? (This shouldn't happen.) */ + || status + + /* Did the vfork/compiler bug occur? */ + || parent != getpid() + + /* Did the file descriptor bug occur? */ + || fstat(fileno(stdout), &st) != 0 + ); + } +} +EOF +if { (eval echo configure:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_func_vfork_works=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_vfork_works=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 +if test $ac_cv_func_vfork_works = no; then + cat >> confdefs.h <<\EOF +#define vfork fork +EOF + +fi + +for ac_func in setpgrp strchr strrchr memcmp memset memmove memcpy index rindex bcmp bcopy bzero select inet_ntoa inet_aton inet_addr inet_netof getrusage times strerror strtoken strtok sigaction sigset truncate poll vsyslog +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:3510: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 3515 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* 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 +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <<EOF +#define $ac_tr_func 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + +echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 +echo "configure:3563: checking for 8-bit clean memcmp" >&5 +if eval "test \"`echo '$''{'irc_cv_func_memcmp_clean'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + irc_cv_func_memcmp_clean=no +else + cat > conftest.$ac_ext <<EOF +#line 3571 "configure" +#include "confdefs.h" + +main() +{ + char c0 = 0x40, c1 = 0x80, c2 = 0x81; + exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); +} + +EOF +if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + irc_cv_func_memcmp_clean=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + irc_cv_func_memcmp_clean=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$irc_cv_func_memcmp_clean" 1>&6 +if test $irc_cv_func_memcmp_clean = no; then + cat >> confdefs.h <<\EOF +#define MEMCMP_BROKEN 1 +EOF + +fi + +echo $ac_n "checking whether select or poll system call will be used""... $ac_c" 1>&6 +echo "configure:3604: checking whether select or poll system call will be used" >&5 +if eval "test \"`echo '$''{'irc_cv_select_poll'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$irc_cv_sun" != "no" && test "x$irc_cv_solaris_2" = "xno"; then + # we don't like SunOS' poll() function + irc_cv_select_poll=select +else + if test "$ac_cv_func_poll" = "yes"; then + irc_cv_select_poll=poll + else + irc_cv_select_poll=select + fi +fi +fi + + +if test "$irc_cv_select_poll" = "poll"; then + echo "$ac_t""poll" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_POLL 1 +EOF + + if test ! "$irc_cv_linux" = "no"; then + echo "configure: warning: Aiiie.. This is linux. poll() is known to be broken for some releases (2.0.x with libc6?). You may want to edit setup.h to undefine USE_POLL" 1>&2 + fi +else + echo "$ac_t""select" 1>&6 +fi + + +echo $ac_n "checking for signal implementation""... $ac_c" 1>&6 +echo "configure:3636: checking for signal implementation" >&5 +if eval "test \"`echo '$''{'irc_cv_signal_implementation'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test x$ac_cv_func_sigaction = xyes; then + irc_cv_signal_implementation=posix_sigaction +elif test x$ac_cv_func_sigset = xyes; then + irc_cv_signal_implementation=bsd_sigset +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3649 "configure" +#include "confdefs.h" + +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_SIGNAL_H +#include <signal.h> +#endif +#ifndef SIGCHLD +#define SIGCHLD SIGCLD +#endif + +int got = 0; + +RETSIGTYPE hand() +{ + got++; +} + +main() +{ + (void)signal(SIGCHLD, hand); + kill(getpid(), SIGCHLD); + kill(getpid(), SIGCHLD); + if (got < 2) + exit(1); + exit(0); +} + +EOF +if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + irc_cv_signal_implementation=bsd_signal +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + irc_cv_signal_implementation=sysv_signal +fi +rm -fr conftest* +fi + +fi + +fi + +if test $irc_cv_signal_implementation = posix_sigaction; then + echo "$ac_t""using POSIX sigaction" 1>&6 + cat >> confdefs.h <<\EOF +#define POSIX_SIGNALS 1 +EOF + +elif test $irc_cv_signal_implementation = bsd_sigset; then + echo "$ac_t""using BSD sigset" 1>&6 + cat >> confdefs.h <<\EOF +#define BSD_RELIABLE_SIGNALS 1 +EOF + + cat >> confdefs.h <<\EOF +#define signal sigset +EOF + +elif test $irc_cv_signal_implementation = bsd_signal; then + echo "$ac_t""using reliable BSD signal" 1>&6 + cat >> confdefs.h <<\EOF +#define BSD_RELIABLE_SIGNALS 1 +EOF + +else + echo "$ac_t""using unreliable SystemV signal" 1>&6 + cat >> confdefs.h <<\EOF +#define SYSV_UNRELIABLE_SIGNALS 1 +EOF + +fi + +echo $ac_n "checking for a working non-blocking system""... $ac_c" 1>&6 +echo "configure:3727: checking for a working non-blocking system" >&5 +if eval "test \"`echo '$''{'irc_cv_non_blocking_system'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +irc_precode='#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif +#if HAVE_FCNTL_H +#include <fcntl.h> +#endif +#if HAVE_SYS_IOCTL_H +#include <sys/ioctl.h> +#endif +#if HAVE_SYS_FILE_H +#include <sys/file.h> +#endif +#if HAVE_SIGNAL_H +#include <signal.h> +#endif +#if HAVE_NETINET_IN_H +#include <netinet/in.h> +#endif + +RETSIGTYPE alarmed() +{ + exit(1); +} + +main() +{ + char b[12]; + struct sockaddr_in x; + int f, l = sizeof(x); + f = socket(AF_INET, SOCK_DGRAM, 0); + if (f >= 0 && !(fcntl(f, F_SETFL, ' +irc_postcode='))) + { + signal(SIGALRM, alarmed); + alarm(3); + recvfrom(f, b, 12, 0, &x, &l); + alarm(0); + exit(0); + } + exit(1); +}' +irc_code_posix="${irc_precode}O_NONBLOCK${irc_postcode}" +irc_code_bsd="${irc_precode}O_NDELAY${irc_postcode}" +irc_code_sysv="${irc_precode}FIONBIO${irc_postcode}" +if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3783 "configure" +#include "confdefs.h" +$irc_code_posix +EOF +if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + irc_cv_non_blocking_system=posix +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3798 "configure" +#include "confdefs.h" +$irc_code_bsd +EOF +if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + irc_cv_non_blocking_system=bsd +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3813 "configure" +#include "confdefs.h" +$irc_code_sysv +EOF +if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + irc_cv_non_blocking_system=sysv +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + irc_cv_non_blocking_system=none +fi +rm -fr conftest* +fi + +fi +rm -fr conftest* +fi + +fi +rm -fr conftest* +fi + + +fi + +if test $irc_cv_non_blocking_system = posix; then + echo "$ac_t""using POSIX O_NONBLOCK" 1>&6 + cat >> confdefs.h <<\EOF +#define NBLOCK_POSIX 1 +EOF + +elif test $irc_cv_non_blocking_system = bsd; then + echo "$ac_t""using BSD O_NDELAY" 1>&6 + cat >> confdefs.h <<\EOF +#define NBLOCK_BSD 1 +EOF + +elif test $irc_cv_non_blocking_system = sysv; then + echo "$ac_t""using SystemV FIONBIO" 1>&6 + cat >> confdefs.h <<\EOF +#define NBLOCK_SYSV 1 +EOF + +else + echo "$ac_t""using none" 1>&6 + echo "configure: warning: I can't find a working non-blocking system." 1>&2 +fi + +echo $ac_n "checking for working stdarg""... $ac_c" 1>&6 +echo "configure:3864: checking for working stdarg" >&5 +if eval "test \"`echo '$''{'irc_cv_stdarg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 3872 "configure" +#include "confdefs.h" + +#if HAVE_STDIO_H +#include <stdio.h> +#endif +#if HAVE_STDARG_H +#include <stdarg.h> +#endif +#if HAVE_STRING_H +#include <string.h> +#endif + +char buf1[256]; + +int level1(char *data, char *format, va_list ap) +{ + return vsprintf(data, format, ap); +} + +int level2(char *data, int rounds, char *format, va_list ap) +{ + if(!--rounds) + return level1(data, format, ap); + else { + if(rounds == 2) { + va_list ap2 = ap; + char *arg = va_arg(ap2, char *); + strcpy(buf1, arg); + } + return level2(data, rounds, format, ap); + } +} + +int level3(char *data, char *format, va_list ap) +{ + return level2(data, 5, format, ap); +} + +int dotest(int size, char *val, char *data) +{ + if(size != strlen(val)) + return 0; + if(strcmp(data, val)) + return 0; + if(strcmp(buf1, "was")) + return 0; + return 1; +} + +int base(char *val, char *format, ...) +{ + int res = 1; + char data[256]; + + { + va_list ap; + data[0]=0; + va_start(ap, format); + res = dotest(level3(data, format, ap), val, data); + va_end(ap); + } + + { + va_list ap; + data[0]=0; + va_start(ap, format); + res = res && dotest(level3(data, format, ap), val, data); + va_end(ap); + } + + return res; +} + +int main(void) +{ + int res = base("toto was here ! 42", "toto %s here ! %d", "was", 42); + + exit(res ? 0 : 1); +} + +EOF +if { (eval echo configure:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + irc_cv_stdarg=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + irc_cv_stdarg=no +fi +rm -fr conftest* +fi + + +fi + +if test $irc_cv_stdarg = yes; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define USE_STDARG 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for resolver configuration file""... $ac_c" 1>&6 +echo "configure:3980: checking for resolver configuration file" >&5 +if eval "test \"`echo '$''{'irc_cv_path_resconf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -z "$irc_resconf"; then + irc_cv_path_resconf="/etc/resolv.conf"; + else + irc_cv_path_resconf="$irc_resconf"; + fi + +fi + +echo "$ac_t""$irc_cv_path_resconf" 1>&6 +cat >> confdefs.h <<EOF +#define IRC_RESCONF "$irc_cv_path_resconf" +EOF + +if test ! -r "$irc_cv_path_resconf"; then + echo "configure: warning: Unable to read \"$irc_cv_path_resconf\"! Without resolver configuration file, the server won't work." 1>&2 +fi + +# Check whether --enable-ip6 or --disable-ip6 was given. +if test "${enable_ip6+set}" = set; then + enableval="$enable_ip6" + : +fi + +if test "x$enable_ip6" != x; then + cat >> confdefs.h <<\EOF +#define INET6 1 +EOF + + echo $ac_n "checking IPv6 system type""... $ac_c" 1>&6 +echo "configure:4013: checking IPv6 system type" >&5 + if eval "test \"`echo '$''{'irc_cv_v6type'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + if test -d /usr/inet6; then + irc_cv_v6type=linux + else + cat > conftest.$ac_ext <<EOF +#line 4022 "configure" +#include "confdefs.h" +dnl +#include <netinet/in.h> +#ifdef IPV6_INRIA_VERSION +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_v6type=inria +else + rm -rf conftest* + cat > conftest.$ac_ext <<EOF +#line 4037 "configure" +#include "confdefs.h" +#include <netinet/in.h> +#ifdef __KAME__ +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_v6type=kame +else + rm -rf conftest* + cat > conftest.$ac_ext <<EOF +#line 4051 "configure" +#include "confdefs.h" +#include <sys/param.h> +#ifdef _TOSHIBA_INET6 +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_v6type=toshiba +else + rm -rf conftest* + cat > conftest.$ac_ext <<EOF +#line 4065 "configure" +#include "confdefs.h" +#include </usr/local/v6/include/sys/types.h> +#ifdef __V6D__ +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_v6type=v6d +else + rm -rf conftest* + cat > conftest.$ac_ext <<EOF +#line 4079 "configure" +#include "confdefs.h" +#include <sys/param.h> +#ifdef _ZETA_MINAMI_INET6 +yes +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_v6type=zeta +fi +rm -f conftest* + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi +rm -f conftest* + + fi +fi + + echo "$ac_t""$irc_cv_v6type" 1>&6 + + case $irc_cv_v6type in + kame) + LIBS="-L/usr/local/v6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + linux) + LIBS="-L/usr/inet6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/inet6/include" + ;; + toshiba) + LIBS="-L/usr/local/v6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + v6d) + LIBS="-L/usr/local/v6/lib -lv6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + zeta) + LIBS="-L/usr/local/v6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + esac + + echo $ac_n "checking for IPv6 name server addresses in resolv.conf ($irc_cv_path_resconf)""... $ac_c" 1>&6 +echo "configure:4134: checking for IPv6 name server addresses in resolv.conf ($irc_cv_path_resconf)" >&5 + if grep nameserver $irc_cv_path_resconf | grep ':' >/dev/null 2>&1; then + echo "$ac_t""yes" 1>&6 + echo "configure: warning: $irc_cv_path_resconf is not setup correctly." 1>&2 + else + echo "$ac_t""no" 1>&6 + fi +fi + +# Check whether --enable-dsm or --disable-dsm was given. +if test "${enable_dsm+set}" = set; then + enableval="$enable_dsm" + : +fi + +if test "x$enable_dsm" != x; then + cat >> confdefs.h <<\EOF +#define USE_DSM 1 +EOF + + for ac_hdr in dlfcn.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4158: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4163 "configure" +#include "confdefs.h" +#include <$ac_hdr> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $ac_tr_hdr 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + + echo $ac_n "checking for dlclose in -ldl""... $ac_c" 1>&6 +echo "configure:4195: checking for dlclose in -ldl" >&5 +ac_lib_var=`echo dl'_'dlclose | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4203 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlclose(); + +int main() { +dlclose() +; return 0; } +EOF +if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + IRC_DLIB="-ldl" +else + echo "$ac_t""no" 1>&6 +fi + + +fi + +echo $ac_n "checking whether this is an alpha/beta release""... $ac_c" 1>&6 +echo "configure:4238: checking whether this is an alpha/beta release" >&5 +if eval "test \"`echo '$''{'irc_cv_alpha_beta'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4243 "configure" +#include "confdefs.h" +#include "../common/patchlevel.h" +#ifdef PATCHLEVEL +PATCHLEVEL +#else +"0000000000" +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "^\"......00" >/dev/null 2>&1; then + rm -rf conftest* + irc_cv_alpha_beta= +else + rm -rf conftest* + irc_cv_alpha_beta=yes +fi +rm -f conftest* + + +fi + +if test x$irc_cv_alpha_beta = xyes; then + echo "$ac_t""yes" 1>&6 + echo "configure: warning: + +This is a development version of the package, +it is not intended to be used in a production environment. +" 1>&2 +# if test ! "$ac_test_CFLAGS" = set; then +# if test x$ac_cv_prog_cc_g = xyes -o x$GCC = x; then +# CFLAGS="$CFLAGS -g" +# fi +# fi +else + echo "$ac_t""no" 1>&6 +# if test ! "${LDFLAGS+set}" = set; then +# LDFLAGS="-s" +# fi +fi + +if test ! "$ac_test_CFLAGS" = set; then + if test x$ac_cv_prog_cc_g = xyes -o x$GCC = x; then + CFLAGS="$CFLAGS -g" + fi +fi + + +trap '' 1 2 15 +cat > confcache <<\EOF +# 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. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# 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. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +DEFS=-DHAVE_CONFIG_H + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS <<EOF +#! /bin/sh +# Generated automatically by configure. +# Run this file to recreate the current configuration. +# This directory was configured as follows, +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist setup.h:../support/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS <<EOF + +# Protect against being on the right side of a sed subst in config.status. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@logdir@%$logdir%g +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@host@%$host%g +s%@host_alias@%$host_alias%g +s%@host_cpu@%$host_cpu%g +s%@host_vendor@%$host_vendor%g +s%@host_os@%$host_os%g +s%@target@%$target%g +s%@target_alias@%$target_alias%g +s%@target_cpu@%$target_cpu%g +s%@target_vendor@%$target_vendor%g +s%@target_os@%$target_os%g +s%@build@%$build%g +s%@build_alias@%$build_alias%g +s%@build_cpu@%$build_cpu%g +s%@build_vendor@%$build_vendor%g +s%@build_os@%$build_os%g +s%@CC@%$CC%g +s%@CPP@%$CPP%g +s%@AWK@%$AWK%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@SUM@%$SUM%g +s%@IRC_ZLIB_INCLUDE@%$IRC_ZLIB_INCLUDE%g +s%@IRC_ZLIB_LIBRARY@%$IRC_ZLIB_LIBRARY%g +s%@IRC_CURSES_TERMCAP_LIBRARY@%$IRC_CURSES_TERMCAP_LIBRARY%g +s%@IRC_DLIB@%$IRC_DLIB%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <<EOF + +CONFIG_FILES=\${CONFIG_FILES-"Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist"} +EOF +cat >> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' +ac_dC='\3' +ac_dD='%g' +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". +ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='\([ ]\)%\1#\2define\3' +ac_uC=' ' +ac_uD='\4%g' +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_eB='$%\1#\2define\3' +ac_eC=' ' +ac_eD='%g' + +if test "${CONFIG_HEADERS+set}" != set; then +EOF +cat >> $CONFIG_STATUS <<EOF + CONFIG_HEADERS="setup.h:../support/setup.h.in" +EOF +cat >> $CONFIG_STATUS <<\EOF +fi +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + echo creating $ac_file + + rm -f conftest.frag conftest.in conftest.out + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + cat $ac_file_inputs > conftest.in + +EOF + +# Transform confdefs.h into a sed script conftest.vals that substitutes +# the proper values into config.h.in to produce config.h. And first: +# Protect against being on the right side of a sed subst in config.status. +# Protect against being in an unquoted here document in config.status. +rm -f conftest.vals +cat > conftest.hdr <<\EOF +s/[\\&%]/\\&/g +s%[\\$`]%\\&%g +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp +s%ac_d%ac_u%gp +s%ac_u%ac_e%gp +EOF +sed -n -f conftest.hdr confdefs.h > conftest.vals +rm -f conftest.hdr + +# This sed command replaces #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. +cat >> conftest.vals <<\EOF +s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +EOF + +# Break up conftest.vals because some shells have a limit on +# the size of here documents, and old seds have small limits too. + +rm -f conftest.tail +while : +do + ac_lines=`grep -c . conftest.vals` + # grep -c gives empty output for an empty file on some AIX systems. + if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi + # Write a limited-size here document to conftest.frag. + echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + echo 'CEOF + sed -f conftest.frag conftest.in > conftest.out + rm -f conftest.in + mv conftest.out conftest.in +' >> $CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail + rm -f conftest.vals + mv conftest.tail conftest.vals +done +rm -f conftest.vals + +cat >> $CONFIG_STATUS <<\EOF + rm -f conftest.frag conftest.h + echo "/* $ac_file. Generated automatically by configure. */" > conftest.h + cat conftest.in >> conftest.h + rm -f conftest.in + if cmp -s $ac_file conftest.h 2>/dev/null; then + echo "$ac_file is unchanged" + rm -f conftest.h + else + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + fi + rm -f $ac_file + mv conftest.h $ac_file + fi +fi; done + +EOF +cat >> $CONFIG_STATUS <<EOF + +EOF +cat >> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + + +chmod a+x version.c.SH + diff --git a/support/configure.in b/support/configure.in new file mode 100644 index 0000000..3d425e5 --- /dev/null +++ b/support/configure.in @@ -0,0 +1,1519 @@ +dnl configure.in for irc-2.10.1 +dnl Matthew Green (mrg@mame.mu.oz.au), Alain Nissen (Alain.Nissen@ulg.ac.be) +dnl using portions of Avalon's Config and GNU Autoconf 1.12. + +dnl --------- +dnl new tests +dnl --------- + +AC_DEFUN(IRC_PATH_ZLIB, +[AC_MSG_CHECKING(for zlib package) +AC_ARG_WITH(zlib, [ --with-zlib checks for zlib; if found, enables compressed links]) +AC_ARG_WITH(zlib, [ --without-zlib does not check for zlib; disables compressed links]) +if test "x$with_zlib" = xno; then + no_zlib=yes +else +AC_CACHE_VAL(irc_cv_path_zlib, +[no_zlib=yes +no_zlib_include=yes +no_zlib_library=yes +AC_TRY_CPP([#include <zlib.h>], +[no_zlib_include= +irc_zlib_include=], +[for irc_dir in "$irc_zlib_include" \ + `test -z "$irc_zlib_prefix" || echo "$irc_zlib_prefix/include"` \ + `echo "$irc_zlib_library" | sed s/lib/include/` \ + /usr/include /usr/local/include /usr/unsupported/include \ + /usr/share/include /usr/local/share/include /include \ + /usr/zlib/include /usr/local/zlib/include \ + /usr/include/zlib /usr/local/include/zlib \ + /usr/unsupported/include/zlib /usr/share/include/zlib \ + /usr/local/share/include/zlib /include/zlib \ + /usr/zlib/include/zlib /usr/local/zlib/include/zlib; \ + do + if test -r "$irc_dir/zlib.h"; then + no_zlib_include= + irc_zlib_include=$irc_dir + break + fi + done +]) +irc_save_LIBS="$LIBS" +LIBS="-lz $LIBS" +AC_TRY_LINK(, +[inflate()], +[no_zlib_library= +irc_zlib_library= +LIBS="$irc_save_LIBS"], +[LIBS="$irc_save_LIBS" +for irc_dir in "$irc_zlib_library" \ + `test -z "$irc_zlib_prefix" || echo "$irc_zlib_prefix/lib"` \ + `echo "$irc_zlib_include" | sed s/include/lib/` \ + /usr/lib /usr/local/lib /usr/unsupported/lib \ + /usr/share/lib /usr/local/share/lib /lib /usr/zlib/lib \ + /usr/local/zlib/lib /usr/lib/zlib /usr/local/lib/zlib \ + /usr/unsupported/lib/zlib /usr/share/lib/zlib \ + /usr/local/share/lib/zlib /lib/zlib \ + /usr/zlib/lib/zlib /usr/local/zlib/lib/zlib; \ +do + for irc_extension in a so sl; do + if test -r $irc_dir/libz.$irc_extension; then + no_zlib_library= + irc_zlib_library=$irc_dir + break 2 + fi + done +done +]) +if test "x$no_zlib_include" = x && test "x$no_zlib_library" = x; then + no_zlib= +fi +if test "$no_zlib" = yes; then + irc_cv_path_zlib="no_zlib=yes" +else + irc_cv_path_zlib="no_zlib= irc_zlib_include=$irc_zlib_include irc_zlib_library=$irc_zlib_library" +fi]) + eval "$irc_cv_path_zlib" +fi +if test "$no_zlib" = yes; then + IRC_ZLIB_LIBRARY= + IRC_ZLIB_INCLUDE= + AC_MSG_RESULT(no) +else + AC_DEFINE(USE_ZLIB) + if test "x$irc_zlib_library" = x; then + irc_zlib_library_message="found by the linker" + IRC_ZLIB_LIBRARY=-lz + else + irc_zlib_library_message="in $irc_zlib_library" + IRC_ZLIB_LIBRARY=-L$irc_zlib_library + if test ! "$irc_cv_solaris_2" = no; then + IRC_ZLIB_LIBRARY="$IRC_ZLIB_LIBRARY -R$irc_zlib_library" + fi + IRC_ZLIB_LIBRARY="$IRC_ZLIB_LIBRARY -lz" + fi + if test "x$irc_zlib_include" = x; then + irc_zlib_include_message="found by the compiler" + IRC_ZLIB_INCLUDE= + else + irc_zlib_include_message="in $irc_zlib_include" + IRC_ZLIB_INCLUDE=-I$irc_zlib_include + fi + AC_MSG_RESULT([]) + AC_MSG_RESULT([ library $irc_zlib_library_message]) + AC_MSG_RESULT([ header $irc_zlib_include_message]) +fi +AC_SUBST(IRC_ZLIB_INCLUDE) +AC_SUBST(IRC_ZLIB_LIBRARY) +]) + + +AC_DEFUN(IRC_CURSES_TERMCAP, +[AC_MSG_CHECKING([which curses or termcap library will be used]) +AC_ARG_WITH(ncurses, [ --without-ncurses does not look for ncurses library, will not use it]) +AC_ARG_WITH(cursesX, [ --without-cursesX does not look for cursesX library, will not use it]) +AC_ARG_WITH(curses, [ --without-curses does not look for curses library, will not use it]) +AC_ARG_WITH(termcap, [ --without-termcap does not look for termcap library, will not use it]) +AC_CACHE_VAL(irc_cv_curses_termcap, +[irc_save_LIBS="$LIBS" +LIBS="-lncurses $irc_save_LIBS" +AC_TRY_LINK(, +[initscr()], +irc_ncurses=yes, +irc_ncurses=no) +LIBS="-lcursesX $irc_save_LIBS" +AC_TRY_LINK(, +[initscr()], +irc_cursesX=yes, +irc_cursesX=no) +LIBS="-lcurses $irc_save_LIBS" +AC_TRY_LINK(, +[initscr()], +irc_curses=yes, +irc_curses=no) +LIBS="-lcurses -ltermcap $irc_save_LIBS" +AC_TRY_LINK(, +[initscr()], +irc_curses_termcap=yes, +irc_curses_termcap=no) +LIBS="-ltermcap $irc_save_LIBS" +AC_TRY_LINK(, +[tgetent()], +irc_termcap=yes, +irc_termcap=no) +LIBS="$irc_save_LIBS" +irc_cv_curses_termcap="irc_ncurses=$irc_ncurses irc_curses=$irc_curses irc_cursesX=$irc_cursesX irc_curses_termcap=$irc_curses_termcap irc_termcap=$irc_termcap" +]) +eval $irc_cv_curses_termcap +if test "x$with_ncurses" = xno; then + irc_ncurses=no +fi +if test "x$with_cursesX" = xno; then + irc_cursesX=no +fi +if test "x$with_curses" = xno; then + irc_curses=no + irc_curses_termcap=no +fi +if test "x$with_termcap" = xno; then + irc_termcap=no +fi +if test $irc_ncurses = yes; then + AC_MSG_RESULT(ncurses) + AC_DEFINE(USE_NCURSES) + IRC_CURSES_TERMCAP_LIBRARY="-lncurses" +elif test $irc_cursesX = yes; then + AC_MSG_RESULT(cursesX) + AC_DEFINE(USE_CURSESX) + IRC_CURSES_TERMCAP_LIBRARY="-lcursesX" +elif test $irc_curses = yes; then + AC_MSG_RESULT(curses) + AC_DEFINE(USE_CURSES) + IRC_CURSES_TERMCAP_LIBRARY="-lcurses" +elif test $irc_curses_termcap = yes; then + AC_MSG_RESULT(curses over termcap) + AC_DEFINE(USE_CURSES) + IRC_CURSES_TERMCAP_LIBRARY="-lcurses -ltermcap" +elif test $irc_termcap = yes; then + AC_MSG_RESULT(termcap) + AC_DEFINE(USE_TERMCAP) + IRC_CURSES_TERMCAP_LIBRARY="-ltermcap" +else + AC_MSG_RESULT(none) + AC_MSG_WARN([I can't find either ncurses, cursesX, curses or termcap library.]) + IRC_CURSES_TERMCAP_LIBRARY= +fi +AC_SUBST(IRC_CURSES_TERMCAP_LIBRARY) +]) + + +AC_DEFUN(IRC_UNION_WAIT, +[AC_MSG_CHECKING(whether an union wait * is mandatory in waitpid) +AC_CACHE_VAL(irc_cv_type_union_wait, +AC_TRY_COMPILE([ +#if HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif], +[ +int status; +waitpid(-1, &status, 0); +], +irc_cv_type_union_wait=no, +AC_TRY_COMPILE([ +#if HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif], +[ +union wait status; +waitpid(-1, &status, 0); +], +irc_cv_type_union_wait=yes, +irc_cv_type_union_wait=no))) +if test $irc_cv_type_union_wait = yes; then + AC_MSG_RESULT(yes) + AC_DEFINE(USE_UNION_WAIT) +else + AC_MSG_RESULT(no) +fi +]) + + +AC_DEFUN(IRC_SUN, +[AC_MSG_CHECKING([for SunOS]) +AC_CACHE_VAL(irc_cv_sun, +[if test "x`(uname) 2>/dev/null`" = "xSunOS"; then + irc_cv_sun="`uname -r`" +else + irc_cv_sun=no +fi +]) +irc_cv_solaris_2=no +if test "$irc_sun" = no; then + AC_MSG_RESULT(no) +else + if uname -r 2>/dev/null | grep "^5" >/dev/null; then + irc_cv_solaris_2="`uname -r | sed -e \"s/^5/2/g\"`" + AC_MSG_RESULT([yes, Solaris $irc_cv_solaris_2]) + AC_DEFINE(SOLARIS_2) + if echo "$irc_cv_solaris_2" | egrep "^2\.(0|1|2)" >/dev/null; then + AC_DEFINE(SOLARIS_2_0_2_1_2_2) + elif echo "$irc_cv_solaris_2" | grep "^2\.3" >/dev/null; then + AC_DEFINE(SOLARIS_2_3) + fi + else + AC_MSG_RESULT([yes, SunOS $irc_cv_sun]) + fi +fi +]) + + +AC_DEFUN(IRC_DECL_SYS_ERRLIST, +[AC_CACHE_CHECK([for sys_errlist declaration in stdio.h, errno.h or sys/errno.h], + irc_cv_decl_sys_errlist, +[AC_TRY_COMPILE([ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_STDIO_H +#include <stdio.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif], +[char *msg = sys_errlist[0];], + irc_cv_decl_sys_errlist=yes, irc_cv_decl_sys_errlist=no)]) +if test $irc_cv_decl_sys_errlist = yes; then + AC_DEFINE(SYS_ERRLIST_DECLARED) +fi +]) + + +AC_DEFUN(IRC_DECL_SYS_NERR, +[AC_CACHE_CHECK([for sys_nerr declaration in stdio.h, errno.h or sys/errno.h], + irc_cv_decl_sys_nerr, +[AC_TRY_COMPILE([ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_STDIO_H +#include <stdio.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif], +[int num = sys_nerr;], + irc_cv_decl_sys_nerr=yes, irc_cv_decl_sys_nerr=no)]) +if test $irc_cv_decl_sys_nerr = yes; then + AC_DEFINE(SYS_NERR_DECLARED) +fi +]) + + +AC_DEFUN(IRC_DECL_ERRNO, +[AC_CACHE_CHECK([for errno declaration in errno.h or sys/errno.h], + irc_cv_decl_errno, +[AC_TRY_COMPILE([ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif], +[int num = errno;], + irc_cv_decl_errno=yes, irc_cv_decl_errno=no)]) +if test $irc_cv_decl_errno = yes; then + AC_DEFINE(ERRNO_DECLARED) +fi +]) + + +AC_DEFUN(IRC_DECL_H_ERRNO, +[AC_CACHE_CHECK([for h_errno declaration in errno.h, sys/errno.h or netdb.h], + irc_cv_decl_h_errno, +[AC_TRY_COMPILE([ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_ERRNO_H +#include <errno.h> +#endif +#if HAVE_SYS_ERRNO_H +#include <sys/errno.h> +#endif +#if HAVE_NETDB_H +#include <netdb.h> +#endif], +[int num = h_errno;], + irc_cv_decl_h_errno=yes, irc_cv_decl_h_errno=no)]) +if test $irc_cv_decl_h_errno = yes; then + AC_DEFINE(H_ERRNO_DECLARED) +fi +]) + + +AC_DEFUN(IRC_SGI_CC, +[AC_MSG_CHECKING([for SGI's cc]) +AC_EGREP_CPP(yes, +[#ifdef sgi +yes +#endif], +if test x$CC = xcc; then + AC_MSG_RESULT(yes) + CC="$CC -cckr" +else + AC_MSG_RESULT(no) +fi, +AC_MSG_RESULT(no)) +]) + + +AC_DEFUN(IRC_HPUX_CC, +[AC_MSG_CHECKING([for HPUX's cc]) +AC_EGREP_CPP(yes, +[#ifdef hpux +yes +#endif], +if test x$CC = xcc; then + AC_MSG_RESULT(yes) + CC="$CC -Ae" +else + AC_MSG_RESULT(no) +fi, +AC_MSG_RESULT(no)) +]) + + +AC_DEFUN(IRC_ALPHA_BETA, +[AC_MSG_CHECKING(whether this is an alpha/beta release) +AC_CACHE_VAL(irc_cv_alpha_beta, +[AC_EGREP_CPP(^\"......00, +[#include "../common/patchlevel.h" +#ifdef PATCHLEVEL +PATCHLEVEL +#else +"0000000000" +#endif +],irc_cv_alpha_beta=, +irc_cv_alpha_beta=yes) +]) +if test x$irc_cv_alpha_beta = xyes; then + AC_MSG_RESULT(yes) + AC_MSG_WARN([ + +This is a development version of the package, +it is not intended to be used in a production environment. +]) +# if test ! "$ac_test_CFLAGS" = set; then +# if test x$ac_cv_prog_cc_g = xyes -o x$GCC = x; then +# CFLAGS="$CFLAGS -g" +# fi +# fi +else + AC_MSG_RESULT(no) +# if test ! "${LDFLAGS+set}" = set; then +# LDFLAGS="-s" +# fi +fi + +if test ! "$ac_test_CFLAGS" = set; then + if test x$ac_cv_prog_cc_g = xyes -o x$GCC = x; then + CFLAGS="$CFLAGS -g" + fi +fi +]) + + +AC_DEFUN(IRC_SELECT_POLL, +[AC_MSG_CHECKING([whether select or poll system call will be used]) +AC_CACHE_VAL(irc_cv_select_poll, +[if test "$irc_cv_sun" != "no" && test "x$irc_cv_solaris_2" = "xno"; then + # we don't like SunOS' poll() function + irc_cv_select_poll=select +else + if test "$ac_cv_func_poll" = "yes"; then + irc_cv_select_poll=poll + else + irc_cv_select_poll=select + fi +fi]) + +if test "$irc_cv_select_poll" = "poll"; then + AC_MSG_RESULT(poll) + AC_DEFINE(USE_POLL) + if test ! "$irc_cv_linux" = "no"; then + AC_MSG_WARN([Aiiie.. This is linux. poll() is known to be broken for some releases (2.0.x with libc6?). You may want to edit setup.h to undefine USE_POLL]) + fi +else + AC_MSG_RESULT(select) +fi +]) + + +AC_DEFUN(IRC_SIGNAL_IMPLEMENTATION, +[AC_MSG_CHECKING([for signal implementation]) +AC_CACHE_VAL(irc_cv_signal_implementation, +[if test x$ac_cv_func_sigaction = xyes; then + irc_cv_signal_implementation=posix_sigaction +elif test x$ac_cv_func_sigset = xyes; then + irc_cv_signal_implementation=bsd_sigset +else + AC_TRY_RUN([ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_SIGNAL_H +#include <signal.h> +#endif +#ifndef SIGCHLD +#define SIGCHLD SIGCLD +#endif + +int got = 0; + +RETSIGTYPE hand() +{ + got++; +} + +main() +{ + (void)signal(SIGCHLD, hand); + kill(getpid(), SIGCHLD); + kill(getpid(), SIGCHLD); + if (got < 2) + exit(1); + exit(0); +} +], + irc_cv_signal_implementation=bsd_signal, + irc_cv_signal_implementation=sysv_signal) +fi +]) +if test $irc_cv_signal_implementation = posix_sigaction; then + AC_MSG_RESULT([using POSIX sigaction]) + AC_DEFINE(POSIX_SIGNALS) +elif test $irc_cv_signal_implementation = bsd_sigset; then + AC_MSG_RESULT([using BSD sigset]) + AC_DEFINE(BSD_RELIABLE_SIGNALS) + AC_DEFINE(signal, sigset) +elif test $irc_cv_signal_implementation = bsd_signal; then + AC_MSG_RESULT([using reliable BSD signal]) + AC_DEFINE(BSD_RELIABLE_SIGNALS) +else + AC_MSG_RESULT([using unreliable SystemV signal]) + AC_DEFINE(SYSV_UNRELIABLE_SIGNALS) +fi +]) + + +AC_DEFUN(IRC_NON_BLOCKING_SYSTEM, +[AC_MSG_CHECKING([for a working non-blocking system]) +AC_CACHE_VAL(irc_cv_non_blocking_system, +[ +changequote(<<, >>)dnl +irc_precode='#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif +#if HAVE_FCNTL_H +#include <fcntl.h> +#endif +#if HAVE_SYS_IOCTL_H +#include <sys/ioctl.h> +#endif +#if HAVE_SYS_FILE_H +#include <sys/file.h> +#endif +#if HAVE_SIGNAL_H +#include <signal.h> +#endif +#if HAVE_NETINET_IN_H +#include <netinet/in.h> +#endif + +RETSIGTYPE alarmed() +{ + exit(1); +} + +main() +{ + char b[12]; + struct sockaddr_in x; + int f, l = sizeof(x); + f = socket(AF_INET, SOCK_DGRAM, 0); + if (f >= 0 && !(fcntl(f, F_SETFL, ' +irc_postcode='))) + { + signal(SIGALRM, alarmed); + alarm(3); + recvfrom(f, b, 12, 0, &x, &l); + alarm(0); + exit(0); + } + exit(1); +}' +changequote([, ])dnl +irc_code_posix="${irc_precode}O_NONBLOCK${irc_postcode}" +irc_code_bsd="${irc_precode}O_NDELAY${irc_postcode}" +irc_code_sysv="${irc_precode}FIONBIO${irc_postcode}" +AC_TRY_RUN($irc_code_posix, + irc_cv_non_blocking_system=posix, + AC_TRY_RUN($irc_code_bsd, + irc_cv_non_blocking_system=bsd, + AC_TRY_RUN($irc_code_sysv, + irc_cv_non_blocking_system=sysv, + irc_cv_non_blocking_system=none))) +]) +if test $irc_cv_non_blocking_system = posix; then + AC_MSG_RESULT([using POSIX O_NONBLOCK]) + AC_DEFINE(NBLOCK_POSIX) +elif test $irc_cv_non_blocking_system = bsd; then + AC_MSG_RESULT([using BSD O_NDELAY]) + AC_DEFINE(NBLOCK_BSD) +elif test $irc_cv_non_blocking_system = sysv; then + AC_MSG_RESULT([using SystemV FIONBIO]) + AC_DEFINE(NBLOCK_SYSV) +else + AC_MSG_RESULT([using none]) + AC_MSG_WARN([I can't find a working non-blocking system.]) +fi +]) + + +AC_DEFUN(IRC_STDARG, +[AC_MSG_CHECKING([for working stdarg]) +AC_CACHE_VAL(irc_cv_stdarg, +AC_TRY_RUN( +[ +changequote(<<, >>)dnl +#if HAVE_STDIO_H +#include <stdio.h> +#endif +#if HAVE_STDARG_H +#include <stdarg.h> +#endif +#if HAVE_STRING_H +#include <string.h> +#endif + +char buf1[256]; + +int level1(char *data, char *format, va_list ap) +{ + return vsprintf(data, format, ap); +} + +int level2(char *data, int rounds, char *format, va_list ap) +{ + if(!--rounds) + return level1(data, format, ap); + else { + if(rounds == 2) { + va_list ap2 = ap; + char *arg = va_arg(ap2, char *); + strcpy(buf1, arg); + } + return level2(data, rounds, format, ap); + } +} + +int level3(char *data, char *format, va_list ap) +{ + return level2(data, 5, format, ap); +} + +int dotest(int size, char *val, char *data) +{ + if(size != strlen(val)) + return 0; + if(strcmp(data, val)) + return 0; + if(strcmp(buf1, "was")) + return 0; + return 1; +} + +int base(char *val, char *format, ...) +{ + int res = 1; + char data[256]; + + { + va_list ap; + data[0]=0; + va_start(ap, format); + res = dotest(level3(data, format, ap), val, data); + va_end(ap); + } + + { + va_list ap; + data[0]=0; + va_start(ap, format); + res = res && dotest(level3(data, format, ap), val, data); + va_end(ap); + } + + return res; +} + +int main(void) +{ + int res = base("toto was here ! 42", "toto %s here ! %d", "was", 42); + + exit(res ? 0 : 1); +} +changequote([, ])dnl +], +irc_cv_stdarg=yes, +irc_cv_stdarg=no) +) +if test $irc_cv_stdarg = yes; then + AC_MSG_RESULT(yes) + AC_DEFINE(USE_STDARG) +else + AC_MSG_RESULT(no) +fi +]) + + +AC_DEFUN(IRC_PATH_RESCONF, +[AC_MSG_CHECKING([for resolver configuration file]) +AC_CACHE_VAL(irc_cv_path_resconf, +[if test -z "$irc_resconf"; then + irc_cv_path_resconf="/etc/resolv.conf"; + else + irc_cv_path_resconf="$irc_resconf"; + fi +]) +AC_MSG_RESULT($irc_cv_path_resconf) +AC_DEFINE_UNQUOTED(IRC_RESCONF, "$irc_cv_path_resconf") +if test ! -r "$irc_cv_path_resconf"; then + AC_MSG_WARN([Unable to read \"$irc_cv_path_resconf\"! Without resolver configuration file, the server won't work.]) +fi +]) + + +AC_DEFUN(IRC_EGREP_RMLF_CPP, +[cat > conftest.$ac_ext <<EOF +[#]line __oline__ "configure" +#include "confdefs.h" +[$2] +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC | + $AWK "{if (NR > 1) printf(\" \"); printf(\[$]0)}" | +changequote(, )dnl + egrep "$1" >/dev/null 2>&1; then +changequote([, ])dnl + ifelse([$3], , :, [rm -rf conftest* + $3]) +ifelse([$4], , , [else + rm -rf conftest* + $4 +])dnl +fi +rm -f conftest* +]) + + +AC_DEFUN(IRC_LINUX, +[AC_MSG_CHECKING(for Linux) +AC_CACHE_VAL(irc_cv_linux, +[if test "x`(uname) 2>/dev/null`" = "xLinux"; then + IRC_EGREP_RMLF_CPP( + [struct( | )+hostent( | )+\{.*const.*h_name], + [#include <netdb.h>], + irc_cv_linux=bad, + irc_cv_linux=good) +else + irc_cv_linux=no +fi +]) +if test "$irc_cv_linux" = no; then + AC_MSG_RESULT(no) +elif test "$irc_cv_linux" = good; then + AC_MSG_RESULT([yes, with a good <netdb.h> file]) +else + AC_MSG_RESULT([yes, with a bad <netdb.h> file]) + AC_DEFINE(BAD___CONST_NETDB_H) +fi +]) + + +AC_DEFUN(IRC_IP6, +[AC_ARG_ENABLE(ip6, [ --enable-ip6 enables IPv6]) +if test "x$enable_ip6" != x; then + AC_DEFINE(INET6) + dnl be smart about it + AC_MSG_CHECKING([IPv6 system type]) + AC_CACHE_VAL(irc_cv_v6type, [ + if test -d /usr/inet6; then + irc_cv_v6type=linux + else + AC_EGREP_CPP(yes, [dnl +#include <netinet/in.h> +#ifdef IPV6_INRIA_VERSION +yes +#endif], irc_cv_v6type=inria, + AC_EGREP_CPP(yes, [dnl +#include <netinet/in.h> +#ifdef __KAME__ +yes +#endif], irc_cv_v6type=kame, + AC_EGREP_CPP(yes, [dnl +#include <sys/param.h> +#ifdef _TOSHIBA_INET6 +yes +#endif], irc_cv_v6type=toshiba, + AC_EGREP_CPP(yes, [dnl +#include </usr/local/v6/include/sys/types.h> +#ifdef __V6D__ +yes +#endif], irc_cv_v6type=v6d, + AC_EGREP_CPP(yes, [dnl +#include <sys/param.h> +#ifdef _ZETA_MINAMI_INET6 +yes +#endif], irc_cv_v6type=zeta))))) + fi]) + AC_MSG_RESULT($irc_cv_v6type) + + dnl eventually update LIBS + case $irc_cv_v6type in + kame) + LIBS="-L/usr/local/v6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + linux) + LIBS="-L/usr/inet6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/inet6/include" + ;; + toshiba) + LIBS="-L/usr/local/v6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + v6d) + LIBS="-L/usr/local/v6/lib -lv6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + zeta) + LIBS="-L/usr/local/v6/lib -linet6 $LIBS" + CFLAGS="$CFLAGS -I/usr/local/v6/include" + ;; + esac + + dnl /etc/resolv.conf check + AC_MSG_CHECKING(for IPv6 name server addresses in resolv.conf ($irc_cv_path_resconf)) + if grep nameserver $irc_cv_path_resconf | grep ':' >/dev/null 2>&1; then + AC_MSG_RESULT(yes) + AC_MSG_WARN([$irc_cv_path_resconf is not setup correctly.]) + else + AC_MSG_RESULT(no) + fi +fi +]) + + +AC_DEFUN(IRC_SHAREDMODULES, +[AC_ARG_ENABLE(dsm, [ --enable-dsm enables dynamically shared modules for iauth]) +if test "x$enable_dsm" != x; then + AC_DEFINE(USE_DSM) +dnl AC_CONFIG_HEADER(dl.h) + AC_CHECK_HEADERS(dlfcn.h) + AC_CHECK_LIB(dl, dlclose, IRC_DLIB="-ldl") + AC_SUBST(IRC_DLIB) +fi +]) + + +dnl ------------------------------------------------------------------- +dnl modified Autoconf tests; their names begin with IRC_ instead of AC_ +dnl ------------------------------------------------------------------- + +AC_DEFUN(IRC_INIT_PARSE_ARGS, +[ +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +zlib_include=NONE +zlib_library=NONE +dnl Installation directory options. +dnl These are left unexpanded so users can "make install exec_prefix=/foo" +dnl and all the variables that are supposed to be based on exec_prefix +dnl by default will actually change. +dnl Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var/run' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' +logdir='${prefix}/var/log/ircd' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +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 +changequote(, )dnl + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; +changequote([, ])dnl + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -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 ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$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" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_feature: invalid feature name) + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_feature: invalid feature name) + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$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) + # 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 << EOF +changequote(, )dnl +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR[PREFIX/var/run] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --logdir=DIR log files in DIR [PREFIX/var/log/ircd] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --resconf=FILE use FILE as resolver config file [/etc/resolv.conf] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --zlib-prefix=ZDIR zlib installation prefix is ZDIR + --zlib-include=ZIDIR zlib include files are in ZIDIR [ZDIR/include] + --zlib-library=ZLDIR zlib library files are in ZLDIR [ZDIR/lib] +changequote([, ])dnl +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$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" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -logdir | --logdir | --logdi | --logd) + ac_prev=logdir ;; + -logdir=* | --logdir=* | --logdi=* | --logd=*) + logdir="$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) + 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" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -resconf | --resconf | --rescon | --resco | --resc | --res \ + | --re | --r) + ac_prev=irc_resconf ;; + -resconf=* | --resconf=* | --rescon=* | --resco=* | --resc=* \ + | --res=* | --re=* | --r=*) + irc_resconf="$ac_optarg" ;; + + -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 ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version AC_ACVERSION" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_package: invalid package name) + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. +changequote(, )dnl + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then +changequote([, ])dnl + AC_MSG_ERROR($ac_package: invalid package name) + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + -zlib-prefix | --zlib-prefix | --zlib-prefi | --zlib-pref \ + | --zlib-pre | --zlib-pr | --zlib-p) + ac_prev=irc_zlib_prefix ;; + -zlib-prefix=* | --zlib-prefix=* | --zlib-prefi=* | --zlib-pref=* \ + | --zlib-pre=* | --zlib-pr=* | --zlib-p=*) + irc_zlib_prefix="$ac_optarg" ;; + + -zlib-include | --zlib-include | --zlib-includ | --zlib-inclu \ + | --zlib-incl | --zlib-inc | --zlib-in | --zlib-i) + ac_prev=irc_zlib_include ;; + -zlib-include=* | --zlib-include=* | --zlib-includ=* | --zlib-inclu=* \ + | --zlib-incl=* | --zlib-inc=* | --zlib-in=* | --zlib-i=*) + irc_zlib_include="$ac_optarg" ;; + + -zlib-library | --zlib-library | --zlib-librar | --zlib-libra | --zlib-libr \ + | --zlib-lib | --zlib-li | --zlib-l) + ac_prev=irc_zlib_library ;; + -zlib-library=* | --zlib-library=* | --zlib-librar=* | --zlib-libra=* \ + | --zlib-libr=* | --zlib-lib=* | --zlib-li=* | --zlib-l=*) + irc_zlib_library="$ac_optarg" ;; + + -*) AC_MSG_ERROR([$ac_option: invalid option; use --help to show usage]) + ;; + + *) +changequote(, )dnl + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then +changequote([, ])dnl + AC_MSG_WARN($ac_option: invalid host type) + fi + if test "x$nonopt" != xNONE; then + AC_MSG_ERROR(can only configure for one host and one target at a time) + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + AC_MSG_ERROR(missing argument to --`echo $ac_prev | sed 's/_/-/g'`) +fi + +AC_SUBST(logdir) +]) + + +AC_DEFUN(IRC_INIT, +[sinclude(acsite.m4)dnl +sinclude(./aclocal.m4)dnl +AC_REQUIRE([AC_INIT_BINSH])dnl +AC_INIT_NOTICE +AC_DIVERT_POP()dnl to NORMAL +AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl +IRC_INIT_PARSE_ARGS +AC_INIT_PREPARE($1)dnl +AC_DIVERT_POP()dnl to NORMAL +]) + + +AC_DEFUN(IRC_PROG_INSTALL, +[define(AC_PROVIDE_AC_PROG_INSTALL) +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX v4 /usr/bin/installbsd, which does not work if the user is not root +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +AC_MSG_CHECKING(for a BSD compatible install) +if test -z "$INSTALL"; then +AC_CACHE_VAL(ac_cv_path_install, +[ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + for ac_prog in ginstall installbsd scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + # OSF/1 installbsd also uses dspmsg, but is usable. + : + elif test $ac_prog = installbsd -a "x`(uname -sv) 2>/dev/null`" = "xAIX 4"; then + # AIX v4 installbsd. Does not work if the user is not root. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" +])dnl + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +dnl We do special magic for INSTALL instead of AC_SUBST, to get +dnl relative paths right. +AC_MSG_RESULT($INSTALL) + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' +AC_SUBST(INSTALL_PROGRAM)dnl + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +AC_SUBST(INSTALL_DATA)dnl +]) + +AC_DEFUN(IRC_CYGWIN, +[AC_CYGWIN +if test ! -z "$CYGWIN"; then + if test ! -x /bin/mv || test ! -x /bin/rm || test ! -x /bin/sh; then + AC_MSG_ERROR([mv, rm and/or sh is missing from /bin]) + fi + AC_MSG_WARN([The IRC client and the iauth program do not work under the CYGWIN environment.]) +fi +]) + +AC_DEFUN(IRC_PROG_CC, +[define(AC_PROVIDE_AC_PROG_CC) +AC_BEFORE([$0], [AC_PROG_CPP])dnl +AC_CHECK_PROG(CC, gcc, gcc) +if test -z "$CC"; then + AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) + test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) +fi +AC_PROG_CC_WORKS +AC_PROG_CC_GNU +ac_test_CFLAGS="${CFLAGS+set}" +if test $ac_cv_prog_gcc = yes; then + GCC=yes + ac_save_CFLAGS="$CFLAGS" + CFLAGS= + AC_PROG_CC_G + if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" + else + CFLAGS="-O2" + fi +else + GCC= +fi +]) + + +AC_DEFUN(IRC_AIX, +[AC_MSG_CHECKING(for AIX) +AC_CACHE_VAL(irc_cv_aix, +[if test "x`(uname) 2>/dev/null`" = "xAIX"; then + irc_cv_aix="`uname -rv`" +else + irc_cv_aix=no +fi +]) +if test "$irc_cv_aix" = no; then + AC_MSG_RESULT(no) +else + AC_MSG_RESULT(yes) + AC_DEFINE(_ALL_SOURCE) + if test "x$irc_cv_aix" = "x2 3"; then + AC_DEFINE(AIX_3_2) + fi + if test x$CC = xcc; then + CFLAGS="$CFLAGS -O3 -qstrict" + fi +fi +]) + + +AC_DEFUN(IRC_CHECK_TYPE, +[AC_REQUIRE([AC_HEADER_STDC])dnl +AC_MSG_CHECKING(for $1) +AC_CACHE_VAL(ac_cv_type_$1, +[AC_EGREP_CPP(dnl +changequote(<<,>>)dnl +<<$1[^a-zA-Z_0-9]>>dnl +changequote([,]), [ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +#if HAVE_SYS_BITYPES_H +#include <sys/bitypes.h> +#endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl +AC_MSG_RESULT($ac_cv_type_$1) +if test $ac_cv_type_$1 = no; then + AC_DEFINE($1, $2) +fi +]) + + +AC_DEFUN(IRC_FUNC_MEMCMP, +[AC_CACHE_CHECK(for 8-bit clean memcmp, irc_cv_func_memcmp_clean, +[AC_TRY_RUN([ +main() +{ + char c0 = 0x40, c1 = 0x80, c2 = 0x81; + exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); +} +], irc_cv_func_memcmp_clean=yes, irc_cv_func_memcmp_clean=no, +irc_cv_func_memcmp_clean=no)]) +if test $irc_cv_func_memcmp_clean = no; then + AC_DEFINE(MEMCMP_BROKEN) +fi +]) + + +dnl ---- +dnl main +dnl ---- + +AC_REVISION([$Id: configure.in,v 1.46 1999/08/13 17:18:23 kalt Exp $]) +AC_PREREQ(2.13) +IRC_INIT(../ircd/ircd.c) +AC_CONFIG_HEADER(setup.h:../support/setup.h.in) +AC_CONFIG_AUX_DIR(../support) +AC_VALIDATE_CACHED_SYSTEM_TUPLE() + +IRC_PROG_CC +AC_PROG_CPP +AC_PROG_AWK +IRC_PROG_INSTALL +AC_PATH_PROGS(SUM, md5sum sum cksum, true) +AC_PROG_GCC_TRADITIONAL + +IRC_AIX +AC_ISC_POSIX +AC_MINIX +IRC_SGI_CC +IRC_HPUX_CC +IRC_SUN +IRC_LINUX +IRC_CYGWIN + +AC_HEADER_STDC +AC_HEADER_SYS_WAIT +AC_CHECK_HEADERS(stdio.h stdlib.h sys/types.h sys/bitypes.h stddef.h stdarg.h unistd.h ctype.h memory.h ncurses.h curses.h cursesX.h term.h sgtty.h errno.h sys/errno.h sys/syscall.h pwd.h math.h utmp.h fcntl.h signal.h sys/ioctl.h sys/file.h sys/filio.h sys/socket.h sys/stat.h sys/resource.h sys/select.h sys/poll.h stropts.h netdb.h netinet/in.h sys/un.h arpa/inet.h sys/param.h syslog.h sys/syslog.h string.h strings.h sys/time.h time.h sys/times.h netinet/in_systm.h netinfo/ni.h resolv.h arpa/nameser.h) +IRC_DECL_SYS_ERRLIST +IRC_DECL_SYS_NERR +IRC_DECL_ERRNO +IRC_DECL_H_ERRNO +AC_HEADER_STAT +AC_HEADER_TIME +AC_STRUCT_TM +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_PID_T +AC_TYPE_SIGNAL +AC_TYPE_SIZE_T +AC_TYPE_UID_T +IRC_UNION_WAIT +IRC_CHECK_TYPE(int8_t, char) +IRC_CHECK_TYPE(u_int8_t, unsigned char) +IRC_CHECK_TYPE(int16_t, short) +IRC_CHECK_TYPE(u_int16_t, unsigned short) +IRC_CHECK_TYPE(int32_t, int) +IRC_CHECK_TYPE(u_int32_t, unsigned int) +IRC_CHECK_TYPE(u_char, unsigned char) +IRC_CHECK_TYPE(u_short, unsigned short) +IRC_CHECK_TYPE(u_int, unsigned int) +IRC_CHECK_TYPE(u_long, unsigned long) + +AC_C_BIGENDIAN +AC_C_CONST + +AC_CHECK_LIB(crypt, crypt) +AC_CHECK_LIB(socket, socket) +AC_CHECK_LIB(nsl, socket) + +IRC_PATH_ZLIB +IRC_CURSES_TERMCAP + +AC_FUNC_SETPGRP +AC_FUNC_SETVBUF_REVERSED +AC_FUNC_VFORK +AC_CHECK_FUNCS(setpgrp strchr strrchr memcmp memset memmove memcpy index rindex bcmp bcopy bzero select inet_ntoa inet_aton inet_addr inet_netof getrusage times strerror strtoken strtok sigaction sigset truncate poll vsyslog) +dnl --- +dnl Note: additional tests should be performed and used inside the source code +dnl for the following functions: +dnl gethostname gettimeofday lrand48 mkdir socket +dnl --- +IRC_FUNC_MEMCMP +IRC_SELECT_POLL + +IRC_SIGNAL_IMPLEMENTATION +IRC_NON_BLOCKING_SYSTEM +IRC_STDARG +IRC_PATH_RESCONF +IRC_IP6 +IRC_SHAREDMODULES +IRC_ALPHA_BETA + +AC_OUTPUT(Makefile:../support/Makefile.in version.c.SH:../ircd/version.c.SH.in sums:../support/sums.in tkconf.h:../support/tkconf.h.dist) +AC_OUTPUT_COMMANDS(chmod a+x version.c.SH) diff --git a/support/iauth.conf b/support/iauth.conf new file mode 100644 index 0000000..c86c379 --- /dev/null +++ b/support/iauth.conf @@ -0,0 +1,18 @@ +# +# Default iauth configuration file +# +# $Id: iauth.conf,v 1.2 1999/07/04 22:15:43 kalt Exp $ +# + +# If iauth timeouts, then reject user +notimeout +# This makes the IRC server require that iauth performs the authentication +# in order for a new user connection to be accepted +required + +# Perform ident lookups +module rfc931 + +# Check and reject open SOCKS proxies +#module socks +# option = reject,paranoid diff --git a/support/install-sh b/support/install-sh new file mode 100755 index 0000000..5ad826e --- /dev/null +++ b/support/install-sh @@ -0,0 +1,253 @@ +#! /bin/sh +# +# $Id: install-sh,v 1.3 1999/01/18 00:24:17 kalt Exp $ +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +else + true +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d $dst ]; then + instcmd=: + chmodcmd="" + else + instcmd=mkdir + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f $src -o -d $src ] + then + true + else + echo "install: $src does not exist" + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "install: no destination specified" + exit 1 + else + true + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d $dst ] + then + dst="$dst"/`basename $src` + else + true + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' +' +IFS="${IFS-${defaultIFS}}" + +oIFS="${IFS}" +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS="${oIFS}" + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp="${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + true + fi + + pathcomp="${pathcomp}/" +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename $dst` + else + dstfile=`basename $dst $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename $dst` + else + true + fi + +# Make a temp file name in the proper directory. + + dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile + +fi && + + +exit 0 diff --git a/support/mkdirhier b/support/mkdirhier new file mode 100755 index 0000000..244462a --- /dev/null +++ b/support/mkdirhier @@ -0,0 +1,70 @@ +#!/bin/sh +# $XConsortium: mkdirhier.sh,v 1.7 94/03/24 15:46:34 gildea Exp $ +# Courtesy of Paul Eggert +# +# $Id: mkdirhier,v 1.2 1997/07/22 12:40:10 kalt Exp $ +# + +newline=' +' +IFS=$newline + +case ${1--} in +-*) echo >&2 "mkdirhier: usage: mkdirhier directory ..."; exit 1 +esac + +status= + +for directory +do + case $directory in + '') + echo >&2 "mkdirhier: empty directory name" + status=1 + continue;; + *"$newline"*) + echo >&2 "mkdirhier: directory name contains a newline: \`\`$directory''" + status=1 + continue;; + ///*) prefix=/;; # See Posix 2.3 "path". + //*) prefix=//;; + /*) prefix=/;; + -*) prefix=./;; + *) prefix= + esac + + IFS=/ + set x $directory + case $2 in + */*) # IFS parsing is broken + IFS=' ' + set x `echo $directory | tr / ' '` + ;; + esac + IFS=$newline + shift + + for filename + do + path=$prefix$filename + prefix=$path/ + shift + + test -d "$path" || { + paths=$path + for filename + do + if [ "$filename" != "." ]; then + path=$path/$filename + paths=$paths$newline$path + fi + done + + mkdir $paths || status=$? + + break + } + done + done + +exit $status diff --git a/support/setup.h.in b/support/setup.h.in new file mode 100644 index 0000000..a01bbc0 --- /dev/null +++ b/support/setup.h.in @@ -0,0 +1,413 @@ +/* ../support/setup.h.in. Generated automatically from configure.in by autoheader. */ + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +#undef _ALL_SOURCE +#endif + +/* Define to empty if the keyword does not work. */ +#undef const + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef gid_t + +/* Define if system calls automatically restart after interruption + by a signal. */ +#undef HAVE_RESTARTABLE_SYSCALLS + +/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define if you have <vfork.h>. */ +#undef HAVE_VFORK_H + +/* Define if on MINIX. */ +#undef _MINIX + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef mode_t + +/* Define to `long' if <sys/types.h> doesn't define. */ +#undef off_t + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef pid_t + +/* Define if the system does not provide POSIX.1 features except + with this defined. */ +#undef _POSIX_1_SOURCE + +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define as the return type of signal handlers (int or void). */ +#undef RETSIGTYPE + +/* Define if the `setpgrp' function takes no argument. */ +#undef SETPGRP_VOID + +/* Define if the setvbuf function takes the buffering type as its second + argument and the buffer pointer as the third, as on System V + before release 3. */ +#undef SETVBUF_REVERSED + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +#undef size_t + +/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ +#undef STAT_MACROS_BROKEN + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define if you can safely include both <sys/time.h> and <time.h>. */ +#undef TIME_WITH_SYS_TIME + +/* Define if your <sys/time.h> declares struct tm. */ +#undef TM_IN_SYS_TIME + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef uid_t + +/* Define vfork as fork if vfork does not work. */ +#undef vfork + +/* Define if your processor stores words with the most significant + byte first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define if zlib package must be used for compilation/linking. */ +#undef USE_ZLIB + +/* Define if ncurses library must be used for compilation/linking. */ +#undef USE_NCURSES + +/* Define if cursesX library must be used for compilation/linking. */ +#undef USE_CURSESX + +/* Define if curses library must be used for compilation/linking. */ +#undef USE_CURSES + +/* Define if termcap library must be used for compilation/linking. */ +#undef USE_TERMCAP + +/* Define if the second argument of waitpid must be an "union wait *" instead + of an "int *". */ +#undef USE_UNION_WAIT + +/* Define if int8_t, u_int8_t, int16_t, u_int16_t, int32_t, u_int32_t, u_char, + * u_short, u_int, u_long are not known types. */ +#undef int8_t +#undef u_int8_t +#undef int16_t +#undef u_int16_t +#undef int32_t +#undef u_int32_t +#undef u_char +#undef u_short +#undef u_int +#undef u_long + +/* Define if memcmp is not 8-bit clean. */ +#undef MEMCMP_BROKEN + +/* Define if the operating system is AIX 3.2. */ +#undef AIX_3_2 + +/* Define if the operating system is Solaris 2.x (SunOS 5.x). */ +#undef SOLARIS_2 + +/* Define if the operating system is Solaris 2.3 (SunOS 5.3). */ +#undef SOLARIS_2_3 + +/* Define if the operating system is Solaris 2.[0-2] (SunOS 5.[0-2]). */ +#undef SOLARIS_2_0_2_1_2_2 + +/* Define if <netdb.h> contains bad __const usages (Linux). */ +#undef BAD___CONST_NETDB_H + +/* Define if sys_errlist is declared in stdio.h or errno.h. */ +#undef SYS_ERRLIST_DECLARED + +/* Define if sys_nerr is declared in stdio.h or errno.h. */ +#undef SYS_NERR_DECLARED + +/* Define if errno is declared in errno.h. */ +#undef ERRNO_DECLARED + +/* Define if h_errno is declared in errno.h or netdb.h. */ +#undef H_ERRNO_DECLARED + +/* Define if poll(2) must be used instead of select(2). */ +/* Note: some systems (e.g. linux 2.0.x) have a non-working poll() */ +#undef USE_POLL + +/* Define if the system provides POSIX sigaction. */ +#undef POSIX_SIGNALS + +/* Define if the system provides reliable BSD signals through sigset instead + of signal. */ +/* #define signal sigset */ + +/* Define if the system provides reliable BSD signals. */ +#undef BSD_RELIABLE_SIGNALS + +/* Define if the system provides unreliable SystemV signals. */ +#undef SYSV_UNRELIABLE_SIGNALS + +/* Define if the system provides POSIX non-blocking system. */ +#undef NBLOCK_POSIX + +/* Define if the system provides BSD non-blocking system. */ +#undef NBLOCK_BSD + +/* Define if the system provides SystemV non-blocking system. */ +#undef NBLOCK_SYSV + +/* Define is the system can use variable arguments. */ +#undef USE_STDARG + +/* Define as the resolver configuration file. */ +#undef IRC_RESCONF + +/* Define to enable IPv6 support */ +#undef INET6 + +/* Define to enable dynamically shared iauth module support */ +#undef USE_DSM + +/* Define if you have the bcmp function. */ +#undef HAVE_BCMP + +/* Define if you have the bcopy function. */ +#undef HAVE_BCOPY + +/* Define if you have the bzero function. */ +#undef HAVE_BZERO + +/* Define if you have the getrusage function. */ +#undef HAVE_GETRUSAGE + +/* Define if you have the index function. */ +#undef HAVE_INDEX + +/* Define if you have the inet_addr function. */ +#undef HAVE_INET_ADDR + +/* Define if you have the inet_aton function. */ +#undef HAVE_INET_ATON + +/* Define if you have the inet_netof function. */ +#undef HAVE_INET_NETOF + +/* Define if you have the inet_ntoa function. */ +#undef HAVE_INET_NTOA + +/* Define if you have the memcmp function. */ +#undef HAVE_MEMCMP + +/* Define if you have the memcpy function. */ +#undef HAVE_MEMCPY + +/* Define if you have the memmove function. */ +#undef HAVE_MEMMOVE + +/* Define if you have the memset function. */ +#undef HAVE_MEMSET + +/* Define if you have the poll function. */ +#undef HAVE_POLL + +/* Define if you have the rindex function. */ +#undef HAVE_RINDEX + +/* Define if you have the select function. */ +#undef HAVE_SELECT + +/* Define if you have the setpgrp function. */ +#undef HAVE_SETPGRP + +/* Define if you have the sigaction function. */ +#undef HAVE_SIGACTION + +/* Define if you have the sigset function. */ +#undef HAVE_SIGSET + +/* Define if you have the strchr function. */ +#undef HAVE_STRCHR + +/* Define if you have the strerror function. */ +#undef HAVE_STRERROR + +/* Define if you have the strrchr function. */ +#undef HAVE_STRRCHR + +/* Define if you have the strtok function. */ +#undef HAVE_STRTOK + +/* Define if you have the strtoken function. */ +#undef HAVE_STRTOKEN + +/* Define if you have the times function. */ +#undef HAVE_TIMES + +/* Define if you have the truncate function. */ +#undef HAVE_TRUNCATE + +/* Define if you have the vsyslog function. */ +#undef HAVE_VSYSLOG + +/* Define if you have the <arpa/inet.h> header file. */ +#undef HAVE_ARPA_INET_H + +/* Define if you have the <arpa/nameser.h> header file. */ +#undef HAVE_ARPA_NAMESER_H + +/* Define if you have the <ctype.h> header file. */ +#undef HAVE_CTYPE_H + +/* Define if you have the <curses.h> header file. */ +#undef HAVE_CURSES_H + +/* Define if you have the <cursesX.h> header file. */ +#undef HAVE_CURSESX_H + +/* Define if you have the <dlfcn.h> header file. */ +#undef HAVE_DLFCN_H + +/* Define if you have the <errno.h> header file. */ +#undef HAVE_ERRNO_H + +/* Define if you have the <fcntl.h> header file. */ +#undef HAVE_FCNTL_H + +/* Define if you have the <math.h> header file. */ +#undef HAVE_MATH_H + +/* Define if you have the <memory.h> header file. */ +#undef HAVE_MEMORY_H + +/* Define if you have the <ncurses.h> header file. */ +#undef HAVE_NCURSES_H + +/* Define if you have the <netdb.h> header file. */ +#undef HAVE_NETDB_H + +/* Define if you have the <netinet/in.h> header file. */ +#undef HAVE_NETINET_IN_H + +/* Define if you have the <netinet/in_systm.h> header file. */ +#undef HAVE_NETINET_IN_SYSTM_H + +/* Define if you have the <netinfo/ni.h> header file. */ +#undef HAVE_NETINFO_NI_H + +/* Define if you have the <pwd.h> header file. */ +#undef HAVE_PWD_H + +/* Define if you have the <resolv.h> header file. */ +#undef HAVE_RESOLV_H + +/* Define if you have the <sgtty.h> header file. */ +#undef HAVE_SGTTY_H + +/* Define if you have the <signal.h> header file. */ +#undef HAVE_SIGNAL_H + +/* Define if you have the <stdarg.h> header file. */ +#undef HAVE_STDARG_H + +/* Define if you have the <stddef.h> header file. */ +#undef HAVE_STDDEF_H + +/* Define if you have the <stdio.h> header file. */ +#undef HAVE_STDIO_H + +/* Define if you have the <stdlib.h> header file. */ +#undef HAVE_STDLIB_H + +/* Define if you have the <string.h> header file. */ +#undef HAVE_STRING_H + +/* Define if you have the <strings.h> header file. */ +#undef HAVE_STRINGS_H + +/* Define if you have the <stropts.h> header file. */ +#undef HAVE_STROPTS_H + +/* Define if you have the <sys/bitypes.h> header file. */ +#undef HAVE_SYS_BITYPES_H + +/* Define if you have the <sys/errno.h> header file. */ +#undef HAVE_SYS_ERRNO_H + +/* Define if you have the <sys/file.h> header file. */ +#undef HAVE_SYS_FILE_H + +/* Define if you have the <sys/filio.h> header file. */ +#undef HAVE_SYS_FILIO_H + +/* Define if you have the <sys/ioctl.h> header file. */ +#undef HAVE_SYS_IOCTL_H + +/* Define if you have the <sys/param.h> header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define if you have the <sys/poll.h> header file. */ +#undef HAVE_SYS_POLL_H + +/* Define if you have the <sys/resource.h> header file. */ +#undef HAVE_SYS_RESOURCE_H + +/* Define if you have the <sys/select.h> header file. */ +#undef HAVE_SYS_SELECT_H + +/* Define if you have the <sys/socket.h> header file. */ +#undef HAVE_SYS_SOCKET_H + +/* Define if you have the <sys/stat.h> header file. */ +#undef HAVE_SYS_STAT_H + +/* Define if you have the <sys/syscall.h> header file. */ +#undef HAVE_SYS_SYSCALL_H + +/* Define if you have the <sys/syslog.h> header file. */ +#undef HAVE_SYS_SYSLOG_H + +/* Define if you have the <sys/time.h> header file. */ +#undef HAVE_SYS_TIME_H + +/* Define if you have the <sys/times.h> header file. */ +#undef HAVE_SYS_TIMES_H + +/* Define if you have the <sys/types.h> header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define if you have the <sys/un.h> header file. */ +#undef HAVE_SYS_UN_H + +/* Define if you have the <syslog.h> header file. */ +#undef HAVE_SYSLOG_H + +/* Define if you have the <term.h> header file. */ +#undef HAVE_TERM_H + +/* Define if you have the <time.h> header file. */ +#undef HAVE_TIME_H + +/* Define if you have the <unistd.h> header file. */ +#undef HAVE_UNISTD_H + +/* Define if you have the <utmp.h> header file. */ +#undef HAVE_UTMP_H + +/* Define if you have the crypt library (-lcrypt). */ +#undef HAVE_LIBCRYPT + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET diff --git a/support/sums.in b/support/sums.in new file mode 100644 index 0000000..ff7dffc --- /dev/null +++ b/support/sums.in @@ -0,0 +1,39 @@ +#!/bin/sh +# trap "" 1 2 3 13 14 15 21 22 +# $Id: sums.in,v 1.1 1998/04/07 20:44:48 kalt Exp $ +trap "" 1 2 3 13 14 15 +/bin/cp hash.c hash.c.old 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ s_bsd.c) 2>/dev/null` +sed -e "s/SUSER/[${csum}]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ s_user.c) 2>/dev/null` +sed -e "s/SSERV/[${csum}]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ s_serv.c) 2>/dev/null` +sed -e "s/SBSDC/[${csum}]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ channel.c) 2>/dev/null` +sed -e "s/CHANC/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ ircd.c) 2>/dev/null` +sed -e "s/IRCDC/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ s_misc.c) 2>/dev/null` +sed -e "s/SMISC/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`@SUM@ hash.c.old 2>/dev/null` +sed -e "s/HASHC/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`@SUM@ version.c.SH 2>/dev/null` +sed -e "s/VERSH/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +/bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 +csum=`(cd ../ircd; @SUM@ s_bsd.c) 2>/dev/null` +sed -e "s/MAKEF/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +if [ -f /bin/hostid ] ; then + /bin/mv -f hash.c hash.c.temp 1>/dev/null 2>&1 + csum=`hostid 2>/dev/null` + sed -e "s/HOSTID/[$csum]/g" hash.c.temp > hash.c 2>/dev/null +fi +/bin/rm -f hash.c.temp 1>/dev/null 2>&1 + diff --git a/support/tkconf.h.dist b/support/tkconf.h.dist new file mode 100644 index 0000000..3467564 --- /dev/null +++ b/support/tkconf.h.dist @@ -0,0 +1,35 @@ +/* + * TkServ configuration definitions + * + * Make sure the ircd conf files are located in the server_bin_dir + * (see Makefile) and that USE_SERVICES is #define'd if you intend + * to use this service. + * + */ + +/* This will be shown on ADMIN requests */ +#define TKSERV_ADMIN_NAME "Admin: Someone Somewhere" +#define TKSERV_ADMIN_CONTACT "Mail: i.didnt@edit.my.ADMIN.info" +#define TKSERV_ADMIN_OTHER "SomeAdmin@IRCNet" + +/* This is the name of the service which appears on /servlist */ +#define TKSERV_NAME "TkServ" + +/* The description of the service (appears on /SERVLIST) */ +#define TKSERV_DESC "Temporary K-line Service" + +/* The distribution of the server */ +#define TKSERV_DIST "*" + +/* The password for the service (must match the one in the S: line) */ +#define TKSERV_PASSWORD "blah" + +/* Debugging (displays service<->server traffic to standard output) */ +#undef TKSERV_DEBUG + +/* The name of the ircd config file backup (suffix after CPATH) */ +#define TKSERV_IRCD_CONFIG_BAK CPATH".tkserv" + +/* The name of the ircd temp config file (suffix after CPATH) */ +#define TKSERV_IRCD_CONFIG_TMP CPATH".tmp" + |