]> code.citadel.org Git - citadel.git/commitdiff
Removed some dead projects from the trunk.
authorArt Cancro <ajc@citadel.org>
Sun, 4 Nov 2007 03:14:14 +0000 (03:14 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 4 Nov 2007 03:14:14 +0000 (03:14 +0000)
84 files changed:
CVSROOT/checkoutlist [deleted file]
CVSROOT/commitinfo [deleted file]
CVSROOT/config [deleted file]
CVSROOT/cvswrappers [deleted file]
CVSROOT/editinfo [deleted file]
CVSROOT/loginfo [deleted file]
CVSROOT/modules [deleted file]
CVSROOT/notify [deleted file]
CVSROOT/rcsinfo [deleted file]
CVSROOT/taginfo [deleted file]
CVSROOT/verifymsg [deleted file]
CVSROOT/writers [deleted file]
gcit/.cvsignore [deleted file]
gcit/AUTHORS [deleted file]
gcit/ChangeLog [deleted file]
gcit/Makefile.am [deleted file]
gcit/NEWS [deleted file]
gcit/README [deleted file]
gcit/acconfig.h [deleted file]
gcit/bootstrap [deleted file]
gcit/config.guess [deleted file]
gcit/config.sub [deleted file]
gcit/configure.in [deleted file]
gcit/gtk/.cvsignore [deleted file]
gcit/gtk/Makefile.am [deleted file]
gcit/gtk/TODO [deleted file]
gcit/gtk/citclirc [deleted file]
gcit/gtk/gcit.c [deleted file]
gcit/gtk/gcit.gif [deleted file]
gcit/gtk/gcit.h [deleted file]
gcit/gtk/gcitrc [deleted file]
gcit/gtk/gtk_misc.c [deleted file]
gcit/gtk/gtk_misc.h [deleted file]
gcit/gtk/gui.c [deleted file]
gcit/gtk/gui.h [deleted file]
gcit/libcli_cit/.cvsignore [deleted file]
gcit/libcli_cit/Makefile.am [deleted file]
gcit/libcli_cit/citadel_api.c [deleted file]
gcit/libcli_cit/citadel_api.h [deleted file]
gcit/libcli_cit/citadel_util.c [deleted file]
gcit/libcli_cit/citadel_util.h [deleted file]
gcit/libcli_cit/client_api.c [deleted file]
gcit/libcli_cit/client_api.h [deleted file]
gcit/libcli_cit/snprintf.c [deleted file]
gcit/libcli_cit/tcp_trans.c [deleted file]
gcit/libcli_cit/transport.h [deleted file]
libCxClient/AUTHORS [deleted file]
libCxClient/COPYING [deleted file]
libCxClient/ChangeLog [deleted file]
libCxClient/INSTALL [deleted file]
libCxClient/LICENSE [deleted file]
libCxClient/Makefile.am [deleted file]
libCxClient/Makefile.cvs [deleted file]
libCxClient/NEWS [deleted file]
libCxClient/NOTES [deleted file]
libCxClient/README [deleted file]
libCxClient/autoconf.h.in [deleted file]
libCxClient/config.guess [deleted file]
libCxClient/config.sub [deleted file]
libCxClient/configure.in [deleted file]
libCxClient/distfiles/FreeBSD/COMMENT [deleted file]
libCxClient/distfiles/FreeBSD/DETAILS [deleted file]
libCxClient/distfiles/FreeBSD/FILES [deleted file]
libCxClient/install-sh [deleted file]
libCxClient/ltconfig [deleted file]
libCxClient/ltmain.sh [deleted file]
libCxClient/missing [deleted file]
libCxClient/mkinstalldirs [deleted file]
libCxClient/src/CxClient.h [deleted file]
libCxClient/src/Makefile.am [deleted file]
libCxClient/src/chat.c [deleted file]
libCxClient/src/debug.c [deleted file]
libCxClient/src/files.c [deleted file]
libCxClient/src/libtransport.c [deleted file]
libCxClient/src/listmgt.c [deleted file]
libCxClient/src/messages.c [deleted file]
libCxClient/src/misc.c [deleted file]
libCxClient/src/newtest.c [deleted file]
libCxClient/src/rooms.c [deleted file]
libCxClient/src/testlib.c [deleted file]
libCxClient/src/testlib.cpp [deleted file]
libCxClient/src/uname.h [deleted file]
libCxClient/src/users.c [deleted file]
libCxClient/stamp-h.in [deleted file]

diff --git a/CVSROOT/checkoutlist b/CVSROOT/checkoutlist
deleted file mode 100644 (file)
index b04b350..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# The "checkoutlist" file is used to support additional version controlled
-# administrative files in $CVSROOT/CVSROOT, such as template files.
-#
-# The first entry on a line is a filename which will be checked out from
-# the corresponding RCS file in the $CVSROOT/CVSROOT directory.
-# The remainder of the line is an error message to use if the file cannot
-# be checked out.
-#
-# File format:
-#
-#      [<whitespace>]<filename><whitespace><error message><end-of-line>
-#
-# comment lines begin with '#'
diff --git a/CVSROOT/commitinfo b/CVSROOT/commitinfo
deleted file mode 100644 (file)
index b19e7b7..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# The "commitinfo" file is used to control pre-commit checks.
-# The filter on the right is invoked with the repository and a list 
-# of files to check.  A non-zero exit of the filter program will 
-# cause the commit to be aborted.
-#
-# The first entry on a line is a regular expression which is tested
-# against the directory that the change is being committed to, relative
-# to the $CVSROOT.  For the first match that is found, then the remainder
-# of the line is the name of the filter to run.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name "ALL" appears as a regular expression it is always used
-# in addition to the first matching regex or "DEFAULT".
diff --git a/CVSROOT/config b/CVSROOT/config
deleted file mode 100644 (file)
index ef04f8e..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# Set this to "no" if pserver shouldn't check system users/passwords
-SystemAuth=no
-
-# Set `PreservePermissions' to `yes' to save file status information
-# in the repository.
-PreservePermissions=no
-
-# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top
-# level of the new working directory when using the `cvs checkout'
-# command.
-TopLevelAdmin=no
-
-LockDir=/var/lock/cvs
diff --git a/CVSROOT/cvswrappers b/CVSROOT/cvswrappers
deleted file mode 100644 (file)
index 0accaf1..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# This file affects handling of files based on their names.
-#
-# The -t/-f options allow one to treat directories of files
-# as a single file, or to transform a file in other ways on
-# its way in and out of CVS.
-#
-# The -m option specifies whether CVS attempts to merge files.
-#
-# The -k option specifies keyword expansion (e.g. -kb for binary).
-#
-# Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers)
-#
-#  wildcard    [option value][option value]...
-#
-#  where option is one of
-#  -f          from cvs filter         value: path to filter
-#  -t          to cvs filter           value: path to filter
-#  -m          update methodology      value: MERGE or COPY
-#  -k          expansion mode          value: b, o, kkv, &c
-#
-#  and value is a single-quote delimited value.
-# For example:
-#*.gif -k 'b'
diff --git a/CVSROOT/editinfo b/CVSROOT/editinfo
deleted file mode 100644 (file)
index d78886c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-# The "editinfo" file is used to allow verification of logging
-# information.  It works best when a template (as specified in the
-# rcsinfo file) is provided for the logging procedure.  Given a
-# template with locations for, a bug-id number, a list of people who
-# reviewed the code before it can be checked in, and an external
-# process to catalog the differences that were code reviewed, the
-# following test can be applied to the code:
-#
-#   Making sure that the entered bug-id number is correct.
-#   Validating that the code that was reviewed is indeed the code being
-#       checked in (using the bug-id number or a seperate review
-#       number to identify this particular code set.).
-#
-# If any of the above test failed, then the commit would be aborted.
-#
-# Actions such as mailing a copy of the report to each reviewer are
-# better handled by an entry in the loginfo file.
-#
-# One thing that should be noted is the the ALL keyword is not
-# supported.  There can be only one entry that matches a given
-# repository.
diff --git a/CVSROOT/loginfo b/CVSROOT/loginfo
deleted file mode 100644 (file)
index e347609..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# The "loginfo" file controls where "cvs commit" log information
-# is sent.  The first entry on a line is a regular expression which must match
-# the directory that the change is being made to, relative to the
-# $CVSROOT.  If a match is found, then the remainder of the line is a filter
-# program that should expect log information on its standard input.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name ALL appears as a regular expression it is always used
-# in addition to the first matching regex or DEFAULT.
-#
-# You may specify a format string as part of the
-# filter.  The string is composed of a `%' followed
-# by a single format character, or followed by a set of format
-# characters surrounded by `{' and `}' as separators.  The format
-# characters are:
-#
-#   s = file name
-#   V = old version number (pre-checkin)
-#   v = new version number (post-checkin)
-#
-# For example:
-#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
-# or
-#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
-htdocs/*       (cd /usr/local/share/apache/htdocs; /usr/local/bin/cvs update & )
diff --git a/CVSROOT/modules b/CVSROOT/modules
deleted file mode 100644 (file)
index cb9e9ef..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-# Three different line formats are valid:
-#      key     -a    aliases...
-#      key [options] directory
-#      key [options] directory files...
-#
-# Where "options" are composed of:
-#      -i prog         Run "prog" on "cvs commit" from top-level of module.
-#      -o prog         Run "prog" on "cvs checkout" of module.
-#      -e prog         Run "prog" on "cvs export" of module.
-#      -t prog         Run "prog" on "cvs rtag" of module.
-#      -u prog         Run "prog" on "cvs update" of module.
-#      -d dir          Place module in directory "dir" instead of module name.
-#      -l              Top-level directory only -- do not recurse.
-#
-# NOTE:  If you change any of the "Run" options above, you'll have to
-# release and re-checkout any working directories of these modules.
-#
-# And "directory" is a path to a directory relative to $CVSROOT.
-#
-# The "-a" option specifies an alias.  An alias is interpreted as if
-# everything on the right of the "-a" had been typed on the command line.
-#
-# You can encode a module within a module by using the special '&'
-# character to interpose another module into the current module.  This
-# can be useful for creating a module that consists of many directories
-# spread out over the entire source repository.
diff --git a/CVSROOT/notify b/CVSROOT/notify
deleted file mode 100644 (file)
index 34f0bc2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# The "notify" file controls where notifications from watches set by
-# "cvs watch add" or "cvs edit" are sent.  The first entry on a line is
-# a regular expression which is tested against the directory that the
-# change is being made to, relative to the $CVSROOT.  If it matches,
-# then the remainder of the line is a filter program that should contain
-# one occurrence of %s for the user to notify, and information on its
-# standard input.
-#
-# "ALL" or "DEFAULT" can be used in place of the regular expression.
-#
-# For example:
-#ALL mail %s -s "CVS notification"
diff --git a/CVSROOT/rcsinfo b/CVSROOT/rcsinfo
deleted file mode 100644 (file)
index 49e59f4..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# The "rcsinfo" file is used to control templates with which the editor
-# is invoked on commit and import.
-#
-# The first entry on a line is a regular expression which is tested
-# against the directory that the change is being made to, relative to the
-# $CVSROOT.  For the first match that is found, then the remainder of the
-# line is the name of the file that contains the template.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name "ALL" appears as a regular expression it is always used
-# in addition to the first matching regex or "DEFAULT".
diff --git a/CVSROOT/taginfo b/CVSROOT/taginfo
deleted file mode 100644 (file)
index 274a46d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-# The "taginfo" file is used to control pre-tag checks.
-# The filter on the right is invoked with the following arguments:
-#
-# $1 -- tagname
-# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d
-# $3 -- repository
-# $4->  file revision [file revision ...]
-#
-# A non-zero exit of the filter program will cause the tag to be aborted.
-#
-# The first entry on a line is a regular expression which is tested
-# against the directory that the change is being committed to, relative
-# to the $CVSROOT.  For the first match that is found, then the remainder
-# of the line is the name of the filter to run.
-#
-# If the repository name does not match any of the regular expressions in this
-# file, the "DEFAULT" line is used, if it is specified.
-#
-# If the name "ALL" appears as a regular expression it is always used
-# in addition to the first matching regex or "DEFAULT".
diff --git a/CVSROOT/verifymsg b/CVSROOT/verifymsg
deleted file mode 100644 (file)
index 86f747c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-# The "verifymsg" file is used to allow verification of logging
-# information.  It works best when a template (as specified in the
-# rcsinfo file) is provided for the logging procedure.  Given a
-# template with locations for, a bug-id number, a list of people who
-# reviewed the code before it can be checked in, and an external
-# process to catalog the differences that were code reviewed, the
-# following test can be applied to the code:
-#
-#   Making sure that the entered bug-id number is correct.
-#   Validating that the code that was reviewed is indeed the code being
-#       checked in (using the bug-id number or a seperate review
-#       number to identify this particular code set.).
-#
-# If any of the above test failed, then the commit would be aborted.
-#
-# Actions such as mailing a copy of the report to each reviewer are
-# better handled by an entry in the loginfo file.
-#
-# One thing that should be noted is the the ALL keyword is not
-# supported.  There can be only one entry that matches a given
-# repository.
diff --git a/CVSROOT/writers b/CVSROOT/writers
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/gcit/.cvsignore b/gcit/.cvsignore
deleted file mode 100644 (file)
index 6327cfe..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Makefile
-Makefile.in
-aclocal.m4
-config.cache
-config.h
-config.h.in
-config.log
-config.status
-configure
-gcit-*.tar.gz
-libtool
-stamp-h
-stamp-h.in
diff --git a/gcit/AUTHORS b/gcit/AUTHORS
deleted file mode 100644 (file)
index 06d4498..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Brian Costello <btx@calyx.net>
diff --git a/gcit/ChangeLog b/gcit/ChangeLog
deleted file mode 100644 (file)
index 2768743..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-1998-11-05 Nathan Bryant <bryant@cs.usm.maine.edu>
-       * configure.in: different GCC warning flags for OSF/1; remove
-         AM_PATH_GLIB to hopefully fix build problems; check for snprintf
-       * libcli_cit/Makefile.am: link in snprintf.c where needed
-       * gtk/gcit.c, libcli_cit/citadel_api.c, libcli_cit/citadel_util.c,
-         libcli_cit/client_api.c, libcli_cit/tcp_trans.c:
-         portability/warning/ANSI compliance fixes
-
-1998-11-04 Nathan Bryant <bryant@cs.usm.maine.edu>
-       * bootstrap, gtk/Makefile.am: fix 'make dist'
-
-1998-11-03 Nathan Bryant <bryant@cs.usm.maine.edu>
-       * NEWS, README, AUTHORS, ChangeLog: new files; automake complains if
-         these don't exist.
-       * Makefile, gtk/Makefile, libcli_cit/Makefile: removed
-       * Makefile.am, acconfig.h, config.guess, config.sub, configure.in,
-         gtk/Makefile.am, libcli_cit/Makefile.am: added
-       * bootstrap: new script; run this to generate the build environment.
-         I'm using libtool 1.2, automake 1.3b, and autoconf 2.12.
-       * gtk/gcit.c, gtk/gcit.h, gtk/gtk_misc.c, gtk/gtk_misc.h, gtk/gui.h,
-         libcli_cit/citadel_util.c, libcli_cit/citadel_util.h,
-         libcli_cit/client_api.c, libcli_cit/tcp_trans.c: portability
-         enhancements, warning fixes
-       * libcli_cit/tcp_trans.c: implement DNS lookups
-       * gtk/gcit.c: crash fix
diff --git a/gcit/Makefile.am b/gcit/Makefile.am
deleted file mode 100644 (file)
index b11e0ff..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = libcli_cit gtk
diff --git a/gcit/NEWS b/gcit/NEWS
deleted file mode 100644 (file)
index 55c194a..0000000
--- a/gcit/NEWS
+++ /dev/null
@@ -1 +0,0 @@
-Changes since the previous release would go here if there was one.
diff --git a/gcit/README b/gcit/README
deleted file mode 100644 (file)
index 3ab4f1a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-This is gcit, a GTK-based Citadel/UX client currently under development.
diff --git a/gcit/acconfig.h b/gcit/acconfig.h
deleted file mode 100644 (file)
index 0133e9c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-/* The name of the package. Change this in configure.in, not here. */
-#undef PACKAGE
-
-/* Package version. Change in configure.in. */
-#undef VERSION
diff --git a/gcit/bootstrap b/gcit/bootstrap
deleted file mode 100755 (executable)
index 1813130..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-echo libtoolize --automake
-libtoolize --automake
-echo aclocal
-aclocal
-echo autoheader
-autoheader
-echo autoconf
-autoconf
-echo automake --add-missing
-automake --add-missing
diff --git a/gcit/config.guess b/gcit/config.guess
deleted file mode 100755 (executable)
index e31f37d..0000000
+++ /dev/null
@@ -1,905 +0,0 @@
-#! /bin/sh
-# 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*:*:*)
-       # 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 ;;
-    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)
-       if /usr/sbin/lsattr -EHl proc0 | 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/[3478]??:HP-UX:*:*)
-       case "${UNAME_MACHINE}" in
-           9000/31? )            HP_ARCH=m68000 ;;
-           9000/[34]?? )         HP_ARCH=m68k ;;
-           9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
-           9000/8?? )            HP_ARCH=hppa1.0 ;;
-       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 ;;
-    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-cygwin32
-       exit 0 ;;
-    i*:MINGW*:*)
-       echo ${UNAME_MACHINE}-pc-mingw32
-       exit 0 ;;
-    p*:CYGWIN*:*)
-       echo powerpcle-unknown-cygwin32
-       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 ;;
-    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/gcit/config.sub b/gcit/config.sub
deleted file mode 100755 (executable)
index ba9b041..0000000
+++ /dev/null
@@ -1,955 +0,0 @@
-#! /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 \
-               | 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-* \
-             | 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* \
-             | -cygwin32* | -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/gcit/configure.in b/gcit/configure.in
deleted file mode 100644 (file)
index 552d8e0..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-AC_INIT(gtk/gcit.c)
-AM_INIT_AUTOMAKE(gcit, 0.1)
-
-dnl Checks for programs.
-AM_PROG_LIBTOOL
-if test "$GCC" = yes; then
-       case "$host" in
-           alpha*-dec-osf*)
-               XTRA_CFLAGS='-Wall -Wstrict-prototypes -Wno-implicit-int'
-           ;;
-           *)
-               XTRA_CFLAGS='-Wall -Wstrict-prototypes'
-           ;;
-       esac
-fi
-AC_SUBST(XTRA_CFLAGS)
-
-dnl Checks for libraries.
-AM_PATH_GDK_IMLIB
-AM_PATH_GTK
-
-dnl Checks for header files.
-dnl AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h)
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-
-dnl Checks for library functions.
-dnl AC_FUNC_VPRINTF
-dnl AC_CHECK_FUNCS(socket strdup strtol uname)
-AC_REPLACE_FUNCS(snprintf)
-
-AM_CONFIG_HEADER(config.h)
-LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
-AC_SUBST(LTLIBOBJS)
-AC_OUTPUT(libcli_cit/Makefile gtk/Makefile Makefile)
diff --git a/gcit/gtk/.cvsignore b/gcit/gtk/.cvsignore
deleted file mode 100644 (file)
index 8bb20c6..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-.deps
-.libs
-Makefile
-Makefile.in
-gcit
diff --git a/gcit/gtk/Makefile.am b/gcit/gtk/Makefile.am
deleted file mode 100644 (file)
index 6907bc0..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-INCLUDES = -I$(top_srcdir)/libcli_cit $(GDK_IMLIB_CFLAGS)
-Q_PIXMAP_DIR = $(datadir)
-AM_CPPFLAGS = -DDATA_DIR=\"$(datadir)\" -DQ_PIXMAP_DIR=\"$(Q_PIXMAP_DIR)\"
-AM_CFLAGS = $(XTRA_CFLAGS)
-
-bin_PROGRAMS = gcit
-
-gcit_SOURCES = gcit.c gtk_misc.c gui.c gcit.h gtk_misc.h gui.h
-
-gcit_LDADD = $(GDK_IMLIB_LIBS) ../libcli_cit/libcli_cit.la
-
-data_DATA = gcit.gif gcitrc
-
-EXTRA_DIST = gcit.gif gcitrc
diff --git a/gcit/gtk/TODO b/gcit/gtk/TODO
deleted file mode 100644 (file)
index 9986c61..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Things not done with the Gtk client:
-
-- New user login
-- Chat
diff --git a/gcit/gtk/citclirc b/gcit/gtk/citclirc
deleted file mode 100644 (file)
index 8bff77b..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-
-style "text"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "labels"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "clistitems"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "treeitems"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "default"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-widget_class "*GtkText" style "text"
-widget_class "*GtkLabel" style "labels"
-widget_class "*GtkCList" style "clistitems"
-widget_class "*GtkTree" style "treeitems"
-widget_class "*GtkTreeItem" style "treeitems"
-widget_class "*" style "default"
diff --git a/gcit/gtk/gcit.c b/gcit/gtk/gcit.c
deleted file mode 100644 (file)
index 9f4e6b2..0000000
+++ /dev/null
@@ -1,522 +0,0 @@
-/*
-
-gcit
-
-Protected by the red, the black and the green with a key!
-
-Brian Costello
-btx@calyx.net
-
-*/
-
-
-#include "config.h"
-#include <stdio.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <stdlib.h>
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gdk/gdkx.h>
-#include <sys/types.h>
-#include <sys/utsname.h>
-#include <gdk_imlib.h>
-#include "client_api.h"
-#include "citadel_util.h"
-#include "gcit.h"
-#include "gui.h"
-#include "gtk_misc.h"
-
-#ifndef HAVE_SNPRINTF
-int snprintf (char *buf, size_t max, const char *fmt, ...);
-#endif
-
-client_context our_context;
-extern GtkWidget *page_user, *page_msg, *user_e, *pass_e, *host_e;
-extern GtkWidget *user_info_window;
-extern GtkWidget *maintext, *posttext, *chattext, *roomlist, *wholist, *pager;
-extern GtkWidget *mainwindow, *roomwindow, *whowindow;
-extern int changed_goto, next_goto_row;
-char lasthost[256]=DEFAULT_HOST;
-char lastusername[256]={0x00};
-char lastpassword[256]={0x00};
-
-void display_list(GtkWidget *text, citadel_list *list)
-{
-   citadel_list *t_list;
-   
-   for (t_list = list; t_list; t_list = t_list->next)
-      print_gtk(text, "%s\n", t_list->listitem);
-   
-   return;
-}
-
-void display_msg_header(GtkWidget *text, int msgnum, long post_time, char *from, char *rcpt, char *roomname, char *nodeshort)
-{
-   if (roomname[0])
-      print_gtk(text, "\nRoom: %s\n", roomname);
-   print_gtk(text, " Msg: %d\n", msgnum);
-   print_gtk(text, "From: %s", from);
-   if (nodeshort[0])
-      print_gtk(text, " (@%s)\n", nodeshort);
-   else
-      print_gtk(text, "\n");
-   if (rcpt[0])
-      print_gtk(text, "To: %30s\n", rcpt);
-   else
-      print_gtk(text, "\n");
-}
-
-void display_message(GtkWidget *text, citadel_list *list)
-{
-   citadel_list *t_list;
-   int textfound=0;
-   int msgn=0;
-   char path[256];
-   long post_time;
-   char from[256];
-   char rcpt[256];
-   char roomname[256];
-   char nodeshort[128];
-   char nodelong[256];
-   
-   path[0] = '\0';
-   post_time = 0;
-   from[0] = '\0';
-   rcpt[0] = '\0';
-   roomname[0] = '\0';
-   nodeshort[0] = '\0';
-   nodelong[0] = '\0';
-   
-   t_list = list;
-   
-   print_gtk(text, "---------------------------------------------------------------------\n");
-   while ((!textfound) && (t_list))
-   {
-#ifdef DEBUG
-      printf("Looking at listitem - %s\n", t_list->listitem);
-#endif
-      if (!strncasecmp(t_list->listitem, "msgn=", 5))
-         msgn = atol(t_list->listitem);
-      if (!strncasecmp(t_list->listitem, "time=", 5))
-         post_time = atol(t_list->listitem);
-      if (!strncasecmp(t_list->listitem, "path=", 5))
-      {
-         strncpy(path, &t_list->listitem[5], sizeof(path)-1);
-         path[sizeof(path)-1] = '\0';
-      }
-      if (!strncasecmp(t_list->listitem, "from=", 5))
-      {
-         strncpy(from, &t_list->listitem[5], sizeof(from)-1);
-         from[sizeof(from)-1] = '\0';
-      }
-      if (!strncasecmp(t_list->listitem, "rcpt=", 5))
-      {
-         strncpy(rcpt, &t_list->listitem[5], sizeof(rcpt)-1);
-         rcpt[sizeof(rcpt)-1] = '\0';
-      }
-      if (!strncasecmp(t_list->listitem, "room=", 5))
-      {
-         strncpy(roomname, &t_list->listitem[5], sizeof(roomname)-1);
-         roomname[sizeof(roomname)-1] = '\0';
-      }
-      if (!strncasecmp(t_list->listitem, "node=", 5))
-      {
-         strncpy(nodeshort, &t_list->listitem[5], sizeof(nodeshort)-1);
-         nodeshort[sizeof(nodeshort)-1] = '\0';
-      }
-      if (!strncasecmp(t_list->listitem, "hnod=", 5))
-      {
-         strncpy(nodelong, &t_list->listitem[5], sizeof(nodelong)-1);
-         nodelong[sizeof(nodelong)-1] = '\0';
-      }
-      
-      if (!strncasecmp(t_list->listitem, "text", 4))
-      {
-         textfound = 1;
-      }
-      
-      t_list=t_list->next;
-   }
-   
-   display_msg_header(text, msgn,post_time, from, rcpt, roomname, nodeshort);
-   display_list(text, t_list);
-   print_gtk(text, "---------------------------------------------------------------------\n");
-}
-
-void display_room_info(GtkWidget *text, client_context *our_context)
-{
-   print_gtk(text, "\nRoom: %s   -   (%d new of %d messages total)\n", our_context->roomname, our_context->unread_msg, our_context->num_msg);
-   
-}
-
-
-/* 
-
-get a list of the new messages in a room
-
-*/
-
-void get_room_new_msgs(void)
-{
-   if (our_context.room_msgs)
-      free_citadel_list(&our_context.room_msgs);
-   get_new_msg_list(&our_context, &our_context.room_msgs);
-   our_context.next_msg_ptr = our_context.room_msgs;
-}
-
-void do_nextmsg(GtkWidget *wid, GtkWidget *w)
-{
-   citadel_list *msgtext;
-
-   if (our_context.next_msg_ptr)
-   {
-      get_msg_num(&our_context, atoi(our_context.next_msg_ptr->listitem), &msgtext);
-      our_context.next_msg_ptr = our_context.next_msg_ptr->next;
-      display_message((GtkWidget *)maintext, msgtext);
-      free_citadel_list(&msgtext);
-   }
-   else
-      get_room_new_msgs();
-}
-
-/*
-
-Get the list of the last num messages, and display the first.
-
-*/
-
-void get_room_last_n(int num)
-{
-   citadel_list *msgtext;
-
-   if (our_context.room_msgs)
-      free_citadel_list(&our_context.room_msgs);
-   get_last_msg_list(&our_context, num, &our_context.room_msgs);
-   our_context.next_msg_ptr = our_context.room_msgs;
-   
-   if (our_context.next_msg_ptr)
-   {
-      get_msg_num(&our_context, atoi(our_context.next_msg_ptr->listitem), &msgtext);
-      our_context.next_msg_ptr = our_context.next_msg_ptr->next;
-      display_message((GtkWidget *)maintext, msgtext);
-      free_citadel_list(&msgtext);
-   }
-}
-
-void do_goto(GtkWidget *widget, GtkWidget *w)
-{
-   citadel_parms *parms;
-   char *text;
-   
-   parms = newparms();
-
-   if (!changed_goto)
-   {
-      if ((!our_context.new_msg_rooms) || (!our_context.next_new_msg_room))
-      {
-         if (our_context.new_msg_rooms)
-            free_citadel_list(&our_context.new_msg_rooms);
-         get_all_new_rooms(&our_context, &our_context.new_msg_rooms);
-         our_context.next_new_msg_room = our_context.new_msg_rooms;
-         if (!our_context.next_new_msg_room)
-            return;
-         citadel_parseparms(our_context.next_new_msg_room->listitem, parms);
-         if (our_context.new_msg_rooms)
-         {
-            next_goto_row = find_clist_row(roomlist, &text, parms->argv[0]);
-         }
-      }
-      gtk_clist_select_row(GTK_CLIST(roomlist), next_goto_row, 0);
-      our_context.next_new_msg_room = our_context.next_new_msg_room->next;
-      if (our_context.next_new_msg_room)
-      {
-         next_goto_row = find_clist_row(roomlist, &text, parms->argv[0]);
-      }
-   }
-   
-   goto_room(&our_context, our_context.selected_room, NULL, parms, 1);
-   display_room_info((GtkWidget *)maintext, &our_context);
-   
-/*   get_room_last_n(1); */
-   get_room_new_msgs();
-   free_citadel_parms(&parms);
-   changed_goto = 0;
-}
-
-void do_connect(GtkWidget *widget, GtkWidget *text)
-{
-   citadel_parms *parms;
-   citadel_list *list;
-   
-   strcpy(our_context.username, gtk_entry_get_text(GTK_ENTRY(user_e)));
-   strcpy(our_context.password, gtk_entry_get_text(GTK_ENTRY(pass_e)));
-   strcpy(our_context.host, gtk_entry_get_text(GTK_ENTRY(host_e)));
-   strcpy(lastusername, our_context.username);
-   strcpy(lastpassword, our_context.password);
-   strcpy(lasthost, our_context.hostname);
-
-   parms = newparms();
-   
-   if (client_connect(&parms, &our_context, &list) <0)
-   {
-      print_gtk(text, "Unable to connect to host %s port %d.\n", our_context.host, our_context.port);
-      free_citadel_parms(&parms);
-      return;
-   }
-   reset_parms(&parms);
-
-   if (GTK_WIDGET_VISIBLE(user_info_window))
-      gtk_widget_destroy(user_info_window);
-   
-   print_gtk(text, "Connected to %s port %d.\n", our_context.host, our_context.port);
-      
-   display_list(text, list);   /* Display the opening "hello" banner */
-   free_citadel_list(&list); 
-   
-   display_room_info(text, &our_context);
-   display_room_window();
-   printf("@@ done display_room_window()\n");   
-   display_who_window();
-   
-   get_room_new_msgs();
-
-   gtk_timeout_add(30000, (GtkFunction)update_func, NULL);
-   gtk_timeout_add(100000, (GtkFunction)get_room_msgs_func, (int)0);
-}
-
-void do_close(GtkWidget *widget, GtkWidget *w)
-{
-   if (our_context.connected)
-   {
-      print_gtk((GtkWidget *) maintext, "Disconnected from %s port %d.\n", our_context.host, our_context.port);
-      citadel_end_session(&our_context);  
-      if (roomwindow)
-      {
-         gtk_widget_destroy(roomwindow);
-         roomlist = NULL;
-      }
-      if (whowindow)
-      {
-         gtk_widget_destroy(whowindow);
-         wholist = NULL;
-      }
-   }
-   return;
-}
-
-
-void do_posting(GtkWidget *widget, GtkWidget *t)
-{
-   int textlen, i;
-   int fd, c;
-   char ftemplate[256];
-   citadel_parms *parms;
-   
-   parms = newparms();
-   
-   sprintf(ftemplate, "/tmp/citgtk_XXXXXX");
-   fd = mkstemp(ftemplate);
-   
-   textlen = gtk_text_get_length(GTK_TEXT(t));
-   for (i=0; i<textlen; i++)
-   {
-      c = GTK_TEXT_INDEX(GTK_TEXT(t), i);
-      if (write(fd, &c, 1) < 0)
-      {
-         perror("Write temp post data");
-         exit(1);
-      }
-   }
-   close(fd);
-   
-   if (post_file(ftemplate, &our_context, parms)<0)
-      print_gtk((GtkWidget *)maintext, "Unable to post the message!\n");
-   else
-      print_gtk((GtkWidget *)maintext, "Message posted.\n");
-   
-   get_room_new_msgs();
-   free_citadel_parms(&parms);
-   do_post(widget, t);
-   return;
-}
-
-
-void do_send_page(GtkWidget *widget, GtkWidget *w)
-{
-   int ret;
-   char *username=NULL;
-   char *msg=NULL;
-   char *sptr;
-   char newmsg[78];
-   int len, subamt;
-   
-   if (page_user)
-      username = GTK_ENTRY(page_user)->text;
-   if (page_msg)
-      msg = GTK_ENTRY(page_msg)->text;
-      
-   if (msg)
-      len = strlen(msg);
-   else
-      return;
-   
-   sptr = msg;
-   while (len > 0)
-   {
-      if (len > 76)
-         subamt = 76;
-      else
-         subamt = len;
-      
-      strncpy(newmsg, sptr, subamt);
-      sptr += subamt;
-      newmsg[subamt] = '\0';
-      len -= subamt;
-      if ((ret = send_page(&our_context, username, newmsg))<0)
-      {
-         fprintf(stderr, "Unable to send the page.\n");
-         return;
-      }
-      
-   }
-   
-   gtk_entry_set_text(GTK_ENTRY(page_msg), "");
-   
-   return;
-}
-
-void client_quit(GtkWidget *widget, GtkWidget *window)
-{
-   do_close(NULL, NULL);
-   gtk_widget_destroy(window);
-   gtk_main_quit();
-}
-
-
-int create_main_window(void)
-{
-   create_display_window();
-   switchabout();
-   return 1;
-}
-
-int find_clist_row(GtkWidget *list, char **buf, char *searchstr)
-{
-   int finished = -1;   
-   int row;
-   
-   for (row=0;((row<GTK_CLIST(list)->rows) && (finished<0)); row++)
-   {
-      gtk_clist_get_text(GTK_CLIST(list), row, 0, buf);
-      if (!strncmp((*buf), searchstr, strlen(searchstr)))
-      {
-         finished = row;
-      }
-   }
-   
-   return finished;
-}
-
-int get_room_msgs_func(int allrooms)
-{
-   citadel_list *list, *t_list;
-   citadel_parms *parms;
-   char *cptr;
-   int r;
-   
-   if (!our_context.connected)
-      return FALSE;
-
-   parms = newparms();
-   
-   if (allrooms)
-      get_all_rooms(&our_context, &list);
-   else
-      get_all_new_rooms(&our_context, &list);
-   for (t_list = list; t_list; t_list=t_list->next)
-   {
-      if (citadel_parseparms(t_list->listitem, parms)<0)
-      {
-         fprintf(stderr, "Error: Citadel parseparms failed of %s.\n", t_list->listitem);
-         return TRUE;
-      }
-      
-      if ((r=find_clist_row(roomlist, &cptr, parms->argv[0]))<0)
-      {
-         fprintf(stderr, "Error- room %s not found!\n", parms->argv[0]);
-         exit(1);
-      }
-      else
-         printf("Room %s found on row #%d/%d\n", cptr, r, GTK_CLIST(roomlist)->rows);
-
-      reset_parms(&parms);
-      
-      if (goto_room(&our_context, cptr, NULL, parms, 0)<0)
-      {
-         fprintf(stderr, "Error: Unable to go to room %s.\n", t_list->listitem);
-         return TRUE;
-      }
-
-      printf("Making row %d/1 %s\n", r, parms->argv[1]);
-      printf("Making row %d/2 %s\n", r, parms->argv[2]);
-      gtk_clist_set_text(GTK_CLIST(roomlist), r, 1, parms->argv[1]);
-      gtk_clist_set_text(GTK_CLIST(roomlist), r, 2, parms->argv[2]);
-      reset_parms(&parms);
-   }
-   free_citadel_list(&list);
-   reset_parms(&parms);
-
-   if (*our_context.selected_room &&
-       goto_room(&our_context, our_context.selected_room, NULL, parms, 0)<0)
-   {
-      fprintf(stderr, "Error: Unable to go to room %s.\n",
-             our_context.selected_room);
-      return TRUE;
-   }
-   free_citadel_parms(&parms);
-   return TRUE;
-}
-
-int update_func(void)
-{
-   citadel_list *list;
-   
-   if (!our_context.connected)
-      return FALSE;
-
-   if (check_page(&our_context, &list)>0)
-   {
-      print_gtk(maintext, "Received page:\n");
-      display_list(maintext, list);
-      free_citadel_list(&list);
-   }
-   
-   return TRUE;
-      
-      
-}
-
-int main(int argc, char **argv)
-{
-   char path[512];
-   gtk_set_locale();
-   gtk_init(&argc, &argv);
-   gdk_imlib_init();
-   
-   snprintf(path, sizeof(path)-1, "%s/gcitrc", DATA_DIR);
-   path[sizeof(path)-1] = '\0';
-   gtk_rc_parse(path);
-   
-   memset(&our_context, 0, sizeof(our_context));
-   
-   create_main_window();
-   
-   gtk_main();
-   
-   return(0);
-}
-
-
diff --git a/gcit/gtk/gcit.gif b/gcit/gtk/gcit.gif
deleted file mode 100644 (file)
index dc603f0..0000000
Binary files a/gcit/gtk/gcit.gif and /dev/null differ
diff --git a/gcit/gtk/gcit.h b/gcit/gtk/gcit.h
deleted file mode 100644 (file)
index e968de7..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
-
-gcit.h
-the header file for the Gtk+ client frontend
-btx@calyx.net
-
-*/
-
-
-/* User definables */
-
-#define DEFAULT_HOST "127.0.0.1"
-#define DEFAULT_HOST_REVEAL "shaq.eop.gov"
-#define DEFAULT_ROOM_REVEAL "secret room"
-
-/* Not user definables */
-#define CITADEL_VERSION "Gtk Citadel Client v" VERSION
-#define CITADEL_GTK_CLIID      1
-#define CITADEL_GTK_VERNO      1
-
-void display_room_window(void);
-void display_who_window(void);
-void do_post(GtkWidget *, GtkWidget *);
-void create_pager(GtkWidget *, GtkWidget *);
-int update_func(void);
-void do_connect(GtkWidget *, GtkWidget *);
-void get_room_new_msgs(void);
-int get_room_msgs_func(int);
-void do_goto(GtkWidget *, GtkWidget *);
-void do_posting(GtkWidget *, GtkWidget *);
-void do_send_page(GtkWidget *, GtkWidget *);
-void do_nextmsg(GtkWidget *, GtkWidget *);
-void do_close(GtkWidget *, GtkWidget *);
-void client_quit(GtkWidget *, GtkWidget *);
-int find_clist_row(GtkWidget *, char **, char *);
diff --git a/gcit/gtk/gcitrc b/gcit/gtk/gcitrc
deleted file mode 100644 (file)
index 8bff77b..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-
-style "text"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "labels"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "clistitems"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "treeitems"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-style "default"
-{
-   font = "-misc-fixed-medium-r-normal--10-100-*-*-*-*-*-*"
-}
-
-widget_class "*GtkText" style "text"
-widget_class "*GtkLabel" style "labels"
-widget_class "*GtkCList" style "clistitems"
-widget_class "*GtkTree" style "treeitems"
-widget_class "*GtkTreeItem" style "treeitems"
-widget_class "*" style "default"
diff --git a/gcit/gtk/gtk_misc.c b/gcit/gtk/gtk_misc.c
deleted file mode 100644 (file)
index 10ad2d5..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
-
-Misc. GTK display routines
-
-*/
-
-#include "config.h"
-#include <stdio.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <sys/types.h>
-#include <netinet/ip.h>
-#include <gtk/gtk.h>
-#include <stdarg.h>
-
-GtkWidget *dialog_window = NULL;
-
-void print_gtk(GtkWidget *text, char *str, ...)
-{
-   char buf[256];
-   va_list va_args;
-
-   if (!text)
-      return;
-
-   va_start(va_args, str);
-   vsprintf(buf, str, va_args);
-   
-   if (text)
-   {
-      if (!GTK_IS_TEXT(text))
-         printf("We have a non-text here - %s\n", buf);
-      else
-         gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL, buf, -1);
-   }
-   return;   
-}
-
-void gtk_killyesno(void)
-{
-   if (dialog_window)
-   {
-      gtk_widget_destroy(dialog_window);
-      dialog_window = NULL;
-   }
-}
-
-void gtk_yesno(char *msg, char *title, int def, void *yesproc, void *noproc)
-{
-   GtkWidget *button, *label;
-   
-   dialog_window = gtk_dialog_new();
-   gtk_signal_connect (GTK_OBJECT(dialog_window), "destroy",
-                      GTK_SIGNAL_FUNC(gtk_widget_destroyed), &dialog_window);
-   
-   gtk_window_set_title(GTK_WINDOW(dialog_window), title);
-   gtk_window_position(GTK_WINDOW(dialog_window), GTK_WIN_POS_MOUSE);
-   
-   label = gtk_label_new(msg);
-   gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_window)->vbox), label, TRUE, TRUE, 0);
-   gtk_widget_show(label);
-   
-   button = gtk_button_new_with_label("Yes");
-   gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_window)->action_area), button,
-                      TRUE, TRUE, 0);
-
-   gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(yesproc), NULL);
-   if (def)
-      GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
-   if (def == 1)
-      gtk_widget_grab_default(button);
-   gtk_widget_show(button);
-
-   button = gtk_button_new_with_label("No");
-   gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog_window)->action_area), button,
-                      TRUE, TRUE, 0);
-   gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(noproc), NULL);
-   if (def)
-      GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
-   if (def == 2)
-      gtk_widget_grab_default(button);
-   gtk_widget_show(button);
-   gtk_widget_show(dialog_window);
-}
diff --git a/gcit/gtk/gtk_misc.h b/gcit/gtk/gtk_misc.h
deleted file mode 100644 (file)
index a12a8e7..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-
-Misc. gtk display routines
-
-*/
-
-void print_gtk(GtkWidget *text, char *str, ...);
-void gtk_yesno(char *, char *, int, void *, void *);
-void gtk_killyesno(void);
diff --git a/gcit/gtk/gui.c b/gcit/gtk/gui.c
deleted file mode 100644 (file)
index a469673..0000000
+++ /dev/null
@@ -1,809 +0,0 @@
-/*
-
-GUI ugliness offloaded here!
-
-*/
-
-#include "config.h"
-#include <stdio.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <stdlib.h>
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-#include <string.h>
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-#include <gdk/gdkx.h>
-#include <sys/types.h>
-#include <sys/utsname.h>
-#include <gdk_imlib.h>
-#include "client_api.h"
-#include "citadel_util.h"
-#include "gcit.h"
-#include "gtk_misc.h"
-
-GtkWidget *page_user, *page_msg, *user_e, *pass_e, *host_e;
-GtkWidget *user_info_window = NULL;
-GtkWidget *maintext, *posttext, *chattext, *roomlist, *wholist, *pager;
-GtkWidget *mainwindow, *roomwindow, *whowindow;
-GtkWidget *aboutwindow = NULL;
-GdkPixmap *pixmap;
-GtkWidget *image_drawing;
-extern client_context our_context;
-extern char lasthost[];
-extern char lastusername[];
-extern char lastpassword[];
-
-int changed_goto=0;
-int next_goto_row;
-int cur_goto_row;
-
-int get_user_info(GtkWidget *w1, GtkWidget *wt)
-{
-   GtkWidget *box1, *box2;
-   GtkWidget *separator;
-   GtkWidget *button;
-   GtkWidget *label;
-   struct utsname utsname;
-
-
-   if (!user_info_window)
-   {
-      our_context.port = 504;
-      our_context.devid = CITADEL_API_DEVID;
-      our_context.cliid = CITADEL_GTK_CLIID;
-      our_context.verno = CITADEL_GTK_VERNO;
-      strcpy(our_context.fake_host, DEFAULT_HOST_REVEAL);
-      strcpy(our_context.fake_room, DEFAULT_ROOM_REVEAL);
-      strcpy(our_context.clientstr, CITADEL_VERSION);
-      if (uname(&utsname) < 0)
-         strcpy(our_context.hostname, "unknown");
-      else
-         strncpy(our_context.hostname, utsname.nodename, sizeof(our_context.hostname));
-      user_info_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_signal_connect (GTK_OBJECT (user_info_window), "destroy",
-                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
-                          &user_info_window);
-      gtk_window_set_title (GTK_WINDOW (user_info_window), "Please login");
-      gtk_widget_set_uposition(user_info_window, 401, 0);
-      gtk_container_border_width (GTK_CONTAINER (user_info_window), 0);
-      
-      box1 = gtk_vbox_new (FALSE, 0);
-      gtk_container_add (GTK_CONTAINER (user_info_window), box1);
-      gtk_widget_show (box1);
-      
-      box2 = gtk_vbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-      
-      label = gtk_label_new("Host:");
-      gtk_box_pack_start(GTK_BOX (box2), label, TRUE, TRUE, 0);
-      gtk_widget_show (label);
-      
-      host_e = gtk_entry_new ();
-      gtk_entry_set_text (GTK_ENTRY (host_e), lasthost);
-      gtk_editable_select_region (GTK_EDITABLE (host_e), 0, -1);
-      gtk_box_pack_start (GTK_BOX (box2), host_e, TRUE, TRUE, 0);
-      gtk_widget_show (host_e);
-      
-      separator = gtk_hseparator_new();
-      gtk_box_pack_start(GTK_BOX(box2), separator, TRUE, TRUE, 0);
-      gtk_widget_show(separator);
-      
-      label = gtk_label_new("Username:");
-      gtk_box_pack_start(GTK_BOX (box2), label, TRUE, TRUE, 0);
-      gtk_widget_show (label);
-      
-      user_e = gtk_entry_new ();
-      gtk_entry_set_text (GTK_ENTRY (user_e), lastusername);
-      gtk_box_pack_start (GTK_BOX (box2), user_e, TRUE, TRUE, 0);
-      gtk_widget_show (user_e);
-      
-      label = gtk_label_new("Password:");
-      gtk_box_pack_start(GTK_BOX (box2), label, TRUE, TRUE, 0);
-      gtk_widget_show (label);
-      
-      pass_e = gtk_entry_new ();
-      gtk_entry_set_text (GTK_ENTRY (pass_e), lastpassword);
-      gtk_box_pack_start (GTK_BOX (box2), pass_e, TRUE, TRUE, 0);
-      gtk_entry_set_visibility(GTK_ENTRY(pass_e), FALSE);
-      gtk_widget_show (pass_e);
-
-      if (gtk_entry_get_text(GTK_ENTRY(user_e)))
-         gtk_entry_select_region(GTK_ENTRY(user_e), 0, strlen(gtk_entry_get_text(GTK_ENTRY(user_e)))-1);
-
-      separator = gtk_hseparator_new();
-      gtk_box_pack_start(GTK_BOX(box2), separator, TRUE, TRUE, 0);
-      gtk_widget_show(separator);
-      
-      box2 = gtk_hbox_new(FALSE, 10);
-      gtk_container_border_width(GTK_CONTAINER(box2), 5);
-      gtk_box_pack_start(GTK_BOX(box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show(box2);
-      
-      button = gtk_button_new_with_label("Ok");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_connect),
-                                 GTK_OBJECT (maintext));
-      GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default(button);
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-
-      button = gtk_button_new_with_label("Cancel");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(gtk_widget_destroy),
-                                 GTK_OBJECT (user_info_window));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-      
-   }
-
-   if (!GTK_WIDGET_VISIBLE(user_info_window))
-      gtk_widget_show(user_info_window);
-   else
-      gtk_widget_destroy(user_info_window);
-   return 1;
-}
-
-
-void select_room(GtkWidget *widget, int row, int col, GdkEventButton *bevent)
-{
-   char *text;
-   
-   gtk_clist_get_text(GTK_CLIST(widget), row, 0, &text);
-   strcpy(our_context.selected_room, text);
-   changed_goto = 1;
-   return;
-}
-
-void select_who(GtkWidget *widget, int row, int col, GdkEventButton *bevent)
-{
-   char *text;
-   
-   gtk_clist_get_text(GTK_CLIST(widget), row, 0, &text);
-   strcpy(our_context.selected_who, text);
-   return;
-}
-
-void display_room_window()
-{
-
-#define ROOM_COLS 4
-  
-   static char *titles[ROOM_COLS] =
-   { 
-      "Room Name",
-      "New Messages",
-      "Total Messages",
-      "Flags"
-   };
-                                    
-   char text[ROOM_COLS][128];
-   char *texts[ROOM_COLS];
-   GtkWidget *box1;
-   GtkWidget *box2;
-   GtkWidget *clist;
-   GtkWidget *button;
-   GtkWidget *separator;
-   citadel_list *list, *t_list;
-   citadel_parms *parms;
-   char flagbuf[127];
-           
-   if (!roomwindow)
-   {
-      roomwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_signal_connect (GTK_OBJECT (roomwindow), "destroy",
-                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
-                          &roomwindow);
-      gtk_window_set_title (GTK_WINDOW (roomwindow), "Rooms");
-      gtk_widget_set_uposition(roomwindow, 0, 420);
-      gtk_container_border_width (GTK_CONTAINER (roomwindow), 0);
-      box1 = gtk_vbox_new (FALSE, 0);
-      gtk_container_add (GTK_CONTAINER (roomwindow), box1);
-      gtk_widget_show (box1);
-      
-      gtk_widget_set_usize(roomwindow, 380, 250);
-      box2 = gtk_vbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-      clist = gtk_clist_new_with_titles (ROOM_COLS, titles);
-      gtk_clist_set_row_height (GTK_CLIST (clist), 20);
-      gtk_signal_connect (GTK_OBJECT (clist),
-                          "select_row",
-                          (GtkSignalFunc) select_room,
-                          NULL);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 0, 100);
-      gtk_clist_set_selection_mode (GTK_CLIST (clist), GTK_SELECTION_BROWSE);
-      gtk_clist_set_policy (GTK_CLIST (clist),
-                            GTK_POLICY_AUTOMATIC,
-                            GTK_POLICY_AUTOMATIC);
-      gtk_container_border_width (GTK_CONTAINER (clist), 5);
-      gtk_box_pack_start (GTK_BOX (box2), clist, TRUE, TRUE, 0);
-      
-      gtk_clist_set_column_width (GTK_CLIST (clist), 0, 90);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 1, 90);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 2, 90);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 3, 150);
-     
-      gtk_widget_show (clist);
-      
-      roomlist = clist;
-      
-      separator = gtk_hseparator_new ();
-      gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
-      gtk_widget_show (separator);
-      box2 = gtk_hbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0);
-      gtk_widget_show (box2);
-      
-      button = gtk_button_new_with_label ("Goto");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_goto),
-                                 NULL);
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-
-      button = gtk_button_new_with_label ("Update");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(get_room_msgs_func),
-                                 (void *)1);
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default (button);
-      gtk_widget_show (button);
-      
-      parms = newparms();
-      get_all_rooms(&our_context, &list);
-      texts[0] = text[0];
-      texts[1] = text[1];
-      texts[2] = text[2];
-      texts[3] = text[3];
-      
-      for (t_list = list; (t_list); t_list = t_list->next)
-      {
-         if ((!t_list->listitem) || (!t_list->listitem[0]))
-            continue;
-/*         printf("Working with listitem=%s\n", t_list->listitem); */
-         citadel_parseparms(t_list->listitem, parms);
-/*         printf("There are %d args.\n", parms->argc); */
-         strcpy(text[0], parms->argv[0]);
-         get_flagbuf(atoi(parms->argv[1]), flagbuf, sizeof(flagbuf));
-         strncpy(text[3], flagbuf, sizeof(text[3])-1);
-         reset_parms(&parms);
-         strcpy(text[1], "0");
-         strcpy(text[2], "");
-         gtk_clist_append (GTK_CLIST (clist), texts);
-      }
-      
-      free_citadel_list(&list);
-      free_citadel_parms(&parms);
-      changed_goto = 0;
-   }
-   if (!GTK_WIDGET_VISIBLE (roomwindow))
-   {
-      gtk_widget_show (roomwindow);
-      return;
-   }
-   else
-   {
-      gtk_widget_destroy (roomwindow);
-      roomlist = NULL;
-   }
-}
-
-
-
-GdkPixmap *make_pixmap_from_filename(char *fn, GtkWidget *image_drawing, int *w, int *h)
-{
-   GdkImlibImage *im;
-   GdkPixmap *pmap;
-
-   im = gdk_imlib_load_image(fn);
-   *w = im->rgb_width;
-   *h = im->rgb_height;
-   gdk_imlib_render(im, *w, *h);
-   pmap = gdk_imlib_move_image(im);
-   gdk_imlib_kill_image(im);
-   return pmap;
-}
-
-void draw_img(GtkWidget *widget, GdkEventConfigure *event)
-{
-   if (!image_drawing)
-   {
-      fprintf(stderr, "No image drawing!\n");
-      return;
-   }
-   if (!image_drawing->window)
-   {
-      fprintf(stderr, "No image drawing window!\n");
-      return;
-   }
-   if (!pixmap)
-   {
-      fprintf(stderr, "No pixmap!\n");
-      return;
-   }
-   
-   gdk_window_set_back_pixmap(image_drawing->window, pixmap, FALSE);
-   gdk_window_clear(image_drawing->window);
-   gdk_flush();
-}
-
-void button_win(GtkWidget *widget, GdkEventButton *event)
-{
-   gtk_widget_destroy(aboutwindow);
-}
-
-void switchabout(void)
-{
-   char fn[256];
-   int w, h;
-   
-   if (!aboutwindow)
-   {
-      aboutwindow= gtk_window_new(GTK_WINDOW_TOPLEVEL);
-      gtk_widget_set_name(aboutwindow, "About");
-      gtk_widget_set_uposition(aboutwindow, 400,400);  
-
-      gtk_window_set_policy (GTK_WINDOW(aboutwindow), TRUE, TRUE, FALSE);
-         
-      gtk_signal_connect (GTK_OBJECT (aboutwindow), "destroy",
-                          GTK_SIGNAL_FUNC(gtk_widget_destroyed), &aboutwindow);
-      gtk_window_set_title (GTK_WINDOW (aboutwindow), "About");
-      gtk_container_border_width (GTK_CONTAINER (aboutwindow), 0);
-      
-      image_drawing = gtk_drawing_area_new();
-      sprintf(fn, "%s/gcit.gif", Q_PIXMAP_DIR);
-      pixmap = make_pixmap_from_filename(fn, image_drawing, &w, &h);
-      gtk_drawing_area_size(GTK_DRAWING_AREA(image_drawing),w, h);
-      gtk_signal_connect(GTK_OBJECT(image_drawing),"configure_event",GTK_SIGNAL_FUNC(draw_img), NULL);
-      gtk_signal_connect(GTK_OBJECT(image_drawing),"button_press_event",GTK_SIGNAL_FUNC(button_win), NULL);
-      gtk_widget_set_events(image_drawing,GDK_BUTTON_PRESS_MASK);
-      gtk_container_add(GTK_CONTAINER(aboutwindow),image_drawing);
-      gtk_widget_show(image_drawing);
-   }
-   if (!GTK_WIDGET_VISIBLE(aboutwindow))
-      gtk_widget_show(aboutwindow);
-   else
-      gtk_widget_destroy(aboutwindow);
-      
-   return;
-
-}
-
-void display_who_window()
-{
-#define ROOM_COLS 4
-  
-   static char *titles[ROOM_COLS] =
-   { 
-      "User Name",
-      "Room",
-      "Host",
-      "Flags"
-   };
-                                    
-   char text[ROOM_COLS][50];
-   char *texts[ROOM_COLS];
-   GtkWidget *box1;
-   GtkWidget *box2;
-   GtkWidget *clist;
-   GtkWidget *button;
-   GtkWidget *separator;
-   citadel_list *list, *t_list;
-   citadel_parms *parms;
-           
-   if (!whowindow)
-   {
-      whowindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_signal_connect (GTK_OBJECT (whowindow), "destroy",
-                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
-                          &whowindow);
-      gtk_window_set_title (GTK_WINDOW (whowindow), "Who");
-      gtk_widget_set_uposition(whowindow, 385, 420);
-      gtk_container_border_width (GTK_CONTAINER (whowindow), 0);
-      box1 = gtk_vbox_new (FALSE, 0);
-      gtk_container_add (GTK_CONTAINER (whowindow), box1);
-      gtk_widget_show (box1);
-      
-      gtk_widget_set_usize(whowindow, 380, 250);
-      box2 = gtk_vbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-      clist = gtk_clist_new_with_titles (ROOM_COLS, titles);
-      gtk_clist_set_row_height (GTK_CLIST (clist), 20);
-      gtk_signal_connect (GTK_OBJECT (clist),
-                          "select_row",
-                          (GtkSignalFunc) select_who,
-                          NULL);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 0, 100);
-      gtk_clist_set_selection_mode (GTK_CLIST (clist), GTK_SELECTION_BROWSE);
-      gtk_clist_set_policy (GTK_CLIST (clist),
-                            GTK_POLICY_AUTOMATIC,
-                            GTK_POLICY_AUTOMATIC);
-      gtk_container_border_width (GTK_CONTAINER (clist), 5);
-      gtk_box_pack_start (GTK_BOX (box2), clist, TRUE, TRUE, 0);
-      
-      gtk_clist_set_column_width (GTK_CLIST (clist), 0, 90);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 1, 90);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 2, 90);
-      gtk_clist_set_column_width (GTK_CLIST (clist), 3, 150);
-      
-      gtk_widget_show (clist);
-      
-      wholist = clist;
-      
-      separator = gtk_hseparator_new ();
-      gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
-      gtk_widget_show (separator);
-      box2 = gtk_hbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0);
-      gtk_widget_show (box2);
-      
-      button = gtk_button_new_with_label ("Page");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(create_pager),
-                                 NULL);
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default (button);
-      gtk_widget_show (button);
-
-      button = gtk_button_new_with_label ("Update");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_goto),
-                                 NULL);
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default (button);
-      gtk_widget_show (button);
-      
-      texts[0] = text[0];
-      texts[1] = text[1];
-      texts[2] = text[2];
-      texts[3] = text[3];
-      
-      parms = newparms();
-
-      get_who_list(&our_context, &list);
-      for (t_list = list; t_list; t_list = t_list->next)
-      {
-         citadel_parseparms(t_list->listitem, parms);
-         strcpy(text[0], parms->argv[1]);
-         citadel_parseparms(t_list->listitem, parms);
-         strcpy(text[1], parms->argv[2]);
-         citadel_parseparms(t_list->listitem, parms);
-         strcpy(text[2], parms->argv[3]);
-         citadel_parseparms(t_list->listitem, parms);
-         if (parms->argv[7])
-            strcpy(text[3], parms->argv[7]);
-         else
-            strcpy(text[3], "N/A");
-         gtk_clist_append (GTK_CLIST (clist), texts);
-         reset_parms(&parms);
-      }
-      
-      free_citadel_list(&list);
-      free_citadel_parms(&parms);
-   }
-   if (!GTK_WIDGET_VISIBLE (whowindow))
-      gtk_widget_show (whowindow);
-   else
-   {
-      gtk_widget_destroy (whowindow);
-      wholist = NULL;
-   }
-}
-
-
-void do_post(GtkWidget *widget, GtkWidget *w)
-{
-   static GtkWidget *window = NULL;
-   GtkWidget *box1, *box2, *button, *table, *separator, *hscrollbar;
-   GtkWidget *vscrollbar, *text;
-   
-   if (!window)
-   {
-      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_widget_set_name (window, "text window");
-      gtk_widget_set_usize (window, 400, 400);
-      gtk_widget_set_uposition(window, 505, 0);
-      gtk_window_set_policy (GTK_WINDOW(window), TRUE, TRUE, FALSE);
-      gtk_signal_connect (GTK_OBJECT (window), "destroy",
-                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
-                          &window);
-   
-      gtk_window_set_title (GTK_WINDOW (window), "Post a message");
-      gtk_container_border_width (GTK_CONTAINER (window), 0);
-      box1 = gtk_vbox_new (FALSE, 0);
-      gtk_container_add (GTK_CONTAINER (window), box1);
-      gtk_widget_show (box1);
-      box2 = gtk_vbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-      
-      table = gtk_table_new (2, 2, FALSE);
-      gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2);
-      gtk_table_set_col_spacing (GTK_TABLE (table), 0, 2);
-      gtk_box_pack_start (GTK_BOX (box2), table, TRUE, TRUE, 0);
-      gtk_widget_show (table);
-   
-      text = gtk_text_new (NULL, NULL);
-      gtk_text_set_editable (GTK_TEXT (text), TRUE);
-      gtk_table_attach (GTK_TABLE (table), text, 0, 1, 0, 1,
-                        GTK_EXPAND | GTK_SHRINK | GTK_FILL,
-                        GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0);
-      gtk_text_set_word_wrap(GTK_TEXT(text), TRUE);
-      gtk_widget_show (text);
-      
-      posttext = (void *)text;
-   
-      hscrollbar = gtk_hscrollbar_new (GTK_TEXT (text)->hadj);
-      gtk_table_attach (GTK_TABLE (table), hscrollbar, 0, 1, 1, 2,
-                        GTK_EXPAND | GTK_FILL | GTK_SHRINK, GTK_FILL, 0, 0);
-   
-      gtk_widget_show (hscrollbar);
-      vscrollbar = gtk_vscrollbar_new (GTK_TEXT (text)->vadj);
-      gtk_table_attach (GTK_TABLE (table), vscrollbar, 1, 2, 0, 1,
-                        GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0);
-      gtk_widget_show (vscrollbar);
-      gtk_widget_realize (text);
-      
-      separator = gtk_hseparator_new ();
-      gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
-      gtk_widget_show (separator);
-   
-      box2 = gtk_hbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0);
-      gtk_widget_show (box2);
-
-
-      button = gtk_button_new_with_label ("Post");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_posting),
-                                 GTK_OBJECT(text));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default (button);
-      gtk_widget_show (button);
-      
-      button = gtk_button_new_with_label ("Abort");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(gtk_widget_destroy),
-                                 GTK_OBJECT (window));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-
-   }
-   
-   if (!GTK_WIDGET_VISIBLE(window))
-      gtk_widget_show(window);
-   else
-   {
-      posttext = NULL;
-      gtk_widget_destroy(window);
-   }
-      
-   return;
-   
-}
-
-void create_pager(GtkWidget *widget, GtkWidget *wdw)
-{
-  static GtkWidget *window = NULL;
-  GtkWidget *box1;
-  GtkWidget *box2;
-  GtkWidget *button;
-  GtkWidget *label;
-  GtkWidget *separator;
-
-  if (!window)
-    {
-      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-
-      gtk_signal_connect (GTK_OBJECT (window), "destroy",
-                         GTK_SIGNAL_FUNC(gtk_widget_destroyed),
-                         &window);
-
-      gtk_window_set_title (GTK_WINDOW (window), "Pager");
-      gtk_container_border_width (GTK_CONTAINER (window), 0);
-
-
-      box1 = gtk_vbox_new (FALSE, 0);
-      gtk_container_add (GTK_CONTAINER (window), box1);
-      gtk_widget_show (box1);
-
-
-      box2 = gtk_vbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-
-      label = gtk_label_new("Page who:");
-      gtk_box_pack_start(GTK_BOX(box2), label, TRUE, TRUE, 0);
-      gtk_widget_show(label);
-
-      page_user = gtk_entry_new ();
-      if (our_context.selected_who[0])
-         gtk_entry_set_text (GTK_ENTRY (page_user), our_context.selected_who);
-      else
-         gtk_entry_set_text (GTK_ENTRY (page_user), "");
-      gtk_editable_select_region (GTK_EDITABLE (page_user), 0, -1);
-      gtk_box_pack_start (GTK_BOX (box2), page_user, TRUE, TRUE, 0);
-      gtk_widget_show (page_user);
-
-      label = gtk_label_new("Message:");
-      gtk_box_pack_start(GTK_BOX(box2), label, TRUE, TRUE, 0);
-      gtk_widget_show(label);
-
-      page_msg = gtk_entry_new ();
-      gtk_entry_set_text (GTK_ENTRY (page_msg), "");
-      gtk_editable_select_region (GTK_EDITABLE (page_msg), 0, -1);
-      gtk_box_pack_start (GTK_BOX (box2), page_msg, TRUE, TRUE, 0);
-      gtk_widget_show (page_msg);
-
-      box2 = gtk_hbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0);
-      gtk_widget_show (box2);
-
-      button = gtk_button_new_with_label ("Send");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                GTK_SIGNAL_FUNC(do_send_page),
-                                NULL);
-                                
-      separator = gtk_hseparator_new ();
-      gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
-      gtk_widget_show (separator);
-      
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default (button);
-      gtk_widget_show (button);
-      
-      button = gtk_button_new_with_label ("Close");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                GTK_SIGNAL_FUNC(gtk_widget_destroy),
-                                GTK_OBJECT (window));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-      
-      pager = window;
-    }
-
-  if (!GTK_WIDGET_VISIBLE (window))
-    gtk_widget_show (window);
-  else
-  {
-    gtk_widget_destroy (window);
-    pager = NULL;
-  }
-
-}
-
-int create_display_window(void)
-{
-   static GtkWidget *window = NULL;
-   GtkWidget *box1, *box2, *button, *table, *separator, *hscrollbar;
-   GtkWidget *vscrollbar, *text;
-   
-   if (!window)
-   {
-      window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-      gtk_widget_set_name (window, "text window");
-      gtk_widget_set_usize (window, 500, 400);
-      gtk_widget_set_uposition(window, 0, 0);
-      gtk_window_set_policy (GTK_WINDOW(window), TRUE, TRUE, FALSE);
-      gtk_signal_connect (GTK_OBJECT (window), "destroy",
-                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
-                          &window);
-   
-      gtk_window_set_title (GTK_WINDOW (window), CITADEL_VERSION);
-      gtk_container_border_width (GTK_CONTAINER (window), 0);
-      box1 = gtk_vbox_new (FALSE, 0);
-      gtk_container_add (GTK_CONTAINER (window), box1);
-      gtk_widget_show (box1);
-      box2 = gtk_vbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
-      gtk_widget_show (box2);
-      
-      table = gtk_table_new (2, 2, FALSE);
-      gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2);
-      gtk_table_set_col_spacing (GTK_TABLE (table), 0, 2);
-      gtk_box_pack_start (GTK_BOX (box2), table, TRUE, TRUE, 0);
-      gtk_widget_show (table);
-   
-      text = gtk_text_new (NULL, NULL);
-      gtk_text_set_editable (GTK_TEXT (text), FALSE);
-      gtk_table_attach (GTK_TABLE (table), text, 0, 1, 0, 1,
-                        GTK_EXPAND | GTK_SHRINK | GTK_FILL,
-                        GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0);
-      gtk_widget_show (text);
-   
-      maintext = (void *)text;
-      
-      hscrollbar = gtk_hscrollbar_new (GTK_TEXT (text)->hadj);
-      gtk_table_attach (GTK_TABLE (table), hscrollbar, 0, 1, 1, 2,
-                        GTK_EXPAND | GTK_FILL | GTK_SHRINK, GTK_FILL, 0, 0);
-   
-      gtk_widget_show (hscrollbar);
-      vscrollbar = gtk_vscrollbar_new (GTK_TEXT (text)->vadj);
-      gtk_table_attach (GTK_TABLE (table), vscrollbar, 1, 2, 0, 1,
-                        GTK_FILL, GTK_EXPAND | GTK_SHRINK | GTK_FILL, 0, 0);
-      gtk_widget_show (vscrollbar);
-      gtk_widget_realize (text);
-      
-      separator = gtk_hseparator_new ();
-      gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
-      gtk_widget_show (separator);
-   
-      box2 = gtk_hbox_new (FALSE, 5);
-      gtk_container_border_width (GTK_CONTAINER (box2), 5);
-      gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, TRUE, 0);
-      gtk_widget_show (box2);
-
-      button = gtk_button_new_with_label ("Connect");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(get_user_info),
-                                 GTK_OBJECT (text));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-      
-      button = gtk_button_new_with_label ("Next");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_nextmsg), 
-                                 GTK_OBJECT (window));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-
-      button = gtk_button_new_with_label ("Post");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_post),
-                                 GTK_OBJECT (window));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-
-      button = gtk_button_new_with_label ("Close");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(do_close),
-                                 NULL);
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      gtk_widget_show (button);
-      
-      button = gtk_button_new_with_label ("Quit");
-      gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-                                 GTK_SIGNAL_FUNC(client_quit),
-                                 GTK_OBJECT (window));
-      gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
-      GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
-      gtk_widget_grab_default (button);
-      gtk_widget_show (button);
-   }
-   
-   if (!GTK_WIDGET_VISIBLE(window))
-   {
-      gtk_widget_show(window);
-      mainwindow = window;
-   }
-   else
-   {
-      gtk_widget_destroy(window);
-      maintext = NULL;
-      mainwindow = NULL;
-   }
-      
-   return(1);
-}
diff --git a/gcit/gtk/gui.h b/gcit/gtk/gui.h
deleted file mode 100644 (file)
index b05b33d..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-int get_user_info(GtkWidget *w1, GtkWidget *wt);
-void select_room(GtkWidget *widget, int row, int col, GdkEventButton *bevent);
-void select_who(GtkWidget *widget, int row, int col, GdkEventButton *bevent);
-void display_room_window(void);
-void switchabout(void);
-void display_who_window(void);
-void do_post(GtkWidget *widget, GtkWidget *w);
-void create_pager(GtkWidget *widget, GtkWidget *wdw);
-int create_display_window(void);
diff --git a/gcit/libcli_cit/.cvsignore b/gcit/libcli_cit/.cvsignore
deleted file mode 100644 (file)
index 9fb9857..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-*.la
-*.lo
-.deps
-.libs
-Makefile
-Makefile.in
diff --git a/gcit/libcli_cit/Makefile.am b/gcit/libcli_cit/Makefile.am
deleted file mode 100644 (file)
index 265c5f2..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-AM_CFLAGS = $(XTRA_CFLAGS)
-
-lib_LTLIBRARIES = libcli_cit.la
-
-libcli_cit_la_SOURCES = tcp_trans.c citadel_util.c citadel_api.c client_api.c \
-                       citadel_api.h transport.h
-
-libcli_cit_la_LIBADD = @LTLIBOBJS@
-
-pkginclude_HEADERS = citadel_util.h client_api.h
diff --git a/gcit/libcli_cit/citadel_api.c b/gcit/libcli_cit/citadel_api.c
deleted file mode 100644 (file)
index 717f5d4..0000000
+++ /dev/null
@@ -1,534 +0,0 @@
-/*
-
-Citadel Api
-Brian Costello
-btx@calyx.net
-
-For description of any of these commands, read session.txt, distributed with
-the Citadel/UX source code.
-
-*/
-
-#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include "client_api.h"
-#include "transport.h"
-#include "citadel_util.h"
-#include "citadel_api.h"
-
-#ifndef HAVE_SNPRINTF
-int snprintf (char *buf, size_t max, const char *fmt, ...);
-#endif
-
-int failnum(int i)
-{
-   if (i == OK)
-      return(i);
-   if (i>0)
-      return(-1 * i);
-   else
-      return(i);
-}
-
-int send_cmd_parms_1(int sd, char *cmd, char *parm, citadel_parms *parms)
-{
-   int ret;
-   
-   if (parm)
-   {
-      parms->argc = 1;
-      parms->argv[0] = parm;
-   }
-
-#ifdef DEBUG   
-   printf("Sending parms\n");
-#endif   
-   ret = citadel_sendparms(sd, parms, cmd, 1);
-   if (ret < 0)
-      return ret;
-      
-   return(parms->return_code);
-}
-
-int send_single_cmd(int sd, char *cmd)
-{
-   int ret;
-   citadel_parms *parms;
-   
-   if ((parms = newparms()) == NULL)
-      return -1;
-   
-   ret = send_cmd_parms_1(sd, cmd, NULL, parms);
-   free_citadel_parms(&parms);
-
-   return ret;
-}
-
-int send_single_cmd_parm(int sd, char *cmd, char *parm)
-{
-   int ret;
-   citadel_parms *parms;
-   
-   if ((parms = newparms()) == NULL)
-      return -1;
-
-   ret = send_cmd_parms_1(sd, cmd, parm, parms);
-   free_citadel_parms(&parms);
-
-   return ret;
-}
-
-int init_session(int sd)
-{
-   int ret;
-   citadel_parms parms;
-   
-   ret = citadel_recvparms(sd, &parms);
-   if (ret < 0)
-      return(ret);
-      
-   return(parms.return_code);
-}
-
-int cmd_noop(int sd)
-{
-   return(send_single_cmd(sd, "NOOP"));
-}
-
-int cmd_quit(int sd)
-{
-   return(send_single_cmd(sd, "QUIT"));
-}
-
-int cmd_echo(int sd, char *echostr)
-{
-   return(send_single_cmd_parm(sd, "ECHO", echostr));
-}
-
-int cmd_lout(int sd)
-{
-   return(send_single_cmd(sd, "LOUT"));
-}
-
-int cmd_user(int sd, char *username)
-{
-   int ret;
-
-   ret = send_single_cmd_parm(sd, "USER", username);
-   if (ret != MORE_DATA)
-      return(failnum(ret));
-   else
-      return 0;
-}
-
-int cmd_pass(int sd, char *password, citadel_parms *parms)
-{
-   int ret;
-   
-   if ((ret = send_cmd_parms_1(sd, "PASS", password, parms)) != OK)
-      return(failnum(ret));
-   else
-      return 0;
-}
-
-int cmd_setp(int sd, char *password)
-{
-   int ret;
-   
-   if ((ret = send_single_cmd_parm(sd, "SETP", password)) != OK)
-      return(failnum(ret));
-   else
-      return 0;
-}
-
-
-int cmd_last_room(int sd, char *cmd, citadel_list **list, int floorno)
-{
-   int ret;
-   
-   ret = send_single_cmd(sd, cmd);
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   
-#ifdef DEBUG
-   printf("Receiving listing...\n");
-#endif   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_lkrn(int sd, citadel_list **list, int floorno)
-{
-   return(cmd_last_room(sd, "LKRN", list, floorno));
-}
-int cmd_lkro(int sd, citadel_list **list, int floorno)
-{
-   return(cmd_last_room(sd, "LKRO", list, floorno));
-}
-int cmd_lzrm(int sd, citadel_list **list, int floorno)
-{
-   return(cmd_last_room(sd, "LZRM", list, floorno));
-}
-int cmd_lkra(int sd, citadel_list **list, int floorno)
-{
-   return(cmd_last_room(sd, "LKRA", list, floorno));
-}
-int cmd_lkms(int sd, citadel_list **list, int floorno)
-{
-   return(cmd_last_room(sd, "LKMS", list, floorno));
-}
-
-int cmd_getu(int sd, citadel_parms *parms)
-{
-   int ret;
-   
-   if ((ret = send_cmd_parms_1(sd, "GETU", NULL, parms)) != OK)
-      return(failnum(ret));
-   else
-      return 0;
-}
-
-int cmd_setu(int sd, int width, int height, int option_bits)
-{
-   int ret;
-   char strbuf[256];
-   
-   snprintf(strbuf,  sizeof(strbuf)-1, "SETU %d|%d|%d", width, height, option_bits);
-   strbuf[sizeof(strbuf)-1] = '\0';
-   
-   if ((ret=send_single_cmd(sd, strbuf)) != OK)
-      return(failnum(ret));
-   else
-      return 0;
-}
-
-int cmd_goto(int sd, char *roomname, char *password, citadel_parms *parms)
-{
-   int ret;
-   char strbuf[256];
-   
-   if (password)
-      snprintf(strbuf, sizeof(strbuf)-1, "GOTO %s|%s", roomname, password);
-   else
-      snprintf(strbuf, sizeof(strbuf)-1, "GOTO %s|", roomname);
-      
-   strbuf[sizeof(strbuf)-1] = '\0';
-   
-   if ((ret = send_cmd_parms_1(sd, strbuf, NULL, parms)) != OK)
-      return(failnum(ret));
-   else
-      return 0;
-}
-
-int cmd_msgs(int sd, citadel_list **list, char *cmd, int number)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   if (number>0)
-      snprintf(strbuf, CITADEL_STR_SIZE-1, "MSGS %s|%d", cmd, number);
-   else
-      snprintf(strbuf, CITADEL_STR_SIZE-1, "MSGS %s", cmd);
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   
-   if ((ret = send_single_cmd(sd, strbuf)) != LISTING_FOLLOWS)
-      return(failnum(ret));
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-
-int cmd_msg0(int sd, citadel_list **list, int msgnum, int header_only)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   snprintf(strbuf, CITADEL_STR_SIZE-1, "MSG0 %d|%d", msgnum, header_only);
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   if ((ret = send_single_cmd(sd, strbuf)) != LISTING_FOLLOWS)
-      return(failnum(ret));
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_whok(int sd, citadel_list **list)
-{
-   int ret;
-   
-   ret = send_single_cmd(sd, "WHOK");
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_info(int sd, citadel_list **list)
-{
-   int ret;
-   
-   ret = send_single_cmd(sd, "INFO");
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_rdir(int sd, citadel_parms *parms, citadel_list **list)
-{
-   int ret;
-   
-   ret = send_cmd_parms_1(sd, "RDIR", NULL, parms);
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   return(failnum(citadel_receive_listing(sd, list)));
-}   
-
-int cmd_slrp(int sd, int msgnum, int highest, citadel_parms *parms)
-{
-   int ret;
-   char strbuf[32];
-   
-   if (!highest)
-      snprintf(strbuf, CITADEL_STR_SIZE-1, "%d", msgnum);
-   else
-      strcpy(strbuf, "HIGHEST");
-   
-   if ((ret = send_cmd_parms_1(sd, "SLRP", strbuf, parms)) != OK)
-      return(failnum(ret));
-   else
-      return(1);
-}
-
-int cmd_invt(int sd, char *username)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   snprintf(strbuf, CITADEL_STR_SIZE-1, "INVT %s", username);
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   if ((ret = send_single_cmd(sd, strbuf)) != OK)
-      return(failnum(ret));
-   
-   return(1);
-}
-
-int cmd_kick(int sd, char *username)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   snprintf(strbuf, CITADEL_STR_SIZE-1, "KICK %s", username);
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   if ((ret = send_single_cmd(sd, strbuf)) != OK)
-      return(failnum(ret));
-   
-   return(1);
-}
-
-int cmd_getr(int sd, citadel_parms *parms)
-{
-   int ret;
-   
-   if ((ret = send_cmd_parms_1(sd, "GETR", NULL, parms)) != OK)
-      return(failnum(ret));
-   else
-      return(1);
-}
-
-int cmd_setr(int sd, char *roomname, char *password, char *directory, int flags, int bump, int floorno)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   snprintf(strbuf, CITADEL_STR_SIZE-1, "SETR %s|%s|%s|%d|%d|%d", roomname, (password) ? password : "",
-                                         (directory) ? directory : "", flags, bump, floorno);
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   if ((ret = send_single_cmd(sd, strbuf)) != OK)
-      return(failnum(ret));
-   return(1);
-}
-
-int cmd_geta(int sd, citadel_parms *parms)
-{
-   int ret;
-   if ((ret = send_cmd_parms_1(sd, "GETA", NULL, parms)) != OK)
-      return(failnum(ret));
-   else
-      return(1);
-}
-
-int cmd_seta(int sd, char *newaide)
-{
-   int ret;
-   
-   if ((ret = send_single_cmd_parm(sd, "SETA", newaide)) != OK)
-      return(failnum(ret));
-   else
-      return(1);
-}
-
-int cmd_ent0(int sd, int postflag, char *recipient, int anonymous, int format, char *postname, citadel_parms *parms, char *local_filename)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   snprintf(strbuf, CITADEL_STR_SIZE-1, "ENT0 %d|%s|%d|%d|%s|", postflag, (recipient) ? recipient : "",
-                                         anonymous, format, (postname) ? postname : "");
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   if ((ret = send_cmd_parms_1(sd, strbuf, NULL, parms)) == OK)
-      return(1);
-   
-   if (ret == SEND_LISTING)
-      ret = citadel_send_listing_file(sd,local_filename);
-   
-   return(ret);
-}
-
-int cmd_rinf(int sd, citadel_list **list)
-{
-   int ret;
-   
-   ret = send_single_cmd(sd, "RINF");
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-
-int cmd_mesg(int sd, char *msgname, citadel_list **list)
-{
-   int ret;
-   
-   ret = send_single_cmd_parm(sd, "MESG", msgname);
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_rwho(int sd, citadel_list **list)
-{
-   int ret;
-   
-   ret = send_single_cmd(sd, "RWHO");
-   if (ret != LISTING_FOLLOWS)
-   {
-      return(failnum(ret));
-   }
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_iden(int sd, int devid, int cliid, int verno, char *clientstr, char *hostname)
-{
-   int ret;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   snprintf(strbuf, CITADEL_STR_SIZE-1, "IDEN %d|%d|%d|%s|%s|", devid, cliid, verno, 
-                                         clientstr, hostname);
-   
-   strbuf[CITADEL_STR_SIZE-1] = '\0';
-   if ((ret = send_single_cmd(sd, strbuf)) != OK)
-      return(failnum(ret));
-   
-   return(1);
-}
-
-
-int cmd_sexp(int sd, char *username, char *msg)
-{
-   int ret;
-   char strbuf[256];
-   
-   snprintf(strbuf, sizeof(strbuf)-1, "SEXP %s|%s", username, msg);
-   strbuf[sizeof(strbuf)-1] = '\0';
-   
-   if ((ret = send_single_cmd(sd, strbuf)) != OK)
-   {
-      fprintf(stderr, "Command %s failed in cmd_sexp\n", strbuf);
-      return(failnum(ret));
-   }
-   
-   return 1;
-}
-
-int cmd_pexp(int sd, citadel_list **list)
-{
-   int ret;
-   
-   if ((ret = send_single_cmd(sd, "PEXP")) != LISTING_FOLLOWS)
-   {
-#ifdef DEBUG
-      fprintf(stderr, "No express message waiting!  Returning %d\n", failnum(ret));
-#endif   
-      return(failnum(ret));
-   }
-   
-   *list = NULL;
-   return(failnum(citadel_receive_listing(sd, list)));
-}
-
-int cmd_hchg(int sd, char *hostname)
-{
-   int ret;
-   
-   if ((ret = send_single_cmd_parm(sd, "HCHG", hostname)) != OK)
-   {
-      fprintf(stderr, "cmd_hchg was unable to send the cmd HCHG %s.\n",hostname);
-      return(failnum(ret));
-   }
-   
-   return 1;
-}
-
-int cmd_rchg(int sd, char *roomname)
-{
-   int ret;
-   
-   if ((ret = send_single_cmd_parm(sd, "RCHG", roomname)) != OK)
-   {
-      fprintf(stderr, "cmd_rchg was unable to send the cmd RCHG %s.\n",roomname);
-      return(failnum(ret));
-   }
-   
-   return 1;
-}
-int cmd_uchg(int sd, char *username)
-{
-   int ret;
-   
-   if ((ret = send_single_cmd_parm(sd, "UCHG", username)) != OK)
-   {
-      fprintf(stderr, "cmd_uchg was unable to send the cmd UCHG %s.\n",username);
-      return(failnum(ret));
-   }
-   
-   return 1;
-}
diff --git a/gcit/libcli_cit/citadel_api.h b/gcit/libcli_cit/citadel_api.h
deleted file mode 100644 (file)
index 0135a2f..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
-
-Creeping citadel api of death
-Brian Costello
-btx@calyx.net
-
-*/
-
-int init_session(int);
-
-int cmd_noop(int sd);
-int cmd_echo(int sd, char *echostr);
-int cmd_quit(int sd);
-int cmd_lout(int sd);
-
-int cmd_user(int sd, char *username);
-int cmd_pass(int sd, char *password, citadel_parms *parms);
-int cmd_setp(int sd, char *password);
-
-/* floorno < 0 = all floors listed */
-int cmd_lkrn(int sd, citadel_list **list, int floorno);
-int cmd_lkro(int sd, citadel_list **list, int floorno);
-int cmd_lzrm(int sd, citadel_list **list, int floorno);
-int cmd_lkra(int sd, citadel_list **list, int floorno);
-int cmd_lrms(int sd, citadel_list **list, int floorno);
-
-int cmd_getu(int sd, citadel_parms *parms);
-int cmd_setu(int sd, int width, int height, int option_bits);
-int cmd_goto(int sd, char *roomname, char *password, citadel_parms *parms);
-int cmd_msgs(int sd, citadel_list **list, char *cmd, int number);
-int cmd_msg0(int sd, citadel_list **list, int msgnum, int header_only);
-
-int cmd_whok(int sd, citadel_list **list);     /* aide only */
-int cmd_info(int sd, citadel_list **list);
-int cmd_rdir(int sd, citadel_parms *parms, citadel_list **list);
-int cmd_slrp(int sd, int msgnum, int highest, citadel_parms *parms);
-
-int cmd_invt(int sd, char *username);          /* aide only */
-int cmd_kick(int sd, char *username);
-int cmd_getr(int sd, citadel_parms *parms);
-int cmd_setr(int sd, char *roomname, char *password, char *directory, int flags, int bump, int floorno);
-
-int cmd_geta(int sd, citadel_parms *parms);
-int cmd_seta(int sd, char *newaide);
-int cmd_ent0(int sd, int postflag, char *recipient, int anonymous, int format, char *postname, citadel_parms *parms, char *local_filename);
-int cmd_rinf(int sd, citadel_list **list);
-
-int cmd_mesg(int sd, char *msgname, citadel_list **list);
-int cmd_rwho(int sd, citadel_list **list);
-
-/* Cit 4.01 */
-int cmd_iden(int sd, int, int, int, char *, char *);
-int cmd_sexp(int sd, char *username, char *msg);
-int cmd_pexp(int sd, citadel_list **list);
-
-/* Cit 5.02 */
-
-int cmd_hchg(int sd, char *hostname);
-int cmd_rchg(int sd, char *roomname);
-int cmd_uchg(int sd, char *username);
-
-
-/* Unimplemented */
-
-int cmd_newu(int sd, char *username);
-int cmd_dele(int sd, int msgno);
-int cmd_move(int sd, int msgno, char *target_room);
-int cmd_kill(int sd, int act_delete, char *nextroom);
-int cmd_cre8(int sd, int flag, char *newname, int access, char *password, int floorno);
-int cmd_forg(int sd, char *nextroom);
-int cmd_gnur(int sd, citadel_list **list);
-int cmd_greg(int sd, citadel_list **list);
-int cmd_vali(int sd, char *username, int access_level);
-int cmd_einf(int sd, citadel_list **list);
-int cmd_list(int sd, citadel_list **list);
-int cmd_regi(int sd, citadel_list *list);
-int cmd_chek(int sd, citadel_parms *parms);
-int cmd_delf(int sd, char *filename);
-int cmd_movf(int sd, char *filename, char *target_room);
-int cmd_netf(int sd, char *filename, char *node_name);
-int cmd_open(int sd, char *filename, citadel_parms *parms);
-int cmd_clos(int sd);
-int cmd_read(int sd, char *buf, int start_pos,int num_bytes);
-int cmd_uopn(int sd, char *filename, citadel_parms *parms);
-int cmd_ucls(int sd, int save);
-int cmd_writ(int sd, char *buf, int nbytes);
-int cmd_quser(int sd, char *username, citadel_parms *parms);
-int cmd_oimg(int sd, char *filename, char *parm);
-
-/* Cit/UX 4.01 cmds */
-
-int cmd_netp(int sd, char *nodename, char *password);
-int cmd_nuop(int sd);
-int cmd_ndop(int sd, citadel_parms *parms);
-int cmd_lflr(int sd, citadel_list **list);
-int cmd_cflr(int sd, char *floorname, int makefloor);
-int cmd_kflr(int sd, int floornum, int killfloor);
-int cmd_eflr(int sd, int floornum, char *newname);
-int cmd_iden(int sd, int, int, int, char *, char *);
-int cmd_ipgm(int sd, char *password);
-int cmd_chat(int sd);
-
-/* Cit/UX 4.10 */
-
-int cmd_ebio(int sd, citadel_list *list);
-int cmd_rbio(int sd, char *username, citadel_list **list);
-
-/* Cit/UX 4.11 */
-
-int cmd_stel(int sd, int enter);
-int cmd_lbio(int sd, citadel_list *list);
-int cmd_msg2(int sd, citadel_list *list);
-
-/* Cit/UX 5.00 */
-
-int cmd_term(int sd, int taskno);
-int cmd_down(int sd);
-int cmd_scdn(int sd, int setflag);
-int cmd_emsg(int sd, char *filename, char *local_filename);
-int cmd_uimg(int sd, int upload, char *filename, char *local_filename);
-
-/* Cit/UX 5.02 */
-
-int cmd_time(int sd, long *time);
-int cmd_agup(int sd, citadel_parms *parms);
-int cmd_asup(int sd, citadel_parms *parms);
-
-/* Not implemented */
-/* int cmd_msg3() */
-/* int cmd_ent3() */
-/* int cmd_nset(int sd,  */
diff --git a/gcit/libcli_cit/citadel_util.c b/gcit/libcli_cit/citadel_util.c
deleted file mode 100644 (file)
index 270d3af..0000000
+++ /dev/null
@@ -1,469 +0,0 @@
-/*
-
-citadel_util.c
-btx@calyx.net
-
-These routines deal with the two citadel structures, parms and lists.
-
-*/
-
-#include "config.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <stdio.h>
-#include <stdlib.h>
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-#include <string.h>
-#include <sys/types.h>
-#include "client_api.h"
-#include "transport.h"
-#include "citadel_util.h"
-
-#ifndef HAVE_SNPRINTF
-int snprintf (char *buf, size_t max, const char *fmt, ...);
-#endif
-
-int get_num_args(char *line)
-{
-   int nargs;
-   char *cptr;
-   
-   if (strlen(line) < 4)
-      return 0;
-      
-   nargs = 1;
-
-   for (cptr = &line[4]; ((*cptr) && (*cptr != '\n')); cptr++)
-   {
-      if ((*cptr) == '|')
-         nargs++;
-   }
-   
-   return nargs;
-}
-
-int get_arg_no(int argno, char *line, char *buf)
-{
-   int i,j;
-   int an=1;
-   for (i=0; ((i<strlen(line)) && (an <= argno)); i++)
-   {
-      if (line[i] == '|')
-         an++;
-   }
-   
-   if (i==strlen(line))
-   {
-      fprintf(stderr, "ERror- trying to read arg # %d from %s\n", argno, line);
-      return -1;
-   }
-   for (j=0; ((line[i] != '|') && (line[i] != '\0')); j++)
-   {
-      buf[j] = line[i++];
-   }
-
-   buf[j] = '\0';
-   return OK;
-}
-
-int citadel_parseparms(char *line, citadel_parms *parms)
-{
-   int i;
-   char arg[256];
-   char nbuf[4];
-   char *eptr;
-
-   if (!parms)
-   {
-      fprintf(stderr, "Error: parms in citadel_parseparms is NULL!\n");
-      return -1;
-   }
-
-   if (!line)
-   {
-      fprintf(stderr, "Error: line in citadel_parseparms is NULL!\n");
-      return -1;
-   }
-
-   parms->line = (char *)strdup(line);
-   parms->argc = get_num_args(line);
-#ifdef DEBUG
-   printf("There are %d args in the line %s.\n", parms->argc, line);   
-#endif
-   
-   nbuf[3] = '\0';
-   nbuf[0] = line[0];
-   nbuf[1] = line[1];
-   nbuf[2] = line[2];
-   
-   parms->return_code = strtol(nbuf, &eptr, 10);
-   
-   for (i=0; i<parms->argc; i++)
-   {
-      if (eptr[0])
-         get_arg_no(i, line, arg);
-      else
-         get_arg_no(i, &line[4], arg);
-#ifdef DEBUG
-      printf("Got arg #%d - %s\n", i, arg);
-#endif            
-      parms->argv[i] = (char *) strdup(arg);
-   }
-
-   return 0;
-}
-                  
-int free_citadel_parms(citadel_parms **parms)
-{
-   int i;
-
-   if ((!parms) || (!*parms))
-   {
-      fprintf(stderr, "Error: parms in free_citadel_parms is NULL!\n");
-      return -1;
-   }
-   
-#ifdef DEBUG
-   printf("free_citadel_parms: argc=%d\n", (*parms)->argc);
-#endif   
-
-   if ((*parms)->line)
-      free((*parms)->line);
-
-   for (i=0; i<(*parms)->argc; i++)
-   {
-      if ((*parms)->argv[i])
-         free ((*parms)->argv[i]);
-   }
-   
-#ifdef DEBUG
-   printf("Freeing structure\n");
-#endif   
-   free(*parms);
-   *parms = NULL;
-   return(0);
-}
-
-citadel_parms *newparms(void)
-{
-   citadel_parms *parms;
-
-   if ((parms = (citadel_parms *)malloc(sizeof(citadel_parms))) == NULL)
-   {
-      fprintf(stderr, "Malloc in newparms() failed\n");
-      exit(1);
-   }
-   
-   memset(parms, 0, sizeof(citadel_parms));
-   parms->argc = 0;
-   
-   return(parms);
-                           
-}
-
-int reset_parms(citadel_parms **parms)
-{
-   if (!parms)
-      return 0;
-      
-   free_citadel_parms(parms);
-   if (!(*parms = newparms()))
-   {
-      fprintf(stderr, "Error: newparms() failed in reset_parms()!\n");
-      exit(1); /* fatal */
-   }
-#ifdef DEBUG
-   fprintf(stderr, "Parms reset.\n");
-#endif 
-   return (*parms != NULL);
-}
-
-int get_line(int fd, char *line, int maxline)
-{
-   int cl = 0;
-   int n;
-   
-   if (!line)
-   {
-      fprintf(stderr, "Error: line in citadel_recv is NULL!\n");
-      return -1;
-   }
-   
-#ifdef DEBUG
-   fprintf(stderr, "Reading in get_line...\n");
-#endif   
-   line[0] = '\0';
-   
-   do
-   {
-      n = read(fd, &line[cl], 1);
-      
-      if (n)
-      {
-         if (line[cl] == '\n')
-            line[cl] = '\0';
-       
-         cl ++;
-      }
-   } while ((n) && (cl < maxline) && (line[cl-1]));
-   
-   if (cl == maxline)
-      line[maxline-1] = '\0';
-      
-   if (!n)
-      line[cl] = '\0';
-   
-#ifdef DEBUG
-   printf("Received: %s\n", line);
-#endif
-   return(cl);
-}
-
-int citadel_recvparms(int sd, citadel_parms *parms)
-{
-   char strbuf[CITADEL_STR_SIZE];
-   int ret;
-   
-   ret = citadel_recv_line(sd, strbuf, CITADEL_STR_SIZE);
-   if (ret < 0)
-      return(ret);
-      
-   if ((ret=citadel_parseparms(strbuf, parms)) < 0)
-   {
-      fprintf(stderr, "Error: citadel_parseparms failed in citadel_recvparms\n");
-   }
-   
-   return(ret);
-}
-
-int citadel_send_line(int sd, char *line)
-{
-   char strbuf[CITADEL_STR_SIZE+1];
-   
-   strbuf[CITADEL_STR_SIZE] = '\0';
-   snprintf(strbuf, CITADEL_STR_SIZE, "%s\n", line);
-   return(citadel_send(sd, strbuf, strlen(strbuf)));
-}
-                                                                                 
-int citadel_sendparms(int sd, citadel_parms *parms, char *cmd, int expect)
-{
-   char strbuf[CITADEL_STR_SIZE];
-   int nb=0;
-   int i;
-   int ret;
-   
-   strbuf[0] = '\0';
-   
-   strcpy(strbuf, cmd);
-   
-   if (parms)
-   {
-      strcat(strbuf, " ");
-      nb += strlen(strbuf)+1;
-      
-      for (i=0; i<parms->argc; i++)
-      {
-         if ((nb + strlen(parms->argv[i]) + 2) > CITADEL_STR_SIZE)
-            break;
-         
-         if (i > 0)
-         {
-            strcat(strbuf, "|");
-            nb += 1;
-         }
-         
-         strcat(strbuf, parms->argv[i]);
-         nb += strlen(parms->argv[i]);
-      }
-   }
-   strcat(strbuf, "\n");
-   nb += 1;
-   
-   ret = citadel_send(sd, strbuf, nb);
-   if ((ret < 0) || (!expect))
-      return(ret);
-      
-   ret = citadel_recvparms(sd, parms);
-   return(ret);
-}
-
-int add_citadel_list(citadel_list **first_list, char *item)
-{
-   citadel_list *newlist, *t_list;
-
-#ifdef DEBUG
-   fprintf(stderr, "Adding %s to the citadel list\n", item);
-#endif   
-   
-   if ((newlist = (citadel_list *)malloc(sizeof(citadel_list))) == NULL)
-   {
-      fprintf(stderr, "Malloc failed in add_citadel_list!\n");
-      exit(1);
-   }
-   
-   newlist->next = NULL;
-   newlist->listitem = (char *)strdup(item);
-   
-   if (!first_list)
-   {
-      fprintf(stderr, "Firstlist is NULL in add_citadel_list!\n");
-      return -1;
-   }
-
-   if (!(*first_list))
-   {
-      *first_list = newlist;
-      return 1;
-   }
-   
-   for (t_list = *first_list; t_list->next; t_list=t_list->next)
-      ;
-      
-   t_list->next = newlist;
-   
-   return(1);
-}
-
-int free_citadel_list(citadel_list **first_list)
-{
-   citadel_list *t_list, *n_list;
-   
-   if (!first_list)
-   {
-      fprintf(stderr, "First_list is NULL in add_citadel_list!\n");
-      return -1;
-   }
-   
-   for (t_list = *first_list; t_list; t_list = n_list)
-   {
-      n_list = t_list->next;
-      
-      if (t_list->listitem)
-         free(t_list->listitem);
-      
-      free(t_list);
-   }
-   
-   *first_list = NULL;
-   
-   return(1);
-}
-
-/*
- * citadel_receive_listing() - receives a citadel listing.  Assumes
- * LISTING_FOLLOWS has already been received by the client.  Pass this
- * the socket descriptor and a list not yet allocated.
- */
-
-int citadel_receive_listing(int sd, citadel_list **list)
-{
-   char strbuf[CITADEL_STR_SIZE];
-   int ret;
-   int notdone;
-   
-   do
-   {
-      ret = citadel_recv_line(sd, strbuf, CITADEL_STR_SIZE);
-      if (ret < 1)
-         return(ret);
-      
-      notdone = (strcmp(strbuf, "000"));
-      if (notdone)
-         add_citadel_list(list, strbuf);
-      
-   } while (notdone);
-   
-   return OK;
-}
-
-/*
- * citadel_send_listing() - sends a citadel listing.  Assumes
- * SEND_FOLLOWS has already been received by the client.  Pass this
- * the socket descriptor and a filled list.
- */
-
-int citadel_send_listing(int sd, citadel_list *list)
-{
-   int ret;
-   citadel_list *t_list;
-   char strbuf[256];
-   
-   if (!list)
-   {
-      fprintf(stderr, "Error: list is NULL in citadel_send_listing!\n");
-      return -1;
-   }
-   
-   for (t_list = list; t_list; t_list=t_list->next)
-   {
-      snprintf(strbuf, sizeof(strbuf)-1, "%s\n", t_list->listitem);
-      ret = citadel_send(sd, strbuf, strlen(strbuf));
-      if (ret < 0)
-         return(ret);
-   }
-   
-   ret = citadel_send(sd, "000\n", 4);
-   
-   return(ret);
-}
-
-/*
- * citadel_send_listing_file(char *) - sends a citadel listing from the
- * file filename.  This assumes SEND_FOLLOWS has already been received 
- * by the client.  Pass this the socket descriptor and the filename
- */
-
-int citadel_send_listing_file(int sd, char *filename)
-{
-   int ret;
-   int fd;
-   int l;
-   char strbuf[CITADEL_STR_SIZE];
-   
-   if (!filename)
-   {
-      fprintf(stderr, "Error: filename is NULL in citadel_send_listing_file!\n");
-      return -1;
-   }
-   
-   if ((fd = open(filename, O_RDONLY)) < 0)
-   {
-      fprintf(stderr, "Error- filename %s does not exist!\n", filename);
-      return(-1);
-   }
-   
-   do
-   {
-      l = get_line(fd, strbuf, sizeof(strbuf));
-      
-      if (l > 0)
-      {
-/* If there's a blank in the first, despite l == 1, 
- * it means the line was just a \n.
- */
-         if (!strbuf[0])
-         {
-            strcpy(strbuf, "\n");
-            l = 3;
-         }
-
-         ret = citadel_send_line(sd, strbuf);
-         if (ret < 0)
-         {
-            close(fd);
-            return(ret);
-         }
-      }
-   } while (l>0);
-   
-   ret = citadel_send(sd, "000\n", 4);
-   
-   close(fd);
-   
-   return(1);
-}
-
-
diff --git a/gcit/libcli_cit/citadel_util.h b/gcit/libcli_cit/citadel_util.h
deleted file mode 100644 (file)
index 4309c77..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#define CITADEL_STR_SIZE       1024
-
-int citadel_parseparms(char *line, citadel_parms *parms);
-
- /*
-  * int citadel_sendparms(int sd, citadel_parms *parms, int expect) - sends
-  * the parms structure parms to the server on descriptor sd.  Expect
-  * controls whether the client expects to receive a response.
-  * This returns 1 if all of the requested functions worked, otherwise it
-  * returns 0.
-  *
-  */
-
-int citadel_sendparms(int sd, citadel_parms *parms, char *cmd, int expect);
-int citadel_recvparms(int sd, citadel_parms *parms);
-int free_citadel_parms(citadel_parms **parms);
-
-int citadel_receive_listing(int sd, citadel_list **list);
-int citadel_send_listing(int sd, citadel_list *list);
-int citadel_send_listing_file(int sd, char *filename);
-int add_citadel_list(citadel_list **first_list, char *item);
-
-int free_citadel_list(citadel_list **first_list);
-citadel_parms *newparms(void);
-int reset_parms(citadel_parms **);
diff --git a/gcit/libcli_cit/client_api.c b/gcit/libcli_cit/client_api.c
deleted file mode 100644 (file)
index 98a0154..0000000
+++ /dev/null
@@ -1,375 +0,0 @@
-/*
-
-A wrapper around the citadel_api and, to a lesser extent, transport.
-Brian Costello
-btx@calyx.net
-
-*/
-
-#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include "client_api.h"
-#include "citadel_util.h"
-#include "citadel_api.h"
-#include "transport.h"
-
-#ifndef HAVE_SNPRINTF
-int snprintf (char *buf, size_t max, const char *fmt, ...);
-#endif
-
-/* 
-
-get_form takes a formname, and returns the citadel form (MESG) in list
-
-*/
-
-int get_form(int sd, char *formname, citadel_list **list)
-{
-   int ret;
-   if ((ret=cmd_mesg(sd, formname, list)) < 0)
-   {
-      fprintf(stderr, "Error in disp_form\n");
-      return -1;
-   }
-   
-   return 1;
-}
-
-int get_all_rooms(client_context *our_context, citadel_list **list)
-{
-   int ret;
-   
-   if ((ret = cmd_lkra(our_context->sd, list, -1)) < 0)
-   {
-      fprintf(stderr, "cmd_lkra failed in get_all_rooms.\n");
-      return -1;
-   }
-   return 1;
-}
-
-int get_all_new_rooms(client_context *our_context, citadel_list **list)
-{
-   int ret;
-   
-   if ((ret = cmd_lkrn(our_context->sd, list, -1)) < 0)
-   {
-      fprintf(stderr, "cmd_lkrn failed in get_all_new_rooms.\n");
-      return -1;
-   }
-   return 1;
-}
-
-
-/*
-
-get_new_msg_list returns a list of the new message numbers in the current
-room.
-
-*/
-
-int get_new_msg_list(client_context *our_context, citadel_list **list)
-{
-   if (cmd_msgs(our_context->sd, list, "NEW", 0)<0)
-   {
-      fprintf(stderr, "cmd_msgs failed in get_new_msg_list().\n");
-      return -1;
-   }
-   
-   return 1;
-}
-
-/*
-
-get_last_msg_list returns a list of the last <num_last> message numbers from
-the current room.
-
-*/
-
-int get_last_msg_list(client_context *our_context, int num_last, citadel_list **list)
-{
-   if (cmd_msgs(our_context->sd, list, "LAST", num_last)<0)
-   {
-      fprintf(stderr, "cmd_msgs failed in get_new_msg_list().\n");
-      return -1;
-   }
-   
-   return 1;
-}
-
-/*
-
-get_msg_num returns a list containing the text of message number <msgnum>.
-msgnum is determined by calling get_new_msg_list() or similar function.
-
-*/
-
-int get_msg_num(client_context *our_context, int msgnum, citadel_list **list)
-{
-   *list = NULL;
-   
-#ifdef DEBUG
-   printf("get_msg_num - getting message #%d\n", msgnum);
-#endif
-   if (cmd_msg0(our_context->sd, list, msgnum, 0)<0)
-   {
-      fprintf(stderr, "cmd_msg0 failed in get_msg_num().\n");
-      return -1;
-   }
-   
-   return 1;
-}
-
-/*
-
-goto_room goes to room <roomname> with a password <password>.  If password is
-null, no password is transmitted.  If reset_msgs is set, the room's messages
-are all marked read.  The parms from the goto command update our_context.
-
-*/
-
-int goto_room(client_context *our_context, char *roomname, char *password, citadel_parms *parms, int reset_msgs)
-{
-   citadel_parms *othparms;
-   
-   
-   if (reset_msgs)
-   {
-      othparms = newparms();
-   
-      if (cmd_slrp(our_context->sd, 0, 1, othparms)<0)
-      {
-         fprintf(stderr, "cmd_slrp failed in goto_room.\n");
-         return -1;
-      }
-      
-      free_citadel_parms(&othparms);
-   }
-   
-   if (cmd_goto(our_context->sd, roomname, password, parms)<0)
-   {
-      fprintf(stderr, "Unable to goto room %s!\n", roomname);
-      return -1;
-   }
-   
-   if (parms->argc < 9)
-   {
-      fprintf(stderr, "Only %d parms returned from GOTO!\n", parms->argc);
-      return -1;
-   }
-   
-   strcpy(our_context->roomname, parms->argv[0]);
-   if (password)
-      strcpy(our_context->roompass, password);
-   else
-      our_context->roompass[0] = '\0';
-      
-   our_context->unread_msg = atoi(parms->argv[1]);
-   our_context->num_msg = atoi(parms->argv[2]);
-   our_context->info_flag = atoi(parms->argv[3]);
-   our_context->room_flags = atoi(parms->argv[4]);
-   our_context->highest_msg_num = atoi(parms->argv[5]);
-   our_context->highest_read_msg = atoi(parms->argv[6]);
-   our_context->is_mail_room = atoi(parms->argv[7]);
-   our_context->is_room_aide = atoi(parms->argv[8]);
-   if (parms->argc > 9)
-      our_context->new_mail_msgs = atoi(parms->argv[9]);
-   if (parms->argc > 10)
-      our_context->room_floor_no = atoi(parms->argv[10]);
-      
-   if (parms->line[3] == '*')
-      our_context->message_waiting = 1;
-   return 1;
-}
-
-/*
-
-Sends filename <filename> over as a post
-
-*/
-
-int post_file(char *filename, client_context *our_context, citadel_parms *parms)
-{
-   int ret;
-   
-   ret = cmd_ent0(our_context->sd, 1, NULL, 0, 1, NULL, parms, filename);
-   return(ret);
-}
-
-/*
-
-client_connect sets up a citadel connection.  It connects, using the underlying
-transport, inits the session, logs in, gets server information, gives client
-information, returns the opening form in list, and finally goes to _BASEROOM_,
-returning the parms from cmd_goto in parms.
-
-*/
-int client_connect(citadel_parms **parms, client_context *our_context, citadel_list **list)
-{
-   int sd;
-   
-   if ((sd = citadel_connect(our_context->host, our_context->port))<0)
-   {
-      fprintf(stderr, "Failed to connect to host %s.\n", our_context->host);
-      return -1;
-   }
-   
-   our_context->sd = sd;
-   
-   init_session(sd);
-   
-   if (cmd_user(sd, our_context->username)<0)
-   {
-      fprintf(stderr, "cmd_user failed in client_connect\n");
-      return -1;
-   }
-
-   if (cmd_pass(sd, our_context->password, *parms)<0)
-   {
-      fprintf(stderr, "cmd_pass failed in client_connect\n");
-      return -1;
-   }
-
-   if ((*parms)->argc < 6)
-   {
-      fprintf(stderr, "cmd_pass returned %d parms instead of 6 in client_connect()\n", (*parms)->argc);
-      return -1;
-   }
-
-   our_context->connected = 1;
-   strcpy(our_context->username, (*parms)->argv[0]);
-   our_context->access_level = atoi((*parms)->argv[1]);
-   our_context->times_called = atoi((*parms)->argv[2]);
-   our_context->messages_posted = atoi((*parms)->argv[3]);
-   our_context->flags = atoi((*parms)->argv[4]);
-   our_context->user_number = atoi((*parms)->argv[5]);
-   
-   if (our_context->fake_host[0])
-   {
-      if (cmd_hchg(sd, our_context->fake_host) < 0)
-      {
-         fprintf(stderr, "cmd_hchg failed in client_connect()\n");
-         return -1;
-      }
-   }
-
-   if (our_context->fake_room[0])
-   {
-      if (cmd_rchg(sd, our_context->fake_room) < 0)
-      {
-         fprintf(stderr, "cmd_rchg failed in client_connect()\n");
-         return -1;
-      }
-   }
-   
-   if (cmd_info(sd, list)<0)
-   {
-      fprintf(stderr, "cmd_info failed in client_connect()\n");
-      return -1;
-   }
-   
-/* @@ insert cmd_info code here! */   
-   
-   free_citadel_list(list);
-   
-   cmd_iden(sd, our_context->devid, our_context->cliid, our_context->verno, our_context->clientstr, our_context->hostname);
-
-   reset_parms(parms);
-   
-   get_form(sd, "hello", list);
-   
-   goto_room(our_context, "_BASEROOM_", NULL, (*parms), 0);
-   
-   return sd;
-}
-
-int citadel_end_session(client_context *our_context)
-{
-   cmd_quit(our_context->sd);
-   citadel_disconnect(our_context->sd);
-   our_context->connected = 0;
-   return 1;
-}
-
-
-/*
-
-Returns a comma delimited description of each room's attributes:
- private
- guessname
- upload
- visdir
- anon2
- prefonly
-*/ 
-
-void get_flagbuf(int flags, char *flagbuf, int flaglen)
-{
-   int i;
-   
-   flagbuf[0] = '\0';
-   snprintf(flagbuf, flaglen-1, "%s%s%s%s%s%s%s%s%s%s%s%s%s", (flags & QR_PERMANENT) ? "  Permanent": "",
-   (flags & QR_PRIVATE) ? "  Private": "",(flags & QR_PASSWORDED) ? "  Passworded": "",
-   (flags & QR_GUESSNAME) ? "  Guessname": "",(flags & QR_DIRECTORY) ? "  Directory": "", 
-   (flags & QR_VISDIR) ? "  (Visible)": "",(flags & QR_UPLOAD) ? "  Upload": "",
-   (flags & QR_DOWNLOAD) ? "  Download": "", (flags & QR_ANONONLY) ? "  Anonymous-only": "",
-   (flags & QR_ANON2) ? "  Anonymous option": "",(flags & QR_NETWORK) ? "  Networked": "",
-   (flags & QR_PREFONLY) ? "  Preferred-only": "",(flags & QR_READONLY) ? "  Read-only": "");
-   flagbuf[flaglen-1] = '\0';
-   
-   i =2;
-   while (i<strlen(flagbuf))
-   {
-      if (flagbuf[i] == ' ')
-      {
-         flagbuf[i] = ',';
-         i++;
-      }
-      i++;
-   }
-}
-
-int get_who_list(client_context *our_context, citadel_list **list)
-{
-   if (cmd_rwho(our_context->sd, list) < 0)
-   {
-      fprintf(stderr, "cmd_rwho failed in get_who_list().\n");
-      return -1;
-   }
-   
-   return 1;
-}
-                           
-int send_page(client_context *our_context, char *pagewho, char *message)
-{
-   int ret;
-   
-   if ((!pagewho) || (!message))
-      return -1;
-      
-   if ((ret = cmd_sexp(our_context->sd, pagewho, message)) < 0)
-   {
-      fprintf(stderr,"cmd_sexp failed in send_page.\n");
-      return ret;
-   }
-   
-   return 1;
-}
-
-int check_page(client_context *our_context, citadel_list **list)
-{
-   int ret;
-   
-   our_context->message_waiting = 0;
-   if ((ret = cmd_pexp(our_context->sd, list)) < 0)
-   {
-
-   /* No error msg - it's normal to have no page message :) */
-
-      return -1;
-   }
-   
-   return 1;
-}
diff --git a/gcit/libcli_cit/client_api.h b/gcit/libcli_cit/client_api.h
deleted file mode 100644 (file)
index 1ef0279..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
-
-Citadel client_api
-A wrapper around the citadel api
-Brian Costello
-btx@calyx.net
-
-*/
-
-#define MAXARGS 128
-#define CITADEL_API_DEVID      4               /* Code for Brian Costello */
-
-#define LISTING_FOLLOWS         100
-#define OK                      200
-#define MORE_DATA               300
-#define SEND_LISTING            400
-#define ERROR                   500
-#define BINARY_FOLLOWS          600
-#define SEND_BINARY             700
-#define START_CHAT_MODE         800
-
-#define QR_PERMANENT    1               /* Room does not purge              */
-#define QR_PRIVATE      4               /* Set for any type of private room */
-#define QR_PASSWORDED   8               /* Set if there's a password too    */
-#define QR_GUESSNAME    16              /* Set if it's a guessname room     */
-#define QR_DIRECTORY    32              /* Directory room                   */
-#define QR_UPLOAD       64              /* Allowed to upload                */
-#define QR_DOWNLOAD     128             /* Allowed to download              */
-#define QR_VISDIR       256             /* Visible directory                */
-#define QR_ANONONLY     512             /* Anonymous-Only room              */
-#define QR_ANON2        1024            /* Anonymous-Option room            */
-#define QR_NETWORK      2048            /* Shared network room              */
-#define QR_PREFONLY     4096            /* Preferred status needed to enter */
-#define QR_READONLY     8192            /* Aide status required to post     */
-
-
-
-typedef struct
-{
-   int return_code;     /* The return code (OK, LISTING_FOLLOWS, ETC) */
-   char *line;          /* The unmodified line */
-   int argc;            /* The number of args */
-   char *argv[MAXARGS]; /* The args */
-} citadel_parms;
-            
-typedef struct s_list
-{
-   char *listitem;              /* The list string */
-   struct s_list *next;         /* A pointer to the next one */
-} citadel_list;
-
-typedef struct
-{
-   int  sd;
-   int  connected;
-
-   char host[256];
-   u_short  port;
-   
-   char username[32];
-   char password[32];
-   
-   int access_level;
-   int times_called;
-   int messages_posted;
-   int flags;
-   int user_number;
-   
-   int message_waiting;
-   
-   int devid;
-   int cliid;
-   int verno;
-   char clientstr[256];
-   char hostname[256];
-   char fake_room[256];
-   char fake_host[256];
-   
-   char roomname[256];
-   char selected_room[256];
-   char roompass[256];
-   char selected_who[256];
-   int unread_msg;
-   int num_msg;
-   int info_flag;
-   int room_flags;
-   int highest_msg_num;
-   int highest_read_msg;
-   int is_mail_room;
-   int is_room_aide;
-   int new_mail_msgs;
-   int room_floor_no;
-   
-   citadel_list *room_msgs;
-   citadel_list *next_msg_ptr;
-   
-   citadel_list *new_msg_rooms;
-   citadel_list *next_new_msg_room;
-      
-} client_context;
-
-int client_connect(citadel_parms **, client_context *, citadel_list **);
-int citadel_end_session(client_context *);
-int get_serv_info(client_context *);
-int post_file(char *, client_context *, citadel_parms *parms);
-int get_all_rooms(client_context *, citadel_list **list);
-int get_all_new_rooms(client_context *, citadel_list **list);
-void get_flagbuf(int, char *, int);
-int goto_room(client_context *, char *, char *, citadel_parms *, int);
-int get_new_msg_list(client_context *, citadel_list **list);
-int get_last_msg_list(client_context *, int num_last, citadel_list **list);
-int get_msg_num(client_context *, int msgnum, citadel_list **);
-int get_who_list(client_context *, citadel_list **);
-int send_page(client_context *, char *pagewho, char *message);
-int check_page(client_context *, citadel_list **list);
diff --git a/gcit/libcli_cit/snprintf.c b/gcit/libcli_cit/snprintf.c
deleted file mode 100644 (file)
index 89d650d..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * modified from Sten Gunterberg's BUGTRAQ post of 22 Jul 1997
- * --nathan bryant <bryant@cs.usm.maine.edu>
- *
- * $Id$
- */
-
-/*
- * Replacements for snprintf() and vsnprintf()
- *
- * Use it only if you have the "spare" cycles needed to effectively
- * do every snprintf operation twice! Why is that? Because everything
- * is first vfprintf()'d to /dev/null to determine the number of bytes.
- * Perhaps a bit slow for demanding applications on slow machines,
- * no problem for a fast machine with some spare cycles.
- *
- * You don't have a /dev/null? Every Linux contains one for free!
- *
- * Because the format string is never even looked at, all current and
- * possible future printf-conversions should be handled just fine.
- *
- * Written July 1997 by Sten Gunterberg (gunterberg@ergon.ch)
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-
-static int
-needed (const char *fmt, va_list argp)
-{
-  static FILE *sink = NULL;
-
-  /* ok, there's a small race here that could result in the sink being
-   * opened more than once if we're threaded, but I'd rather ignore it than
-   * spend cycles synchronizing :-) */
-
-  if (sink == NULL)
-    {
-      if ((sink = fopen("/dev/null", "w")) == NULL)
-       {
-         perror("/dev/null");
-         exit(1);
-       }
-    }
-
-  return vfprintf(sink, fmt, argp);
-}
-
-int
-vsnprintf (char *buf, size_t max, const char *fmt, va_list argp)
-{
-  char *p;
-  int size;
-
-  if ((p = malloc(needed(fmt, argp) + 1)) == NULL)
-    {
-      fprintf(stderr, "vsnprintf: malloc failed, aborting\n");
-      abort();
-    }
-
-  if ((size = vsprintf(p, fmt, argp)) >= max)
-    size = -1;
-
-  strncpy(buf, p, max);
-  buf[max - 1] = 0;
-  free(p);
-  return size;
-}
-
-int
-snprintf (char *buf, size_t max, const char *fmt, ...)
-{
-  va_list argp;
-  int bytes;
-
-  va_start(argp, fmt);
-  bytes = vsnprintf(buf, max, fmt, argp);
-  va_end(argp);
-
-  return bytes;
-}
diff --git a/gcit/libcli_cit/tcp_trans.c b/gcit/libcli_cit/tcp_trans.c
deleted file mode 100644 (file)
index d964b24..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
-
-Citadel TCP/IP transport layer
-Brian Costello
-btx@calyx.net
-
-*/
-
-#include "config.h"
-#include <stdio.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#include <sys/types.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <string.h>
-#include "client_api.h"
-#include "transport.h"
-
-int citadel_connect(char *host, u_short port)
-{
-   int sock, ret;
-   struct sockaddr_in sin;
-   struct hostent *he;
-   if ((he = gethostbyname(host)) == NULL)
-      return -1;
-
-   if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
-   {
-      perror("Citadel_connect");
-      return sock;
-   }
-   
-   sin.sin_family = AF_INET;
-   sin.sin_port = htons(port);
-   memcpy(&sin.sin_addr, he->h_addr, he->h_length);
-   
-   ret = connect(sock, (struct sockaddr*)&sin, sizeof(sin));
-   
-   if (ret < 0)
-   {
-      perror("Citadel_connect - connect()");
-      return(ret);
-   }
-   return(sock);
-}
-
-int citadel_disconnect(int sd)
-{
-   int n;
-   
-   if ((n=close(sd))<0)
-      return(n);
-   return(0);
-}
-
-int citadel_send(int sd, char *buf, int buflen)
-{
-   int n;
-   
-   if (buflen < 1)
-      return(0);
-   
-   n = write(sd, buf, buflen);
-   
-#ifdef DEBUG
-   printf("Wrote: %s\n", buf);
-#endif 
-
-   return(n);
-}
-
-int citadel_recv_line(int sd, char *buf, int buflen)
-{
-   int cl = 0;
-   int n;
-   
-   if (!buf)
-   {
-      fprintf(stderr, "Error: BUF in citadel_recv is NULL!\n");
-      return -1;
-   }
-
-#ifdef DEBUG
-   fprintf(stderr,"Receiving in citadel_recv_line...\n");
-#endif   
-
-   do
-   {
-      n = read(sd, &buf[cl], 1);
-      if (n)
-      {
-         if (buf[cl] == '\n')
-            buf[cl] = '\0';
-         cl++;
-      }
-   } while ((n) && (cl < buflen) && (buf[cl-1]));
-   
-   if (cl == buflen)
-      buf[buflen-1] = '\0';
-   
-   if (!n)
-      buf[cl] = '\0';
-
-#ifdef DEBUG
-      printf("Received: %s\n", buf);
-#endif
-   return(cl);
-   
-}
-
-int citadel_recv(int sd, char *buf, int buflen)
-{
-   int n;
-   
-   if (!buf)
-   {
-      fprintf(stderr, "Error: BUF in citadel_recv is NULL!\n");
-      return -1;
-   }
-
-#ifdef DEBUG
-   fprintf(stderr,"Receiving...\n");
-#endif   
-   n = read(sd, buf, buflen);
-#ifdef DEBUG
-   buf[n] = '\0';
-   printf("Received: %s\n", buf);
-#endif 
-   return(n);
-}
-
diff --git a/gcit/libcli_cit/transport.h b/gcit/libcli_cit/transport.h
deleted file mode 100644 (file)
index bb8d0a1..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#define DEBUG
-
-/*
- * citadel_connect connects to the specified host/port combo.  It returns
- * the socket descriptor, or < 0 on failure.
- *
- */
-    
-int citadel_connect(char *host, u_short port);
-    
-/*
- * citadel_disconnect - Immediately closes the specified descriptor (sd).
- * Returns 1 on success, < 0 on failure.
- *
- */
-        
-int citadel_disconnect(int sd);
-/*
- * int citadel_send(int sd, char *buf, int buflen) - Sends the buflen
- * bytes in buf to the socket sd.  Returns either the length sent or < 0
- * on failure.
- */
-    
-int citadel_send(int sd, char *buf, int buflen);
-    
-/*
- * int citadel_recv(int sd, char *buf, int buflen) - Receives up to buflen
- * bytes in buf from the socket sd.  Returns either the length received
- * or < 0 on failure.
- */
-        
-int citadel_recv(int sd, char buf[], int buflen);
-
-/*
- * int citadel_recv(int sd, char *buf, int buflen) - Receives up to buflen
- * bytes in buf from the socket sd.  Returns either the length received
- * or < 0 on failure.  Buf will be filled with ONE line.  Note: THis is much
- * less efficient than calling citadel_recv, so only call this when you need
- * to.
- */
-
-int citadel_recv_line(int sd, char buf[], int buflen);
diff --git a/libCxClient/AUTHORS b/libCxClient/AUTHORS
deleted file mode 100644 (file)
index 40f436f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-libCxClient - Citadel/UX Extensible Client API
-Copyright (c) 2000, Flaming Sword Productions
-Copyright (c) 2001, The Citadel/UX Consortium
-All Rights Reserved
-
-http://www.shadowcom.net/Software/libCxClient/
-================================================================================
-
-The libCxClient project is an open-source effort, maintained by the Citadel/UX
-Development Team.  The contributors to this project are:
-
-   - Brian Ledbetter <brian@shadowcom.net>
-   - Jesse Sweetland <jesse@whoadammit.com>
-   - Art J. Cancro <IGnatius T Foobar>
-
-More will be announced as they join the bandwagon!
-
-================================================================================
-$Id$
diff --git a/libCxClient/COPYING b/libCxClient/COPYING
deleted file mode 100644 (file)
index 94a0453..0000000
+++ /dev/null
@@ -1,621 +0,0 @@
-                    GNU GENERAL PUBLIC LICENSE
-                       Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
-  Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary.  To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                       TERMS AND CONDITIONS
-
-  0. Definitions.
-
-  "This License" refers to version 3 of the GNU General Public License.
-
-  "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
-  "The Program" refers to any copyrightable work licensed under this
-License.  Each licensee is addressed as "you".  "Licensees" and
-"recipients" may be individuals or organizations.
-
-  To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy.  The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
-  A "covered work" means either the unmodified Program or a work based
-on the Program.
-
-  To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy.  Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
-  To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies.  Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
-  An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License.  If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
-  1. Source Code.
-
-  The "source code" for a work means the preferred form of the work
-for making modifications to it.  "Object code" means any non-source
-form of a work.
-
-  A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
-  The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form.  A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
-  The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities.  However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work.  For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
-  The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
-  The Corresponding Source for a work in source code form is that
-same work.
-
-  2. Basic Permissions.
-
-  All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met.  This License explicitly affirms your unlimited
-permission to run the unmodified Program.  The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work.  This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
-  You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force.  You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright.  Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
-  Conveying under any other circumstances is permitted solely under
-the conditions stated below.  Sublicensing is not allowed; section 10
-makes it unnecessary.
-
-  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
-  No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
-  When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
-  4. Conveying Verbatim Copies.
-
-  You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
-  You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
-  5. Conveying Modified Source Versions.
-
-  You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
-    a) The work must carry prominent notices stating that you modified
-    it, and giving a relevant date.
-
-    b) The work must carry prominent notices stating that it is
-    released under this License and any conditions added under section
-    7.  This requirement modifies the requirement in section 4 to
-    "keep intact all notices".
-
-    c) You must license the entire work, as a whole, under this
-    License to anyone who comes into possession of a copy.  This
-    License will therefore apply, along with any applicable section 7
-    additional terms, to the whole of the work, and all its parts,
-    regardless of how they are packaged.  This License gives no
-    permission to license the work in any other way, but it does not
-    invalidate such permission if you have separately received it.
-
-    d) If the work has interactive user interfaces, each must display
-    Appropriate Legal Notices; however, if the Program has interactive
-    interfaces that do not display Appropriate Legal Notices, your
-    work need not make them do so.
-
-  A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit.  Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
-  6. Conveying Non-Source Forms.
-
-  You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
-    a) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by the
-    Corresponding Source fixed on a durable physical medium
-    customarily used for software interchange.
-
-    b) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by a
-    written offer, valid for at least three years and valid for as
-    long as you offer spare parts or customer support for that product
-    model, to give anyone who possesses the object code either (1) a
-    copy of the Corresponding Source for all the software in the
-    product that is covered by this License, on a durable physical
-    medium customarily used for software interchange, for a price no
-    more than your reasonable cost of physically performing this
-    conveying of source, or (2) access to copy the
-    Corresponding Source from a network server at no charge.
-
-    c) Convey individual copies of the object code with a copy of the
-    written offer to provide the Corresponding Source.  This
-    alternative is allowed only occasionally and noncommercially, and
-    only if you received the object code with such an offer, in accord
-    with subsection 6b.
-
-    d) Convey the object code by offering access from a designated
-    place (gratis or for a charge), and offer equivalent access to the
-    Corresponding Source in the same way through the same place at no
-    further charge.  You need not require recipients to copy the
-    Corresponding Source along with the object code.  If the place to
-    copy the object code is a network server, the Corresponding Source
-    may be on a different server (operated by you or a third party)
-    that supports equivalent copying facilities, provided you maintain
-    clear directions next to the object code saying where to find the
-    Corresponding Source.  Regardless of what server hosts the
-    Corresponding Source, you remain obligated to ensure that it is
-    available for as long as needed to satisfy these requirements.
-
-    e) Convey the object code using peer-to-peer transmission, provided
-    you inform other peers where the object code and Corresponding
-    Source of the work are being offered to the general public at no
-    charge under subsection 6d.
-
-  A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
-  A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling.  In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage.  For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product.  A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
-  "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source.  The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
-  If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information.  But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
-  The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed.  Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
-  Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
-  7. Additional Terms.
-
-  "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law.  If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
-  When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it.  (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.)  You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
-  Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
-    a) Disclaiming warranty or limiting liability differently from the
-    terms of sections 15 and 16 of this License; or
-
-    b) Requiring preservation of specified reasonable legal notices or
-    author attributions in that material or in the Appropriate Legal
-    Notices displayed by works containing it; or
-
-    c) Prohibiting misrepresentation of the origin of that material, or
-    requiring that modified versions of such material be marked in
-    reasonable ways as different from the original version; or
-
-    d) Limiting the use for publicity purposes of names of licensors or
-    authors of the material; or
-
-    e) Declining to grant rights under trademark law for use of some
-    trade names, trademarks, or service marks; or
-
-    f) Requiring indemnification of licensors and authors of that
-    material by anyone who conveys the material (or modified versions of
-    it) with contractual assumptions of liability to the recipient, for
-    any liability that these contractual assumptions directly impose on
-    those licensors and authors.
-
-  All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10.  If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term.  If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
-  If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
-  Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
-  8. Termination.
-
-  You may not propagate or modify a covered work except as expressly
-provided under this License.  Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
-  However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
-  Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
-  Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License.  If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
-  9. Acceptance Not Required for Having Copies.
-
-  You are not required to accept this License in order to receive or
-run a copy of the Program.  Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance.  However,
-nothing other than this License grants you permission to propagate or
-modify any covered work.  These actions infringe copyright if you do
-not accept this License.  Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
-  10. Automatic Licensing of Downstream Recipients.
-
-  Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License.  You are not responsible
-for enforcing compliance by third parties with this License.
-
-  An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations.  If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
-  You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License.  For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
-  11. Patents.
-
-  A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based.  The
-work thus licensed is called the contributor's "contributor version".
-
-  A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version.  For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
-  Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
-  In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement).  To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
-  If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients.  "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
-  If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
-  A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License.  You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
-  Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
-  12. No Surrender of Others' Freedom.
-
-  If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all.  For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
-  13. Use with the GNU Affero General Public License.
-
-  Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work.  The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
-  14. Revised Versions of this License.
-
-  The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-  Each version is given a distinguishing version number.  If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation.  If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
-  If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
-  Later license versions may give you additional or different
-permissions.  However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
-  15. Disclaimer of Warranty.
-
-  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. Limitation of Liability.
-
-  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
-  17. Interpretation of Sections 15 and 16.
-
-  If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
-                     END OF TERMS AND CONDITIONS
diff --git a/libCxClient/ChangeLog b/libCxClient/ChangeLog
deleted file mode 100644 (file)
index 6155672..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-$Log$
-Revision 1.17  2001/09/14 19:56:08  brian
-* Fixed handling of ASYN messages, I think.
-  - If no callback has been registered for a particular command, the _CxClRecv()
-  command will actively skip all of the ASYN message (not sure if this works
-  correctly for _all_ messages... will wait and see)
-* Fixed delivery of express messages.  Misunderstood protocol.
-! Need to detect server capabilities and use old-style SEXP when necessary!  At
-  present, libCxClient is incompatible with older servers.  This, I assume, is a
-  bad thing.
-
-Revision 1.16  2001/09/10 22:40:39  brian
-* MAJOR BUG: Memory leaks and protocol misimplementations in misc.c (related
-to Express Messaging).  UGH!
-* GAMEPLAN: Fix the problems with the RC_901 handler.  Try not to weep.
-Then, re-package sources and push to web.
-
-Revision 1.15  2001/08/23 13:14:53  brian
-* Changed type on CxMsLoad() from (const char *) to (long unsigned int) to
-  make things more intuitive (and less apt for failure)
-* Vastly improved library interface, removed plenty of memory leaks.
-* Library _should_ be thread-safe, but I haven't tested it.  If anyone's
-  brave, they're welcome to.
-* Library is almost completely stable now.  At this point, I am blaming
-  most of its faults on Infusion.  ;)
-
-Revision 1.14  2001/06/13 15:06:44  brian
-* Added distfiles for FreeBSD.  To create a FreeBSD package, do this:
-   make install
-   (cd distfiles/FreeBSD; pkg_create -c COMMENT -d DETAILS -f FILES libCxClient-0.xx; mv libCx*tgz ../..)
-
-Revision 1.13  2001/06/12 14:34:06  brian
-* Fixed sample client code to shut down _correctly_.  (...Rather than just
-  quit without free()ing memory...)
-
-Revision 1.12  2001/06/12 11:48:54  brian
-* Working on cleaning up code.  There were LOTS of missing free() calls.
-Boy, was I lazy...  :)
-  This library is MUCH more stable than it was at 0.59-RELEASE checkpoint,
-  but it still has a few leaky issues.  I'm still working on fixing it.
-
-Revision 1.11  2001/05/14 17:59:18  brian
-* Added quick installation notes.
-
-Revision 1.10  2001/05/14 14:01:22  brian
-* Added multi-connection support.  libCxClient can now handle
-multiple concurrent connections to different Citadel servers.
-This, unfortunately, required a change in the development API.
-Please examine the source in src/newtest.c for an example
-of how to use the new API.
-* Fixed some bugs in the transport layer.
-* No new features that I can think of, but there may be some...
-
-Revision 1.9  2001/03/13 22:45:53  brian
-* Changed the return interface for CxMiExpRecv().  It now returns a more
-intelligible struct representing an atomic Express Message.  UNfortunately,
-this requires the user to free 2 things (object, object->message) as opposed
-to one (object)...  C'est la vie...
-
-Revision 1.8  2001/03/13 03:41:03  brian
-* Added SLRP support (but doesn't seem to work yet...)
-
-Revision 1.7  2001/02/22 17:14:12  brian
-* Added MSGS_* flags to make using the new CxMsList() api easier to code for.
-
-Revision 1.6  2001/02/22 17:05:19  brian
-* Updated CxMsList() API to allow users to select only NEW messages, or only
-the LAST x messages (<-skel).  THIS WILL REQUIRE CLIENT-SIDE CHANGES IN ORDER
-FOR YOUR CLIENT TO WORK!
-
-Revision 1.5  2001/02/19 14:50:58  brian
-* Fixed problem in which unconnected clients send messages to file descriptor
-0 (stdout), Now CxClSend() should do nothing if not connected.
-
-Revision 1.4  2001/02/14 03:48:51  brian
-* Added the NOTES file, containing some thoughts about the ASYN protocol,
-eloquently elaborated upon by AJC (Ig).
-
-Revision 1.3  2001/02/07 22:42:24  brian
-* Removed ID tag.
-
-Revision 1.2  2001/02/07 22:41:51  brian
-* Updated ChangeLog to conform to Citadel/UX standards (kinda)  :)
-
diff --git a/libCxClient/INSTALL b/libCxClient/INSTALL
deleted file mode 100644 (file)
index 94f709e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Quick Installation Instructions:
-
-./configure --prefix=/usr/local
-gmake
-(as root) gmake install
diff --git a/libCxClient/LICENSE b/libCxClient/LICENSE
deleted file mode 100644 (file)
index 8aafc27..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-libCxClient - Citadel/UX Extensible Client API
-Copyright (c) 2000, Flaming Sword Productions
-Copyright (c) 2001, The Citadel/UX Consortium
-All Rights Reserved
-
-http://www.shadowcom.net/Software/libCxClient/
-================================================================================
-
-Copyright (c) 2000, Flaming Sword Productions
-Copyright (c) 2001, The Citadel/UX Consortium
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-- Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
-
-- Redistributions in binary form must reproduce the above copyright
-notice, this list of conditions and the following disclaimer in the
-documentation and/or other materials provided with the distribution.
-
-- Neither the name of Flaming Sword Productions, The Citadel/UX
-Consortium; nor the names of its contributors may be used to endorse
-or promote products derived from this software without specific prior
-written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT 
-HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-================================================================================
-$Id$
diff --git a/libCxClient/Makefile.am b/libCxClient/Makefile.am
deleted file mode 100644 (file)
index 7aa4715..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-##
-## libCxClient - Citadel/UX Extensible Client API
-## Copyright (c) 2000, Flaming Sword Productions
-## Copyright (c) 2001, The Citadel/UX Consortium
-## All Rights Reserved
-##
-SUBDIRS = src
diff --git a/libCxClient/Makefile.cvs b/libCxClient/Makefile.cvs
deleted file mode 100644 (file)
index e33433b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-all:
-       @echo "- Preparing build system from CVS sources..."
-       @echo -n "  "
-       @aclocal
-       @echo -n "."
-       @autoheader
-       @echo -n "."
-       @automake
-       @echo -n "."
-       @autoconf
-       @echo -n "."
-       @echo "Done!"
-
-clean:
-       @echo "- Preparing for CVS operation..."
-       @find . -name Makefile -or -name Makefile.in | xargs rm -f
-       @rm -f configure aclocal.m4 configure config.status config.cache config.log config.h
-       @echo "  Done!"
diff --git a/libCxClient/NEWS b/libCxClient/NEWS
deleted file mode 100644 (file)
index dd1e628..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-libCxClient - Citadel/UX Extensible Client API
-Copyright (c) 2000, Flaming Sword Productions
-Copyright (c) 2001, The Citadel/UX Consortium
-All Rights Reserved
-
-http://www.shadowcom.net/Software/libCxClient/
-================================================================================
-
-Nothing newsworthy.  :)
-
-================================================================================
-$Id$
diff --git a/libCxClient/NOTES b/libCxClient/NOTES
deleted file mode 100644 (file)
index 85d7966..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-libCxClient - Citadel/UX Extensible Client API
-Copyright (c) 2000, Flaming Sword Productions
-Copyright (c) 2001, The Citadel/UX Consortium
-All Rights Reserved
-
-http://www.shadowcom.net/Software/libCxClient/
-================================================================================
-
-Miscellaneous Notes
--------------------
-These are some notes which were involved in the development of the asynchronous
-(ASYN) protocol on Citadel/UX.  As I recall, these statements were made by
-Art J. Cancro, Master of Citadel/UX.  It all makes sense to me, though! :)
-
-Ok, I'm making a decision.  Here is the protocol.
- At any time between commands, or between the time a client enters a command
-and the reply from that command is generated, the server MAY spit out a
-900 series message.  This is an asynchronous message and the client MUST
-process it immediately.
- A 900 series message will always be followed by a 100, 200, 300, 400, 500,
-600, or 700 series message which carries the data of the asynchronous
-message.
- I like most of dT's codes, and we'll probably go with something like that.
-I think the actual data of the message should be in the second line rather
-than in the 900 message, though.  For example, if 901 means "express message
-arriving" then...
-901 xmsg follows:
-100 0|979362858|0|IGnatius T Foobar|uncnsrd
-This is the text,
- of the message that is being received,
-  and it is really cool.
->000
- The benefit of this, in the example above, is that the output is exactly
-the same as the output of the GEXP command.  Opportunities for code sharing
-abound.
- If the client had already sent a command, and it got the 901, it would have
-to handle the 901 and its data transfer first, putting it in a queue if
-necessary, and then receive the output of the command it sent (unless it gets
-another 900 first, in which case it keeps running the appropriate handlers
-until it gets something other than a 900).
- After thinking about it all day, this is the way I'd like to go unless dT
-has a problem with it.
-
-================================================================================
-$Id$
diff --git a/libCxClient/README b/libCxClient/README
deleted file mode 100644 (file)
index 7b048c0..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-libCxClient - Citadel/UX Extensible Client API
-Copyright (c) 2000, Flaming Sword Productions
-Copyright (c) 2001, The Citadel/UX Consortium
-All Rights Reserved
-
-http://www.shadowcom.net/Software/libCxClient/
-================================================================================
-
-What is libCxClient?
---------------------
-libCxClient is a framework which you can use to develop a Citadel/UX client.  It
-also allows you to extend Citadel/UX functionality into an existing program,
-like a mailbox analyser.
-
-Who made libCxClient?
----------------------
-The CxClient project was started by Brian C. Ledbetter <brian@shadowcom.net> in
-October of 2000.  The project's scope has changed since then, and a part of the
-resulting rethinking of the project caused the core functionality of a 
-Citadel/UX client to be placed inside of a shared-library which can be used by
-any program.  The libCxClient code was split off from the original CxClient (now
-'infusion') project in January of 2001, and is maintained by the Citadel/UX
-Development Team, a subset of the Citadel/UX Consortium.
-
-How do I use libCxClient?
--------------------------
-Please refer to the website for complete documentation of the libCxClient API,
-along with example code (including working clients!).  libCxClient will not do
-you any good by itself, unless you are a software developer who wishes to create
-a Citadel/UX client.
-
-Please refer to LICENSE and COPYING for details on software redistribution.
-
-================================================================================
-$Id$
diff --git a/libCxClient/autoconf.h.in b/libCxClient/autoconf.h.in
deleted file mode 100644 (file)
index 482696a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/* autoconf.h.in.  Generated automatically from configure.in by autoheader.  */
-
-/* Name of package */
-#undef PACKAGE
-
-/* Version number of package */
-#undef VERSION
-
-/* Define if you want to use debugging mode. */
-#undef DEBUG
-
diff --git a/libCxClient/config.guess b/libCxClient/config.guess
deleted file mode 100755 (executable)
index 4994964..0000000
+++ /dev/null
@@ -1,1273 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
-#   Free Software Foundation, Inc.
-
-version='2000-06-13'
-
-# 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>.
-# Please send patches to <config-patches@gnu.org>.
-#
-# 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).
-#
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of this system.
-
-Operation modes:
-  -h, --help               print this help, then exit
-  -V, --version            print version number, then exit"
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case "$1" in
-    --version | --vers* | -V )
-       echo "$version" ; exit 0 ;;
-    --help | --h* | -h )
-       echo "$usage"; exit 0 ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )        # Use stdin as input.
-       break ;;
-    -* )
-       exec >&2
-       echo "$me: invalid option $1"
-       echo "$help"
-       exit 1 ;;
-    * )
-       break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-# Use $HOST_CC if defined. $CC may point to a cross-compiler
-if test x"$CC_FOR_BUILD" = x; then
-  if test x"$HOST_CC" != x; then
-    CC_FOR_BUILD="$HOST_CC"
-  else
-    if test x"$CC" != x; then
-      CC_FOR_BUILD="$CC"
-    else
-      CC_FOR_BUILD=cc
-    fi
-  fi
-fi
-
-
-# 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
-
-dummy=dummy-$$
-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
-    *:NetBSD:*:*)
-       # Netbsd (nbsd) targets should (where applicable) match one or
-       # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
-       # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
-       # switched to ELF, *-*-netbsd* would select the old
-       # object file format.  This provides both forward
-       # compatibility and a consistent mechanism for selecting the
-       # object file format.
-       # Determine the machine/vendor (is the vendor relevant).
-       case "${UNAME_MACHINE}" in
-           amiga) machine=m68k-cbm ;;
-           arm32) machine=arm-unknown ;;
-           atari*) machine=m68k-atari ;;
-           sun3*) machine=m68k-sun ;;
-           mac68k) machine=m68k-apple ;;
-           macppc) machine=powerpc-apple ;;
-           hp3[0-9][05]) machine=m68k-hp ;;
-           ibmrt|romp-ibm) machine=romp-ibm ;;
-           *) machine=${UNAME_MACHINE}-unknown ;;
-       esac
-       # The Operating System including object format.
-       if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
-               | grep __ELF__ >/dev/null
-       then
-           # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
-           # Return netbsd for either.  FIX?
-           os=netbsd
-       else
-           os=netbsdelf
-       fi
-       # The OS release
-       release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
-       # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
-       # contains redundant information, the shorter form:
-       # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
-       echo "${machine}-${os}${release}"
-       exit 0 ;;
-    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
-       .data
-\$Lformat:
-       .byte 37,100,45,37,120,10,0     # "%d-%x\n"
-
-       .text
-       .globl main
-       .align 4
-       .ent main
-main:
-       .frame \$30,16,\$26,0
-       ldgp \$29,0(\$27)
-       .prologue 1
-       .long 0x47e03d80 # implver \$0
-       lda \$2,-1
-       .long 0x47e20c21 # amask \$2,\$1
-       lda \$16,\$Lformat
-       mov \$0,\$17
-       not \$1,\$18
-       jsr \$26,printf
-       ldgp \$29,0(\$26)
-       mov 0,\$16
-       jsr \$26,exit
-       .end main
-EOF
-       $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
-       if test "$?" = 0 ; then
-               case `./$dummy` in
-                       0-0)
-                               UNAME_MACHINE="alpha"
-                               ;;
-                       1-0)
-                               UNAME_MACHINE="alphaev5"
-                               ;;
-                       1-1)
-                               UNAME_MACHINE="alphaev56"
-                               ;;
-                       1-101)
-                               UNAME_MACHINE="alphapca56"
-                               ;;
-                       2-303)
-                               UNAME_MACHINE="alphaev6"
-                               ;;
-                       2-307)
-                               UNAME_MACHINE="alphaev67"
-                               ;;
-               esac
-       fi
-       rm -f $dummy.s $dummy
-       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-       exit 0 ;;
-    Alpha\ *:Windows_NT*:*)
-       # How do we know it's Interix rather than the generic POSIX subsystem?
-       # Should we change UNAME_MACHINE based on the output of uname instead
-       # of the specific Alpha model?
-       echo alpha-pc-interix
-       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: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 ;;
-    *:OS/390:*:*)
-       echo i370-ibm-openedition
-       exit 0 ;;
-    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
-       echo arm-acorn-riscix${UNAME_RELEASE}
-       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*:OpenBSD:*:*)
-       echo m68k-unknown-openbsd${UNAME_RELEASE}
-       exit 0 ;;
-    # The situation for MiNT is a little confusing.  The machine name
-    # can be virtually everything (everything which is not
-    # "atarist" or "atariste" at least should have a processor
-    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
-    # to the lowercase version "mint" (or "freemint").  Finally
-    # the system name "TOS" denotes a system which is actually not
-    # MiNT.  But MiNT is downward compatible to TOS, so this should
-    # be no problem.
-    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
-        echo m68k-atari-mint${UNAME_RELEASE}
-       exit 0 ;;
-    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
-       echo m68k-atari-mint${UNAME_RELEASE}
-        exit 0 ;;
-    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
-        echo m68k-atari-mint${UNAME_RELEASE}
-       exit 0 ;;
-    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
-        echo m68k-milan-mint${UNAME_RELEASE}
-        exit 0 ;;
-    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
-        echo m68k-hades-mint${UNAME_RELEASE}
-        exit 0 ;;
-    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
-        echo m68k-unknown-mint${UNAME_RELEASE}
-        exit 0 ;;
-    sun3*:OpenBSD:*:*)
-       echo m68k-unknown-openbsd${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 ;;
-    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:*:* | 2430:CLIX:*:*)
-       echo clipper-intergraph-clix${UNAME_RELEASE}
-       exit 0 ;;
-    mips:*:*:UMIPS | mips:*:*:RISCos)
-       sed 's/^        //' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h>  /* for printf() prototype */
-       int main (int argc, char *argv[]) {
-#else
-       int main (argc, argv) int argc; char *argv[]; {
-#endif
-       #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_FOR_BUILD $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 ] || [ $UNAME_PROCESSOR = mc88110 ]
-       then
-           if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
-              [ ${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_FOR_BUILD $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 BSD 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/[678][0-9][0-9])
-              sed 's/^              //' << EOF >$dummy.c
-
-              #define _HPUX_SOURCE
-              #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
-       (CCOPTS= $CC_FOR_BUILD $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_FOR_BUILD $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 ;;
-    *9??*:MPE/iX:*:*)
-       echo hppa1.0-hp-mpeix
-       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 ;;
-    hppa*:OpenBSD:*:*)
-       echo hppa-unknown-openbsd
-       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} | sed -e 's/\.[^.]*$/.X/'
-       exit 0 ;;
-    CRAY*T3E:*:*:*)
-       echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit 0 ;;
-    CRAY*SV1:*:*:*)
-       echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit 0 ;;
-    CRAY-2:*:*:*)
-       echo cray2-cray-unicos
-        exit 0 ;;
-    F300:UNIX_System_V:*:*)
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | 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 ;;
-    hp300:OpenBSD:*:*)
-       echo m68k-unknown-openbsd${UNAME_RELEASE}
-       exit 0 ;;
-    i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
-       echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
-       exit 0 ;;
-    sparc*:BSD/OS:*:*)
-       echo sparc-unknown-bsdi${UNAME_RELEASE}
-       exit 0 ;;
-    *:BSD/OS:*:*)
-       echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
-       exit 0 ;;
-    *:FreeBSD:*:*)
-       echo ${UNAME_MACHINE}-unknown-freebsd`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 ;;
-    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
-       # How do we know it's Interix rather than the generic POSIX subsystem?
-       # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
-       # UNAME_MACHINE based on the output of uname instead of i386?
-       echo i386-pc-interix
-       exit 0 ;;
-    i*:UWIN*:*)
-       echo ${UNAME_MACHINE}-pc-uwin
-       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 ;;
-    i*86:Minix:*:*)
-       echo ${UNAME_MACHINE}-pc-minix
-       exit 0 ;;
-    *:Linux:*:*)
-
-       # The BFD linker knows what the default object file format is, so
-       # first see if it will tell us. cd to the root directory to prevent
-       # problems with other programs or directories called `ld' in the path.
-       ld_help_string=`cd /; 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
-         *ia64)
-               echo "${UNAME_MACHINE}-unknown-linux"
-               exit 0
-               ;;
-         i?86linux)
-               echo "${UNAME_MACHINE}-pc-linux-gnuaout"
-               exit 0
-               ;;
-         elf_i?86)
-               echo "${UNAME_MACHINE}-pc-linux"
-               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
-               ;;
-         elf32arm*)
-               echo "${UNAME_MACHINE}-unknown-linux-gnuoldld"
-               exit 0
-               ;;
-         armelf_linux*)
-               echo "${UNAME_MACHINE}-unknown-linux-gnu"
-               exit 0
-               ;;
-         m68klinux)
-               echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
-               exit 0
-               ;;
-         elf32ppc | elf32ppclinux)
-               # Determine Lib Version
-               cat >$dummy.c <<EOF
-#include <features.h>
-#if defined(__GLIBC__)
-extern char __libc_version[];
-extern char __libc_release[];
-#endif
-main(argc, argv)
-     int argc;
-     char *argv[];
-{
-#if defined(__GLIBC__)
-  printf("%s %s\n", __libc_version, __libc_release);
-#else
-  printf("unkown\n");
-#endif
-  return 0;
-}
-EOF
-               LIBC=""
-               $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
-               if test "$?" = 0 ; then
-                       ./$dummy | grep 1\.99 > /dev/null
-                       if test "$?" = 0 ; then
-                               LIBC="libc1"
-                       fi
-               fi
-               rm -f $dummy.c $dummy
-               echo powerpc-unknown-linux-gnu${LIBC}
-               exit 0
-               ;;
-         shelf_linux)
-               echo "${UNAME_MACHINE}-unknown-linux-gnu"
-               exit 0
-               ;;
-       esac
-
-       if test "${UNAME_MACHINE}" = "alpha" ; then
-               cat <<EOF >$dummy.s
-                       .data
-               \$Lformat:
-                       .byte 37,100,45,37,120,10,0     # "%d-%x\n"
-
-                       .text
-                       .globl main
-                       .align 4
-                       .ent main
-               main:
-                       .frame \$30,16,\$26,0
-                       ldgp \$29,0(\$27)
-                       .prologue 1
-                       .long 0x47e03d80 # implver \$0
-                       lda \$2,-1
-                       .long 0x47e20c21 # amask \$2,\$1
-                       lda \$16,\$Lformat
-                       mov \$0,\$17
-                       not \$1,\$18
-                       jsr \$26,printf
-                       ldgp \$29,0(\$26)
-                       mov 0,\$16
-                       jsr \$26,exit
-                       .end main
-EOF
-               LIBC=""
-               $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
-               if test "$?" = 0 ; then
-                       case `./$dummy` in
-                       0-0)
-                               UNAME_MACHINE="alpha"
-                               ;;
-                       1-0)
-                               UNAME_MACHINE="alphaev5"
-                               ;;
-                       1-1)
-                               UNAME_MACHINE="alphaev56"
-                               ;;
-                       1-101)
-                               UNAME_MACHINE="alphapca56"
-                               ;;
-                       2-303)
-                               UNAME_MACHINE="alphaev6"
-                               ;;
-                       2-307)
-                               UNAME_MACHINE="alphaev67"
-                               ;;
-                       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
-#ifdef __cplusplus
-#include <stdio.h>  /* for printf() prototype */
-       int main (int argc, char *argv[]) {
-#else
-       int main (argc, argv) int argc; char *argv[]; {
-#endif
-#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_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
-         rm -f $dummy.c $dummy
-       elif test "${UNAME_MACHINE}" = "s390"; then
-         echo s390-ibm-linux && exit 0
-       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>
-#ifdef __cplusplus
-#include <stdio.h>  /* for printf() prototype */
-       int main (int argc, char *argv[]) {
-#else
-       int main (argc, argv) int argc; char *argv[]; {
-#endif
-#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_FOR_BUILD $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.*:*)
-       UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
-       if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
-               echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
-       else
-               echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
-       fi
-       exit 0 ;;
-    i?86:*:5:7*)
-        # Fixed at (any) Pentium or better
-        UNAME_MACHINE=i586
-        if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
-           echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
-       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
-               (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
-                       && UNAME_MACHINE=i686
-               (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
-                       && UNAME_MACHINE=i686
-               echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
-       else
-               echo ${UNAME_MACHINE}-pc-sysv32
-       fi
-       exit 0 ;;
-    i?86:*DOS:*:*)
-       echo ${UNAME_MACHINE}-pc-msdosdjgpp
-       exit 0 ;;
-    pc:*:*:*)
-       # Left here for compatibility:
-        # 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.*:* | i?86:LynxOS:3.[01]*:*)
-       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*:ReliantUNIX-*:*:*)
-       echo mips-sni-sysv4
-       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 ;;
-    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000: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 ;;
-    SX-4:SUPER-UX:*:*)
-       echo sx4-nec-superux${UNAME_RELEASE}
-       exit 0 ;;
-    SX-5:SUPER-UX:*:*)
-       echo sx5-nec-superux${UNAME_RELEASE}
-       exit 0 ;;
-    Power*:Rhapsody:*:*)
-       echo powerpc-apple-rhapsody${UNAME_RELEASE}
-       exit 0 ;;
-    *:Rhapsody:*:*)
-       echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
-       exit 0 ;;
-    *:Darwin:*:*)
-       echo `uname -p`-apple-darwin${UNAME_RELEASE}
-       exit 0 ;;
-    *:procnto*:*:* | *:QNX:[0123456789]*:*)
-       if test "${UNAME_MACHINE}" = "x86pc"; then
-               UNAME_MACHINE=pc
-       fi
-       echo `uname -p`-${UNAME_MACHINE}-nto-qnx
-       exit 0 ;;
-    *:QNX:*:4*)
-       echo i386-pc-qnx
-       exit 0 ;;
-    NSR-W:NONSTOP_KERNEL:*:*)
-       echo nsr-tandem-nsk${UNAME_RELEASE}
-       exit 0 ;;
-    BS2000:POSIX*:*:*)
-       echo bs2000-siemens-sysv
-       exit 0 ;;
-    DS/*:UNIX_System_V:*:*)
-       echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
-       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`;
-  if (version < 4)
-    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
-  else
-    printf ("%s-next-openstep%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_FOR_BUILD $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
-
-cat >&2 <<EOF
-$0: unable to guess system type
-
-The $version version of this script cannot recognize your system type.
-Please download the most up to date version of the config scripts:
-
-    ftp://ftp.gnu.org/pub/gnu/config/
-
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches@gnu.org> in order to provide the needed
-information to handle your system.
-
-config.guess version = $version
-
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
-/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
-
-hostinfo               = `(hostinfo) 2>/dev/null`
-/bin/universe          = `(/bin/universe) 2>/dev/null`
-/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
-/bin/arch              = `(/bin/arch) 2>/dev/null`
-/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
-
-UNAME_MACHINE = ${UNAME_MACHINE}
-UNAME_RELEASE = ${UNAME_RELEASE}
-UNAME_SYSTEM  = ${UNAME_SYSTEM}
-UNAME_VERSION = ${UNAME_VERSION}
-EOF
-
-exit 1
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "version='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/libCxClient/config.sub b/libCxClient/config.sub
deleted file mode 100755 (executable)
index 2b4fad1..0000000
+++ /dev/null
@@ -1,1324 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script, version 1.1.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
-#   Free Software Foundation, Inc.
-
-version='2000-07-06'
-
-# 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.
-
-# Please send patches to <config-patches@gnu.org>.
-#
-# 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.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
-       $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
-  -h, --help               print this help, then exit
-  -V, --version            print version number, then exit"
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case "$1" in
-    --version | --vers* | -V )
-       echo "$version" ; exit 0 ;;
-    --help | --h* | -h )
-       echo "$usage"; exit 0 ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )        # Use stdin as input.
-       break ;;
-    -* )
-       exec >&2
-       echo "$me: invalid option $1"
-       echo "$help"
-       exit 1 ;;
-
-    *local*)
-       # First pass through any local machine types.
-       echo $1
-       exit 0;;
-
-    * )
-       break ;;
-  esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
-    exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
-    exit 1;;
-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
-  nto-qnx* | 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 | -axis)
-               os=
-               basic_machine=$1
-               ;;
-       -sim | -cisco | -oki | -wec | -winbond)
-               os=
-               basic_machine=$1
-               ;;
-       -scout)
-               ;;
-       -wrs)
-               os=-vxworks
-               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/'`
-               ;;
-       -udk*)
-               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
-               ;;
-       -mint | -mint[0-9]*)
-               basic_machine=m68k-atari
-               os=-mint
-               ;;
-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 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
-               | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
-               | 580 | i960 | h8300 \
-               | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \
-               | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
-               | hppa64 \
-               | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
-               | alphaev6[78] \
-               | we32k | ns16k | clipper | i370 | sh | sh[34] \
-               | powerpc | powerpcle \
-               | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
-               | mips64orion | mips64orionel | mipstx39 | mipstx39el \
-               | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
-               | mips64vr5000 | miprs64vr5000el | mcore \
-               | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
-               | thumb | d10v | d30v | fr30 | avr)
-               basic_machine=$basic_machine-unknown
-               ;;
-       m6811 | m68hc11 | m6812 | m68hc12)
-               # Motorola 68HC11/12.
-               basic_machine=$basic_machine-unknown
-               os=-none
-               ;;
-       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
-               ;;
-
-       # 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[234567]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.
-       # FIXME: clean up the formatting here.
-       vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
-             | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
-             | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
-             | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
-             | xmp-* | ymp-* \
-             | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \
-             | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
-             | hppa2.0n-* | hppa64-* \
-             | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
-             | alphaev6[78]-* \
-             | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
-             | clipper-* | orion-* \
-             | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
-             | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
-             | mips64el-* | mips64orion-* | mips64orionel-* \
-             | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
-             | mipstx39-* | mipstx39el-* | mcore-* \
-             | f301-* | armv*-* | s390-* | sv1-* | t3e-* \
-             | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
-             | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \
-             | bs2000-* | tic54x-* | c54x-*)
-               ;;
-       # Recognize the various machine names and aliases which stand
-       # for a CPU type and a company and sometimes even an OS.
-       386bsd)
-               basic_machine=i386-unknown
-               os=-bsd
-               ;;
-       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
-               basic_machine=m68000-att
-               ;;
-       3b*)
-               basic_machine=we32k-att
-               ;;
-       a29khif)
-               basic_machine=a29k-amd
-               os=-udi
-               ;;
-       adobe68k)
-               basic_machine=m68010-adobe
-               os=-scout
-               ;;
-       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
-               ;;
-       apollo68bsd)
-               basic_machine=m68k-apollo
-               os=-bsd
-               ;;
-       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
-               ;;
-       cris | cris-* | etrax*)
-               basic_machine=cris-axis
-               ;;
-       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
-               ;;
-       es1800 | OSE68k | ose68k | ose | OSE)
-               basic_machine=m68k-ericsson
-               os=-ose
-               ;;
-       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
-               ;;
-       h8300xray)
-               basic_machine=h8300-hitachi
-               os=-xray
-               ;;
-       h8500hms)
-               basic_machine=h8500-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
-               ;;
-       hp3k9[0-9][0-9] | hp9[0-9][0-9])
-               basic_machine=hppa1.0-hp
-               ;;
-       hp9k2[0-9][0-9] | hp9k31[0-9])
-               basic_machine=m68000-hp
-               ;;
-       hp9k3[2-9][0-9])
-               basic_machine=m68k-hp
-               ;;
-       hp9k6[0-9][0-9] | hp6[0-9][0-9])
-               basic_machine=hppa1.0-hp
-               ;;
-       hp9k7[0-79][0-9] | hp7[0-79][0-9])
-               basic_machine=hppa1.1-hp
-               ;;
-       hp9k78[0-9] | hp78[0-9])
-               # FIXME: really hppa2.0-hp
-               basic_machine=hppa1.1-hp
-               ;;
-       hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
-               # FIXME: really hppa2.0-hp
-               basic_machine=hppa1.1-hp
-               ;;
-       hp9k8[0-9][13679] | hp8[0-9][13679])
-               basic_machine=hppa1.1-hp
-               ;;
-       hp9k8[0-9][0-9] | hp8[0-9][0-9])
-               basic_machine=hppa1.0-hp
-               ;;
-       hppa-next)
-               os=-nextstep3
-               ;;
-       hppaosf)
-               basic_machine=hppa1.1-hp
-               os=-osf
-               ;;
-       hppro)
-               basic_machine=hppa1.1-hp
-               os=-proelf
-               ;;
-       i370-ibm* | ibm*)
-               basic_machine=i370-ibm
-               ;;
-# 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
-               ;;
-       i386mach)
-               basic_machine=i386-mach
-               os=-mach
-               ;;
-       i386-vsta | vsta)
-               basic_machine=i386-unknown
-               os=-vsta
-               ;;
-       i386-go32 | go32)
-               basic_machine=i386-unknown
-               os=-go32
-               ;;
-       i386-mingw32 | mingw32)
-               basic_machine=i386-unknown
-               os=-mingw32
-               ;;
-       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
-               ;;
-       *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
-               basic_machine=m68k-atari
-               os=-mint
-               ;;
-       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
-               ;;
-       mmix*)
-               basic_machine=mmix-knuth
-               os=-mmixware
-               ;;
-       monitor)
-               basic_machine=m68k-rom68k
-               os=-coff
-               ;;
-       msdos)
-               basic_machine=i386-unknown
-               os=-msdos
-               ;;
-       mvs)
-               basic_machine=i370-ibm
-               os=-mvs
-               ;;
-       ncr3000)
-               basic_machine=i486-ncr
-               os=-sysv4
-               ;;
-       netbsd386)
-               basic_machine=i386-unknown
-               os=-netbsd
-               ;;
-       netwinder)
-               basic_machine=armv4l-rebel
-               os=-linux
-               ;;
-       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
-               ;;
-       necv70)
-               basic_machine=v70-nec
-               os=-sysv
-               ;;
-       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
-               ;;
-       mon960)
-               basic_machine=i960-intel
-               os=-mon960
-               ;;
-       np1)
-               basic_machine=np1-gould
-               ;;
-       nsr-tandem)
-               basic_machine=nsr-tandem
-               ;;
-       op50n-* | op60c-*)
-               basic_machine=hppa1.1-oki
-               os=-proelf
-               ;;
-       OSE68000 | ose68000)
-               basic_machine=m68000-ericsson
-               os=-ose
-               ;;
-       os68k)
-               basic_machine=m68k-none
-               os=-os68k
-               ;;
-       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 | k6 | nexen)
-               basic_machine=i586-pc
-               ;;
-       pentiumpro | p6 | 6x86 | athlon)
-               basic_machine=i686-pc
-               ;;
-       pentiumii | pentium2)
-               basic_machine=i786-pc
-               ;;
-       pentium-* | p5-* | k5-* | k6-* | nexen-*)
-               basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
-               ;;
-       pentiumpro-* | p6-* | 6x86-* | athlon-*)
-               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
-               ;;
-       rom68k)
-               basic_machine=m68k-rom68k
-               os=-coff
-               ;;
-       rm[46]00)
-               basic_machine=mips-siemens
-               ;;
-       rtpc | rtpc-*)
-               basic_machine=romp-ibm
-               ;;
-       sa29200)
-               basic_machine=a29k-amd
-               os=-udi
-               ;;
-       sequent)
-               basic_machine=i386-sequent
-               ;;
-       sh)
-               basic_machine=sh-hitachi
-               os=-hms
-               ;;
-       sparclite-wrs)
-               basic_machine=sparclite-wrs
-               os=-vxworks
-               ;;
-       sps7)
-               basic_machine=m68k-bull
-               os=-sysv2
-               ;;
-       spur)
-               basic_machine=spur-unknown
-               ;;
-       st2000)
-               basic_machine=m68k-tandem
-               ;;
-       stratus)
-               basic_machine=i860-stratus
-               os=-sysv4
-               ;;
-       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
-               ;;
-       sv1)
-               basic_machine=sv1-cray
-               os=-unicos
-               ;;
-       symmetry)
-               basic_machine=i386-sequent
-               os=-dynix
-               ;;
-       t3e)
-               basic_machine=t3e-cray
-               os=-unicos
-               ;;
-       tic54x | c54x*)
-               basic_machine=tic54x-unknown
-               os=-coff
-               ;;
-       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
-               ;;
-       v810 | necv810)
-               basic_machine=v810-nec
-               os=-none
-               ;;
-       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
-               ;;
-       w65*)
-               basic_machine=w65-wdc
-               os=-none
-               ;;
-       w89k-*)
-               basic_machine=hppa1.1-winbond
-               os=-proelf
-               ;;
-       xmp)
-               basic_machine=xmp-cray
-               os=-unicos
-               ;;
-        xps | xps100)
-               basic_machine=xps100-honeywell
-               ;;
-       z8k-*-coff)
-               basic_machine=z8k-unknown
-               os=-sim
-               ;;
-       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.
-       w89k)
-               basic_machine=hppa1.1-winbond
-               ;;
-       op50n)
-               basic_machine=hppa1.1-oki
-               ;;
-       op60c)
-               basic_machine=hppa1.1-oki
-               ;;
-       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
-               ;;
-       sh3 | sh4)
-               base_machine=sh-unknown
-               ;;
-       sparc | sparcv9)
-               basic_machine=sparc-sun
-               ;;
-        cydra)
-               basic_machine=cydra-cydrome
-               ;;
-       orion)
-               basic_machine=orion-highlevel
-               ;;
-       orion105)
-               basic_machine=clipper-highlevel
-               ;;
-       mac | mpw | mac-mpw)
-               basic_machine=m68k-apple
-               ;;
-       pmac | pmac-mpw)
-               basic_machine=powerpc-apple
-               ;;
-       c4x*)
-               basic_machine=c4x-none
-               os=-coff
-               ;;
-       *)
-               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* | -oabi* \
-             | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
-             | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
-             | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
-             | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
-             | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
-             | -openstep* | -oskit*)
-       # Remember, each alternative MUST END IN *, to match a version number.
-               ;;
-       -qnx*)
-               case $basic_machine in
-                   x86-* | i[34567]86-*)
-                       ;;
-                   *)
-                       os=-nto$os
-                       ;;
-               esac
-               ;;
-       -nto*)
-               os=-nto-qnx
-               ;;
-       -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
-             | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
-             | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
-               ;;
-       -mac*)
-               os=`echo $os | sed -e 's|mac|macos|'`
-               ;;
-       -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|'`
-               ;;
-       -opened*)
-               os=-openedition
-               ;;
-       -wince*)
-               os=-wince
-               ;;
-       -osfrose*)
-               os=-osfrose
-               ;;
-       -osf*)
-               os=-osf
-               ;;
-       -utek*)
-               os=-bsd
-               ;;
-       -dynix*)
-               os=-bsd
-               ;;
-       -acis*)
-               os=-aos
-               ;;
-       -386bsd)
-               os=-bsd
-               ;;
-       -ctix* | -uts*)
-               os=-sysv
-               ;;
-       -ns2 )
-               os=-nextstep2
-               ;;
-       -nsk)
-               os=-nsk
-               ;;
-       # 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*)
-               ;;
-       -ose*)
-               os=-ose
-               ;;
-       -es1800*)
-               os=-ose
-               ;;
-       -xenix)
-               os=-xenix
-               ;;
-        -*mint | -*MiNT)
-               os=-mint
-               ;;
-       -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*-rebel)
-               os=-linux
-               ;;
-       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
-               ;;
-       m68*-cisco)
-               os=-aout
-               ;;
-       mips*-cisco)
-               os=-elf
-               ;;
-       mips*-*)
-               os=-elf
-               ;;
-       *-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
-               ;;
-       *-wec)
-               os=-proelf
-               ;;
-       *-winbond)
-               os=-proelf
-               ;;
-       *-oki)
-               os=-proelf
-               ;;
-       *-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
-               ;;
-       *-rom68k)
-               os=-coff
-               ;;
-       *-*bug)
-               os=-coff
-               ;;
-       *-apple)
-               os=-macos
-               ;;
-       *-atari*)
-               os=-mint
-               ;;
-       *)
-               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
-                               ;;
-                       -beos*)
-                               vendor=be
-                               ;;
-                       -hpux*)
-                               vendor=hp
-                               ;;
-                       -mpeix*)
-                               vendor=hp
-                               ;;
-                       -hiux*)
-                               vendor=hitachi
-                               ;;
-                       -unos*)
-                               vendor=crds
-                               ;;
-                       -dgux*)
-                               vendor=dg
-                               ;;
-                       -luna*)
-                               vendor=omron
-                               ;;
-                       -genix*)
-                               vendor=ns
-                               ;;
-                       -mvs* | -opened*)
-                               vendor=ibm
-                               ;;
-                       -ptx*)
-                               vendor=sequent
-                               ;;
-                       -vxsim* | -vxworks*)
-                               vendor=wrs
-                               ;;
-                       -aux*)
-                               vendor=apple
-                               ;;
-                       -hms*)
-                               vendor=hitachi
-                               ;;
-                       -mpw* | -macos*)
-                               vendor=apple
-                               ;;
-                       -*mint | -*MiNT)
-                               vendor=atari
-                               ;;
-               esac
-               basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
-               ;;
-esac
-
-echo $basic_machine$os
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "version='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/libCxClient/configure.in b/libCxClient/configure.in
deleted file mode 100644 (file)
index af3926d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-dnl ##
-dnl ## libCxClient - Citadel/UX Extensible Client API
-dnl ## Copyright (c) 2000, SCCG/Flaming Sword Productions
-dnl ## All Rights Reserved
-dnl ##
-dnl ## $Id$
-
-AC_INIT(aclocal.m4)
-
-dnl without this order in this file, automake will be confused!
-dnl the argument 
-AM_CONFIG_HEADER(autoconf.h)
-
-dnl inits some variables needed by automake's Makefiles.
-dnl add here the package name and it's version number. It will
-dnl be defined in config.h and in the Makefiles
-AM_INIT_AUTOMAKE(libCxClient, 0.21)
-
-dnl sets the prefix to $KDEDIR or /usr/local/kde (if no $KDEDIR
-dnl set) for the case, that there is no --prefix
-AC_PREFIX_DEFAULT(/usr/local)
-
-AM_PROG_LIBTOOL
-
-dnl Do we wish to compile in debugging information?
-AC_MSG_CHECKING([for debugging mode])
-AC_ARG_WITH(debug,
-    [  --with-debug            Enable all debugging messages. ],
-    [
-       AC_MSG_RESULT(yes)
-       AC_DEFINE_UNQUOTED(DEBUG, 1, [Define if you want to use debugging mode.])
-    ], [
-       AC_MSG_RESULT(no)
-    ]
-) 
-
-dnl add here all your Makefiles. This are created by configure
-AC_OUTPUT(Makefile src/Makefile)
diff --git a/libCxClient/distfiles/FreeBSD/COMMENT b/libCxClient/distfiles/FreeBSD/COMMENT
deleted file mode 100644 (file)
index 62358e0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Citadel/UX Client SDK
diff --git a/libCxClient/distfiles/FreeBSD/DETAILS b/libCxClient/distfiles/FreeBSD/DETAILS
deleted file mode 100644 (file)
index d5b8784..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-libCxClient: Citadel/UX Client SDK
-Copyright (c) 2000-2001, Flaming Sword Productions
-Copyright (c) 2000-2001, The Citadel/UX Consortium
-
-Source: http://www.shadowcom.net/Software/libCxClient/
-Author: Brian C. Ledbetter <brian@shadowcom.net>
-Release: 0.10 (More stable release)
-
-libCxClient provides you with an easy way to tap
-into the power of the Citadel/UX Communications
-Server, a powerful groupware server for all UNIX 
-operating systems.  Use the libCxClient SDK to
-easily develop powerful groupware applications,
-without having to worry about the details of
-network communications!
-
diff --git a/libCxClient/distfiles/FreeBSD/FILES b/libCxClient/distfiles/FreeBSD/FILES
deleted file mode 100644 (file)
index 7dddeb9..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-@name libCxClient-0.10
-@srcdir /usr/local
-@cwd /usr/local
-@owner 0
-@group 3
-@mode 755
-lib/libCxClient.la
-lib/libCxClient.a
-lib/libCxClient.so
-lib/libCxClient.so.0
-include/CxClient.h
diff --git a/libCxClient/install-sh b/libCxClient/install-sh
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/libCxClient/ltconfig b/libCxClient/ltconfig
deleted file mode 100755 (executable)
index 65ec6f6..0000000
+++ /dev/null
@@ -1,3017 +0,0 @@
-#! /bin/sh
-
-# ltconfig - Create a system-specific libtool.
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# 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.
-
-# A lot of this script is taken from autoconf-2.10.
-
-# Check that we are running under the correct shell.
-SHELL=${CONFIG_SHELL-/bin/sh}
-echo=echo
-if test "X$1" = X--no-reexec; then
-  # Discard the --no-reexec flag, and continue.
-  shift
-elif test "X$1" = X--fallback-echo; then
-  # Avoid inline document here, it may be left over
-  :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
-  # Yippee, $echo works!
-  :
-else
-  # Restart under the correct shell.
-  exec "$SHELL" "$0" --no-reexec ${1+"$@"}
-fi
-
-if test "X$1" = X--fallback-echo; then
-  # used as fallback echo
-  shift
-  cat <<EOF
-$*
-EOF
-  exit 0
-fi
-
-# Find the correct PATH separator.  Usually this is `:', but
-# DJGPP uses `;' like DOS.
-if test "X${PATH_SEPARATOR+set}" != "Xset"; then
-  UNAME=${UNAME-`uname 2>/dev/null`}
-  case X$UNAME in
-    *-DOS) PATH_SEPARATOR=';' ;;
-    *)     PATH_SEPARATOR=':' ;;
-  esac
-fi
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
-
-if test "X${echo_test_string+set}" != "Xset"; then
-  # find a string as large as possible, as long as the shell can cope with it
-  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
-    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
-    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
-       echo_test_string="`eval $cmd`" &&
-       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
-      break
-    fi
-  done
-fi
-
-if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
-   test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
-  # The Solaris, AIX, and Digital Unix default echo programs unquote
-  # backslashes.  This makes it impossible to quote backslashes using
-  #   echo "$something" | sed 's/\\/\\\\/g'
-  #
-  # So, first we look for a working echo in the user's PATH.
-
-  IFS="${IFS=  }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
-  for dir in $PATH /usr/ucb; do
-    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
-       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
-       test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
-      echo="$dir/echo"
-      break
-    fi
-  done
-  IFS="$save_ifs"
-
-  if test "X$echo" = Xecho; then
-    # We didn't find a better echo, so look for alternatives.
-    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
-       test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
-      # This shell has a builtin print -r that does the trick.
-      echo='print -r'
-    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
-        test "X$CONFIG_SHELL" != X/bin/ksh; then
-      # If we have ksh, try running ltconfig again with it.
-      ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
-      export ORIGINAL_CONFIG_SHELL
-      CONFIG_SHELL=/bin/ksh
-      export CONFIG_SHELL
-      exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
-    else
-      # Try using printf.
-      echo='printf "%s\n"'
-      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
-        test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
-       # Cool, printf works
-       :
-      elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
-          test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
-       CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
-       export CONFIG_SHELL
-       SHELL="$CONFIG_SHELL"
-       export SHELL
-       echo="$CONFIG_SHELL $0 --fallback-echo"
-      elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
-          test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
-       echo="$CONFIG_SHELL $0 --fallback-echo"
-      else
-       # maybe with a smaller string...
-       prev=:
-
-       for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
-         if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
-           break
-         fi
-         prev="$cmd"
-       done
-
-       if test "$prev" != 'sed 50q "$0"'; then
-         echo_test_string=`eval $prev`
-         export echo_test_string
-         exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
-       else
-         # Oops.  We lost completely, so just stick with echo.
-         echo=echo
-       fi
-      fi
-    fi
-  fi
-fi
-
-# Sed substitution that helps us do robust quoting.  It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e s/^X//'
-sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
-
-# Same as above, but do not quote variable references.
-double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
-
-# Sed substitution to delay expansion of an escaped shell variable in a
-# double_quote_subst'ed string.
-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
-
-# The name of this program.
-progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
-
-# Constants:
-PROGRAM=ltconfig
-PACKAGE=libtool
-VERSION=1.3.3
-TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
-rm="rm -f"
-
-help="Try \`$progname --help' for more information."
-
-# Global variables:
-default_ofile=libtool
-can_build_shared=yes
-enable_shared=yes
-# All known linkers require a `.a' archive for static linking (except M$VC,
-# which needs '.lib').
-enable_static=yes
-enable_fast_install=yes
-enable_dlopen=unknown
-enable_win32_dll=no
-ltmain=
-silent=
-srcdir=
-ac_config_guess=
-ac_config_sub=
-host=
-nonopt=
-ofile="$default_ofile"
-verify_host=yes
-with_gcc=no
-with_gnu_ld=no
-need_locks=yes
-ac_ext=c
-objext=o
-libext=a
-exeext=
-cache_file=
-
-old_AR="$AR"
-old_CC="$CC"
-old_CFLAGS="$CFLAGS"
-old_CPPFLAGS="$CPPFLAGS"
-old_LDFLAGS="$LDFLAGS"
-old_LD="$LD"
-old_LN_S="$LN_S"
-old_LIBS="$LIBS"
-old_NM="$NM"
-old_RANLIB="$RANLIB"
-old_DLLTOOL="$DLLTOOL"
-old_OBJDUMP="$OBJDUMP"
-old_AS="$AS"
-
-# Parse the command line options.
-args=
-prev=
-for option
-do
-  case "$option" in
-  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
-  *) optarg= ;;
-  esac
-
-  # If the previous option needs an argument, assign it.
-  if test -n "$prev"; then
-    eval "$prev=\$option"
-    prev=
-    continue
-  fi
-
-  case "$option" in
-  --help) cat <<EOM
-Usage: $progname [OPTION]... [HOST [LTMAIN]]
-
-Generate a system-specific libtool script.
-
-    --debug                enable verbose shell tracing
-    --disable-shared       do not build shared libraries
-    --disable-static       do not build static libraries
-    --disable-fast-install do not optimize for fast installation
-    --enable-dlopen        enable dlopen support
-    --enable-win32-dll     enable building dlls on win32 hosts
-    --help                 display this help and exit
-    --no-verify            do not verify that HOST is a valid host type
--o, --output=FILE          specify the output file [default=$default_ofile]
-    --quiet                same as \`--silent'
-    --silent               do not print informational messages
-    --srcdir=DIR           find \`config.guess' in DIR
-    --version              output version information and exit
-    --with-gcc             assume that the GNU C compiler will be used
-    --with-gnu-ld          assume that the C compiler uses the GNU linker
-    --disable-lock         disable file locking
-    --cache-file=FILE      configure cache file
-
-LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
-that provides basic libtool functionality.
-
-HOST is the canonical host system name [default=guessed].
-EOM
-  exit 0
-  ;;
-
-  --debug)
-    echo "$progname: enabling shell trace mode"
-    set -x
-    ;;
-
-  --disable-shared) enable_shared=no ;;
-
-  --disable-static) enable_static=no ;;
-
-  --disable-fast-install) enable_fast_install=no ;;
-
-  --enable-dlopen) enable_dlopen=yes ;;
-
-  --enable-win32-dll) enable_win32_dll=yes ;;
-
-  --quiet | --silent) silent=yes ;;
-
-  --srcdir) prev=srcdir ;;
-  --srcdir=*) srcdir="$optarg" ;;
-
-  --no-verify) verify_host=no ;;
-
-  --output | -o) prev=ofile ;;
-  --output=*) ofile="$optarg" ;;
-
-  --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
-
-  --with-gcc) with_gcc=yes ;;
-  --with-gnu-ld) with_gnu_ld=yes ;;
-
-  --disable-lock) need_locks=no ;;
-
-  --cache-file=*) cache_file="$optarg" ;;
-
-  -*)
-    echo "$progname: unrecognized option \`$option'" 1>&2
-    echo "$help" 1>&2
-    exit 1
-    ;;
-
-  *)
-    if test -z "$ltmain"; then
-      ltmain="$option"
-    elif test -z "$host"; then
-# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
-#      if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
-#        echo "$progname: warning \`$option' is not a valid host type" 1>&2
-#      fi
-      host="$option"
-    else
-      echo "$progname: too many arguments" 1>&2
-      echo "$help" 1>&2
-      exit 1
-    fi ;;
-  esac
-done
-
-if test -z "$ltmain"; then
-  echo "$progname: you must specify a LTMAIN file" 1>&2
-  echo "$help" 1>&2
-  exit 1
-fi
-
-if test ! -f "$ltmain"; then
-  echo "$progname: \`$ltmain' does not exist" 1>&2
-  echo "$help" 1>&2
-  exit 1
-fi
-
-# Quote any args containing shell metacharacters.
-ltconfig_args=
-for arg
-do
-  case "$arg" in
-  *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
-  ltconfig_args="$ltconfig_args '$arg'" ;;
-  *) ltconfig_args="$ltconfig_args $arg" ;;
-  esac
-done
-
-# A relevant subset of AC_INIT.
-
-# 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
-# 5 compiler messages saved in config.log
-# 6 checking for... messages and results
-if test "$silent" = yes; then
-  exec 6>/dev/null
-else
-  exec 6>&1
-fi
-exec 5>>./config.log
-
-# NLS nuisances.
-# Only set LANG and LC_ALL to C if already set.
-# These must not be set unconditionally because not all systems understand
-# e.g. LANG=C (notably SCO).
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
-if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
-
-if test -n "$cache_file" && test -r "$cache_file"; then
-  echo "loading cache $cache_file within ltconfig"
-  . $cache_file
-fi
-
-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
-
-if test -z "$srcdir"; then
-  # Assume the source directory is the same one as the path to LTMAIN.
-  srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
-  test "$srcdir" = "$ltmain" && srcdir=.
-fi
-
-trap "$rm conftest*; exit 1" 1 2 15
-if test "$verify_host" = yes; then
-  # Check for config.guess and config.sub.
-  ac_aux_dir=
-  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
-    if test -f $ac_dir/config.guess; then
-      ac_aux_dir=$ac_dir
-      break
-    fi
-  done
-  if test -z "$ac_aux_dir"; then
-    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
-    echo "$help" 1>&2
-    exit 1
-  fi
-  ac_config_guess=$ac_aux_dir/config.guess
-  ac_config_sub=$ac_aux_dir/config.sub
-
-  # Make sure we can run config.sub.
-  if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
-  else
-    echo "$progname: cannot run $ac_config_sub" 1>&2
-    echo "$help" 1>&2
-    exit 1
-  fi
-
-  echo $ac_n "checking host system type""... $ac_c" 1>&6
-
-  host_alias=$host
-  case "$host_alias" in
-  "")
-    if host_alias=`$SHELL $ac_config_guess`; then :
-    else
-      echo "$progname: cannot guess host type; you must specify one" 1>&2
-      echo "$help" 1>&2
-      exit 1
-    fi ;;
-  esac
-  host=`$SHELL $ac_config_sub $host_alias`
-  echo "$ac_t$host" 1>&6
-
-  # Make sure the host verified.
-  test -z "$host" && exit 1
-
-elif test -z "$host"; then
-  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
-  echo "$help" 1>&2
-  exit 1
-else
-  host_alias=$host
-fi
-
-# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
-case "$host_os" in
-linux-gnu*) ;;
-linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
-esac
-
-host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-case "$host_os" in
-aix3*)
-  # AIX sometimes has problems with the GCC collect2 program.  For some
-  # reason, if we set the COLLECT_NAMES environment variable, the problems
-  # vanish in a puff of smoke.
-  if test "${COLLECT_NAMES+set}" != set; then
-    COLLECT_NAMES=
-    export COLLECT_NAMES
-  fi
-  ;;
-esac
-
-# Determine commands to create old-style static archives.
-old_archive_cmds='$AR cru $oldlib$oldobjs'
-old_postinstall_cmds='chmod 644 $oldlib'
-old_postuninstall_cmds=
-
-# Set a sane default for `AR'.
-test -z "$AR" && AR=ar
-
-# Set a sane default for `OBJDUMP'.
-test -z "$OBJDUMP" && OBJDUMP=objdump
-
-# If RANLIB is not set, then run the test.
-if test "${RANLIB+set}" != "set"; then
-  result=no
-
-  echo $ac_n "checking for ranlib... $ac_c" 1>&6
-  IFS="${IFS=  }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
-  for dir in $PATH; do
-    test -z "$dir" && dir=.
-    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
-      RANLIB="ranlib"
-      result="ranlib"
-      break
-    fi
-  done
-  IFS="$save_ifs"
-
-  echo "$ac_t$result" 1>&6
-fi
-
-if test -n "$RANLIB"; then
-  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
-  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
-fi
-
-# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
-test -z "$DLLTOOL" && DLLTOOL=dlltool
-test -z "$OBJDUMP" && OBJDUMP=objdump
-test -z "$AS" && AS=as
-
-# Check to see if we are using GCC.
-if test "$with_gcc" != yes || test -z "$CC"; then
-  # If CC is not set, then try to find GCC or a usable CC.
-  if test -z "$CC"; then
-    echo $ac_n "checking for gcc... $ac_c" 1>&6
-    IFS="${IFS=        }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
-    for dir in $PATH; do
-      test -z "$dir" && dir=.
-      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
-       CC="gcc"
-       break
-      fi
-    done
-    IFS="$save_ifs"
-
-    if test -n "$CC"; then
-      echo "$ac_t$CC" 1>&6
-    else
-      echo "$ac_t"no 1>&6
-    fi
-  fi
-
-  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
-  if test -z "$CC"; then
-    echo $ac_n "checking for cc... $ac_c" 1>&6
-    IFS="${IFS=        }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
-    cc_rejected=no
-    for dir in $PATH; do
-      test -z "$dir" && dir=.
-      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
-       if test "$dir/cc" = "/usr/ucb/cc"; then
-         cc_rejected=yes
-         continue
-       fi
-       CC="cc"
-       break
-      fi
-    done
-    IFS="$save_ifs"
-    if test $cc_rejected = yes; then
-      # We found a bogon in the path, so make sure we never use it.
-      set dummy $CC
-      shift
-      if test $# -gt 0; then
-       # We chose a different compiler from the bogus one.
-       # However, it has the same name, so the bogon will be chosen
-       # first if we set CC to just the name; use the full file name.
-       shift
-       set dummy "$dir/cc" "$@"
-       shift
-       CC="$@"
-      fi
-    fi
-
-    if test -n "$CC"; then
-      echo "$ac_t$CC" 1>&6
-    else
-      echo "$ac_t"no 1>&6
-    fi
-
-    if test -z "$CC"; then
-      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
-      exit 1
-    fi
-  fi
-
-  # Now see if the compiler is really GCC.
-  with_gcc=no
-  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
-  echo "$progname:581: checking whether we are using GNU C" >&5
-
-  $rm conftest.c
-  cat > conftest.c <<EOF
-#ifdef __GNUC__
-  yes;
-#endif
-EOF
-  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
-    with_gcc=yes
-  fi
-  $rm conftest.c
-  echo "$ac_t$with_gcc" 1>&6
-fi
-
-# Allow CC to be a program name with arguments.
-set dummy $CC
-compiler="$2"
-
-echo $ac_n "checking for object suffix... $ac_c" 1>&6
-$rm conftest*
-echo 'int i = 1;' > conftest.c
-echo "$progname:603: checking for object suffix" >& 5
-if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
-  # Append any warnings to the config.log.
-  cat conftest.err 1>&5
-
-  for ac_file in conftest.*; do
-    case $ac_file in
-    *.c) ;;
-    *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
-    esac
-  done
-else
-  cat conftest.err 1>&5
-  echo "$progname: failed program was:" >&5
-  cat conftest.c >&5
-fi
-$rm conftest*
-echo "$ac_t$objext" 1>&6
-
-echo $ac_n "checking for executable suffix... $ac_c" 1>&6
-if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  ac_cv_exeext="no"
-  $rm conftest*
-  echo 'main () { return 0; }' > conftest.c
-  echo "$progname:629: checking for executable suffix" >& 5
-  if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
-    # Append any warnings to the config.log.
-    cat conftest.err 1>&5
-
-    for ac_file in conftest.*; do
-      case $ac_file in
-      *.c | *.err | *.$objext ) ;;
-      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
-      esac
-    done
-  else
-    cat conftest.err 1>&5
-    echo "$progname: failed program was:" >&5
-    cat conftest.c >&5
-  fi
-  $rm conftest*
-fi
-if test "X$ac_cv_exeext" = Xno; then
-  exeext=""
-else
-  exeext="$ac_cv_exeext"
-fi
-echo "$ac_t$ac_cv_exeext" 1>&6
-
-echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
-pic_flag=
-special_shlib_compile_flags=
-wl=
-link_static_flag=
-no_builtin_flag=
-
-if test "$with_gcc" = yes; then
-  wl='-Wl,'
-  link_static_flag='-static'
-
-  case "$host_os" in
-  beos* | irix5* | irix6* | osf3* | osf4*)
-    # PIC is the default for these OSes.
-    ;;
-  aix*)
-    # Below there is a dirty hack to force normal static linking with -ldl
-    # The problem is because libdl dynamically linked with both libc and
-    # libC (AIX C++ library), which obviously doesn't included in libraries
-    # list by gcc. This cause undefined symbols with -static flags.
-    # This hack allows C programs to be linked with "-static -ldl", but
-    # we not sure about C++ programs.
-    link_static_flag="$link_static_flag ${wl}-lC"
-    ;;
-  cygwin* | mingw* | os2*)
-    # We can build DLLs from non-PIC.
-    ;;
-  amigaos*)
-    # FIXME: we need at least 68020 code to build shared libraries, but
-    # adding the `-m68020' flag to GCC prevents building anything better,
-    # like `-m68040'.
-    pic_flag='-m68020 -resident32 -malways-restore-a4'
-    ;;
-  sysv4*MP*)
-    if test -d /usr/nec; then
-       pic_flag=-Kconform_pic
-    fi
-    ;;
-  *)
-    pic_flag='-fPIC'
-    ;;
-  esac
-else
-  # PORTME Check for PIC flags for the system compiler.
-  case "$host_os" in
-  aix3* | aix4*)
-    # All AIX code is PIC.
-    link_static_flag='-bnso -bI:/lib/syscalls.exp'
-    ;;
-
-  hpux9* | hpux10* | hpux11*)
-    # Is there a better link_static_flag that works with the bundled CC?
-    wl='-Wl,'
-    link_static_flag="${wl}-a ${wl}archive"
-    pic_flag='+Z'
-    ;;
-
-  irix5* | irix6*)
-    wl='-Wl,'
-    link_static_flag='-non_shared'
-    # PIC (with -KPIC) is the default.
-    ;;
-
-  cygwin* | mingw* | os2*)
-    # We can build DLLs from non-PIC.
-    ;;
-
-  osf3* | osf4*)
-    # All OSF/1 code is PIC.
-    wl='-Wl,'
-    link_static_flag='-non_shared'
-    ;;
-
-  sco3.2v5*)
-    pic_flag='-Kpic'
-    link_static_flag='-dn'
-    special_shlib_compile_flags='-belf'
-    ;;
-
-  solaris*)
-    pic_flag='-KPIC'
-    link_static_flag='-Bstatic'
-    wl='-Wl,'
-    ;;
-
-  sunos4*)
-    pic_flag='-PIC'
-    link_static_flag='-Bstatic'
-    wl='-Qoption ld '
-    ;;
-
-  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
-    pic_flag='-KPIC'
-    link_static_flag='-Bstatic'
-    wl='-Wl,'
-    ;;
-
-  uts4*)
-    pic_flag='-pic'
-    link_static_flag='-Bstatic'
-    ;;
-  sysv4*MP*)
-    if test -d /usr/nec ;then
-      pic_flag='-Kconform_pic'
-      link_static_flag='-Bstatic'
-    fi
-    ;;
-  *)
-    can_build_shared=no
-    ;;
-  esac
-fi
-
-if test -n "$pic_flag"; then
-  echo "$ac_t$pic_flag" 1>&6
-
-  # Check to make sure the pic_flag actually works.
-  echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
-  $rm conftest*
-  echo "int some_variable = 0;" > conftest.c
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS $pic_flag -DPIC"
-  echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
-  if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
-    # Append any warnings to the config.log.
-    cat conftest.err 1>&5
-    
-    case "$host_os" in
-    hpux9* | hpux10* | hpux11*)
-      # On HP-UX, both CC and GCC only warn that PIC is supported... then they
-      # create non-PIC objects.  So, if there were any warnings, we assume that
-      # PIC is not supported.
-      if test -s conftest.err; then
-       echo "$ac_t"no 1>&6
-       can_build_shared=no
-       pic_flag=
-      else
-       echo "$ac_t"yes 1>&6
-       pic_flag=" $pic_flag"
-      fi
-      ;;
-    *)
-      echo "$ac_t"yes 1>&6
-      pic_flag=" $pic_flag"
-      ;;
-    esac
-  else
-    # Append any errors to the config.log.
-    cat conftest.err 1>&5
-    can_build_shared=no
-    pic_flag=
-    echo "$ac_t"no 1>&6
-  fi
-  CFLAGS="$save_CFLAGS"
-  $rm conftest*
-else
-  echo "$ac_t"none 1>&6
-fi
-
-# Check to see if options -o and -c are simultaneously supported by compiler
-echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
-$rm -r conftest 2>/dev/null
-mkdir conftest
-cd conftest
-$rm conftest*
-echo "int some_variable = 0;" > conftest.c
-mkdir out
-# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
-# that will create temporary files in the current directory regardless of
-# the output directory.  Thus, making CWD read-only will cause this test
-# to fail, enabling locking or at least warning the user not to do parallel
-# builds.
-chmod -w .
-save_CFLAGS="$CFLAGS"
-CFLAGS="$CFLAGS -o out/conftest2.o"
-echo "$progname:829: checking if $compiler supports -c -o file.o" >&5
-if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
-
-  # The compiler can only warn and ignore the option if not recognized
-  # So say no if there are warnings
-    if test -s out/conftest.err; then
-      echo "$ac_t"no 1>&6
-      compiler_c_o=no
-    else
-      echo "$ac_t"yes 1>&6
-      compiler_c_o=yes
-    fi
-else
-  # Append any errors to the config.log.
-  cat out/conftest.err 1>&5
-  compiler_c_o=no
-  echo "$ac_t"no 1>&6
-fi
-CFLAGS="$save_CFLAGS"
-chmod u+w .
-$rm conftest* out/*
-rmdir out
-cd ..
-rmdir conftest
-$rm -r conftest 2>/dev/null
-
-if test x"$compiler_c_o" = x"yes"; then
-  # Check to see if we can write to a .lo
-  echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
-  $rm conftest*
-  echo "int some_variable = 0;" > conftest.c
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -c -o conftest.lo"
-  echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5
-if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
-
-    # The compiler can only warn and ignore the option if not recognized
-    # So say no if there are warnings
-      if test -s conftest.err; then
-       echo "$ac_t"no 1>&6
-       compiler_o_lo=no
-      else
-       echo "$ac_t"yes 1>&6
-       compiler_o_lo=yes
-      fi
-  else
-    # Append any errors to the config.log.
-    cat conftest.err 1>&5
-    compiler_o_lo=no
-    echo "$ac_t"no 1>&6
-  fi
-  CFLAGS="$save_CFLAGS"
-  $rm conftest*
-else
-  compiler_o_lo=no
-fi
-
-# Check to see if we can do hard links to lock some files if needed
-hard_links="nottested"
-if test "$compiler_c_o" = no && test "$need_locks" != no; then
-  # do not overwrite the value of need_locks provided by the user
-  echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
-  hard_links=yes
-  $rm conftest*
-  ln conftest.a conftest.b 2>/dev/null && hard_links=no
-  touch conftest.a
-  ln conftest.a conftest.b 2>&5 || hard_links=no
-  ln conftest.a conftest.b 2>/dev/null && hard_links=no
-  echo "$ac_t$hard_links" 1>&6
-  $rm conftest*
-  if test "$hard_links" = no; then
-    echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
-    need_locks=warn
-  fi
-else
-  need_locks=no
-fi
-
-if test "$with_gcc" = yes; then
-  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
-  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
-  $rm conftest*
-  echo "int some_variable = 0;" > conftest.c
-  save_CFLAGS="$CFLAGS"
-  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
-  echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
-  if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
-
-    # The compiler can only warn and ignore the option if not recognized
-    # So say no if there are warnings
-      if test -s conftest.err; then
-       echo "$ac_t"no 1>&6
-       compiler_rtti_exceptions=no
-      else
-       echo "$ac_t"yes 1>&6
-       compiler_rtti_exceptions=yes
-      fi
-  else
-    # Append any errors to the config.log.
-    cat conftest.err 1>&5
-    compiler_rtti_exceptions=no
-    echo "$ac_t"no 1>&6
-  fi
-  CFLAGS="$save_CFLAGS"
-  $rm conftest*
-
-  if test "$compiler_rtti_exceptions" = "yes"; then
-    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
-  else
-    no_builtin_flag=' -fno-builtin'
-  fi
-  
-fi
-
-# Check for any special shared library compilation flags.
-if test -n "$special_shlib_compile_flags"; then
-  echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
-  if echo "$old_CC $old_CFLAGS " | egrep -e "[         ]$special_shlib_compile_flags[  ]" >/dev/null; then :
-  else
-    echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
-    can_build_shared=no
-  fi
-fi
-
-echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
-$rm conftest*
-echo 'main(){return(0);}' > conftest.c
-save_LDFLAGS="$LDFLAGS"
-LDFLAGS="$LDFLAGS $link_static_flag"
-echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5
-if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
-  echo "$ac_t$link_static_flag" 1>&6
-else
-  echo "$ac_t"none 1>&6
-  link_static_flag=
-fi
-LDFLAGS="$save_LDFLAGS"
-$rm conftest*
-
-if test -z "$LN_S"; then
-  # Check to see if we can use ln -s, or we need hard links.
-  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
-  $rm conftest.dat
-  if ln -s X conftest.dat 2>/dev/null; then
-    $rm conftest.dat
-    LN_S="ln -s"
-  else
-    LN_S=ln
-  fi
-  if test "$LN_S" = "ln -s"; then
-    echo "$ac_t"yes 1>&6
-  else
-    echo "$ac_t"no 1>&6
-  fi
-fi
-
-# Make sure LD is an absolute path.
-if test -z "$LD"; then
-  ac_prog=ld
-  if test "$with_gcc" = yes; then
-    # Check if gcc -print-prog-name=ld gives a path.
-    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
-    echo "$progname:991: checking for ld used by GCC" >&5
-    ac_prog=`($CC -print-prog-name=ld) 2>&5`
-    case "$ac_prog" in
-    # Accept absolute paths.
-    [\\/]* | [A-Za-z]:[\\/]*)
-      re_direlt='/[^/][^/]*/\.\./'
-      # Canonicalize the path of ld
-      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
-      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
-       ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
-      done
-      test -z "$LD" && LD="$ac_prog"
-      ;;
-    "")
-      # If it fails, then pretend we are not using GCC.
-      ac_prog=ld
-      ;;
-    *)
-      # If it is relative, then search for the first ld in PATH.
-      with_gnu_ld=unknown
-      ;;
-    esac
-  elif test "$with_gnu_ld" = yes; then
-    echo $ac_n "checking for GNU ld... $ac_c" 1>&6
-    echo "$progname:1015: checking for GNU ld" >&5
-  else
-    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
-    echo "$progname:1018: checking for non-GNU ld" >&5
-  fi
-
-  if test -z "$LD"; then
-    IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
-    for ac_dir in $PATH; do
-      test -z "$ac_dir" && ac_dir=.
-      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
-       LD="$ac_dir/$ac_prog"
-       # Check to see if the program is GNU ld.  I'd rather use --version,
-       # but apparently some GNU ld's only accept -v.
-       # Break only if it was the GNU/non-GNU ld that we prefer.
-       if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
-         test "$with_gnu_ld" != no && break
-       else
-         test "$with_gnu_ld" != yes && break
-       fi
-      fi
-    done
-    IFS="$ac_save_ifs"
-  fi
-
-  if test -n "$LD"; then
-    echo "$ac_t$LD" 1>&6
-  else
-    echo "$ac_t"no 1>&6
-  fi
-
-  if test -z "$LD"; then
-    echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
-    exit 1
-  fi
-fi
-
-# Check to see if it really is or is not GNU ld.
-echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
-# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
-  with_gnu_ld=yes
-else
-  with_gnu_ld=no
-fi
-echo "$ac_t$with_gnu_ld" 1>&6
-
-# See if the linker supports building shared libraries.
-echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
-
-allow_undefined_flag=
-no_undefined_flag=
-need_lib_prefix=unknown
-need_version=unknown
-# when you set need_version to no, make sure it does not cause -set_version
-# flags to be left without arguments
-archive_cmds=
-archive_expsym_cmds=
-old_archive_from_new_cmds=
-export_dynamic_flag_spec=
-whole_archive_flag_spec=
-thread_safe_flag_spec=
-hardcode_libdir_flag_spec=
-hardcode_libdir_separator=
-hardcode_direct=no
-hardcode_minus_L=no
-hardcode_shlibpath_var=unsupported
-runpath_var=
-always_export_symbols=no
-export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
-# include_expsyms should be a list of space-separated symbols to be *always*
-# included in the symbol list
-include_expsyms=
-# exclude_expsyms can be an egrep regular expression of symbols to exclude
-# it will be wrapped by ` (' and `)$', so one must not match beginning or
-# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
-# as well as any symbol that contains `d'.
-exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
-# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
-# platforms (ab)use it in PIC code, but their linkers get confused if
-# the symbol is explicitly referenced.  Since portable code cannot
-# rely on this symbol name, it's probably fine to never include it in
-# preloaded symbol tables.
-
-case "$host_os" in
-cygwin* | mingw*)
-  # FIXME: the MSVC++ port hasn't been tested in a loooong time
-  # When not using gcc, we currently assume that we are using
-  # Microsoft Visual C++.
-  if test "$with_gcc" != yes; then
-    with_gnu_ld=no
-  fi
-  ;;
-
-esac
-
-ld_shlibs=yes
-if test "$with_gnu_ld" = yes; then
-  # If archive_cmds runs LD, not CC, wlarc should be empty
-  wlarc='${wl}'
-
-  # See if GNU ld supports shared libraries.
-  case "$host_os" in
-  aix3* | aix4*)
-    # On AIX, the GNU linker is very broken
-    ld_shlibs=no
-    cat <<EOF 1>&2
-
-*** Warning: the GNU linker, at least up to release 2.9.1, is reported
-*** to be unable to reliably create shared libraries on AIX.
-*** Therefore, libtool is disabling shared libraries support.  If you
-*** really care for shared libraries, you may want to modify your PATH
-*** so that a non-GNU linker is found, and then restart.
-
-EOF
-    ;;
-
-  amigaos*)
-    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
-    hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_minus_L=yes
-
-    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
-    # that the semantics of dynamic libraries on AmigaOS, at least up
-    # to version 4, is to share data among multiple programs linked
-    # with the same dynamic library.  Since this doesn't match the
-    # behavior of shared libraries on other platforms, we can use
-    # them.
-    ld_shlibs=no
-    ;;
-
-  beos*)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
-      allow_undefined_flag=unsupported
-      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
-      # support --undefined.  This deserves some investigation.  FIXME
-      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
-    else
-      ld_shlibs=no
-    fi
-    ;;
-
-  cygwin* | mingw*)
-    # hardcode_libdir_flag_spec is actually meaningless, as there is
-    # no search path for DLLs.
-    hardcode_libdir_flag_spec='-L$libdir'
-    allow_undefined_flag=unsupported
-    always_export_symbols=yes
-
-    # Extract the symbol export list from an `--export-all' def file,
-    # then regenerate the def file from the symbol export list, so that
-    # the compiled dll only exports the symbol export list.
-    export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
-      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
-      $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
-      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'
-
-    archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
-      _lt_hint=1;
-      for symbol in `cat $export_symbols`; do
-       echo "  \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
-       _lt_hint=`expr 1 + \$_lt_hint`;
-      done~
-      test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
-      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
-      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
-      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
-      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
-      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'
-
-      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' 
-    ;;
-
-  netbsd*)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
-      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-    else
-      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
-      # can we support soname and/or expsyms with a.out? -oliva
-    fi
-    ;;
-
-  solaris*)
-    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
-      ld_shlibs=no
-      cat <<EOF 1>&2
-
-*** Warning: The releases 2.8.* of the GNU linker cannot reliably
-*** create shared libraries on Solaris systems.  Therefore, libtool
-*** is disabling shared libraries support.  We urge you to upgrade GNU
-*** binutils to release 2.9.1 or newer.  Another option is to modify
-*** your PATH or compiler configuration so that the native linker is
-*** used, and then restart.
-
-EOF
-    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
-      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-    else
-      ld_shlibs=no
-    fi
-    ;;      
-
-  sunos4*)
-    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
-    wlarc=
-    hardcode_direct=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  *)
-    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
-      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
-    else
-      ld_shlibs=no
-    fi
-    ;;
-  esac
-
-  if test "$ld_shlibs" = yes; then
-    runpath_var=LD_RUN_PATH
-    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
-    export_dynamic_flag_spec='${wl}--export-dynamic'
-    case $host_os in
-    cygwin* | mingw*)
-      # dlltool doesn't understand --whole-archive et. al.
-      whole_archive_flag_spec=
-      ;;
-    *)
-      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
-      ;;
-    esac
-  fi
-else
-  # PORTME fill in a description of your system's linker (not GNU ld)
-  case "$host_os" in
-  aix3*)
-    allow_undefined_flag=unsupported
-    always_export_symbols=yes
-    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
-    # Note: this linker hardcodes the directories in LIBPATH if there
-    # are no directories specified by -L.
-    hardcode_minus_L=yes
-    if test "$with_gcc" = yes && test -z "$link_static_flag"; then
-      # Neither direct hardcoding nor static linking is supported with a
-      # broken collect2.
-      hardcode_direct=unsupported
-    fi
-    ;;
-
-  aix4*)
-    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
-    hardcode_libdir_separator=':'
-    if test "$with_gcc" = yes; then
-      collect2name=`${CC} -print-prog-name=collect2`
-      if test -f "$collect2name" && \
-        strings "$collect2name" | grep resolve_lib_name >/dev/null
-      then
-       # We have reworked collect2
-       hardcode_direct=yes
-      else
-       # We have old collect2
-       hardcode_direct=unsupported
-       # It fails to find uninstalled libraries when the uninstalled
-       # path is not listed in the libpath.  Setting hardcode_minus_L
-       # to unsupported forces relinking
-       hardcode_minus_L=yes
-       hardcode_libdir_flag_spec='-L$libdir'
-       hardcode_libdir_separator=
-      fi
-      shared_flag='-shared'
-    else
-      shared_flag='${wl}-bM:SRE'
-      hardcode_direct=yes
-    fi
-    allow_undefined_flag=' ${wl}-berok'
-    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
-    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
-    case "$host_os" in aix4.[01]|aix4.[01].*)
-      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
-      always_export_symbols=yes ;;
-    esac
-   ;;
-
-  amigaos*)
-    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
-    hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_minus_L=yes
-    # see comment about different semantics on the GNU ld section
-    ld_shlibs=no
-    ;;
-
-  cygwin* | mingw*)
-    # When not using gcc, we currently assume that we are using
-    # Microsoft Visual C++.
-    # hardcode_libdir_flag_spec is actually meaningless, as there is
-    # no search path for DLLs.
-    hardcode_libdir_flag_spec=' '
-    allow_undefined_flag=unsupported
-    # Tell ltmain to make .lib files, not .a files.
-    libext=lib
-    # FIXME: Setting linknames here is a bad hack.
-    archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
-    # The linker will automatically build a .lib file if we build a DLL.
-    old_archive_from_new_cmds='true'
-    # FIXME: Should let the user specify the lib program.
-    old_archive_cmds='lib /OUT:$oldlib$oldobjs'
-    fix_srcfile_path='`cygpath -w $srcfile`'
-    ;;
-
-  freebsd1*)
-    ld_shlibs=no
-    ;;
-
-  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
-  # support.  Future versions do this automatically, but an explicit c++rt0.o
-  # does not break anything, and helps significantly (at the cost of a little
-  # extra space).
-  freebsd2.2*)
-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
-    hardcode_libdir_flag_spec='-R$libdir'
-    hardcode_direct=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
-  freebsd2*)
-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
-    hardcode_direct=yes
-    hardcode_minus_L=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
-  freebsd*)
-    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
-    hardcode_libdir_flag_spec='-R$libdir'
-    hardcode_direct=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  hpux9* | hpux10* | hpux11*)
-    case "$host_os" in
-    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
-    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
-    esac
-    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
-    hardcode_libdir_separator=:
-    hardcode_direct=yes
-    hardcode_minus_L=yes # Not in the search PATH, but as the default
-                        # location of the library.
-    export_dynamic_flag_spec='${wl}-E'
-    ;;
-
-  irix5* | irix6*)
-    if test "$with_gcc" = yes; then
-      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
-    else
-      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-    fi
-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-    hardcode_libdir_separator=:
-    ;;
-
-  netbsd*)
-    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
-      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'  # a.out
-    else
-      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts'      # ELF
-    fi
-    hardcode_libdir_flag_spec='${wl}-R$libdir'
-    hardcode_direct=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  openbsd*)
-    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
-    hardcode_libdir_flag_spec='-R$libdir'
-    hardcode_direct=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  os2*)
-    hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_minus_L=yes
-    allow_undefined_flag=unsupported
-    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
-    old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
-    ;;
-
-  osf3* | osf4*)
-    if test "$with_gcc" = yes; then
-      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
-      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
-    else
-      allow_undefined_flag=' -expect_unresolved \*'
-      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-    fi
-    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
-    hardcode_libdir_separator=:
-    ;;
-
-  sco3.2v5*)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
-    hardcode_shlibpath_var=no
-    runpath_var=LD_RUN_PATH
-    hardcode_runpath_var=yes
-    ;;
-
-  solaris*)
-    no_undefined_flag=' -z text'
-    # $CC -shared without GNU ld will not create a library from C++
-    # object files and a static libstdc++, better avoid it by now
-    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
-    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
-               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
-    hardcode_libdir_flag_spec='-R$libdir'
-    hardcode_shlibpath_var=no
-    case "$host_os" in
-    solaris2.[0-5] | solaris2.[0-5].*) ;;
-    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
-      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
-    esac
-    ;;
-
-  sunos4*)
-    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
-    hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_direct=yes
-    hardcode_minus_L=yes
-    hardcode_shlibpath_var=no
-    ;;
-
-  sysv4)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
-    runpath_var='LD_RUN_PATH'
-    hardcode_shlibpath_var=no
-    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
-    ;;  
-
-  sysv4.3*)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
-    hardcode_shlibpath_var=no
-    export_dynamic_flag_spec='-Bexport'
-    ;;
-
-  uts4*)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
-    hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_shlibpath_var=no
-    ;;
-
-  dgux*)
-    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
-    hardcode_libdir_flag_spec='-L$libdir'
-    hardcode_shlibpath_var=no
-    ;;
-
-  sysv4*MP*)
-    if test -d /usr/nec ;then
-    # archive_cmds='$LD -G -z text -h $soname -o $lib$libobjs$deplibs'
-    archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
-    hardcode_shlibpath_var=no
-    runpath_var=LD_RUN_PATH
-    hardcode_runpath_var=yes
-    ld_shlibs=yes
-    fi
-    ;;
-
-  *)
-    ld_shlibs=no
-    ;;
-  esac
-fi
-echo "$ac_t$ld_shlibs" 1>&6
-test "$ld_shlibs" = no && can_build_shared=no
-
-if test -z "$NM"; then
-  echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
-  case "$NM" in
-  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
-  *)
-    IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
-    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
-      test -z "$ac_dir" && ac_dir=.
-      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
-       # Check to see if the nm accepts a BSD-compat flag.
-       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
-       #   nm: unknown option "B" ignored
-       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
-         NM="$ac_dir/nm -B"
-         break
-       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
-         NM="$ac_dir/nm -p"
-         break
-       else
-         NM=${NM="$ac_dir/nm"} # keep the first match, but
-         continue # so that we can try to find one that supports BSD flags
-       fi
-      fi
-    done
-    IFS="$ac_save_ifs"
-    test -z "$NM" && NM=nm
-    ;;
-  esac
-  echo "$ac_t$NM" 1>&6
-fi
-
-# Check for command to grab the raw symbol name followed by C symbol from nm.
-echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
-
-# These are sane defaults that work on at least a few old systems.
-# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
-
-# Character class describing NM global symbol codes.
-symcode='[BCDEGRST]'
-
-# Regexp to match symbols that can be accessed directly from C.
-sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
-
-# Transform the above into a raw symbol and a C symbol.
-symxfrm='\1 \2\3 \3'
-
-# Transform an extracted symbol line into a proper C declaration
-global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
-
-# Define system-specific variables.
-case "$host_os" in
-aix*)
-  symcode='[BCDT]'
-  ;;
-cygwin* | mingw*)
-  symcode='[ABCDGISTW]'
-  ;;
-hpux*) # Its linker distinguishes data from code symbols
-  global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
-  ;;
-irix*)
-  symcode='[BCDEGRST]'
-  ;;
-solaris*)
-  symcode='[BDT]'
-  ;;
-sysv4)
-  symcode='[DFNSTU]'
-  ;;
-esac
-
-# If we're using GNU nm, then use its standard symbol codes.
-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
-  symcode='[ABCDGISTW]'
-fi
-
-# Try without a prefix undercore, then with it.
-for ac_symprfx in "" "_"; do
-
-  # Write the raw and C identifiers.
-  global_symbol_pipe="sed -n -e 's/^.*[        ]\($symcode\)[  ][      ]*\($ac_symprfx\)$sympat$/$symxfrm/p'"
-
-  # Check to see that the pipe works correctly.
-  pipe_works=no
-  $rm conftest*
-  cat > conftest.c <<EOF
-#ifdef __cplusplus
-extern "C" {
-#endif
-char nm_test_var;
-void nm_test_func(){}
-#ifdef __cplusplus
-}
-#endif
-main(){nm_test_var='a';nm_test_func();return(0);}
-EOF
-
-  echo "$progname:1592: checking if global_symbol_pipe works" >&5
-  if { (eval echo $progname:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
-    # Now try to grab the symbols.
-    nlist=conftest.nm
-    if { echo "$progname:1596: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
-
-      # Try sorting and uniquifying the output.
-      if sort "$nlist" | uniq > "$nlist"T; then
-       mv -f "$nlist"T "$nlist"
-      else
-       rm -f "$nlist"T
-      fi
-
-      # Make sure that we snagged all the symbols we need.
-      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
-       if egrep ' nm_test_func$' "$nlist" >/dev/null; then
-         cat <<EOF > conftest.c
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-EOF
-         # Now generate the symbol file.
-         eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c'
-
-         cat <<EOF >> conftest.c
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
-  const char *name;
-  lt_ptr_t address;
-}
-lt_preloaded_symbols[] =
-{
-EOF
-         sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c
-         cat <<\EOF >> conftest.c
-  {0, (lt_ptr_t) 0}
-};
-
-#ifdef __cplusplus
-}
-#endif
-EOF
-         # Now try linking the two files.
-         mv conftest.$objext conftstm.$objext
-         save_LIBS="$LIBS"
-         save_CFLAGS="$CFLAGS"
-         LIBS="conftstm.$objext"
-         CFLAGS="$CFLAGS$no_builtin_flag"
-         if { (eval echo $progname:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
-           pipe_works=yes
-         else
-           echo "$progname: failed program was:" >&5
-           cat conftest.c >&5
-         fi
-         LIBS="$save_LIBS"
-       else
-         echo "cannot find nm_test_func in $nlist" >&5
-       fi
-      else
-       echo "cannot find nm_test_var in $nlist" >&5
-      fi
-    else
-      echo "cannot run $global_symbol_pipe" >&5
-    fi
-  else
-    echo "$progname: failed program was:" >&5
-    cat conftest.c >&5
-  fi
-  $rm conftest* conftst*
-
-  # Do not use the global_symbol_pipe unless it works.
-  if test "$pipe_works" = yes; then
-    break
-  else
-    global_symbol_pipe=
-  fi
-done
-if test "$pipe_works" = yes; then
-  echo "${ac_t}ok" 1>&6
-else
-  echo "${ac_t}failed" 1>&6
-fi
-
-if test -z "$global_symbol_pipe"; then
-  global_symbol_to_cdecl=
-fi
-
-# Check hardcoding attributes.
-echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
-hardcode_action=
-if test -n "$hardcode_libdir_flag_spec" || \
-   test -n "$runpath_var"; then
-
-  # We can hardcode non-existant directories.
-  if test "$hardcode_direct" != no &&
-     # If the only mechanism to avoid hardcoding is shlibpath_var, we
-     # have to relink, otherwise we might link with an installed library
-     # when we should be linking with a yet-to-be-installed one
-     ## test "$hardcode_shlibpath_var" != no &&
-     test "$hardcode_minus_L" != no; then
-    # Linking always hardcodes the temporary library directory.
-    hardcode_action=relink
-  else
-    # We can link without hardcoding, and we can hardcode nonexisting dirs.
-    hardcode_action=immediate
-  fi
-else
-  # We cannot hardcode anything, or else we can only hardcode existing
-  # directories.
-  hardcode_action=unsupported
-fi
-echo "$ac_t$hardcode_action" 1>&6
-
-
-reload_flag=
-reload_cmds='$LD$reload_flag -o $output$reload_objs'
-echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
-# PORTME Some linkers may need a different reload flag.
-reload_flag='-r'
-echo "$ac_t$reload_flag" 1>&6
-test -n "$reload_flag" && reload_flag=" $reload_flag"
-
-# PORTME Fill in your ld.so characteristics
-library_names_spec=
-libname_spec='lib$name'
-soname_spec=
-postinstall_cmds=
-postuninstall_cmds=
-finish_cmds=
-finish_eval=
-shlibpath_var=
-shlibpath_overrides_runpath=unknown
-version_type=none
-dynamic_linker="$host_os ld.so"
-sys_lib_dlsearch_path_spec="/lib /usr/lib"
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
-file_magic_cmd=
-file_magic_test_file=
-deplibs_check_method='unknown'
-# Need to set the preceding variable on all platforms that support
-# interlibrary dependencies.
-# 'none' -- dependencies not supported.
-# `unknown' -- same as none, but documents that we really don't know.
-# 'pass_all' -- all dependencies passed with no checks.
-# 'test_compile' -- check by making test program.
-# 'file_magic [regex]' -- check by looking for files in library path
-# which responds to the $file_magic_cmd with a given egrep regex.
-# If you have `file' or equivalent on your system and you're not sure
-# whether `pass_all' will *always* work, you probably want this one.
-echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
-case "$host_os" in
-aix3*)
-  version_type=linux
-  library_names_spec='${libname}${release}.so$versuffix $libname.a'
-  shlibpath_var=LIBPATH
-
-  # AIX has no versioning support, so we append a major version to the name.
-  soname_spec='${libname}${release}.so$major'
-  ;;
-
-aix4*)
-  version_type=linux
-  # AIX has no versioning support, so currently we can not hardcode correct
-  # soname into executable. Probably we can add versioning support to
-  # collect2, so additional links can be useful in future.
-  # We preserve .a as extension for shared libraries though AIX4.2
-  # and later linker supports .so
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
-  shlibpath_var=LIBPATH
-  deplibs_check_method=pass_all
-  ;;
-
-amigaos*)
-  library_names_spec='$libname.ixlibrary $libname.a'
-  # Create ${libname}_ixlibrary.a entries in /sys/libs.
-  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
-  ;;
-
-beos*)
-  library_names_spec='${libname}.so'
-  dynamic_linker="$host_os ld.so"
-  shlibpath_var=LIBRARY_PATH
-  deplibs_check_method=pass_all
-  lt_cv_dlopen="load_add_on"
-  lt_cv_dlopen_libs=
-  lt_cv_dlopen_self=yes
-  ;;
-
-bsdi4*)
-  version_type=linux
-  library_names_spec='${libname}.so$major ${libname}.so'
-  soname_spec='${libname}.so'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
-  file_magic_cmd=/usr/bin/file
-  file_magic_test_file=/shlib/libc.so
-  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
-  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
-  # the default ld.so.conf also contains /usr/contrib/lib and
-  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
-  # libtool to hard-code these into programs
-  ;;
-
-cygwin* | mingw*)
-  version_type=windows
-  need_version=no
-  need_lib_prefix=no
-  if test "$with_gcc" = yes; then
-    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a'
-  else
-    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
-  fi
-  dynamic_linker='Win32 ld.exe'
-  deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
-  file_magic_cmd='${OBJDUMP} -f'
-  # FIXME: first we should search . and the directory the executable is in
-  shlibpath_var=PATH
-  lt_cv_dlopen="LoadLibrary"
-  lt_cv_dlopen_libs=
-  ;;
-
-freebsd1*)
-  dynamic_linker=no
-  ;;
-  
-freebsd*)
-  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
-  version_type=freebsd-$objformat
-  case "$version_type" in
-    freebsd-elf*)
-      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
-      file_magic_cmd=/usr/bin/file
-      file_magic_test_file=`echo /usr/lib/libc.so*`
-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
-      need_version=no
-      need_lib_prefix=no
-      ;;
-    freebsd-*)
-      deplibs_check_method=unknown
-      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
-      need_version=yes
-      ;;
-  esac
-  finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  case "$host_os" in
-  freebsd2* | freebsd3.[01]*)
-    shlibpath_overrides_runpath=yes
-    ;;
-  *) # from 3.2 on
-    shlibpath_overrides_runpath=no
-    ;;
-  esac
-  ;;
-
-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
-  soname_spec='${libname}${release}.so$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-hpux9* | hpux10* | hpux11*)
-  # Give a soname corresponding to the major version so that dld.sl refuses to
-  # link against other versions.
-  dynamic_linker="$host_os dld.sl"
-  version_type=sunos
-  need_lib_prefix=no
-  need_version=no
-  shlibpath_var=SHLIB_PATH
-  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
-  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
-  soname_spec='${libname}${release}.sl$major'
-  # HP-UX runs *really* slowly unless shared libraries are mode 555.
-  postinstall_cmds='chmod 555 $lib'
-  ;;
-
-irix5* | irix6*)
-  version_type=irix
-  need_lib_prefix=no
-  need_version=no
-  soname_spec='${libname}${release}.so.$major'
-  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
-  case "$host_os" in
-  irix5*)
-    libsuff= shlibsuff=
-    # this will be overridden with pass_all, but let us keep it just in case
-    deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
-    ;;
-  *)
-    case "$LD" in # libtool.m4 will add one of these switches to LD
-    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
-    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
-    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
-    *) libsuff= shlibsuff= libmagic=never-match;;
-    esac
-    # this will be overridden with pass_all, but let us keep it just in case
-    deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
-    ;;
-  esac
-  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
-  shlibpath_overrides_runpath=no
-  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
-  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
-  file_magic_cmd=/usr/bin/file
-  file_magic_test_file=`echo /lib${libsuff}/libc.so*`
-  deplibs_check_method='pass_all'
-  ;;
-
-# No shared lib support for Linux oldld, aout, or coff.
-linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
-  dynamic_linker=no
-  ;;
-
-# This must be Linux ELF.
-linux-gnu*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-  soname_spec='${libname}${release}.so$major'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
-  file_magic_cmd=/usr/bin/file
-  file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
-
-  if test -f /lib/ld.so.1; then
-    dynamic_linker='GNU ld.so'
-  else
-    # Only the GNU ld.so supports shared libraries on MkLinux.
-    case "$host_cpu" in
-    powerpc*) dynamic_linker=no ;;
-    *) dynamic_linker='Linux ld.so' ;;
-    esac
-  fi
-  ;;
-
-netbsd*)
-  version_type=sunos
-  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
-    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
-    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
-    dynamic_linker='NetBSD (a.out) ld.so'
-  else
-    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
-    soname_spec='${libname}${release}.so$major'
-    dynamic_linker='NetBSD ld.elf_so'
-  fi
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-openbsd*)
-  version_type=sunos
-  if test "$with_gnu_ld" = yes; then
-    need_lib_prefix=no
-    need_version=no
-  fi
-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
-  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-os2*)
-  libname_spec='$name'
-  need_lib_prefix=no
-  library_names_spec='$libname.dll $libname.a'
-  dynamic_linker='OS/2 ld.exe'
-  shlibpath_var=LIBPATH
-  ;;
-
-osf3* | osf4*)
-  version_type=osf
-  need_version=no
-  soname_spec='${libname}${release}.so'
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
-  shlibpath_var=LD_LIBRARY_PATH
-  # this will be overridden with pass_all, but let us keep it just in case
-  deplibs_check_method='file_magic COFF format alpha shared library'
-  file_magic_cmd=/usr/bin/file
-  file_magic_test_file=/shlib/libc.so
-  deplibs_check_method='pass_all'
-  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
-  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
-  ;;
-
-sco3.2v5*)
-  version_type=osf
-  soname_spec='${libname}${release}.so$major'
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-solaris*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-  soname_spec='${libname}${release}.so$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  # ldd complains unless libraries are executable
-  postinstall_cmds='chmod +x $lib'
-  deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"
-  file_magic_cmd=/usr/bin/file
-  file_magic_test_file=/lib/libc.so
-  ;;
-
-sunos4*)
-  version_type=sunos
-  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
-  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=yes
-  if test "$with_gnu_ld" = yes; then
-    need_lib_prefix=no
-  fi
-  need_version=yes
-  ;;
-
-sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
-  version_type=linux
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-  soname_spec='${libname}${release}.so$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  case "$host_vendor" in
-    ncr)
-      deplibs_check_method='pass_all'
-      ;;
-    motorola)
-      need_lib_prefix=no
-      need_version=no
-      shlibpath_overrides_runpath=no
-      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
-      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
-      file_magic_cmd=/usr/bin/file
-      file_magic_test_file=`echo /usr/lib/libc.so*`
-      ;;
-  esac
-  ;;
-
-uts4*)
-  version_type=linux
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-  soname_spec='${libname}${release}.so$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-dgux*)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-  soname_spec='${libname}${release}.so$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  ;;
-
-sysv4*MP*)
-  if test -d /usr/nec ;then
-    version_type=linux
-    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
-    soname_spec='$libname.so.$major'
-    shlibpath_var=LD_LIBRARY_PATH
-  fi
-  ;;
-
-*)
-  dynamic_linker=no
-  ;;
-esac
-echo "$ac_t$dynamic_linker" 1>&6
-test "$dynamic_linker" = no && can_build_shared=no
-
-# Report the final consequences.
-echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
-
-# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
-# configure.in, otherwise build static only libraries.
-case "$host_os" in
-cygwin* | mingw* | os2*)
-  if test x$can_build_shared = xyes; then
-    test x$enable_win32_dll = xno && can_build_shared=no
-    echo "checking if package supports dlls... $can_build_shared" 1>&6
-  fi
-;;
-esac
-
-if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
-  case "$deplibs_check_method" in
-  "file_magic "*)
-    file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
-    if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
-       egrep "$file_magic_regex" > /dev/null; then
-      :
-    else
-      cat <<EOF 1>&2
-
-*** Warning: the command libtool uses to detect shared libraries,
-*** $file_magic_cmd, produces output that libtool cannot recognize.
-*** The result is that libtool may fail to recognize shared libraries
-*** as such.  This will affect the creation of libtool libraries that
-*** depend on shared libraries, but programs linked with such libtool
-*** libraries will work regardless of this problem.  Nevertheless, you
-*** may want to report the problem to your system manager and/or to
-*** bug-libtool@gnu.org
-
-EOF
-    fi ;;
-  esac
-fi
-
-echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
-test "$can_build_shared" = "no" && enable_shared=no
-
-# On AIX, shared libraries and static libraries use the same namespace, and
-# are all built from PIC.
-case "$host_os" in
-aix3*)
-  test "$enable_shared" = yes && enable_static=no
-  if test -n "$RANLIB"; then
-    archive_cmds="$archive_cmds~\$RANLIB \$lib"
-    postinstall_cmds='$RANLIB $lib'
-  fi
-  ;;
-
-aix4*)
-  test "$enable_shared" = yes && enable_static=no
-  ;;
-esac
-
-echo "$ac_t$enable_shared" 1>&6
-
-# Make sure either enable_shared or enable_static is yes.
-test "$enable_shared" = yes || enable_static=yes
-
-echo "checking whether to build static libraries... $enable_static" 1>&6
-
-if test "$hardcode_action" = relink; then
-  # Fast installation is not supported
-  enable_fast_install=no
-elif test "$shlibpath_overrides_runpath" = yes ||
-     test "$enable_shared" = no; then
-  # Fast installation is not necessary
-  enable_fast_install=needless
-fi
-
-echo $ac_n "checking for objdir... $ac_c" 1>&6
-rm -f .libs 2>/dev/null
-mkdir .libs 2>/dev/null
-if test -d .libs; then
-  objdir=.libs
-else
-  # MS-DOS does not allow filenames that begin with a dot.
-  objdir=_libs
-fi
-rmdir .libs 2>/dev/null
-echo "$ac_t$objdir" 1>&6
-
-if test "x$enable_dlopen" != xyes; then
-  enable_dlopen=unknown
-  enable_dlopen_self=unknown
-  enable_dlopen_self_static=unknown
-else
-if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
-  lt_cv_dlopen=no lt_cv_dlopen_libs=
-echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "$progname:2170: checking for dlopen in -ldl" >&5
-ac_lib_var=`echo dl'_'dlopen | 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 2178 "ltconfig"
-/* 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 dlopen();
-
-int main() {
-dlopen()
-; return 0; }
-EOF
-if { (eval echo $progname:2188: \"$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 "$progname: 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
-  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
-else
-  echo "$ac_t""no" 1>&6
-echo $ac_n "checking for dlopen""... $ac_c" 1>&6
-echo "$progname:2207: checking for dlopen" >&5
-if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2212 "ltconfig"
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char dlopen(); 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 dlopen();
-
-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_dlopen) || defined (__stub___dlopen)
-choke me
-#else
-dlopen();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo $progname:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_dlopen=yes"
-else
-  echo "$progname: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_dlopen=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  lt_cv_dlopen="dlopen"
-else
-  echo "$ac_t""no" 1>&6
-echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
-echo "$progname:2251: checking for dld_link in -ldld" >&5
-ac_lib_var=`echo dld'_'dld_link | 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="-ldld  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2259 "ltconfig"
-/* 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 dld_link();
-
-int main() {
-dld_link()
-; return 0; }
-EOF
-if { (eval echo $progname:2269: \"$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 "$progname: 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
-  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
-else
-  echo "$ac_t""no" 1>&6
-echo $ac_n "checking for shl_load""... $ac_c" 1>&6
-echo "$progname:2288: checking for shl_load" >&5
-if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2293 "ltconfig"
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char shl_load(); 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 shl_load();
-
-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_shl_load) || defined (__stub___shl_load)
-choke me
-#else
-shl_load();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo $progname:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_shl_load=yes"
-else
-  echo "$progname: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_shl_load=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  lt_cv_dlopen="shl_load"
-else
-  echo "$ac_t""no" 1>&6
-echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
-echo "$progname:2333: checking for shl_load in -ldld" >&5
-ac_lib_var=`echo dld'_'shl_load | 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="-ldld  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2341 "ltconfig"
-#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 shl_load();
-
-int main() {
-shl_load()
-; return 0; }
-EOF
-if { (eval echo $progname:2352: \"$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 "$progname: 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
-  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
-else
-  echo "$ac_t""no" 1>&6
-fi
-
-
-fi
-
-    
-fi
-
-  
-fi
-
-
-fi
-
-fi
-
-  if test "x$lt_cv_dlopen" != xno; then
-    enable_dlopen=yes
-  fi
-
-  case "$lt_cv_dlopen" in
-  dlopen)
-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 "$progname:2395: 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 2400 "ltconfig"
-#include <$ac_hdr>
-int fnord = 0;
-EOF
-ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo $progname:2405: \"$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 "$progname: 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
-else
-  echo "$ac_t""no" 1>&6
-fi
-done
-
-    if test "x$ac_cv_header_dlfcn_h" = xyes; then
-      CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
-    fi
-    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
-    LIBS="$lt_cv_dlopen_libs $LIBS"
-
-  echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
-echo "$progname:2433: checking whether a program can dlopen itself" >&5
-if test "${lt_cv_dlopen_self+set}" = set; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  if test "$cross_compiling" = yes; then
-    lt_cv_dlopen_self=cross
-  else
-    cat > conftest.c <<EOF
-#line 2441 "ltconfig"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LTDL_GLOBAL   RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-#  define LTDL_GLOBAL  DL_GLOBAL
-# else
-#  define LTDL_GLOBAL  0
-# endif
-#endif
-
-/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
-   find out it does not work in some platform. */
-#ifndef LTDL_LAZY_OR_NOW
-# ifdef RTLD_LAZY
-#  define LTDL_LAZY_OR_NOW     RTLD_LAZY
-# else
-#  ifdef DL_LAZY
-#   define LTDL_LAZY_OR_NOW    DL_LAZY
-#  else
-#   ifdef RTLD_NOW
-#    define LTDL_LAZY_OR_NOW   RTLD_NOW
-#   else
-#    ifdef DL_NOW
-#     define LTDL_LAZY_OR_NOW  DL_NOW
-#    else
-#     define LTDL_LAZY_OR_NOW  0
-#    endif
-#   endif
-#  endif
-# endif
-#endif
-
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
-    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
-              if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
-
-EOF
-if { (eval echo $progname:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
-then
-  lt_cv_dlopen_self=yes
-else
-  echo "$progname: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -fr conftest*
-  lt_cv_dlopen_self=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$lt_cv_dlopen_self" 1>&6
-
-  if test "$lt_cv_dlopen_self" = yes; then
-    LDFLAGS="$LDFLAGS $link_static_flag"
-  echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
-echo "$progname:2506: checking whether a statically linked program can dlopen itself" >&5
-if test "${lt_cv_dlopen_self_static+set}" = set; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  if test "$cross_compiling" = yes; then
-    lt_cv_dlopen_self_static=cross
-  else
-    cat > conftest.c <<EOF
-#line 2514 "ltconfig"
-
-#if HAVE_DLFCN_H
-#include <dlfcn.h>
-#endif
-
-#include <stdio.h>
-
-#ifdef RTLD_GLOBAL
-# define LTDL_GLOBAL   RTLD_GLOBAL
-#else
-# ifdef DL_GLOBAL
-#  define LTDL_GLOBAL  DL_GLOBAL
-# else
-#  define LTDL_GLOBAL  0
-# endif
-#endif
-
-/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
-   find out it does not work in some platform. */
-#ifndef LTDL_LAZY_OR_NOW
-# ifdef RTLD_LAZY
-#  define LTDL_LAZY_OR_NOW     RTLD_LAZY
-# else
-#  ifdef DL_LAZY
-#   define LTDL_LAZY_OR_NOW    DL_LAZY
-#  else
-#   ifdef RTLD_NOW
-#    define LTDL_LAZY_OR_NOW   RTLD_NOW
-#   else
-#    ifdef DL_NOW
-#     define LTDL_LAZY_OR_NOW  DL_NOW
-#    else
-#     define LTDL_LAZY_OR_NOW  0
-#    endif
-#   endif
-#  endif
-# endif
-#endif
-
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
-    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
-    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
-
-EOF
-if { (eval echo $progname:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
-then
-  lt_cv_dlopen_self_static=yes
-else
-  echo "$progname: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -fr conftest*
-  lt_cv_dlopen_self_static=no
-fi
-rm -fr conftest*
-fi
-
-fi
-
-echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
-fi
-    ;;
-  esac
-
-  case "$lt_cv_dlopen_self" in
-  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
-  *) enable_dlopen_self=unknown ;;
-  esac
-
-  case "$lt_cv_dlopen_self_static" in
-  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
-  *) enable_dlopen_self_static=unknown ;;
-  esac
-fi
-
-# Copy echo and quote the copy, instead of the original, because it is
-# used later.
-ltecho="$echo"
-if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then
-   ltecho="$CONFIG_SHELL \$0 --fallback-echo"
-fi
-LTSHELL="$SHELL"
-
-LTCONFIG_VERSION="$VERSION"
-
-# Only quote variables if we're using ltmain.sh.
-case "$ltmain" in
-*.sh)
-  # Now quote all the things that may contain metacharacters.
-  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
-    old_LD old_LDFLAGS old_LIBS \
-    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
-    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
-    reload_flag reload_cmds wl \
-    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
-    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
-    library_names_spec soname_spec \
-    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
-    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
-    file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
-    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
-    hardcode_libdir_flag_spec hardcode_libdir_separator  \
-    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
-    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
-
-    case "$var" in
-    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
-    old_postinstall_cmds | old_postuninstall_cmds | \
-    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
-    postinstall_cmds | postuninstall_cmds | \
-    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
-      # Double-quote double-evaled strings.
-      eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
-      ;;
-    *)
-      eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
-      ;;
-    esac
-  done
-
-  case "$ltecho" in
-  *'\$0 --fallback-echo"')
-    ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
-    ;;
-  esac
-
-  trap "$rm \"$ofile\"; exit 1" 1 2 15
-  echo "creating $ofile"
-  $rm "$ofile"
-  cat <<EOF > "$ofile"
-#! $SHELL
-
-# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
-#
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
-# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (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.
-
-# Sed that helps us avoid accidentally triggering echo(1) options like -n.
-Xsed="sed -e s/^X//"
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
-
-### BEGIN LIBTOOL CONFIG
-EOF
-  cfgfile="$ofile"
-  ;;
-
-*)
-  # Double-quote the variables that need it (for aesthetics).
-  for var in old_CC old_CFLAGS old_CPPFLAGS \
-    old_LD old_LDFLAGS old_LIBS \
-    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
-    eval "$var=\\\"\$var\\\""
-  done
-
-  # Just create a config file.
-  cfgfile="$ofile.cfg"
-  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
-  echo "creating $cfgfile"
-  $rm "$cfgfile"
-  cat <<EOF > "$cfgfile"
-# `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file.
-# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
-EOF
-  ;;
-esac
-
-cat <<EOF >> "$cfgfile"
-# Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-#
-# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
-# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
-# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
-# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
-#   $0$ltconfig_args
-#
-# Compiler and other test output produced by $progname, useful for
-# debugging $progname, is in ./config.log if it exists.
-
-# The version of $progname that generated this script.
-LTCONFIG_VERSION=$LTCONFIG_VERSION
-
-# Shell to use when invoking shell scripts.
-SHELL=$LTSHELL
-
-# Whether or not to build shared libraries.
-build_libtool_libs=$enable_shared
-
-# Whether or not to build static libraries.
-build_old_libs=$enable_static
-
-# Whether or not to optimize for fast installation.
-fast_install=$enable_fast_install
-
-# The host system.
-host_alias=$host_alias
-host=$host
-
-# An echo program that does not interpret backslashes.
-echo=$ltecho
-
-# The archiver.
-AR=$AR
-
-# The default C compiler.
-CC=$CC
-
-# The linker used to build libraries.
-LD=$LD
-
-# Whether we need hard or soft links.
-LN_S=$LN_S
-
-# A BSD-compatible nm program.
-NM=$NM
-
-# Used on cygwin: DLL creation program.
-DLLTOOL="$DLLTOOL"
-
-# Used on cygwin: object dumper.
-OBJDUMP="$OBJDUMP"
-
-# Used on cygwin: assembler.
-AS="$AS"
-
-# The name of the directory that contains temporary libtool files.
-objdir=$objdir
-
-# How to create reloadable object files.
-reload_flag=$reload_flag
-reload_cmds=$reload_cmds
-
-# How to pass a linker flag through the compiler.
-wl=$wl
-
-# Object file suffix (normally "o").
-objext="$objext"
-
-# Old archive suffix (normally "a").
-libext="$libext"
-
-# Executable file suffix (normally "").
-exeext="$exeext"
-
-# Additional compiler flags for building library objects.
-pic_flag=$pic_flag
-
-# Does compiler simultaneously support -c and -o options?
-compiler_c_o=$compiler_c_o
-
-# Can we write directly to a .lo ?
-compiler_o_lo=$compiler_o_lo
-
-# Must we lock files when doing compilation ?
-need_locks=$need_locks
-
-# Do we need the lib prefix for modules?
-need_lib_prefix=$need_lib_prefix
-
-# Do we need a version for libraries?
-need_version=$need_version
-
-# Whether dlopen is supported.
-dlopen=$enable_dlopen
-
-# Whether dlopen of programs is supported.
-dlopen_self=$enable_dlopen_self
-
-# Whether dlopen of statically linked programs is supported.
-dlopen_self_static=$enable_dlopen_self_static
-
-# Compiler flag to prevent dynamic linking.
-link_static_flag=$link_static_flag
-
-# Compiler flag to turn off builtin functions.
-no_builtin_flag=$no_builtin_flag
-
-# Compiler flag to allow reflexive dlopens.
-export_dynamic_flag_spec=$export_dynamic_flag_spec
-
-# Compiler flag to generate shared objects directly from archives.
-whole_archive_flag_spec=$whole_archive_flag_spec
-
-# Compiler flag to generate thread-safe objects.
-thread_safe_flag_spec=$thread_safe_flag_spec
-
-# Library versioning type.
-version_type=$version_type
-
-# Format of library name prefix.
-libname_spec=$libname_spec
-
-# List of archive names.  First name is the real one, the rest are links.
-# The last name is the one that the linker finds with -lNAME.
-library_names_spec=$library_names_spec
-
-# The coded name of the library, if different from the real name.
-soname_spec=$soname_spec
-
-# Commands used to build and install an old-style archive.
-RANLIB=$RANLIB
-old_archive_cmds=$old_archive_cmds
-old_postinstall_cmds=$old_postinstall_cmds
-old_postuninstall_cmds=$old_postuninstall_cmds
-
-# Create an old-style archive from a shared archive.
-old_archive_from_new_cmds=$old_archive_from_new_cmds
-
-# Commands used to build and install a shared archive.
-archive_cmds=$archive_cmds
-archive_expsym_cmds=$archive_expsym_cmds
-postinstall_cmds=$postinstall_cmds
-postuninstall_cmds=$postuninstall_cmds
-
-# Method to check whether dependent libraries are shared objects.
-deplibs_check_method=$deplibs_check_method
-
-# Command to use when deplibs_check_method == file_magic.
-file_magic_cmd=$file_magic_cmd
-
-# Flag that allows shared libraries with undefined symbols to be built.
-allow_undefined_flag=$allow_undefined_flag
-
-# Flag that forces no undefined symbols.
-no_undefined_flag=$no_undefined_flag
-
-# Commands used to finish a libtool library installation in a directory.
-finish_cmds=$finish_cmds
-
-# Same as above, but a single script fragment to be evaled but not shown.
-finish_eval=$finish_eval
-
-# Take the output of nm and produce a listing of raw symbols and C names.
-global_symbol_pipe=$global_symbol_pipe
-
-# Transform the output of nm in a proper C declaration
-global_symbol_to_cdecl=$global_symbol_to_cdecl
-
-# This is the shared library runtime path variable.
-runpath_var=$runpath_var
-
-# This is the shared library path variable.
-shlibpath_var=$shlibpath_var
-
-# Is shlibpath searched before the hard-coded library search path?
-shlibpath_overrides_runpath=$shlibpath_overrides_runpath
-
-# How to hardcode a shared library path into an executable.
-hardcode_action=$hardcode_action
-
-# Flag to hardcode \$libdir into a binary during linking.
-# This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec
-
-# Whether we need a single -rpath flag with a separated argument.
-hardcode_libdir_separator=$hardcode_libdir_separator
-
-# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
-# resulting binary.
-hardcode_direct=$hardcode_direct
-
-# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
-# resulting binary.
-hardcode_minus_L=$hardcode_minus_L
-
-# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
-# the resulting binary.
-hardcode_shlibpath_var=$hardcode_shlibpath_var
-
-# Compile-time system search path for libraries
-sys_lib_search_path_spec=$sys_lib_search_path_spec
-
-# Run-time system search path for libraries
-sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
-
-# Fix the shell variable \$srcfile for the compiler.
-fix_srcfile_path="$fix_srcfile_path"
-
-# Set to yes if exported symbols are required.
-always_export_symbols=$always_export_symbols
-
-# The commands to list exported symbols.
-export_symbols_cmds=$export_symbols_cmds
-
-# Symbols that should not be listed in the preloaded symbols.
-exclude_expsyms=$exclude_expsyms
-
-# Symbols that must always be exported.
-include_expsyms=$include_expsyms
-
-EOF
-
-case "$ltmain" in
-*.sh)
-  echo '### END LIBTOOL CONFIG' >> "$ofile"
-  echo >> "$ofile"
-  case "$host_os" in
-  aix3*)
-    cat <<\EOF >> "$ofile"
-
-# AIX sometimes has problems with the GCC collect2 program.  For some
-# reason, if we set the COLLECT_NAMES environment variable, the problems
-# vanish in a puff of smoke.
-if test "${COLLECT_NAMES+set}" != set; then
-  COLLECT_NAMES=
-  export COLLECT_NAMES
-fi
-EOF
-    ;;
-  esac
-
-  # Append the ltmain.sh script.
-  sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
-
-  chmod +x "$ofile"
-  ;;
-
-*)
-  # Compile the libtool program.
-  echo "FIXME: would compile $ltmain"
-  ;;
-esac
-
-test -n "$cache_file" || exit 0
-
-# AC_CACHE_SAVE
-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
-
-exit 0
-
-# Local Variables:
-# mode:shell-script
-# sh-indentation:2
-# End:
diff --git a/libCxClient/ltmain.sh b/libCxClient/ltmain.sh
deleted file mode 100644 (file)
index c34de00..0000000
+++ /dev/null
@@ -1,3975 +0,0 @@
-# ltmain.sh - Provide generalized library-building support services.
-# NOTE: Changing this file will not affect anything until you rerun ltconfig.
-#
-# Copyright (C) 1996-1999 Free Software Foundation, Inc.
-# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (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.
-
-# Check that we have a working $echo.
-if test "X$1" = X--no-reexec; then
-  # Discard the --no-reexec flag, and continue.
-  shift
-elif test "X$1" = X--fallback-echo; then
-  # Avoid inline document here, it may be left over
-  :
-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
-  # Yippee, $echo works!
-  :
-else
-  # Restart under the correct shell, and then maybe $echo will work.
-  exec $SHELL "$0" --no-reexec ${1+"$@"}
-fi
-
-if test "X$1" = X--fallback-echo; then
-  # used as fallback echo
-  shift
-  cat <<EOF
-$*
-EOF
-  exit 0
-fi
-
-# The name of this program.
-progname=`$echo "$0" | sed 's%^.*/%%'`
-modename="$progname"
-
-# Constants.
-PROGRAM=ltmain.sh
-PACKAGE=libtool
-VERSION=1.3.3
-TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
-
-default_mode=
-help="Try \`$progname --help' for more information."
-magic="%%%MAGIC variable%%%"
-mkdir="mkdir"
-mv="mv -f"
-rm="rm -f"
-
-# Sed substitution that helps us do robust quoting.  It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e 1s/^X//'
-sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
-SP2NL='tr \040 \012'
-NL2SP='tr \015\012 \040\040'
-
-# NLS nuisances.
-# Only set LANG and LC_ALL to C if already set.
-# These must not be set unconditionally because not all systems understand
-# e.g. LANG=C (notably SCO).
-# We save the old values to restore during execute mode.
-if test "${LC_ALL+set}" = set; then
-  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
-fi
-if test "${LANG+set}" = set; then
-  save_LANG="$LANG"; LANG=C; export LANG
-fi
-
-if test "$LTCONFIG_VERSION" != "$VERSION"; then
-  echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
-  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
-  exit 1
-fi
-
-if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
-  echo "$modename: not configured to build any kind of library" 1>&2
-  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
-  exit 1
-fi
-
-# Global variables.
-mode=$default_mode
-nonopt=
-prev=
-prevopt=
-run=
-show="$echo"
-show_help=
-execute_dlfiles=
-lo2o="s/\\.lo\$/.${objext}/"
-o2lo="s/\\.${objext}\$/.lo/"
-
-# Parse our command line options once, thoroughly.
-while test $# -gt 0
-do
-  arg="$1"
-  shift
-
-  case "$arg" in
-  -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
-  *) optarg= ;;
-  esac
-
-  # If the previous option needs an argument, assign it.
-  if test -n "$prev"; then
-    case "$prev" in
-    execute_dlfiles)
-      eval "$prev=\"\$$prev \$arg\""
-      ;;
-    *)
-      eval "$prev=\$arg"
-      ;;
-    esac
-
-    prev=
-    prevopt=
-    continue
-  fi
-
-  # Have we seen a non-optional argument yet?
-  case "$arg" in
-  --help)
-    show_help=yes
-    ;;
-
-  --version)
-    echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
-    exit 0
-    ;;
-
-  --config)
-    sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
-    exit 0
-    ;;
-
-  --debug)
-    echo "$progname: enabling shell trace mode"
-    set -x
-    ;;
-
-  --dry-run | -n)
-    run=:
-    ;;
-
-  --features)
-    echo "host: $host"
-    if test "$build_libtool_libs" = yes; then
-      echo "enable shared libraries"
-    else
-      echo "disable shared libraries"
-    fi
-    if test "$build_old_libs" = yes; then
-      echo "enable static libraries"
-    else
-      echo "disable static libraries"
-    fi
-    exit 0
-    ;;
-
-  --finish) mode="finish" ;;
-
-  --mode) prevopt="--mode" prev=mode ;;
-  --mode=*) mode="$optarg" ;;
-
-  --quiet | --silent)
-    show=:
-    ;;
-
-  -dlopen)
-    prevopt="-dlopen"
-    prev=execute_dlfiles
-    ;;
-
-  -*)
-    $echo "$modename: unrecognized option \`$arg'" 1>&2
-    $echo "$help" 1>&2
-    exit 1
-    ;;
-
-  *)
-    nonopt="$arg"
-    break
-    ;;
-  esac
-done
-
-if test -n "$prevopt"; then
-  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
-  $echo "$help" 1>&2
-  exit 1
-fi
-
-if test -z "$show_help"; then
-
-  # Infer the operation mode.
-  if test -z "$mode"; then
-    case "$nonopt" in
-    *cc | *++ | gcc* | *-gcc*)
-      mode=link
-      for arg
-      do
-       case "$arg" in
-       -c)
-          mode=compile
-          break
-          ;;
-       esac
-      done
-      ;;
-    *db | *dbx | *strace | *truss)
-      mode=execute
-      ;;
-    *install*|cp|mv)
-      mode=install
-      ;;
-    *rm)
-      mode=uninstall
-      ;;
-    *)
-      # If we have no mode, but dlfiles were specified, then do execute mode.
-      test -n "$execute_dlfiles" && mode=execute
-
-      # Just use the default operation mode.
-      if test -z "$mode"; then
-       if test -n "$nonopt"; then
-         $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
-       else
-         $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
-       fi
-      fi
-      ;;
-    esac
-  fi
-
-  # Only execute mode is allowed to have -dlopen flags.
-  if test -n "$execute_dlfiles" && test "$mode" != execute; then
-    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
-    $echo "$help" 1>&2
-    exit 1
-  fi
-
-  # Change the help message to a mode-specific one.
-  generic_help="$help"
-  help="Try \`$modename --help --mode=$mode' for more information."
-
-  # These modes are in order of execution frequency so that they run quickly.
-  case "$mode" in
-  # libtool compile mode
-  compile)
-    modename="$modename: compile"
-    # Get the compilation command and the source file.
-    base_compile=
-    lastarg=
-    srcfile="$nonopt"
-    suppress_output=
-
-    user_target=no
-    for arg
-    do
-      # Accept any command-line options.
-      case "$arg" in
-      -o)
-       if test "$user_target" != "no"; then
-         $echo "$modename: you cannot specify \`-o' more than once" 1>&2
-         exit 1
-       fi
-       user_target=next
-       ;;
-
-      -static)
-       build_old_libs=yes
-       continue
-       ;;
-      esac
-
-      case "$user_target" in
-      next)
-       # The next one is the -o target name
-       user_target=yes
-       continue
-       ;;
-      yes)
-       # We got the output file
-       user_target=set
-       libobj="$arg"
-       continue
-       ;;
-      esac
-
-      # Accept the current argument as the source file.
-      lastarg="$srcfile"
-      srcfile="$arg"
-
-      # Aesthetically quote the previous argument.
-
-      # Backslashify any backslashes, double quotes, and dollar signs.
-      # These are the only characters that are still specially
-      # interpreted inside of double-quoted scrings.
-      lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
-
-      # Double-quote args containing other shell metacharacters.
-      # Many Bourne shells cannot handle close brackets correctly in scan
-      # sets, so we specify it separately.
-      case "$lastarg" in
-      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
-       lastarg="\"$lastarg\""
-       ;;
-      esac
-
-      # Add the previous argument to base_compile.
-      if test -z "$base_compile"; then
-       base_compile="$lastarg"
-      else
-       base_compile="$base_compile $lastarg"
-      fi
-    done
-
-    case "$user_target" in
-    set)
-      ;;
-    no)
-      # Get the name of the library object.
-      libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
-      ;;
-    *)
-      $echo "$modename: you must specify a target with \`-o'" 1>&2
-      exit 1
-      ;;
-    esac
-
-    # Recognize several different file suffixes.
-    # If the user specifies -o file.o, it is replaced with file.lo
-    xform='[cCFSfmso]'
-    case "$libobj" in
-    *.ada) xform=ada ;;
-    *.adb) xform=adb ;;
-    *.ads) xform=ads ;;
-    *.asm) xform=asm ;;
-    *.c++) xform=c++ ;;
-    *.cc) xform=cc ;;
-    *.cpp) xform=cpp ;;
-    *.cxx) xform=cxx ;;
-    *.f90) xform=f90 ;;
-    *.for) xform=for ;;
-    esac
-
-    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
-
-    case "$libobj" in
-    *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
-    *)
-      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
-      exit 1
-      ;;
-    esac
-
-    if test -z "$base_compile"; then
-      $echo "$modename: you must specify a compilation command" 1>&2
-      $echo "$help" 1>&2
-      exit 1
-    fi
-
-    # Delete any leftover library objects.
-    if test "$build_old_libs" = yes; then
-      removelist="$obj $libobj"
-    else
-      removelist="$libobj"
-    fi
-
-    $run $rm $removelist
-    trap "$run $rm $removelist; exit 1" 1 2 15
-
-    # Calculate the filename of the output object if compiler does
-    # not support -o with -c
-    if test "$compiler_c_o" = no; then
-      output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
-      lockfile="$output_obj.lock"
-      removelist="$removelist $output_obj $lockfile"
-      trap "$run $rm $removelist; exit 1" 1 2 15
-    else
-      need_locks=no
-      lockfile=
-    fi
-
-    # Lock this critical section if it is needed
-    # We use this script file to make the link, it avoids creating a new file
-    if test "$need_locks" = yes; then
-      until ln "$0" "$lockfile" 2>/dev/null; do
-       $show "Waiting for $lockfile to be removed"
-       sleep 2
-      done
-    elif test "$need_locks" = warn; then
-      if test -f "$lockfile"; then
-       echo "\
-*** ERROR, $lockfile exists and contains:
-`cat $lockfile 2>/dev/null`
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together.  If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
-       $run $rm $removelist
-       exit 1
-      fi
-      echo $srcfile > "$lockfile"
-    fi
-
-    if test -n "$fix_srcfile_path"; then
-      eval srcfile=\"$fix_srcfile_path\"
-    fi
-
-    # Only build a PIC object if we are building libtool libraries.
-    if test "$build_libtool_libs" = yes; then
-      # Without this assignment, base_compile gets emptied.
-      fbsd_hideous_sh_bug=$base_compile
-
-      # All platforms use -DPIC, to notify preprocessed assembler code.
-      command="$base_compile $pic_flag -DPIC $srcfile"
-      if test "$build_old_libs" = yes; then
-       lo_libobj="$libobj"
-       dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
-       if test "X$dir" = "X$libobj"; then
-         dir="$objdir"
-       else
-         dir="$dir/$objdir"
-       fi
-       libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
-
-       if test -d "$dir"; then
-         $show "$rm $libobj"
-         $run $rm $libobj
-       else
-         $show "$mkdir $dir"
-         $run $mkdir $dir
-         status=$?
-         if test $status -ne 0 && test ! -d $dir; then
-           exit $status
-         fi
-       fi
-      fi
-      if test "$compiler_o_lo" = yes; then
-       output_obj="$libobj"
-       command="$command -o $output_obj"
-      elif test "$compiler_c_o" = yes; then
-       output_obj="$obj"
-       command="$command -o $output_obj"
-      fi
-
-      $run $rm "$output_obj"
-      $show "$command"
-      if $run eval "$command"; then :
-      else
-       test -n "$output_obj" && $run $rm $removelist
-       exit 1
-      fi
-
-      if test "$need_locks" = warn &&
-        test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
-       echo "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together.  If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
-       $run $rm $removelist
-       exit 1
-      fi
-
-      # Just move the object if needed, then go on to compile the next one
-      if test x"$output_obj" != x"$libobj"; then
-       $show "$mv $output_obj $libobj"
-       if $run $mv $output_obj $libobj; then :
-       else
-         error=$?
-         $run $rm $removelist
-         exit $error
-       fi
-      fi
-
-      # If we have no pic_flag, then copy the object into place and finish.
-      if test -z "$pic_flag" && test "$build_old_libs" = yes; then
-       # Rename the .lo from within objdir to obj
-       if test -f $obj; then
-         $show $rm $obj
-         $run $rm $obj
-       fi
-
-       $show "$mv $libobj $obj"
-       if $run $mv $libobj $obj; then :
-       else
-         error=$?
-         $run $rm $removelist
-         exit $error
-       fi
-
-       # Now arrange that obj and lo_libobj become the same file
-       $show "$LN_S $obj $lo_libobj"
-       if $run $LN_S $obj $lo_libobj; then
-         exit 0
-       else
-         error=$?
-         $run $rm $removelist
-         exit $error
-       fi
-      fi
-
-      # Allow error messages only from the first compilation.
-      suppress_output=' >/dev/null 2>&1'
-    fi
-
-    # Only build a position-dependent object if we build old libraries.
-    if test "$build_old_libs" = yes; then
-      command="$base_compile $srcfile"
-      if test "$compiler_c_o" = yes; then
-       command="$command -o $obj"
-       output_obj="$obj"
-      fi
-
-      # Suppress compiler output if we already did a PIC compilation.
-      command="$command$suppress_output"
-      $run $rm "$output_obj"
-      $show "$command"
-      if $run eval "$command"; then :
-      else
-       $run $rm $removelist
-       exit 1
-      fi
-
-      if test "$need_locks" = warn &&
-        test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
-       echo "\
-*** ERROR, $lockfile contains:
-`cat $lockfile 2>/dev/null`
-
-but it should contain:
-$srcfile
-
-This indicates that another process is trying to use the same
-temporary object file, and libtool could not work around it because
-your compiler does not support \`-c' and \`-o' together.  If you
-repeat this compilation, it may succeed, by chance, but you had better
-avoid parallel builds (make -j) in this platform, or get a better
-compiler."
-
-       $run $rm $removelist
-       exit 1
-      fi
-
-      # Just move the object if needed
-      if test x"$output_obj" != x"$obj"; then
-       $show "$mv $output_obj $obj"
-       if $run $mv $output_obj $obj; then :
-       else
-         error=$?
-         $run $rm $removelist
-         exit $error
-       fi
-      fi
-
-      # Create an invalid libtool object if no PIC, so that we do not
-      # accidentally link it into a program.
-      if test "$build_libtool_libs" != yes; then
-       $show "echo timestamp > $libobj"
-       $run eval "echo timestamp > \$libobj" || exit $?
-      else
-       # Move the .lo from within objdir
-       $show "$mv $libobj $lo_libobj"
-       if $run $mv $libobj $lo_libobj; then :
-       else
-         error=$?
-         $run $rm $removelist
-         exit $error
-       fi
-      fi
-    fi
-
-    # Unlock the critical section if it was locked
-    if test "$need_locks" != no; then
-      $rm "$lockfile"
-    fi
-
-    exit 0
-    ;;
-
-  # libtool link mode
-  link)
-    modename="$modename: link"
-    C_compiler="$CC" # save it, to compile generated C sources
-    CC="$nonopt"
-    case "$host" in
-    *-*-cygwin* | *-*-mingw* | *-*-os2*)
-      # It is impossible to link a dll without this setting, and
-      # we shouldn't force the makefile maintainer to figure out
-      # which system we are compiling for in order to pass an extra
-      # flag for every libtool invokation.
-      # allow_undefined=no
-
-      # FIXME: Unfortunately, there are problems with the above when trying
-      # to make a dll which has undefined symbols, in which case not
-      # even a static library is built.  For now, we need to specify
-      # -no-undefined on the libtool link line when we can be certain
-      # that all symbols are satisfied, otherwise we get a static library.
-      allow_undefined=yes
-
-      # This is a source program that is used to create dlls on Windows
-      # Don't remove nor modify the starting and closing comments
-# /* ltdll.c starts here */
-# #define WIN32_LEAN_AND_MEAN
-# #include <windows.h>
-# #undef WIN32_LEAN_AND_MEAN
-# #include <stdio.h>
-#
-# #ifndef __CYGWIN__
-# #  ifdef __CYGWIN32__
-# #    define __CYGWIN__ __CYGWIN32__
-# #  endif
-# #endif
-#
-# #ifdef __cplusplus
-# extern "C" {
-# #endif
-# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
-# #ifdef __cplusplus
-# }
-# #endif
-#
-# #ifdef __CYGWIN__
-# #include <cygwin/cygwin_dll.h>
-# DECLARE_CYGWIN_DLL( DllMain );
-# #endif
-# HINSTANCE __hDllInstance_base;
-#
-# BOOL APIENTRY
-# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
-# {
-#   __hDllInstance_base = hInst;
-#   return TRUE;
-# }
-# /* ltdll.c ends here */
-      # This is a source program that is used to create import libraries
-      # on Windows for dlls which lack them. Don't remove nor modify the
-      # starting and closing comments
-# /* impgen.c starts here */
-# /*   Copyright (C) 1999 Free Software Foundation, Inc.
-# 
-#  This file is part of GNU libtool.
-# 
-#  This program is free software; you can redistribute it and/or modify
-#  it under the terms of the GNU General Public License as published by
-#  the Free Software Foundation; either version 2 of the License, or
-#  (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.
-#  */
-# 
-#  #include <stdio.h>          /* for printf() */
-#  #include <unistd.h>         /* for open(), lseek(), read() */
-#  #include <fcntl.h>          /* for O_RDONLY, O_BINARY */
-#  #include <string.h>         /* for strdup() */
-# 
-#  static unsigned int
-#  pe_get16 (fd, offset)
-#       int fd;
-#       int offset;
-#  {
-#    unsigned char b[2];
-#    lseek (fd, offset, SEEK_SET);
-#    read (fd, b, 2);
-#    return b[0] + (b[1]<<8);
-#  }
-# 
-#  static unsigned int
-#  pe_get32 (fd, offset)
-#      int fd;
-#      int offset;
-#  {
-#    unsigned char b[4];
-#    lseek (fd, offset, SEEK_SET);
-#    read (fd, b, 4);
-#    return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
-#  }
-# 
-#  static unsigned int
-#  pe_as32 (ptr)
-#       void *ptr;
-#  {
-#    unsigned char *b = ptr;
-#    return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
-#  }
-# 
-#  int
-#  main (argc, argv)
-#      int argc;
-#      char *argv[];
-#  {
-#      int dll;
-#      unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
-#      unsigned long export_rva, export_size, nsections, secptr, expptr;
-#      unsigned long name_rvas, nexp;
-#      unsigned char *expdata, *erva;
-#      char *filename, *dll_name;
-# 
-#      filename = argv[1];
-# 
-#      dll = open(filename, O_RDONLY|O_BINARY);
-#      if (!dll)
-#      return 1;
-# 
-#      dll_name = filename;
-#    
-#      for (i=0; filename[i]; i++)
-#      if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
-#          dll_name = filename + i +1;
-# 
-#      pe_header_offset = pe_get32 (dll, 0x3c);
-#      opthdr_ofs = pe_header_offset + 4 + 20;
-#      num_entries = pe_get32 (dll, opthdr_ofs + 92);
-# 
-#      if (num_entries < 1) /* no exports */
-#      return 1;
-# 
-#      export_rva = pe_get32 (dll, opthdr_ofs + 96);
-#      export_size = pe_get32 (dll, opthdr_ofs + 100);
-#      nsections = pe_get16 (dll, pe_header_offset + 4 +2);
-#      secptr = (pe_header_offset + 4 + 20 +
-#            pe_get16 (dll, pe_header_offset + 4 + 16));
-# 
-#      expptr = 0;
-#      for (i = 0; i < nsections; i++)
-#      {
-#      char sname[8];
-#      unsigned long secptr1 = secptr + 40 * i;
-#      unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
-#      unsigned long vsize = pe_get32 (dll, secptr1 + 16);
-#      unsigned long fptr = pe_get32 (dll, secptr1 + 20);
-#      lseek(dll, secptr1, SEEK_SET);
-#      read(dll, sname, 8);
-#      if (vaddr <= export_rva && vaddr+vsize > export_rva)
-#      {
-#          expptr = fptr + (export_rva - vaddr);
-#          if (export_rva + export_size > vaddr + vsize)
-#              export_size = vsize - (export_rva - vaddr);
-#          break;
-#      }
-#      }
-# 
-#      expdata = (unsigned char*)malloc(export_size);
-#      lseek (dll, expptr, SEEK_SET);
-#      read (dll, expdata, export_size);
-#      erva = expdata - export_rva;
-# 
-#      nexp = pe_as32 (expdata+24);
-#      name_rvas = pe_as32 (expdata+32);
-# 
-#      printf ("EXPORTS\n");
-#      for (i = 0; i<nexp; i++)
-#      {
-#      unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
-#      printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
-#      }
-# 
-#      return 0;
-#  }
-# /* impgen.c ends here */
-      ;;
-    *)
-      allow_undefined=yes
-      ;;
-    esac
-    compile_command="$CC"
-    finalize_command="$CC"
-
-    compile_rpath=
-    finalize_rpath=
-    compile_shlibpath=
-    finalize_shlibpath=
-    convenience=
-    old_convenience=
-    deplibs=
-    linkopts=
-
-    if test -n "$shlibpath_var"; then
-      # get the directories listed in $shlibpath_var
-      eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
-    else
-      lib_search_path=
-    fi
-    # now prepend the system-specific ones
-    eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
-    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
-    
-    avoid_version=no
-    dlfiles=
-    dlprefiles=
-    dlself=no
-    export_dynamic=no
-    export_symbols=
-    export_symbols_regex=
-    generated=
-    libobjs=
-    link_against_libtool_libs=
-    ltlibs=
-    module=no
-    objs=
-    prefer_static_libs=no
-    preload=no
-    prev=
-    prevarg=
-    release=
-    rpath=
-    xrpath=
-    perm_rpath=
-    temp_rpath=
-    thread_safe=no
-    vinfo=
-
-    # We need to know -static, to get the right output filenames.
-    for arg
-    do
-      case "$arg" in
-      -all-static | -static)
-       if test "X$arg" = "X-all-static"; then
-         if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
-           $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
-         fi
-         if test -n "$link_static_flag"; then
-           dlopen_self=$dlopen_self_static
-         fi
-       else
-         if test -z "$pic_flag" && test -n "$link_static_flag"; then
-           dlopen_self=$dlopen_self_static
-         fi
-       fi
-       build_libtool_libs=no
-       build_old_libs=yes
-       prefer_static_libs=yes
-       break
-       ;;
-      esac
-    done
-
-    # See if our shared archives depend on static archives.
-    test -n "$old_archive_from_new_cmds" && build_old_libs=yes
-
-    # Go through the arguments, transforming them on the way.
-    while test $# -gt 0; do
-      arg="$1"
-      shift
-
-      # If the previous option needs an argument, assign it.
-      if test -n "$prev"; then
-       case "$prev" in
-       output)
-         compile_command="$compile_command @OUTPUT@"
-         finalize_command="$finalize_command @OUTPUT@"
-         ;;
-       esac
-
-       case "$prev" in
-       dlfiles|dlprefiles)
-         if test "$preload" = no; then
-           # Add the symbol object into the linking commands.
-           compile_command="$compile_command @SYMFILE@"
-           finalize_command="$finalize_command @SYMFILE@"
-           preload=yes
-         fi
-         case "$arg" in
-         *.la | *.lo) ;;  # We handle these cases below.
-         force)
-           if test "$dlself" = no; then
-             dlself=needless
-             export_dynamic=yes
-           fi
-           prev=
-           continue
-           ;;
-         self)
-           if test "$prev" = dlprefiles; then
-             dlself=yes
-           elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
-             dlself=yes
-           else
-             dlself=needless
-             export_dynamic=yes
-           fi
-           prev=
-           continue
-           ;;
-         *)
-           if test "$prev" = dlfiles; then
-             dlfiles="$dlfiles $arg"
-           else
-             dlprefiles="$dlprefiles $arg"
-           fi
-           prev=
-           ;;
-         esac
-         ;;
-       expsyms)
-         export_symbols="$arg"
-         if test ! -f "$arg"; then
-           $echo "$modename: symbol file \`$arg' does not exist"
-           exit 1
-         fi
-         prev=
-         continue
-         ;;
-       expsyms_regex)
-         export_symbols_regex="$arg"
-         prev=
-         continue
-         ;;
-       release)
-         release="-$arg"
-         prev=
-         continue
-         ;;
-       rpath | xrpath)
-         # We need an absolute path.
-         case "$arg" in
-         [\\/]* | [A-Za-z]:[\\/]*) ;;
-         *)
-           $echo "$modename: only absolute run-paths are allowed" 1>&2
-           exit 1
-           ;;
-         esac
-         if test "$prev" = rpath; then
-           case "$rpath " in
-           *" $arg "*) ;;
-           *) rpath="$rpath $arg" ;;
-           esac
-         else
-           case "$xrpath " in
-           *" $arg "*) ;;
-           *) xrpath="$xrpath $arg" ;;
-           esac
-         fi
-         prev=
-         continue
-         ;;
-       *)
-         eval "$prev=\"\$arg\""
-         prev=
-         continue
-         ;;
-       esac
-      fi
-
-      prevarg="$arg"
-
-      case "$arg" in
-      -all-static)
-       if test -n "$link_static_flag"; then
-         compile_command="$compile_command $link_static_flag"
-         finalize_command="$finalize_command $link_static_flag"
-       fi
-       continue
-       ;;
-
-      -allow-undefined)
-       # FIXME: remove this flag sometime in the future.
-       $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
-       continue
-       ;;
-
-      -avoid-version)
-       avoid_version=yes
-       continue
-       ;;
-
-      -dlopen)
-       prev=dlfiles
-       continue
-       ;;
-
-      -dlpreopen)
-       prev=dlprefiles
-       continue
-       ;;
-
-      -export-dynamic)
-       export_dynamic=yes
-       continue
-       ;;
-
-      -export-symbols | -export-symbols-regex)
-       if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
-         $echo "$modename: not more than one -exported-symbols argument allowed"
-         exit 1
-       fi
-       if test "X$arg" = "X-export-symbols"; then
-         prev=expsyms
-       else
-         prev=expsyms_regex
-       fi
-       continue
-       ;;
-
-      -L*)
-       dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
-       # We need an absolute path.
-       case "$dir" in
-       [\\/]* | [A-Za-z]:[\\/]*) ;;
-       *)
-         absdir=`cd "$dir" && pwd`
-         if test -z "$absdir"; then
-           $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
-           $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
-           absdir="$dir"
-         fi
-         dir="$absdir"
-         ;;
-       esac
-       case " $deplibs " in
-       *" $arg "*) ;;
-       *) deplibs="$deplibs $arg";;
-       esac
-       case " $lib_search_path " in
-       *" $dir "*) ;;
-       *) lib_search_path="$lib_search_path $dir";;
-       esac
-       case "$host" in
-       *-*-cygwin* | *-*-mingw* | *-*-os2*)
-         dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
-         case ":$dllsearchpath:" in
-         ::) dllsearchpath="$dllsearchdir";;
-         *":$dllsearchdir:"*) ;;
-         *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
-         esac
-         ;;
-       esac
-       ;;
-
-      -l*)
-       if test "$arg" = "-lc"; then
-         case "$host" in
-         *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
-           # These systems don't actually have c library (as such)
-           continue
-           ;;
-         esac
-       elif test "$arg" = "-lm"; then
-         case "$host" in
-         *-*-cygwin* | *-*-beos*)
-           # These systems don't actually have math library (as such)
-           continue
-           ;;
-         esac
-       fi
-       deplibs="$deplibs $arg"
-       ;;
-
-      -module)
-       module=yes
-       continue
-       ;;
-
-      -no-undefined)
-       allow_undefined=no
-       continue
-       ;;
-
-      -o) prev=output ;;
-
-      -release)
-       prev=release
-       continue
-       ;;
-
-      -rpath)
-       prev=rpath
-       continue
-       ;;
-
-      -R)
-       prev=xrpath
-       continue
-       ;;
-
-      -R*)
-       dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
-       # We need an absolute path.
-       case "$dir" in
-       [\\/]* | [A-Za-z]:[\\/]*) ;;
-       *)
-         $echo "$modename: only absolute run-paths are allowed" 1>&2
-         exit 1
-         ;;
-       esac
-       case "$xrpath " in
-       *" $dir "*) ;;
-       *) xrpath="$xrpath $dir" ;;
-       esac
-       continue
-       ;;
-
-      -static)
-       # If we have no pic_flag, then this is the same as -all-static.
-       if test -z "$pic_flag" && test -n "$link_static_flag"; then
-         compile_command="$compile_command $link_static_flag"
-         finalize_command="$finalize_command $link_static_flag"
-       fi
-       continue
-       ;;
-
-      -thread-safe)
-       thread_safe=yes
-       continue
-       ;;
-
-      -version-info)
-       prev=vinfo
-       continue
-       ;;
-
-      # Some other compiler flag.
-      -* | +*)
-       # Unknown arguments in both finalize_command and compile_command need
-       # to be aesthetically quoted because they are evaled later.
-       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
-       case "$arg" in
-       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*)
-         arg="\"$arg\""
-         ;;
-       esac
-       ;;
-
-      *.o | *.obj | *.a | *.lib)
-       # A standard object.
-       objs="$objs $arg"
-       ;;
-
-      *.lo)
-       # A library object.
-       if test "$prev" = dlfiles; then
-         dlfiles="$dlfiles $arg"
-         if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
-           prev=
-           continue
-         else
-           # If libtool objects are unsupported, then we need to preload.
-           prev=dlprefiles
-         fi
-       fi
-
-       if test "$prev" = dlprefiles; then
-         # Preload the old-style object.
-         dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
-         prev=
-       fi
-       libobjs="$libobjs $arg"
-       ;;
-
-      *.la)
-       # A libtool-controlled library.
-
-       dlname=
-       libdir=
-       library_names=
-       old_library=
-
-       # Check to see that this really is a libtool archive.
-       if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
-       else
-         $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
-         exit 1
-       fi
-
-       # If the library was installed with an old release of libtool,
-       # it will not redefine variable installed.
-       installed=yes
-
-       # Read the .la file
-       # If there is no directory component, then add one.
-       case "$arg" in
-       */* | *\\*) . $arg ;;
-       *) . ./$arg ;;
-       esac
-
-       # Get the name of the library we link against.
-       linklib=
-       for l in $old_library $library_names; do
-         linklib="$l"
-       done
-
-       if test -z "$linklib"; then
-         $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
-         exit 1
-       fi
-
-       # Find the relevant object directory and library name.
-       name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
-
-       if test "X$installed" = Xyes; then
-         dir="$libdir"
-       else
-         dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
-         if test "X$dir" = "X$arg"; then
-           dir="$objdir"
-         else
-           dir="$dir/$objdir"
-         fi
-       fi
-
-       if test -n "$dependency_libs"; then
-         # Extract -R and -L from dependency_libs
-         temp_deplibs=
-         for deplib in $dependency_libs; do
-           case "$deplib" in
-           -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
-                case " $rpath $xrpath " in
-                *" $temp_xrpath "*) ;;
-                *) xrpath="$xrpath $temp_xrpath";;
-                esac;;
-           -L*) case "$compile_command $temp_deplibs " in
-                *" $deplib "*) ;;
-                *) temp_deplibs="$temp_deplibs $deplib";;
-                esac
-                temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
-                case " $lib_search_path " in
-                *" $temp_dir "*) ;;
-                *) lib_search_path="$lib_search_path $temp_dir";;
-                esac
-                ;;
-           *) temp_deplibs="$temp_deplibs $deplib";;
-           esac
-         done
-         dependency_libs="$temp_deplibs"
-       fi
-
-       if test -z "$libdir"; then
-         # It is a libtool convenience library, so add in its objects.
-         convenience="$convenience $dir/$old_library"
-         old_convenience="$old_convenience $dir/$old_library"
-         deplibs="$deplibs$dependency_libs"
-         compile_command="$compile_command $dir/$old_library$dependency_libs"
-         finalize_command="$finalize_command $dir/$old_library$dependency_libs"
-         continue
-       fi
-
-       # This library was specified with -dlopen.
-       if test "$prev" = dlfiles; then
-         dlfiles="$dlfiles $arg"
-         if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
-           # If there is no dlname, no dlopen support or we're linking statically,
-           # we need to preload.
-           prev=dlprefiles
-         else
-           # We should not create a dependency on this library, but we
-           # may need any libraries it requires.
-           compile_command="$compile_command$dependency_libs"
-           finalize_command="$finalize_command$dependency_libs"
-           prev=
-           continue
-         fi
-       fi
-
-       # The library was specified with -dlpreopen.
-       if test "$prev" = dlprefiles; then
-         # Prefer using a static library (so that no silly _DYNAMIC symbols
-         # are required to link).
-         if test -n "$old_library"; then
-           dlprefiles="$dlprefiles $dir/$old_library"
-         else
-           dlprefiles="$dlprefiles $dir/$linklib"
-         fi
-         prev=
-       fi
-
-       if test -n "$library_names" &&
-          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
-         link_against_libtool_libs="$link_against_libtool_libs $arg"
-         if test -n "$shlibpath_var"; then
-           # Make sure the rpath contains only unique directories.
-           case "$temp_rpath " in
-           *" $dir "*) ;;
-           *) temp_rpath="$temp_rpath $dir" ;;
-           esac
-         fi
-
-         # We need an absolute path.
-         case "$dir" in
-         [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
-         *)
-           absdir=`cd "$dir" && pwd`
-           if test -z "$absdir"; then
-             $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
-             $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
-             absdir="$dir"
-           fi
-           ;;
-         esac
-         
-         # This is the magic to use -rpath.
-         # Skip directories that are in the system default run-time
-         # search path, unless they have been requested with -R.
-         case " $sys_lib_dlsearch_path " in
-         *" $absdir "*) ;;
-         *)
-           case "$compile_rpath " in
-           *" $absdir "*) ;;
-           *) compile_rpath="$compile_rpath $absdir" 
-           esac
-           ;;
-         esac
-
-         case " $sys_lib_dlsearch_path " in
-         *" $libdir "*) ;;
-         *)
-           case "$finalize_rpath " in
-           *" $libdir "*) ;;
-           *) finalize_rpath="$finalize_rpath $libdir"
-           esac
-           ;;
-         esac
-
-         lib_linked=yes
-         case "$hardcode_action" in
-         immediate | unsupported)
-           if test "$hardcode_direct" = no; then
-             compile_command="$compile_command $dir/$linklib"
-             deplibs="$deplibs $dir/$linklib"
-             case "$host" in
-             *-*-cygwin* | *-*-mingw* | *-*-os2*)
-               dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
-               if test -n "$dllsearchpath"; then
-                 dllsearchpath="$dllsearchpath:$dllsearchdir"
-               else
-                 dllsearchpath="$dllsearchdir"
-               fi
-               ;;
-             esac
-           elif test "$hardcode_minus_L" = no; then
-             case "$host" in
-             *-*-sunos*)
-               compile_shlibpath="$compile_shlibpath$dir:"
-               ;;
-             esac
-             case "$compile_command " in
-             *" -L$dir "*) ;;
-             *) compile_command="$compile_command -L$dir";;
-             esac
-             compile_command="$compile_command -l$name"
-             deplibs="$deplibs -L$dir -l$name"
-           elif test "$hardcode_shlibpath_var" = no; then
-             case ":$compile_shlibpath:" in
-             *":$dir:"*) ;;
-             *) compile_shlibpath="$compile_shlibpath$dir:";;
-             esac
-             compile_command="$compile_command -l$name"
-             deplibs="$deplibs -l$name"
-           else
-             lib_linked=no
-           fi
-           ;;
-
-         relink)
-           if test "$hardcode_direct" = yes; then
-             compile_command="$compile_command $absdir/$linklib"
-             deplibs="$deplibs $absdir/$linklib"
-           elif test "$hardcode_minus_L" = yes; then
-             case "$compile_command " in
-             *" -L$absdir "*) ;;
-             *) compile_command="$compile_command -L$absdir";;
-             esac
-             compile_command="$compile_command -l$name"
-             deplibs="$deplibs -L$absdir -l$name"
-           elif test "$hardcode_shlibpath_var" = yes; then
-             case ":$compile_shlibpath:" in
-             *":$absdir:"*) ;;
-             *) compile_shlibpath="$compile_shlibpath$absdir:";;
-             esac
-             compile_command="$compile_command -l$name"
-             deplibs="$deplibs -l$name"
-           else
-             lib_linked=no
-           fi
-           ;;
-
-         *)
-           lib_linked=no
-           ;;
-         esac
-
-         if test "$lib_linked" != yes; then
-           $echo "$modename: configuration error: unsupported hardcode properties"
-           exit 1
-         fi
-
-         # Finalize command for both is simple: just hardcode it.
-         if test "$hardcode_direct" = yes; then
-           finalize_command="$finalize_command $libdir/$linklib"
-         elif test "$hardcode_minus_L" = yes; then
-           case "$finalize_command " in
-           *" -L$libdir "*) ;;
-           *) finalize_command="$finalize_command -L$libdir";;
-           esac
-           finalize_command="$finalize_command -l$name"
-         elif test "$hardcode_shlibpath_var" = yes; then
-           case ":$finalize_shlibpath:" in
-           *":$libdir:"*) ;;
-           *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
-           esac
-           finalize_command="$finalize_command -l$name"
-         else
-           # We cannot seem to hardcode it, guess we'll fake it.
-           case "$finalize_command " in
-           *" -L$dir "*) ;;
-           *) finalize_command="$finalize_command -L$libdir";;
-           esac
-           finalize_command="$finalize_command -l$name"
-         fi
-       else
-         # Transform directly to old archives if we don't build new libraries.
-         if test -n "$pic_flag" && test -z "$old_library"; then
-           $echo "$modename: cannot find static library for \`$arg'" 1>&2
-           exit 1
-         fi
-
-         # Here we assume that one of hardcode_direct or hardcode_minus_L
-         # is not unsupported.  This is valid on all known static and
-         # shared platforms.
-         if test "$hardcode_direct" != unsupported; then
-           test -n "$old_library" && linklib="$old_library"
-           compile_command="$compile_command $dir/$linklib"
-           finalize_command="$finalize_command $dir/$linklib"
-         else
-           case "$compile_command " in
-           *" -L$dir "*) ;;
-           *) compile_command="$compile_command -L$dir";;
-           esac
-           compile_command="$compile_command -l$name"
-           case "$finalize_command " in
-           *" -L$dir "*) ;;
-           *) finalize_command="$finalize_command -L$dir";;
-           esac
-           finalize_command="$finalize_command -l$name"
-         fi
-       fi
-
-       # Add in any libraries that this one depends upon.
-       compile_command="$compile_command$dependency_libs"
-       finalize_command="$finalize_command$dependency_libs"
-       continue
-       ;;
-
-      # Some other compiler argument.
-      *)
-       # Unknown arguments in both finalize_command and compile_command need
-       # to be aesthetically quoted because they are evaled later.
-       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
-       case "$arg" in
-       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*)
-         arg="\"$arg\""
-         ;;
-       esac
-       ;;
-      esac
-
-      # Now actually substitute the argument into the commands.
-      if test -n "$arg"; then
-       compile_command="$compile_command $arg"
-       finalize_command="$finalize_command $arg"
-      fi
-    done
-
-    if test -n "$prev"; then
-      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
-      $echo "$help" 1>&2
-      exit 1
-    fi
-
-    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
-      eval arg=\"$export_dynamic_flag_spec\"
-      compile_command="$compile_command $arg"
-      finalize_command="$finalize_command $arg"
-    fi
-
-    oldlibs=
-    # calculate the name of the file, without its directory
-    outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
-    libobjs_save="$libobjs"
-
-    case "$output" in
-    "")
-      $echo "$modename: you must specify an output file" 1>&2
-      $echo "$help" 1>&2
-      exit 1
-      ;;
-
-    *.a | *.lib)
-      if test -n "$link_against_libtool_libs"; then
-       $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
-       exit 1
-      fi
-
-      if test -n "$deplibs"; then
-       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
-      fi
-
-      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-       $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
-      fi
-
-      if test -n "$rpath"; then
-       $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
-      fi
-
-      if test -n "$xrpath"; then
-       $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
-      fi
-
-      if test -n "$vinfo"; then
-       $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
-      fi
-
-      if test -n "$release"; then
-       $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
-      fi
-
-      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
-       $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
-      fi
-
-      # Now set the variables for building old libraries.
-      build_libtool_libs=no
-      oldlibs="$output"
-      ;;
-
-    *.la)
-      # Make sure we only generate libraries of the form `libNAME.la'.
-      case "$outputname" in
-      lib*)
-       name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
-       eval libname=\"$libname_spec\"
-       ;;
-      *)
-       if test "$module" = no; then
-         $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
-         $echo "$help" 1>&2
-         exit 1
-       fi
-       if test "$need_lib_prefix" != no; then
-         # Add the "lib" prefix for modules if required
-         name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
-         eval libname=\"$libname_spec\"
-       else
-         libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
-       fi
-       ;;
-      esac
-
-      output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
-      if test "X$output_objdir" = "X$output"; then
-       output_objdir="$objdir"
-      else
-       output_objdir="$output_objdir/$objdir"
-      fi
-
-      if test -n "$objs"; then
-       $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
-       exit 1
-      fi
-
-      # How the heck are we supposed to write a wrapper for a shared library?
-      if test -n "$link_against_libtool_libs"; then
-        $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
-        exit 1
-      fi
-
-      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-       $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
-      fi
-
-      set dummy $rpath
-      if test $# -gt 2; then
-       $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
-      fi
-      install_libdir="$2"
-
-      oldlibs=
-      if test -z "$rpath"; then
-       if test "$build_libtool_libs" = yes; then
-         # Building a libtool convenience library.
-         libext=al
-         oldlibs="$output_objdir/$libname.$libext $oldlibs"
-         build_libtool_libs=convenience
-         build_old_libs=yes
-       fi
-       dependency_libs="$deplibs"
-
-       if test -n "$vinfo"; then
-         $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
-       fi
-
-       if test -n "$release"; then
-         $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
-       fi
-      else
-
-       # Parse the version information argument.
-       IFS="${IFS=     }"; save_ifs="$IFS"; IFS=':'
-       set dummy $vinfo 0 0 0
-       IFS="$save_ifs"
-
-       if test -n "$8"; then
-         $echo "$modename: too many parameters to \`-version-info'" 1>&2
-         $echo "$help" 1>&2
-         exit 1
-       fi
-
-       current="$2"
-       revision="$3"
-       age="$4"
-
-       # Check that each of the things are valid numbers.
-       case "$current" in
-       0 | [1-9] | [1-9][0-9]*) ;;
-       *)
-         $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
-         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
-         exit 1
-         ;;
-       esac
-
-       case "$revision" in
-       0 | [1-9] | [1-9][0-9]*) ;;
-       *)
-         $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
-         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
-         exit 1
-         ;;
-       esac
-
-       case "$age" in
-       0 | [1-9] | [1-9][0-9]*) ;;
-       *)
-         $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
-         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
-         exit 1
-         ;;
-       esac
-
-       if test $age -gt $current; then
-         $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
-         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
-         exit 1
-       fi
-
-       # Calculate the version variables.
-       major=
-       versuffix=
-       verstring=
-       case "$version_type" in
-       none) ;;
-
-       irix)
-         major=`expr $current - $age + 1`
-         versuffix="$major.$revision"
-         verstring="sgi$major.$revision"
-
-         # Add in all the interfaces that we are compatible with.
-         loop=$revision
-         while test $loop != 0; do
-           iface=`expr $revision - $loop`
-           loop=`expr $loop - 1`
-           verstring="sgi$major.$iface:$verstring"
-         done
-         ;;
-
-       linux)
-         major=.`expr $current - $age`
-         versuffix="$major.$age.$revision"
-         ;;
-
-       osf)
-         major=`expr $current - $age`
-         versuffix=".$current.$age.$revision"
-         verstring="$current.$age.$revision"
-
-         # Add in all the interfaces that we are compatible with.
-         loop=$age
-         while test $loop != 0; do
-           iface=`expr $current - $loop`
-           loop=`expr $loop - 1`
-           verstring="$verstring:${iface}.0"
-         done
-
-         # Make executables depend on our current version.
-         verstring="$verstring:${current}.0"
-         ;;
-
-       sunos)
-         major=".$current"
-         versuffix=".$current.$revision"
-         ;;
-
-       freebsd-aout)
-         major=".$current"
-         versuffix=".$current.$revision";
-         ;;
-
-       freebsd-elf)
-         major=".$current"
-         versuffix=".$current";
-         ;;
-
-       windows)
-         # Like Linux, but with '-' rather than '.', since we only
-         # want one extension on Windows 95.
-         major=`expr $current - $age`
-         versuffix="-$major-$age-$revision"
-         ;;
-
-       *)
-         $echo "$modename: unknown library version type \`$version_type'" 1>&2
-         echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
-         exit 1
-         ;;
-       esac
-
-       # Clear the version info if we defaulted, and they specified a release.
-       if test -z "$vinfo" && test -n "$release"; then
-         major=
-         verstring="0.0"
-         if test "$need_version" = no; then
-           versuffix=
-         else
-           versuffix=".0.0"
-         fi
-       fi
-
-       # Remove version info from name if versioning should be avoided
-       if test "$avoid_version" = yes && test "$need_version" = no; then
-         major=
-         versuffix=
-         verstring=""
-       fi
-       
-       # Check to see if the archive will have undefined symbols.
-       if test "$allow_undefined" = yes; then
-         if test "$allow_undefined_flag" = unsupported; then
-           $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
-           build_libtool_libs=no
-           build_old_libs=yes
-         fi
-       else
-         # Don't allow undefined symbols.
-         allow_undefined_flag="$no_undefined_flag"
-       fi
-
-       dependency_libs="$deplibs"
-       case "$host" in
-       *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
-         # these systems don't actually have a c library (as such)!
-         ;;
-       *)
-         # Add libc to deplibs on all other systems.
-         deplibs="$deplibs -lc"
-         ;;
-       esac
-      fi
-
-      # Create the output directory, or remove our outputs if we need to.
-      if test -d $output_objdir; then
-       $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
-       $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
-      else
-       $show "$mkdir $output_objdir"
-       $run $mkdir $output_objdir
-       status=$?
-       if test $status -ne 0 && test ! -d $output_objdir; then
-         exit $status
-       fi
-      fi
-
-      # Now set the variables for building old libraries.
-      if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
-       oldlibs="$oldlibs $output_objdir/$libname.$libext"
-
-       # Transform .lo files to .o files.
-       oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
-      fi
-
-      if test "$build_libtool_libs" = yes; then
-       # Transform deplibs into only deplibs that can be linked in shared.
-       name_save=$name
-       libname_save=$libname
-       release_save=$release
-       versuffix_save=$versuffix
-       major_save=$major
-       # I'm not sure if I'm treating the release correctly.  I think
-       # release should show up in the -l (ie -lgmp5) so we don't want to
-       # add it in twice.  Is that correct?
-       release=""
-       versuffix=""
-       major=""
-       newdeplibs=
-       droppeddeps=no
-       case "$deplibs_check_method" in
-       pass_all)
-         # Don't check for shared/static.  Everything works.
-         # This might be a little naive.  We might want to check
-         # whether the library exists or not.  But this is on
-         # osf3 & osf4 and I'm not really sure... Just
-         # implementing what was already the behaviour.
-         newdeplibs=$deplibs
-         ;;
-       test_compile)
-         # This code stresses the "libraries are programs" paradigm to its
-         # limits. Maybe even breaks it.  We compile a program, linking it
-         # against the deplibs as a proxy for the library.  Then we can check
-         # whether they linked in statically or dynamically with ldd.
-         $rm conftest.c
-         cat > conftest.c <<EOF
-         int main() { return 0; }
-EOF
-         $rm conftest
-         $C_compiler -o conftest conftest.c $deplibs
-         if test $? -eq 0 ; then
-           ldd_output=`ldd conftest`
-           for i in $deplibs; do
-             name="`expr $i : '-l\(.*\)'`"
-             # If $name is empty we are operating on a -L argument.
-             if test "$name" != "" ; then
-               libname=`eval \\$echo \"$libname_spec\"`
-               deplib_matches=`eval \\$echo \"$library_names_spec\"`
-               set dummy $deplib_matches
-               deplib_match=$2
-               if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
-                 newdeplibs="$newdeplibs $i"
-               else
-                 droppeddeps=yes
-                 echo
-                 echo "*** Warning: This library needs some functionality provided by $i."
-                 echo "*** I have the capability to make that library automatically link in when"
-                 echo "*** you link to this library.  But I can only do this if you have a"
-                 echo "*** shared version of the library, which you do not appear to have."
-               fi
-             else
-               newdeplibs="$newdeplibs $i"
-             fi
-           done
-         else
-           # Error occured in the first compile.  Let's try to salvage the situation:
-           # Compile a seperate program for each library.
-           for i in $deplibs; do
-             name="`expr $i : '-l\(.*\)'`"
-            # If $name is empty we are operating on a -L argument.
-             if test "$name" != "" ; then
-               $rm conftest
-               $C_compiler -o conftest conftest.c $i
-               # Did it work?
-               if test $? -eq 0 ; then
-                 ldd_output=`ldd conftest`
-                 libname=`eval \\$echo \"$libname_spec\"`
-                 deplib_matches=`eval \\$echo \"$library_names_spec\"`
-                 set dummy $deplib_matches
-                 deplib_match=$2
-                 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
-                   newdeplibs="$newdeplibs $i"
-                 else
-                   droppeddeps=yes
-                   echo
-                   echo "*** Warning: This library needs some functionality provided by $i."
-                   echo "*** I have the capability to make that library automatically link in when"
-                   echo "*** you link to this library.  But I can only do this if you have a"
-                   echo "*** shared version of the library, which you do not appear to have."
-                 fi
-               else
-                 droppeddeps=yes
-                 echo
-                 echo "*** Warning!  Library $i is needed by this library but I was not able to"
-                 echo "***  make it link in!  You will probably need to install it or some"
-                 echo "*** library that it depends on before this library will be fully"
-                 echo "*** functional.  Installing it before continuing would be even better."
-               fi
-             else
-               newdeplibs="$newdeplibs $i"
-             fi
-           done
-         fi
-         ;;
-       file_magic*)
-         set dummy $deplibs_check_method
-         file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
-         for a_deplib in $deplibs; do
-           name="`expr $a_deplib : '-l\(.*\)'`"
-           # If $name is empty we are operating on a -L argument.
-           if test "$name" != "" ; then
-             libname=`eval \\$echo \"$libname_spec\"`
-             for i in $lib_search_path; do
-                   potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
-                   for potent_lib in $potential_libs; do
-                     # Follow soft links.
-                     if ls -lLd "$potent_lib" 2>/dev/null \
-                        | grep " -> " >/dev/null; then
-                       continue 
-                     fi
-                     # The statement above tries to avoid entering an
-                     # endless loop below, in case of cyclic links.
-                     # We might still enter an endless loop, since a link
-                     # loop can be closed while we follow links,
-                     # but so what?
-                     potlib="$potent_lib"
-                     while test -h "$potlib" 2>/dev/null; do
-                       potliblink=`ls -ld $potlib | sed 's/.* -> //'`
-                       case "$potliblink" in
-                       [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
-                       *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
-                       esac
-                     done
-                     if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
-                        | sed 10q \
-                        | egrep "$file_magic_regex" > /dev/null; then
-                       newdeplibs="$newdeplibs $a_deplib"
-                       a_deplib=""
-                       break 2
-                     fi
-                   done
-             done
-             if test -n "$a_deplib" ; then
-               droppeddeps=yes
-               echo
-               echo "*** Warning: This library needs some functionality provided by $a_deplib."
-               echo "*** I have the capability to make that library automatically link in when"
-               echo "*** you link to this library.  But I can only do this if you have a"
-               echo "*** shared version of the library, which you do not appear to have."
-             fi
-           else
-             # Add a -L argument.
-             newdeplibs="$newdeplibs $a_deplib"
-           fi
-         done # Gone through all deplibs.
-         ;;
-       none | unknown | *)
-         newdeplibs=""
-         if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
-              -e 's/ -[LR][^ ]*//g' -e 's/[    ]//g' |
-            grep . >/dev/null; then
-           echo
-           if test "X$deplibs_check_method" = "Xnone"; then
-             echo "*** Warning: inter-library dependencies are not supported in this platform."
-           else
-             echo "*** Warning: inter-library dependencies are not known to be supported."
-           fi
-           echo "*** All declared inter-library dependencies are being dropped."
-           droppeddeps=yes
-         fi
-         ;;
-       esac
-       versuffix=$versuffix_save
-       major=$major_save
-       release=$release_save
-       libname=$libname_save
-       name=$name_save
-
-       if test "$droppeddeps" = yes; then
-         if test "$module" = yes; then
-           echo
-           echo "*** Warning: libtool could not satisfy all declared inter-library"
-           echo "*** dependencies of module $libname.  Therefore, libtool will create"
-           echo "*** a static module, that should work as long as the dlopening"
-           echo "*** application is linked with the -dlopen flag."
-           if test -z "$global_symbol_pipe"; then
-             echo
-             echo "*** However, this would only work if libtool was able to extract symbol"
-             echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
-             echo "*** not find such a program.  So, this module is probably useless."
-             echo "*** \`nm' from GNU binutils and a full rebuild may help."
-           fi
-           if test "$build_old_libs" = no; then
-             oldlibs="$output_objdir/$libname.$libext"
-             build_libtool_libs=module
-             build_old_libs=yes
-           else
-             build_libtool_libs=no
-           fi
-         else
-           echo "*** The inter-library dependencies that have been dropped here will be"
-           echo "*** automatically added whenever a program is linked with this library"
-           echo "*** or is declared to -dlopen it."
-         fi
-       fi
-       # Done checking deplibs!
-       deplibs=$newdeplibs
-      fi
-
-      # All the library-specific variables (install_libdir is set above).
-      library_names=
-      old_library=
-      dlname=
-      
-      # Test again, we may have decided not to build it any more
-      if test "$build_libtool_libs" = yes; then
-       # Get the real and link names of the library.
-       eval library_names=\"$library_names_spec\"
-       set dummy $library_names
-       realname="$2"
-       shift; shift
-
-       if test -n "$soname_spec"; then
-         eval soname=\"$soname_spec\"
-       else
-         soname="$realname"
-       fi
-
-       lib="$output_objdir/$realname"
-       for link
-       do
-         linknames="$linknames $link"
-       done
-
-       # Ensure that we have .o objects for linkers which dislike .lo
-       # (e.g. aix) incase we are running --disable-static
-       for obj in $libobjs; do
-         oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
-         if test ! -f $oldobj; then
-           $show "${LN_S} $obj $oldobj"
-           $run ${LN_S} $obj $oldobj || exit $?
-         fi
-       done
-
-       # Use standard objects if they are pic
-       test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
-
-       # Prepare the list of exported symbols
-       if test -z "$export_symbols"; then
-         if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
-           $show "generating symbol list for \`$libname.la'"
-           export_symbols="$output_objdir/$libname.exp"
-           $run $rm $export_symbols
-           eval cmds=\"$export_symbols_cmds\"
-           IFS="${IFS=         }"; save_ifs="$IFS"; IFS='~'
-           for cmd in $cmds; do
-             IFS="$save_ifs"
-             $show "$cmd"
-             $run eval "$cmd" || exit $?
-           done
-           IFS="$save_ifs"
-           if test -n "$export_symbols_regex"; then
-             $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
-             $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
-             $show "$mv \"${export_symbols}T\" \"$export_symbols\""
-             $run eval '$mv "${export_symbols}T" "$export_symbols"'
-           fi
-         fi
-       fi
-
-       if test -n "$export_symbols" && test -n "$include_expsyms"; then
-         $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
-       fi
-
-       if test -n "$convenience"; then
-         if test -n "$whole_archive_flag_spec"; then
-           eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
-         else
-           gentop="$output_objdir/${outputname}x"
-           $show "${rm}r $gentop"
-           $run ${rm}r "$gentop"
-           $show "mkdir $gentop"
-           $run mkdir "$gentop"
-           status=$?
-           if test $status -ne 0 && test ! -d "$gentop"; then
-             exit $status
-           fi
-           generated="$generated $gentop"
-
-           for xlib in $convenience; do
-             # Extract the objects.
-             case "$xlib" in
-             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
-             *) xabs=`pwd`"/$xlib" ;;
-             esac
-             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
-             xdir="$gentop/$xlib"
-
-             $show "${rm}r $xdir"
-             $run ${rm}r "$xdir"
-             $show "mkdir $xdir"
-             $run mkdir "$xdir"
-             status=$?
-             if test $status -ne 0 && test ! -d "$xdir"; then
-               exit $status
-             fi
-             $show "(cd $xdir && $AR x $xabs)"
-             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
-
-             libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
-           done
-         fi
-       fi
-
-       if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
-         eval flag=\"$thread_safe_flag_spec\"
-         linkopts="$linkopts $flag"
-       fi
-
-       # Do each of the archive commands.
-       if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
-         eval cmds=\"$archive_expsym_cmds\"
-       else
-         eval cmds=\"$archive_cmds\"
-       fi
-       IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'
-       for cmd in $cmds; do
-         IFS="$save_ifs"
-         $show "$cmd"
-         $run eval "$cmd" || exit $?
-       done
-       IFS="$save_ifs"
-
-       # Create links to the real library.
-       for linkname in $linknames; do
-         if test "$realname" != "$linkname"; then
-           $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
-           $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
-         fi
-       done
-
-       # If -module or -export-dynamic was specified, set the dlname.
-       if test "$module" = yes || test "$export_dynamic" = yes; then
-         # On all known operating systems, these are identical.
-         dlname="$soname"
-       fi
-      fi
-      ;;
-
-    *.lo | *.o | *.obj)
-      if test -n "$link_against_libtool_libs"; then
-       $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
-       exit 1
-      fi
-
-      if test -n "$deplibs"; then
-       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
-      fi
-
-      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-       $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
-      fi
-
-      if test -n "$rpath"; then
-       $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
-      fi
-
-      if test -n "$xrpath"; then
-       $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
-      fi
-
-      if test -n "$vinfo"; then
-       $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
-      fi
-
-      if test -n "$release"; then
-       $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
-      fi
-
-      case "$output" in
-      *.lo)
-       if test -n "$objs"; then
-         $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
-         exit 1
-       fi
-       libobj="$output"
-       obj=`$echo "X$output" | $Xsed -e "$lo2o"`
-       ;;
-      *)
-       libobj=
-       obj="$output"
-       ;;
-      esac
-
-      # Delete the old objects.
-      $run $rm $obj $libobj
-
-      # Objects from convenience libraries.  This assumes
-      # single-version convenience libraries.  Whenever we create
-      # different ones for PIC/non-PIC, this we'll have to duplicate
-      # the extraction.
-      reload_conv_objs=
-      gentop=
-      # reload_cmds runs $LD directly, so let us get rid of
-      # -Wl from whole_archive_flag_spec
-      wl= 
-
-      if test -n "$convenience"; then
-       if test -n "$whole_archive_flag_spec"; then
-         eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
-       else
-         gentop="$output_objdir/${obj}x"
-         $show "${rm}r $gentop"
-         $run ${rm}r "$gentop"
-         $show "mkdir $gentop"
-         $run mkdir "$gentop"
-         status=$?
-         if test $status -ne 0 && test ! -d "$gentop"; then
-           exit $status
-         fi
-         generated="$generated $gentop"
-
-         for xlib in $convenience; do
-           # Extract the objects.
-           case "$xlib" in
-           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
-           *) xabs=`pwd`"/$xlib" ;;
-           esac
-           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
-           xdir="$gentop/$xlib"
-
-           $show "${rm}r $xdir"
-           $run ${rm}r "$xdir"
-           $show "mkdir $xdir"
-           $run mkdir "$xdir"
-           status=$?
-           if test $status -ne 0 && test ! -d "$xdir"; then
-             exit $status
-           fi
-           $show "(cd $xdir && $AR x $xabs)"
-           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
-
-           reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
-         done
-       fi
-      fi
-
-      # Create the old-style object.
-      reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
-
-      output="$obj"
-      eval cmds=\"$reload_cmds\"
-      IFS="${IFS=      }"; save_ifs="$IFS"; IFS='~'
-      for cmd in $cmds; do
-       IFS="$save_ifs"
-       $show "$cmd"
-       $run eval "$cmd" || exit $?
-      done
-      IFS="$save_ifs"
-
-      # Exit if we aren't doing a library object file.
-      if test -z "$libobj"; then
-       if test -n "$gentop"; then
-         $show "${rm}r $gentop"
-         $run ${rm}r $gentop
-       fi
-
-       exit 0
-      fi
-
-      if test "$build_libtool_libs" != yes; then
-       if test -n "$gentop"; then
-         $show "${rm}r $gentop"
-         $run ${rm}r $gentop
-       fi
-
-       # Create an invalid libtool object if no PIC, so that we don't
-       # accidentally link it into a program.
-       $show "echo timestamp > $libobj"
-       $run eval "echo timestamp > $libobj" || exit $?
-       exit 0
-      fi
-
-      if test -n "$pic_flag"; then
-       # Only do commands if we really have different PIC objects.
-       reload_objs="$libobjs $reload_conv_objs"
-       output="$libobj"
-       eval cmds=\"$reload_cmds\"
-       IFS="${IFS=     }"; save_ifs="$IFS"; IFS='~'
-       for cmd in $cmds; do
-         IFS="$save_ifs"
-         $show "$cmd"
-         $run eval "$cmd" || exit $?
-       done
-       IFS="$save_ifs"
-      else
-       # Just create a symlink.
-       $show $rm $libobj
-       $run $rm $libobj
-       $show "$LN_S $obj $libobj"
-       $run $LN_S $obj $libobj || exit $?
-      fi
-
-      if test -n "$gentop"; then
-       $show "${rm}r $gentop"
-       $run ${rm}r $gentop
-      fi
-
-      exit 0
-      ;;
-
-    # Anything else should be a program.
-    *)
-      if test -n "$vinfo"; then
-       $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
-      fi
-
-      if test -n "$release"; then
-       $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
-      fi
-
-      if test "$preload" = yes; then
-       if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
-          test "$dlopen_self_static" = unknown; then
-         $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
-       fi 
-      fi
-    
-      if test -n "$rpath$xrpath"; then
-       # If the user specified any rpath flags, then add them.
-       for libdir in $rpath $xrpath; do
-         # This is the magic to use -rpath.
-         case "$compile_rpath " in
-         *" $libdir "*) ;;
-         *) compile_rpath="$compile_rpath $libdir" ;;
-         esac
-         case "$finalize_rpath " in
-         *" $libdir "*) ;;
-         *) finalize_rpath="$finalize_rpath $libdir" ;;
-         esac
-       done
-      fi
-
-      # Now hardcode the library paths
-      rpath=
-      hardcode_libdirs=
-      for libdir in $compile_rpath $finalize_rpath; do
-       if test -n "$hardcode_libdir_flag_spec"; then
-         if test -n "$hardcode_libdir_separator"; then
-           if test -z "$hardcode_libdirs"; then
-             hardcode_libdirs="$libdir"
-           else
-             # Just accumulate the unique libdirs.
-             case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
-             *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
-               ;;
-             *)
-               hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
-               ;;
-             esac
-           fi
-         else
-           eval flag=\"$hardcode_libdir_flag_spec\"
-           rpath="$rpath $flag"
-         fi
-       elif test -n "$runpath_var"; then
-         case "$perm_rpath " in
-         *" $libdir "*) ;;
-         *) perm_rpath="$perm_rpath $libdir" ;;
-         esac
-       fi
-      done
-      # Substitute the hardcoded libdirs into the rpath.
-      if test -n "$hardcode_libdir_separator" &&
-        test -n "$hardcode_libdirs"; then
-       libdir="$hardcode_libdirs"
-       eval rpath=\" $hardcode_libdir_flag_spec\"
-      fi
-      compile_rpath="$rpath"
-
-      rpath=
-      hardcode_libdirs=
-      for libdir in $finalize_rpath; do
-       if test -n "$hardcode_libdir_flag_spec"; then
-         if test -n "$hardcode_libdir_separator"; then
-           if test -z "$hardcode_libdirs"; then
-             hardcode_libdirs="$libdir"
-           else
-             # Just accumulate the unique libdirs.
-             case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
-             *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
-               ;;
-             *)
-               hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
-               ;;
-             esac
-           fi
-         else
-           eval flag=\"$hardcode_libdir_flag_spec\"
-           rpath="$rpath $flag"
-         fi
-       elif test -n "$runpath_var"; then
-         case "$finalize_perm_rpath " in
-         *" $libdir "*) ;;
-         *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
-         esac
-       fi
-      done
-      # Substitute the hardcoded libdirs into the rpath.
-      if test -n "$hardcode_libdir_separator" &&
-        test -n "$hardcode_libdirs"; then
-       libdir="$hardcode_libdirs"
-       eval rpath=\" $hardcode_libdir_flag_spec\"
-      fi
-      finalize_rpath="$rpath"
-
-      output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
-      if test "X$output_objdir" = "X$output"; then
-       output_objdir="$objdir"
-      else
-       output_objdir="$output_objdir/$objdir"
-      fi
-
-      # Create the binary in the object directory, then wrap it.
-      if test ! -d $output_objdir; then
-       $show "$mkdir $output_objdir"
-       $run $mkdir $output_objdir
-       status=$?
-       if test $status -ne 0 && test ! -d $output_objdir; then
-         exit $status
-       fi
-      fi
-
-      if test -n "$libobjs" && test "$build_old_libs" = yes; then
-       # Transform all the library objects into standard objects.
-       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
-       finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
-      fi
-
-      dlsyms=
-      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
-       if test -n "$NM" && test -n "$global_symbol_pipe"; then
-         dlsyms="${outputname}S.c"
-       else
-         $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
-       fi
-      fi
-
-      if test -n "$dlsyms"; then
-       case "$dlsyms" in
-       "") ;;
-       *.c)
-         # Discover the nlist of each of the dlfiles.
-         nlist="$output_objdir/${outputname}.nm"
-
-         $show "$rm $nlist ${nlist}S ${nlist}T"
-         $run $rm "$nlist" "${nlist}S" "${nlist}T"
-
-         # Parse the name list into a source file.
-         $show "creating $output_objdir/$dlsyms"
-
-         test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
-/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
-/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
-
-#ifdef __cplusplus
-extern \"C\" {
-#endif
-
-/* Prevent the only kind of declaration conflicts we can make. */
-#define lt_preloaded_symbols some_other_symbol
-
-/* External symbol declarations for the compiler. */\
-"
-
-         if test "$dlself" = yes; then
-           $show "generating symbol list for \`$output'"
-
-           test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
-
-           # Add our own program objects to the symbol list.
-           progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
-           for arg in $progfiles; do
-             $show "extracting global C symbols from \`$arg'"
-             $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
-           done
-
-           if test -n "$exclude_expsyms"; then
-             $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
-             $run eval '$mv "$nlist"T "$nlist"'
-           fi
-           
-           if test -n "$export_symbols_regex"; then
-             $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
-             $run eval '$mv "$nlist"T "$nlist"'
-           fi
-
-           # Prepare the list of exported symbols
-           if test -z "$export_symbols"; then
-             export_symbols="$output_objdir/$output.exp"
-             $run $rm $export_symbols
-             $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
-           else
-             $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
-             $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
-             $run eval 'mv "$nlist"T "$nlist"'
-           fi
-         fi
-
-         for arg in $dlprefiles; do
-           $show "extracting global C symbols from \`$arg'"
-           name=`echo "$arg" | sed -e 's%^.*/%%'`
-           $run eval 'echo ": $name " >> "$nlist"'
-           $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
-         done
-
-         if test -z "$run"; then
-           # Make sure we have at least an empty file.
-           test -f "$nlist" || : > "$nlist"
-
-           if test -n "$exclude_expsyms"; then
-             egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
-             $mv "$nlist"T "$nlist"
-           fi
-
-           # Try sorting and uniquifying the output.
-           if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
-             :
-           else
-             grep -v "^: " < "$nlist" > "$nlist"S
-           fi
-
-           if test -f "$nlist"S; then
-             eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
-           else
-             echo '/* NONE */' >> "$output_objdir/$dlsyms"
-           fi
-
-           $echo >> "$output_objdir/$dlsyms" "\
-
-#undef lt_preloaded_symbols
-
-#if defined (__STDC__) && __STDC__
-# define lt_ptr_t void *
-#else
-# define lt_ptr_t char *
-# define const
-#endif
-
-/* The mapping between symbol names and symbols. */
-const struct {
-  const char *name;
-  lt_ptr_t address;
-}
-lt_preloaded_symbols[] =
-{\
-"
-
-           sed -n -e 's/^: \([^ ]*\) $/  {\"\1\", (lt_ptr_t) 0},/p' \
-               -e 's/^. \([^ ]*\) \([^ ]*\)$/  {"\2", (lt_ptr_t) \&\2},/p' \
-                 < "$nlist" >> "$output_objdir/$dlsyms"
-
-           $echo >> "$output_objdir/$dlsyms" "\
-  {0, (lt_ptr_t) 0}
-};
-
-/* This works around a problem in FreeBSD linker */
-#ifdef FREEBSD_WORKAROUND
-static const void *lt_preloaded_setup() {
-  return lt_preloaded_symbols;
-}
-#endif
-
-#ifdef __cplusplus
-}
-#endif\
-"
-         fi
-
-         pic_flag_for_symtable=
-         case "$host" in
-         # compiling the symbol table file with pic_flag works around
-         # a FreeBSD bug that causes programs to crash when -lm is
-         # linked before any other PIC object.  But we must not use
-         # pic_flag when linking with -static.  The problem exists in
-         # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
-         *-*-freebsd2*|*-*-freebsd3.0*)
-           case "$compile_command " in
-           *" -static "*) ;;
-           *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
-           esac
-         esac
-
-         # Now compile the dynamic symbol file.
-         $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
-         $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
-
-         # Clean up the generated files.
-         $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
-         $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
-
-         # Transform the symbol file into the correct name.
-         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
-         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
-         ;;
-       *)
-         $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
-         exit 1
-         ;;
-       esac
-      else
-       # We keep going just in case the user didn't refer to
-       # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
-       # really was required.
-
-       # Nullify the symbol file.
-       compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
-       finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
-      fi
-
-      if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
-       # Replace the output file specification.
-       compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
-       link_command="$compile_command$compile_rpath"
-
-       # We have no uninstalled library dependencies, so finalize right now.
-       $show "$link_command"
-       $run eval "$link_command"
-       status=$?
-       
-       # Delete the generated files.
-       if test -n "$dlsyms"; then
-         $show "$rm $output_objdir/${outputname}S.${objext}"
-         $run $rm "$output_objdir/${outputname}S.${objext}"
-       fi
-
-       exit $status
-      fi
-
-      if test -n "$shlibpath_var"; then
-       # We should set the shlibpath_var
-       rpath=
-       for dir in $temp_rpath; do
-         case "$dir" in
-         [\\/]* | [A-Za-z]:[\\/]*)
-           # Absolute path.
-           rpath="$rpath$dir:"
-           ;;
-         *)
-           # Relative path: add a thisdir entry.
-           rpath="$rpath\$thisdir/$dir:"
-           ;;
-         esac
-       done
-       temp_rpath="$rpath"
-      fi
-
-      if test -n "$compile_shlibpath$finalize_shlibpath"; then
-       compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
-      fi
-      if test -n "$finalize_shlibpath"; then
-       finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
-      fi
-
-      compile_var=
-      finalize_var=
-      if test -n "$runpath_var"; then
-       if test -n "$perm_rpath"; then
-         # We should set the runpath_var.
-         rpath=
-         for dir in $perm_rpath; do
-           rpath="$rpath$dir:"
-         done
-         compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
-       fi
-       if test -n "$finalize_perm_rpath"; then
-         # We should set the runpath_var.
-         rpath=
-         for dir in $finalize_perm_rpath; do
-           rpath="$rpath$dir:"
-         done
-         finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
-       fi
-      fi
-
-      if test "$hardcode_action" = relink; then
-       # Fast installation is not supported
-       link_command="$compile_var$compile_command$compile_rpath"
-       relink_command="$finalize_var$finalize_command$finalize_rpath"
-       
-       $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
-       $echo "$modename: \`$output' will be relinked during installation" 1>&2
-      else
-       if test "$fast_install" != no; then
-         link_command="$finalize_var$compile_command$finalize_rpath"
-         if test "$fast_install" = yes; then
-           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
-         else
-           # fast_install is set to needless
-           relink_command=
-         fi
-       else
-         link_command="$compile_var$compile_command$compile_rpath"
-         relink_command="$finalize_var$finalize_command$finalize_rpath"
-       fi
-      fi
-
-      # Replace the output file specification.
-      link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
-      
-      # Delete the old output files.
-      $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
-
-      $show "$link_command"
-      $run eval "$link_command" || exit $?
-
-      # Now create the wrapper script.
-      $show "creating $output"
-
-      # Quote the relink command for shipping.
-      if test -n "$relink_command"; then
-       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
-      fi
-
-      # Quote $echo for shipping.
-      if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
-       case "$0" in
-       [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
-       *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
-       esac
-       qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
-      else
-       qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
-      fi
-
-      # Only actually do things if our run command is non-null.
-      if test -z "$run"; then
-       # win32 will think the script is a binary if it has
-       # a .exe suffix, so we strip it off here.
-       case $output in
-         *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
-       esac
-       $rm $output
-       trap "$rm $output; exit 1" 1 2 15
-
-       $echo > $output "\
-#! $SHELL
-
-# $output - temporary wrapper script for $objdir/$outputname
-# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
-#
-# The $output program cannot be directly executed until all the libtool
-# libraries that it depends on are installed.
-#
-# This wrapper script should never be moved out of the build directory.
-# If it is, it will not operate correctly.
-
-# Sed substitution that helps us do robust quoting.  It backslashifies
-# metacharacters that are still active within double-quoted strings.
-Xsed='sed -e 1s/^X//'
-sed_quote_subst='$sed_quote_subst'
-
-# The HP-UX ksh and POSIX shell print the target directory to stdout
-# if CDPATH is set.
-if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi
-
-relink_command=\"$relink_command\"
-
-# This environment variable determines our operation mode.
-if test \"\$libtool_install_magic\" = \"$magic\"; then
-  # install mode needs the following variable:
-  link_against_libtool_libs='$link_against_libtool_libs'
-else
-  # When we are sourced in execute mode, \$file and \$echo are already set.
-  if test \"\$libtool_execute_magic\" != \"$magic\"; then
-    echo=\"$qecho\"
-    file=\"\$0\"
-    # Make sure echo works.
-    if test \"X\$1\" = X--no-reexec; then
-      # Discard the --no-reexec flag, and continue.
-      shift
-    elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
-      # Yippee, \$echo works!
-      :
-    else
-      # Restart under the correct shell, and then maybe \$echo will work.
-      exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
-    fi
-  fi\
-"
-       $echo >> $output "\
-
-  # Find the directory that this script lives in.
-  thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
-  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
-
-  # Follow symbolic links until we get to the real thisdir.
-  file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
-  while test -n \"\$file\"; do
-    destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
-
-    # If there was a directory component, then change thisdir.
-    if test \"x\$destdir\" != \"x\$file\"; then
-      case \"\$destdir\" in
-      [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
-      *) thisdir=\"\$thisdir/\$destdir\" ;;
-      esac
-    fi
-
-    file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
-    file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
-  done
-
-  # Try to get the absolute directory name.
-  absdir=\`cd \"\$thisdir\" && pwd\`
-  test -n \"\$absdir\" && thisdir=\"\$absdir\"
-"
-
-       if test "$fast_install" = yes; then
-         echo >> $output "\
-  program=lt-'$outputname'
-  progdir=\"\$thisdir/$objdir\"
-  
-  if test ! -f \"\$progdir/\$program\" || \\
-     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
-       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
-
-    file=\"\$\$-\$program\"
-
-    if test ! -d \"\$progdir\"; then
-      $mkdir \"\$progdir\"
-    else
-      $rm \"\$progdir/\$file\"
-    fi"
-
-         echo >> $output "\
-
-    # relink executable if necessary
-    if test -n \"\$relink_command\"; then
-      if (cd \"\$thisdir\" && eval \$relink_command); then :
-      else
-       $rm \"\$progdir/\$file\"
-       exit 1
-      fi
-    fi
-
-    $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
-    { $rm \"\$progdir/\$program\";
-      $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
-    $rm \"\$progdir/\$file\"
-  fi"
-       else
-         echo >> $output "\
-  program='$outputname$exeext'
-  progdir=\"\$thisdir/$objdir\"
-"
-       fi
-
-       echo >> $output "\
-
-  if test -f \"\$progdir/\$program\"; then"
-
-       # Export our shlibpath_var if we have one.
-       if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
-         $echo >> $output "\
-    # Add our own library path to $shlibpath_var
-    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
-
-    # Some systems cannot cope with colon-terminated $shlibpath_var
-    # The second colon is a workaround for a bug in BeOS R4 sed
-    $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
-
-    export $shlibpath_var
-"
-       fi
-
-       # fixup the dll searchpath if we need to.
-       if test -n "$dllsearchpath"; then
-         $echo >> $output "\
-    # Add the dll search path components to the executable PATH
-    PATH=$dllsearchpath:\$PATH
-"
-       fi
-
-       $echo >> $output "\
-    if test \"\$libtool_execute_magic\" != \"$magic\"; then
-      # Run the actual program with our arguments.
-"
-       case $host in
-       *-*-cygwin* | *-*-mingw | *-*-os2*)
-         # win32 systems need to use the prog path for dll
-         # lookup to work
-         $echo >> $output "\
-      exec \$progdir\\\\\$program \${1+\"\$@\"}
-"
-         ;;
-       *)
-         $echo >> $output "\
-      # Export the path to the program.
-      PATH=\"\$progdir:\$PATH\"
-      export PATH
-
-      exec \$program \${1+\"\$@\"}
-"
-         ;;
-       esac
-       $echo >> $output "\
-      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
-      exit 1
-    fi
-  else
-    # The program doesn't exist.
-    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
-    \$echo \"This script is just a wrapper for \$program.\" 1>&2
-    echo \"See the $PACKAGE documentation for more information.\" 1>&2
-    exit 1
-  fi
-fi\
-"
-       chmod +x $output
-      fi
-      exit 0
-      ;;
-    esac
-
-    # See if we need to build an old-fashioned archive.
-    for oldlib in $oldlibs; do
-
-      if test "$build_libtool_libs" = convenience; then
-       oldobjs="$libobjs_save"
-       addlibs="$convenience"
-       build_libtool_libs=no
-      else
-       if test "$build_libtool_libs" = module; then
-         oldobjs="$libobjs_save"
-         build_libtool_libs=no
-       else
-         oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
-       fi
-       addlibs="$old_convenience"
-      fi
-
-      if test -n "$addlibs"; then
-       gentop="$output_objdir/${outputname}x"
-       $show "${rm}r $gentop"
-       $run ${rm}r "$gentop"
-       $show "mkdir $gentop"
-       $run mkdir "$gentop"
-       status=$?
-       if test $status -ne 0 && test ! -d "$gentop"; then
-         exit $status
-       fi
-       generated="$generated $gentop"
-         
-       # Add in members from convenience archives.
-       for xlib in $addlibs; do
-         # Extract the objects.
-         case "$xlib" in
-         [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
-         *) xabs=`pwd`"/$xlib" ;;
-         esac
-         xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
-         xdir="$gentop/$xlib"
-
-         $show "${rm}r $xdir"
-         $run ${rm}r "$xdir"
-         $show "mkdir $xdir"
-         $run mkdir "$xdir"
-         status=$?
-         if test $status -ne 0 && test ! -d "$xdir"; then
-           exit $status
-         fi
-         $show "(cd $xdir && $AR x $xabs)"
-         $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
-
-         oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
-       done
-      fi
-
-      # Do each command in the archive commands.
-      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
-       eval cmds=\"$old_archive_from_new_cmds\"
-      else
-       # Ensure that we have .o objects in place incase we decided
-       # not to build a shared library, and have fallen back to building
-       # static libs even though --disable-static was passed!
-       for oldobj in $oldobjs; do
-         if test ! -f $oldobj; then
-           obj=`$echo "X$oldobj" | $Xsed -e "$o2lo"`
-           $show "${LN_S} $obj $oldobj"
-           $run ${LN_S} $obj $oldobj || exit $?
-         fi
-       done
-
-       eval cmds=\"$old_archive_cmds\"
-      fi
-      IFS="${IFS=      }"; save_ifs="$IFS"; IFS='~'
-      for cmd in $cmds; do
-       IFS="$save_ifs"
-       $show "$cmd"
-       $run eval "$cmd" || exit $?
-      done
-      IFS="$save_ifs"
-    done
-
-    if test -n "$generated"; then
-      $show "${rm}r$generated"
-      $run ${rm}r$generated
-    fi
-
-    # Now create the libtool archive.
-    case "$output" in
-    *.la)
-      old_library=
-      test "$build_old_libs" = yes && old_library="$libname.$libext"
-      $show "creating $output"
-
-      if test -n "$xrpath"; then
-       temp_xrpath=
-       for libdir in $xrpath; do
-         temp_xrpath="$temp_xrpath -R$libdir"
-       done
-       dependency_libs="$temp_xrpath $dependency_libs"
-      fi
-
-      # Only create the output if not a dry run.
-      if test -z "$run"; then
-       for installed in no yes; do
-         if test "$installed" = yes; then
-           if test -z "$install_libdir"; then
-             break
-           fi
-           output="$output_objdir/$outputname"i
-         fi
-         $rm $output
-         $echo > $output "\
-# $outputname - a libtool library file
-# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
-#
-# Please DO NOT delete this file!
-# It is necessary for linking the library.
-
-# The name that we can dlopen(3).
-dlname='$dlname'
-
-# Names of this library.
-library_names='$library_names'
-
-# The name of the static archive.
-old_library='$old_library'
-
-# Libraries that this one depends upon.
-dependency_libs='$dependency_libs'
-
-# Version information for $libname.
-current=$current
-age=$age
-revision=$revision
-
-# Is this an already installed library?
-installed=$installed
-
-# Directory that this library needs to be installed in:
-libdir='$install_libdir'\
-"
-       done
-      fi
-
-      # Do a symbolic link so that the libtool archive can be found in
-      # LD_LIBRARY_PATH before the program is installed.
-      $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
-      $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
-      ;;
-    esac
-    exit 0
-    ;;
-
-  # libtool install mode
-  install)
-    modename="$modename: install"
-
-    # There may be an optional sh(1) argument at the beginning of
-    # install_prog (especially on Windows NT).
-    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
-      # Aesthetically quote it.
-      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
-      case "$arg" in
-      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
-       arg="\"$arg\""
-       ;;
-      esac
-      install_prog="$arg "
-      arg="$1"
-      shift
-    else
-      install_prog=
-      arg="$nonopt"
-    fi
-
-    # The real first argument should be the name of the installation program.
-    # Aesthetically quote it.
-    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
-    case "$arg" in
-    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*)
-      arg="\"$arg\""
-      ;;
-    esac
-    install_prog="$install_prog$arg"
-
-    # We need to accept at least all the BSD install flags.
-    dest=
-    files=
-    opts=
-    prev=
-    install_type=
-    isdir=no
-    stripme=
-    for arg
-    do
-      if test -n "$dest"; then
-       files="$files $dest"
-       dest="$arg"
-       continue
-      fi
-
-      case "$arg" in
-      -d) isdir=yes ;;
-      -f) prev="-f" ;;
-      -g) prev="-g" ;;
-      -m) prev="-m" ;;
-      -o) prev="-o" ;;
-      -s)
-       stripme=" -s"
-       continue
-       ;;
-      -*) ;;
-
-      *)
-       # If the previous option needed an argument, then skip it.
-       if test -n "$prev"; then
-         prev=
-       else
-         dest="$arg"
-         continue
-       fi
-       ;;
-      esac
-
-      # Aesthetically quote the argument.
-      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
-      case "$arg" in
-      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
-       arg="\"$arg\""
-       ;;
-      esac
-      install_prog="$install_prog $arg"
-    done
-
-    if test -z "$install_prog"; then
-      $echo "$modename: you must specify an install program" 1>&2
-      $echo "$help" 1>&2
-      exit 1
-    fi
-
-    if test -n "$prev"; then
-      $echo "$modename: the \`$prev' option requires an argument" 1>&2
-      $echo "$help" 1>&2
-      exit 1
-    fi
-
-    if test -z "$files"; then
-      if test -z "$dest"; then
-       $echo "$modename: no file or destination specified" 1>&2
-      else
-       $echo "$modename: you must specify a destination" 1>&2
-      fi
-      $echo "$help" 1>&2
-      exit 1
-    fi
-
-    # Strip any trailing slash from the destination.
-    dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
-
-    # Check to see that the destination is a directory.
-    test -d "$dest" && isdir=yes
-    if test "$isdir" = yes; then
-      destdir="$dest"
-      destname=
-    else
-      destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
-      test "X$destdir" = "X$dest" && destdir=.
-      destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
-
-      # Not a directory, so check to see that there is only one file specified.
-      set dummy $files
-      if test $# -gt 2; then
-       $echo "$modename: \`$dest' is not a directory" 1>&2
-       $echo "$help" 1>&2
-       exit 1
-      fi
-    fi
-    case "$destdir" in
-    [\\/]* | [A-Za-z]:[\\/]*) ;;
-    *)
-      for file in $files; do
-       case "$file" in
-       *.lo) ;;
-       *)
-         $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
-         $echo "$help" 1>&2
-         exit 1
-         ;;
-       esac
-      done
-      ;;
-    esac
-
-    # This variable tells wrapper scripts just to set variables rather
-    # than running their programs.
-    libtool_install_magic="$magic"
-
-    staticlibs=
-    future_libdirs=
-    current_libdirs=
-    for file in $files; do
-
-      # Do each installation.
-      case "$file" in
-      *.a | *.lib)
-       # Do the static libraries later.
-       staticlibs="$staticlibs $file"
-       ;;
-
-      *.la)
-       # Check to see that this really is a libtool archive.
-       if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
-       else
-         $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
-         $echo "$help" 1>&2
-         exit 1
-       fi
-
-       library_names=
-       old_library=
-       # If there is no directory component, then add one.
-       case "$file" in
-       */* | *\\*) . $file ;;
-       *) . ./$file ;;
-       esac
-
-       # Add the libdir to current_libdirs if it is the destination.
-       if test "X$destdir" = "X$libdir"; then
-         case "$current_libdirs " in
-         *" $libdir "*) ;;
-         *) current_libdirs="$current_libdirs $libdir" ;;
-         esac
-       else
-         # Note the libdir as a future libdir.
-         case "$future_libdirs " in
-         *" $libdir "*) ;;
-         *) future_libdirs="$future_libdirs $libdir" ;;
-         esac
-       fi
-
-       dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
-       test "X$dir" = "X$file/" && dir=
-       dir="$dir$objdir"
-
-       # See the names of the shared library.
-       set dummy $library_names
-       if test -n "$2"; then
-         realname="$2"
-         shift
-         shift
-
-         # Install the shared library and build the symlinks.
-         $show "$install_prog$stripme $dir/$realname $destdir/$realname"
-         $run eval "$install_prog$stripme $dir/$realname $destdir/$realname" || exit $?
-
-         if test $# -gt 0; then
-           # Delete the old symlinks, and create new ones.
-           for linkname
-           do
-             if test "$linkname" != "$realname"; then
-               $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
-               $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
-             fi
-           done
-         fi
-
-         # Do each command in the postinstall commands.
-         lib="$destdir/$realname"
-         eval cmds=\"$postinstall_cmds\"
-         IFS="${IFS=   }"; save_ifs="$IFS"; IFS='~'
-         for cmd in $cmds; do
-           IFS="$save_ifs"
-           $show "$cmd"
-           $run eval "$cmd" || exit $?
-         done
-         IFS="$save_ifs"
-       fi
-
-       # Install the pseudo-library for information purposes.
-       name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-       instname="$dir/$name"i
-       $show "$install_prog $instname $destdir/$name"
-       $run eval "$install_prog $instname $destdir/$name" || exit $?
-
-       # Maybe install the static library, too.
-       test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
-       ;;
-
-      *.lo)
-       # Install (i.e. copy) a libtool object.
-
-       # Figure out destination file name, if it wasn't already specified.
-       if test -n "$destname"; then
-         destfile="$destdir/$destname"
-       else
-         destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-         destfile="$destdir/$destfile"
-       fi
-
-       # Deduce the name of the destination old-style object file.
-       case "$destfile" in
-       *.lo)
-         staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
-         ;;
-       *.o | *.obj)
-         staticdest="$destfile"
-         destfile=
-         ;;
-       *)
-         $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
-         $echo "$help" 1>&2
-         exit 1
-         ;;
-       esac
-
-       # Install the libtool object if requested.
-       if test -n "$destfile"; then
-         $show "$install_prog $file $destfile"
-         $run eval "$install_prog $file $destfile" || exit $?
-       fi
-
-       # Install the old object if enabled.
-       if test "$build_old_libs" = yes; then
-         # Deduce the name of the old-style object file.
-         staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
-
-         $show "$install_prog $staticobj $staticdest"
-         $run eval "$install_prog \$staticobj \$staticdest" || exit $?
-       fi
-       exit 0
-       ;;
-
-      *)
-       # Figure out destination file name, if it wasn't already specified.
-       if test -n "$destname"; then
-         destfile="$destdir/$destname"
-       else
-         destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-         destfile="$destdir/$destfile"
-       fi
-
-       # Do a test to see if this is really a libtool program.
-       if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
-         link_against_libtool_libs=
-         relink_command=
-
-         # If there is no directory component, then add one.
-         case "$file" in
-         */* | *\\*) . $file ;;
-         *) . ./$file ;;
-         esac
-
-         # Check the variables that should have been set.
-         if test -z "$link_against_libtool_libs"; then
-           $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
-           exit 1
-         fi
-
-         finalize=yes
-         for lib in $link_against_libtool_libs; do
-           # Check to see that each library is installed.
-           libdir=
-           if test -f "$lib"; then
-             # If there is no directory component, then add one.
-             case "$lib" in
-             */* | *\\*) . $lib ;;
-             *) . ./$lib ;;
-             esac
-           fi
-           libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
-           if test -n "$libdir" && test ! -f "$libfile"; then
-             $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
-             finalize=no
-           fi
-         done
-
-         outputname=
-         if test "$fast_install" = no && test -n "$relink_command"; then
-           if test "$finalize" = yes && test -z "$run"; then
-             tmpdir="/tmp"
-             test -n "$TMPDIR" && tmpdir="$TMPDIR"
-             tmpdir="$tmpdir/libtool-$$"
-             if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
-             else
-               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
-               continue
-             fi
-             outputname="$tmpdir/$file"
-             # Replace the output file specification.
-             relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
-
-             $show "$relink_command"
-             if $run eval "$relink_command"; then :
-             else
-               $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
-               ${rm}r "$tmpdir"
-               continue
-             fi
-             file="$outputname"
-           else
-             $echo "$modename: warning: cannot relink \`$file'" 1>&2
-           fi
-         else
-           # Install the binary that we compiled earlier.
-           file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
-         fi
-       fi
-
-       $show "$install_prog$stripme $file $destfile"
-       $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
-       test -n "$outputname" && ${rm}r "$tmpdir"
-       ;;
-      esac
-    done
-
-    for file in $staticlibs; do
-      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-
-      # Set up the ranlib parameters.
-      oldlib="$destdir/$name"
-
-      $show "$install_prog $file $oldlib"
-      $run eval "$install_prog \$file \$oldlib" || exit $?
-
-      # Do each command in the postinstall commands.
-      eval cmds=\"$old_postinstall_cmds\"
-      IFS="${IFS=      }"; save_ifs="$IFS"; IFS='~'
-      for cmd in $cmds; do
-       IFS="$save_ifs"
-       $show "$cmd"
-       $run eval "$cmd" || exit $?
-      done
-      IFS="$save_ifs"
-    done
-
-    if test -n "$future_libdirs"; then
-      $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
-    fi
-
-    if test -n "$current_libdirs"; then
-      # Maybe just do a dry run.
-      test -n "$run" && current_libdirs=" -n$current_libdirs"
-      exec $SHELL $0 --finish$current_libdirs
-      exit 1
-    fi
-
-    exit 0
-    ;;
-
-  # libtool finish mode
-  finish)
-    modename="$modename: finish"
-    libdirs="$nonopt"
-    admincmds=
-
-    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
-      for dir
-      do
-       libdirs="$libdirs $dir"
-      done
-
-      for libdir in $libdirs; do
-       if test -n "$finish_cmds"; then
-         # Do each command in the finish commands.
-         eval cmds=\"$finish_cmds\"
-         IFS="${IFS=   }"; save_ifs="$IFS"; IFS='~'
-         for cmd in $cmds; do
-           IFS="$save_ifs"
-           $show "$cmd"
-           $run eval "$cmd" || admincmds="$admincmds
-       $cmd"
-         done
-         IFS="$save_ifs"
-       fi
-       if test -n "$finish_eval"; then
-         # Do the single finish_eval.
-         eval cmds=\"$finish_eval\"
-         $run eval "$cmds" || admincmds="$admincmds
-       $cmds"
-       fi
-      done
-    fi
-
-    # Exit here if they wanted silent mode.
-    test "$show" = : && exit 0
-
-    echo "----------------------------------------------------------------------"
-    echo "Libraries have been installed in:"
-    for libdir in $libdirs; do
-      echo "   $libdir"
-    done
-    echo
-    echo "If you ever happen to want to link against installed libraries"
-    echo "in a given directory, LIBDIR, you must either use libtool, and"
-    echo "specify the full pathname of the library, or use \`-LLIBDIR'"
-    echo "flag during linking and do at least one of the following:"
-    if test -n "$shlibpath_var"; then
-      echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
-      echo "     during execution"
-    fi
-    if test -n "$runpath_var"; then
-      echo "   - add LIBDIR to the \`$runpath_var' environment variable"
-      echo "     during linking"
-    fi
-    if test -n "$hardcode_libdir_flag_spec"; then
-      libdir=LIBDIR
-      eval flag=\"$hardcode_libdir_flag_spec\"
-
-      echo "   - use the \`$flag' linker flag"
-    fi
-    if test -n "$admincmds"; then
-      echo "   - have your system administrator run these commands:$admincmds"
-    fi
-    if test -f /etc/ld.so.conf; then
-      echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
-    fi
-    echo
-    echo "See any operating system documentation about shared libraries for"
-    echo "more information, such as the ld(1) and ld.so(8) manual pages."
-    echo "----------------------------------------------------------------------"
-    exit 0
-    ;;
-
-  # libtool execute mode
-  execute)
-    modename="$modename: execute"
-
-    # The first argument is the command name.
-    cmd="$nonopt"
-    if test -z "$cmd"; then
-      $echo "$modename: you must specify a COMMAND" 1>&2
-      $echo "$help"
-      exit 1
-    fi
-
-    # Handle -dlopen flags immediately.
-    for file in $execute_dlfiles; do
-      if test ! -f "$file"; then
-       $echo "$modename: \`$file' is not a file" 1>&2
-       $echo "$help" 1>&2
-       exit 1
-      fi
-
-      dir=
-      case "$file" in
-      *.la)
-       # Check to see that this really is a libtool archive.
-       if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
-       else
-         $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
-         $echo "$help" 1>&2
-         exit 1
-       fi
-
-       # Read the libtool library.
-       dlname=
-       library_names=
-
-       # If there is no directory component, then add one.
-       case "$file" in
-       */* | *\\*) . $file ;;
-       *) . ./$file ;;
-       esac
-
-       # Skip this library if it cannot be dlopened.
-       if test -z "$dlname"; then
-         # Warn if it was a shared library.
-         test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
-         continue
-       fi
-
-       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
-       test "X$dir" = "X$file" && dir=.
-
-       if test -f "$dir/$objdir/$dlname"; then
-         dir="$dir/$objdir"
-       else
-         $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
-         exit 1
-       fi
-       ;;
-
-      *.lo)
-       # Just add the directory containing the .lo file.
-       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
-       test "X$dir" = "X$file" && dir=.
-       ;;
-
-      *)
-       $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
-       continue
-       ;;
-      esac
-
-      # Get the absolute pathname.
-      absdir=`cd "$dir" && pwd`
-      test -n "$absdir" && dir="$absdir"
-
-      # Now add the directory to shlibpath_var.
-      if eval "test -z \"\$$shlibpath_var\""; then
-       eval "$shlibpath_var=\"\$dir\""
-      else
-       eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
-      fi
-    done
-
-    # This variable tells wrapper scripts just to set shlibpath_var
-    # rather than running their programs.
-    libtool_execute_magic="$magic"
-
-    # Check if any of the arguments is a wrapper script.
-    args=
-    for file
-    do
-      case "$file" in
-      -*) ;;
-      *)
-       # Do a test to see if this is really a libtool program.
-       if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
-         # If there is no directory component, then add one.
-         case "$file" in
-         */* | *\\*) . $file ;;
-         *) . ./$file ;;
-         esac
-
-         # Transform arg to wrapped name.
-         file="$progdir/$program"
-       fi
-       ;;
-      esac
-      # Quote arguments (to preserve shell metacharacters).
-      file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
-      args="$args \"$file\""
-    done
-
-    if test -z "$run"; then
-      # Export the shlibpath_var.
-      eval "export $shlibpath_var"
-
-      # Restore saved enviroment variables
-      if test "${save_LC_ALL+set}" = set; then
-       LC_ALL="$save_LC_ALL"; export LC_ALL
-      fi
-      if test "${save_LANG+set}" = set; then
-       LANG="$save_LANG"; export LANG
-      fi
-
-      # Now actually exec the command.
-      eval "exec \$cmd$args"
-
-      $echo "$modename: cannot exec \$cmd$args"
-      exit 1
-    else
-      # Display what would be done.
-      eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
-      $echo "export $shlibpath_var"
-      $echo "$cmd$args"
-      exit 0
-    fi
-    ;;
-
-  # libtool uninstall mode
-  uninstall)
-    modename="$modename: uninstall"
-    rm="$nonopt"
-    files=
-
-    for arg
-    do
-      case "$arg" in
-      -*) rm="$rm $arg" ;;
-      *) files="$files $arg" ;;
-      esac
-    done
-
-    if test -z "$rm"; then
-      $echo "$modename: you must specify an RM program" 1>&2
-      $echo "$help" 1>&2
-      exit 1
-    fi
-
-    for file in $files; do
-      dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
-      test "X$dir" = "X$file" && dir=.
-      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
-
-      rmfiles="$file"
-
-      case "$name" in
-      *.la)
-       # Possibly a libtool archive, so verify it.
-       if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
-         . $dir/$name
-
-         # Delete the libtool libraries and symlinks.
-         for n in $library_names; do
-           rmfiles="$rmfiles $dir/$n"
-         done
-         test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
-
-         $show "$rm $rmfiles"
-         $run $rm $rmfiles
-
-         if test -n "$library_names"; then
-           # Do each command in the postuninstall commands.
-           eval cmds=\"$postuninstall_cmds\"
-           IFS="${IFS=         }"; save_ifs="$IFS"; IFS='~'
-           for cmd in $cmds; do
-             IFS="$save_ifs"
-             $show "$cmd"
-             $run eval "$cmd"
-           done
-           IFS="$save_ifs"
-         fi
-
-         if test -n "$old_library"; then
-           # Do each command in the old_postuninstall commands.
-           eval cmds=\"$old_postuninstall_cmds\"
-           IFS="${IFS=         }"; save_ifs="$IFS"; IFS='~'
-           for cmd in $cmds; do
-             IFS="$save_ifs"
-             $show "$cmd"
-             $run eval "$cmd"
-           done
-           IFS="$save_ifs"
-         fi
-
-         # FIXME: should reinstall the best remaining shared library.
-       fi
-       ;;
-
-      *.lo)
-       if test "$build_old_libs" = yes; then
-         oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
-         rmfiles="$rmfiles $dir/$oldobj"
-       fi
-       $show "$rm $rmfiles"
-       $run $rm $rmfiles
-       ;;
-
-      *)
-       $show "$rm $rmfiles"
-       $run $rm $rmfiles
-       ;;
-      esac
-    done
-    exit 0
-    ;;
-
-  "")
-    $echo "$modename: you must specify a MODE" 1>&2
-    $echo "$generic_help" 1>&2
-    exit 1
-    ;;
-  esac
-
-  $echo "$modename: invalid operation mode \`$mode'" 1>&2
-  $echo "$generic_help" 1>&2
-  exit 1
-fi # test -z "$show_help"
-
-# We need to display help for each of the modes.
-case "$mode" in
-"") $echo \
-"Usage: $modename [OPTION]... [MODE-ARG]...
-
-Provide generalized library-building support services.
-
-    --config          show all configuration variables
-    --debug           enable verbose shell tracing
--n, --dry-run         display commands without modifying any files
-    --features        display basic configuration information and exit
-    --finish          same as \`--mode=finish'
-    --help            display this help message and exit
-    --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
-    --quiet           same as \`--silent'
-    --silent          don't print informational messages
-    --version         print version information
-
-MODE must be one of the following:
-
-      compile         compile a source file into a libtool object
-      execute         automatically set library path, then run a program
-      finish          complete the installation of libtool libraries
-      install         install libraries or executables
-      link            create a library or an executable
-      uninstall       remove libraries from an installed directory
-
-MODE-ARGS vary depending on the MODE.  Try \`$modename --help --mode=MODE' for
-a more detailed description of MODE."
-  exit 0
-  ;;
-
-compile)
-  $echo \
-"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
-
-Compile a source file into a libtool library object.
-
-This mode accepts the following additional options:
-
-  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
-  -static           always build a \`.o' file suitable for static linking
-
-COMPILE-COMMAND is a command to be used in creating a \`standard' object file
-from the given SOURCEFILE.
-
-The output file name is determined by removing the directory component from
-SOURCEFILE, then substituting the C source code suffix \`.c' with the
-library object suffix, \`.lo'."
-  ;;
-
-execute)
-  $echo \
-"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
-
-Automatically set library path, then run a program.
-
-This mode accepts the following additional options:
-
-  -dlopen FILE      add the directory containing FILE to the library path
-
-This mode sets the library path environment variable according to \`-dlopen'
-flags.
-
-If any of the ARGS are libtool executable wrappers, then they are translated
-into their corresponding uninstalled binary, and any of their required library
-directories are added to the library path.
-
-Then, COMMAND is executed, with ARGS as arguments."
-  ;;
-
-finish)
-  $echo \
-"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
-
-Complete the installation of libtool libraries.
-
-Each LIBDIR is a directory that contains libtool libraries.
-
-The commands that this mode executes may require superuser privileges.  Use
-the \`--dry-run' option if you just want to see what would be executed."
-  ;;
-
-install)
-  $echo \
-"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
-
-Install executables or libraries.
-
-INSTALL-COMMAND is the installation command.  The first component should be
-either the \`install' or \`cp' program.
-
-The rest of the components are interpreted as arguments to that command (only
-BSD-compatible install options are recognized)."
-  ;;
-
-link)
-  $echo \
-"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
-
-Link object files or libraries together to form another library, or to
-create an executable program.
-
-LINK-COMMAND is a command using the C compiler that you would use to create
-a program from several object files.
-
-The following components of LINK-COMMAND are treated specially:
-
-  -all-static       do not do any dynamic linking at all
-  -avoid-version    do not add a version suffix if possible
-  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
-  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
-  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
-  -export-symbols SYMFILE
-                   try to export only the symbols listed in SYMFILE
-  -export-symbols-regex REGEX
-                   try to export only the symbols matching REGEX
-  -LLIBDIR          search LIBDIR for required installed libraries
-  -lNAME            OUTPUT-FILE requires the installed library libNAME
-  -module           build a library that can dlopened
-  -no-undefined     declare that a library does not refer to external symbols
-  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
-  -release RELEASE  specify package release information
-  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
-  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
-  -static           do not do any dynamic linking of libtool libraries
-  -version-info CURRENT[:REVISION[:AGE]]
-                   specify library version info [each variable defaults to 0]
-
-All other options (arguments beginning with \`-') are ignored.
-
-Every other argument is treated as a filename.  Files ending in \`.la' are
-treated as uninstalled libtool libraries, other files are standard or library
-object files.
-
-If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
-only library objects (\`.lo' files) may be specified, and \`-rpath' is
-required, except when creating a convenience library.
-
-If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
-using \`ar' and \`ranlib', or on Windows using \`lib'.
-
-If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
-is created, otherwise an executable program is created."
-  ;;
-
-uninstall)
-  $echo \
-"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
-
-Remove libraries from an installation directory.
-
-RM is the name of the program to use to delete files associated with each FILE
-(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
-to RM.
-
-If FILE is a libtool library, all the files associated with it are deleted.
-Otherwise, only FILE itself is deleted using RM."
-  ;;
-
-*)
-  $echo "$modename: invalid operation mode \`$mode'" 1>&2
-  $echo "$help" 1>&2
-  exit 1
-  ;;
-esac
-
-echo
-$echo "Try \`$modename --help' for more information about other modes."
-
-exit 0
-
-# Local Variables:
-# mode:shell-script
-# sh-indentation:2
-# End:
diff --git a/libCxClient/missing b/libCxClient/missing
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/libCxClient/mkinstalldirs b/libCxClient/mkinstalldirs
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/libCxClient/src/CxClient.h b/libCxClient/src/CxClient.h
deleted file mode 100644 (file)
index 05e7ced..0000000
+++ /dev/null
@@ -1,284 +0,0 @@
-/**
- ** CxClient - Improved Citadel/UX Client
- ** Copyright (c) 2000, SCCG/Flaming Sword Productions
- ** All Rights Reserved
- **
- ** Module: CxClient.h
- ** Date: 2000-12-14
- ** Last Revision: 2000-12-14
- ** Description: Global CxClient library header.
- ** CVS: $Id$
- **/
-#ifndef                __CXCLIENT_H__
-#define                __CXCLIENT_H__
-
-#define                CXREVISION              "$Id$"
-
-#define                RC_LISTING              100     // LISTING_FOLLOWS
-#define                RC_OK                   200     // OK
-#define                RC_MOREDATA             300     // MORE_DATA
-#define                RC_SENDLIST             400     // SEND_LISTING
-#define                RC_ERROR                500     // ERROR
-#define                RC_RECVBIN              600     // BINARY_FOLLOWS
-#define                RC_SENDBIN              700     // SEND_BINARY
-#define                RC_STARTCHAT            800     // START_CHAT_MODE
-#define                RC_ASYNCMSG             900     // Asynchronous Message
-#define                RC_AEXPMSG              901     // Express Message Follows
-#define                RC_MESGWAIT             1000    // Message Waiting
-
-/**
- ** The CHECKRC() macro is used to compare a Result Code 'x' with
- ** the expected result 'y'.
- **/
-#define                CHECKRC(x,y)            ((x - (x % y)) == y)
-
-#ifdef         DEBUG
-
-#define                DFA             __FILE__,__LINE__,__FUNCTION__
-#define                DPF(a)          CxDebug a
-
-#else
-
-#define                DFA             NULL
-#define                DPF(a)  
-
-#endif
-
-typedef
-struct          _file_info {
-
- char          name[255];
- long unsigned
- int           size;
- char          descr[255];
-
- /**
-  ** Reserved for future use.  Cit/UX may not
-  ** support this yet....
-  **/
- long unsigned
- int           owner,
-               group;
- short int     mode;
-
-} FILEINFO;
-
-/**
- ** Linked-List Structure
- **/
-typedef struct _linked_list {
-       char    *data;
-       struct
-       _linked_list *next;
-} CLIST;
-typedef CLIST* CXLIST;
-
-typedef
-struct          _message_info {
- long unsigned
- int           message_id;
- char           author[255],
-                rcpt[255],
-                subject[255],
-                room[255],
-                path[255],
-                node[255],
-                date[255];
- char           *body;
-} MESGINFO;
-
-/**
- ** struct ROOMINFO: This structure contains all information related
- ** to a room.
- **/
-typedef
-struct         _room_info {
- char          name[255];
- long unsigned
- int           msgs_unread,
-               msgs_total;
- short int     info_flag;
- long unsigned
- int           flags,
-               msgs_highest,
-               msgs_highest_u;
- short int     mailroom,
-               aide,
-               mode;
- long unsigned
- int           msgs_newmail,
-               floor_id;
-} ROOMINFO;
-
-/**
- ** struct USERINFO: This structure contains all information related
- ** to a user account.
- **/
-typedef
-struct         _user_info {
- char          username[255],
-               fullname[255],
-               password[255];
-
- /**
-  ** USERINFO.addr: Address information.
-  **/
- struct _a {
-  char         street[255],
-               city[255],
-               st[255],
-               zip[255];
- } addr;
-
- /**
-  ** USERINFO.contact: Contact information.
-  **/
- struct _c {
-  char         telephone[255],
-               emailaddr[255];
- } contact;
-
- /**
-  ** USERINFO.system: System information.  Should not be modified.
-  **/
- struct _sys {
-  int          access_level;
-  long unsigned
-  int          times_called,
-               messages_posted,
-               user_flags,
-               user_number;
- } system;
-
-} USERINFO;
-
-/**
- ** struct _Exp_Mesg: This record contains a single Express Message, including any
- ** text bound to the message.  It is an encapuslated GEXP message.
- **/
-typedef struct _Exp_Mesg {
-
- int           more_follows;
- unsigned long int timestamp;
- unsigned long int flags;
- char          sender[255];
- char          node[255];
- char          *message;       /** This MUST be freed. **/
-
-} EXPRMESG;
-
-/**
- ** struct _Cmd_Callback: This record contains information regarding Server->Client
- ** message callbacks.  The general rule is such: IF the client wishes to handle
- ** certain types of Server-to-Client traffic [currently unimplemented], the author
- ** should register a Callback function to handle the command sent by the server.
- ** The client can register a callback function for a single message type, or for
- ** a specific data session (like, to handle a file download). Similarly, if a
- ** client wishes to stop processing a certain type of message, the client can
- ** deregister the command's callback.
- **
- ** Any messages received which do not have an attached callback function will be
- ** ignored.
- **/
-typedef
-struct          _Cmd_Callback {
-
- int            cmd;            // Command sent from server.  [9xx]
- char           session[10];    // Optional session id.
- void           (*Function)(int, void *); // Function to call upon success.
-
- struct _Cmd_Callback *next;
-
-} CXCSCALLBACK;
-typedef CXCSCALLBACK* CXCBHNDL;
-
-#ifdef         __cplusplus
-extern "C" {
-#endif
-
-float          CxRevision();
-void           CxSerialize(const char *, char **);
-
-/**
- ** Client/Server Communications
- **/
-void           CxClRegClient(const char *);
-int            CxClConnection( const char *, int, const char *, const char * );
-void           CxClSetHost( int, const char *);
-void           CxClSetUser( int, const char *);
-char           *CxClGetUser( int );
-void           CxClSetPass( int, const char *);
-char           *CxClGetPass( int );
-void           CxClDelete( int );
-int            CxClConnect( int );
-void           CxClDisconnect( int );
-int            CxClStat( int );
-void           CxClSend( int, const char *s );
-int            CxClRecv( int, char *s );
-
-int            CxClChatInit();
-void           CxClChatShutdown();
-int            CxClCbRegister(int, void *);
-void           CxClCbShutdown();
-void           CxClCbRemove( int);
-CXCBHNDL       CxClCbExists( int);
-
-/**
- ** File Input/Output
- **/
-CXLIST         CxFiIndex( int );
-int            CxFiPut( int, FILEINFO, int);
-char           *CxFiGet(int, const char *);
-
-/**
- ** Message Input/Output
- **/
-#define                MSGS_ALL                0       // Retrieve ALL messages in room.
-#define                MSGS_NEW                1       // Retrieve only UNREAD messages in room.
-#define                MSGS_LAST               2       // *Unsupported* Retrieve the LAST X messages in room.
-#define                MSGS_SEARCH             3       // *Unsupported* Search room for ...? .
-CXLIST         CxMsInfo(int, CXLIST);
-CXLIST         CxMsList(int, int,int);
-int            CxMsLoad(int, unsigned long int, int, MESGINFO *);
-int            CxMsSaveOk(int, const char *);
-int            CxMsSave(int, MESGINFO);
-void           CxMsMark(int, long unsigned int );
-
-/**
- ** Room/Floor Commands
- **/
-ROOMINFO       *CxRmGoto(int, const char *, int);
-CXLIST         CxRmList(int);
-CXLIST         CxFlList(int);
-int            CxRmCreate(int, ROOMINFO);
-
-/**
- ** Miscellaneous Commands
- **/
-int            CxMiExpSend(int,const char *, const char *);
-EXPRMESG       *CxMiExpRecv(int);
-int            CxMiExpCheck(int);
-void           CxMiExpHook(void (*)(const char *, const char*));
-char           *CxMiMessage(int,const char *);
-char           *CxMiImage(int,const char *);
-
-/**
- ** Linked-List Handlers
- **/
-CXLIST         CxLlInsert(CXLIST, char *);
-CXLIST         CxLlRemove(CXLIST, unsigned int);
-CXLIST         CxLlFlush(CXLIST);
-
-/**
- ** User Info Commands
- **/
-CXLIST          CxUsOnline(int, int);
-CXLIST          CxUsList(int );
-int            CxUsCreate(int, USERINFO);
-USERINFO       *CxUsAuth(int, const char *, const char *);
-
-#ifdef         __cplusplus
-} // extern "C"
-#endif
-
-#endif
diff --git a/libCxClient/src/Makefile.am b/libCxClient/src/Makefile.am
deleted file mode 100644 (file)
index eb87f70..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-##
-## libCxClient - Citadel/UX Extensible Client API
-## Copyright (c) 2000, Flaming Sword Productions
-## Copyright (c) 2001, The Citadel/UX Consortium
-## All Rights Reserved
-##
-INCLUDES  = $(all_includes)
-SUBDIRS = .
-pkgincludedir = $(includedir)
-
-lib_LTLIBRARIES = libCxClient.la
-libCxClient_la_LDFLAGS = -version-info 0:0:0
-libCxClient_la_SOURCES = chat.c debug.c files.c libtransport.c listmgt.c messages.c misc.c rooms.c users.c
-# headers to be installed
-pkginclude_HEADERS = CxClient.h
diff --git a/libCxClient/src/chat.c b/libCxClient/src/chat.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/libCxClient/src/debug.c b/libCxClient/src/debug.c
deleted file mode 100644 (file)
index 5ba5464..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: debug.o
- ** Date: 2000-10-15
- ** Last Revision: 2000-10-15
- ** Description: Debug functions.
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <stdarg.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-
-#ifdef DEBUG
-#warning       "Debugging Mode Enabled.  This may not be practical for you..."
-
-/**
- ** CxDebug(): Output debugging information.
- **
- ** [Expects]
- **  (#define) DFA: __FILE__, __LINE__, __FUNCTION__.
- **  (char *) fmt: printf()-style format string.
- **  ...: Arguments to printf() format.
- **/
-void           CxDebug(
-                       const char *file, 
-                       int line, 
-                       const char *function, 
-                       char *fmt, 
-                       ...) {
-va_list                ap;
-
-       va_start(ap,fmt);
-       fprintf(stderr,"%% [%s:%d] %s(): ", file, line, function);
-       vfprintf(stderr,fmt,ap);
-       fprintf(stderr,"\n");
-       va_end(ap);
-
-}
-
-#else
-
-
-#endif
-
-/**
- ** CxMalloc(): Allocate memory.  Annotate allocation in debug log.
- **/
-void           *CxMalloc(int szlen) {
-void           *ret;
-
-       ret = malloc(szlen);
-       if(ret) {
-               DPF((DFA,"MEM/ALC:\t%d\t@0x%08x",szlen, ret));
-       }
-
-       return(ret);
-}
-
-/**
- ** CxFree(): Free memory.  Annotate deallocation in debug log.
- **/
-void           *CxFree(void *obj) {
-       DPF((DFA,"MEM/FRE:\t-1\t@0x%08x",obj));
-       free(obj);
-}
-
diff --git a/libCxClient/src/files.c b/libCxClient/src/files.c
deleted file mode 100644 (file)
index 9f3eb42..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: file.o
- ** Date: 2000-11-16
- ** Last Revision: 2000-11-16
- ** Description: File directory/transfer functions.
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <signal.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-#include       "uname.h"
-
-static void    (*_CxFiFunc)(const char *, void *);
-
-/**
- ** CxFiIndex(): Retrieve an index of files IN THE
- ** CURRENT ROOM. 
- **
- ** [Returns]
- **  Success: 1 blank entry + List of files in current room.
- **  Success, No Files: 1 blank entry
- **  Failure: NULL list.
- **/
-CXLIST         CxFiIndex( int id ) {
-int            rc;
-char           buf[512];
-CXLIST         flist = 0;
-
-       DPF((DFA,"Retrieving file index."));
-
-       /**
-        ** Request directory listing from server.
-        **/
-       DPF((DFA,"Sending request..."));
-       CxClSend(id, "RDIR");
-       rc = CxClRecv(id, buf);
-
-       /**
-        ** If this room allows directory listings...
-        **/
-       if(CHECKRC(rc,RC_LISTING)) {
-               DPF((DFA,"LISTING_FOLLOWS..."));
-
-               do {
-                       rc = CxClRecv(id, buf);
-                       DPF((DFA,"%s", buf));
-                       if(rc<0) {
-                               flist = CxLlInsert(flist, buf);
-                       }
-               } while(rc<0);
-               DPF((DFA,"LISTING_COMPLETE"));
-
-               return(flist);
-       
-       /**
-        ** ...otherwise, there's nothing to see here...
-        **/
-       } else {
-               DPF((DFA, "No files found"));
-               return(NULL);
-       }
-}
-
-/**
- ** CxFiPut(): Send a file to the server.
- **
- ** [Expects]
- **  (FILEINFO) f_info: File information
- **  (int) f_ptr: open() file pointer.
- **
- ** [Returns]
- **  Success: 0
- **  Failure; Not Here: 1
- **  Failure; Malformed file information: 2
- **  Failure; File Exists: 3
- **  Failure; Nonexistent FILE pointer.
- **/
-int            CxFiPut(int id, FILEINFO f_info, int f_ptr) {
-       return(0);
-}
-
-/**
- ** CxFiGet(): Download a file from the server.
- **
- ** [Expects]
- **  (char *) name: Name of the file we are downloading.
- **
- ** [Returns]
- **  Success: Ptr to malloc()ed tmp filename containing file data.
- **  Failure: NULL
- **/
-char           *CxFiGet(int id, const char *name) {
-
-
-       /**
-        ** Failed, return NULL.
-        **/
-       return(NULL);
-}
-
-/**
- ** _CxFiHook(): We will hook ourselves into the Transport layer to
- ** handle incoming file transfers.
- **/
-void           _CxFiHook(int cxid, void *data) {
-       DPF((DFA, "Message received"));
-}
-
-/**
- ** CxFiHook(): The user wishes to provide a hook application to
- ** handle incoming file transfers.
- **
- ** [Expects]
- **  func: The function that the user has written to handle file
- **        downloads.
- **        void func( const char *FILE_NAME, void *FILE_DATA);
- **/
-void            CxFiHook(void *func) {
-
-        DPF((DFA, "Hooking user func@0x%08x",func));
-
-        /**
-         ** If libCxClient has not already hooked this type of
-         ** message, we need to go ahead and hook it to our
-         ** internal routing function.
-         **/
-        if(!CxClCbExists(902)) {
-                DPF((DFA, "Hooking into RC_902"));
-                CxClCbRegister(902, _CxFiHook);
-        }
-
-        /**
-         ** Now, register the user's hooked function with
-         ** ourselves.  This instructs _CxFiHook() on
-         ** where to route data.
-         **/
-        DPF((DFA,"Registering user hook"));
-        _CxFiFunc = func;
-
-        DPF((DFA,"Ok, at this point, RC_902 messages should be routed to the user."));
-        DPF((DFA,"Don't blame me if it doesn't work.  You told me what to do, Brian."));
-}
diff --git a/libCxClient/src/libtransport.c b/libCxClient/src/libtransport.c
deleted file mode 100644 (file)
index ba36a10..0000000
+++ /dev/null
@@ -1,1056 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: libtransport.o
- ** Date: 2000-11-30
- ** Last Revision: 2000-11-30
- ** Description: Interface to Transport module.
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <stdarg.h>
-#include       <unistd.h>
-#include       <string.h>
-#include       <dlfcn.h> 
-#include       <signal.h>
-#include       <string.h>
-#include       <pwd.h>
-#include       <errno.h>
-#include       <sys/types.h>
-#include       <sys/socket.h>
-#include       <netinet/in.h>
-#include       <arpa/inet.h>
-#include       <sys/un.h>
-#include       <netdb.h>
-#include       <dlfcn.h>
-#include       <CxClient.h>
-#include       "uname.h"
-#include       "autoconf.h"
-
-static int     g_CxChatMode = 0,
-               g_CxSocket = 0,
-               g_CxAsynMode = 0,
-               g_CxSemaphore = 0;
-static CXCBHNDL        _CbHandles = 0;
-static char    g_CxClientName[32] = "";
-static int     _CxCallback(int, int, void *);
-static void    timeout() {}
-static void    _CxClSend( int, const char * );
-static int     _CxClRecv( int, int*, char *, int );
-
-/**
- ** CXTBL: Connection handle table.  Use this to make libCxClient thread-safe, and allow
- ** us to maintain multiple concurrent connections.
- **/
-typedef struct _cx_tbl_entry {
-
-       int     cxId;           /* cxId: Connection ID */
-
-       char    host[255],      /* host: Citadel/UX hostname */
-               user[64],       /* user: Citadel/UX username */
-               pass[64];       /* pass: Citadel/UX password */
-       int     port,           /* port: Port number to connect to */
-               connected,      /* connected: (bool) Are we connected to our Citadel/UX host? */
-               asynMode,       /* asynMode: (bool) Are we actively in ASYN mode? */
-               semaphore;      /* semaphore: (bool) Prevent access to _sock at this time? */
-
-       /**
-        ** Internal
-        **/
-       int     _sock;          /* _sock: TCP/IP connection socket */
-
-       struct _cx_tbl_entry
-               *_next,         /* _next: Next CXTBL entry. */
-               *_prev;         /* _prev: Previous CXTBL entry. */
-
-}              CXTBLENT;
-typedef CXTBLENT* CXHNDL;
-
-/**
- ** [GLOBAL CXTABLE] There should only exist one of these in memory at any
- ** point in time, to ensure threadsafeness.
- **/
-static CXHNDL          g_CxTbl = 0L;
-
-/**
- ** _CxTbNewID(): Get the next cxId for the specified connection table.
- **/
-static
-int            _CxTbNewID( CXHNDL tbl ) {
-CXHNDL         p;
-int            ret;
-
-       p = tbl;
-       ret = 1;
-       while( p ) {
-               if(p->cxId == ret) ret = (p->cxId)+1;
-               p = p->_next;
-       }
-
-       DPF((DFA, "Next cxId: %d", ret));
-       return(ret);
-}
-
-/**
- ** _CxTbNew(): New CXTBL entry.
- **/
-static
-CXHNDL         _CxTbNew( CXHNDL tbl ) {
-CXHNDL         ret = 0;
-
-       DPF((DFA, "Creating new CXTBL handle."));
-
-       ret = (CXHNDL) CxMalloc( sizeof(CXTBLENT) );
-       if(ret<=0) return(NULL);
-
-       /**
-        ** Initialize these pointers to prevent confusion.
-        **/
-       ret->_next = NULL;
-       ret->_prev = NULL;
-
-       /**
-        ** Establish Default values
-        **/
-       ret->port = 504;
-       ret->connected = 0;
-       ret->asynMode = 0;
-       ret->semaphore = 0;
-       ret->_sock = 0;
-       ret->host[0] = 0;
-       ret->user[0] = 0;
-       ret->pass[0] = 0;
-
-       /**
-        ** Obtain the next cxId for this particular table.
-        **/
-       ret->cxId = _CxTbNewID( tbl );
-
-       DPF((DFA, "Returning hndl @0x%08x", ret ));
-       return(ret);
-}
-
-/**
- ** _CxTbEntry(): Return a handle to a particular table entry.
- **/
-static
-CXHNDL         _CxTbEntry( CXHNDL tbl, int id ) {
-CXHNDL         p;
-
-       DPF((DFA,"Resolve [tbl@0x%08x] id %d", tbl, id ));
-       p = tbl;
-       while( p ) {
-               DPF((DFA,"p->cxId: %d", p->cxId));
-               if( id == p->cxId ) {
-                       DPF((DFA," ->host: %s:%d", p->host, p->port));
-                       DPF((DFA," ->user: %s", p->user));
-                       DPF((DFA," ->pass: %s", p->pass));
-                       DPF((DFA," ->_sock: %d", p->_sock));
-                       return(p);
-               }
-               p = p->_next;
-       }
-       return((CXHNDL)NULL);
-}
-
-/**
- ** _CxTbInsert(): Insert a new CxTbl entry into the table.  Return a handle
- ** id for the new entry.  (Parameters here can be set at a later time.)
- **/
-static
-int            _CxTbInsert( const char *host, int port, const char *user, const char *pass ) {
-CXHNDL         p,n;
-char           *tmp;
-
-       DPF((DFA,"Insert new table entry."));
-
-       DPF((DFA,"Allocating new CXTBL block."));
-       n = _CxTbNew( g_CxTbl );
-
-       DPF((DFA,"Copying host"));
-       if(host && *host) {
-               if(strlen(host) >= 254) {
-                       tmp = (char *)CxMalloc( 255 );
-                       strcpy( tmp, host );
-                       tmp[254] = 0;
-                       strcpy(n->host, tmp);
-                       CxFree(tmp);
-
-               } else {
-                       strcpy(n->host, host);
-               }
-       }
-
-       DPF((DFA,"Copying user"));
-       if(user && *user) {
-               if(strlen(user) >= 64) {
-                       tmp = (char *)CxMalloc( 65 );
-                       strcpy( tmp, user );
-                       tmp[64] = 0;
-                       strcpy(n->user, tmp);
-                       CxFree(tmp);
-               } else {
-                       strcpy(n->user, user);
-               }
-       }
-
-       DPF((DFA,"Copying pass"));
-       if(pass && *pass) {
-               if(strlen(pass) >= 64) {
-                       tmp = (char *)CxMalloc( 65 );
-                       strcpy( tmp, pass );
-                       tmp[64] = 0;
-                       strcpy(n->pass, tmp);
-                       CxFree(tmp);
-               } else {
-                       strcpy(n->pass, pass);
-               }
-       }
-
-       DPF((DFA,"Copying port"));
-       if(port) n->port = port;
-
-       DPF((DFA,"Binding to g_CxTbl"));
-       if(!g_CxTbl) {
-               DPF((DFA,"new g_CxTbl"));
-               g_CxTbl = n;
-               DPF((DFA,"New table @0x%08x", g_CxTbl ));
-               return(n->cxId);
-
-       } else {
-               DPF((DFA,"existing g_CxTbl"));
-               p = g_CxTbl;
-               while( p && p->_next ) {
-                       p = p->_next;
-               }
-               if( p ) {
-                       p->_next = n;
-                       n->_prev = p;
-               }
-       }
-
-       return(n->cxId);
-}
-
-/**
- ** _CxTbDelete(): Delete the specified id.
- **/
-static
-void           _CxTbDelete( int id ) {
-CXHNDL         p;
-
-       if(!g_CxTbl || !id ) return;
-
-       DPF((DFA,"Delete id %d", id));
-       p = g_CxTbl;
-       while( p ) {
-               if( p->cxId == id ) break;
-               p = p->_next;
-       }
-
-       DPF((DFA,"p @0x%08x", p));
-
-       if( p ) {
-
-               DPF((DFA,"p->_next @0x%08x", p->_next));
-               DPF((DFA,"p->_prev @0x%08x", p->_prev));
-
-               /**
-                ** This was the only entry in the CxTbl.
-                **/
-               if( !p->_next && !p->_prev ) {
-                       CxFree(p);
-                       g_CxTbl = NULL;
-
-               /**
-                ** Gymnastics time...
-                **/
-               } else {
-                       if( p->_next ) p->_next->_prev = p->_prev;
-                       if( p->_prev ) p->_prev->_next = p->_next;
-
-                       if( g_CxTbl == p ) g_CxTbl = p->_next;
-
-                       CxFree(p);
-               }
-       }
-       DPF((DFA,"g_CxTbl @0x%08x", g_CxTbl));
-}
-
-/**
- ** CxClConnection(): Obtain a Connection handle for a new host/username/password.  This _must_ be
- ** performed before any other CxCl functions can be called.
- **/
-int            CxClConnection( const char *host, int port, const char *user, const char *pass ) {
-
-       DPF((DFA,"New connection hndl %s:%s@%s:%d", user, "**", host, port));
-       return(_CxTbInsert( host, port, user, pass ) );
-}
-
-/**
- ** CxClDelete(): Delete the specified connection handle.
- **/
-void           CxClDelete( int id ) {
-
-       DPF((DFA,"Delete hndl %d", id ));
-       _CxTbDelete( id );
-}
-
-
-/**
- ** CxClSetHost(): Set the username for a specific connection handle.
- **/
-void           CxClSetHost( int id, const char *host ) {
-CXHNDL         e;
-
-       if(!host || !*host) return;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return;
-
-       DPF((DFA,"Set tbl[%d].host = '%s'", id, host ));
-       memset( &(e->host), 0, 253 );
-       strcpy( e->host, host );
-}
-
-/**
- ** CxClSetUser(): Set the username for a specific connection handle.
- **/
-void           CxClSetUser( int id, const char *user ) {
-CXHNDL         e;
-
-       if(!user || !*user) return;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return;
-
-       DPF((DFA,"Set tbl[%d].user = '%s'", id, user ));
-       strcpy( e->user, user );
-}
-
-/**
- ** CxClGetUser(): Set the username for a specific connection handle.
- ** [*] FREE the results of this operation!!
- **/
-char           *CxClGetUser( int id ) {
-CXHNDL         e;
-char           *ret;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return(NULL);
-
-       if(e->user[0]) {
-               ret = (char *)CxMalloc( strlen( e->user ) + 1 );
-               strcpy( ret, e->user );
-               return( ret );
-
-       } else {
-               return(NULL);
-       }
-}
-
-/**
- ** CxClSetPass(): Set the username for a specific connection handle.
- **/
-void           CxClSetPass( int id, const char *pass ) {
-CXHNDL         e;
-
-       if(!pass || !*pass) return;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return;
-
-       DPF((DFA,"Set tbl[%d].pass = '%s'", id, pass ));
-       strcpy( e->pass, pass );
-}
-
-/**
- ** CxClGetPass(): Set the username for a specific connection handle.
- **/
-char           *CxClGetPass( int id ) {
-CXHNDL         e;
-char           *ret;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return(NULL);
-
-       if(e->pass) {
-               ret = (char *)CxMalloc( strlen(e->pass) +1 );
-               strcpy(ret, e->pass);
-               return(ret);
-
-       } else {
-               return(NULL);
-       }
-}
-
-/**
- ** CxClSetPass(): Set the username for a specific connection handle.
-/**
- ** CxClRegClient(): (For Developers) Register your client name with
- ** libCxClient.  This gets reported along with the IDEN information passed
- ** to the server.  It should be called before CxClConnect().
- **/
-void           CxClRegClient(const char *cl_name) {
-
-       DPF((DFA,"Developer registered this as \"%s\"", cl_name));
-
-       /**
-        ** If this will cause libCxClient to crash, then just die.
-        **/
-       if(strlen(cl_name)>31) {
-               printf("* * *  Fatal Error  * * *\n");
-               printf("Invalid use of CxClRegClient().  I expect cl_name to be less than 31 characters in length.\n");
-               printf("cl_name = '%s'\n", cl_name);
-               printf("\nI can't continue.  Please re-build your client.\n");
-               exit(999);
-       }
-
-       strcpy(g_CxClientName, cl_name);
-}
-
-/**
- ** CxClConnect(): Establish a connection to the server via the Transport layer.
- ** [Much of this code was gleaned from the "citadel" client]
- **
- ** [Returns]
- **  On Success: 0
- **  On Failure: -1: Mis-configuration
- **              -[errno]: use abs(errno) to retrieve error message.
- **/
-int            CxClConnect( int id ) {
-char           buf[512];
-struct 
-hostent        *phe;
-struct 
-servent        *pse;
-struct 
-protoent       *ppe;
-struct 
-sockaddr_in    sin;
-int            s, type, rc;
-char           *service = "citadel";
-char           *protocol = "tcp";
-CXHNDL         e;
-
-       DPF((DFA,"(Library was built with UNIX_SOCKET support)"));
-
-       e = _CxTbEntry( g_CxTbl, id );
-
-       if(!e) {
-               DPF((DFA,"Did not call CxConnection(), huh?"));
-               return(-1);
-       }
-
-       if(!e->host[0]) {
-               DPF((DFA,"No hostname provided.  Use CxClSetHost() first!!"));
-               return(-1);
-       }
-       DPF((DFA,"Establishing connection to host \"%s\"",e->host));
-
-        memset(&sin, 0, sizeof(sin));
-        sin.sin_family = AF_INET;
-
-       DPF((DFA,"-> getservbyname()"));
-        pse = getservbyname(service, protocol);
-        if(pse) {
-                sin.sin_port = pse->s_port;
-        } else if((sin.sin_port = htons((u_short) atoi(service))) != 0) {
-        } else {
-               sin.sin_port = htons((u_short)504);
-       }
-
-       DPF((DFA,"-> gethostbyname(): \"%s\"", e->host));
-        phe = gethostbyname(e->host);
-       DPF((DFA,"phe@0x%08x", phe));
-        if (phe) {
-                memcpy(&sin.sin_addr, phe->h_addr, phe->h_length);
-
-        } else if ((sin.sin_addr.s_addr = inet_addr(e->host)) == INADDR_NONE) {
-               DPF((DFA,"Unable to get host entry.  %s", strerror(errno)));
-                return(-1*(errno));
-        }
-
-       DPF((DFA,"-> getprotobyname()"));
-        if ((ppe = getprotobyname(protocol)) == 0) {
-               DPF((DFA,"Unable to get protocol entry.  %s", strerror(errno)));
-                return(-1);
-        }
-        if (!strcmp(protocol, "udp")) {
-                type = SOCK_DGRAM;
-        } else {
-                type = SOCK_STREAM;
-        }
-
-        s = socket(PF_INET, type, ppe->p_proto);
-        if (s < 0) {
-               DPF((DFA,"Unable to create socket.  %s", strerror(errno)));
-                return(-1);
-        }
-        signal(SIGALRM, timeout);
-        alarm(30);
-
-       DPF((DFA,"-> connect()"));
-        if (connect(s, (struct sockaddr *) &sin, sizeof(sin)) < 0) {
-/**            printf("\n* * *  Fatal Error  * * *\n");
-               printf("System Error: Can't connect to '%s' [%s]\n",e->host, service);
-               printf("Error Details: %s\n\n", strerror(errno)); 
- **/
-                return(errno*(-1));
-        }
-        alarm(0);
-        signal(SIGALRM, SIG_IGN);
-
-       DPF((DFA,"Socket %d", s));
-       e->_sock = s;
-       e->connected = 1;
-
-       if( s ) {
-
-               DPF((DFA,"-> recv"));
-               _CxClRecv( e->_sock, &(e->semaphore), buf, id );
-               if(g_CxClientName[0]) {
-                       sprintf(buf,"IDEN 1|1|100|CX/%s (%s)|",VERSION, g_CxClientName);
-               } else {
-                       sprintf(buf,"IDEN 1|1|100|CX/%s|",VERSION);
-               }
-               _CxClSend(s, buf);
-               _CxClRecv(e->_sock, &(e->semaphore), buf, id);
-
-               _CxClSend(s, "ASYN 1");
-               rc = _CxClRecv(e->_sock, &(e->semaphore), buf, id);
-
-               /**
-                ** If the server doesn't support Asnychronous mode, then
-                ** we shouldn't try to be asynchronous...
-                **/
-               if(CHECKRC(rc, RC_OK)) {
-                       DPF((DFA,":: Server in ASYNCHRONOUS mode."));
-                       e->asynMode = 1;
-               } else {
-                       DPF((DFA,":: ASYNCHRONOUS mode not supported."));
-                       e->asynMode = 0;
-               }
-
-               /**
-                ** We don't return our socket anymore.
-                **/
-               return(0);
-       }
-       return(0);
-}
-
-/**
- ** CxClDisconnect(): Disconnect the specified socket.
- **/
-void           CxClDisconnect( int id ) {
-CXHNDL         e;
-
-       DPF((DFA,"Caught orders to close socket %d.", id));
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return;
-
-       /**
-        ** Sleep until the semaphore is cleared.
-        **/
-       while(e->semaphore) ;
-
-       shutdown(e->_sock, 0);
-}
-
-/**
- ** CxClStat(): Return connection status.
- **/
-int            CxClStat( int id ) {
-CXHNDL         e;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return(0);
-
-       if( e->connected ) {
-               return(1);
-       } else {
-               return(0);
-       }
-}
-
-/**
- ** _CxClSend(): REAL send.  Uses a socket instead of the ID.
- **/
-static
-void           _CxClSend( int sock, const char *s ) {
-int            bytes_written = 0;
-int            retval,nbytes;
-char           *ss;
-
-       /**
-        ** If the socket is not open, there's no point in going here.
-        **/
-       if(!sock) return;
-
-       DPF((DFA,"PROT --> \"%s\"", s));
-
-       ss = (char *)CxMalloc(strlen(s)+2);
-       sprintf(ss,"%s\n",s);
-
-       nbytes = strlen(ss);
-       if(!nbytes) {
-               CxFree(ss);
-               return;
-       }
-
-       while (bytes_written < nbytes) {
-               retval = write(sock, &ss[bytes_written],
-                               nbytes - bytes_written);
-               if (retval < 1) {
-                       write (sock, "\n", strlen("\n"));
-                       return;
-               }
-               bytes_written = bytes_written + retval;
-       }
-       CxFree(ss);
-}
-
-/**
- ** CxClSend(): Send a string to the server.
- **/
-void           CxClSend(int id, const char *s) {
-CXHNDL         e;
-
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) return;
-       if(!e->connected) return;
-
-       DPF((DFA,"SEND: \"%s\"", s));
-       _CxClSend( e->_sock, s );
-}
-
-/**
- ** ClRecvChr(): Retrieve the next message from the server.
- ** *********** SOURCE: citadel-source/citmail.c:serv_read()
- **/
-static
-void           ClRecvChar(int socket, char *buf, int bytes) {
-int            len, rlen;
-
-        len = 0;
-        while (len < bytes) {
-                rlen = read(socket, &buf[len], bytes - len);
-                if (rlen < 1) {
-                        return;
-                }
-                len = len + rlen;
-        }
-}
-
-/**
- ** _CxClWait(): Wait on the semaphore.
- **/
-static
-void           _CxClWait( int *e ) {
-
-       DPF((DFA,"Waiting on Semaphore..."));
-       while(*e) ;
-
-       DPF((DFA,"*** LOCKING SESSION ***"));
-       (*e) = 1;
-}
-
-/**
- ** _CxClClear(): Clear the semaphore.
- **/
-static
-void           _CxClClear( int *e ) {
-
-       DPF((DFA,"*** CLEARING SESSION ***"));
-       (*e) = 0;
-}
-
-/**
- ** _CxClRecv(): REAL receive.
- **/
-static
-int            _CxClRecv( int sock, int *semaphore, char *s, int cxid ) {
-char           substr[4];
-int            i, tmp;
-char           *tmpstr;
-
-       /**
-        ** If the socket is not open, there's no point in going here.
-        **/
-       DPF((DFA,"RECV on %d", sock));
-       if(!sock) {
-               DPF((DFA,"No socket."));
-               return( 0 );
-       }
-
-       /**
-        ** RETRY_RECV when we have a callback and need to re-synch the protocol.
-        **/
-RETRY_RECV:
-
-       _CxClWait( semaphore );
-       DPF((DFA,"for(;message <= bottle;) ;"));
-       /**
-        ** Read one character at a time.
-         **/
-       for(i = 0; ; i++) {
-               ClRecvChar(sock, &s[i], 1);
-               if (s[i] == '\n' || i == 255)
-                       break;
-       }
-       /**
-        ** If we got a long line, discard characters until the newline.
-        **/
-       if (i == 255)
-               while (s[i] != '\n')
-                       ClRecvChar(sock, &s[i], 1);
-
-       _CxClClear( semaphore );
-
-       /**
-        ** Strip all trailing nonprintables (crlf)
-        **/
-       s[i] = 0;
-
-       DPF((DFA,"PROT <-- \"%s\"", s));
-
-       strncpy(substr,s,4);
-
-       /**
-        ** Check to see if the message is prepended with a server result code.
-        **/
-       if(
-               (!strcmp(substr,"000")) ||
-               ((substr[0]>='0' && substr[0]<='9') &&
-                (substr[1]>='0' && substr[1]<='9') &&
-                (substr[2]>='0' && substr[2]<='9') &&
-                ((substr[3]==' ') || (substr[3]=='*')))
-         ) {
-               i = (int)strtol(s, (char **)NULL, 10);
-               if(substr[3]=='*') i+=RC_MESGWAIT;
-
-               /**
-                ** This removes the result code & other data from the
-                ** returned string.  This is _really_ going to mess with
-                ** lots of code.  Ugh.
-                **
-                ** (Shift the entire string left 4 places.)
-                **/
-               for(tmp = 0; tmp < strlen(s); tmp++) {
-                       if(tmp+4 < strlen(s)) s[tmp] = s[tmp+4];
-                       else s[tmp] = 0;
-               }
-               s[tmp] = 0;
-
-               DPF((DFA," s: \"%s\"", s));
-
-       /**
-        ** Otherwise, we can assume that this is an RC_LISTING entry.
-        **/
-       } else {
-               i = -1;
-       }
-
-       /**
-        ** This is the only instance of Goto you'll find in
-        ** libCxClient.  The point is: Once we're done handling
-        ** an asynchronous message, we need to go back & handle
-        ** other messages as normal.
-        **/
-       DPF((DFA,"rc = %d (%d)", i, CHECKRC(i, RC_ASYNCMSG)));
-       if(i>0) {
-
-               /**
-                ** If the server has told us a secret...
-                **/
-               if(CHECKRC(i, RC_ASYNCMSG)) {
-                       DPF((DFA,"Preparing to process async message on CXID"));
-
-                       /**
-                        ** Do we have ANY callbacks defined?
-                        **/
-                       if(_CbHandles) {
-
-                               /**
-                                ** Pass data to callback function, if appropriate.
-                                **/
-                               if(_CxCallback(i, cxid, s)) {
-
-                                       /**
-                                        ** ... Callback has failed.  We need to
-                                        ** proactively ignore this message now.
-                                        ** NOTE: WE MAY NEED TO ROLL THE SOCKET
-                                        ** FORWARD TO SKIP ALL OUT-OF-BAND
-                                        ** MESSAGES!
-                                        **/
-
-                                       DPF((DFA,"PROT: ROLL: Rolling socket forward (CALLBACK FAILURE)"));
-                                       tmpstr = (char *)CxMalloc( 255 );
-                                       bzero( tmpstr, 254 );
-                                       i = _CxClRecv( sock, semaphore, tmpstr, cxid );
-                                       do {
-
-                                               i = _CxClRecv( sock, semaphore, tmpstr, cxid );
-                                               DPF(( DFA,"PROT: ROLL: i: %d", i ));
-
-                                       } while( i<0 );
-                                       free( tmpstr );
-                                       DPF((DFA,"PROT: ROLL: Cleared OOB data."));
-
-                                       goto RETRY_RECV;
-
-                               /**
-                                ** Previously, I returned 000 upon receiving an
-                                ** ASYN message.  This was the incorrect behaviour,
-                                ** as the expected RECV operation has _not_ been
-                                ** completed!  At this point, our Callback should've
-                                ** executed appropriately, and we can resume reading
-                                ** from the Socket as previously planned.
-                                **/
-                               } else {
-
-                               
-                                       goto RETRY_RECV;
-                               }
-
-                       /**
-                        ** If there are no callback handles, we need to ignore
-                        ** what we just saw.  NOTE: WE MAY NEED TO ROLL THE
-                        ** SOCKET FORWARD TO SKIP ALL OUT-OF-BAND MESSAGES!
-                        **/
-                       } else {
-
-                                       DPF((DFA,"PROT: ROLL: Rolling socket forward (NO CALLBACK)"));
-                                       tmpstr = (char *)CxMalloc( 255 );
-                                       bzero( tmpstr, 254 );
-                                       i = _CxClRecv( sock, semaphore, tmpstr, cxid );
-                                       do {
-
-                                               i = _CxClRecv( sock, semaphore, tmpstr, cxid );
-                                               DPF(( DFA,"PROT: ROLL: i: %d", i ));
-
-                                       } while( i<0 );
-                                       free( tmpstr );
-                                       DPF((DFA,"PROT: ROLL: Cleared OOB data."));
-                                       goto RETRY_RECV;
-
-                       }
-               }
-       }
-       DPF((DFA,"Preparing to return rc: %d", i));
-
-       return(i);
-}
-
-/**
- ** CxClRecv(): Receive a string from the server.
- **/
-int            CxClRecv(int id, char *s) {
-char           substr[4];
-int            i, tmp;
-CXHNDL         e;
-
-       DPF((DFA,"Receive on handle %d", id));
-       e = _CxTbEntry( g_CxTbl, id );
-       if(!e) {
-               DPF((DFA,"Handle %d unresolvable", id));
-               return(0);
-       }
-       if(!e->connected) {
-               DPF((DFA,"Handle %d not connected", id));
-               return(0);
-       }
-
-       DPF((DFA,"Preparing to receive on %d", e->_sock));
-       return(_CxClRecv( e->_sock, &(e->semaphore), s, id ));
-}
-
-/**
- ** CxClChatInit(): Initialize Chat mode
- **/
-int            CxClChatInit() {
-
-       if(g_CxChatMode) {
-               return(1);
-       }
-
-       if(g_CxChatMode) return(1);
-
-       DPF((DFA,"Entering CHAT mode.  Please prepare client for chat-mode\n"));
-       DPF((DFA,"communications..."));
-
-       g_CxChatMode = 1;
-
-       return(0);
-}
-
-/**
- ** CxClChatShutdown(): Shut down CHAT mode.
- **/
-void           CxClChatShutdown() {
-
-       if(!g_CxChatMode) {
-               return;
-       }
-       if(!g_CxChatMode) 
-               return;
-       DPF((DFA,"Exiting CHAT mode."));
-
-       g_CxChatMode = 0;
-}
-
-/*******************************************************************************
- ** Communications Layer Abstractions:  These functions are to be used by the
- ** higher level functions to handle communications with the servers.  The goal
- ** is to abstract client<->server communication as much as possible, in such a
- ** way that changes to the underlying transports don't affect CxClient code.
- **/
-
-/**
- ** struct _Cmd_Stack: These are the commands we are sending to the server.  It
- ** is governed by the MAX_SERV_CMD size limit (which, with the current protocol,
- ** will be "1").
- **
- ** This is an internal structure which is not useful anywhere else in this 
- ** software.
- **/
-typedef
-struct         _Cmd_Stack {
-   char                cmd[4];         /** Command. **/
-   CXLIST      arg_list;       /** Arguments. **/
-} _CXCSOBJ;
-
-/**
- ** CxClReq(): Send a request message to the server.  On success, returns a numeric
- ** handle to the request id (which, for now, is the command's offset in the 
- ** CMDSTACK.
- **/
-int            CxClSrvReq() {
-}
-
-/**
- ** CxClReqCancel(): Cancel a pending request.  If the request does not exist in
- ** the CMDSTACK, don't do anything.
- ** // Unimplemented in Citadel/UX 5.74
- **/
-int            CxClSrvCnclReq() {
-}
-
-/**
- ** CxClCbExists(): Return whether or not a callback exists.  If callback
- ** exists, a pointer is returned to the Callback's handle.  Otherwise,
- ** NULL is returned.
- **/
-CXCBHNDL       CxClCbExists(int cmd) {
-CXCBHNDL       x;
-
-       DPF((DFA,"[_CbHandles] @0x%08x", _CbHandles));
-       x = _CbHandles;
-       while( x ) {
-               DPF((DFA,"[x] @0x%08x %i", x, cmd));
-               if(x->cmd == cmd) {
-                       DPF((DFA,"[*] Found"));
-                       return(x);
-               }
-               x = x->next;
-       }
-       DPF((DFA,"[X] Not Found"));
-       return(NULL);
-}
-
-/**
- ** CxClCbRegister(): Register a Transport Protocol callback.
- **/
-int            CxClCbRegister(int cmd, void *func) {
-CXCBHNDL       new;
-
-       DPF((DFA, "Registering callback for '%d' (@0x%08x)", cmd, func));
-       new = 0;
-
-       /**
-        ** Check to see if callback is already in table.  If it is, we'll
-        ** assume that the user intended to REPLACE the existing pointer.
-        **/
-       new = CxClCbExists(cmd);
-
-       /**
-        ** If we already exist, we can substitute the existing callback pointer
-        ** with another one and return.  No additional effort is required.
-        **/
-       if(new) {
-               DPF((DFA, "Replacing existing callback"));
-               new->Function = func;
-               return(0);
-
-       /**
-        ** Since it doesn't exist in the stack already, we need ta add it
-        ** into the stack.
-        **/
-       } else {
-               DPF((DFA, "Registering new callback"));
-               new = (CXCBHNDL)CxMalloc(sizeof(CXCSCALLBACK));
-
-               new->cmd = cmd;
-               new->Function = func;
-       
-               /**
-                ** If we haven't defined any callbacks yet, we need to define
-                ** this as the 'head' of the Stack.
-                **/
-               if( ! _CbHandles ) {
-                       _CbHandles = new;
-                       new->next = NULL;
-
-               /**
-                ** ... Otherwise, we need to add the newest callback to the
-                ** head of the stack.
-                **/
-               } else {
-                       new->next = _CbHandles;
-                       _CbHandles = new;
-               }
-               DPF((DFA,"[new] @0x%08x",new));
-               DPF((DFA,"->next: @0x%08x",new->next));
-               DPF((DFA,"[_CbHandles] @0x%08x",_CbHandles));
-       }
-}
-
-/**
- ** CxClCbShutdown(): Shutdown the callback subsystem.
- **/
-void           CxClCbShutdown() {
-CXCBHNDL       x, y;
-
-       DPF((DFA,"Shutting down callback subsystem"));
-       x = _CbHandles;
-       while( x ) {
-               y = x;
-               x = x->next;
-               CxFree(y);
-       }
-       _CbHandles = 0;
-}
-
-/**
- ** _CxCallback(): Execute a callback.
- **/
-static
-int            _CxCallback(int cmd, int cxid, void *data) {
-CXCBHNDL       cb;
-
-       DPF((DFA, "Executing callback %d", cmd));
-       cb = CxClCbExists(cmd);
-
-       if(cb) cb->Function(cxid, data);
-       else return(1);
-
-       return(0);
-}
diff --git a/libCxClient/src/listmgt.c b/libCxClient/src/listmgt.c
deleted file mode 100644 (file)
index a3fc07f..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: listmgt.o
- ** Date: 2000-10-15
- ** Last Revision: 2000-10-15
- ** Description: Brian's Linked-list Manager
- ** CVS: $Id$
- **
- ** Based loosely upon the ideas expressed in Jesse Sweetland's
- ** linked-list code.
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <stdarg.h>
-#include       <string.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-
-/**
- ** CxLiInsert(): Insert a new string into the linked-list.
- **
- ** [Expects]
- **  (CXLIST)li: The list we're inserting into.
- **  (char *)s: The string (or data) we are inserting into @li.
- **
- ** [Returns]
- **  li
- **/
-CXLIST         CxLlInsert(CXLIST li, char *s) {
-CXLIST         p,new = 0;
-int            loop = 0;
-
-       DPF((DFA,"List @0x%08x",li));
-       DPF((DFA,"Inserting \"%s\"",s));
-
-       for(loop = 0; loop < 5; loop++ ) {
-               DPF((DFA,"malloc safety loop, iteration %d",loop));
-               if((new = (CXLIST) CxMalloc( sizeof( CXLIST ) ))) break;
-       }
-
-       if(!new) return(li);
-
-       new->data = (char *) CxMalloc( strlen( s ) +1 );
-       strcpy(new->data, s);
-       new->next = NULL;
-
-       if(li) {
-               p = li;
-               while( p->next ) p = p->next;
-               p->next = new;
-
-       } else {
-               li = new;
-       }
-
-       return(li);
-}
-
-/**
- ** CxLlRemove(): Remove the n'th item from the linked-list. [SKEL]
- **
- ** [Expects]
- **  (CXLIST)li: The list we are altering.
- **  (int)d: The item number to remove.
- **
- ** [Returns]
- **  li
- **/
-CXLIST         CxLlRemove(CXLIST li, unsigned int d) {
-       return(li);
-}
-
-/**
- ** CxLlFlush(): Flush all of a list's memory.  (Erases the entire
- ** list.)
- **
- ** [Expects]
- **  (CXLIST)li: The list to be nuked.
- **
- ** [Returns]
- **  NULL
- **/
-CXLIST         CxLlFlush(CXLIST li) {
-CXLIST         t,p;
-
-       DPF((DFA,"Clearing list @0x%08x",li));
-       p = li;
-       while ( p ) {
-               t = p;
-               CxFree(p->data);
-               p = p->next;
-               CxFree(t);
-       }
-
-       /**
-        ** This function should _ALWAYS_ eliminate the list...
-        ** Therefore it's not necessary to return @li.
-        **/
-       return(NULL);
-}
diff --git a/libCxClient/src/messages.c b/libCxClient/src/messages.c
deleted file mode 100644 (file)
index a7ef4db..0000000
+++ /dev/null
@@ -1,379 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: messages.o
- ** Date: 2000-10-15
- ** Last Revision: 2000-10-15
- ** Description: Functions which manipulate (build) message lists.
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <string.h>
-#include       <stdarg.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-
-/**
- ** CxMsInfo(): Retrieve message information for all of the message id's listed inside
- ** of a Message List.
- **/
-CXLIST         CxMsInfo(int id, CXLIST msg_list) {
-CXLIST         mp, messages = NULL;
-char           buf[255], *from, *date, *subject;
-int            rc;
-
-       DPF((DFA,"Retreiving information for all messages in 0x%08x",msg_list));
-
-       mp = msg_list;
-       while ( mp ) {
-               sprintf(buf,"MSG0 %s|1",mp->data);
-               CxClSend(id, buf);
-               rc = CxClRecv(id, buf);
-               if( CHECKRC(rc, RC_LISTING)) {
-                       from = date = subject = 0;
-                       do {
-
-                               rc = CxClRecv(id, buf);
-                               if(rc && strstr(buf,"from=")) {
-                                       DPF((DFA, "from: %s",buf));
-
-                                       from = (char *)CxMalloc(strlen(buf+5)+1);
-                                       strcpy(from, buf+5);
-
-                               } else if(rc && strstr(buf,"time=")) {
-
-                                       DPF((DFA, "time: %s",buf));
-                                       date = (char *)CxMalloc(strlen(buf+5)+1);
-                                       strcpy(date, buf+5);
-                               }
-
-                       } while(rc<0);
-
-                       if((from && *from) && (date && *date)) {
-                               sprintf(buf,"%s|%s|%s",from,date,subject);
-                               DPF((DFA, "insert-> %s",buf));
-
-                               messages = (CXLIST) CxLlInsert(messages,buf);
-                               DPF((DFA, "Freeing memory (temp vars)"));
-                               if(subject) CxFree(subject);
-                               if(from) CxFree(from);
-                               if(date) CxFree(date);
-                       }
-               }
-
-               mp = mp->next;
-       }
-
-       return(messages);
-}
-
-/**
- ** CxMsList(): Retrieve a list of messages in the current room.
- **/
-CXLIST         CxMsList(int id, int list_type, int number_messages) {
-int            rc;
-char           buf[255], *malleable;
-CXLIST         msgs = NULL;
-
-       DPF((DFA,"Retrieving list of messages from the server."));
-
-       switch( list_type ) {
-               case(2):
-                       // MSGS LAST|%d
-                       break;
-
-               case(1):
-                       CxClSend( id, "MSGS NEW");
-                       break;
-
-               default:
-                       CxClSend( id, "MSGS");
-                       break;
-       }
-       rc = CxClRecv( id, buf );
-
-       if( CHECKRC(rc, RC_LISTING) ) {
-
-               do {
-                       rc = CxClRecv(id, buf);
-
-                       if(rc) {
-                               malleable = (char *)CxMalloc(strlen(buf) + 1);
-                               strcpy(malleable,buf);
-                               DPF((DFA,"%s",malleable));
-
-                               msgs = (CXLIST) CxLlInsert(msgs,malleable);
-                               CxFree(malleable);
-                       }
-               } while(rc < 0);
-
-               return(msgs);
-       } else {
-               return(NULL);
-       }
-}
-
-/**
- ** CxMsLoad(): Retrieve a message from the server.  Expects a MESSAGE_ID, 
- ** returns 0 on success, [err] on failure.
- **
- ** Argument:
- **    preserve_newlines: Preserve newline delimiters in body text?
- **
- ** CLIENT MUST free(toret.body) MANUALLY!!!!
- **/
-int            CxMsLoad(int id, unsigned long int mid, int preserve_newlines, MESGINFO *toret) {
-char           buf[255], *newline="\n";
-int            rc, message_contents = 0, line_width;
-
-       DPF((DFA,"Loading message \"%ld\"",mid));
-       toret->message_id = 0;
-       toret->author[0] = 0;
-       toret->rcpt[0] = 0;
-       toret->room[0] = 0;
-       toret->subject[0] = 0;
-
-       sprintf(buf,"MSG2 %ld",mid);
-       CxClSend(id, buf);
-       rc = CxClRecv(id, buf);
-       if(CHECKRC(rc, RC_LISTING) ) {
-               DPF((DFA,"RC_LISTING"));
-               do {
-                       rc = CxClRecv(id, buf);
-                       if( rc ) {
-                               if(buf[strlen(buf)-1]=='\r') 
-                                       buf[strlen(buf)-1]=0;
-
-                               DPF((DFA,"[%d] buf: %s", rc, buf));
-
-                               if(strstr(buf,"From:") && 
-                                       !message_contents) {
-                                       strcpy(toret->author, buf+6);
-
-                               } else if((strstr(buf,"To:") == (char *)&buf) && 
-                                       !message_contents) {
-                                       strcpy(toret->rcpt, buf+4);
-
-                               } else if(strstr(buf,"X-UIDL:")
-                                       && !message_contents) {
-                                       DPF((DFA,"Message ID: %s",buf+8));
-                                       toret->message_id = atoi(buf+8);
-
-                               } else if(strstr(buf,"X-Citadel-Room:")
-                                       && !message_contents) {
-                                       DPF((DFA,"Room: %s",buf+16));
-                                       strcpy(toret->room, buf+16);
-                                       toret->room[
-                                               strlen(toret->room)-1
-                                       ] = 0;
-
-                               } else if(strstr(buf,"Subject:") 
-                                       && !message_contents) {
-                                       strcpy(toret->subject, buf+9);
-
-                               } else if(strstr(buf,"Path:") 
-                                       && !message_contents) {
-                                       strcpy(toret->path, buf+6);
-
-                               } else if(strstr(buf,"Node:") 
-                                       && !message_contents) {
-                                       strcpy(toret->node, buf+6);
-
-                               } else if((strstr(buf,"Date:") == (char *)&buf) 
-                                       && !message_contents) {
-                                       strcpy(toret->date, buf+6);
-
-                               } else if((buf[0] == 0) || (buf[0] == '\r') || 
-                                       message_contents) {
-                                       message_contents = 1;
-
-                                       /**
-                                        ** ugliness.  Load entire message.  Ick.
-                                        **/
-
-                                       do {
-                                               rc = CxClRecv(id, buf);
-                                               if(rc) {
-                                                       DPF((DFA,"%s",buf));
-
-                                                       line_width = strlen(buf);
-
-                                                       /**
-                                                        ** Start by stripping out the CR.
-                                                        **/
-                                                       *(strchr(buf,'\r')) = 0;
-                                                       if(preserve_newlines)
-                                                               line_width+=strlen(newline);
-                                                       line_width++; /** Count NULL. **/
-
-                                                       if(!toret->body) {
-                                                               toret->body = (char *)CxMalloc(
-                                                                       line_width
-                                                               );
-
-                                                               strcpy(toret->body, buf);
-
-                                                       } else {
-                                                               toret->body = (char *) realloc(
-                                                                       toret->body, 
-                                                                       strlen(toret->body)
-                                                                       + line_width 
-                                                               );
-
-                                                               strcat(toret->body, buf);
-                                                       }
-
-                                                       /**
-                                                        ** If we are to preserve the newlines
-                                                        ** present in the message, then append
-                                                        ** a newline to the end of each line.
-                                                        **/
-                                                       if(preserve_newlines)
-                                                               strcat(toret->body, newline);
-                                               }
-                                       } while(rc<0);
-
-                               }
-
-                       }
-               } while(rc<0);
-               DPF((DFA,"RC_LISTING completed."));
-       }
-
-       DPF((DFA,"[Return Data]"));
-       DPF((DFA,"toret->message_id: %d\n",toret->message_id));
-       DPF((DFA,"toret->author: %s\n",toret->author));
-       DPF((DFA,"toret->room: %s\n",toret->room));
-       DPF((DFA,"..."));
-
-       /**
-        ** If this message has been loaded, we succeeded.
-        **/
-       if(toret->message_id) {
-               DPF((DFA,"Returning [SUCCESS]"));
-               return(0);
-
-       /**
-        ** Otherwise, we failed.
-        **/
-       } else {
-               DPF((DFA,"Returning [ENOMSG]"));
-               return(1);
-       }
-}
-
-/**
- ** CxMsSaveOk(): Verify that users can post to this room.  Returns 1 if posting is
- ** allowed, 0 if posting is not allowed.
- **/
-int            CxMsSaveOk(int id, const char *username) {
-int            rc;
-char           buf[255];
-
-       DPF((DFA,"Checking room for post permissions..."));
-       sprintf(buf,"ENT0 0|%s|0|0",username);
-       CxClSend(id, buf);
-       rc = CxClRecv(id, buf);
-       if(CHECKRC(rc, RC_OK) ) {
-               DPF((DFA,"Ok for posting"));
-               return(1);
-
-       } else {
-               DPF((DFA,"Not Ok for posting [%d]",rc));
-               return(0);
-       }
-
-       return(999);
-}
-
-/**
- ** CxMsSave(): Save (post/send) a message to the server.  Expects a fully quantified
- ** MESGINFO struct.  Returns 0 on success, [err] on failure.
- ** [err]:
- **  1: No room specified
- **  2: Posting not allowed in this room.
- **  3: Message rejected for unknown reasons.
- **  ... tba
- **/
-int            CxMsSave(int id, MESGINFO msg) {
-int            rc;
-char           buf[255];
-
-       DPF((DFA,"Preparing to save message to server..."));
-
-       if(!msg.room) {
-               DPF((DFA,"Returning [ENOROOM]"));
-               return(1);
-       }
-
-       DPF((DFA,"Checking for access..."));
-       sprintf(buf,"ENT0 0|%s|0|0",msg.rcpt);
-       CxClSend(id, buf);
-       rc = CxClRecv(id, buf);
-       DPF((DFA,"Server said [%s]",buf));
-
-       if( CHECKRC(rc, RC_OK)) {
-               DPF((DFA,"Permission to save"));
-
-               sprintf(buf,"ENT0 1|%s|0|4|",msg.rcpt);
-               CxClSend(id, buf);
-
-               rc = CxClRecv(id, buf);
-               if( CHECKRC(rc, RC_SENDLIST)) {
-                       DPF((DFA,"Sending message to server..."));
-                       sprintf(buf, "From: %s", msg.author);
-                       CxClSend(id, buf);
-                       sprintf(buf, "To: %s", msg.rcpt);
-                       CxClSend(id, buf);
-                       sprintf(buf, "X-Mailer: libCxClient %s", CXREVISION);
-                       CxClSend(id, buf);
-                       sprintf(buf, "Subject: %s", msg.subject);
-                       CxClSend(id, buf);
-                       CxClSend(id, "");
-                       CxClSend(id, msg.body);
-
-                       CxClSend(id, "000");
-                       DPF((DFA,"Done!"));
-
-                       DPF((DFA,"Server accepted message"));
-                       return(0);
-               }
-
-       } else {
-               DPF((DFA,"No permission to save!"));
-               return(2);
-       }
-
-       return(999);
-}
-
-/**
- ** CxMsMark(): Mark message(s) as read.
- **/
-void           CxMsMark( int id, long unsigned int msgid ) {
-char           buf[1024];
-int            rc;
-
-       DPF((DFA, "Marking message %s read.", msgid));
-
-       if( msgid == MSGS_ALL ) {
-               sprintf( buf, "SLRP highest" );
-
-       } else {
-               sprintf( buf, "SLRP %ld", msgid );
-       }
-
-       CxClSend( id, buf );
-       rc = CxClRecv( id, buf );
-
-       if( rc == RC_OK ) {
-               DPF((DFA, "Done."));
-
-       } else {
-               DPF((DFA, "Failed."));
-       }
-}
diff --git a/libCxClient/src/misc.c b/libCxClient/src/misc.c
deleted file mode 100644 (file)
index d89a6f5..0000000
+++ /dev/null
@@ -1,397 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: misc.o
- ** Date: 2000-11-16
- ** Last Revision: 2000-11-16
- ** Description: Miscellaneous support functions.
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <signal.h>
-#include       <string.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-#include       "uname.h"
-
-/**
- ** Function which we have hooked to.
- **/
-static void    (*_MiExpFunc)(const char*, const char*) = 0;
-
-/**
- ** CxRevision(): Report revision information about libCxClient.
- **/
-float          CxRevision() {
-       return(atof(VERSION));
-}
-
-/**
- ** CxSerialize(): Take a pipe-separated string & convert it into a 2-dimensional
- ** array.  THIS FUNCTION WILL HANDLE AN ABSOLUTE MAXIMUM OF 50 ARGUMENTS.
- **/
-void            CxSerialize(const char *s, char **Ser) {
-char            **ap, *argv[50], *end;
-int             i;
-       DPF((DFA,"Serializing '%s'",s));
-
-        for (ap = argv; (*ap = (char *)strsep((char **)&s, "|")) != NULL;) {
-                if (++ap >= &argv[50]) {
-                        break;
-                }
-        }
-        end = (char *)(ap - 1);
-        i = 0;
-        for(ap=&argv[0]; (char *)ap <= end; ap++) {
-                Ser[i] = *ap;
-                i++;
-        }
-
-        Ser[i] = 0;
-
-       DPF((DFA,"Done"));
-} 
-
-/**
- ** CxMiExpSend(): Send an express message.  Think of this like AIM
- ** without AOL...
- **
- ** [Expects]
- **  (char *) user: Username
- **  (char *) msg: Express message.
- **
- ** [Returns]
- **  Success: 0
- **  Failure; Unknown Error: 1
- **/
-int            CxMiExpSend(int id, const char *user, const char *msg) {
-char           *xmit, buf[255];
-int            rc;
-
-
-       /**
-        ** Need to check the server revision on this connection
-        ** handle.  If the server only supports short-style
-        ** express messages, we're gonna have to implement it
-        ** that way (and strip out everything after the newline
-        ** in msg?  or s/\n/ /g...?)
-
-        ** For reasons specified in session.txt, the following line
-        ** will never be guaranteed to work.. .
-       sprintf(xmit,"SEXP %s|%s",user, msg);
-
-        **/
-       xmit = (char *)CxMalloc(strlen(user)+strlen(msg) + 7);
-       sprintf(xmit,"SEXP %s|-",user);
-       CxClSend(id, xmit);
-       CxFree(xmit);
-
-       rc = CxClRecv( id, buf );
-       if( CHECKRC( rc, RC_SENDLIST ) ) {
-               DPF((DFA, "Sending:\n%s\n", msg));
-               CxClSend( id, msg );
-               DPF((DFA, "END STREAM.", msg));
-               CxClSend( id, "000" );
-
-               DPF((DFA,"Express Message accepted by server.")); /** we hope... **/
-               return(0);
-
-       } else {
-               DPF((DFA,"Express Message _rejected_ by server."));
-               DPF((DFA,"(Operation not supported.)"));
-               return(1);
-       }
-}
-
-/**
- ** CxMiExpRecv(): Receive an express message.  Usually, this is
- ** called after a NOOP loop returns RC_xxxx...
- **
- ** [Returns]
- **  Success: Ptr to malloc()ed EXPRMESG struct.  [*]
- **  Failure: NULL
- **/
-EXPRMESG       *CxMiExpRecv( int id ) {
-char           buf[255], *Ser[20];
-EXPRMESG       *toret;
-int            rc;
-
-       /**
-        ** Ask the server for the latest Express Message [GEXP].
-        **/
-       DPF((DFA,"Receive Express Message"));
-       CxClSend(id, "GEXP");
-       rc = CxClRecv(id, buf);
-       DPF((DFA,"buf=%s\n",buf));
-       toret = 0L;
-
-       /**
-        ** If rc==RC_LISTING, then we have a valid Express Message.
-        **/
-       DPF((DFA,"Checking result = ", rc));
-       if( CHECKRC(rc, RC_LISTING)) {
-
-               DPF((DFA,"This is an express message.  Working on receiving..."));
-               toret = (EXPRMESG *) CxMalloc( sizeof(EXPRMESG) );
-               bzero( &toret, sizeof(EXPRMESG) );
-
-               CxSerialize( buf, (char **)&Ser );
-
-               toret->more_follows = atoi( Ser[0] );
-               toret->timestamp = (time_t) strtoul( Ser[1], 0, 10 );
-               toret->flags = atoi( Ser[2] );
-               strcpy( toret->sender, Ser[3] );
-               strcpy( toret->node, Ser[4] );
-               toret->message = 0L;
-               do {
-                       if((rc = CxClRecv(id, buf))) {
-                               DPF((DFA, "toret->message @0x%08x", toret->message));
-                               DPF((DFA, "+++ %s", buf));
-                               if(toret->message) {
-                                       toret->message = (char *) malloc(strlen(buf)+1);
-                               } else {
-                                       toret->message = (char *) realloc(toret->message, strlen(toret->message)+strlen(buf)+1);
-                               }
-                               strcat(toret->message, buf);
-                       }
-               } while( rc < 0 );
-
-/****          toret = (char *) CxMalloc(strlen(buf)+2);
-               strcpy(toret,buf);
-               strcat(toret,"|");
-               do {
-                       if((rc = CxClRecv(id, buf))) {
-                               DPF((DFA,"%s",buf));
-                               toret = (char *) realloc(toret, strlen(toret)+strlen(buf)+1);
-                               strcat(toret,buf);
-                       }
-               } while(rc<0);
- ****/
-       }
-
-       return(toret);
-}
-
-/**
- ** CxMiExpCheck(): Check to see if there are any EXPress MEssages
- ** waiting for the currently logged-in user.
- **
- ** [Returns]
- **  Message Waiting: 1
- **  No Messages: 0
- **/
-int            CxMiExpCheck( int id ) {
-int            rc;
-char           buf[255];
-
-       DPF((DFA,"Sending NOOP"));
-       CxClSend(id, "NOOP");
-       DPF((DFA,"Checking response"));
-       rc = CxClRecv(id, buf);
-
-       /**
-        ** CxClRecv() tacks on a RC_MESGWAIT flag to the result
-        ** code upon seeing a Message Waiting note from the
-        ** server.  This behaviour is deprecated in updated
-        ** versions of Citadel/UX, but is still included for
-        ** compatibility's sake.
-        **/
-       if(CHECKRC(rc,RC_MESGWAIT)) {
-               DPF((DFA,"Express Message waiting!"));
-               return(1);
-
-       } else {
-               DPF((DFA,"No express message, loser."));
-               return(0);
-       }
-}
-
-/**
- ** _CxMiExpHook(): Hook to RC_901 messages [Contain express messages]
- ** [Not Intended For External Use]
- **/
-static
-void           _CxMiExpHook(int id, const void* data) {
-char           buf[512], *user_buf, *data_buf;
-int            rc;
-
-       DPF((DFA, "*ASYN* Received RC_901 message on CXID %d", id));
-       DPF((DFA, "Raw data: \"%s\"", (char *)data));
-
-       /**
-        ** Fetch the sending user's information from the data stream.
-        **/
-       rc = CxClRecv(id, buf);
-       user_buf = (char *)CxMalloc(strlen(buf)+1);
-       strcpy(user_buf, buf);
-
-       DPF(( DFA, "user_buf @0x%08x", data_buf ));
-       DPF(( DFA, "user_buf: %s", user_buf ));
-
-       DPF(( DFA, "allocating data_buf" ));
-       data_buf = (char *)CxMalloc(1);
-       *(data_buf) = 0;
-       DPF(( DFA, "allocated data_buf @0x%08x", data_buf ));
-
-       /**
-        ** If this is a multi-line message, then fetch the message
-        ** from the datas stream.
-        **/
-       if(CHECKRC(rc, RC_LISTING)) {
-               do {
-                       DPF(( DFA, "data_buf @0x%08x", data_buf ));
-                       DPF(( DFA, "data_buf: %s", data_buf ));
-                       rc = CxClRecv( id, buf );
-                       if( rc<0 ) {
-                               DPF(( DFA, "data_buf szlen %d", strlen(data_buf) + strlen(buf) +1));
-                               if( strlen(buf) ) {
-                                       data_buf = realloc(data_buf, strlen(data_buf)+strlen(buf)+1);
-                                       strcat(data_buf, buf);
-                               }
-                       }
-               } while(rc < 0);
-       }
-
-       /**
-        ** Pass this information off to the user's function.
-        **/
-       DPF(( DFA, "Completed.  Received the following data:\n: user_buf: %s\n: data_buf: %s\n",
-               user_buf, data_buf ));
-
-       DPF(( DFA, "->_MiExpFunc() -- USERLAND"));
-       _MiExpFunc(user_buf, data_buf);
-       DPF(( DFA, "<-_MiExpFunc() -- /USERLAND"));
-
-       DPF(( DFA, "Freeing pointer user_buf"));
-       CxFree(user_buf);
-       DPF(( DFA, "Freeing pointer data_buf"));
-       CxFree(data_buf);
-
-       DPF(( DFA, "Done!"));
-}
-
-/**
- ** CxMiExpHook(): We will allow the user to hook themselves into
- ** our express message handler.  Only one function is permitted to
- ** hook here.
- **
- ** [Expects]
- **  func: The function that the user has written to handle Express
- **        Messages.  
- **        void func( const char *USER_FROM, const char *TEXT);
- **/
-void           CxMiExpHook(void (*func)(const char*, const char *)) {
-
-       DPF((DFA, "Hooking user func@0x%08x",func));
-
-       /**
-        ** If libCxClient has not already hooked this type of
-        ** message, we need to go ahead and hook it to our
-        ** internal routing function.
-        **/
-       if(!CxClCbExists(901)) {
-               DPF((DFA, "Hooking into RC_901"));
-               CxClCbRegister(901, _CxMiExpHook);
-       }
-
-       /**
-        ** Now, register the user's hooked function with
-        ** ourselves.  This instructs _CxMiExpHook() on
-        ** where to route data.
-        **/
-       DPF((DFA,"Registering user hook"));
-       _MiExpFunc = func;
-
-       DPF((DFA,"Ok, at this point, RC_901 messages should be routed to the user."));   
-       DPF((DFA,"Don't blame me if it doesn't work.  You told me what to do, Brian."));
-}
-
-/**
- ** CxMiMessage(): Read a system message file, ONE LINE AT A TIME.
- ** This function will return the current line sent by the server,
- ** and will return NULL on completion.  The caller is responsible
- ** for freeing EACH LINE OF MEMORY passed to it.
- **
- ** [Expects]
- **  (char *)file: The name of the file we want, or NULL to continue
- **  the current stream...
- **
- ** [Returns]
- **  Success: Ptr to malloc()ed file data.  [*]
- **  Failure; File not found: NULL
- **/
-char           *CxMiMessage(int id, const char *file) {
-char           buf[255], *toret;
-int            rc;
-
-       if((file!=NULL) && file[0]) {
-               DPF((DFA,"Requesting %s from server.",file));
-               sprintf(buf,"MESG %s", file);
-               CxClSend(id, buf);
-               rc = CxClRecv(id, buf);
-               if(CHECKRC(rc, RC_LISTING)) {
-                       DPF((DFA,"Retrieving line from file..."));
-                       rc = CxClRecv(id, buf);
-                       if(rc < 0) {
-                               toret = (char *)CxMalloc(strlen(buf)+1);
-                               strcpy(toret, buf);
-                               DPF((DFA,"MEM/MDA:\t-1\t@0x%08x (Needs manual deallocation)", toret)); 
-                               return(toret);
-                       } else {
-                               return(NULL);
-                       }
-               } else {
-                       return(NULL);
-               }
-       } else {
-
-               DPF((DFA,"Retrieving line from file..."));
-               rc = CxClRecv( id, buf);
-               if(rc < 0) {
-                       toret = (char *)CxMalloc(strlen(buf)+1);
-                       strcpy(toret,buf);
-                       DPF((DFA,"MEM/MDA:\t-1\t@0x%08x (Needs manual deallocation)", toret)); 
-                       return(toret);
-               } else {
-                       return(NULL);
-               }
-       }
-
-       /**
-        ** Insurance measure...
-        **/
-       return(NULL);
-}
-
-/**
- ** CxMiImage(): Read a system image.  Images are defined by the 
- ** Citadel/UX session protocol manual as always being in GIF
- ** format.  
- **
- ** [Expects]
- **  (char *)img: Name of the image we are requesting.
- **
- ** [Returns]
- **  Success: Ptr to malloc()ed image data.  [*]
- **  Failure; File not found: NULL
- **
- ** (Actually, we will probably want to store this in a temp
- ** file, and return a pointer to the filename.  Unless you want
- ** to store a 10-meg image in memory, of course... :)
- **/
-char           *CxMiImage(int id, const char *img) {
-
-       /**
-        ** Hmm.. Not sure how similar this is to MESG...
-        ** Will defer this code until I can reference the 
-        ** specs..
-        **/
-
-       return(NULL);
-}
diff --git a/libCxClient/src/newtest.c b/libCxClient/src/newtest.c
deleted file mode 100644 (file)
index f73e771..0000000
+++ /dev/null
@@ -1,240 +0,0 @@
-/**
- ** This is a new test program for libCxClient, which should demonstrate
- ** the new thread-safe code.  It should now be possible to develop
- ** multithreaded, multiconnection Citadel/UX clients, using libCxClient 
- ** (which takes most of the effort out of creating Cit/UX clients!).
- **
- ** If you wish to test this program, try something like:
- **
- **    $ gcc *.o newtest.c -pthread -o newtest
- **     (adjust based on your platform, of course)
- **
- ** http://www.shadowcom.net/Software/libCxClient/
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <string.h>
-#include       <pthread.h>
-#include       "CxClient.h"
-
-/*
-     int
-     pthread_create(pthread_t *thread, const pthread_attr_t *attr,
-             void *(*start_routine)(void *), void *arg)
- */
-
-/**
- ** 901 express message callback...
- **/
-void           chathook(const char *user, const char *msg) {
-       printf("Chat Message Handler\n");
-
-       printf("[[[[[[ %s ]]]]]]\n", user);
-       printf("%s\n", msg);
-}
-
-/**
- ** THREAD 1: Connect to Uncensored! BBS
- **/
-void           *session1( void *args ) {
-int            cxhndl;
-USERINFO       *user_info = 0;
-CXLIST         fl=0, foo;
-
-
-       /**
-        ** The primary method of creating a new Connection Handle is to specify all
-        ** options as arguments to CxClConnection.
-        **/
-       printf("1: Requesting connection handle...\n");
-       cxhndl = CxClConnection( "uncensored.citadel.org", 504, "detsaoT", "Loudness" );
-
-       if(!cxhndl) {
-               printf("1: MEMORY ERROR!\n");
-               pthread_exit(0);
-       }
-
-       /**
-        ** The handles you receive are only descriptive numeric values for CXTBL (Connection Table)
-        ** entries.  You can't do anything with them.  Invalid cxhndl's passed to any of the
-        ** support functions are ignored.
-        **/
-       printf("1: handle: %d\n", cxhndl);
-
-       /**
-        ** At any point in time, you can issue the CONNECT command to your CXHNDL.  This will
-        ** instruct it to connect using the stored parameters.  (see above)
-        **/
-       printf("1: Connecting to ucg...\n");
-       if(CxClConnect( cxhndl )) {
-               printf("1: Connection to ucg failed!\n");
-               CxClDelete(cxhndl);
-               pthread_exit(NULL);
-       }
-       printf("1: Connected to ucg!\n");
-
-       printf("1: Authenticating..\n");
-       if(!(user_info = CxUsAuth( cxhndl, NULL, NULL ))) {
-               printf("1: Failed authenticating %s!\n", CxClGetUser( cxhndl ));
-               CxClDisconnect( cxhndl );
-               CxClDelete( cxhndl );
-               pthread_exit(0);
-       }
-       printf("1: Authenticated!\n");
-       free(user_info);
-
-       printf("1: Retrieving online user list...\n");
-       fl = CxUsOnline( cxhndl, 0 );
-       printf("1: Done!\n");
-       foo = fl;
-       printf("1: Users on uncensored:\n");
-       while( foo ) {
-               printf("1: %s\n", foo->data);
-               foo = foo->next;
-       }
-       fl = CxLlFlush( fl );
-
-       /**
-        ** Similarly, you can Disconnect() from these handles at any time.  Disconnecting the
-        ** handle does not destroy it, though!  This means that...
-        **/
-       printf("1: Disconnecting...\n");
-       CxClDisconnect( cxhndl );
-
-       /**
-        ** ... you can re-connect a handle without having to create it again.
-        **/
-       printf("1: Connecting to ucg...\n");
-       CxClConnect( cxhndl );
-       printf("1: Disconnecting...\n");
-       CxClDisconnect( cxhndl );
-
-       /**
-        ** When you are done with a CXHNDL, just delete it.
-        **/
-       printf("1: Destroying handle...\n");
-       CxClDelete( cxhndl );
-
-       printf("1: DONE\n");
-       return(NULL);
-}
-
-/**
- ** THREAD 2: Connect to Pixel! BBS
- **/
-void           *session2( void *args ) {
-int            cxhndl2;
-USERINFO       *user_info = 0;
-CXLIST         fl = 0, foo;
-
-
-       /**
-        ** However, if you don't know all of the information right away, that's ok.
-        ** You can create the connection, and adjust the values later.
-        **/
-       printf("2: Requesting connection handle...\n");
-       cxhndl2 = CxClConnection( NULL, 0, NULL, NULL );
-
-       /**
-        ** If CxClConnection() returns NULL, you should not try to use the
-        ** handle provided (you're outta memory, dude!)
-        **/
-       if(!cxhndl2) {
-               pthread_exit(0);
-       }
-
-       printf("2: handle: %d\n", cxhndl2);
-
-       /**
-        ** Adjust the values of a CXHNDL.
-        **/
-       printf("2: Setting up handle...\n");
-       CxClSetHost( cxhndl2, "pixel.citadel.org" );
-       CxClSetUser( cxhndl2, "detsaoT" );
-       CxClSetPass( cxhndl2, "Loudness" );
-
-       printf("2: Connecting to pixel...\n");
-       if(CxClConnect( cxhndl2 )) {
-               printf("2: Connection to pixel failed!\n");
-               CxClDelete(cxhndl2);
-               pthread_exit(NULL);
-       }
-       printf("2: Connected to pixel!\n");
-
-       printf("2: Requesting online user list\n");
-       fl = CxUsOnline( cxhndl2, 0 );
-       printf("2: Done!\n");
-       printf("2: Users on pixel:\n");
-       while( foo ) {
-               printf("2: %s\n", foo->data);
-               foo = foo->next;
-       }
-       fl = CxLlFlush( fl );
-
-       printf("2: Disconnecting...\n");
-       CxClDisconnect( cxhndl2 );
-       printf("2: Destroying handle...\n");
-       CxClDelete( cxhndl2 );
-
-       printf("2: DONE\n");
-       return(0);
-}
-
-/**
- ** main() launches our test threads.
- **/
-int            main(int argc, char *argv[]) {
-int            cxhndl;
-pthread_t      t1 = 0, thread2 = 0;
-
-       printf("libCxClient Multithreaded Test Program\n");
-       printf("Library Revision %0.2f\n\n", CxRevision());
-
-       /**
-        ** As a developer, you should start by registering your client name with
-        ** libCxClient.  This adjusts the IDEN string that is sent to the server
-        ** upon connection (CxClConnect()).
-        **/
-       CxClRegClient("mt test program");
-
-       /**
-        ** You can register callbacks for the ASYNchronous server mode.  These callbacks are
-        ** local functions which should handle whichever event was generated by the server.
-        **/
-       printf("Registering callbacks\n");
-       CxMiExpHook(chathook);
-
-       printf("Going Multithreaded...\n\n");
-
-       /**
-        ** Create threads to test the new multithread-safe library.
-        **/
-       printf("0: Creating thread 1...\n");
-       if(cxhndl = pthread_create( &t1, NULL, session1, NULL )) {
-               printf("Failed creating thread 1\n");
-               printf("Error %d: %s\n", cxhndl, strerror(cxhndl));
-       }
-
-       printf("0: Creating thread 2...\n");
-       if(cxhndl = pthread_create( &thread2, NULL, session2, NULL )) {
-               printf("0: Failed creating thread 2\n");
-               printf("0: Error %d: %s\n", cxhndl, strerror(cxhndl));
-       }
-
-       if(cxhndl = pthread_join( t1, NULL )) {
-               printf("0: Error #%d: %s\n", cxhndl, strerror(cxhndl));
-               printf("0: Thread1: %d\n", t1);
-       }
-       printf("0: Thread 1 completed.\n");
-
-       if(cxhndl = pthread_join( thread2, NULL )) {
-               printf("0: Error #%d: %s\n", cxhndl, strerror(cxhndl));
-               printf("0: Thread1: %d\n", thread2);
-       }
-
-       /**
-        ** libCxClient ignores invalid handle id's, of course!!
-        **/
-       CxClDelete( cxhndl );
-       printf("0: DONE\n");
-}
diff --git a/libCxClient/src/rooms.c b/libCxClient/src/rooms.c
deleted file mode 100644 (file)
index 6ba5e53..0000000
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: rooms.o
- ** Date: 2000-10-15
- ** Last Revision: 2000-10-15
- ** Description: Functions which manipulate (build) room & floor lists.
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <stdarg.h>
-#include       <string.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-
-/**
- ** CxRmGoto(): Go to a room.  
- **
- ** [Expects]
- **  (char *) room: The name of the room the user wishes to go to.
- **  (int) operation: Which room to go to?
- **            0: Goto specified room
- **            1: Goto next room w/ unread messages
- **            2: Ungoto
- **
- ** [Returns]
- **  On Success: The room's full information structure [*]
- **  On Failure: NULL
- **/
-ROOMINFO       *CxRmGoto(int id, const char *room, int operation) {
-ROOMINFO       *room_info;
-char           *xmit, buf[255], *g_Ser[20];
-int            rc, i;
-
-       if((room && *room) && !operation) {
-               xmit = (char *)CxMalloc(strlen(room)+6);
-               sprintf(xmit, "GOTO %s", room);
-               CxClSend(id, xmit);
-               CxFree(xmit);
-
-               rc = CxClRecv(id, buf);
-
-               /**
-                ** If we successfully went to this room, return the
-                ** room's information structure.
-                **/
-               if(CHECKRC(rc, RC_OK)) {
-                       CxSerialize(buf, (char **) &g_Ser);
-
-                       room_info = (ROOMINFO *)CxMalloc(sizeof(ROOMINFO));
-                       strcpy(room_info->name, g_Ser[0]);
-                       room_info->msgs_unread = atol(g_Ser[1]);
-                       room_info->msgs_total = atol(g_Ser[2]);
-                       room_info->info_flag = (short int) atoi(g_Ser[3]);
-                       room_info->flags = atol(g_Ser[4]);
-                       room_info->msgs_highest = atol(g_Ser[5]);
-                       room_info->msgs_highest_u = atol(g_Ser[6]);
-                       room_info->mailroom = (short int) atoi(g_Ser[7]);
-                       room_info->aide = (short int) atoi(g_Ser[8]);
-                       room_info->msgs_newmail = atol(g_Ser[9]);
-                       room_info->floor_id = atol(g_Ser[10]);
-
-                       DPF((DFA,"MEM/MDA:\t-1\t@0x%08x (Needs manual deallocation)", room_info));
-
-                       return(room_info);
-               }
-
-               /**
-                ** Room not found, Returning NULL.
-                **/
-               return(NULL);
-
-       /**
-        ** GOTO Next Unread Room
-        **/
-       } else if(operation==1) {
-
-               /**
-                ** Set last-read pointer for this room.
-                **/
-               CxClSend(id, "SLRP highest");
-               CxClRecv(id, buf);
-
-               /**
-                ** Retrieve a list of all rooms w/ new messages.
-                **/
-               CxClSend(id, "LKRN");
-               rc = CxClRecv(id, buf);
-               i = (int) xmit = 0;
-               if(CHECKRC(rc, RC_LISTING)) {
-                       do {
-                               rc = CxClRecv(id, buf);
-                               if(rc) {
-                                       if(!i) {
-                                               xmit = (char *)CxMalloc(strlen(buf)+6);
-                                               strcpy(xmit, "GOTO ");
-                                               strcat(xmit, buf);
-                                       }
-                               }
-                       } while(rc<0);
-
-                       if(xmit) {
-                               CxClSend(id, xmit);
-                               CxFree(xmit);
-
-                               rc = CxClRecv(id, buf);
-                               if(CHECKRC(rc, RC_OK)) {
-                                       CxSerialize(buf, (char **) &g_Ser);
-                
-                                       room_info = (ROOMINFO *)CxMalloc(sizeof(ROOMINFO));
-                                       strcpy(room_info->name, g_Ser[0]);
-                                       room_info->msgs_unread = atol(g_Ser[1]);
-                                       room_info->msgs_total = atol(g_Ser[2]);
-                                       room_info->info_flag = (short int) atoi(g_Ser[3]);
-                                       room_info->flags = atol(g_Ser[4]);
-                                       room_info->msgs_highest = atol(g_Ser[5]);
-                                       room_info->msgs_highest_u = atol(g_Ser[6]);
-                                       room_info->mailroom = (short int) atoi(g_Ser[7]);
-                                       room_info->aide = (short int) atoi(g_Ser[8]);
-                                       room_info->msgs_newmail = atol(g_Ser[9]);
-                                       room_info->floor_id = atol(g_Ser[9]);
-
-                                       DPF((DFA,"MEM/MDA:\t-1\t@0x%08x (Needs manual deallocation)", room_info));
-                
-                                       return(room_info);
-                               }
-                               
-                       } else {
-                               return(NULL);
-                       }
-               }
-               return(NULL);
-
-       /**
-        ** Unknown Operation
-        **/
-       } else {
-               return(NULL);
-       }
-}
-
-/**
- ** CxRmCreate(): Create a new room, using CERTAIN information provided in
- ** a ROOMINFO struct.  Any unnecessary information is ignored.
- **
- ** [Expects]
- **  ROOMINFO: Information about the room to be created.
- **
- ** [Returns]
- **  On Success: 0
- **  On Failure: 1: rm.mode is invalid.
- **             2: rm.floor_id is invalid.
- **             3: room exists.
- **             4: not here/not allowed.
- **/
-int            CxRmCreate(int id, ROOMINFO rm) {
-char           buf[512];
-int            rc;
-
-       DPF((DFA,"Creating room '%s'",rm.name));
-
-       /**
-        ** User provided an illegal room mode.  Can't continue.
-        **/
-       if((rm.mode<0) || (rm.mode>4)) {
-               DPF((DFA,"FAILED rm.mode_is_invalid"));
-               return(1);
-       }
-
-       /**
-        ** Floor id invalid (How do we check this?)
-        **/
-       if( 0 ) {
-               DPF((DFA,"FAILED rm.floor_id_is_invalid"));
-               return(2);
-       }
-
-       /**
-        ** Does the room already exist?
-        **/
-       if( 0 ) {
-               DPF((DFA,"FAILED room_exists"));
-               return(3);
-       }
-
-       sprintf(buf, "CRE8 1|%s|%d||%d", rm.name, rm.mode, rm.floor_id );
-       CxClSend(id, buf);
-       rc = CxClRecv(id, buf);
-       if( CHECKRC(rc, RC_OK)) {
-               DPF((DFA,"Success!"));
-               return(0);
-       } else {
-               DPF((DFA,"FAILED %d:%s", rc, buf));
-               return(4);
-       }
-}
-
-/**
- ** CxRmList(): Retrieve a list of rooms on the current floor.  Return it
- ** as a Character array.  THE CALLER IS RESPONSIBLE FOR DEALLOCATING THIS
- ** MEMORY!!
- **/
-CXLIST         CxRmList(int id) {
-int            rc;
-char           buf[255];
-CXLIST         rooms = NULL;
-
-       DPF((DFA,"Retrieving list of rooms from the server."));
-
-       CxClSend(id, "LKRA");
-       rc = CxClRecv( id, buf );
-       DPF((DFA,"%s [%d]",buf,rc));
-
-       if( CHECKRC(rc, RC_LISTING)) {
-
-               do {
-                       rc = CxClRecv( id, buf );
-                       DPF((DFA,"%s [%d]",buf,rc));
-
-                       if(rc) {
-                               rooms = (CXLIST) CxLlInsert(rooms,buf);
-                       }
-               } while(rc < 0);
-
-               return(rooms);
-       } else {
-               return(NULL);
-       }
-}
-
-/**
- ** CxFlList(): Retrieve a list of floors.
- **/
-CXLIST         CxFlList(int id) {
-int            rc;
-char           buf[255];
-CXLIST         floors = NULL;
-
-       DPF((DFA,"Retrieving list of floors from the server."));
-
-       CxClSend(id, "LFLR");
-       rc = CxClRecv( id, buf );
-       DPF((DFA,"%s [%d]",buf,rc));
-
-       if( CHECKRC(rc, RC_LISTING)) {
-
-               do {
-                       rc = CxClRecv( id, buf );
-                       DPF((DFA,"%s [%d]",buf,rc));
-
-                       if(rc) {
-                               floors = (CXLIST) CxLlInsert(floors,buf);
-                       }
-               } while(rc < 0);
-
-               return(floors);
-       } else {
-               return(NULL);
-       }
-}
-
-
diff --git a/libCxClient/src/testlib.c b/libCxClient/src/testlib.c
deleted file mode 100644 (file)
index 65ec078..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- ** This is a test program for libCxClient.  It's not important.
- **
- ** $ gcc *.o testlib.c -o testlib
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <string.h>
-#include       "CxClient.h"
-
-/**
- ** 901 express message callback...
- **/
-void           chathook(const char *user, const char *msg) {
-       printf("Chat Message Handler\n");
-
-       printf("[[[[[[ %s ]]]]]]\n", user);
-       printf("%s\n", msg);
-}
-
-int            main(int argc, char *argv[]) {
-CXLIST         fl = 0;
-USERINFO       *user_info = 0;
-ROOMINFO       *room_info = 0;
-char           buf[255],*s = 0;
-int            hndl;
-
-       printf("libCxClient Test Program\n");
-       printf("Library Revision %0.2f\n\n", CxRevision());
-
-       if(argc<3) {
-               printf("\nUsage:\n      %s system username password\n\n", argv[0]);
-               exit(0);
-       }
-
-       CxClRegClient("test program");
-       printf("Registering callbacks\n");
-       CxMiExpHook(chathook);
-
-       if(!(hndl = CxClConnection( argv[1], 504, argv[2], argv[3] ))) {
-               printf("Failed creating connection handle.  Dying.\n");
-               exit(-1);
-       }
-
-       // I suggest 'tesseract.citadel.org'
-       printf("Connecting to '%s'...\n",argv[1]);
-       if(!CxClConnect( hndl )) {
-
-               printf("Logging in\n");
-               if(user_info = CxUsAuth(hndl, NULL, NULL)) {
-                       CxFree(user_info);
-                       user_info = 0;
-
-                       room_info = CxRmGoto(hndl, "_BASEROOM_",0);
-                       CxFree(room_info);
-                       room_info = 0;
-
-                       fl = CxLlFlush(fl);
-                       fl = CxMsList(hndl, 0, 0);
-
-                       fl = CxLlFlush(fl);
-
-                       CxMiExpSend(hndl, "detsaoT","Hello, World");
-                       CxMiExpSend(hndl, "detsaoT","How are you?");
-                       CxMiExpSend(hndl, "detsaoT","Blah blah blah.");
-
-
-                       CxClSend(hndl, "ECHO Hello");
-                       CxClRecv(hndl, buf);
-
-               }
-
-               CxClCbShutdown();
-               CxClDelete( hndl );
-
-       } else {
-               printf("Unable to connect to '%s'!\n", argv[1]);
-       }
-
-}
diff --git a/libCxClient/src/testlib.cpp b/libCxClient/src/testlib.cpp
deleted file mode 100644 (file)
index 1e40a56..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- ** This is a test program for libCxClient.  It's not important.
- **
- ** $ gcc *.o testlib.c -o testlib
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <string.h>
-#include       "CxClient.h"
-
-/**
- ** 901 express message callback...
- **/
-void           chathook(const char *user, const char *msg) {
-
-       printf("------------------------------- Chat Message Handler\n");
-
-       printf("[[[[[[ %s ]]]]]]\n", user);
-       printf("%s\n", msg);
-}
-
-int            main(int argc, char *argv[]) {
-CXLIST         fl = 0;
-USERINFO       *user_info = 0;
-ROOMINFO       *room_info = 0;
-char           buf[255],*s = 0;
-int            hndl;
-
-       printf("libCxClient Test Program\n");
-       printf("Library Revision %0.2f\n\n", CxRevision());
-
-       if(argc<3) {
-               printf("\nUsage:\n      %s system username password\n\n", argv[0]);
-               exit(0);
-       }
-
-       CxClRegClient("test program");
-       printf("Registering callbacks\n");
-       CxMiExpHook(chathook);
-
-       if(!(hndl = CxClConnection( NULL, 504, NULL, NULL ))) {
-               printf("Failed creating connection handle.  Dying.\n");
-               exit(-1);
-       }
-       CxClSetHost( hndl, argv[1] );
-       CxClSetUser( hndl, argv[2] );
-       CxClSetPass( hndl, argv[3] );
-
-       // I suggest 'tesseract.citadel.org'
-       printf("Connecting to '%s'...\n",argv[1]);
-       if(!CxClConnect( hndl )) {
-
-               printf("Logging in\n");
-               if(user_info = CxUsAuth(hndl, NULL, NULL)) {
-                       printf("FRE\n");
-                       free(user_info);
-                       user_info = 0;
-
-                       room_info = CxRmGoto(hndl, "_BASEROOM_",0);
-                       printf("FRE\n");
-                       free(room_info);
-                       room_info = 0;
-
-                       fl = CxLlFlush(fl);
-                       fl = CxMsList(hndl, 0, 0);
-
-                       fl = CxLlFlush(fl);
-
-                       CxMiExpSend(hndl, "detsaoT","Hello, World.  This is a long diatribe\n on the evils of something\nof which the world may never know.");
-
-                       CxMiExpSend(hndl, "detsaoT","How are you?  I am fine.  If you see the optional potential of the explicit implicity of the file, you'll know what I mean.");
-
-                       CxMiExpSend(hndl, "detsaoT","Blah blah blah.");
-
-
-                       CxClSend(hndl, "ECHO Hello");
-                       CxClRecv(hndl, buf);
-
-               }
-
-               CxClCbShutdown();
-               CxClDelete( hndl );
-
-       } else {
-               printf("Unable to connect to '%s'!\n", argv[1]);
-       }
-}
diff --git a/libCxClient/src/uname.h b/libCxClient/src/uname.h
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/libCxClient/src/users.c b/libCxClient/src/users.c
deleted file mode 100644 (file)
index 34fce3b..0000000
+++ /dev/null
@@ -1,303 +0,0 @@
-/**
- ** libCxClient - Citadel/UX Extensible Client API
- ** Copyright (c) 2000, Flaming Sword Productions
- ** Copyright (c) 2001, The Citadel/UX Consortium
- ** All Rights Reserved
- **
- ** Module: users.o
- ** Date: 2000-10-15
- ** Last Revision: 2000-10-15
- ** Description: Functions which manipulate user lists. (who's online, Directory, etc.)
- ** CVS: $Id$
- **/
-#include       <stdio.h>
-#include       <stdlib.h>
-#include       <stdarg.h>
-#include       <string.h>
-#include       <CxClient.h>
-#include       "autoconf.h"
-
-/**
- ** CxUsOnline(fmt): List online users.
- ** [fmt]: Format of list you are expecting to receive:
- ** 0: (Default) Session ID|User|Room
- **/
-CXLIST         CxUsOnline(int id,int fmt) {
-CXLIST         toret = 0;
-int            rc;
-char           buf[255];
-
-       DPF((DFA,"Retrieving online user list"));
-       CxClSend(id, "RWHO");
-       rc = CxClRecv(id, buf);
-
-       /**
-        ** The session protocol specs say that
-        ** this process will never return anything
-        ** but LISTING_FOLLOWS.  I don't belive it. ;)
-        **/
-       if( CHECKRC(rc, RC_LISTING) ) {
-
-               do {
-                       rc = CxClRecv(id, buf);
-                       DPF((DFA,"[%d] %s",rc,buf));
-
-                       if( rc ) {
-                               toret = (CXLIST)CxLlInsert(toret,buf);
-                       }
-
-               } while(rc<0);
-
-               return(toret);
-
-       /**
-        ** In the event that the moon IS made of
-        ** green cheese.......
-        **/
-       } else {
-               DPF((DFA,"Session spec violation!! IG!!! AUGH!!!"));
-               return(toret);
-       }
-
-       return(NULL);
-}
-
-/**
- ** CxUsList(): Fetch the Global Address Book.
- **/
-CXLIST         CxUsList( int id ) {
-CXLIST         toret = 0;
-int            rc;
-char           buf[512];
-
-       DPF((DFA,"Requesting user list..."));
-       CxClSend(id, "LIST");
-       rc = CxClRecv(id, buf);
-       if( CHECKRC(rc, RC_LISTING) ) {
-               do {
-                       rc = CxClRecv(id, buf);
-                       if(rc) {
-                               toret = CxLlInsert(toret,buf);
-                       }
-               } while(rc < 0);
-       }
-
-       return(toret);
-}
-
-/**
- ** CxUsAuth(): Authenticate a username/password combination.  If we're
- ** already logged in, then we need to abort this.  [How can we tell if
- ** we are??]
- **
- ** [Expects]
- **  (char *) uname: Username we wish to verify
- **  (char *) passwd: Password of this user.
- **
- ** [Returns]
- **  On Success: USERINFO: User Information structure. [*]
- **  On Failure: NULL
- **/
-USERINFO       *CxUsAuth(int id, const char *uname, const char *passwd) {
-USERINFO       *user_info;
-char           *xmit, *tmp = 0, buf[512], *g_Ser[20];
-int            rc;
-
-       DPF((DFA,"Auth uname: %s; passwd: %s", uname, passwd));
-       if(uname && *uname) {
-               CxClSetUser( id, uname );
-               DPF((DFA,"Authenticating '%s'",uname));
-               xmit = (char *)CxMalloc(strlen(uname)+6);
-               sprintf(xmit,"USER %s",uname);
-
-       } else {
-               tmp = CxClGetUser( id );
-               if(!tmp) {
-                       DPF((DFA,"Authentication Failed (CxClGetUser failed?)"));                       
-                       DPF((DFA,"CxClGetUser returned %s",tmp));
-                       return(NULL);
-               }
-
-               DPF((DFA,"Authenticating '%s'", tmp));
-               xmit = (char *)CxMalloc(strlen(tmp)+6);
-               sprintf( xmit, "USER %s", tmp);
-       }
-       CxClSend(id, xmit);
-       CxFree(xmit);
-
-       if(tmp) CxFree(tmp);
-
-       DPF((DFA,"Validating username"));
-       rc = CxClRecv(id, buf);
-
-       /**
-        ** Error in communications layer.
-        **/
-       if(!rc) {
-               DPF((DFA,"Authentication Failed (invalid username?)"));
-               DPF((DFA,"rc = %d", rc));
-               DPF((DFA,"buf = %s", buf));
-               return(NULL);
-       }
-
-       DPF((DFA,"%d", rc));
-       if( CHECKRC(rc, RC_MOREDATA) ) {
-               DPF((DFA,"Sending passwd"));
-
-               if(passwd && *passwd) {
-                       xmit = (char *)CxMalloc(strlen(passwd)+6);
-                       sprintf(xmit,"PASS %s",passwd);
-               } else {
-                       tmp = CxClGetPass( id );
-                       if(tmp) {
-                               xmit = (char *)CxMalloc(strlen(tmp)+6);
-                               sprintf(xmit,"PASS %s",tmp);
-                       } else {
-                               xmit = (char *)CxMalloc(6);
-                               sprintf(xmit, "PASS ");
-                       }
-               }
-               CxClSend(id, xmit);
-               CxFree(xmit);
-               if(tmp) CxFree(tmp);
-
-               DPF((DFA,"Validating password"));
-               rc = CxClRecv(id, buf);
-
-               /**
-                ** RETURN: Authentication information O.K.
-                **/
-               if( CHECKRC(rc, RC_OK) ) {
-                       user_info = (USERINFO *)CxMalloc(sizeof(USERINFO));
-
-                       CxSerialize(buf, (char **) &g_Ser);
-                       strcpy(user_info->username, g_Ser[0]);
-                       user_info->system.access_level = atoi(g_Ser[1]);
-                       user_info->system.times_called = atol(g_Ser[2]);
-                       user_info->system.messages_posted = atol(g_Ser[3]);
-                       user_info->system.user_flags = atol(g_Ser[4]);
-                       user_info->system.user_number = atol(g_Ser[5]);
-                       DPF((DFA,"MEM/MDA:\t-1\t@0x%08x (Needs manual deallocation)", user_info));
-
-                       DPF((DFA,"Authentication Successful"));                 
-                       return(user_info);
-
-               /**
-                ** RETURN: Invalid password.
-                **/
-               } else {
-                       DPF((DFA,"Authentication Failed (invalid password)"));                  
-                       return(NULL);
-               }
-
-       /**
-        ** RETURN: Invalid username
-        **/
-       } else {
-               DPF((DFA,"Authentication Failed (invalid username)"));                  
-               return(NULL);
-       }
-
-       /**
-        ** SHOULD be unreachable...
-        **/
-       DPF((DFA,"Authentication Failed (freak of nature)"));                   
-       return(NULL);
-}
-
-/**
- ** CxUsCreate(): Create a user account.
- **
- ** [Expects]
- **  USERINFO user: Populated USERINFO structure.
- **
- ** [Returns]
- **  On Success: 0
- **  On Failure: 1 - Not enough information
- **              2 - USER ALREADY EXISTS
- **/
-int            CxUsCreate(int id, USERINFO user) {
-char           buf[512];
-int            rc;
-
-       /**
-        ** RETURN: Not enough information.
-        **/
-       if(!user.username[0] || !user.password[0]) return(1);
-
-       /**
-        ** Phase 1: Create new account.
-        **/
-       DPF((DFA,"Creating user account '%s'", user.username));
-
-       sprintf(buf, "NEWU %s", user.username);
-       CxClSend(id, buf);
-       rc = CxClRecv(id, buf);
-
-       /**
-        ** RETURN: User already exists.
-        **/
-       if( CHECKRC(rc, RC_OK)) {
-               return(2);
-       }
-
-       sprintf(buf, "SETP %s", user.password);
-       CxClSend(id, buf);
-       rc = CxClRecv(id, buf);
-
-       if( CHECKRC(rc, RC_OK)) {
-               return(0); /** Non-fatal error.  User just has a blank "" password. **/
-       }
-
-       /**
-        ** Phase 2: Populate registration structures on server.
-        **/
-       CxClSend(id, "REGI");
-       rc = CxClRecv(id, buf);
-       if( CHECKRC(rc, RC_SENDLIST)) {
-               sprintf(buf, "%s", user.fullname);
-               CxClSend(id, buf);
-               sprintf(buf, "%s", user.addr.street);
-               CxClSend(id, buf);
-               sprintf(buf, "%s", user.addr.city);
-               CxClSend(id, buf);
-               sprintf(buf, "%s", user.addr.st);
-               CxClSend(id, buf);
-               sprintf(buf, "%s", user.addr.zip);
-               CxClSend(id, buf);
-               sprintf(buf, "%s", user.contact.telephone);
-               CxClSend(id, buf);
-               sprintf(buf, "%s", user.contact.emailaddr);
-               CxClSend(id, buf);
-               CxClSend(id, "000");
-       }
-
-       /**
-        ** Phase 3: Create personal rooms expected by CxClient.  [Please note that this will only work if
-        ** the server's default permissions allow new users to create rooms.  bbs.shadowcom.net will.]
-        **/
-       CxClSend(id, "CRE8 0");
-       rc = CxClRecv(id, buf);
-       if( CHECKRC(rc, RC_OK)) {
-               CxClSend(id, "CRE8 1|My Schedule|4||");
-               rc = CxClRecv(id, buf);
-               printf("My Schedule: rc = %d", rc);
-               CxClSend(id, "CRE8 1|My Notes|4||");
-               rc = CxClRecv(id, buf);
-               printf("My Notes: rc = %d", rc);
-               CxClSend(id, "CRE8 1|My Tasks|4||");
-               rc = CxClRecv(id, buf);
-               printf("My Tasks: rc = %d", rc);
-               CxClSend(id, "CRE8 1|My Journal|4||");
-               rc = CxClRecv(id, buf);
-               printf("My Journal: rc = %d", rc);
-               CxClSend(id, "CRE8 1|My Contacts|4||");
-               rc = CxClRecv(id, buf);
-               printf("My Contacts: rc = %d", rc);
-       }
-
-       /**
-        ** RETURN: Success!
-        **/
-       return(0);
-}
diff --git a/libCxClient/stamp-h.in b/libCxClient/stamp-h.in
deleted file mode 100644 (file)
index 9788f70..0000000
+++ /dev/null
@@ -1 +0,0 @@
-timestamp