Changeset 503


Ignore:
Timestamp:
Aug 7, 2006 1:11:38 PM (15 years ago)
Author:
nkissebe
Message:

Converted to Tcl Extension Architecture (TEA) v3.5 for base Windows support. Added Windows ports of getrlimit, getrusage, gettimeofday, setrlimit functions.

Location:
trunk/gui
Files:
2 added
13 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/gui/Makefile.in

    r413 r503  
    11# Makefile.in --
    22#
    3 #       This file is a Makefile for the Rappture GUI library.  If it has
    4 #       the name "Makefile.in" then it is a template for a Makefile.
    5 #       To generate the actual Makefile, run "./configure", which is a
    6 #       configuration script generated by the "autoconf" program
    7 #       (constructs like "@foo@" will get replaced in the actual Makefile.
    8 #
    9 #========================================================================
    10 # This is the parameterized name of the library that we are building.
    11 #========================================================================
    12 
    13 lib_BINARIES=$(RapptureGUI_LIB_FILE)
    14 BINARIES=$(lib_BINARIES)
    15 
    16 #========================================================================
    17 # Enumerate the names of the source files included in this package.
     3#       This file is a Makefile for Sample TEA Extension.  If it has the name
     4#       "Makefile.in" then it is a template for a Makefile;  to generate the
     5#       actual Makefile, run "./configure", which is a configuration script
     6#       generated by the "autoconf" program (constructs like "@foo@" will get
     7#       replaced in the actual Makefile.
     8#
     9# Copyright (c) 1999 Scriptics Corporation.
     10# Copyright (c) 2002-2005 ActiveState Corporation.
     11#
     12# See the file "license.terms" for information on usage and redistribution
     13# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
     14#
     15# RCS: @(#) $Id: Makefile.in,v 1.60 2005/09/13 22:06:37 hobbs Exp $
     16
     17#========================================================================
     18# Add additional lines to handle any additional AC_SUBST cases that
     19# have been added in a customized configure script.
     20#========================================================================
     21
     22#SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@
     23BLT_SRC_DIR = @BLT_SRC_DIR@
     24
     25
     26#========================================================================
     27# Nothing of the variables below this line should need to be changed.
     28# Please check the TARGETS section below to make sure the make targets
     29# are correct.
     30#========================================================================
     31
     32#========================================================================
     33# The names of the source files is defined in the configure script.
     34# The object files are used for linking into the final library.
    1835# This will be used when a dist target is added to the Makefile.
    19 #========================================================================
    20 
    21 RapptureGUI_SOURCES = \
    22   src/RpInit.c \
    23   src/RpRlimit.c \
    24   src/RpRusage.c \
    25   src/RpSignal.c
    26 SOURCES = $(RapptureGUI_SOURCES)
    27 
    28 #========================================================================
    29 # Enumerate the names of the object files included in this package.
    30 # These objects are created and linked into the final library.  In
    31 # most cases these object files will correspond to the source files
    32 # above.
    33 #========================================================================
    34 
    35 RapptureGUI_OBJECTS = \
    36   RpInit.$(OBJEXT) \
    37   RpRlimit.$(OBJEXT) \
    38   RpRusage.$(OBJEXT) \
    39   RpSignal.$(OBJEXT)
    40 OBJECTS = $(RapptureGUI_OBJECTS)
    41 
    42 #========================================================================
    43 # The substitution of "RapptureGUI_LIB_FILE" into the variable name below
    44 # let's us refer to the objects for the library without knowing the name
    45 # of the library in advance.  It also lets us use the "$@" variable in
    46 # the rule for building the library, so we can refer to both the list of
    47 # objects and the library itself in a platform-independent manner.
    48 #========================================================================
    49 
    50 RapptureGUI_LIB_FILE = @RapptureGUI_LIB_FILE@
    51 $(RapptureGUI_LIB_FILE)_OBJECTS = $(RapptureGUI_OBJECTS)
    52 
    53 #========================================================================
    54 # This is a list of header files to be installed
    55 #========================================================================
    56 
    57 GENERIC_HDRS=
    58 
    59 #========================================================================
    60 # Nothing of the variables below this line need to be changed.  Please
    61 # check the TARGETS section below to make sure the make targets are
    62 # correct.
    63 #========================================================================
    64 
    65 SHELL = @SHELL@
    66 
    67 srcdir = @srcdir@
    68 top_srcdir = @top_srcdir@
    69 prefix = @prefix@
    70 exec_prefix = @exec_prefix@
    71 
    72 bindir = @bindir@
    73 sbindir = @sbindir@
    74 libexecdir = @libexecdir@
    75 datadir = @datadir@
    76 sysconfdir = @sysconfdir@
    77 sharedstatedir = @sharedstatedir@
    78 localstatedir = @localstatedir@
    79 libdir = @libdir@
    80 infodir = @infodir@
    81 mandir = @mandir@
    82 includedir = @includedir@
    83 oldincludedir = /usr/include
    84 
    85 DESTDIR =
    86 
    87 pkgdatadir = $(datadir)/@PACKAGE@@VERSION@
    88 pkglibdir = $(libdir)/@PACKAGE@@VERSION@
    89 pkgincludedir = $(includedir)/@PACKAGE@@VERSION@
    90 
    91 top_builddir = .
    92 
    93 INSTALL = @INSTALL@
    94 INSTALL_PROGRAM = @INSTALL_PROGRAM@
    95 INSTALL_DATA = @INSTALL_DATA@
    96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
    97 INSTALL_STRIP_FLAG =
    98 transform = @program_transform_name@
    99 
    100 NORMAL_INSTALL = :
    101 PRE_INSTALL = :
    102 POST_INSTALL = :
    103 NORMAL_UNINSTALL = :
    104 PRE_UNINSTALL = :
    105 POST_UNINSTALL = :
    106 
    107 PACKAGE = @PACKAGE@
    108 VERSION = @VERSION@
    109 CC = @CC@
    110 CFLAGS_DEBUG = @CFLAGS_DEBUG@ -Wall
    111 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ -Wall
    112 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ -Wall
    113 CLEANFILES = @CLEANFILES@
    114 EXEEXT = @EXEEXT@
    115 LDFLAGS_DEBUG = @LDFLAGS_DEBUG@
    116 LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@
    117 LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@
    118 MAKE_LIB = @MAKE_LIB@
    119 MAKE_SHARED_LIB = @MAKE_SHARED_LIB@
    120 MAKE_STATIC_LIB = @MAKE_STATIC_LIB@
    121 OBJEXT = @OBJEXT@
    122 RANLIB = @RANLIB@
    123 SHLIB_CFLAGS = @SHLIB_CFLAGS@
    124 SHLIB_LD = @SHLIB_LD@
    125 SHLIB_LDFLAGS = @SHLIB_LDFLAGS@
    126 SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
    127 STLIB_LD = @STLIB_LD@
    128 TCL_BIN_DIR = @TCL_BIN_DIR@
    129 TCL_DEFS = @TCL_DEFS@
    130 TCL_EXTRA_CFLAGS = @TCL_EXTRA_CFLAGS@
    131 TCL_LD_FLAGS = @TCL_LD_FLAGS@
    132 TCL_LIBS = @TCL_LIBS@
    133 TCL_SHLIB_LD_LIBS = @TCL_SHLIB_LD_LIBS@
    134 TCL_SRC_DIR = @TCL_SRC_DIR@
    135 TCL_DBGX = @TCL_DBGX@
    136 TCL_STUB_LIB_FILE = @TCL_STUB_LIB_FILE@
    137 TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@
    138 TCLSH_PROG = @TCLSH_PROG@
    139 
    140 BLT_SRC_DIR = @BLT_SRC_DIR@
    141 
    142 AUTOCONF = autoconf
    143 
    144 LDFLAGS = $(LDFLAGS_DEFAULT)
    145 
    146 INCLUDES = @TCL_INCLUDES@ -I$(BLT_SRC_DIR)
    147 
    148 EXTRA_CFLAGS = $(TCL_DEFS) $(PROTO_FLAGS) $(SECURITY_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) $(NO_DEPRECATED_FLAGS)
    149 
    150 DEFS = @DEFS@ $(EXTRA_CFLAGS)
    151 
    152 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    153 mkinstalldirs = $(SHELL) $(top_srcdir)/cf/mkinstalldirs
    154 CONFIG_CLEAN_FILES = pkgIndex.tcl init.tcl
    155 
    156 CPPFLAGS = @CPPFLAGS@
    157 LIBS = @LIBS@
    158 AR = ar
    159 CFLAGS = @CFLAGS@
    160 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    161 CCLD = $(CC)
    162 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     36# It is not important to specify the directory, as long as it is the
     37# $(srcdir) or in the generic, win or unix subdirectory.
     38#========================================================================
     39
     40PKG_SOURCES     = @PKG_SOURCES@
     41PKG_OBJECTS     = @PKG_OBJECTS@
     42
     43PKG_STUB_SOURCES = @PKG_STUB_SOURCES@
     44PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@
     45
     46#========================================================================
     47# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
     48# this package that need to be installed, if any.
     49#========================================================================
     50
     51PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
     52
     53#========================================================================
     54# This is a list of public header files to be installed, if any.
     55#========================================================================
     56
     57PKG_HEADERS     = @PKG_HEADERS@
     58
     59#========================================================================
     60# "PKG_LIB_FILE" refers to the library (dynamic or static as per
     61# configuration options) composed of the named objects.
     62#========================================================================
     63
     64PKG_LIB_FILE    = @PKG_LIB_FILE@
     65PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
     66
     67lib_BINARIES    = $(PKG_LIB_FILE)
     68BINARIES        = $(lib_BINARIES)
     69
     70SHELL           = @SHELL@
     71
     72srcdir          = @srcdir@
     73prefix          = @prefix@
     74exec_prefix     = @exec_prefix@
     75
     76bindir          = @bindir@
     77libdir          = @libdir@
     78datadir         = @datadir@
     79mandir          = @mandir@
     80includedir      = @includedir@
     81
     82DESTDIR         =
     83
     84PKG_DIR         = $(PACKAGE_NAME)$(PACKAGE_VERSION)
     85pkgdatadir      = $(datadir)/$(PKG_DIR)
     86pkglibdir       = $(libdir)/$(PKG_DIR)
     87pkgincludedir   = $(includedir)/$(PKG_DIR)
     88
     89top_builddir    = .
     90
     91INSTALL         = @INSTALL@
     92INSTALL_PROGRAM = @INSTALL_PROGRAM@
     93INSTALL_DATA    = @INSTALL_DATA@
     94INSTALL_SCRIPT  = @INSTALL_SCRIPT@
     95
     96PACKAGE_NAME    = @PACKAGE_NAME@
     97PACKAGE_VERSION = @PACKAGE_VERSION@
     98CC              = @CC@
     99CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     100CFLAGS_WARNING  = @CFLAGS_WARNING@
     101CLEANFILES      = @CLEANFILES@
     102EXEEXT          = @EXEEXT@
     103LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@
     104MAKE_LIB        = @MAKE_LIB@
     105MAKE_SHARED_LIB = @MAKE_SHARED_LIB@
     106MAKE_STATIC_LIB = @MAKE_STATIC_LIB@
     107MAKE_STUB_LIB   = @MAKE_STUB_LIB@
     108OBJEXT          = @OBJEXT@
     109RANLIB          = @RANLIB@
     110RANLIB_STUB     = @RANLIB_STUB@
     111SHLIB_CFLAGS    = @SHLIB_CFLAGS@
     112SHLIB_LD        = @SHLIB_LD@
     113SHLIB_LD_LIBS   = @SHLIB_LD_LIBS@
     114STLIB_LD        = @STLIB_LD@
     115#TCL_DEFS       = @TCL_DEFS@
     116TCL_BIN_DIR     = @TCL_BIN_DIR@
     117TCL_SRC_DIR     = @TCL_SRC_DIR@
     118#TK_BIN_DIR     = @TK_BIN_DIR@
     119#TK_SRC_DIR     = @TK_SRC_DIR@
     120
     121# Not used, but retained for reference of what libs Tcl required
     122#TCL_LIBS       = @TCL_LIBS@
     123
     124#========================================================================
     125# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
     126# package without installing.  The other environment variables allow us
     127# to test against an uninstalled Tcl.  Add special env vars that you
     128# require for testing here (like TCLX_LIBRARY).
     129#========================================================================
     130
     131EXTRA_PATH      = $(top_builddir):$(TCL_BIN_DIR)
     132#EXTRA_PATH     = $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
     133TCLLIBPATH      = $(top_builddir)
     134TCLSH_ENV       = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \
     135                  @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
     136                  PATH="$(EXTRA_PATH):$(PATH)" \
     137                  TCLLIBPATH="$(TCLLIBPATH)"
     138#                 TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
     139
     140TCLSH_PROG      = @TCLSH_PROG@
     141TCLSH   = $(TCLSH_ENV) $(TCLSH_PROG)
     142
     143#WISH_PROG      = @WISH_PROG@
     144#WISH   = $(TCLSH_ENV) $(WISH_PROG)
     145
     146
     147SHARED_BUILD    = @SHARED_BUILD@
     148
     149INCLUDES        = @PKG_INCLUDES@ @TCL_INCLUDES@ -I$(BLT_SRC_DIR)
     150#INCLUDES       = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
     151
     152PKG_CFLAGS      = @PKG_CFLAGS@
     153
     154# TCL_DEFS is not strictly need here, but if you remove it, then you
     155# must make sure that configure.in checks for the necessary components
     156# that your library may use.  TCL_DEFS can actually be a problem if
     157# you do not compile with a similar machine setup as the Tcl core was
     158# compiled with.
     159#DEFS           = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
     160DEFS            = @DEFS@ $(PKG_CFLAGS)
     161
     162CONFIG_CLEAN_FILES = Makefile
     163
     164CPPFLAGS        = @CPPFLAGS@
     165LIBS            = @PKG_LIBS@ @LIBS@
     166AR              = @AR@
     167CFLAGS          = @CFLAGS@
     168COMPILE         = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    163169
    164170#========================================================================
     
    188194        cd filexfer; make all
    189195
     196#========================================================================
     197# Your doc target should differentiate from doc builds (by the developer)
     198# and doc installs (see install-doc), which just install the docs on the
     199# end user machine when building from source.
     200#========================================================================
     201
    190202doc:
    191 
    192 install: all install-binaries install-libraries
     203#       @echo "If you have documentation to create, place the commands to"
     204#       @echo "build the docs in the 'doc:' target.  For example:"
     205#       @echo "        xml2nroff sample.xml > sample.n"
     206#       @echo "        xml2html sample.xml > sample.html"
     207
     208install: all install-binaries install-libraries install-doc
    193209
    194210install-binaries: binaries install-lib-binaries install-bin-binaries
     
    196212#========================================================================
    197213# This rule installs platform-independent files, such as header files.
     214# The list=...; for p in $$list handles the empty list case x-platform.
    198215#========================================================================
    199216
    200217install-libraries: libraries
    201         $(mkinstalldirs) $(includedir)
    202         echo "Installing header files in $(includedir)"
    203         @for i in $(GENERIC_HDRS) ; do \
    204             echo "Installing $$i" ; \
    205             $(INSTALL_DATA) $$i $(includedir) ; \
     218        @mkdir -p $(DESTDIR)$(includedir)
     219        @echo "Installing header files in $(DESTDIR)$(includedir)"
     220        @list='$(PKG_HEADERS)'; for i in $$list; do \
     221            echo "Installing $(srcdir)/$$i" ; \
     222            $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \
    206223        done;
    207224
     
    212229
    213230install-doc: doc
    214         $(mkinstalldirs) $(mandir)/man1
    215         $(mkinstalldirs) $(mandir)/man3
    216         $(mkinstalldirs) $(mandir)/mann
    217         @for i in $(srcdir)/*.n; \
    218             do \
    219             echo "Installing $$i"; \
    220             rm -f $(mandir)/mann/$$i; \
    221             $(INSTALL_DATA) $$i $(mandir)/mann/$$i ; \
    222             chmod 444 $(mandir)/mann/$$i; \
    223             done
    224 
    225 test:
     231#       @mkdir -p $(DESTDIR)$(mandir)/mann
     232#       @echo "Installing documentation in $(DESTDIR)$(mandir)"
     233#       @list='$(srcdir)/doc/*.n'; for i in $$list; do \
     234#           echo "Installing $$i"; \
     235#           rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
     236#           $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
     237#       done
     238
     239test: binaries libraries
     240        $(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
     241
     242shell: binaries libraries
     243        @$(TCLSH) $(SCRIPT)
     244
     245gdb:
     246        $(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
    226247
    227248depend:
    228249
    229250#========================================================================
    230 # Enumerate the names of the object files included in this package.
    231 # These objects are created and linked into the final library.  In
    232 # most cases these object files will correspond to the source files
    233 # above.
    234 #
    235 # $(RapptureGUI_LIB_FILE) should be listed as part of the BINARIES variable
    236 # at the top of the Makefile.  That will ensure that this target is built
    237 # when you run "make binaries".
    238 #
    239 # You shouldn't need to modify this target, except to change the package
    240 # name from "Rappture" to your package's name.
    241 #========================================================================
    242 
    243 $(RapptureGUI_LIB_FILE): $(RapptureGUI_OBJECTS)
    244         -rm -f $(RapptureGUI_LIB_FILE)
    245         @MAKE_LIB@
    246         $(RANLIB) $(RapptureGUI_LIB_FILE)
     251# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
     252# mentioned above.  That will ensure that this target is built when you
     253# run "make binaries".
     254#
     255# The $(PKG_OBJECTS) objects are created and linked into the final
     256# library.  In most cases these object files will correspond to the
     257# source files above.
     258#========================================================================
     259
     260$(PKG_LIB_FILE): $(PKG_OBJECTS)
     261        -rm -f $(PKG_LIB_FILE)
     262        ${MAKE_LIB}
     263        $(RANLIB) $(PKG_LIB_FILE)
     264
     265$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
     266        -rm -f $(PKG_STUB_LIB_FILE)
     267        ${MAKE_STUB_LIB}
     268        $(RANLIB_STUB) $(PKG_STUB_LIB_FILE)
    247269
    248270#========================================================================
    249271# We need to enumerate the list of .c to .o lines here.
    250 # Unfortunately, there does not seem to be any other way to do this
    251 # in a Makefile-independent way.  We can't use VPATH because it picks up
    252 # object files that may be located in the source directory.
    253272#
    254273# In the following lines, $(srcdir) refers to the toplevel directory
     
    256275# you will have to modify the paths to reflect this:
    257276#
    258 # exampleA.$(OBJEXT): $(srcdir)/src/win/exampleA.c
    259 #       $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/win/exampleA.c` -o $@
    260 #========================================================================
    261 
    262 RpInit.$(OBJEXT): $(srcdir)/src/RpInit.c
    263         $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpInit.c` -o $@
    264 
    265 RpRlimit.$(OBJEXT): $(srcdir)/src/RpRlimit.c
    266         $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpRlimit.c` -o $@
    267 
    268 RpRusage.$(OBJEXT): $(srcdir)/src/RpRusage.c
    269         $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpRusage.c` -o $@
    270 
    271 RpSignal.$(OBJEXT): $(srcdir)/src/RpSignal.c
    272         $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpSignal.c` -o $@
    273 
     277# sample.$(OBJEXT): $(srcdir)/generic/sample.c
     278#       $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@
     279#
     280# Setting the VPATH variable to a list of paths will cause the makefile
     281# to look into these paths when resolving .c to .obj dependencies.
     282# As necessary, add $(srcdir):$(srcdir)/compat:....
     283#========================================================================
     284
     285VPATH = $(srcdir):$(srcdir)/src:$(srcdir)/unix:$(srcdir)/win
     286
     287.c.@OBJEXT@:
     288        $(COMPILE) -c `@CYGPATH@ $<` -o $@
     289
     290#========================================================================
     291# Distribution creation
     292# You may need to tweak this target to make it work correctly.
     293#========================================================================
     294
     295#COMPRESS       = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
     296COMPRESS        = gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
     297DIST_ROOT       = /tmp/dist
     298DIST_DIR        = $(DIST_ROOT)/$(PKG_DIR)
     299
     300dist-clean:
     301        rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*
     302
     303dist: dist-clean
     304        mkdir -p $(DIST_DIR)
     305        cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \
     306                $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \
     307                $(DIST_DIR)/
     308        chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4
     309        chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in
     310
     311        for i in $(srcdir)/*.[ch]; do \
     312            if [ -f $$i ]; then \
     313                cp -p $$i $(DIST_DIR)/ ; \
     314            fi; \
     315        done;
     316
     317        mkdir $(DIST_DIR)/tclconfig
     318        cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \
     319                $(DIST_DIR)/tclconfig/
     320        chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
     321        chmod +x $(DIST_DIR)/tclconfig/install-sh
     322
     323        list='demos doc generic library mac tests unix win'; \
     324        for p in $$list; do \
     325            if test -d $(srcdir)/$$p ; then \
     326                mkdir $(DIST_DIR)/$$p; \
     327                cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \
     328            fi; \
     329        done
     330
     331        (cd $(DIST_ROOT); $(COMPRESS);)
    274332
    275333#========================================================================
     
    282340#========================================================================
    283341
    284 clean: 
    285         cd filexfer; make clean
     342clean:
     343        cd filexfer; make clean 
    286344        -test -z "$(BINARIES)" || rm -f $(BINARIES)
    287         -rm -f *.o core *.core
    288         -rm -f *.$(OBJEXT)
     345        -rm -f *.$(OBJEXT) core *.core
    289346        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    290347
    291348distclean: clean
    292349        -rm -f *.tab.c
    293         -rm -f Makefile $(CONFIG_CLEAN_FILES)
    294         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
    295         -rm -f config.status
    296         -rm -rf autom4te.cache
     350        -rm -f $(CONFIG_CLEAN_FILES)
     351        -rm -f config.cache config.log config.status
    297352
    298353#========================================================================
     
    300355# .lib files.  Because the .lib files are not explicitly listed anywhere,
    301356# we need to deduce their existence from the .dll file of the same name.
    302 # Additionally, the .dll files go into the bin directory, but the .lib
    303 # files go into the lib directory.  On Unix platforms, all library files
    304 # go into the lib directory.  In addition, this will generate the pkgIndex.tcl
    305 # file in the install location (assuming it can find a usable tclsh8.2 shell)
     357# Library files go into the lib directory.
     358# In addition, this will generate the pkgIndex.tcl
     359# file in the install location (assuming it can find a usable tclsh shell)
    306360#
    307361# You should not have to modify this target.
    308362#========================================================================
    309363
    310 install-lib-binaries: installdirs
     364install-lib-binaries: binaries
     365        @mkdir -p $(DESTDIR)$(pkglibdir)
    311366        @list='$(lib_BINARIES)'; for p in $$list; do \
    312367          if test -f $$p; then \
     368            echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
     369            $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
     370            stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
     371            if test "x$$stub" = "xstub"; then \
     372                echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
     373                $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
     374            else \
     375                echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
     376                $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
     377            fi; \
    313378            ext=`echo $$p|sed -e "s/.*\.//"`; \
    314379            if test "x$$ext" = "xdll"; then \
    315                 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; \
    316                 $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; \
    317380                lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
    318381                if test -f $$lib; then \
    319                     echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
    320                     $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
     382                    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
     383                    $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
    321384                fi; \
    322             else \
    323                 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
    324                 $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
    325385            fi; \
    326           else :; fi; \
    327         done
    328         @list='$(lib_BINARIES)'; for p in $$list; do \
    329           if test -f $$p; then \
    330             echo " $(RANLIB) $(DESTDIR)$(bindir)/$$p"; \
    331             $(RANLIB) $(DESTDIR)$(bindir)/$$p; \
    332           else :; fi; \
    333         done
    334         $(mkinstalldirs) $(pkglibdir)/scripts
    335         @for i in $(srcdir)/scripts/*.tcl; do \
    336             echo "Installing $$i" ; \
    337             $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/scripts ; \
    338         done;
    339         $(TCLSH_PROG) $(srcdir)/cf/mkindex.tcl $(DESTDIR)$(pkglibdir)/scripts
    340         $(mkinstalldirs) $(pkglibdir)/scripts/images
     386          fi; \
     387        done
     388        @mkdir -p $(DESTDIR)$(pkglibdir)/scripts
     389        @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
     390          if test -f $(srcdir)/$$p; then \
     391            destp=`basename $$p`; \
     392            echo " Install $$destp $(DESTDIR)$(pkglibdir)/scripts/$$destp"; \
     393            $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/scripts/$$destp; \
     394          fi; \
     395        done
     396        $(TCLSH_PROG) $(srcdir)/tclconfig/mkindex.tcl $(DESTDIR)$(pkglibdir)/scripts
     397        @mkdir -p $(DESTDIR)$(pkglibdir)/scripts/images
    341398        @for i in $(srcdir)/scripts/images/*.gif \
    342399                $(srcdir)/scripts/images/*.xbm; do \
    343             echo "Installing $$i" ; \
    344             $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/scripts/images ; \
    345         done;
    346         $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)/pkgIndex.tcl
     400                destp=`basename $$i`;\
     401                echo " Install $$destp $(DESTDIR)$(pkglibdir)/scripts/images/$$destp" ;\
     402                $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/scripts/images ; \
     403                done;
    347404        $(INSTALL_DATA) init.tcl $(DESTDIR)$(pkglibdir)/init.tcl
    348         $(mkinstalldirs) $(pkglibdir)/filexfer
     405        @mkdir -p $(DESTDIR)$(pkglibdir)/filexfer;
    349406        @for i in $(srcdir)/filexfer/filexfer.jar \
    350               $(srcdir)/filexfer/*.class \
    351               $(srcdir)/filexfer/upload.html; do \
    352             echo "Installing $$i" ; \
    353             $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/filexfer ; \
    354         done;
    355 
    356 #========================================================================
    357 # Install binary executables (e.g. .exe files)
    358 #
    359 # You should not have to modify this target.
    360 #========================================================================
    361 
    362 install-bin-binaries: installdirs
     407                $(srcdir)/filexfer/*.class \
     408                $(srcdir)/filexfer/upload.html; do \
     409                destp=`basename $$i`;\
     410                echo " Install $$destp $(DESTDIR)$(pkglibdir)/filexfer" ;\
     411                $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/filexfer ; \
     412                done;
     413
     414        @if test "x$(SHARED_BUILD)" = "x1"; then \
     415            echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
     416            $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
     417        fi
     418
     419#========================================================================
     420# Install binary executables (e.g. .exe files and dependent .dll files)
     421# This is for files that must go in the bin directory (located next to
     422# wish and tclsh), like dependent .dll files on Windows.
     423#
     424# You should not have to modify this target, except to define bin_BINARIES
     425# above if necessary.
     426#========================================================================
     427
     428install-bin-binaries: binaries
     429        @mkdir -p $(DESTDIR)$(bindir)
    363430        @list='$(bin_BINARIES)'; for p in $$list; do \
    364431          if test -f $$p; then \
    365             echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; \
    366             $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; \
    367           else :; fi; \
    368         done
    369 
    370 .SUFFIXES: .c .o .obj
     432            echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
     433            $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \
     434          fi; \
     435        done
     436
     437.SUFFIXES: .c .$(OBJEXT)
    371438
    372439Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
     
    374441          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
    375442
    376 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    377         $(SHELL) ./config.status --recheck
    378 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
    379         cd $(srcdir) && $(AUTOCONF)
    380 
    381 
    382443uninstall-binaries:
    383         @$(NORMAL_UNINSTALL)
    384         list='$(BINARIES)'; for p in $$list; do \
    385           rm -f $(DESTDIR)$(libdir)/$$p; \
    386         done
    387 
    388 installdirs:
    389         $(mkinstalldirs)  $(DESTDIR)$(libdir)
    390         $(mkinstalldirs)  $(DESTDIR)$(bindir)
    391         $(mkinstalldirs)  $(DESTDIR)$(pkglibdir)
    392 
    393 .PHONY: all binaries clean depend distclean doc install installdirs \
    394 libraries test
     444        list='$(lib_BINARIES)'; for p in $$list; do \
     445          rm -f $(DESTDIR)$(pkglibdir)/$$p; \
     446        done
     447        list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
     448          p=`basename $$p`; \
     449          rm -f $(DESTDIR)$(pkglibdir)/$$p; \
     450        done
     451        list='$(bin_BINARIES)'; for p in $$list; do \
     452          rm -f $(DESTDIR)$(bindir)/$$p; \
     453        done
     454
     455.PHONY: all binaries clean depend distclean doc install libraries test
    395456
    396457# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/gui/aclocal.m4

    r158 r503  
    1 builtin(include,tcl.m4)
     1builtin(include,tclconfig/tcl.m4)
  • trunk/gui/configure

    r408 r503  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.59 for RapptureGUI 1.0.
    44#
    55# Copyright (C) 2003 Free Software Foundation, Inc.
     
    266266
    267267# Identity of this package.
    268 PACKAGE_NAME=
    269 PACKAGE_TARNAME=
    270 PACKAGE_VERSION=
    271 PACKAGE_STRING=
    272 PACKAGE_BUGREPORT=
    273 
    274 ac_unique_file="src/RpInit.c"
    275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os CYGPATH TCL_INCLUDES TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIBS TCL_DEFS TCL_SHLIB_LD_LIBS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_STUB_LIB_FILE TCL_LIB_SPEC TCL_BUILD_LIB_SPEC TCL_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_SPEC TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE BLT_SRC_DIR CLEANFILES CFLAGS_DEBUG CFLAGS_OPTIMIZE STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB RapptureGUI_LIB_FILE SHLIB_LD_LIBS TCLSH_PROG PACKAGE VERSION PATCHLEVEL EXACT_VERSION NODOT_VERSION LIBOBJS LTLIBOBJS'
     268PACKAGE_NAME='RapptureGUI'
     269PACKAGE_TARNAME='rappturegui'
     270PACKAGE_VERSION='1.0'
     271PACKAGE_STRING='RapptureGUI 1.0'
     272PACKAGE_BUGREPORT=''
     273
     274# Factoring default headers for most tests.
     275ac_includes_default="\
     276#include <stdio.h>
     277#if HAVE_SYS_TYPES_H
     278# include <sys/types.h>
     279#endif
     280#if HAVE_SYS_STAT_H
     281# include <sys/stat.h>
     282#endif
     283#if STDC_HEADERS
     284# include <stdlib.h>
     285# include <stddef.h>
     286#else
     287# if HAVE_STDLIB_H
     288#  include <stdlib.h>
     289# endif
     290#endif
     291#if HAVE_STRING_H
     292# if !STDC_HEADERS && HAVE_MEMORY_H
     293#  include <memory.h>
     294# endif
     295# include <string.h>
     296#endif
     297#if HAVE_STRINGS_H
     298# include <strings.h>
     299#endif
     300#if HAVE_INTTYPES_H
     301# include <inttypes.h>
     302#else
     303# if HAVE_STDINT_H
     304#  include <stdint.h>
     305# endif
     306#endif
     307#if HAVE_UNISTD_H
     308# include <unistd.h>
     309#endif"
     310
     311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CYGPATH EXEEXT PKG_LIB_FILE PKG_STUB_LIB_FILE PKG_STUB_SOURCES PKG_STUB_OBJECTS PKG_TCL_SOURCES PKG_HEADERS PKG_INCLUDES PKG_LIBS PKG_CFLAGS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_LIBS TCL_DEFS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_SHLIB_LD_LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB EGREP MATH_LIBS PKG_SOURCES PKG_OBJECTS CLEANFILES TCL_INCLUDES TCL_THREADS SHARED_BUILD AR CELIB_DIR LIBOBJS DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS LD_LIBRARY_PATH_VAR TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB MAKE_STUB_LIB RANLIB_STUB TCLSH_PROG BLT_SRC_DIR RAPPTURE_DIR PACKAGE VERSION PATCHLEVEL EXACT_VERSION NODOT_VERSION LTLIBOBJS'
    276312ac_subst_files=''
    277313
     
    730766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    731767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     768ac_env_CPP_set=${CPP+set}
     769ac_env_CPP_value=$CPP
     770ac_cv_env_CPP_set=${CPP+set}
     771ac_cv_env_CPP_value=$CPP
    732772
    733773#
     
    738778  # This message is too long to be a string in the A/UX 3.1 sh.
    739779  cat <<_ACEOF
    740 \`configure' configures this package to adapt to many kinds of systems.
     780\`configure' configures RapptureGUI 1.0 to adapt to many kinds of systems.
    741781
    742782Usage: $0 [OPTION]... [VAR=VALUE]...
     
    790830
    791831  cat <<\_ACEOF
    792 
    793 System types:
    794   --build=BUILD     configure for building on BUILD [guessed]
    795   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    796832_ACEOF
    797833fi
    798834
    799835if test -n "$ac_init_help"; then
    800 
     836  case $ac_init_help in
     837     short | recursive ) echo "Configuration of RapptureGUI 1.0:";;
     838   esac
    801839  cat <<\_ACEOF
    802840
     
    804842  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    805843  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    806   --enable-gcc            allow use of gcc if available --disable-gcc
    807844  --enable-threads        build with threads
    808   --enable-shared         build and link with shared libraries --enable-shared
    809   --enable-symbols        build with debugging symbols --disable-symbols
     845  --enable-shared         build and link with shared libraries (default: on)
     846  --enable-64bit          enable 64bit support (default: off)
     847  --enable-64bit-vis      enable 64bit Sparc VIS support (default: off)
     848  --enable-wince          enable Win/CE support (where applicable)
     849  --disable-load          disallow dynamic loading and "load" command
     850                          (default: enabled)
     851  --enable-symbols        build with debugging symbols (default: off)
    810852
    811853Optional Packages:
     
    813855  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    814856  --with-blt=DIR          Find bltInt.h in DIR
    815  --with-tclinclude      directory containing the public Tcl header files.
    816   --with-tcl              directory containing tcl configuration (tclConfig.sh)
    817   --with-tk               directory containing tk configuration (tkConfig.sh)
     857  --with-rappture=DIR          Find include/core/rappture.h in DIR
     858  --with-tcl              directory containing tcl configuration
     859                          (tclConfig.sh)
     860  --with-tclinclude       directory containing the public Tcl header files
     861  --with-celib=DIR        use Windows/CE support library from DIR
    818862
    819863Some influential environment variables:
     
    824868  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    825869              headers in a nonstandard directory <include dir>
     870  CPP         C preprocessor
    826871
    827872Use these variables to override the choices made by `configure' or to help
     
    916961      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    917962    fi
    918     cd "$ac_popdir"
     963    cd $ac_popdir
    919964  done
    920965fi
     
    923968if $ac_init_version; then
    924969  cat <<\_ACEOF
     970RapptureGUI configure 1.0
     971generated by GNU Autoconf 2.59
    925972
    926973Copyright (C) 2003 Free Software Foundation, Inc.
     
    935982running configure, to aid debugging if configure makes a mistake.
    936983
    937 It was created by $as_me, which was
     984It was created by RapptureGUI $as_me 1.0, which was
    938985generated by GNU Autoconf 2.59.  Invocation command line was
    939986
     
    12631310
    12641311
     1312
     1313
     1314
     1315
     1316
     1317
     1318
     1319
     1320
     1321PACKAGE=RapptureGUI
     1322
     1323MAJOR_VERSION=1
     1324MINOR_VERSION=0
     1325VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
     1326
     1327#--------------------------------------------------------------------
     1328# Call TEA_INIT as the first TEA_ macro to set up initial vars.
     1329# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
     1330# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
     1331#--------------------------------------------------------------------
     1332
     1333
     1334    # TEA extensions pass this us the version of TEA they think they
     1335    # are compatible with.
     1336    TEA_VERSION="3.5"
     1337
     1338    echo "$as_me:$LINENO: checking for correct TEA configuration" >&5
     1339echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6
     1340    if test x"${PACKAGE_NAME}" = x ; then
     1341        { { echo "$as_me:$LINENO: error:
     1342The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5
     1343echo "$as_me: error:
     1344The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;}
     1345   { (exit 1); exit 1; }; }
     1346    fi
     1347    if test x"3.5" = x ; then
     1348        { { echo "$as_me:$LINENO: error:
     1349TEA version not specified." >&5
     1350echo "$as_me: error:
     1351TEA version not specified." >&2;}
     1352   { (exit 1); exit 1; }; }
     1353    elif test "3.5" != "${TEA_VERSION}" ; then
     1354        echo "$as_me:$LINENO: result: warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&5
     1355echo "${ECHO_T}warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&6
     1356    else
     1357        echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5
     1358echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6
     1359    fi
     1360    case "`uname -s`" in
     1361        *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*|*MSYS_NT*)
     1362            # Extract the first word of "cygpath", so it can be a program name with args.
     1363set dummy cygpath; ac_word=$2
     1364echo "$as_me:$LINENO: checking for $ac_word" >&5
     1365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1366if test "${ac_cv_prog_CYGPATH+set}" = set; then
     1367  echo $ECHO_N "(cached) $ECHO_C" >&6
     1368else
     1369  if test -n "$CYGPATH"; then
     1370  ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
     1371else
     1372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1373for as_dir in $PATH
     1374do
     1375  IFS=$as_save_IFS
     1376  test -z "$as_dir" && as_dir=.
     1377  for ac_exec_ext in '' $ac_executable_extensions; do
     1378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1379    ac_cv_prog_CYGPATH="cygpath -w"
     1380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1381    break 2
     1382  fi
     1383done
     1384done
     1385
     1386  test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
     1387fi
     1388fi
     1389CYGPATH=$ac_cv_prog_CYGPATH
     1390if test -n "$CYGPATH"; then
     1391  echo "$as_me:$LINENO: result: $CYGPATH" >&5
     1392echo "${ECHO_T}$CYGPATH" >&6
     1393else
     1394  echo "$as_me:$LINENO: result: no" >&5
     1395echo "${ECHO_T}no" >&6
     1396fi
     1397
     1398            EXEEXT=".exe"
     1399            TEA_PLATFORM="windows"
     1400            ;;
     1401        *)
     1402            CYGPATH=echo
     1403            EXEEXT=""
     1404            TEA_PLATFORM="unix"
     1405            ;;
     1406    esac
     1407
     1408    # Check if exec_prefix is set. If not use fall back to prefix.
     1409    # Note when adjusted, so that TEA_PREFIX can correct for this.
     1410    # This is needed for recursive configures, since autoconf propagates
     1411    # $prefix, but not $exec_prefix (doh!).
     1412    if test x$exec_prefix = xNONE ; then
     1413        exec_prefix_default=yes
     1414        exec_prefix=$prefix
     1415    fi
     1416
     1417
     1418
     1419
     1420    # This package name must be replaced statically for AC_SUBST to work
     1421
     1422    # Substitute STUB_LIB_FILE in case package creates a stub library too.
     1423
     1424
     1425    # We AC_SUBST these here to ensure they are subst'ed,
     1426    # in case the user doesn't call TEA_ADD_...
     1427
     1428
     1429
     1430
     1431
     1432
     1433
     1434
     1435
    12651436ac_aux_dir=
    1266 for ac_dir in cf $srcdir/cf; do
     1437for ac_dir in tclconfig $srcdir/tclconfig; do
    12671438  if test -f $ac_dir/install-sh; then
    12681439    ac_aux_dir=$ac_dir
     
    12801451done
    12811452if test -z "$ac_aux_dir"; then
    1282   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf $srcdir/cf" >&5
    1283 echo "$as_me: error: cannot find install-sh or install.sh in cf $srcdir/cf" >&2;}
     1453  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&5
     1454echo "$as_me: error: cannot find install-sh or install.sh in tclconfig $srcdir/tclconfig" >&2;}
    12841455   { (exit 1); exit 1; }; }
    12851456fi
     
    12881459ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    12891460
    1290 
    1291 #--------------------------------------------------------------------
    1292 # __CHANGE__
    1293 # Set your package name and version numbers here.  The NODOT_VERSION is
    1294 # required for constructing the library name on systems that don't like
    1295 # dots in library names (Windows).  The VERSION variable is used on the
    1296 # other systems.
    1297 #--------------------------------------------------------------------
    1298 
    1299 PACKAGE=RapptureGUI
    1300 
    1301 MAJOR_VERSION=1
    1302 MINOR_VERSION=0
    1303 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}
    13041461
    13051462#--------------------------------------------------------------------
     
    13131470fi;
    13141471
     1472
     1473# Check whether --with-rappture or --without-rappture was given.
     1474if test "${with_rappture+set}" = set; then
     1475  withval="$with_rappture"
     1476  rappture_dir=$withval
     1477fi;
     1478
    13151479#--------------------------------------------------------------------
    1316 # We put this here so that you can compile with -DVERSION="1.2" to
    1317 # encode the package version directly into the source files.
     1480# Load the tclConfig.sh file
    13181481#--------------------------------------------------------------------
    13191482
    1320 eval cat >>confdefs.h <<_ACEOF
    1321 #define VERSION "${VERSION}"
    1322 _ACEOF
    1323 
    1324 
    1325 #--------------------------------------------------------------------
    1326 # Check whether --enable-gcc or --disable-gcc was given.  Do this
    1327 # before AC_CYGWIN is called so the compiler can
    1328 # be fully tested by built-in autoconf tools.
    1329 # This macro also calls AC_PROG_CC to set the compiler if --enable-gcc
    1330 # was not used.
    1331 #--------------------------------------------------------------------
    1332 
    1333 
    1334     # Check whether --enable-gcc or --disable-gcc was given.
    1335 if test "${enable_gcc+set}" = set; then
    1336   enableval="$enable_gcc"
    1337   ok=$enableval
    1338 else
    1339   ok=no
     1483
     1484
     1485    #
     1486    # Ok, lets find the tcl configuration
     1487    # First, look for one uninstalled.
     1488    # the alternative search directory is invoked by --with-tcl
     1489    #
     1490
     1491    if test x"${no_tcl}" = x ; then
     1492        # we reset no_tcl in case something fails here
     1493        no_tcl=true
     1494
     1495# Check whether --with-tcl or --without-tcl was given.
     1496if test "${with_tcl+set}" = set; then
     1497  withval="$with_tcl"
     1498  with_tclconfig=${withval}
    13401499fi;
    1341     if test "$ok" = "yes"; then
    1342         CC=gcc
     1500        echo "$as_me:$LINENO: checking for Tcl configuration" >&5
     1501echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
     1502        if test "${ac_cv_c_tclconfig+set}" = set; then
     1503  echo $ECHO_N "(cached) $ECHO_C" >&6
     1504else
     1505
     1506
     1507            # First check to see if --with-tcl was specified.
     1508            if test x"${with_tclconfig}" != x ; then
     1509                case ${with_tclconfig} in
     1510                    */tclConfig.sh )
     1511                        if test -f ${with_tclconfig}; then
     1512                            { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
     1513echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
     1514                            with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'`
     1515                        fi ;;
     1516                esac
     1517                if test -f "${with_tclconfig}/tclConfig.sh" ; then
     1518                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
     1519                else
     1520                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
     1521echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
     1522   { (exit 1); exit 1; }; }
     1523                fi
     1524            fi
     1525
     1526            # then check for a private Tcl installation
     1527            if test x"${ac_cv_c_tclconfig}" = x ; then
     1528                for i in \
     1529                        ../tcl \
     1530                        `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
     1531                        `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
     1532                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
     1533                        ../../tcl \
     1534                        `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
     1535                        `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
     1536                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
     1537                        ../../../tcl \
     1538                        `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
     1539                        `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
     1540                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
     1541                    if test -f "$i/unix/tclConfig.sh" ; then
     1542                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
     1543                        break
     1544                    fi
     1545                done
     1546            fi
     1547
     1548            # on Darwin, check in Framework installation locations
     1549            if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
     1550                for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
     1551                        `ls -d /Library/Frameworks 2>/dev/null` \
     1552                        `ls -d /Network/Library/Frameworks 2>/dev/null` \
     1553                        `ls -d /System/Library/Frameworks 2>/dev/null` \
     1554                        ; do
     1555                    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
     1556                        ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
     1557                        break
     1558                    fi
     1559                done
     1560            fi
     1561
     1562            # on Windows, check in common installation locations
     1563            if test "${TEA_PLATFORM}" = "windows" \
     1564                -a x"${ac_cv_c_tclconfig}" = x ; then
     1565                for i in `ls -d C:/Tcl/lib 2>/dev/null` \
     1566                        `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
     1567                        ; do
     1568                    if test -f "$i/tclConfig.sh" ; then
     1569                        ac_cv_c_tclconfig=`(cd $i; pwd)`
     1570                        break
     1571                    fi
     1572                done
     1573            fi
     1574
     1575            # check in a few common install locations
     1576            if test x"${ac_cv_c_tclconfig}" = x ; then
     1577                for i in `ls -d ${libdir} 2>/dev/null` \
     1578                        `ls -d ${exec_prefix}/lib 2>/dev/null` \
     1579                        `ls -d ${prefix}/lib 2>/dev/null` \
     1580                        `ls -d /usr/local/lib 2>/dev/null` \
     1581                        `ls -d /usr/contrib/lib 2>/dev/null` \
     1582                        `ls -d /usr/lib 2>/dev/null` \
     1583                        ; do
     1584                    if test -f "$i/tclConfig.sh" ; then
     1585                        ac_cv_c_tclconfig=`(cd $i; pwd)`
     1586                        break
     1587                    fi
     1588                done
     1589            fi
     1590
     1591            # check in a few other private locations
     1592            if test x"${ac_cv_c_tclconfig}" = x ; then
     1593                for i in \
     1594                        ${srcdir}/../tcl \
     1595                        `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
     1596                        `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
     1597                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
     1598                    if test -f "$i/unix/tclConfig.sh" ; then
     1599                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
     1600                    break
     1601                fi
     1602                done
     1603            fi
     1604
     1605fi
     1606
     1607
     1608        if test x"${ac_cv_c_tclconfig}" = x ; then
     1609            TCL_BIN_DIR="# no Tcl configs found"
     1610            { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
     1611echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
     1612            exit 0
     1613        else
     1614            no_tcl=
     1615            TCL_BIN_DIR=${ac_cv_c_tclconfig}
     1616            echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
     1617echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
     1618        fi
     1619    fi
     1620
     1621
     1622    echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
     1623echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
     1624
     1625    if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
     1626        echo "$as_me:$LINENO: result: loading" >&5
     1627echo "${ECHO_T}loading" >&6
     1628        . ${TCL_BIN_DIR}/tclConfig.sh
    13431629    else
    1344         case "`uname -s`" in
    1345             *win32* | *WIN32* | *CYGWIN_NT*)
    1346                 CC=cl
    1347             ;;
    1348             *)
    1349                 CC=${CC-cc}
    1350             ;;
     1630        echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
     1631echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
     1632    fi
     1633
     1634    # eval is required to do the TCL_DBGX substitution
     1635    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
     1636    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
     1637
     1638    # If the TCL_BIN_DIR is the build directory (not the install directory),
     1639    # then set the common variable name to the value of the build variables.
     1640    # For example, the variable TCL_LIB_SPEC will be set to the value
     1641    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
     1642    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
     1643    # installed and uninstalled version of Tcl.
     1644    if test -f ${TCL_BIN_DIR}/Makefile ; then
     1645        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
     1646        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
     1647        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
     1648    elif test "`uname -s`" = "Darwin"; then
     1649        # If Tcl was built as a framework, attempt to use the libraries
     1650        # from the framework at the given location so that linking works
     1651        # against Tcl.framework installed in an arbitary location.
     1652        case ${TCL_DEFS} in
     1653            *TCL_FRAMEWORK*)
     1654                if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
     1655                    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
     1656                             "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
     1657                        if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
     1658                            TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
     1659                            break
     1660                        fi
     1661                    done
     1662                fi
     1663                if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
     1664                    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
     1665                    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
     1666                fi
     1667                ;;
    13511668        esac
    13521669    fi
     1670
     1671    # eval is required to do the TCL_DBGX substitution
     1672    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
     1673    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
     1674    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
     1675    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
     1676
     1677
     1678
     1679
     1680
     1681
     1682
     1683
     1684
     1685
     1686
     1687
     1688
     1689
     1690
     1691
     1692
     1693
     1694
     1695
     1696#--------------------------------------------------------------------
     1697# Load the tkConfig.sh file if necessary (Tk extension)
     1698#--------------------------------------------------------------------
     1699
     1700#TEA_PATH_TKCONFIG
     1701#TEA_LOAD_TKCONFIG
     1702
     1703#-----------------------------------------------------------------------
     1704# Handle the --prefix=... option by defaulting to what Tcl gave.
     1705# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
     1706#-----------------------------------------------------------------------
     1707
     1708
     1709    if test "${prefix}" = "NONE"; then
     1710        prefix_default=yes
     1711        if test x"${TCL_PREFIX}" != x; then
     1712            { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
     1713echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
     1714            prefix=${TCL_PREFIX}
     1715        else
     1716            { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5
     1717echo "$as_me: --prefix defaulting to /usr/local" >&6;}
     1718            prefix=/usr/local
     1719        fi
     1720    fi
     1721    if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
     1722        -o x"${exec_prefix_default}" = x"yes" ; then
     1723        if test x"${TCL_EXEC_PREFIX}" != x; then
     1724            { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
     1725echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
     1726            exec_prefix=${TCL_EXEC_PREFIX}
     1727        else
     1728            { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5
     1729echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
     1730            exec_prefix=$prefix
     1731        fi
     1732    fi
     1733
     1734
     1735#-----------------------------------------------------------------------
     1736# Standard compiler checks.
     1737# This sets up CC by using the CC env var, or looks for gcc otherwise.
     1738# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
     1739# the basic setup necessary to compile executables.
     1740#-----------------------------------------------------------------------
     1741
     1742
     1743    # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
     1744    # in this macro, they need to go into TEA_SETUP_COMPILER instead.
     1745
     1746    # If the user did not set CFLAGS, set it now to keep
     1747    # the AC_PROG_CC macro from adding "-g -O2".
     1748    if test "${CFLAGS+set}" != "set" ; then
     1749        CFLAGS=""
     1750    fi
     1751
    13531752    ac_ext=c
    13541753ac_cpp='$CPP $CPPFLAGS'
     
    19192318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19202319  (exit $ac_status); } &&
    1921          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2320         { ac_try='test -z "$ac_c_werror_flag"
     2321                         || test ! -s conftest.err'
    19222322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19232323  (eval $ac_try) 2>&5
     
    19772377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19782378  (exit $ac_status); } &&
    1979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2379         { ac_try='test -z "$ac_c_werror_flag"
     2380                         || test ! -s conftest.err'
    19802381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19812382  (eval $ac_try) 2>&5
     
    20932494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20942495  (exit $ac_status); } &&
    2095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2496         { ac_try='test -z "$ac_c_werror_flag"
     2497                         || test ! -s conftest.err'
    20962498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20972499  (eval $ac_try) 2>&5
     
    21472549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21482550  (exit $ac_status); } &&
    2149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2551         { ac_try='test -z "$ac_c_werror_flag"
     2552                         || test ! -s conftest.err'
    21502553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21512554  (eval $ac_try) 2>&5
     
    21922595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21932596  (exit $ac_status); } &&
    2194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2597         { ac_try='test -z "$ac_c_werror_flag"
     2598                         || test ! -s conftest.err'
    21952599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21962600  (eval $ac_try) 2>&5
     
    22362640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22372641  (exit $ac_status); } &&
    2238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2642         { ac_try='test -z "$ac_c_werror_flag"
     2643                         || test ! -s conftest.err'
    22392644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22402645  (eval $ac_try) 2>&5
     
    22752680ac_compiler_gnu=$ac_cv_c_compiler_gnu
    22762681
    2277 
    2278 # Find a good install program.  We prefer a C program (faster),
     2682    ac_ext=c
     2683ac_cpp='$CPP $CPPFLAGS'
     2684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2686ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2687echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     2688echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     2689# On Suns, sometimes $CPP names a directory.
     2690if test -n "$CPP" && test -d "$CPP"; then
     2691  CPP=
     2692fi
     2693if test -z "$CPP"; then
     2694  if test "${ac_cv_prog_CPP+set}" = set; then
     2695  echo $ECHO_N "(cached) $ECHO_C" >&6
     2696else
     2697      # Double quotes because CPP needs to be expanded
     2698    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2699    do
     2700      ac_preproc_ok=false
     2701for ac_c_preproc_warn_flag in '' yes
     2702do
     2703  # Use a header file that comes with gcc, so configuring glibc
     2704  # with a fresh cross-compiler works.
     2705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2706  # <limits.h> exists even on freestanding compilers.
     2707  # On the NeXT, cc -E runs the code through the compiler's parser,
     2708  # not just through cpp. "Syntax error" is here to catch this case.
     2709  cat >conftest.$ac_ext <<_ACEOF
     2710/* confdefs.h.  */
     2711_ACEOF
     2712cat confdefs.h >>conftest.$ac_ext
     2713cat >>conftest.$ac_ext <<_ACEOF
     2714/* end confdefs.h.  */
     2715#ifdef __STDC__
     2716# include <limits.h>
     2717#else
     2718# include <assert.h>
     2719#endif
     2720                     Syntax error
     2721_ACEOF
     2722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2723  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2724  ac_status=$?
     2725  grep -v '^ *+' conftest.er1 >conftest.err
     2726  rm -f conftest.er1
     2727  cat conftest.err >&5
     2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2729  (exit $ac_status); } >/dev/null; then
     2730  if test -s conftest.err; then
     2731    ac_cpp_err=$ac_c_preproc_warn_flag
     2732    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2733  else
     2734    ac_cpp_err=
     2735  fi
     2736else
     2737  ac_cpp_err=yes
     2738fi
     2739if test -z "$ac_cpp_err"; then
     2740  :
     2741else
     2742  echo "$as_me: failed program was:" >&5
     2743sed 's/^/| /' conftest.$ac_ext >&5
     2744
     2745  # Broken: fails on valid input.
     2746continue
     2747fi
     2748rm -f conftest.err conftest.$ac_ext
     2749
     2750  # OK, works on sane cases.  Now check whether non-existent headers
     2751  # can be detected and how.
     2752  cat >conftest.$ac_ext <<_ACEOF
     2753/* confdefs.h.  */
     2754_ACEOF
     2755cat confdefs.h >>conftest.$ac_ext
     2756cat >>conftest.$ac_ext <<_ACEOF
     2757/* end confdefs.h.  */
     2758#include <ac_nonexistent.h>
     2759_ACEOF
     2760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2762  ac_status=$?
     2763  grep -v '^ *+' conftest.er1 >conftest.err
     2764  rm -f conftest.er1
     2765  cat conftest.err >&5
     2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2767  (exit $ac_status); } >/dev/null; then
     2768  if test -s conftest.err; then
     2769    ac_cpp_err=$ac_c_preproc_warn_flag
     2770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2771  else
     2772    ac_cpp_err=
     2773  fi
     2774else
     2775  ac_cpp_err=yes
     2776fi
     2777if test -z "$ac_cpp_err"; then
     2778  # Broken: success on invalid input.
     2779continue
     2780else
     2781  echo "$as_me: failed program was:" >&5
     2782sed 's/^/| /' conftest.$ac_ext >&5
     2783
     2784  # Passes both tests.
     2785ac_preproc_ok=:
     2786break
     2787fi
     2788rm -f conftest.err conftest.$ac_ext
     2789
     2790done
     2791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2792rm -f conftest.err conftest.$ac_ext
     2793if $ac_preproc_ok; then
     2794  break
     2795fi
     2796
     2797    done
     2798    ac_cv_prog_CPP=$CPP
     2799
     2800fi
     2801  CPP=$ac_cv_prog_CPP
     2802else
     2803  ac_cv_prog_CPP=$CPP
     2804fi
     2805echo "$as_me:$LINENO: result: $CPP" >&5
     2806echo "${ECHO_T}$CPP" >&6
     2807ac_preproc_ok=false
     2808for ac_c_preproc_warn_flag in '' yes
     2809do
     2810  # Use a header file that comes with gcc, so configuring glibc
     2811  # with a fresh cross-compiler works.
     2812  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2813  # <limits.h> exists even on freestanding compilers.
     2814  # On the NeXT, cc -E runs the code through the compiler's parser,
     2815  # not just through cpp. "Syntax error" is here to catch this case.
     2816  cat >conftest.$ac_ext <<_ACEOF
     2817/* confdefs.h.  */
     2818_ACEOF
     2819cat confdefs.h >>conftest.$ac_ext
     2820cat >>conftest.$ac_ext <<_ACEOF
     2821/* end confdefs.h.  */
     2822#ifdef __STDC__
     2823# include <limits.h>
     2824#else
     2825# include <assert.h>
     2826#endif
     2827                     Syntax error
     2828_ACEOF
     2829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2830  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2831  ac_status=$?
     2832  grep -v '^ *+' conftest.er1 >conftest.err
     2833  rm -f conftest.er1
     2834  cat conftest.err >&5
     2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2836  (exit $ac_status); } >/dev/null; then
     2837  if test -s conftest.err; then
     2838    ac_cpp_err=$ac_c_preproc_warn_flag
     2839    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2840  else
     2841    ac_cpp_err=
     2842  fi
     2843else
     2844  ac_cpp_err=yes
     2845fi
     2846if test -z "$ac_cpp_err"; then
     2847  :
     2848else
     2849  echo "$as_me: failed program was:" >&5
     2850sed 's/^/| /' conftest.$ac_ext >&5
     2851
     2852  # Broken: fails on valid input.
     2853continue
     2854fi
     2855rm -f conftest.err conftest.$ac_ext
     2856
     2857  # OK, works on sane cases.  Now check whether non-existent headers
     2858  # can be detected and how.
     2859  cat >conftest.$ac_ext <<_ACEOF
     2860/* confdefs.h.  */
     2861_ACEOF
     2862cat confdefs.h >>conftest.$ac_ext
     2863cat >>conftest.$ac_ext <<_ACEOF
     2864/* end confdefs.h.  */
     2865#include <ac_nonexistent.h>
     2866_ACEOF
     2867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2869  ac_status=$?
     2870  grep -v '^ *+' conftest.er1 >conftest.err
     2871  rm -f conftest.er1
     2872  cat conftest.err >&5
     2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2874  (exit $ac_status); } >/dev/null; then
     2875  if test -s conftest.err; then
     2876    ac_cpp_err=$ac_c_preproc_warn_flag
     2877    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     2878  else
     2879    ac_cpp_err=
     2880  fi
     2881else
     2882  ac_cpp_err=yes
     2883fi
     2884if test -z "$ac_cpp_err"; then
     2885  # Broken: success on invalid input.
     2886continue
     2887else
     2888  echo "$as_me: failed program was:" >&5
     2889sed 's/^/| /' conftest.$ac_ext >&5
     2890
     2891  # Passes both tests.
     2892ac_preproc_ok=:
     2893break
     2894fi
     2895rm -f conftest.err conftest.$ac_ext
     2896
     2897done
     2898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2899rm -f conftest.err conftest.$ac_ext
     2900if $ac_preproc_ok; then
     2901  :
     2902else
     2903  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     2904See \`config.log' for more details." >&5
     2905echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     2906See \`config.log' for more details." >&2;}
     2907   { (exit 1); exit 1; }; }
     2908fi
     2909
     2910ac_ext=c
     2911ac_cpp='$CPP $CPPFLAGS'
     2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2915
     2916
     2917    # Find a good install program.  We prefer a C program (faster),
    22792918# so one script is as good as another.  But avoid the broken or
    22802919# incompatible versions:
     
    23562995
    23572996
    2358 #--------------------------------------------------------------------
    2359 # Checks to see if the make program sets the $MAKE variable.
    2360 #--------------------------------------------------------------------
    2361 
    2362 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2997    #--------------------------------------------------------------------
     2998    # Checks to see if the make program sets the $MAKE variable.
     2999    #--------------------------------------------------------------------
     3000
     3001    echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    23633002echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    23643003set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     
    23903029
    23913030
    2392 #--------------------------------------------------------------------
    2393 # Find ranlib
    2394 #--------------------------------------------------------------------
    2395 
    2396 if test -n "$ac_tool_prefix"; then
     3031    #--------------------------------------------------------------------
     3032    # Find ranlib
     3033    #--------------------------------------------------------------------
     3034
     3035    if test -n "$ac_tool_prefix"; then
    23973036  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    23983037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     
    24753114
    24763115
    2477 #--------------------------------------------------------------------
    2478 # This macro performs additional compiler tests.
    2479 #--------------------------------------------------------------------
    2480 
    2481 # Make sure we can run config.sub.
    2482 $ac_config_sub sun4 >/dev/null 2>&1 ||
    2483   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    2484 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    2485    { (exit 1); exit 1; }; }
    2486 
    2487 echo "$as_me:$LINENO: checking build system type" >&5
    2488 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    2489 if test "${ac_cv_build+set}" = set; then
     3116    #--------------------------------------------------------------------
     3117    # Determines the correct binary file extension (.o, .obj, .exe etc.)
     3118    #--------------------------------------------------------------------
     3119
     3120
     3121
     3122
     3123
     3124
     3125echo "$as_me:$LINENO: checking for egrep" >&5
     3126echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3127if test "${ac_cv_prog_egrep+set}" = set; then
    24903128  echo $ECHO_N "(cached) $ECHO_C" >&6
    24913129else
    2492   ac_cv_build_alias=$build_alias
    2493 test -z "$ac_cv_build_alias" &&
    2494   ac_cv_build_alias=`$ac_config_guess`
    2495 test -z "$ac_cv_build_alias" &&
    2496   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    2497 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    2498    { (exit 1); exit 1; }; }
    2499 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    2500   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    2501 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    2502    { (exit 1); exit 1; }; }
    2503 
    2504 fi
    2505 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    2506 echo "${ECHO_T}$ac_cv_build" >&6
    2507 build=$ac_cv_build
    2508 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2509 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2510 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    2511 
    2512 
    2513 echo "$as_me:$LINENO: checking host system type" >&5
    2514 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    2515 if test "${ac_cv_host+set}" = set; then
     3130  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3131    then ac_cv_prog_egrep='grep -E'
     3132    else ac_cv_prog_egrep='egrep'
     3133    fi
     3134fi
     3135echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3136echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3137 EGREP=$ac_cv_prog_egrep
     3138
     3139
     3140echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3141echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3142if test "${ac_cv_header_stdc+set}" = set; then
    25163143  echo $ECHO_N "(cached) $ECHO_C" >&6
    25173144else
    2518   ac_cv_host_alias=$host_alias
    2519 test -z "$ac_cv_host_alias" &&
    2520   ac_cv_host_alias=$ac_cv_build_alias
    2521 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    2522   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    2523 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    2524    { (exit 1); exit 1; }; }
    2525 
    2526 fi
    2527 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    2528 echo "${ECHO_T}$ac_cv_host" >&6
    2529 host=$ac_cv_host
    2530 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    2531 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    2532 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    2533 
    2534 
    2535 case $host_os in
    2536   *cygwin* ) CYGWIN=yes;;
    2537          * ) CYGWIN=no;;
     3145  cat >conftest.$ac_ext <<_ACEOF
     3146/* confdefs.h.  */
     3147_ACEOF
     3148cat confdefs.h >>conftest.$ac_ext
     3149cat >>conftest.$ac_ext <<_ACEOF
     3150/* end confdefs.h.  */
     3151#include <stdlib.h>
     3152#include <stdarg.h>
     3153#include <string.h>
     3154#include <float.h>
     3155
     3156int
     3157main ()
     3158{
     3159
     3160  ;
     3161  return 0;
     3162}
     3163_ACEOF
     3164rm -f conftest.$ac_objext
     3165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3166  (eval $ac_compile) 2>conftest.er1
     3167  ac_status=$?
     3168  grep -v '^ *+' conftest.er1 >conftest.err
     3169  rm -f conftest.er1
     3170  cat conftest.err >&5
     3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3172  (exit $ac_status); } &&
     3173         { ac_try='test -z "$ac_c_werror_flag"
     3174                         || test ! -s conftest.err'
     3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3176  (eval $ac_try) 2>&5
     3177  ac_status=$?
     3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3179  (exit $ac_status); }; } &&
     3180         { ac_try='test -s conftest.$ac_objext'
     3181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3182  (eval $ac_try) 2>&5
     3183  ac_status=$?
     3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3185  (exit $ac_status); }; }; then
     3186  ac_cv_header_stdc=yes
     3187else
     3188  echo "$as_me: failed program was:" >&5
     3189sed 's/^/| /' conftest.$ac_ext >&5
     3190
     3191ac_cv_header_stdc=no
     3192fi
     3193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3194
     3195if test $ac_cv_header_stdc = yes; then
     3196  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3197  cat >conftest.$ac_ext <<_ACEOF
     3198/* confdefs.h.  */
     3199_ACEOF
     3200cat confdefs.h >>conftest.$ac_ext
     3201cat >>conftest.$ac_ext <<_ACEOF
     3202/* end confdefs.h.  */
     3203#include <string.h>
     3204
     3205_ACEOF
     3206if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3207  $EGREP "memchr" >/dev/null 2>&1; then
     3208  :
     3209else
     3210  ac_cv_header_stdc=no
     3211fi
     3212rm -f conftest*
     3213
     3214fi
     3215
     3216if test $ac_cv_header_stdc = yes; then
     3217  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3218  cat >conftest.$ac_ext <<_ACEOF
     3219/* confdefs.h.  */
     3220_ACEOF
     3221cat confdefs.h >>conftest.$ac_ext
     3222cat >>conftest.$ac_ext <<_ACEOF
     3223/* end confdefs.h.  */
     3224#include <stdlib.h>
     3225
     3226_ACEOF
     3227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3228  $EGREP "free" >/dev/null 2>&1; then
     3229  :
     3230else
     3231  ac_cv_header_stdc=no
     3232fi
     3233rm -f conftest*
     3234
     3235fi
     3236
     3237if test $ac_cv_header_stdc = yes; then
     3238  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3239  if test "$cross_compiling" = yes; then
     3240  :
     3241else
     3242  cat >conftest.$ac_ext <<_ACEOF
     3243/* confdefs.h.  */
     3244_ACEOF
     3245cat confdefs.h >>conftest.$ac_ext
     3246cat >>conftest.$ac_ext <<_ACEOF
     3247/* end confdefs.h.  */
     3248#include <ctype.h>
     3249#if ((' ' & 0x0FF) == 0x020)
     3250# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3251# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3252#else
     3253# define ISLOWER(c) \
     3254                   (('a' <= (c) && (c) <= 'i') \
     3255                     || ('j' <= (c) && (c) <= 'r') \
     3256                     || ('s' <= (c) && (c) <= 'z'))
     3257# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3258#endif
     3259
     3260#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3261int
     3262main ()
     3263{
     3264  int i;
     3265  for (i = 0; i < 256; i++)
     3266    if (XOR (islower (i), ISLOWER (i))
     3267        || toupper (i) != TOUPPER (i))
     3268      exit(2);
     3269  exit (0);
     3270}
     3271_ACEOF
     3272rm -f conftest$ac_exeext
     3273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3274  (eval $ac_link) 2>&5
     3275  ac_status=$?
     3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3277  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3279  (eval $ac_try) 2>&5
     3280  ac_status=$?
     3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3282  (exit $ac_status); }; }; then
     3283  :
     3284else
     3285  echo "$as_me: program exited with status $ac_status" >&5
     3286echo "$as_me: failed program was:" >&5
     3287sed 's/^/| /' conftest.$ac_ext >&5
     3288
     3289( exit $ac_status )
     3290ac_cv_header_stdc=no
     3291fi
     3292rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3293fi
     3294fi
     3295fi
     3296echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3297echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3298if test $ac_cv_header_stdc = yes; then
     3299
     3300cat >>confdefs.h <<\_ACEOF
     3301#define STDC_HEADERS 1
     3302_ACEOF
     3303
     3304fi
     3305
     3306# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3307
     3308
     3309
     3310
     3311
     3312
     3313
     3314
     3315
     3316for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3317                  inttypes.h stdint.h unistd.h
     3318do
     3319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3320echo "$as_me:$LINENO: checking for $ac_header" >&5
     3321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3322if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3323  echo $ECHO_N "(cached) $ECHO_C" >&6
     3324else
     3325  cat >conftest.$ac_ext <<_ACEOF
     3326/* confdefs.h.  */
     3327_ACEOF
     3328cat confdefs.h >>conftest.$ac_ext
     3329cat >>conftest.$ac_ext <<_ACEOF
     3330/* end confdefs.h.  */
     3331$ac_includes_default
     3332
     3333#include <$ac_header>
     3334_ACEOF
     3335rm -f conftest.$ac_objext
     3336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3337  (eval $ac_compile) 2>conftest.er1
     3338  ac_status=$?
     3339  grep -v '^ *+' conftest.er1 >conftest.err
     3340  rm -f conftest.er1
     3341  cat conftest.err >&5
     3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3343  (exit $ac_status); } &&
     3344         { ac_try='test -z "$ac_c_werror_flag"
     3345                         || test ! -s conftest.err'
     3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3347  (eval $ac_try) 2>&5
     3348  ac_status=$?
     3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3350  (exit $ac_status); }; } &&
     3351         { ac_try='test -s conftest.$ac_objext'
     3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3353  (eval $ac_try) 2>&5
     3354  ac_status=$?
     3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3356  (exit $ac_status); }; }; then
     3357  eval "$as_ac_Header=yes"
     3358else
     3359  echo "$as_me: failed program was:" >&5
     3360sed 's/^/| /' conftest.$ac_ext >&5
     3361
     3362eval "$as_ac_Header=no"
     3363fi
     3364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3365fi
     3366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3368if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3369  cat >>confdefs.h <<_ACEOF
     3370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3371_ACEOF
     3372
     3373fi
     3374
     3375done
     3376
     3377
     3378
     3379    # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
     3380
     3381
     3382    #------------------------------------------------------------------------
     3383    # If we're using GCC, see if the compiler understands -pipe. If so, use it.
     3384    # It makes compiling go faster.  (This is only a performance feature.)
     3385    #------------------------------------------------------------------------
     3386
     3387    if test -z "$no_pipe" -a -n "$GCC"; then
     3388        echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5
     3389echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6
     3390        OLDCC="$CC"
     3391        CC="$CC -pipe"
     3392        cat >conftest.$ac_ext <<_ACEOF
     3393/* confdefs.h.  */
     3394_ACEOF
     3395cat confdefs.h >>conftest.$ac_ext
     3396cat >>conftest.$ac_ext <<_ACEOF
     3397/* end confdefs.h.  */
     3398
     3399int
     3400main ()
     3401{
     3402
     3403  ;
     3404  return 0;
     3405}
     3406_ACEOF
     3407rm -f conftest.$ac_objext
     3408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3409  (eval $ac_compile) 2>conftest.er1
     3410  ac_status=$?
     3411  grep -v '^ *+' conftest.er1 >conftest.err
     3412  rm -f conftest.er1
     3413  cat conftest.err >&5
     3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3415  (exit $ac_status); } &&
     3416         { ac_try='test -z "$ac_c_werror_flag"
     3417                         || test ! -s conftest.err'
     3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3419  (eval $ac_try) 2>&5
     3420  ac_status=$?
     3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3422  (exit $ac_status); }; } &&
     3423         { ac_try='test -s conftest.$ac_objext'
     3424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3425  (eval $ac_try) 2>&5
     3426  ac_status=$?
     3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3428  (exit $ac_status); }; }; then
     3429  echo "$as_me:$LINENO: result: yes" >&5
     3430echo "${ECHO_T}yes" >&6
     3431else
     3432  echo "$as_me: failed program was:" >&5
     3433sed 's/^/| /' conftest.$ac_ext >&5
     3434
     3435CC="$OLDCC"
     3436            echo "$as_me:$LINENO: result: no" >&5
     3437echo "${ECHO_T}no" >&6
     3438fi
     3439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3440    fi
     3441
     3442    #--------------------------------------------------------------------
     3443    # Common compiler flag setup
     3444    #--------------------------------------------------------------------
     3445
     3446    echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
     3447echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
     3448if test "${ac_cv_c_bigendian+set}" = set; then
     3449  echo $ECHO_N "(cached) $ECHO_C" >&6
     3450else
     3451  # See if sys/param.h defines the BYTE_ORDER macro.
     3452cat >conftest.$ac_ext <<_ACEOF
     3453/* confdefs.h.  */
     3454_ACEOF
     3455cat confdefs.h >>conftest.$ac_ext
     3456cat >>conftest.$ac_ext <<_ACEOF
     3457/* end confdefs.h.  */
     3458#include <sys/types.h>
     3459#include <sys/param.h>
     3460
     3461int
     3462main ()
     3463{
     3464#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
     3465 bogus endian macros
     3466#endif
     3467
     3468  ;
     3469  return 0;
     3470}
     3471_ACEOF
     3472rm -f conftest.$ac_objext
     3473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3474  (eval $ac_compile) 2>conftest.er1
     3475  ac_status=$?
     3476  grep -v '^ *+' conftest.er1 >conftest.err
     3477  rm -f conftest.er1
     3478  cat conftest.err >&5
     3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3480  (exit $ac_status); } &&
     3481         { ac_try='test -z "$ac_c_werror_flag"
     3482                         || test ! -s conftest.err'
     3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3484  (eval $ac_try) 2>&5
     3485  ac_status=$?
     3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3487  (exit $ac_status); }; } &&
     3488         { ac_try='test -s conftest.$ac_objext'
     3489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3490  (eval $ac_try) 2>&5
     3491  ac_status=$?
     3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3493  (exit $ac_status); }; }; then
     3494  # It does; now see whether it defined to BIG_ENDIAN or not.
     3495cat >conftest.$ac_ext <<_ACEOF
     3496/* confdefs.h.  */
     3497_ACEOF
     3498cat confdefs.h >>conftest.$ac_ext
     3499cat >>conftest.$ac_ext <<_ACEOF
     3500/* end confdefs.h.  */
     3501#include <sys/types.h>
     3502#include <sys/param.h>
     3503
     3504int
     3505main ()
     3506{
     3507#if BYTE_ORDER != BIG_ENDIAN
     3508 not big endian
     3509#endif
     3510
     3511  ;
     3512  return 0;
     3513}
     3514_ACEOF
     3515rm -f conftest.$ac_objext
     3516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3517  (eval $ac_compile) 2>conftest.er1
     3518  ac_status=$?
     3519  grep -v '^ *+' conftest.er1 >conftest.err
     3520  rm -f conftest.er1
     3521  cat conftest.err >&5
     3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3523  (exit $ac_status); } &&
     3524         { ac_try='test -z "$ac_c_werror_flag"
     3525                         || test ! -s conftest.err'
     3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3527  (eval $ac_try) 2>&5
     3528  ac_status=$?
     3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3530  (exit $ac_status); }; } &&
     3531         { ac_try='test -s conftest.$ac_objext'
     3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3533  (eval $ac_try) 2>&5
     3534  ac_status=$?
     3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3536  (exit $ac_status); }; }; then
     3537  ac_cv_c_bigendian=yes
     3538else
     3539  echo "$as_me: failed program was:" >&5
     3540sed 's/^/| /' conftest.$ac_ext >&5
     3541
     3542ac_cv_c_bigendian=no
     3543fi
     3544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3545else
     3546  echo "$as_me: failed program was:" >&5
     3547sed 's/^/| /' conftest.$ac_ext >&5
     3548
     3549# It does not; compile a test program.
     3550if test "$cross_compiling" = yes; then
     3551  # try to guess the endianness by grepping values into an object file
     3552  ac_cv_c_bigendian=unknown
     3553  cat >conftest.$ac_ext <<_ACEOF
     3554/* confdefs.h.  */
     3555_ACEOF
     3556cat confdefs.h >>conftest.$ac_ext
     3557cat >>conftest.$ac_ext <<_ACEOF
     3558/* end confdefs.h.  */
     3559short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     3560short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     3561void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
     3562short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     3563short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     3564void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
     3565int
     3566main ()
     3567{
     3568 _ascii (); _ebcdic ();
     3569  ;
     3570  return 0;
     3571}
     3572_ACEOF
     3573rm -f conftest.$ac_objext
     3574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3575  (eval $ac_compile) 2>conftest.er1
     3576  ac_status=$?
     3577  grep -v '^ *+' conftest.er1 >conftest.err
     3578  rm -f conftest.er1
     3579  cat conftest.err >&5
     3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3581  (exit $ac_status); } &&
     3582         { ac_try='test -z "$ac_c_werror_flag"
     3583                         || test ! -s conftest.err'
     3584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3585  (eval $ac_try) 2>&5
     3586  ac_status=$?
     3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3588  (exit $ac_status); }; } &&
     3589         { ac_try='test -s conftest.$ac_objext'
     3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3591  (eval $ac_try) 2>&5
     3592  ac_status=$?
     3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3594  (exit $ac_status); }; }; then
     3595  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
     3596  ac_cv_c_bigendian=yes
     3597fi
     3598if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     3599  if test "$ac_cv_c_bigendian" = unknown; then
     3600    ac_cv_c_bigendian=no
     3601  else
     3602    # finding both strings is unlikely to happen, but who knows?
     3603    ac_cv_c_bigendian=unknown
     3604  fi
     3605fi
     3606else
     3607  echo "$as_me: failed program was:" >&5
     3608sed 's/^/| /' conftest.$ac_ext >&5
     3609
     3610fi
     3611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3612else
     3613  cat >conftest.$ac_ext <<_ACEOF
     3614/* confdefs.h.  */
     3615_ACEOF
     3616cat confdefs.h >>conftest.$ac_ext
     3617cat >>conftest.$ac_ext <<_ACEOF
     3618/* end confdefs.h.  */
     3619int
     3620main ()
     3621{
     3622  /* Are we little or big endian?  From Harbison&Steele.  */
     3623  union
     3624  {
     3625    long l;
     3626    char c[sizeof (long)];
     3627  } u;
     3628  u.l = 1;
     3629  exit (u.c[sizeof (long) - 1] == 1);
     3630}
     3631_ACEOF
     3632rm -f conftest$ac_exeext
     3633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3634  (eval $ac_link) 2>&5
     3635  ac_status=$?
     3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3637  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3639  (eval $ac_try) 2>&5
     3640  ac_status=$?
     3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3642  (exit $ac_status); }; }; then
     3643  ac_cv_c_bigendian=no
     3644else
     3645  echo "$as_me: program exited with status $ac_status" >&5
     3646echo "$as_me: failed program was:" >&5
     3647sed 's/^/| /' conftest.$ac_ext >&5
     3648
     3649( exit $ac_status )
     3650ac_cv_c_bigendian=yes
     3651fi
     3652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3653fi
     3654fi
     3655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3656fi
     3657echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
     3658echo "${ECHO_T}$ac_cv_c_bigendian" >&6
     3659case $ac_cv_c_bigendian in
     3660  yes)
     3661
     3662cat >>confdefs.h <<\_ACEOF
     3663#define WORDS_BIGENDIAN 1
     3664_ACEOF
     3665 ;;
     3666  no)
     3667     ;;
     3668  *)
     3669    { { echo "$as_me:$LINENO: error: unknown endianness
     3670presetting ac_cv_c_bigendian=no (or yes) will help" >&5
     3671echo "$as_me: error: unknown endianness
     3672presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
     3673   { (exit 1); exit 1; }; } ;;
    25383674esac
    25393675
    2540 
    2541 #--------------------------------------------------------------------
    2542 # Determines the correct binary file extension (.o, .obj, .exe etc.)
    2543 #--------------------------------------------------------------------
    2544 
    2545 
    2546 
    2547 
    2548 #--------------------------------------------------------------------
    2549 # "cygpath" is used on windows to generate native path names for include
    2550 # files.
    2551 # These variables should only be used with the compiler and linker since
    2552 # they generate native path names.
    2553 #
    2554 # Unix tclConfig.sh points SRC_DIR at the top-level directory of
    2555 # the Tcl sources, while the Windows tclConfig.sh points SRC_DIR at
    2556 # the win subdirectory.  Hence the different usages of SRC_DIR below.
    2557 #
    2558 # This must be done before calling SC_PUBLIC_TCL_HEADERS
    2559 #--------------------------------------------------------------------
    2560 
    2561 case "`uname -s`" in
    2562     *win32* | *WIN32* | *CYGWIN_NT*)
    2563         CYGPATH="cygpath -w"
     3676    if test "${TEA_PLATFORM}" = "unix" ; then
     3677
     3678    #--------------------------------------------------------------------
     3679    # On a few very rare systems, all of the libm.a stuff is
     3680    # already in libc.a.  Set compiler flags accordingly.
     3681    # Also, Linux requires the "ieee" library for math to work
     3682    # right (and it must appear before "-lm").
     3683    #--------------------------------------------------------------------
     3684
     3685    echo "$as_me:$LINENO: checking for sin" >&5
     3686echo $ECHO_N "checking for sin... $ECHO_C" >&6
     3687if test "${ac_cv_func_sin+set}" = set; then
     3688  echo $ECHO_N "(cached) $ECHO_C" >&6
     3689else
     3690  cat >conftest.$ac_ext <<_ACEOF
     3691/* confdefs.h.  */
     3692_ACEOF
     3693cat confdefs.h >>conftest.$ac_ext
     3694cat >>conftest.$ac_ext <<_ACEOF
     3695/* end confdefs.h.  */
     3696/* Define sin to an innocuous variant, in case <limits.h> declares sin.
     3697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     3698#define sin innocuous_sin
     3699
     3700/* System header to define __stub macros and hopefully few prototypes,
     3701    which can conflict with char sin (); below.
     3702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3703    <limits.h> exists even on freestanding compilers.  */
     3704
     3705#ifdef __STDC__
     3706# include <limits.h>
     3707#else
     3708# include <assert.h>
     3709#endif
     3710
     3711#undef sin
     3712
     3713/* Override any gcc2 internal prototype to avoid an error.  */
     3714#ifdef __cplusplus
     3715extern "C"
     3716{
     3717#endif
     3718/* We use char because int might match the return type of a gcc2
     3719   builtin and then its argument prototype would still apply.  */
     3720char sin ();
     3721/* The GNU C library defines this for functions which it implements
     3722    to always fail with ENOSYS.  Some functions are actually named
     3723    something starting with __ and the normal name is an alias.  */
     3724#if defined (__stub_sin) || defined (__stub___sin)
     3725choke me
     3726#else
     3727char (*f) () = sin;
     3728#endif
     3729#ifdef __cplusplus
     3730}
     3731#endif
     3732
     3733int
     3734main ()
     3735{
     3736return f != sin;
     3737  ;
     3738  return 0;
     3739}
     3740_ACEOF
     3741rm -f conftest.$ac_objext conftest$ac_exeext
     3742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3743  (eval $ac_link) 2>conftest.er1
     3744  ac_status=$?
     3745  grep -v '^ *+' conftest.er1 >conftest.err
     3746  rm -f conftest.er1
     3747  cat conftest.err >&5
     3748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3749  (exit $ac_status); } &&
     3750         { ac_try='test -z "$ac_c_werror_flag"
     3751                         || test ! -s conftest.err'
     3752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3753  (eval $ac_try) 2>&5
     3754  ac_status=$?
     3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3756  (exit $ac_status); }; } &&
     3757         { ac_try='test -s conftest$ac_exeext'
     3758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3759  (eval $ac_try) 2>&5
     3760  ac_status=$?
     3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3762  (exit $ac_status); }; }; then
     3763  ac_cv_func_sin=yes
     3764else
     3765  echo "$as_me: failed program was:" >&5
     3766sed 's/^/| /' conftest.$ac_ext >&5
     3767
     3768ac_cv_func_sin=no
     3769fi
     3770rm -f conftest.err conftest.$ac_objext \
     3771      conftest$ac_exeext conftest.$ac_ext
     3772fi
     3773echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
     3774echo "${ECHO_T}$ac_cv_func_sin" >&6
     3775if test $ac_cv_func_sin = yes; then
     3776  MATH_LIBS=""
     3777else
     3778  MATH_LIBS="-lm"
     3779fi
     3780
     3781    echo "$as_me:$LINENO: checking for main in -lieee" >&5
     3782echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6
     3783if test "${ac_cv_lib_ieee_main+set}" = set; then
     3784  echo $ECHO_N "(cached) $ECHO_C" >&6
     3785else
     3786  ac_check_lib_save_LIBS=$LIBS
     3787LIBS="-lieee  $LIBS"
     3788cat >conftest.$ac_ext <<_ACEOF
     3789/* confdefs.h.  */
     3790_ACEOF
     3791cat confdefs.h >>conftest.$ac_ext
     3792cat >>conftest.$ac_ext <<_ACEOF
     3793/* end confdefs.h.  */
     3794
     3795
     3796int
     3797main ()
     3798{
     3799main ();
     3800  ;
     3801  return 0;
     3802}
     3803_ACEOF
     3804rm -f conftest.$ac_objext conftest$ac_exeext
     3805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3806  (eval $ac_link) 2>conftest.er1
     3807  ac_status=$?
     3808  grep -v '^ *+' conftest.er1 >conftest.err
     3809  rm -f conftest.er1
     3810  cat conftest.err >&5
     3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3812  (exit $ac_status); } &&
     3813         { ac_try='test -z "$ac_c_werror_flag"
     3814                         || test ! -s conftest.err'
     3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3816  (eval $ac_try) 2>&5
     3817  ac_status=$?
     3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3819  (exit $ac_status); }; } &&
     3820         { ac_try='test -s conftest$ac_exeext'
     3821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3822  (eval $ac_try) 2>&5
     3823  ac_status=$?
     3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3825  (exit $ac_status); }; }; then
     3826  ac_cv_lib_ieee_main=yes
     3827else
     3828  echo "$as_me: failed program was:" >&5
     3829sed 's/^/| /' conftest.$ac_ext >&5
     3830
     3831ac_cv_lib_ieee_main=no
     3832fi
     3833rm -f conftest.err conftest.$ac_objext \
     3834      conftest$ac_exeext conftest.$ac_ext
     3835LIBS=$ac_check_lib_save_LIBS
     3836fi
     3837echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
     3838echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6
     3839if test $ac_cv_lib_ieee_main = yes; then
     3840  MATH_LIBS="-lieee $MATH_LIBS"
     3841fi
     3842
     3843
     3844    #--------------------------------------------------------------------
     3845    # Interactive UNIX requires -linet instead of -lsocket, plus it
     3846    # needs net/errno.h to define the socket-related error codes.
     3847    #--------------------------------------------------------------------
     3848
     3849    echo "$as_me:$LINENO: checking for main in -linet" >&5
     3850echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
     3851if test "${ac_cv_lib_inet_main+set}" = set; then
     3852  echo $ECHO_N "(cached) $ECHO_C" >&6
     3853else
     3854  ac_check_lib_save_LIBS=$LIBS
     3855LIBS="-linet  $LIBS"
     3856cat >conftest.$ac_ext <<_ACEOF
     3857/* confdefs.h.  */
     3858_ACEOF
     3859cat confdefs.h >>conftest.$ac_ext
     3860cat >>conftest.$ac_ext <<_ACEOF
     3861/* end confdefs.h.  */
     3862
     3863
     3864int
     3865main ()
     3866{
     3867main ();
     3868  ;
     3869  return 0;
     3870}
     3871_ACEOF
     3872rm -f conftest.$ac_objext conftest$ac_exeext
     3873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3874  (eval $ac_link) 2>conftest.er1
     3875  ac_status=$?
     3876  grep -v '^ *+' conftest.er1 >conftest.err
     3877  rm -f conftest.er1
     3878  cat conftest.err >&5
     3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3880  (exit $ac_status); } &&
     3881         { ac_try='test -z "$ac_c_werror_flag"
     3882                         || test ! -s conftest.err'
     3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3884  (eval $ac_try) 2>&5
     3885  ac_status=$?
     3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3887  (exit $ac_status); }; } &&
     3888         { ac_try='test -s conftest$ac_exeext'
     3889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3890  (eval $ac_try) 2>&5
     3891  ac_status=$?
     3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3893  (exit $ac_status); }; }; then
     3894  ac_cv_lib_inet_main=yes
     3895else
     3896  echo "$as_me: failed program was:" >&5
     3897sed 's/^/| /' conftest.$ac_ext >&5
     3898
     3899ac_cv_lib_inet_main=no
     3900fi
     3901rm -f conftest.err conftest.$ac_objext \
     3902      conftest$ac_exeext conftest.$ac_ext
     3903LIBS=$ac_check_lib_save_LIBS
     3904fi
     3905echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
     3906echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
     3907if test $ac_cv_lib_inet_main = yes; then
     3908  LIBS="$LIBS -linet"
     3909fi
     3910
     3911    if test "${ac_cv_header_net_errno_h+set}" = set; then
     3912  echo "$as_me:$LINENO: checking for net/errno.h" >&5
     3913echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
     3914if test "${ac_cv_header_net_errno_h+set}" = set; then
     3915  echo $ECHO_N "(cached) $ECHO_C" >&6
     3916fi
     3917echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
     3918echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
     3919else
     3920  # Is the header compilable?
     3921echo "$as_me:$LINENO: checking net/errno.h usability" >&5
     3922echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6
     3923cat >conftest.$ac_ext <<_ACEOF
     3924/* confdefs.h.  */
     3925_ACEOF
     3926cat confdefs.h >>conftest.$ac_ext
     3927cat >>conftest.$ac_ext <<_ACEOF
     3928/* end confdefs.h.  */
     3929$ac_includes_default
     3930#include <net/errno.h>
     3931_ACEOF
     3932rm -f conftest.$ac_objext
     3933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3934  (eval $ac_compile) 2>conftest.er1
     3935  ac_status=$?
     3936  grep -v '^ *+' conftest.er1 >conftest.err
     3937  rm -f conftest.er1
     3938  cat conftest.err >&5
     3939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3940  (exit $ac_status); } &&
     3941         { ac_try='test -z "$ac_c_werror_flag"
     3942                         || test ! -s conftest.err'
     3943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3944  (eval $ac_try) 2>&5
     3945  ac_status=$?
     3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3947  (exit $ac_status); }; } &&
     3948         { ac_try='test -s conftest.$ac_objext'
     3949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3950  (eval $ac_try) 2>&5
     3951  ac_status=$?
     3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3953  (exit $ac_status); }; }; then
     3954  ac_header_compiler=yes
     3955else
     3956  echo "$as_me: failed program was:" >&5
     3957sed 's/^/| /' conftest.$ac_ext >&5
     3958
     3959ac_header_compiler=no
     3960fi
     3961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     3963echo "${ECHO_T}$ac_header_compiler" >&6
     3964
     3965# Is the header present?
     3966echo "$as_me:$LINENO: checking net/errno.h presence" >&5
     3967echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6
     3968cat >conftest.$ac_ext <<_ACEOF
     3969/* confdefs.h.  */
     3970_ACEOF
     3971cat confdefs.h >>conftest.$ac_ext
     3972cat >>conftest.$ac_ext <<_ACEOF
     3973/* end confdefs.h.  */
     3974#include <net/errno.h>
     3975_ACEOF
     3976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3978  ac_status=$?
     3979  grep -v '^ *+' conftest.er1 >conftest.err
     3980  rm -f conftest.er1
     3981  cat conftest.err >&5
     3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3983  (exit $ac_status); } >/dev/null; then
     3984  if test -s conftest.err; then
     3985    ac_cpp_err=$ac_c_preproc_warn_flag
     3986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     3987  else
     3988    ac_cpp_err=
     3989  fi
     3990else
     3991  ac_cpp_err=yes
     3992fi
     3993if test -z "$ac_cpp_err"; then
     3994  ac_header_preproc=yes
     3995else
     3996  echo "$as_me: failed program was:" >&5
     3997sed 's/^/| /' conftest.$ac_ext >&5
     3998
     3999  ac_header_preproc=no
     4000fi
     4001rm -f conftest.err conftest.$ac_ext
     4002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4003echo "${ECHO_T}$ac_header_preproc" >&6
     4004
     4005# So?  What about this header?
     4006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4007  yes:no: )
     4008    { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4009echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4010    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
     4011echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
     4012    ac_header_preproc=yes
    25644013    ;;
    2565     *)
    2566         CYGPATH=echo
     4014  no:yes:* )
     4015    { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
     4016echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
     4017    { echo "$as_me:$LINENO: WARNING: net/errno.h:     check for missing prerequisite headers?" >&5
     4018echo "$as_me: WARNING: net/errno.h:     check for missing prerequisite headers?" >&2;}
     4019    { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
     4020echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
     4021    { echo "$as_me:$LINENO: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&5
     4022echo "$as_me: WARNING: net/errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4023    { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
     4024echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
     4025    { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
     4026echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
     4027    (
     4028      cat <<\_ASBOX
     4029## -------------------------------------- ##
     4030## Report this to the RapptureGUI lists.  ##
     4031## -------------------------------------- ##
     4032_ASBOX
     4033    ) |
     4034      sed "s/^/$as_me: WARNING:     /" >&2
    25674035    ;;
    25684036esac
    2569 
     4037echo "$as_me:$LINENO: checking for net/errno.h" >&5
     4038echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
     4039if test "${ac_cv_header_net_errno_h+set}" = set; then
     4040  echo $ECHO_N "(cached) $ECHO_C" >&6
     4041else
     4042  ac_cv_header_net_errno_h=$ac_header_preproc
     4043fi
     4044echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
     4045echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
     4046
     4047fi
     4048if test $ac_cv_header_net_errno_h = yes; then
     4049
     4050
     4051cat >>confdefs.h <<\_ACEOF
     4052#define HAVE_NET_ERRNO_H 1
     4053_ACEOF
     4054
     4055fi
     4056
     4057
     4058
     4059    #--------------------------------------------------------------------
     4060    #   Check for the existence of the -lsocket and -lnsl libraries.
     4061    #   The order here is important, so that they end up in the right
     4062    #   order in the command line generated by make.  Here are some
     4063    #   special considerations:
     4064    #   1. Use "connect" and "accept" to check for -lsocket, and
     4065    #      "gethostbyname" to check for -lnsl.
     4066    #   2. Use each function name only once:  can't redo a check because
     4067    #      autoconf caches the results of the last check and won't redo it.
     4068    #   3. Use -lnsl and -lsocket only if they supply procedures that
     4069    #      aren't already present in the normal libraries.  This is because
     4070    #      IRIX 5.2 has libraries, but they aren't needed and they're
     4071    #      bogus:  they goof up name resolution if used.
     4072    #   4. On some SVR4 systems, can't use -lsocket without -lnsl too.
     4073    #      To get around this problem, check for both libraries together
     4074    #      if -lsocket doesn't work by itself.
     4075    #--------------------------------------------------------------------
     4076
     4077    tcl_checkBoth=0
     4078    echo "$as_me:$LINENO: checking for connect" >&5
     4079echo $ECHO_N "checking for connect... $ECHO_C" >&6
     4080if test "${ac_cv_func_connect+set}" = set; then
     4081  echo $ECHO_N "(cached) $ECHO_C" >&6
     4082else
     4083  cat >conftest.$ac_ext <<_ACEOF
     4084/* confdefs.h.  */
     4085_ACEOF
     4086cat confdefs.h >>conftest.$ac_ext
     4087cat >>conftest.$ac_ext <<_ACEOF
     4088/* end confdefs.h.  */
     4089/* Define connect to an innocuous variant, in case <limits.h> declares connect.
     4090   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     4091#define connect innocuous_connect
     4092
     4093/* System header to define __stub macros and hopefully few prototypes,
     4094    which can conflict with char connect (); below.
     4095    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4096    <limits.h> exists even on freestanding compilers.  */
     4097
     4098#ifdef __STDC__
     4099# include <limits.h>
     4100#else
     4101# include <assert.h>
     4102#endif
     4103
     4104#undef connect
     4105
     4106/* Override any gcc2 internal prototype to avoid an error.  */
     4107#ifdef __cplusplus
     4108extern "C"
     4109{
     4110#endif
     4111/* We use char because int might match the return type of a gcc2
     4112   builtin and then its argument prototype would still apply.  */
     4113char connect ();
     4114/* The GNU C library defines this for functions which it implements
     4115    to always fail with ENOSYS.  Some functions are actually named
     4116    something starting with __ and the normal name is an alias.  */
     4117#if defined (__stub_connect) || defined (__stub___connect)
     4118choke me
     4119#else
     4120char (*f) () = connect;
     4121#endif
     4122#ifdef __cplusplus
     4123}
     4124#endif
     4125
     4126int
     4127main ()
     4128{
     4129return f != connect;
     4130  ;
     4131  return 0;
     4132}
     4133_ACEOF
     4134rm -f conftest.$ac_objext conftest$ac_exeext
     4135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4136  (eval $ac_link) 2>conftest.er1
     4137  ac_status=$?
     4138  grep -v '^ *+' conftest.er1 >conftest.err
     4139  rm -f conftest.er1
     4140  cat conftest.err >&5
     4141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4142  (exit $ac_status); } &&
     4143         { ac_try='test -z "$ac_c_werror_flag"
     4144                         || test ! -s conftest.err'
     4145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4146  (eval $ac_try) 2>&5
     4147  ac_status=$?
     4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4149  (exit $ac_status); }; } &&
     4150         { ac_try='test -s conftest$ac_exeext'
     4151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4152  (eval $ac_try) 2>&5
     4153  ac_status=$?
     4154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4155  (exit $ac_status); }; }; then
     4156  ac_cv_func_connect=yes
     4157else
     4158  echo "$as_me: failed program was:" >&5
     4159sed 's/^/| /' conftest.$ac_ext >&5
     4160
     4161ac_cv_func_connect=no
     4162fi
     4163rm -f conftest.err conftest.$ac_objext \
     4164      conftest$ac_exeext conftest.$ac_ext
     4165fi
     4166echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
     4167echo "${ECHO_T}$ac_cv_func_connect" >&6
     4168if test $ac_cv_func_connect = yes; then
     4169  tcl_checkSocket=0
     4170else
     4171  tcl_checkSocket=1
     4172fi
     4173
     4174    if test "$tcl_checkSocket" = 1; then
     4175        echo "$as_me:$LINENO: checking for setsockopt" >&5
     4176echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
     4177if test "${ac_cv_func_setsockopt+set}" = set; then
     4178  echo $ECHO_N "(cached) $ECHO_C" >&6
     4179else
     4180  cat >conftest.$ac_ext <<_ACEOF
     4181/* confdefs.h.  */
     4182_ACEOF
     4183cat confdefs.h >>conftest.$ac_ext
     4184cat >>conftest.$ac_ext <<_ACEOF
     4185/* end confdefs.h.  */
     4186/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
     4187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     4188#define setsockopt innocuous_setsockopt
     4189
     4190/* System header to define __stub macros and hopefully few prototypes,
     4191    which can conflict with char setsockopt (); below.
     4192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4193    <limits.h> exists even on freestanding compilers.  */
     4194
     4195#ifdef __STDC__
     4196# include <limits.h>
     4197#else
     4198# include <assert.h>
     4199#endif
     4200
     4201#undef setsockopt
     4202
     4203/* Override any gcc2 internal prototype to avoid an error.  */
     4204#ifdef __cplusplus
     4205extern "C"
     4206{
     4207#endif
     4208/* We use char because int might match the return type of a gcc2
     4209   builtin and then its argument prototype would still apply.  */
     4210char setsockopt ();
     4211/* The GNU C library defines this for functions which it implements
     4212    to always fail with ENOSYS.  Some functions are actually named
     4213    something starting with __ and the normal name is an alias.  */
     4214#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
     4215choke me
     4216#else
     4217char (*f) () = setsockopt;
     4218#endif
     4219#ifdef __cplusplus
     4220}
     4221#endif
     4222
     4223int
     4224main ()
     4225{
     4226return f != setsockopt;
     4227  ;
     4228  return 0;
     4229}
     4230_ACEOF
     4231rm -f conftest.$ac_objext conftest$ac_exeext
     4232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4233  (eval $ac_link) 2>conftest.er1
     4234  ac_status=$?
     4235  grep -v '^ *+' conftest.er1 >conftest.err
     4236  rm -f conftest.er1
     4237  cat conftest.err >&5
     4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4239  (exit $ac_status); } &&
     4240         { ac_try='test -z "$ac_c_werror_flag"
     4241                         || test ! -s conftest.err'
     4242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4243  (eval $ac_try) 2>&5
     4244  ac_status=$?
     4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4246  (exit $ac_status); }; } &&
     4247         { ac_try='test -s conftest$ac_exeext'
     4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4249  (eval $ac_try) 2>&5
     4250  ac_status=$?
     4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4252  (exit $ac_status); }; }; then
     4253  ac_cv_func_setsockopt=yes
     4254else
     4255  echo "$as_me: failed program was:" >&5
     4256sed 's/^/| /' conftest.$ac_ext >&5
     4257
     4258ac_cv_func_setsockopt=no
     4259fi
     4260rm -f conftest.err conftest.$ac_objext \
     4261      conftest$ac_exeext conftest.$ac_ext
     4262fi
     4263echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
     4264echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
     4265if test $ac_cv_func_setsockopt = yes; then
     4266  :
     4267else
     4268  echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
     4269echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
     4270if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
     4271  echo $ECHO_N "(cached) $ECHO_C" >&6
     4272else
     4273  ac_check_lib_save_LIBS=$LIBS
     4274LIBS="-lsocket  $LIBS"
     4275cat >conftest.$ac_ext <<_ACEOF
     4276/* confdefs.h.  */
     4277_ACEOF
     4278cat confdefs.h >>conftest.$ac_ext
     4279cat >>conftest.$ac_ext <<_ACEOF
     4280/* end confdefs.h.  */
     4281
     4282/* Override any gcc2 internal prototype to avoid an error.  */
     4283#ifdef __cplusplus
     4284extern "C"
     4285#endif
     4286/* We use char because int might match the return type of a gcc2
     4287   builtin and then its argument prototype would still apply.  */
     4288char setsockopt ();
     4289int
     4290main ()
     4291{
     4292setsockopt ();
     4293  ;
     4294  return 0;
     4295}
     4296_ACEOF
     4297rm -f conftest.$ac_objext conftest$ac_exeext
     4298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4299  (eval $ac_link) 2>conftest.er1
     4300  ac_status=$?
     4301  grep -v '^ *+' conftest.er1 >conftest.err
     4302  rm -f conftest.er1
     4303  cat conftest.err >&5
     4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4305  (exit $ac_status); } &&
     4306         { ac_try='test -z "$ac_c_werror_flag"
     4307                         || test ! -s conftest.err'
     4308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4309  (eval $ac_try) 2>&5
     4310  ac_status=$?
     4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4312  (exit $ac_status); }; } &&
     4313         { ac_try='test -s conftest$ac_exeext'
     4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4315  (eval $ac_try) 2>&5
     4316  ac_status=$?
     4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4318  (exit $ac_status); }; }; then
     4319  ac_cv_lib_socket_setsockopt=yes
     4320else
     4321  echo "$as_me: failed program was:" >&5
     4322sed 's/^/| /' conftest.$ac_ext >&5
     4323
     4324ac_cv_lib_socket_setsockopt=no
     4325fi
     4326rm -f conftest.err conftest.$ac_objext \
     4327      conftest$ac_exeext conftest.$ac_ext
     4328LIBS=$ac_check_lib_save_LIBS
     4329fi
     4330echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
     4331echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
     4332if test $ac_cv_lib_socket_setsockopt = yes; then
     4333  LIBS="$LIBS -lsocket"
     4334else
     4335  tcl_checkBoth=1
     4336fi
     4337
     4338fi
     4339
     4340    fi
     4341    if test "$tcl_checkBoth" = 1; then
     4342        tk_oldLibs=$LIBS
     4343        LIBS="$LIBS -lsocket -lnsl"
     4344        echo "$as_me:$LINENO: checking for accept" >&5
     4345echo $ECHO_N "checking for accept... $ECHO_C" >&6
     4346if test "${ac_cv_func_accept+set}" = set; then
     4347  echo $ECHO_N "(cached) $ECHO_C" >&6
     4348else
     4349  cat >conftest.$ac_ext <<_ACEOF
     4350/* confdefs.h.  */
     4351_ACEOF
     4352cat confdefs.h >>conftest.$ac_ext
     4353cat >>conftest.$ac_ext <<_ACEOF
     4354/* end confdefs.h.  */
     4355/* Define accept to an innocuous variant, in case <limits.h> declares accept.
     4356   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     4357#define accept innocuous_accept
     4358
     4359/* System header to define __stub macros and hopefully few prototypes,
     4360    which can conflict with char accept (); below.
     4361    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4362    <limits.h> exists even on freestanding compilers.  */
     4363
     4364#ifdef __STDC__
     4365# include <limits.h>
     4366#else
     4367# include <assert.h>
     4368#endif
     4369
     4370#undef accept
     4371
     4372/* Override any gcc2 internal prototype to avoid an error.  */
     4373#ifdef __cplusplus
     4374extern "C"
     4375{
     4376#endif
     4377/* We use char because int might match the return type of a gcc2
     4378   builtin and then its argument prototype would still apply.  */
     4379char accept ();
     4380/* The GNU C library defines this for functions which it implements
     4381    to always fail with ENOSYS.  Some functions are actually named
     4382    something starting with __ and the normal name is an alias.  */
     4383#if defined (__stub_accept) || defined (__stub___accept)
     4384choke me
     4385#else
     4386char (*f) () = accept;
     4387#endif
     4388#ifdef __cplusplus
     4389}
     4390#endif
     4391
     4392int
     4393main ()
     4394{
     4395return f != accept;
     4396  ;
     4397  return 0;
     4398}
     4399_ACEOF
     4400rm -f conftest.$ac_objext conftest$ac_exeext
     4401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4402  (eval $ac_link) 2>conftest.er1
     4403  ac_status=$?
     4404  grep -v '^ *+' conftest.er1 >conftest.err
     4405  rm -f conftest.er1
     4406  cat conftest.err >&5
     4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4408  (exit $ac_status); } &&
     4409         { ac_try='test -z "$ac_c_werror_flag"
     4410                         || test ! -s conftest.err'
     4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4412  (eval $ac_try) 2>&5
     4413  ac_status=$?
     4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4415  (exit $ac_status); }; } &&
     4416         { ac_try='test -s conftest$ac_exeext'
     4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4418  (eval $ac_try) 2>&5
     4419  ac_status=$?
     4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4421  (exit $ac_status); }; }; then
     4422  ac_cv_func_accept=yes
     4423else
     4424  echo "$as_me: failed program was:" >&5
     4425sed 's/^/| /' conftest.$ac_ext >&5
     4426
     4427ac_cv_func_accept=no
     4428fi
     4429rm -f conftest.err conftest.$ac_objext \
     4430      conftest$ac_exeext conftest.$ac_ext
     4431fi
     4432echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
     4433echo "${ECHO_T}$ac_cv_func_accept" >&6
     4434if test $ac_cv_func_accept = yes; then
     4435  tcl_checkNsl=0
     4436else
     4437  LIBS=$tk_oldLibs
     4438fi
     4439
     4440    fi
     4441    echo "$as_me:$LINENO: checking for gethostbyname" >&5
     4442echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
     4443if test "${ac_cv_func_gethostbyname+set}" = set; then
     4444  echo $ECHO_N "(cached) $ECHO_C" >&6
     4445else
     4446  cat >conftest.$ac_ext <<_ACEOF
     4447/* confdefs.h.  */
     4448_ACEOF
     4449cat confdefs.h >>conftest.$ac_ext
     4450cat >>conftest.$ac_ext <<_ACEOF
     4451/* end confdefs.h.  */
     4452/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
     4453   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
     4454#define gethostbyname innocuous_gethostbyname
     4455
     4456/* System header to define __stub macros and hopefully few prototypes,
     4457    which can conflict with char gethostbyname (); below.
     4458    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     4459    <limits.h> exists even on freestanding compilers.  */
     4460
     4461#ifdef __STDC__
     4462# include <limits.h>
     4463#else
     4464# include <assert.h>
     4465#endif
     4466
     4467#undef gethostbyname
     4468
     4469/* Override any gcc2 internal prototype to avoid an error.  */
     4470#ifdef __cplusplus
     4471extern "C"
     4472{
     4473#endif
     4474/* We use char because int might match the return type of a gcc2
     4475   builtin and then its argument prototype would still apply.  */
     4476char gethostbyname ();
     4477/* The GNU C library defines this for functions which it implements
     4478    to always fail with ENOSYS.  Some functions are actually named
     4479    something starting with __ and the normal name is an alias.  */
     4480#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
     4481choke me
     4482#else
     4483char (*f) () = gethostbyname;
     4484#endif
     4485#ifdef __cplusplus
     4486}
     4487#endif
     4488
     4489int
     4490main ()
     4491{
     4492return f != gethostbyname;
     4493  ;
     4494  return 0;
     4495}
     4496_ACEOF
     4497rm -f conftest.$ac_objext conftest$ac_exeext
     4498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4499  (eval $ac_link) 2>conftest.er1
     4500  ac_status=$?
     4501  grep -v '^ *+' conftest.er1 >conftest.err
     4502  rm -f conftest.er1
     4503  cat conftest.err >&5
     4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4505  (exit $ac_status); } &&
     4506         { ac_try='test -z "$ac_c_werror_flag"
     4507                         || test ! -s conftest.err'
     4508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4509  (eval $ac_try) 2>&5
     4510  ac_status=$?
     4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4512  (exit $ac_status); }; } &&
     4513         { ac_try='test -s conftest$ac_exeext'
     4514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4515  (eval $ac_try) 2>&5
     4516  ac_status=$?
     4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4518  (exit $ac_status); }; }; then
     4519  ac_cv_func_gethostbyname=yes
     4520else
     4521  echo "$as_me: failed program was:" >&5
     4522sed 's/^/| /' conftest.$ac_ext >&5
     4523
     4524ac_cv_func_gethostbyname=no
     4525fi
     4526rm -f conftest.err conftest.$ac_objext \
     4527      conftest$ac_exeext conftest.$ac_ext
     4528fi
     4529echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
     4530echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
     4531if test $ac_cv_func_gethostbyname = yes; then
     4532  :
     4533else
     4534  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
     4535echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
     4536if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
     4537  echo $ECHO_N "(cached) $ECHO_C" >&6
     4538else
     4539  ac_check_lib_save_LIBS=$LIBS
     4540LIBS="-lnsl  $LIBS"
     4541cat >conftest.$ac_ext <<_ACEOF
     4542/* confdefs.h.  */
     4543_ACEOF
     4544cat confdefs.h >>conftest.$ac_ext
     4545cat >>conftest.$ac_ext <<_ACEOF
     4546/* end confdefs.h.  */
     4547
     4548/* Override any gcc2 internal prototype to avoid an error.  */
     4549#ifdef __cplusplus
     4550extern "C"
     4551#endif
     4552/* We use char because int might match the return type of a gcc2
     4553   builtin and then its argument prototype would still apply.  */
     4554char gethostbyname ();
     4555int
     4556main ()
     4557{
     4558gethostbyname ();
     4559  ;
     4560  return 0;
     4561}
     4562_ACEOF
     4563rm -f conftest.$ac_objext conftest$ac_exeext
     4564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4565  (eval $ac_link) 2>conftest.er1
     4566  ac_status=$?
     4567  grep -v '^ *+' conftest.er1 >conftest.err
     4568  rm -f conftest.er1
     4569  cat conftest.err >&5
     4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4571  (exit $ac_status); } &&
     4572         { ac_try='test -z "$ac_c_werror_flag"
     4573                         || test ! -s conftest.err'
     4574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4575  (eval $ac_try) 2>&5
     4576  ac_status=$?
     4577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4578  (exit $ac_status); }; } &&
     4579         { ac_try='test -s conftest$ac_exeext'
     4580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4581  (eval $ac_try) 2>&5
     4582  ac_status=$?
     4583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4584  (exit $ac_status); }; }; then
     4585  ac_cv_lib_nsl_gethostbyname=yes
     4586else
     4587  echo "$as_me: failed program was:" >&5
     4588sed 's/^/| /' conftest.$ac_ext >&5
     4589
     4590ac_cv_lib_nsl_gethostbyname=no
     4591fi
     4592rm -f conftest.err conftest.$ac_objext \
     4593      conftest$ac_exeext conftest.$ac_ext
     4594LIBS=$ac_check_lib_save_LIBS
     4595fi
     4596echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
     4597echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
     4598if test $ac_cv_lib_nsl_gethostbyname = yes; then
     4599  LIBS="$LIBS -lnsl"
     4600fi
     4601
     4602fi
     4603
     4604
     4605    # Don't perform the eval of the libraries here because DL_LIBS
     4606    # won't be set until we call TEA_CONFIG_CFLAGS
     4607
     4608    TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
     4609
     4610
     4611
     4612
     4613    echo "$as_me:$LINENO: checking dirent.h" >&5
     4614echo $ECHO_N "checking dirent.h... $ECHO_C" >&6
     4615if test "${tcl_cv_dirent_h+set}" = set; then
     4616  echo $ECHO_N "(cached) $ECHO_C" >&6
     4617else
     4618  cat >conftest.$ac_ext <<_ACEOF
     4619/* confdefs.h.  */
     4620_ACEOF
     4621cat confdefs.h >>conftest.$ac_ext
     4622cat >>conftest.$ac_ext <<_ACEOF
     4623/* end confdefs.h.  */
     4624#include <sys/types.h>
     4625#include <dirent.h>
     4626int
     4627main ()
     4628{
     4629
     4630#ifndef _POSIX_SOURCE
     4631#   ifdef __Lynx__
     4632        /*
     4633         * Generate compilation error to make the test fail:  Lynx headers
     4634         * are only valid if really in the POSIX environment.
     4635         */
     4636
     4637        missing_procedure();
     4638#   endif
     4639#endif
     4640DIR *d;
     4641struct dirent *entryPtr;
     4642char *p;
     4643d = opendir("foobar");
     4644entryPtr = readdir(d);
     4645p = entryPtr->d_name;
     4646closedir(d);
     4647
     4648  ;
     4649  return 0;
     4650}
     4651_ACEOF
     4652rm -f conftest.$ac_objext conftest$ac_exeext
     4653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4654  (eval $ac_link) 2>conftest.er1
     4655  ac_status=$?
     4656  grep -v '^ *+' conftest.er1 >conftest.err
     4657  rm -f conftest.er1
     4658  cat conftest.err >&5
     4659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4660  (exit $ac_status); } &&
     4661         { ac_try='test -z "$ac_c_werror_flag"
     4662                         || test ! -s conftest.err'
     4663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4664  (eval $ac_try) 2>&5
     4665  ac_status=$?
     4666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4667  (exit $ac_status); }; } &&
     4668         { ac_try='test -s conftest$ac_exeext'
     4669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4670  (eval $ac_try) 2>&5
     4671  ac_status=$?
     4672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4673  (exit $ac_status); }; }; then
     4674  tcl_cv_dirent_h=yes
     4675else
     4676  echo "$as_me: failed program was:" >&5
     4677sed 's/^/| /' conftest.$ac_ext >&5
     4678
     4679tcl_cv_dirent_h=no
     4680fi
     4681rm -f conftest.err conftest.$ac_objext \
     4682      conftest$ac_exeext conftest.$ac_ext
     4683fi
     4684echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5
     4685echo "${ECHO_T}$tcl_cv_dirent_h" >&6
     4686
     4687    if test $tcl_cv_dirent_h = no; then
     4688
     4689cat >>confdefs.h <<\_ACEOF
     4690#define NO_DIRENT_H 1
     4691_ACEOF
     4692
     4693    fi
     4694
     4695    if test "${ac_cv_header_errno_h+set}" = set; then
     4696  echo "$as_me:$LINENO: checking for errno.h" >&5
     4697echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
     4698if test "${ac_cv_header_errno_h+set}" = set; then
     4699  echo $ECHO_N "(cached) $ECHO_C" >&6
     4700fi
     4701echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
     4702echo "${ECHO_T}$ac_cv_header_errno_h" >&6
     4703else
     4704  # Is the header compilable?
     4705echo "$as_me:$LINENO: checking errno.h usability" >&5
     4706echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6
     4707cat >conftest.$ac_ext <<_ACEOF
     4708/* confdefs.h.  */
     4709_ACEOF
     4710cat confdefs.h >>conftest.$ac_ext
     4711cat >>conftest.$ac_ext <<_ACEOF
     4712/* end confdefs.h.  */
     4713$ac_includes_default
     4714#include <errno.h>
     4715_ACEOF
     4716rm -f conftest.$ac_objext
     4717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4718  (eval $ac_compile) 2>conftest.er1
     4719  ac_status=$?
     4720  grep -v '^ *+' conftest.er1 >conftest.err
     4721  rm -f conftest.er1
     4722  cat conftest.err >&5
     4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4724  (exit $ac_status); } &&
     4725         { ac_try='test -z "$ac_c_werror_flag"
     4726                         || test ! -s conftest.err'
     4727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4728  (eval $ac_try) 2>&5
     4729  ac_status=$?
     4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4731  (exit $ac_status); }; } &&
     4732         { ac_try='test -s conftest.$ac_objext'
     4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4734  (eval $ac_try) 2>&5
     4735  ac_status=$?
     4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4737  (exit $ac_status); }; }; then
     4738  ac_header_compiler=yes
     4739else
     4740  echo "$as_me: failed program was:" >&5
     4741sed 's/^/| /' conftest.$ac_ext >&5
     4742
     4743ac_header_compiler=no
     4744fi
     4745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4747echo "${ECHO_T}$ac_header_compiler" >&6
     4748
     4749# Is the header present?
     4750echo "$as_me:$LINENO: checking errno.h presence" >&5
     4751echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6
     4752cat >conftest.$ac_ext <<_ACEOF
     4753/* confdefs.h.  */
     4754_ACEOF
     4755cat confdefs.h >>conftest.$ac_ext
     4756cat >>conftest.$ac_ext <<_ACEOF
     4757/* end confdefs.h.  */
     4758#include <errno.h>
     4759_ACEOF
     4760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4762  ac_status=$?
     4763  grep -v '^ *+' conftest.er1 >conftest.err
     4764  rm -f conftest.er1
     4765  cat conftest.err >&5
     4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4767  (exit $ac_status); } >/dev/null; then
     4768  if test -s conftest.err; then
     4769    ac_cpp_err=$ac_c_preproc_warn_flag
     4770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4771  else
     4772    ac_cpp_err=
     4773  fi
     4774else
     4775  ac_cpp_err=yes
     4776fi
     4777if test -z "$ac_cpp_err"; then
     4778  ac_header_preproc=yes
     4779else
     4780  echo "$as_me: failed program was:" >&5
     4781sed 's/^/| /' conftest.$ac_ext >&5
     4782
     4783  ac_header_preproc=no
     4784fi
     4785rm -f conftest.err conftest.$ac_ext
     4786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4787echo "${ECHO_T}$ac_header_preproc" >&6
     4788
     4789# So?  What about this header?
     4790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4791  yes:no: )
     4792    { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4793echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4794    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5
     4795echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;}
     4796    ac_header_preproc=yes
     4797    ;;
     4798  no:yes:* )
     4799    { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5
     4800echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;}
     4801    { echo "$as_me:$LINENO: WARNING: errno.h:     check for missing prerequisite headers?" >&5
     4802echo "$as_me: WARNING: errno.h:     check for missing prerequisite headers?" >&2;}
     4803    { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5
     4804echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;}
     4805    { echo "$as_me:$LINENO: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&5
     4806echo "$as_me: WARNING: errno.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4807    { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5
     4808echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;}
     4809    { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5
     4810echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;}
     4811    (
     4812      cat <<\_ASBOX
     4813## -------------------------------------- ##
     4814## Report this to the RapptureGUI lists.  ##
     4815## -------------------------------------- ##
     4816_ASBOX
     4817    ) |
     4818      sed "s/^/$as_me: WARNING:     /" >&2
     4819    ;;
     4820esac
     4821echo "$as_me:$LINENO: checking for errno.h" >&5
     4822echo $ECHO_N "checking for errno.h... $ECHO_C" >&6
     4823if test "${ac_cv_header_errno_h+set}" = set; then
     4824  echo $ECHO_N "(cached) $ECHO_C" >&6
     4825else
     4826  ac_cv_header_errno_h=$ac_header_preproc
     4827fi
     4828echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5
     4829echo "${ECHO_T}$ac_cv_header_errno_h" >&6
     4830
     4831fi
     4832if test $ac_cv_header_errno_h = yes; then
     4833  :
     4834else
     4835
     4836cat >>confdefs.h <<\_ACEOF
     4837#define NO_ERRNO_H 1
     4838_ACEOF
     4839
     4840fi
     4841
     4842
     4843    if test "${ac_cv_header_float_h+set}" = set; then
     4844  echo "$as_me:$LINENO: checking for float.h" >&5
     4845echo $ECHO_N "checking for float.h... $ECHO_C" >&6
     4846if test "${ac_cv_header_float_h+set}" = set; then
     4847  echo $ECHO_N "(cached) $ECHO_C" >&6
     4848fi
     4849echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
     4850echo "${ECHO_T}$ac_cv_header_float_h" >&6
     4851else
     4852  # Is the header compilable?
     4853echo "$as_me:$LINENO: checking float.h usability" >&5
     4854echo $ECHO_N "checking float.h usability... $ECHO_C" >&6
     4855cat >conftest.$ac_ext <<_ACEOF
     4856/* confdefs.h.  */
     4857_ACEOF
     4858cat confdefs.h >>conftest.$ac_ext
     4859cat >>conftest.$ac_ext <<_ACEOF
     4860/* end confdefs.h.  */
     4861$ac_includes_default
     4862#include <float.h>
     4863_ACEOF
     4864rm -f conftest.$ac_objext
     4865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4866  (eval $ac_compile) 2>conftest.er1
     4867  ac_status=$?
     4868  grep -v '^ *+' conftest.er1 >conftest.err
     4869  rm -f conftest.er1
     4870  cat conftest.err >&5
     4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4872  (exit $ac_status); } &&
     4873         { ac_try='test -z "$ac_c_werror_flag"
     4874                         || test ! -s conftest.err'
     4875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4876  (eval $ac_try) 2>&5
     4877  ac_status=$?
     4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4879  (exit $ac_status); }; } &&
     4880         { ac_try='test -s conftest.$ac_objext'
     4881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4882  (eval $ac_try) 2>&5
     4883  ac_status=$?
     4884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4885  (exit $ac_status); }; }; then
     4886  ac_header_compiler=yes
     4887else
     4888  echo "$as_me: failed program was:" >&5
     4889sed 's/^/| /' conftest.$ac_ext >&5
     4890
     4891ac_header_compiler=no
     4892fi
     4893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4895echo "${ECHO_T}$ac_header_compiler" >&6
     4896
     4897# Is the header present?
     4898echo "$as_me:$LINENO: checking float.h presence" >&5
     4899echo $ECHO_N "checking float.h presence... $ECHO_C" >&6
     4900cat >conftest.$ac_ext <<_ACEOF
     4901/* confdefs.h.  */
     4902_ACEOF
     4903cat confdefs.h >>conftest.$ac_ext
     4904cat >>conftest.$ac_ext <<_ACEOF
     4905/* end confdefs.h.  */
     4906#include <float.h>
     4907_ACEOF
     4908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4909  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4910  ac_status=$?
     4911  grep -v '^ *+' conftest.er1 >conftest.err
     4912  rm -f conftest.er1
     4913  cat conftest.err >&5
     4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4915  (exit $ac_status); } >/dev/null; then
     4916  if test -s conftest.err; then
     4917    ac_cpp_err=$ac_c_preproc_warn_flag
     4918    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     4919  else
     4920    ac_cpp_err=
     4921  fi
     4922else
     4923  ac_cpp_err=yes
     4924fi
     4925if test -z "$ac_cpp_err"; then
     4926  ac_header_preproc=yes
     4927else
     4928  echo "$as_me: failed program was:" >&5
     4929sed 's/^/| /' conftest.$ac_ext >&5
     4930
     4931  ac_header_preproc=no
     4932fi
     4933rm -f conftest.err conftest.$ac_ext
     4934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4935echo "${ECHO_T}$ac_header_preproc" >&6
     4936
     4937# So?  What about this header?
     4938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     4939  yes:no: )
     4940    { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
     4941echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4942    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
     4943echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
     4944    ac_header_preproc=yes
     4945    ;;
     4946  no:yes:* )
     4947    { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
     4948echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
     4949    { echo "$as_me:$LINENO: WARNING: float.h:     check for missing prerequisite headers?" >&5
     4950echo "$as_me: WARNING: float.h:     check for missing prerequisite headers?" >&2;}
     4951    { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
     4952echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
     4953    { echo "$as_me:$LINENO: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&5
     4954echo "$as_me: WARNING: float.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     4955    { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
     4956echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
     4957    { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
     4958echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
     4959    (
     4960      cat <<\_ASBOX
     4961## -------------------------------------- ##
     4962## Report this to the RapptureGUI lists.  ##
     4963## -------------------------------------- ##
     4964_ASBOX
     4965    ) |
     4966      sed "s/^/$as_me: WARNING:     /" >&2
     4967    ;;
     4968esac
     4969echo "$as_me:$LINENO: checking for float.h" >&5
     4970echo $ECHO_N "checking for float.h... $ECHO_C" >&6
     4971if test "${ac_cv_header_float_h+set}" = set; then
     4972  echo $ECHO_N "(cached) $ECHO_C" >&6
     4973else
     4974  ac_cv_header_float_h=$ac_header_preproc
     4975fi
     4976echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
     4977echo "${ECHO_T}$ac_cv_header_float_h" >&6
     4978
     4979fi
     4980if test $ac_cv_header_float_h = yes; then
     4981  :
     4982else
     4983
     4984cat >>confdefs.h <<\_ACEOF
     4985#define NO_FLOAT_H 1
     4986_ACEOF
     4987
     4988fi
     4989
     4990
     4991    if test "${ac_cv_header_values_h+set}" = set; then
     4992  echo "$as_me:$LINENO: checking for values.h" >&5
     4993echo $ECHO_N "checking for values.h... $ECHO_C" >&6
     4994if test "${ac_cv_header_values_h+set}" = set; then
     4995  echo $ECHO_N "(cached) $ECHO_C" >&6
     4996fi
     4997echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
     4998echo "${ECHO_T}$ac_cv_header_values_h" >&6
     4999else
     5000  # Is the header compilable?
     5001echo "$as_me:$LINENO: checking values.h usability" >&5
     5002echo $ECHO_N "checking values.h usability... $ECHO_C" >&6
     5003cat >conftest.$ac_ext <<_ACEOF
     5004/* confdefs.h.  */
     5005_ACEOF
     5006cat confdefs.h >>conftest.$ac_ext
     5007cat >>conftest.$ac_ext <<_ACEOF
     5008/* end confdefs.h.  */
     5009$ac_includes_default
     5010#include <values.h>
     5011_ACEOF
     5012rm -f conftest.$ac_objext
     5013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5014  (eval $ac_compile) 2>conftest.er1
     5015  ac_status=$?
     5016  grep -v '^ *+' conftest.er1 >conftest.err
     5017  rm -f conftest.er1
     5018  cat conftest.err >&5
     5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5020  (exit $ac_status); } &&
     5021         { ac_try='test -z "$ac_c_werror_flag"
     5022                         || test ! -s conftest.err'
     5023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5024  (eval $ac_try) 2>&5
     5025  ac_status=$?
     5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5027  (exit $ac_status); }; } &&
     5028         { ac_try='test -s conftest.$ac_objext'
     5029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5030  (eval $ac_try) 2>&5
     5031  ac_status=$?
     5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5033  (exit $ac_status); }; }; then
     5034  ac_header_compiler=yes
     5035else
     5036  echo "$as_me: failed program was:" >&5
     5037sed 's/^/| /' conftest.$ac_ext >&5
     5038
     5039ac_header_compiler=no
     5040fi
     5041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5042echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5043echo "${ECHO_T}$ac_header_compiler" >&6
     5044
     5045# Is the header present?
     5046echo "$as_me:$LINENO: checking values.h presence" >&5
     5047echo $ECHO_N "checking values.h presence... $ECHO_C" >&6
     5048cat >conftest.$ac_ext <<_ACEOF
     5049/* confdefs.h.  */
     5050_ACEOF
     5051cat confdefs.h >>conftest.$ac_ext
     5052cat >>conftest.$ac_ext <<_ACEOF
     5053/* end confdefs.h.  */
     5054#include <values.h>
     5055_ACEOF
     5056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5057  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5058  ac_status=$?
     5059  grep -v '^ *+' conftest.er1 >conftest.err
     5060  rm -f conftest.er1
     5061  cat conftest.err >&5
     5062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5063  (exit $ac_status); } >/dev/null; then
     5064  if test -s conftest.err; then
     5065    ac_cpp_err=$ac_c_preproc_warn_flag
     5066    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5067  else
     5068    ac_cpp_err=
     5069  fi
     5070else
     5071  ac_cpp_err=yes
     5072fi
     5073if test -z "$ac_cpp_err"; then
     5074  ac_header_preproc=yes
     5075else
     5076  echo "$as_me: failed program was:" >&5
     5077sed 's/^/| /' conftest.$ac_ext >&5
     5078
     5079  ac_header_preproc=no
     5080fi
     5081rm -f conftest.err conftest.$ac_ext
     5082echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5083echo "${ECHO_T}$ac_header_preproc" >&6
     5084
     5085# So?  What about this header?
     5086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5087  yes:no: )
     5088    { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5089echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5090    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5
     5091echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;}
     5092    ac_header_preproc=yes
     5093    ;;
     5094  no:yes:* )
     5095    { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5
     5096echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;}
     5097    { echo "$as_me:$LINENO: WARNING: values.h:     check for missing prerequisite headers?" >&5
     5098echo "$as_me: WARNING: values.h:     check for missing prerequisite headers?" >&2;}
     5099    { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5
     5100echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;}
     5101    { echo "$as_me:$LINENO: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&5
     5102echo "$as_me: WARNING: values.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5103    { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5
     5104echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;}
     5105    { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5
     5106echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;}
     5107    (
     5108      cat <<\_ASBOX
     5109## -------------------------------------- ##
     5110## Report this to the RapptureGUI lists.  ##
     5111## -------------------------------------- ##
     5112_ASBOX
     5113    ) |
     5114      sed "s/^/$as_me: WARNING:     /" >&2
     5115    ;;
     5116esac
     5117echo "$as_me:$LINENO: checking for values.h" >&5
     5118echo $ECHO_N "checking for values.h... $ECHO_C" >&6
     5119if test "${ac_cv_header_values_h+set}" = set; then
     5120  echo $ECHO_N "(cached) $ECHO_C" >&6
     5121else
     5122  ac_cv_header_values_h=$ac_header_preproc
     5123fi
     5124echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5
     5125echo "${ECHO_T}$ac_cv_header_values_h" >&6
     5126
     5127fi
     5128if test $ac_cv_header_values_h = yes; then
     5129  :
     5130else
     5131
     5132cat >>confdefs.h <<\_ACEOF
     5133#define NO_VALUES_H 1
     5134_ACEOF
     5135
     5136fi
     5137
     5138
     5139    if test "${ac_cv_header_limits_h+set}" = set; then
     5140  echo "$as_me:$LINENO: checking for limits.h" >&5
     5141echo $ECHO_N "checking for limits.h... $ECHO_C" >&6
     5142if test "${ac_cv_header_limits_h+set}" = set; then
     5143  echo $ECHO_N "(cached) $ECHO_C" >&6
     5144fi
     5145echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
     5146echo "${ECHO_T}$ac_cv_header_limits_h" >&6
     5147else
     5148  # Is the header compilable?
     5149echo "$as_me:$LINENO: checking limits.h usability" >&5
     5150echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6
     5151cat >conftest.$ac_ext <<_ACEOF
     5152/* confdefs.h.  */
     5153_ACEOF
     5154cat confdefs.h >>conftest.$ac_ext
     5155cat >>conftest.$ac_ext <<_ACEOF
     5156/* end confdefs.h.  */
     5157$ac_includes_default
     5158#include <limits.h>
     5159_ACEOF
     5160rm -f conftest.$ac_objext
     5161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5162  (eval $ac_compile) 2>conftest.er1
     5163  ac_status=$?
     5164  grep -v '^ *+' conftest.er1 >conftest.err
     5165  rm -f conftest.er1
     5166  cat conftest.err >&5
     5167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5168  (exit $ac_status); } &&
     5169         { ac_try='test -z "$ac_c_werror_flag"
     5170                         || test ! -s conftest.err'
     5171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5172  (eval $ac_try) 2>&5
     5173  ac_status=$?
     5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5175  (exit $ac_status); }; } &&
     5176         { ac_try='test -s conftest.$ac_objext'
     5177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5178  (eval $ac_try) 2>&5
     5179  ac_status=$?
     5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5181  (exit $ac_status); }; }; then
     5182  ac_header_compiler=yes
     5183else
     5184  echo "$as_me: failed program was:" >&5
     5185sed 's/^/| /' conftest.$ac_ext >&5
     5186
     5187ac_header_compiler=no
     5188fi
     5189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5191echo "${ECHO_T}$ac_header_compiler" >&6
     5192
     5193# Is the header present?
     5194echo "$as_me:$LINENO: checking limits.h presence" >&5
     5195echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6
     5196cat >conftest.$ac_ext <<_ACEOF
     5197/* confdefs.h.  */
     5198_ACEOF
     5199cat confdefs.h >>conftest.$ac_ext
     5200cat >>conftest.$ac_ext <<_ACEOF
     5201/* end confdefs.h.  */
     5202#include <limits.h>
     5203_ACEOF
     5204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5205  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5206  ac_status=$?
     5207  grep -v '^ *+' conftest.er1 >conftest.err
     5208  rm -f conftest.er1
     5209  cat conftest.err >&5
     5210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5211  (exit $ac_status); } >/dev/null; then
     5212  if test -s conftest.err; then
     5213    ac_cpp_err=$ac_c_preproc_warn_flag
     5214    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5215  else
     5216    ac_cpp_err=
     5217  fi
     5218else
     5219  ac_cpp_err=yes
     5220fi
     5221if test -z "$ac_cpp_err"; then
     5222  ac_header_preproc=yes
     5223else
     5224  echo "$as_me: failed program was:" >&5
     5225sed 's/^/| /' conftest.$ac_ext >&5
     5226
     5227  ac_header_preproc=no
     5228fi
     5229rm -f conftest.err conftest.$ac_ext
     5230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5231echo "${ECHO_T}$ac_header_preproc" >&6
     5232
     5233# So?  What about this header?
     5234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5235  yes:no: )
     5236    { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5237echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5238    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
     5239echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
     5240    ac_header_preproc=yes
     5241    ;;
     5242  no:yes:* )
     5243    { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
     5244echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
     5245    { echo "$as_me:$LINENO: WARNING: limits.h:     check for missing prerequisite headers?" >&5
     5246echo "$as_me: WARNING: limits.h:     check for missing prerequisite headers?" >&2;}
     5247    { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
     5248echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
     5249    { echo "$as_me:$LINENO: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&5
     5250echo "$as_me: WARNING: limits.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5251    { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
     5252echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
     5253    { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
     5254echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
     5255    (
     5256      cat <<\_ASBOX
     5257## -------------------------------------- ##
     5258## Report this to the RapptureGUI lists.  ##
     5259## -------------------------------------- ##
     5260_ASBOX
     5261    ) |
     5262      sed "s/^/$as_me: WARNING:     /" >&2
     5263    ;;
     5264esac
     5265echo "$as_me:$LINENO: checking for limits.h" >&5
     5266echo $ECHO_N "checking for limits.h... $ECHO_C" >&6
     5267if test "${ac_cv_header_limits_h+set}" = set; then
     5268  echo $ECHO_N "(cached) $ECHO_C" >&6
     5269else
     5270  ac_cv_header_limits_h=$ac_header_preproc
     5271fi
     5272echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
     5273echo "${ECHO_T}$ac_cv_header_limits_h" >&6
     5274
     5275fi
     5276if test $ac_cv_header_limits_h = yes; then
     5277
     5278cat >>confdefs.h <<\_ACEOF
     5279#define HAVE_LIMITS_H 1
     5280_ACEOF
     5281
     5282else
     5283
     5284cat >>confdefs.h <<\_ACEOF
     5285#define NO_LIMITS_H 1
     5286_ACEOF
     5287
     5288fi
     5289
     5290
     5291    if test "${ac_cv_header_stdlib_h+set}" = set; then
     5292  echo "$as_me:$LINENO: checking for stdlib.h" >&5
     5293echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
     5294if test "${ac_cv_header_stdlib_h+set}" = set; then
     5295  echo $ECHO_N "(cached) $ECHO_C" >&6
     5296fi
     5297echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
     5298echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
     5299else
     5300  # Is the header compilable?
     5301echo "$as_me:$LINENO: checking stdlib.h usability" >&5
     5302echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
     5303cat >conftest.$ac_ext <<_ACEOF
     5304/* confdefs.h.  */
     5305_ACEOF
     5306cat confdefs.h >>conftest.$ac_ext
     5307cat >>conftest.$ac_ext <<_ACEOF
     5308/* end confdefs.h.  */
     5309$ac_includes_default
     5310#include <stdlib.h>
     5311_ACEOF
     5312rm -f conftest.$ac_objext
     5313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5314  (eval $ac_compile) 2>conftest.er1
     5315  ac_status=$?
     5316  grep -v '^ *+' conftest.er1 >conftest.err
     5317  rm -f conftest.er1
     5318  cat conftest.err >&5
     5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5320  (exit $ac_status); } &&
     5321         { ac_try='test -z "$ac_c_werror_flag"
     5322                         || test ! -s conftest.err'
     5323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5324  (eval $ac_try) 2>&5
     5325  ac_status=$?
     5326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5327  (exit $ac_status); }; } &&
     5328         { ac_try='test -s conftest.$ac_objext'
     5329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5330  (eval $ac_try) 2>&5
     5331  ac_status=$?
     5332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5333  (exit $ac_status); }; }; then
     5334  ac_header_compiler=yes
     5335else
     5336  echo "$as_me: failed program was:" >&5
     5337sed 's/^/| /' conftest.$ac_ext >&5
     5338
     5339ac_header_compiler=no
     5340fi
     5341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5343echo "${ECHO_T}$ac_header_compiler" >&6
     5344
     5345# Is the header present?
     5346echo "$as_me:$LINENO: checking stdlib.h presence" >&5
     5347echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
     5348cat >conftest.$ac_ext <<_ACEOF
     5349/* confdefs.h.  */
     5350_ACEOF
     5351cat confdefs.h >>conftest.$ac_ext
     5352cat >>conftest.$ac_ext <<_ACEOF
     5353/* end confdefs.h.  */
     5354#include <stdlib.h>
     5355_ACEOF
     5356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5358  ac_status=$?
     5359  grep -v '^ *+' conftest.er1 >conftest.err
     5360  rm -f conftest.er1
     5361  cat conftest.err >&5
     5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5363  (exit $ac_status); } >/dev/null; then
     5364  if test -s conftest.err; then
     5365    ac_cpp_err=$ac_c_preproc_warn_flag
     5366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5367  else
     5368    ac_cpp_err=
     5369  fi
     5370else
     5371  ac_cpp_err=yes
     5372fi
     5373if test -z "$ac_cpp_err"; then
     5374  ac_header_preproc=yes
     5375else
     5376  echo "$as_me: failed program was:" >&5
     5377sed 's/^/| /' conftest.$ac_ext >&5
     5378
     5379  ac_header_preproc=no
     5380fi
     5381rm -f conftest.err conftest.$ac_ext
     5382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5383echo "${ECHO_T}$ac_header_preproc" >&6
     5384
     5385# So?  What about this header?
     5386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5387  yes:no: )
     5388    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5389echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5390    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
     5391echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
     5392    ac_header_preproc=yes
     5393    ;;
     5394  no:yes:* )
     5395    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
     5396echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
     5397    { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
     5398echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
     5399    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
     5400echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
     5401    { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
     5402echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5403    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
     5404echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
     5405    { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
     5406echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
     5407    (
     5408      cat <<\_ASBOX
     5409## -------------------------------------- ##
     5410## Report this to the RapptureGUI lists.  ##
     5411## -------------------------------------- ##
     5412_ASBOX
     5413    ) |
     5414      sed "s/^/$as_me: WARNING:     /" >&2
     5415    ;;
     5416esac
     5417echo "$as_me:$LINENO: checking for stdlib.h" >&5
     5418echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
     5419if test "${ac_cv_header_stdlib_h+set}" = set; then
     5420  echo $ECHO_N "(cached) $ECHO_C" >&6
     5421else
     5422  ac_cv_header_stdlib_h=$ac_header_preproc
     5423fi
     5424echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
     5425echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
     5426
     5427fi
     5428if test $ac_cv_header_stdlib_h = yes; then
     5429  tcl_ok=1
     5430else
     5431  tcl_ok=0
     5432fi
     5433
     5434
     5435    cat >conftest.$ac_ext <<_ACEOF
     5436/* confdefs.h.  */
     5437_ACEOF
     5438cat confdefs.h >>conftest.$ac_ext
     5439cat >>conftest.$ac_ext <<_ACEOF
     5440/* end confdefs.h.  */
     5441#include <stdlib.h>
     5442
     5443_ACEOF
     5444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5445  $EGREP "strtol" >/dev/null 2>&1; then
     5446  :
     5447else
     5448  tcl_ok=0
     5449fi
     5450rm -f conftest*
     5451
     5452    cat >conftest.$ac_ext <<_ACEOF
     5453/* confdefs.h.  */
     5454_ACEOF
     5455cat confdefs.h >>conftest.$ac_ext
     5456cat >>conftest.$ac_ext <<_ACEOF
     5457/* end confdefs.h.  */
     5458#include <stdlib.h>
     5459
     5460_ACEOF
     5461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5462  $EGREP "strtoul" >/dev/null 2>&1; then
     5463  :
     5464else
     5465  tcl_ok=0
     5466fi
     5467rm -f conftest*
     5468
     5469    cat >conftest.$ac_ext <<_ACEOF
     5470/* confdefs.h.  */
     5471_ACEOF
     5472cat confdefs.h >>conftest.$ac_ext
     5473cat >>conftest.$ac_ext <<_ACEOF
     5474/* end confdefs.h.  */
     5475#include <stdlib.h>
     5476
     5477_ACEOF
     5478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5479  $EGREP "strtod" >/dev/null 2>&1; then
     5480  :
     5481else
     5482  tcl_ok=0
     5483fi
     5484rm -f conftest*
     5485
     5486    if test $tcl_ok = 0; then
     5487
     5488cat >>confdefs.h <<\_ACEOF
     5489#define NO_STDLIB_H 1
     5490_ACEOF
     5491
     5492    fi
     5493    if test "${ac_cv_header_string_h+set}" = set; then
     5494  echo "$as_me:$LINENO: checking for string.h" >&5
     5495echo $ECHO_N "checking for string.h... $ECHO_C" >&6
     5496if test "${ac_cv_header_string_h+set}" = set; then
     5497  echo $ECHO_N "(cached) $ECHO_C" >&6
     5498fi
     5499echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
     5500echo "${ECHO_T}$ac_cv_header_string_h" >&6
     5501else
     5502  # Is the header compilable?
     5503echo "$as_me:$LINENO: checking string.h usability" >&5
     5504echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
     5505cat >conftest.$ac_ext <<_ACEOF
     5506/* confdefs.h.  */
     5507_ACEOF
     5508cat confdefs.h >>conftest.$ac_ext
     5509cat >>conftest.$ac_ext <<_ACEOF
     5510/* end confdefs.h.  */
     5511$ac_includes_default
     5512#include <string.h>
     5513_ACEOF
     5514rm -f conftest.$ac_objext
     5515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5516  (eval $ac_compile) 2>conftest.er1
     5517  ac_status=$?
     5518  grep -v '^ *+' conftest.er1 >conftest.err
     5519  rm -f conftest.er1
     5520  cat conftest.err >&5
     5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5522  (exit $ac_status); } &&
     5523         { ac_try='test -z "$ac_c_werror_flag"
     5524                         || test ! -s conftest.err'
     5525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5526  (eval $ac_try) 2>&5
     5527  ac_status=$?
     5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5529  (exit $ac_status); }; } &&
     5530         { ac_try='test -s conftest.$ac_objext'
     5531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5532  (eval $ac_try) 2>&5
     5533  ac_status=$?
     5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5535  (exit $ac_status); }; }; then
     5536  ac_header_compiler=yes
     5537else
     5538  echo "$as_me: failed program was:" >&5
     5539sed 's/^/| /' conftest.$ac_ext >&5
     5540
     5541ac_header_compiler=no
     5542fi
     5543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5544echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5545echo "${ECHO_T}$ac_header_compiler" >&6
     5546
     5547# Is the header present?
     5548echo "$as_me:$LINENO: checking string.h presence" >&5
     5549echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
     5550cat >conftest.$ac_ext <<_ACEOF
     5551/* confdefs.h.  */
     5552_ACEOF
     5553cat confdefs.h >>conftest.$ac_ext
     5554cat >>conftest.$ac_ext <<_ACEOF
     5555/* end confdefs.h.  */
     5556#include <string.h>
     5557_ACEOF
     5558if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5559  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5560  ac_status=$?
     5561  grep -v '^ *+' conftest.er1 >conftest.err
     5562  rm -f conftest.er1
     5563  cat conftest.err >&5
     5564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5565  (exit $ac_status); } >/dev/null; then
     5566  if test -s conftest.err; then
     5567    ac_cpp_err=$ac_c_preproc_warn_flag
     5568    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5569  else
     5570    ac_cpp_err=
     5571  fi
     5572else
     5573  ac_cpp_err=yes
     5574fi
     5575if test -z "$ac_cpp_err"; then
     5576  ac_header_preproc=yes
     5577else
     5578  echo "$as_me: failed program was:" >&5
     5579sed 's/^/| /' conftest.$ac_ext >&5
     5580
     5581  ac_header_preproc=no
     5582fi
     5583rm -f conftest.err conftest.$ac_ext
     5584echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5585echo "${ECHO_T}$ac_header_preproc" >&6
     5586
     5587# So?  What about this header?
     5588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5589  yes:no: )
     5590    { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5591echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5592    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
     5593echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
     5594    ac_header_preproc=yes
     5595    ;;
     5596  no:yes:* )
     5597    { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
     5598echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
     5599    { echo "$as_me:$LINENO: WARNING: string.h:     check for missing prerequisite headers?" >&5
     5600echo "$as_me: WARNING: string.h:     check for missing prerequisite headers?" >&2;}
     5601    { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
     5602echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
     5603    { echo "$as_me:$LINENO: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&5
     5604echo "$as_me: WARNING: string.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5605    { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
     5606echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
     5607    { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
     5608echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
     5609    (
     5610      cat <<\_ASBOX
     5611## -------------------------------------- ##
     5612## Report this to the RapptureGUI lists.  ##
     5613## -------------------------------------- ##
     5614_ASBOX
     5615    ) |
     5616      sed "s/^/$as_me: WARNING:     /" >&2
     5617    ;;
     5618esac
     5619echo "$as_me:$LINENO: checking for string.h" >&5
     5620echo $ECHO_N "checking for string.h... $ECHO_C" >&6
     5621if test "${ac_cv_header_string_h+set}" = set; then
     5622  echo $ECHO_N "(cached) $ECHO_C" >&6
     5623else
     5624  ac_cv_header_string_h=$ac_header_preproc
     5625fi
     5626echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
     5627echo "${ECHO_T}$ac_cv_header_string_h" >&6
     5628
     5629fi
     5630if test $ac_cv_header_string_h = yes; then
     5631  tcl_ok=1
     5632else
     5633  tcl_ok=0
     5634fi
     5635
     5636
     5637    cat >conftest.$ac_ext <<_ACEOF
     5638/* confdefs.h.  */
     5639_ACEOF
     5640cat confdefs.h >>conftest.$ac_ext
     5641cat >>conftest.$ac_ext <<_ACEOF
     5642/* end confdefs.h.  */
     5643#include <string.h>
     5644
     5645_ACEOF
     5646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5647  $EGREP "strstr" >/dev/null 2>&1; then
     5648  :
     5649else
     5650  tcl_ok=0
     5651fi
     5652rm -f conftest*
     5653
     5654    cat >conftest.$ac_ext <<_ACEOF
     5655/* confdefs.h.  */
     5656_ACEOF
     5657cat confdefs.h >>conftest.$ac_ext
     5658cat >>conftest.$ac_ext <<_ACEOF
     5659/* end confdefs.h.  */
     5660#include <string.h>
     5661
     5662_ACEOF
     5663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     5664  $EGREP "strerror" >/dev/null 2>&1; then
     5665  :
     5666else
     5667  tcl_ok=0
     5668fi
     5669rm -f conftest*
     5670
     5671
     5672    # See also memmove check below for a place where NO_STRING_H can be
     5673    # set and why.
     5674
     5675    if test $tcl_ok = 0; then
     5676
     5677cat >>confdefs.h <<\_ACEOF
     5678#define NO_STRING_H 1
     5679_ACEOF
     5680
     5681    fi
     5682
     5683    if test "${ac_cv_header_sys_wait_h+set}" = set; then
     5684  echo "$as_me:$LINENO: checking for sys/wait.h" >&5
     5685echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
     5686if test "${ac_cv_header_sys_wait_h+set}" = set; then
     5687  echo $ECHO_N "(cached) $ECHO_C" >&6
     5688fi
     5689echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
     5690echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
     5691else
     5692  # Is the header compilable?
     5693echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
     5694echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6
     5695cat >conftest.$ac_ext <<_ACEOF
     5696/* confdefs.h.  */
     5697_ACEOF
     5698cat confdefs.h >>conftest.$ac_ext
     5699cat >>conftest.$ac_ext <<_ACEOF
     5700/* end confdefs.h.  */
     5701$ac_includes_default
     5702#include <sys/wait.h>
     5703_ACEOF
     5704rm -f conftest.$ac_objext
     5705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5706  (eval $ac_compile) 2>conftest.er1
     5707  ac_status=$?
     5708  grep -v '^ *+' conftest.er1 >conftest.err
     5709  rm -f conftest.er1
     5710  cat conftest.err >&5
     5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5712  (exit $ac_status); } &&
     5713         { ac_try='test -z "$ac_c_werror_flag"
     5714                         || test ! -s conftest.err'
     5715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5716  (eval $ac_try) 2>&5
     5717  ac_status=$?
     5718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5719  (exit $ac_status); }; } &&
     5720         { ac_try='test -s conftest.$ac_objext'
     5721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5722  (eval $ac_try) 2>&5
     5723  ac_status=$?
     5724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5725  (exit $ac_status); }; }; then
     5726  ac_header_compiler=yes
     5727else
     5728  echo "$as_me: failed program was:" >&5
     5729sed 's/^/| /' conftest.$ac_ext >&5
     5730
     5731ac_header_compiler=no
     5732fi
     5733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5735echo "${ECHO_T}$ac_header_compiler" >&6
     5736
     5737# Is the header present?
     5738echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
     5739echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6
     5740cat >conftest.$ac_ext <<_ACEOF
     5741/* confdefs.h.  */
     5742_ACEOF
     5743cat confdefs.h >>conftest.$ac_ext
     5744cat >>conftest.$ac_ext <<_ACEOF
     5745/* end confdefs.h.  */
     5746#include <sys/wait.h>
     5747_ACEOF
     5748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5750  ac_status=$?
     5751  grep -v '^ *+' conftest.er1 >conftest.err
     5752  rm -f conftest.er1
     5753  cat conftest.err >&5
     5754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5755  (exit $ac_status); } >/dev/null; then
     5756  if test -s conftest.err; then
     5757    ac_cpp_err=$ac_c_preproc_warn_flag
     5758    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5759  else
     5760    ac_cpp_err=
     5761  fi
     5762else
     5763  ac_cpp_err=yes
     5764fi
     5765if test -z "$ac_cpp_err"; then
     5766  ac_header_preproc=yes
     5767else
     5768  echo "$as_me: failed program was:" >&5
     5769sed 's/^/| /' conftest.$ac_ext >&5
     5770
     5771  ac_header_preproc=no
     5772fi
     5773rm -f conftest.err conftest.$ac_ext
     5774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5775echo "${ECHO_T}$ac_header_preproc" >&6
     5776
     5777# So?  What about this header?
     5778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5779  yes:no: )
     5780    { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5781echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5782    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
     5783echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
     5784    ac_header_preproc=yes
     5785    ;;
     5786  no:yes:* )
     5787    { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
     5788echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
     5789    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&5
     5790echo "$as_me: WARNING: sys/wait.h:     check for missing prerequisite headers?" >&2;}
     5791    { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
     5792echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
     5793    { echo "$as_me:$LINENO: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&5
     5794echo "$as_me: WARNING: sys/wait.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5795    { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
     5796echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
     5797    { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
     5798echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
     5799    (
     5800      cat <<\_ASBOX
     5801## -------------------------------------- ##
     5802## Report this to the RapptureGUI lists.  ##
     5803## -------------------------------------- ##
     5804_ASBOX
     5805    ) |
     5806      sed "s/^/$as_me: WARNING:     /" >&2
     5807    ;;
     5808esac
     5809echo "$as_me:$LINENO: checking for sys/wait.h" >&5
     5810echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
     5811if test "${ac_cv_header_sys_wait_h+set}" = set; then
     5812  echo $ECHO_N "(cached) $ECHO_C" >&6
     5813else
     5814  ac_cv_header_sys_wait_h=$ac_header_preproc
     5815fi
     5816echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
     5817echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
     5818
     5819fi
     5820if test $ac_cv_header_sys_wait_h = yes; then
     5821  :
     5822else
     5823
     5824cat >>confdefs.h <<\_ACEOF
     5825#define NO_SYS_WAIT_H 1
     5826_ACEOF
     5827
     5828fi
     5829
     5830
     5831    if test "${ac_cv_header_dlfcn_h+set}" = set; then
     5832  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
     5833echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
     5834if test "${ac_cv_header_dlfcn_h+set}" = set; then
     5835  echo $ECHO_N "(cached) $ECHO_C" >&6
     5836fi
     5837echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
     5838echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
     5839else
     5840  # Is the header compilable?
     5841echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
     5842echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
     5843cat >conftest.$ac_ext <<_ACEOF
     5844/* confdefs.h.  */
     5845_ACEOF
     5846cat confdefs.h >>conftest.$ac_ext
     5847cat >>conftest.$ac_ext <<_ACEOF
     5848/* end confdefs.h.  */
     5849$ac_includes_default
     5850#include <dlfcn.h>
     5851_ACEOF
     5852rm -f conftest.$ac_objext
     5853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5854  (eval $ac_compile) 2>conftest.er1
     5855  ac_status=$?
     5856  grep -v '^ *+' conftest.er1 >conftest.err
     5857  rm -f conftest.er1
     5858  cat conftest.err >&5
     5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5860  (exit $ac_status); } &&
     5861         { ac_try='test -z "$ac_c_werror_flag"
     5862                         || test ! -s conftest.err'
     5863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5864  (eval $ac_try) 2>&5
     5865  ac_status=$?
     5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5867  (exit $ac_status); }; } &&
     5868         { ac_try='test -s conftest.$ac_objext'
     5869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5870  (eval $ac_try) 2>&5
     5871  ac_status=$?
     5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5873  (exit $ac_status); }; }; then
     5874  ac_header_compiler=yes
     5875else
     5876  echo "$as_me: failed program was:" >&5
     5877sed 's/^/| /' conftest.$ac_ext >&5
     5878
     5879ac_header_compiler=no
     5880fi
     5881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     5882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     5883echo "${ECHO_T}$ac_header_compiler" >&6
     5884
     5885# Is the header present?
     5886echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
     5887echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
     5888cat >conftest.$ac_ext <<_ACEOF
     5889/* confdefs.h.  */
     5890_ACEOF
     5891cat confdefs.h >>conftest.$ac_ext
     5892cat >>conftest.$ac_ext <<_ACEOF
     5893/* end confdefs.h.  */
     5894#include <dlfcn.h>
     5895_ACEOF
     5896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     5897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     5898  ac_status=$?
     5899  grep -v '^ *+' conftest.er1 >conftest.err
     5900  rm -f conftest.er1
     5901  cat conftest.err >&5
     5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5903  (exit $ac_status); } >/dev/null; then
     5904  if test -s conftest.err; then
     5905    ac_cpp_err=$ac_c_preproc_warn_flag
     5906    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     5907  else
     5908    ac_cpp_err=
     5909  fi
     5910else
     5911  ac_cpp_err=yes
     5912fi
     5913if test -z "$ac_cpp_err"; then
     5914  ac_header_preproc=yes
     5915else
     5916  echo "$as_me: failed program was:" >&5
     5917sed 's/^/| /' conftest.$ac_ext >&5
     5918
     5919  ac_header_preproc=no
     5920fi
     5921rm -f conftest.err conftest.$ac_ext
     5922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     5923echo "${ECHO_T}$ac_header_preproc" >&6
     5924
     5925# So?  What about this header?
     5926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     5927  yes:no: )
     5928    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
     5929echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
     5930    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
     5931echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
     5932    ac_header_preproc=yes
     5933    ;;
     5934  no:yes:* )
     5935    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
     5936echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
     5937    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
     5938echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
     5939    { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
     5940echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
     5941    { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
     5942echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
     5943    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
     5944echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
     5945    { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
     5946echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
     5947    (
     5948      cat <<\_ASBOX
     5949## -------------------------------------- ##
     5950## Report this to the RapptureGUI lists.  ##
     5951## -------------------------------------- ##
     5952_ASBOX
     5953    ) |
     5954      sed "s/^/$as_me: WARNING:     /" >&2
     5955    ;;
     5956esac
     5957echo "$as_me:$LINENO: checking for dlfcn.h" >&5
     5958echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
     5959if test "${ac_cv_header_dlfcn_h+set}" = set; then
     5960  echo $ECHO_N "(cached) $ECHO_C" >&6
     5961else
     5962  ac_cv_header_dlfcn_h=$ac_header_preproc
     5963fi
     5964echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
     5965echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
     5966
     5967fi
     5968if test $ac_cv_header_dlfcn_h = yes; then
     5969  :
     5970else
     5971
     5972cat >>confdefs.h <<\_ACEOF
     5973#define NO_DLFCN_H 1
     5974_ACEOF
     5975
     5976fi
     5977
     5978
     5979
     5980    # OS/390 lacks sys/param.h (and doesn't need it, by chance).
     5981
     5982for ac_header in sys/param.h
     5983do
     5984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     5985if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5986  echo "$as_me:$LINENO: checking for $ac_header" >&5
     5987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     5988if eval "test \"\${$as_ac_Header+set}\" = set"; then
     5989  echo $ECHO_N "(cached) $ECHO_C" >&6
     5990fi
     5991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     5992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     5993else
     5994  # Is the header compilable?
     5995echo "$as_me:$LINENO: checking $ac_header usability" >&5
     5996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     5997cat >conftest.$ac_ext <<_ACEOF
     5998/* confdefs.h.  */
     5999_ACEOF
     6000cat confdefs.h >>conftest.$ac_ext
     6001cat >>conftest.$ac_ext <<_ACEOF
     6002/* end confdefs.h.  */
     6003$ac_includes_default
     6004#include <$ac_header>
     6005_ACEOF
     6006rm -f conftest.$ac_objext
     6007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6008  (eval $ac_compile) 2>conftest.er1
     6009  ac_status=$?
     6010  grep -v '^ *+' conftest.er1 >conftest.err
     6011  rm -f conftest.er1
     6012  cat conftest.err >&5
     6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6014  (exit $ac_status); } &&
     6015         { ac_try='test -z "$ac_c_werror_flag"
     6016                         || test ! -s conftest.err'
     6017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6018  (eval $ac_try) 2>&5
     6019  ac_status=$?
     6020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6021  (exit $ac_status); }; } &&
     6022         { ac_try='test -s conftest.$ac_objext'
     6023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6024  (eval $ac_try) 2>&5
     6025  ac_status=$?
     6026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6027  (exit $ac_status); }; }; then
     6028  ac_header_compiler=yes
     6029else
     6030  echo "$as_me: failed program was:" >&5
     6031sed 's/^/| /' conftest.$ac_ext >&5
     6032
     6033ac_header_compiler=no
     6034fi
     6035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6037echo "${ECHO_T}$ac_header_compiler" >&6
     6038
     6039# Is the header present?
     6040echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6042cat >conftest.$ac_ext <<_ACEOF
     6043/* confdefs.h.  */
     6044_ACEOF
     6045cat confdefs.h >>conftest.$ac_ext
     6046cat >>conftest.$ac_ext <<_ACEOF
     6047/* end confdefs.h.  */
     6048#include <$ac_header>
     6049_ACEOF
     6050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6051  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6052  ac_status=$?
     6053  grep -v '^ *+' conftest.er1 >conftest.err
     6054  rm -f conftest.er1
     6055  cat conftest.err >&5
     6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6057  (exit $ac_status); } >/dev/null; then
     6058  if test -s conftest.err; then
     6059    ac_cpp_err=$ac_c_preproc_warn_flag
     6060    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
     6061  else
     6062    ac_cpp_err=
     6063  fi
     6064else
     6065  ac_cpp_err=yes
     6066fi
     6067if test -z "$ac_cpp_err"; then
     6068  ac_header_preproc=yes
     6069else
     6070  echo "$as_me: failed program was:" >&5
     6071sed 's/^/| /' conftest.$ac_ext >&5
     6072
     6073  ac_header_preproc=no
     6074fi
     6075rm -f conftest.err conftest.$ac_ext
     6076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6077echo "${ECHO_T}$ac_header_preproc" >&6
     6078
     6079# So?  What about this header?
     6080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
     6081  yes:no: )
     6082    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6084    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     6085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     6086    ac_header_preproc=yes
     6087    ;;
     6088  no:yes:* )
     6089    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6091    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     6092echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     6093    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     6094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     6095    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     6096echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     6097    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6099    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     6100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     6101    (
     6102      cat <<\_ASBOX
     6103## -------------------------------------- ##
     6104## Report this to the RapptureGUI lists.  ##
     6105## -------------------------------------- ##
     6106_ASBOX
     6107    ) |
     6108      sed "s/^/$as_me: WARNING:     /" >&2
     6109    ;;
     6110esac
     6111echo "$as_me:$LINENO: checking for $ac_header" >&5
     6112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6113if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6114  echo $ECHO_N "(cached) $ECHO_C" >&6
     6115else
     6116  eval "$as_ac_Header=\$ac_header_preproc"
     6117fi
     6118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6120
     6121fi
     6122if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6123  cat >>confdefs.h <<_ACEOF
     6124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6125_ACEOF
     6126
     6127fi
     6128
     6129done
     6130
     6131
     6132        # Let the user call this, because if it triggers, they will
     6133        # need a compat/strtod.c that is correct.  Users can also
     6134        # use Tcl_GetDouble(FromObj) instead.
     6135        #TEA_BUGGY_STRTOD
     6136    fi
     6137
     6138
     6139#-----------------------------------------------------------------------
     6140# __CHANGE__
     6141# Specify the C source files to compile in TEA_ADD_SOURCES,
     6142# public headers that need to be installed in TEA_ADD_HEADERS,
     6143# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
     6144# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
     6145# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
     6146# and PKG_TCL_SOURCES.
     6147#-----------------------------------------------------------------------
     6148
     6149
     6150    vars="RpInit.c RpRlimit.c RpRusage.c RpSignal.c"
     6151    for i in $vars; do
     6152        case $i in
     6153            \$*)
     6154                # allow $-var names
     6155                PKG_SOURCES="$PKG_SOURCES $i"
     6156                PKG_OBJECTS="$PKG_OBJECTS $i"
     6157                ;;
     6158            *)
     6159                # check for existence - allows for generic/win/unix VPATH
     6160                if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/src/$i" \
     6161                    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
     6162                    ; then
     6163                    { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
     6164echo "$as_me: error: could not find source file '$i'" >&2;}
     6165   { (exit 1); exit 1; }; }
     6166                fi
     6167                PKG_SOURCES="$PKG_SOURCES $i"
     6168                # this assumes it is in a VPATH dir
     6169                i=`basename $i`
     6170                # handle user calling this before or after TEA_SETUP_COMPILER
     6171                if test x"${OBJEXT}" != x ; then
     6172                    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
     6173                else
     6174                    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
     6175                fi
     6176                PKG_OBJECTS="$PKG_OBJECTS $j"
     6177                ;;
     6178        esac
     6179    done
     6180
     6181
     6182
     6183
     6184    vars=""
     6185    for i in $vars; do
     6186        # check for existence, be strict because it is installed
     6187        if test ! -f "${srcdir}/$i" ; then
     6188            { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5
     6189echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;}
     6190   { (exit 1); exit 1; }; }
     6191        fi
     6192        PKG_HEADERS="$PKG_HEADERS $i"
     6193    done
     6194
     6195
     6196
     6197    vars=""
     6198    for i in $vars; do
     6199        PKG_INCLUDES="$PKG_INCLUDES $i"
     6200    done
     6201
     6202
     6203
     6204    PKG_CFLAGS="$PKG_CFLAGS "
     6205
     6206
     6207
     6208    vars=""
     6209    for i in $vars; do
     6210        # check for existence - allows for generic/win/unix VPATH
     6211        if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
     6212            -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
     6213            ; then
     6214            { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5
     6215echo "$as_me: error: could not find stub source file '$i'" >&2;}
     6216   { (exit 1); exit 1; }; }
     6217        fi
     6218        PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
     6219        # this assumes it is in a VPATH dir
     6220        i=`basename $i`
     6221        # handle user calling this before or after TEA_SETUP_COMPILER
     6222        if test x"${OBJEXT}" != x ; then
     6223            j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
     6224        else
     6225            j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
     6226        fi
     6227        PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
     6228    done
     6229
     6230
     6231
     6232
     6233    vars="scripts/analyzer.tcl scripts/animover.tcl"
     6234    for i in $vars; do
     6235        # check for existence, be strict because it is installed
     6236        if test ! -f "${srcdir}/$i" ; then
     6237            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6238echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6239   { (exit 1); exit 1; }; }
     6240        fi
     6241        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6242    done
     6243
     6244
     6245
     6246    vars="scripts/balloon.tcl scripts/booleanentry.tcl"
     6247    for i in $vars; do
     6248        # check for existence, be strict because it is installed
     6249        if test ! -f "${srcdir}/$i" ; then
     6250            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6251echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6252   { (exit 1); exit 1; }; }
     6253        fi
     6254        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6255    done
     6256
     6257
     6258
     6259    vars="scripts/bugreport.tcl scripts/choiceentry.tcl"
     6260    for i in $vars; do
     6261        # check for existence, be strict because it is installed
     6262        if test ! -f "${srcdir}/$i" ; then
     6263            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6264echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6265   { (exit 1); exit 1; }; }
     6266        fi
     6267        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6268    done
     6269
     6270
     6271
     6272    vars="scripts/cloud.tcl scripts/color.tcl"
     6273    for i in $vars; do
     6274        # check for existence, be strict because it is installed
     6275        if test ! -f "${srcdir}/$i" ; then
     6276            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6277echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6278   { (exit 1); exit 1; }; }
     6279        fi
     6280        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6281    done
     6282
     6283
     6284
     6285    vars="scripts/combobox.tcl scripts/contourresult.tcl"
     6286    for i in $vars; do
     6287        # check for existence, be strict because it is installed
     6288        if test ! -f "${srcdir}/$i" ; then
     6289            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6290echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6291   { (exit 1); exit 1; }; }
     6292        fi
     6293        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6294    done
     6295
     6296
     6297
     6298    vars="scripts/controlOwner.tcl scripts/controls.tcl"
     6299    for i in $vars; do
     6300        # check for existence, be strict because it is installed
     6301        if test ! -f "${srcdir}/$i" ; then
     6302            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6303echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6304   { (exit 1); exit 1; }; }
     6305        fi
     6306        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6307    done
     6308
     6309
     6310
     6311    vars="scripts/curve.tcl scripts/deviceEditor.tcl"
     6312    for i in $vars; do
     6313        # check for existence, be strict because it is installed
     6314        if test ! -f "${srcdir}/$i" ; then
     6315            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6316echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6317   { (exit 1); exit 1; }; }
     6318        fi
     6319        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6320    done
     6321
     6322
     6323
     6324    vars="scripts/deviceLayout1D.tcl scripts/deviceViewer1D.tcl"
     6325    for i in $vars; do
     6326        # check for existence, be strict because it is installed
     6327        if test ! -f "${srcdir}/$i" ; then
     6328            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6329echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6330   { (exit 1); exit 1; }; }
     6331        fi
     6332        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6333    done
     6334
     6335
     6336
     6337    vars="scripts/deviceresult.tcl scripts/dispatcher.tcl"
     6338    for i in $vars; do
     6339        # check for existence, be strict because it is installed
     6340        if test ! -f "${srcdir}/$i" ; then
     6341            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6342echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6343   { (exit 1); exit 1; }; }
     6344        fi
     6345        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6346    done
     6347
     6348
     6349
     6350    vars="scripts/dropdown.tcl scripts/dropdownlist.tcl"
     6351    for i in $vars; do
     6352        # check for existence, be strict because it is installed
     6353        if test ! -f "${srcdir}/$i" ; then
     6354            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6355echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6356   { (exit 1); exit 1; }; }
     6357        fi
     6358        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6359    done
     6360
     6361
     6362
     6363    vars="scripts/editor.tcl scripts/energyLevels.tcl"
     6364    for i in $vars; do
     6365        # check for existence, be strict because it is installed
     6366        if test ! -f "${srcdir}/$i" ; then
     6367            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6368echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6369   { (exit 1); exit 1; }; }
     6370        fi
     6371        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6372    done
     6373
     6374
     6375
     6376    vars="scripts/field.tcl scripts/field3dresult.tcl"
     6377    for i in $vars; do
     6378        # check for existence, be strict because it is installed
     6379        if test ! -f "${srcdir}/$i" ; then
     6380            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6381echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6382   { (exit 1); exit 1; }; }
     6383        fi
     6384        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6385    done
     6386
     6387
     6388
     6389    vars="scripts/filexfer.tcl scripts/gauge.tcl"
     6390    for i in $vars; do
     6391        # check for existence, be strict because it is installed
     6392        if test ! -f "${srcdir}/$i" ; then
     6393            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6394echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6395   { (exit 1); exit 1; }; }
     6396        fi
     6397        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6398    done
     6399
     6400
     6401
     6402    vars="scripts/getopts.tcl scripts/grab.tcl"
     6403    for i in $vars; do
     6404        # check for existence, be strict because it is installed
     6405        if test ! -f "${srcdir}/$i" ; then
     6406            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6407echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6408   { (exit 1); exit 1; }; }
     6409        fi
     6410        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6411    done
     6412
     6413
     6414
     6415    vars="scripts/groupentry.tcl scripts/icons.tcl"
     6416    for i in $vars; do
     6417        # check for existence, be strict because it is installed
     6418        if test ! -f "${srcdir}/$i" ; then
     6419            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6420echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6421   { (exit 1); exit 1; }; }
     6422        fi
     6423        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6424    done
     6425
     6426
     6427
     6428    vars="scripts/image.tcl scripts/imageentry.tcl"
     6429    for i in $vars; do
     6430        # check for existence, be strict because it is installed
     6431        if test ! -f "${srcdir}/$i" ; then
     6432            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6433echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6434   { (exit 1); exit 1; }; }
     6435        fi
     6436        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6437    done
     6438
     6439
     6440
     6441    vars="scripts/imageresult.tcl"
     6442    for i in $vars; do
     6443        # check for existence, be strict because it is installed
     6444        if test ! -f "${srcdir}/$i" ; then
     6445            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6446echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6447   { (exit 1); exit 1; }; }
     6448        fi
     6449        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6450    done
     6451
     6452
     6453
     6454    vars="scripts/integerentry.tcl scripts/loader.tcl"
     6455    for i in $vars; do
     6456        # check for existence, be strict because it is installed
     6457        if test ! -f "${srcdir}/$i" ; then
     6458            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6459echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6460   { (exit 1); exit 1; }; }
     6461        fi
     6462        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6463    done
     6464
     6465
     6466
     6467    vars="scripts/mainwin.tcl scripts/mesh.tcl"
     6468    for i in $vars; do
     6469        # check for existence, be strict because it is installed
     6470        if test ! -f "${srcdir}/$i" ; then
     6471            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6472echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6473   { (exit 1); exit 1; }; }
     6474        fi
     6475        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6476    done
     6477
     6478
     6479
     6480    vars="scripts/meshresult.tcl scripts/moleculeViewer.tcl"
     6481    for i in $vars; do
     6482        # check for existence, be strict because it is installed
     6483        if test ! -f "${srcdir}/$i" ; then
     6484            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6485echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6486   { (exit 1); exit 1; }; }
     6487        fi
     6488        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6489    done
     6490
     6491
     6492
     6493    vars="scripts/nanovisviewer.tcl scripts/notebook.tcl"
     6494    for i in $vars; do
     6495        # check for existence, be strict because it is installed
     6496        if test ! -f "${srcdir}/$i" ; then
     6497            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6498echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6499   { (exit 1); exit 1; }; }
     6500        fi
     6501        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6502    done
     6503
     6504
     6505
     6506    vars="scripts/numberentry.tcl scripts/page.tcl"
     6507    for i in $vars; do
     6508        # check for existence, be strict because it is installed
     6509        if test ! -f "${srcdir}/$i" ; then
     6510            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6511echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6512   { (exit 1); exit 1; }; }
     6513        fi
     6514        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6515    done
     6516
     6517
     6518
     6519    vars="scripts/pager.tcl scripts/panes.tcl"
     6520    for i in $vars; do
     6521        # check for existence, be strict because it is installed
     6522        if test ! -f "${srcdir}/$i" ; then
     6523            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6524echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6525   { (exit 1); exit 1; }; }
     6526        fi
     6527        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6528    done
     6529
     6530
     6531
     6532    vars="scripts/postern.tcl scripts/progress.tcl"
     6533    for i in $vars; do
     6534        # check for existence, be strict because it is installed
     6535        if test ! -f "${srcdir}/$i" ; then
     6536            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6537echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6538   { (exit 1); exit 1; }; }
     6539        fi
     6540        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6541    done
     6542
     6543
     6544
     6545    vars="scripts/radiodial.tcl scripts/resources.tcl"
     6546    for i in $vars; do
     6547        # check for existence, be strict because it is installed
     6548        if test ! -f "${srcdir}/$i" ; then
     6549            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6550echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6551   { (exit 1); exit 1; }; }
     6552        fi
     6553        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6554    done
     6555
     6556
     6557
     6558    vars="scripts/resultset.tcl scripts/resultviewer.tcl"
     6559    for i in $vars; do
     6560        # check for existence, be strict because it is installed
     6561        if test ! -f "${srcdir}/$i" ; then
     6562            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6563echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6564   { (exit 1); exit 1; }; }
     6565        fi
     6566        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6567    done
     6568
     6569
     6570
     6571    vars="scripts/scroller.tcl scripts/sequence.tcl"
     6572    for i in $vars; do
     6573        # check for existence, be strict because it is installed
     6574        if test ! -f "${srcdir}/$i" ; then
     6575            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6576echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6577   { (exit 1); exit 1; }; }
     6578        fi
     6579        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6580    done
     6581
     6582
     6583
     6584    vars="scripts/sequenceresult.tcl scripts/service.tcl"
     6585    for i in $vars; do
     6586        # check for existence, be strict because it is installed
     6587        if test ! -f "${srcdir}/$i" ; then
     6588            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6589echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6590   { (exit 1); exit 1; }; }
     6591        fi
     6592        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6593    done
     6594
     6595
     6596
     6597    vars="scripts/spectrum.tcl scripts/spinint.tcl"
     6598    for i in $vars; do
     6599        # check for existence, be strict because it is installed
     6600        if test ! -f "${srcdir}/$i" ; then
     6601            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6602echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6603   { (exit 1); exit 1; }; }
     6604        fi
     6605        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6606    done
     6607
     6608
     6609
     6610    vars="scripts/switch.tcl scripts/table.tcl"
     6611    for i in $vars; do
     6612        # check for existence, be strict because it is installed
     6613        if test ! -f "${srcdir}/$i" ; then
     6614            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6615echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6616   { (exit 1); exit 1; }; }
     6617        fi
     6618        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6619    done
     6620
     6621
     6622
     6623    vars="scripts/tempgauge.tcl scripts/textentry.tcl"
     6624    for i in $vars; do
     6625        # check for existence, be strict because it is installed
     6626        if test ! -f "${srcdir}/$i" ; then
     6627            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6628echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6629   { (exit 1); exit 1; }; }
     6630        fi
     6631        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6632    done
     6633
     6634
     6635
     6636    vars="scripts/textresult.tcl scripts/tool.tcl"
     6637    for i in $vars; do
     6638        # check for existence, be strict because it is installed
     6639        if test ! -f "${srcdir}/$i" ; then
     6640            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6641echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6642   { (exit 1); exit 1; }; }
     6643        fi
     6644        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6645    done
     6646
     6647
     6648
     6649    vars="scripts/tooltip.tcl scripts/tuples.tcl"
     6650    for i in $vars; do
     6651        # check for existence, be strict because it is installed
     6652        if test ! -f "${srcdir}/$i" ; then
     6653            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6654echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6655   { (exit 1); exit 1; }; }
     6656        fi
     6657        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6658    done
     6659
     6660
     6661
     6662    vars="scripts/units.tcl scripts/valueresult.tcl"
     6663    for i in $vars; do
     6664        # check for existence, be strict because it is installed
     6665        if test ! -f "${srcdir}/$i" ; then
     6666            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6667echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6668   { (exit 1); exit 1; }; }
     6669        fi
     6670        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6671    done
     6672
     6673
     6674
     6675    vars="scripts/xyresult.tcl"
     6676    for i in $vars; do
     6677        # check for existence, be strict because it is installed
     6678        if test ! -f "${srcdir}/$i" ; then
     6679            { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5
     6680echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;}
     6681   { (exit 1); exit 1; }; }
     6682        fi
     6683        PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
     6684    done
     6685
     6686
     6687
     6688#--------------------------------------------------------------------
     6689# __CHANGE__
     6690# A few miscellaneous platform-specific items:
     6691#
     6692# Define a special symbol for Windows (BUILD_Rappture in this case) so
     6693# that we create the export library with the dll.
     6694#
     6695# Windows creates a few extra files that need to be cleaned up.
     6696# You can add more files to clean if your extension creates any extra
     6697# files.
     6698#
     6699# TEA_ADD_* any platform specific compiler/build info here.
     6700#--------------------------------------------------------------------
     6701
     6702if test "${TEA_PLATFORM}" = "windows" ; then
     6703
     6704cat >>confdefs.h <<\_ACEOF
     6705#define BUILD_Rappture 1
     6706_ACEOF
     6707
     6708    CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch *.manifest"
     6709
     6710    vars="RpWinResource.c"
     6711    for i in $vars; do
     6712        case $i in
     6713            \$*)
     6714                # allow $-var names
     6715                PKG_SOURCES="$PKG_SOURCES $i"
     6716                PKG_OBJECTS="$PKG_OBJECTS $i"
     6717                ;;
     6718            *)
     6719                # check for existence - allows for generic/win/unix VPATH
     6720                if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/src/$i" \
     6721                    -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
     6722                    ; then
     6723                    { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5
     6724echo "$as_me: error: could not find source file '$i'" >&2;}
     6725   { (exit 1); exit 1; }; }
     6726                fi
     6727                PKG_SOURCES="$PKG_SOURCES $i"
     6728                # this assumes it is in a VPATH dir
     6729                i=`basename $i`
     6730                # handle user calling this before or after TEA_SETUP_COMPILER
     6731                if test x"${OBJEXT}" != x ; then
     6732                    j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
     6733                else
     6734                    j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
     6735                fi
     6736                PKG_OBJECTS="$PKG_OBJECTS $j"
     6737                ;;
     6738        esac
     6739    done
     6740
     6741
     6742
     6743
     6744    vars="-LIBPATH:${TCL_EXEC_PREFIX}/lib"
     6745    for i in $vars; do
     6746        if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
     6747            # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
     6748            i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
     6749        fi
     6750        PKG_LIBS="$PKG_LIBS $i"
     6751    done
     6752
     6753
     6754
     6755    vars="BLT24.LIB"
     6756    for i in $vars; do
     6757        if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
     6758            # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
     6759            i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
     6760        fi
     6761        PKG_LIBS="$PKG_LIBS $i"
     6762    done
     6763
     6764
     6765
     6766    vars="psapi.lib"
     6767    for i in $vars; do
     6768        if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
     6769            # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
     6770            i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
     6771        fi
     6772        PKG_LIBS="$PKG_LIBS $i"
     6773    done
     6774
     6775
     6776
     6777    PKG_CFLAGS="$PKG_CFLAGS -D_CRT_SECURE_NO_DEPRECATE -wd4996"
     6778
     6779
     6780else
     6781    CLEANFILES=""
     6782
     6783    vars="-L${TCL_EXEC_PREFIX}/lib"
     6784    for i in $vars; do
     6785        if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
     6786            # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
     6787            i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
     6788        fi
     6789        PKG_LIBS="$PKG_LIBS $i"
     6790    done
     6791
     6792
     6793
     6794    vars="-lBLT24"
     6795    for i in $vars; do
     6796        if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
     6797            # Convert foo.lib to -lfoo for GCC.  No-op if not *.lib
     6798            i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
     6799        fi
     6800        PKG_LIBS="$PKG_LIBS $i"
     6801    done
     6802
     6803
     6804fi
    25706805
    25716806
     
    25766811# contain private data structures and are subject to change without
    25776812# notice.
    2578 # This MUST be called before SC_PATH_TCLCONFIG/SC_LOAD_TCLCONFIG
     6813# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
    25796814#--------------------------------------------------------------------
    25806815
     
    25906825fi;
    25916826
    2592     if test x"${with_tclinclude}" != x ; then
    2593         if test -f "${with_tclinclude}/tcl.h" ; then
    2594             ac_cv_c_tclh=${with_tclinclude}
    2595         else
    2596             { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
    2597 echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
    2598    { (exit 1); exit 1; }; }
    2599         fi
    2600     else
    2601         if test "${ac_cv_c_tclh+set}" = set; then
     6827    if test "${ac_cv_c_tclh+set}" = set; then
    26026828  echo $ECHO_N "(cached) $ECHO_C" >&6
    26036829else
    26046830
    2605             # Use the value from --with-tclinclude, if it was given
    2606 
    2607             if test x"${with_tclinclude}" != x ; then
     6831        # Use the value from --with-tclinclude, if it was given
     6832
     6833        if test x"${with_tclinclude}" != x ; then
     6834            if test -f "${with_tclinclude}/tcl.h" ; then
    26086835                ac_cv_c_tclh=${with_tclinclude}
    26096836            else
    2610                 # Check in the includedir, if --prefix was specified
    2611 
    2612                 eval "temp_includedir=${includedir}"
    2613                 for i in \
    2614                         `ls -d ${temp_includedir} 2>/dev/null` \
    2615                         /usr/local/include /usr/include ; do
    2616                     if test -f "$i/tcl.h" ; then
    2617                         ac_cv_c_tclh=$i
    2618                         break
    2619                     fi
    2620                 done
     6837                { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5
     6838echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;}
     6839   { (exit 1); exit 1; }; }
    26216840            fi
    2622 
    2623 fi
    2624 
    2625     fi
     6841        else
     6842            if test "`uname -s`" = "Darwin"; then
     6843                # If Tcl was built as a framework, attempt to use
     6844                # the framework's Headers directory
     6845                case ${TCL_DEFS} in
     6846                    *TCL_FRAMEWORK*)
     6847                        list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
     6848                        ;;
     6849                esac
     6850            fi
     6851
     6852            # Look in the source dir only if Tcl is not installed,
     6853            # and in that situation, look there before installed locations.
     6854            if test -f "${TCL_BIN_DIR}/Makefile" ; then
     6855                list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
     6856            fi
     6857
     6858            # Check order: pkg --prefix location, Tcl's --prefix location,
     6859            # relative to directory of tclConfig.sh.
     6860
     6861            eval "temp_includedir=${includedir}"
     6862            list="$list \
     6863                `ls -d ${temp_includedir}        2>/dev/null` \
     6864                `ls -d ${TCL_PREFIX}/include     2>/dev/null` \
     6865                `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
     6866            if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
     6867                list="$list /usr/local/include /usr/include"
     6868                if test x"${TCL_INCLUDE_SPEC}" != x ; then
     6869                    d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
     6870                    list="$list `ls -d ${d} 2>/dev/null`"
     6871                fi
     6872            fi
     6873            for i in $list ; do
     6874                if test -f "$i/tcl.h" ; then
     6875                    ac_cv_c_tclh=$i
     6876                    break
     6877                fi
     6878            done
     6879        fi
     6880
     6881fi
     6882
    26266883
    26276884    # Print a message based on how we determined the include path
     
    26446901
    26456902
    2646 #SC_PRIVATE_TCL_HEADERS
     6903#TEA_PRIVATE_TCL_HEADERS
     6904
     6905#TEA_PUBLIC_TK_HEADERS
     6906#TEA_PRIVATE_TK_HEADERS
     6907#TEA_PATH_X
    26476908
    26486909#--------------------------------------------------------------------
    2649 # Load the tclConfig.sh file
     6910# Check whether --enable-threads or --disable-threads was given.
     6911# This auto-enables if Tcl was compiled threaded.
    26506912#--------------------------------------------------------------------
    26516913
    26526914
    2653     #
    2654     # Ok, lets find the tcl configuration
     6915    # Check whether --enable-threads or --disable-threads was given.
     6916if test "${enable_threads+set}" = set; then
     6917  enableval="$enable_threads"
     6918  tcl_ok=$enableval
     6919else
     6920  tcl_ok=yes
     6921fi;
     6922
     6923    if test "${enable_threads+set}" = set; then
     6924        enableval="$enable_threads"
     6925        tcl_ok=$enableval
     6926    else
     6927        tcl_ok=yes
     6928    fi
     6929
     6930    if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
     6931        TCL_THREADS=1
     6932
     6933        if test "${TEA_PLATFORM}" != "windows" ; then
     6934            # We are always OK on Windows, so check what this platform wants:
     6935
     6936            # USE_THREAD_ALLOC tells us to try the special thread-based
     6937            # allocator that significantly reduces lock contention
     6938
     6939cat >>confdefs.h <<\_ACEOF
     6940#define USE_THREAD_ALLOC 1
     6941_ACEOF
     6942
     6943
     6944cat >>confdefs.h <<\_ACEOF
     6945#define _REENTRANT 1
     6946_ACEOF
     6947
     6948            if test "`uname -s`" = "SunOS" ; then
     6949
     6950cat >>confdefs.h <<\_ACEOF
     6951#define _POSIX_PTHREAD_SEMANTICS 1
     6952_ACEOF
     6953
     6954            fi
     6955
     6956cat >>confdefs.h <<\_ACEOF
     6957#define _THREAD_SAFE 1
     6958_ACEOF
     6959
     6960            echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
     6961echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
     6962if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
     6963  echo $ECHO_N "(cached) $ECHO_C" >&6
     6964else
     6965  ac_check_lib_save_LIBS=$LIBS
     6966LIBS="-lpthread  $LIBS"
     6967cat >conftest.$ac_ext <<_ACEOF
     6968/* confdefs.h.  */
     6969_ACEOF
     6970cat confdefs.h >>conftest.$ac_ext
     6971cat >>conftest.$ac_ext <<_ACEOF
     6972/* end confdefs.h.  */
     6973
     6974/* Override any gcc2 internal prototype to avoid an error.  */
     6975#ifdef __cplusplus
     6976extern "C"
     6977#endif
     6978/* We use char because int might match the return type of a gcc2
     6979   builtin and then its argument prototype would still apply.  */
     6980char pthread_mutex_init ();
     6981int
     6982main ()
     6983{
     6984pthread_mutex_init ();
     6985  ;
     6986  return 0;
     6987}
     6988_ACEOF
     6989rm -f conftest.$ac_objext conftest$ac_exeext
     6990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6991  (eval $ac_link) 2>conftest.er1
     6992  ac_status=$?
     6993  grep -v '^ *+' conftest.er1 >conftest.err
     6994  rm -f conftest.er1
     6995  cat conftest.err >&5
     6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6997  (exit $ac_status); } &&
     6998         { ac_try='test -z "$ac_c_werror_flag"
     6999                         || test ! -s conftest.err'
     7000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7001  (eval $ac_try) 2>&5
     7002  ac_status=$?
     7003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7004  (exit $ac_status); }; } &&
     7005         { ac_try='test -s conftest$ac_exeext'
     7006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7007  (eval $ac_try) 2>&5
     7008  ac_status=$?
     7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7010  (exit $ac_status); }; }; then
     7011  ac_cv_lib_pthread_pthread_mutex_init=yes
     7012else
     7013  echo "$as_me: failed program was:" >&5
     7014sed 's/^/| /' conftest.$ac_ext >&5
     7015
     7016ac_cv_lib_pthread_pthread_mutex_init=no
     7017fi
     7018rm -f conftest.err conftest.$ac_objext \
     7019      conftest$ac_exeext conftest.$ac_ext
     7020LIBS=$ac_check_lib_save_LIBS
     7021fi
     7022echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
     7023echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
     7024if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
     7025  tcl_ok=yes
     7026else
     7027  tcl_ok=no
     7028fi
     7029
     7030            if test "$tcl_ok" = "no"; then
     7031                # Check a little harder for __pthread_mutex_init in the same
     7032                # library, as some systems hide it there until pthread.h is
     7033                # defined.  We could alternatively do an AC_TRY_COMPILE with
     7034                # pthread.h, but that will work with libpthread really doesn't
     7035                # exist, like AIX 4.2.  [Bug: 4359]
     7036                echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
     7037echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
     7038if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
     7039  echo $ECHO_N "(cached) $ECHO_C" >&6
     7040else
     7041  ac_check_lib_save_LIBS=$LIBS
     7042LIBS="-lpthread  $LIBS"
     7043cat >conftest.$ac_ext <<_ACEOF
     7044/* confdefs.h.  */
     7045_ACEOF
     7046cat confdefs.h >>conftest.$ac_ext
     7047cat >>conftest.$ac_ext <<_ACEOF
     7048/* end confdefs.h.  */
     7049
     7050/* Override any gcc2 internal prototype to avoid an error.  */
     7051#ifdef __cplusplus
     7052extern "C"
     7053#endif
     7054/* We use char because int might match the return type of a gcc2
     7055   builtin and then its argument prototype would still apply.  */
     7056char __pthread_mutex_init ();
     7057int
     7058main ()
     7059{
     7060__pthread_mutex_init ();
     7061  ;
     7062  return 0;
     7063}
     7064_ACEOF
     7065rm -f conftest.$ac_objext conftest$ac_exeext
     7066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7067  (eval $ac_link) 2>conftest.er1
     7068  ac_status=$?
     7069  grep -v '^ *+' conftest.er1 >conftest.err
     7070  rm -f conftest.er1
     7071  cat conftest.err >&5
     7072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7073  (exit $ac_status); } &&
     7074         { ac_try='test -z "$ac_c_werror_flag"
     7075                         || test ! -s conftest.err'
     7076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7077  (eval $ac_try) 2>&5
     7078  ac_status=$?
     7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7080  (exit $ac_status); }; } &&
     7081         { ac_try='test -s conftest$ac_exeext'
     7082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7083  (eval $ac_try) 2>&5
     7084  ac_status=$?
     7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7086  (exit $ac_status); }; }; then
     7087  ac_cv_lib_pthread___pthread_mutex_init=yes
     7088else
     7089  echo "$as_me: failed program was:" >&5
     7090sed 's/^/| /' conftest.$ac_ext >&5
     7091
     7092ac_cv_lib_pthread___pthread_mutex_init=no
     7093fi
     7094rm -f conftest.err conftest.$ac_objext \
     7095      conftest$ac_exeext conftest.$ac_ext
     7096LIBS=$ac_check_lib_save_LIBS
     7097fi
     7098echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
     7099echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
     7100if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
     7101  tcl_ok=yes
     7102else
     7103  tcl_ok=no
     7104fi
     7105
     7106            fi
     7107
     7108            if test "$tcl_ok" = "yes"; then
     7109                # The space is needed
     7110                THREADS_LIBS=" -lpthread"
     7111            else
     7112                echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
     7113echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
     7114if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
     7115  echo $ECHO_N "(cached) $ECHO_C" >&6
     7116else
     7117  ac_check_lib_save_LIBS=$LIBS
     7118LIBS="-lpthreads  $LIBS"
     7119cat >conftest.$ac_ext <<_ACEOF
     7120/* confdefs.h.  */
     7121_ACEOF
     7122cat confdefs.h >>conftest.$ac_ext
     7123cat >>conftest.$ac_ext <<_ACEOF
     7124/* end confdefs.h.  */
     7125
     7126/* Override any gcc2 internal prototype to avoid an error.  */
     7127#ifdef __cplusplus
     7128extern "C"
     7129#endif
     7130/* We use char because int might match the return type of a gcc2
     7131   builtin and then its argument prototype would still apply.  */
     7132char pthread_mutex_init ();
     7133int
     7134main ()
     7135{
     7136pthread_mutex_init ();
     7137  ;
     7138  return 0;
     7139}
     7140_ACEOF
     7141rm -f conftest.$ac_objext conftest$ac_exeext
     7142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7143  (eval $ac_link) 2>conftest.er1
     7144  ac_status=$?
     7145  grep -v '^ *+' conftest.er1 >conftest.err
     7146  rm -f conftest.er1
     7147  cat conftest.err >&5
     7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7149  (exit $ac_status); } &&
     7150         { ac_try='test -z "$ac_c_werror_flag"
     7151                         || test ! -s conftest.err'
     7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7153  (eval $ac_try) 2>&5
     7154  ac_status=$?
     7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7156  (exit $ac_status); }; } &&
     7157         { ac_try='test -s conftest$ac_exeext'
     7158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7159  (eval $ac_try) 2>&5
     7160  ac_status=$?
     7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7162  (exit $ac_status); }; }; then
     7163  ac_cv_lib_pthreads_pthread_mutex_init=yes
     7164else
     7165  echo "$as_me: failed program was:" >&5
     7166sed 's/^/| /' conftest.$ac_ext >&5
     7167
     7168ac_cv_lib_pthreads_pthread_mutex_init=no
     7169fi
     7170rm -f conftest.err conftest.$ac_objext \
     7171      conftest$ac_exeext conftest.$ac_ext
     7172LIBS=$ac_check_lib_save_LIBS
     7173fi
     7174echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
     7175echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
     7176if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
     7177  tcl_ok=yes
     7178else
     7179  tcl_ok=no
     7180fi
     7181
     7182                if test "$tcl_ok" = "yes"; then
     7183                    # The space is needed
     7184                    THREADS_LIBS=" -lpthreads"
     7185                else
     7186                    echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5
     7187echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6
     7188if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then
     7189  echo $ECHO_N "(cached) $ECHO_C" >&6
     7190else
     7191  ac_check_lib_save_LIBS=$LIBS
     7192LIBS="-lc  $LIBS"
     7193cat >conftest.$ac_ext <<_ACEOF
     7194/* confdefs.h.  */
     7195_ACEOF
     7196cat confdefs.h >>conftest.$ac_ext
     7197cat >>conftest.$ac_ext <<_ACEOF
     7198/* end confdefs.h.  */
     7199
     7200/* Override any gcc2 internal prototype to avoid an error.  */
     7201#ifdef __cplusplus
     7202extern "C"
     7203#endif
     7204/* We use char because int might match the return type of a gcc2
     7205   builtin and then its argument prototype would still apply.  */
     7206char pthread_mutex_init ();
     7207int
     7208main ()
     7209{
     7210pthread_mutex_init ();
     7211  ;
     7212  return 0;
     7213}
     7214_ACEOF
     7215rm -f conftest.$ac_objext conftest$ac_exeext
     7216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7217  (eval $ac_link) 2>conftest.er1
     7218  ac_status=$?
     7219  grep -v '^ *+' conftest.er1 >conftest.err
     7220  rm -f conftest.er1
     7221  cat conftest.err >&5
     7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7223  (exit $ac_status); } &&
     7224         { ac_try='test -z "$ac_c_werror_flag"
     7225                         || test ! -s conftest.err'
     7226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7227  (eval $ac_try) 2>&5
     7228  ac_status=$?
     7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7230  (exit $ac_status); }; } &&
     7231         { ac_try='test -s conftest$ac_exeext'
     7232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7233  (eval $ac_try) 2>&5
     7234  ac_status=$?
     7235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7236  (exit $ac_status); }; }; then
     7237  ac_cv_lib_c_pthread_mutex_init=yes
     7238else
     7239  echo "$as_me: failed program was:" >&5
     7240sed 's/^/| /' conftest.$ac_ext >&5
     7241
     7242ac_cv_lib_c_pthread_mutex_init=no
     7243fi
     7244rm -f conftest.err conftest.$ac_objext \
     7245      conftest$ac_exeext conftest.$ac_ext
     7246LIBS=$ac_check_lib_save_LIBS
     7247fi
     7248echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5
     7249echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6
     7250if test $ac_cv_lib_c_pthread_mutex_init = yes; then
     7251  tcl_ok=yes
     7252else
     7253  tcl_ok=no
     7254fi
     7255
     7256                    if test "$tcl_ok" = "no"; then
     7257                        echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5
     7258echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6
     7259if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then
     7260  echo $ECHO_N "(cached) $ECHO_C" >&6
     7261else
     7262  ac_check_lib_save_LIBS=$LIBS
     7263LIBS="-lc_r  $LIBS"
     7264cat >conftest.$ac_ext <<_ACEOF
     7265/* confdefs.h.  */
     7266_ACEOF
     7267cat confdefs.h >>conftest.$ac_ext
     7268cat >>conftest.$ac_ext <<_ACEOF
     7269/* end confdefs.h.  */
     7270
     7271/* Override any gcc2 internal prototype to avoid an error.  */
     7272#ifdef __cplusplus
     7273extern "C"
     7274#endif
     7275/* We use char because int might match the return type of a gcc2
     7276   builtin and then its argument prototype would still apply.  */
     7277char pthread_mutex_init ();
     7278int
     7279main ()
     7280{
     7281pthread_mutex_init ();
     7282  ;
     7283  return 0;
     7284}
     7285_ACEOF
     7286rm -f conftest.$ac_objext conftest$ac_exeext
     7287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7288  (eval $ac_link) 2>conftest.er1
     7289  ac_status=$?
     7290  grep -v '^ *+' conftest.er1 >conftest.err
     7291  rm -f conftest.er1
     7292  cat conftest.err >&5
     7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7294  (exit $ac_status); } &&
     7295         { ac_try='test -z "$ac_c_werror_flag"
     7296                         || test ! -s conftest.err'
     7297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7298  (eval $ac_try) 2>&5
     7299  ac_status=$?
     7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7301  (exit $ac_status); }; } &&
     7302         { ac_try='test -s conftest$ac_exeext'
     7303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7304  (eval $ac_try) 2>&5
     7305  ac_status=$?
     7306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7307  (exit $ac_status); }; }; then
     7308  ac_cv_lib_c_r_pthread_mutex_init=yes
     7309else
     7310  echo "$as_me: failed program was:" >&5
     7311sed 's/^/| /' conftest.$ac_ext >&5
     7312
     7313ac_cv_lib_c_r_pthread_mutex_init=no
     7314fi
     7315rm -f conftest.err conftest.$ac_objext \
     7316      conftest$ac_exeext conftest.$ac_ext
     7317LIBS=$ac_check_lib_save_LIBS
     7318fi
     7319echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
     7320echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6
     7321if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then
     7322  tcl_ok=yes
     7323else
     7324  tcl_ok=no
     7325fi
     7326
     7327                        if test "$tcl_ok" = "yes"; then
     7328                            # The space is needed
     7329                            THREADS_LIBS=" -pthread"
     7330                        else
     7331                            TCL_THREADS=0
     7332                            { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
     7333echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
     7334                        fi
     7335                    fi
     7336                fi
     7337            fi
     7338        fi
     7339    else
     7340        TCL_THREADS=0
     7341    fi
     7342    # Do checking message here to not mess up interleaved configure output
     7343    echo "$as_me:$LINENO: checking for building with threads" >&5
     7344echo $ECHO_N "checking for building with threads... $ECHO_C" >&6
     7345    if test "${TCL_THREADS}" = 1; then
     7346
     7347cat >>confdefs.h <<\_ACEOF
     7348#define TCL_THREADS 1
     7349_ACEOF
     7350
     7351        echo "$as_me:$LINENO: result: yes (default)" >&5
     7352echo "${ECHO_T}yes (default)" >&6
     7353    else
     7354        echo "$as_me:$LINENO: result: no" >&5
     7355echo "${ECHO_T}no" >&6
     7356    fi
     7357    # TCL_THREADS sanity checking.  See if our request for building with
     7358    # threads is the same as the way Tcl was built.  If not, warn the user.
     7359    case ${TCL_DEFS} in
     7360        *THREADS=1*)
     7361            if test "${TCL_THREADS}" = "0"; then
     7362                { echo "$as_me:$LINENO: WARNING:
     7363    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
     7364    that IS thread-enabled.  It is recommended to use --enable-threads." >&5
     7365echo "$as_me: WARNING:
     7366    Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
     7367    that IS thread-enabled.  It is recommended to use --enable-threads." >&2;}
     7368            fi
     7369            ;;
     7370        *)
     7371            if test "${TCL_THREADS}" = "1"; then
     7372                { echo "$as_me:$LINENO: WARNING:
     7373    --enable-threads requested, but building against a Tcl that is NOT
     7374    thread-enabled.  This is an OK configuration that will also run in
     7375    a thread-enabled core." >&5
     7376echo "$as_me: WARNING:
     7377    --enable-threads requested, but building against a Tcl that is NOT
     7378    thread-enabled.  This is an OK configuration that will also run in
     7379    a thread-enabled core." >&2;}
     7380            fi
     7381            ;;
     7382    esac
     7383
     7384
     7385
     7386#--------------------------------------------------------------------
     7387# The statement below defines a collection of symbols related to
     7388# building as a shared library instead of a static library.
     7389#--------------------------------------------------------------------
     7390
     7391
     7392    echo "$as_me:$LINENO: checking how to build libraries" >&5
     7393echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
     7394    # Check whether --enable-shared or --disable-shared was given.
     7395if test "${enable_shared+set}" = set; then
     7396  enableval="$enable_shared"
     7397  tcl_ok=$enableval
     7398else
     7399  tcl_ok=yes
     7400fi;
     7401
     7402    if test "${enable_shared+set}" = set; then
     7403        enableval="$enable_shared"
     7404        tcl_ok=$enableval
     7405    else
     7406        tcl_ok=yes
     7407    fi
     7408
     7409    if test "$tcl_ok" = "yes" ; then
     7410        echo "$as_me:$LINENO: result: shared" >&5
     7411echo "${ECHO_T}shared" >&6
     7412        SHARED_BUILD=1
     7413    else
     7414        echo "$as_me:$LINENO: result: static" >&5
     7415echo "${ECHO_T}static" >&6
     7416        SHARED_BUILD=0
     7417
     7418cat >>confdefs.h <<\_ACEOF
     7419#define STATIC_BUILD 1
     7420_ACEOF
     7421
     7422    fi
     7423
     7424
     7425
     7426#--------------------------------------------------------------------
     7427# This macro figures out what flags to use with the compiler/linker
     7428# when building shared/static debug/optimized objects.  This information
     7429# can be taken from the tclConfig.sh file, but this figures it all out.
     7430#--------------------------------------------------------------------
     7431
     7432
     7433
     7434
     7435    # Step 0.a: Enable 64 bit support?
     7436
     7437    echo "$as_me:$LINENO: checking if 64bit support is requested" >&5
     7438echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6
     7439    # Check whether --enable-64bit or --disable-64bit was given.
     7440if test "${enable_64bit+set}" = set; then
     7441  enableval="$enable_64bit"
     7442  do64bit=$enableval
     7443else
     7444  do64bit=no
     7445fi;
     7446    echo "$as_me:$LINENO: result: $do64bit" >&5
     7447echo "${ECHO_T}$do64bit" >&6
     7448
     7449    # Step 0.b: Enable Solaris 64 bit VIS support?
     7450
     7451    echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5
     7452echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6
     7453    # Check whether --enable-64bit-vis or --disable-64bit-vis was given.
     7454if test "${enable_64bit_vis+set}" = set; then
     7455  enableval="$enable_64bit_vis"
     7456  do64bitVIS=$enableval
     7457else
     7458  do64bitVIS=no
     7459fi;
     7460    echo "$as_me:$LINENO: result: $do64bitVIS" >&5
     7461echo "${ECHO_T}$do64bitVIS" >&6
     7462
     7463    if test "$do64bitVIS" = "yes"; then
     7464        # Force 64bit on with VIS
     7465        do64bit=yes
     7466    fi
     7467
     7468    # Step 0.c: Cross-compiling options for Windows/CE builds?
     7469
     7470    if test "${TEA_PLATFORM}" = "windows" ; then
     7471        echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5
     7472echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6
     7473        # Check whether --enable-wince or --disable-wince was given.
     7474if test "${enable_wince+set}" = set; then
     7475  enableval="$enable_wince"
     7476  doWince=$enableval
     7477else
     7478  doWince=no
     7479fi;
     7480        echo "$as_me:$LINENO: result: $doWince" >&5
     7481echo "${ECHO_T}$doWince" >&6
     7482    fi
     7483
     7484    # Step 1: set the variable "system" to hold the name and version number
     7485    # for the system.
     7486
     7487
     7488    echo "$as_me:$LINENO: checking system version" >&5
     7489echo $ECHO_N "checking system version... $ECHO_C" >&6
     7490if test "${tcl_cv_sys_version+set}" = set; then
     7491  echo $ECHO_N "(cached) $ECHO_C" >&6
     7492else
     7493
     7494        if test "${TEA_PLATFORM}" = "windows" ; then
     7495            tcl_cv_sys_version=windows
     7496        elif test -f /usr/lib/NextStep/software_version; then
     7497            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
     7498        else
     7499            tcl_cv_sys_version=`uname -s`-`uname -r`
     7500            if test "$?" -ne 0 ; then
     7501                { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5
     7502echo "$as_me: WARNING: can't find uname command" >&2;}
     7503                tcl_cv_sys_version=unknown
     7504            else
     7505                # Special check for weird MP-RAS system (uname returns weird
     7506                # results, and the version is kept in special file).
     7507
     7508                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
     7509                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
     7510                fi
     7511                if test "`uname -s`" = "AIX" ; then
     7512                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
     7513                fi
     7514            fi
     7515        fi
     7516
     7517fi
     7518echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5
     7519echo "${ECHO_T}$tcl_cv_sys_version" >&6
     7520    system=$tcl_cv_sys_version
     7521
     7522
     7523    # Step 2: check for existence of -ldl library.  This is needed because
     7524    # Linux can use either -ldl or -ldld for dynamic loading.
     7525
     7526    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
     7527echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
     7528if test "${ac_cv_lib_dl_dlopen+set}" = set; then
     7529  echo $ECHO_N "(cached) $ECHO_C" >&6
     7530else
     7531  ac_check_lib_save_LIBS=$LIBS
     7532LIBS="-ldl  $LIBS"
     7533cat >conftest.$ac_ext <<_ACEOF
     7534/* confdefs.h.  */
     7535_ACEOF
     7536cat confdefs.h >>conftest.$ac_ext
     7537cat >>conftest.$ac_ext <<_ACEOF
     7538/* end confdefs.h.  */
     7539
     7540/* Override any gcc2 internal prototype to avoid an error.  */
     7541#ifdef __cplusplus
     7542extern "C"
     7543#endif
     7544/* We use char because int might match the return type of a gcc2
     7545   builtin and then its argument prototype would still apply.  */
     7546char dlopen ();
     7547int
     7548main ()
     7549{
     7550dlopen ();
     7551  ;
     7552  return 0;
     7553}
     7554_ACEOF
     7555rm -f conftest.$ac_objext conftest$ac_exeext
     7556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7557  (eval $ac_link) 2>conftest.er1
     7558  ac_status=$?
     7559  grep -v '^ *+' conftest.er1 >conftest.err
     7560  rm -f conftest.er1
     7561  cat conftest.err >&5
     7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7563  (exit $ac_status); } &&
     7564         { ac_try='test -z "$ac_c_werror_flag"
     7565                         || test ! -s conftest.err'
     7566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7567  (eval $ac_try) 2>&5
     7568  ac_status=$?
     7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7570  (exit $ac_status); }; } &&
     7571         { ac_try='test -s conftest$ac_exeext'
     7572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7573  (eval $ac_try) 2>&5
     7574  ac_status=$?
     7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7576  (exit $ac_status); }; }; then
     7577  ac_cv_lib_dl_dlopen=yes
     7578else
     7579  echo "$as_me: failed program was:" >&5
     7580sed 's/^/| /' conftest.$ac_ext >&5
     7581
     7582ac_cv_lib_dl_dlopen=no
     7583fi
     7584rm -f conftest.err conftest.$ac_objext \
     7585      conftest$ac_exeext conftest.$ac_ext
     7586LIBS=$ac_check_lib_save_LIBS
     7587fi
     7588echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
     7589echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
     7590if test $ac_cv_lib_dl_dlopen = yes; then
     7591  have_dl=yes
     7592else
     7593  have_dl=no
     7594fi
     7595
     7596
     7597    # Require ranlib early so we can override it in special cases below.
     7598
     7599
     7600
     7601    # Step 3: set configuration options based on system name and version.
     7602    # This is similar to Tcl's unix/tcl.m4 except that we've added a
     7603    # "windows" case.
     7604
     7605    do64bit_ok=no
     7606    LDFLAGS_ORIG="$LDFLAGS"
     7607    # When ld needs options to work in 64-bit mode, put them in
     7608    # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
     7609    # is disabled by the user. [Bug 1016796]
     7610    LDFLAGS_ARCH=""
     7611    TCL_EXPORT_FILE_SUFFIX=""
     7612    UNSHARED_LIB_SUFFIX=""
     7613    TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
     7614    ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
     7615    TCL_LIB_VERSIONS_OK=ok
     7616    CFLAGS_DEBUG=-g
     7617    CFLAGS_OPTIMIZE=-O
     7618    if test "$GCC" = "yes" ; then
     7619        CFLAGS_OPTIMIZE=-O2
     7620        CFLAGS_WARNING="-Wall -Wno-implicit-int"
     7621    else
     7622        CFLAGS_WARNING=""
     7623    fi
     7624    TCL_NEEDS_EXP_FILE=0
     7625    TCL_BUILD_EXP_FILE=""
     7626    TCL_EXP_FILE=""
     7627    # Extract the first word of "ar", so it can be a program name with args.
     7628set dummy ar; ac_word=$2
     7629echo "$as_me:$LINENO: checking for $ac_word" >&5
     7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     7631if test "${ac_cv_prog_AR+set}" = set; then
     7632  echo $ECHO_N "(cached) $ECHO_C" >&6
     7633else
     7634  if test -n "$AR"; then
     7635  ac_cv_prog_AR="$AR" # Let the user override the test.
     7636else
     7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     7638for as_dir in $PATH
     7639do
     7640  IFS=$as_save_IFS
     7641  test -z "$as_dir" && as_dir=.
     7642  for ac_exec_ext in '' $ac_executable_extensions; do
     7643  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     7644    ac_cv_prog_AR="ar"
     7645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     7646    break 2
     7647  fi
     7648done
     7649done
     7650
     7651fi
     7652fi
     7653AR=$ac_cv_prog_AR
     7654if test -n "$AR"; then
     7655  echo "$as_me:$LINENO: result: $AR" >&5
     7656echo "${ECHO_T}$AR" >&6
     7657else
     7658  echo "$as_me:$LINENO: result: no" >&5
     7659echo "${ECHO_T}no" >&6
     7660fi
     7661
     7662    STLIB_LD='${AR} cr'
     7663    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
     7664    case $system in
     7665        windows)
     7666            # This is a 2-stage check to make sure we have the 64-bit SDK
     7667            # We have to know where the SDK is installed.
     7668            # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
     7669            # MACHINE is IX86 for LINK, but this is used by the manifest,
     7670            # which requires x86|amd64|ia64.
     7671            MACHINE="X86"
     7672            if test "$do64bit" != "no" ; then
     7673                if test "x${MSSDK}x" = "xx" ; then
     7674                    MSSDK="C:/Progra~1/Microsoft Platform SDK"
     7675                fi
     7676                MSSDK=`echo "$MSSDK" | sed -e  's!\\\!/!g'`
     7677                PATH64=""
     7678                case "$do64bit" in
     7679                    amd64|x64|yes)
     7680                        MACHINE="AMD64" ; # default to AMD64 64-bit build
     7681                        PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
     7682                        ;;
     7683                    ia64)
     7684                        MACHINE="IA64"
     7685                        PATH64="${MSSDK}/Bin/Win64"
     7686                        ;;
     7687                esac
     7688                if test ! -d "${PATH64}" ; then
     7689                    { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
     7690echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
     7691                    { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5
     7692echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
     7693                    do64bit="no"
     7694                else
     7695                    echo "$as_me:$LINENO: result:    Using 64-bit $MACHINE mode" >&5
     7696echo "${ECHO_T}   Using 64-bit $MACHINE mode" >&6
     7697                    do64bit_ok="yes"
     7698                fi
     7699            fi
     7700
     7701            if test "$doWince" != "no" ; then
     7702                if test "$do64bit" != "no" ; then
     7703                    { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5
     7704echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;}
     7705   { (exit 1); exit 1; }; }
     7706                fi
     7707                if test "$GCC" = "yes" ; then
     7708                    { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5
     7709echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;}
     7710   { (exit 1); exit 1; }; }
     7711                fi
     7712
    26557713    # First, look for one uninstalled.
    2656     # the alternative search directory is invoked by --with-tcl
    2657     #
    2658 
    2659     if test x"${no_tcl}" = x ; then
    2660         # we reset no_tcl in case something fails here
    2661         no_tcl=true
    2662 
    2663 # Check whether --with-tcl or --without-tcl was given.
    2664 if test "${with_tcl+set}" = set; then
    2665   withval="$with_tcl"
    2666   with_tclconfig=${withval}
     7714    # the alternative search directory is invoked by --with-celib
     7715
     7716    if test x"${no_celib}" = x ; then
     7717        # we reset no_celib in case something fails here
     7718        no_celib=true
     7719
     7720# Check whether --with-celib or --without-celib was given.
     7721if test "${with_celib+set}" = set; then
     7722  withval="$with_celib"
     7723  with_celibconfig=${withval}
    26677724fi;
    2668         echo "$as_me:$LINENO: checking for Tcl configuration" >&5
    2669 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
    2670         if test "${ac_cv_c_tclconfig+set}" = set; then
     7725        echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5
     7726echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6
     7727        if test "${ac_cv_c_celibconfig+set}" = set; then
    26717728  echo $ECHO_N "(cached) $ECHO_C" >&6
    26727729else
    26737730
    2674 
    2675             # First check to see if --with-tcl was specified.
    2676             if test x"${with_tclconfig}" != x ; then
    2677                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
    2678                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
     7731            # First check to see if --with-celibconfig was specified.
     7732            if test x"${with_celibconfig}" != x ; then
     7733                if test -d "${with_celibconfig}/inc" ; then
     7734                    ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
    26797735                else
    2680                     { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
    2681 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
     7736                    { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5
     7737echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;}
    26827738   { (exit 1); exit 1; }; }
    26837739                fi
    26847740            fi
    26857741
    2686             # then check for a private Tcl installation
    2687             if test x"${ac_cv_c_tclconfig}" = x ; then
     7742            # then check for a celib library
     7743            if test x"${ac_cv_c_celibconfig}" = x ; then
    26887744                for i in \
    2689                         ../tcl \
    2690                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
    2691                         ../../tcl \
    2692                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
    2693                         ../../../tcl \
    2694                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
    2695                     if test -f "$i/unix/tclConfig.sh" ; then
    2696                         ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
     7745                        ../celib-palm-3.0 \
     7746                        ../celib \
     7747                        ../../celib-palm-3.0 \
     7748                        ../../celib \
     7749                        `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
     7750                        ${srcdir}/../celib-palm-3.0 \
     7751                        ${srcdir}/../celib \
     7752                        `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
     7753                        ; do
     7754                    if test -d "$i/inc" ; then
     7755                        ac_cv_c_celibconfig=`(cd $i; pwd)`
    26977756                        break
    26987757                    fi
     
    27007759            fi
    27017760
    2702             # check in a few common install locations
    2703             if test x"${ac_cv_c_tclconfig}" = x ; then
    2704                 for i in `ls -d ${prefix}/lib 2>/dev/null` \
    2705                         `ls -d /usr/local/lib 2>/dev/null` ; do
    2706                     if test -f "$i/tclConfig.sh" ; then
    2707                         ac_cv_c_tclconfig=`(cd $i; pwd)`
    2708                         break
    2709                     fi
    2710                 done
    2711             fi
    2712 
    2713             # check in a few other private locations
    2714             if test x"${ac_cv_c_tclconfig}" = x ; then
    2715                 for i in \
    2716                         ${srcdir}/../tcl \
    2717                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
    2718                     if test -f "$i/unix/tclConfig.sh" ; then
    2719                     ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
    2720                     break
    2721                 fi
    2722                 done
    2723             fi
    2724 
    2725 fi
    2726 
    2727 
    2728         if test x"${ac_cv_c_tclconfig}" = x ; then
    2729             TCL_BIN_DIR="# no Tcl configs found"
    2730             { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
    2731 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
    2732             exit 0
     7761fi
     7762
     7763        if test x"${ac_cv_c_celibconfig}" = x ; then
     7764            { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5
     7765echo "$as_me: error: Cannot find celib support library directory" >&2;}
     7766   { (exit 1); exit 1; }; }
    27337767        else
    2734             no_tcl=
    2735             TCL_BIN_DIR=${ac_cv_c_tclconfig}
    2736             echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
    2737 echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
     7768            no_celib=
     7769            CELIB_DIR=${ac_cv_c_celibconfig}
     7770            CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
     7771            echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5
     7772echo "${ECHO_T}found $CELIB_DIR" >&6
    27387773        fi
    27397774    fi
    27407775
    2741 
    2742     echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
    2743 echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
    2744 
    2745     if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
    2746         echo "$as_me:$LINENO: result: loading" >&5
    2747 echo "${ECHO_T}loading" >&6
    2748         . $TCL_BIN_DIR/tclConfig.sh
    2749     else
    2750         echo "$as_me:$LINENO: result: file not found" >&5
    2751 echo "${ECHO_T}file not found" >&6
    2752     fi
    2753 
    2754     #
    2755     # The eval is required to do the TCL_DBGX substitution in the
    2756     # TCL_LIB_FILE variable
    2