diff -urN tix-8.1.3/config/acinclude.m4 tix-8.1.3-p1/config/acinclude.m4 --- tix-8.1.3/config/acinclude.m4 Fri Nov 3 12:46:22 2000 +++ tix-8.1.3-p1/config/acinclude.m4 Fri Apr 12 14:35:19 2002 @@ -1097,7 +1097,7 @@ if test x"${no_tcl}" = x ; then dnl we reset no_tcl in case something fails here no_tcl=true - AC_ARG_WITH(tclconfig, [ --with-tclconfig directory containing tcl configuration (tclConfig.sh)], + AC_ARG_WITH(tclconfig, [ --with-tclconfig directory containing tcl configuration (tclConfig.sh)], with_tclconfig=${withval}) AC_MSG_CHECKING([for Tcl configuration script]) AC_CACHE_VAL(ac_cv_c_tclconfig,[ @@ -1208,6 +1208,195 @@ ]) dnl ==================================================================== +dnl Ok, lets find the tclx source trees so we can use the headers +dnl Warning: transition of version 9 to 10 will break this algorithm +dnl because 10 sorts before 9. We also look for just tclX. +dnl The alternative search directory is involked by --with-tclxinclude +AC_DEFUN(CYG_AC_PATH_TCLX, [ + CYG_AC_PATH_TCLXH + CYG_AC_PATH_TCLXCONFIG + CYG_AC_LOAD_TCLXCONFIG +]) +AC_DEFUN(CYG_AC_PATH_TCLXH, [ +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +no_tcl=true +AC_MSG_CHECKING(for TclX headers in the source tree) +AC_ARG_WITH(tclxinclude, [ --with-tclxinclude directory where tclX headers are], with_tclinclude=${withval}) +AC_CACHE_VAL(ac_cv_c_tclxh,[ +dnl first check to see if --with-tclxinclude was specified +if test x"${with_tclxinclude}" != x ; then + if test -f ${with_tclxinclude}/tclExtend.h ; then + ac_cv_c_tclxh=`(cd ${with_tclxinclude}; pwd)` + elif test -f ${with_tclxinclude}/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd ${with_tclinclude}/generic; pwd)` + elif test -f ${with_tclxinclude}/tcl/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd ${with_tclxinclude}/tcl/generic; pwd)` + else + AC_MSG_ERROR([${with_tclxinclude} directory doesn't contain headers]) + fi +fi + +dnl next check if it came with TclX configuration file +if test x"${ac_cv_c_tclxconfig}" != x ; then + for i in $dirlist; do + if test -f $ac_cv_c_tclxconfig/$i/tcl/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd $ac_cv_c_tclxconfig/$i/tcl/generic; pwd)` + break + fi + done +fi + +dnl next check in private source directory +dnl since ls returns lowest version numbers first, reverse its output +if test x"${ac_cv_c_tclxh}" = x ; then + dnl find the top level Tcl source directory + for i in $dirlist; do + if test -n "`ls -dr $srcdir/$i/tclX* 2>/dev/null`" ; then + tclxpath=$srcdir/$i + break + fi + done + + dnl find the exact TclX source dir. We do it this way, cause there + dnl might be multiple version of TclX, and we want the most recent one. + for i in `ls -dr $tclxpath/tcl* 2>/dev/null ` ; do + if test -f $i/tcl/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd $i/tcl/generic; pwd)` + break + fi + done +fi + +dnl check if its installed with the compiler +if test x"${ac_cv_c_tclxh}" = x ; then + dnl Get the path to the compiler + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include + if test -f $ccpath/tclExtend.h; then + ac_cv_c_tclxh=$ccpath + fi +fi + +dnl see if one is installed +if test x"${ac_cv_c_tclxh}" = x ; then + AC_MSG_RESULT(none) + AC_CHECK_HEADER(tclExtend.h, ac_cv_c_tclxh=installed, ac_cv_c_tclxh="") +else + AC_MSG_RESULT(${ac_cv_c_tclxh}) +fi +]) + TCLXHDIR="" +if test x"${ac_cv_c_tclxh}" = x ; then + AC_MSG_ERROR([Can't find any TclX headers]) +fi +if test x"${ac_cv_c_tclxh}" != x ; then + no_tclx="" + if test x"${ac_cv_c_tclxh}" != x"installed" ; then + if test x"${CC}" = xcl ; then + tmp="`cygpath --windows ${ac_cv_c_tclxh}`" + ac_cv_c_tclxh="`echo $tmp | sed -e s#\\\\\\\\#/#g`" + fi + AC_MSG_RESULT(${ac_cv_c_tclxh}) + TCLXHDIR="-I${ac_cv_c_tclxh}" + fi +fi + +AC_SUBST(TCLXHDIR) +]) + +dnl ==================================================================== +dnl Ok, lets find the tclX configuration +AC_DEFUN(CYG_AC_PATH_TCLXCONFIG, [ +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +dnl First, look for one uninstalled. +dnl the alternative search directory is invoked by --with-tclxconfig +if test x"${no_tclx}" = x ; then + dnl we reset no_tclx in case something fails here + no_tclx=true + AC_ARG_WITH(tclxconfig, [ --with-tclxconfig directory containing tclX configuration (tclxConfig.sh)], + with_tclxconfig=${withval}) + AC_MSG_CHECKING([for TclX configuration script]) + AC_CACHE_VAL(ac_cv_c_tclxconfig,[ + + dnl First check to see if --with-tclxconfig was specified. + if test x"${with_tclxconfig}" != x ; then + if test -f "${with_tclxconfig}/tclxConfig.sh" ; then + ac_cv_c_tclxconfig=`(cd ${with_tclxconfig}; pwd)` + else + AC_MSG_ERROR([${with_tclxconfig} directory doesn't contain tclxConfig.sh]) + fi + fi + + dnl next check if it came with TclX configuration file in the source tree + if test x"${ac_cv_c_tclxconfig}" = x ; then + for i in $dirlist; do + if test -f $srcdir/$i/tcl/unix/tclxConfig.sh ; then + ac_cv_c_tclxconfig=`(cd $srcdir/$i/tcl/unix; pwd)` + break + fi + done + fi + dnl check in a few other locations + if test x"${ac_cv_c_tclxconfig}" = x ; then + dnl find the top level Tcl source directory + for i in $dirlist; do + if test -n "`ls -dr $i/tclx* 2>/dev/null`" ; then + tclxconfpath=$i + break + fi + done + + dnl find the exact TclX dir. We do it this way, cause there + dnl might be multiple version of TclX, and we want the most recent one. + for i in `ls -dr $tclxconfpath/tcl* 2>/dev/null ` ; do + if test -f $i/tcl/unix/tclxConfig.sh ; then + ac_cv_c_tclxconfig=`(cd $i/tcl/unix; pwd)` + break + fi + done + fi + + dnl Check to see if it's installed. We have to look in the $CC path + dnl to find it, cause our $prefix may not match the compilers. + if test x"${ac_cv_c_tclxconfig}" = x ; then + dnl Get the path to the compiler + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib + if test -f $ccpath/tclxConfig.sh; then + ac_cv_c_tclxconfig=$ccpath + fi + fi + ]) dnl end of cache_val + + if test x"${ac_cv_c_tclxconfig}" = x ; then + TCLXCONFIG="" + AC_MSG_WARN(Can't find TclX configuration definitions) + else + no_tclx="" + TCLXCONFIG=${ac_cv_c_tclxconfig}/tclxConfig.sh + AC_MSG_RESULT(${TCLXCONFIG}) + fi +fi +AC_SUBST(TCLXCONFIG) +]) + +dnl Defined as a separate macro so we don't have to cache the values +dnl from PATH_TCLXCONFIG (because this can also be cached). +AC_DEFUN(CYG_AC_LOAD_TCLXCONFIG, [ + . $TCLXCONFIG + +dnl AC_SUBST(TCLX_VERSION) + AC_SUBST(TCLX_DEFS) + + AC_SUBST(TCLX_LIBS) + +dnl not used, don't export to save symbols +dnl AC_SUBST(TCLX_LD_SEARCH_FLAGS) +dnl don't export, not used outside of configure +dnl AC_SUBST(TCLX_BUILD_LIB_SPEC) +dnl AC_SUBST(TCLX_LIB_SPEC) + +]) + +dnl ==================================================================== AC_DEFUN(CYG_AC_PATH_TK, [ CYG_AC_PATH_TKH CYG_AC_PATH_TKCONFIG @@ -1230,7 +1419,7 @@ dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." no_tk=true AC_MSG_CHECKING(for Tk headers in the source tree) -AC_ARG_WITH(tkinclude, [ --with-tkinclude directory where tk headers are], with_tkinclude=${withval}) +AC_ARG_WITH(tkinclude, [ --with-tkinclude directory where tk headers are], with_tkinclude=${withval}) AC_CACHE_VAL(ac_cv_c_tkh,[ dnl first check to see if --with-tkinclude was specified if test x"${with_tkinclude}" != x ; then @@ -1313,7 +1502,7 @@ if test x"${no_tk}" = x ; then dnl we reset no_tk in case something fails here no_tk=true - AC_ARG_WITH(tkconfig, [ --with-tkconfig directory containing tk configuration (tkConfig.sh)], + AC_ARG_WITH(tkconfig, [ --with-tkconfig directory containing tk configuration (tkConfig.sh)], with_tkconfig=${withval}) AC_MSG_CHECKING([for Tk configuration script]) AC_CACHE_VAL(ac_cv_c_tkconfig,[ diff -urN tix-8.1.3/tixConfig.sh tix-8.1.3-p1/tixConfig.sh --- tix-8.1.3/tixConfig.sh Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/tixConfig.sh Fri Apr 12 14:35:33 2002 @@ -0,0 +1,18 @@ +# tixConfig.sh -- +# $Id: tixConfig.sh.in,v 1.1 2000/11/03 02:28:58 idiscovery Exp $ +# +# +# This shell script (for sh) is generated automatically by Tix's +# configure script. It will create shell variables for most of +# the configuration options discovered by the configure script. +# This script is intended to be included by the configure scripts +# for Tcl extensions so that they don't have to figure this all +# out for themselves. +# +# The information in this file is specific to a single platform. +# +# SCCS: @(#) tclConfig.sh.in 1.20 97/07/01 11:40:19 + +# String to pass to linker to pick up the Tcl library from its +# build directory. +TIX_BUILD_LIB_SPEC='-L/remote/turbob/jwoithe/ra/tix-8.1.3/unix/tkX8.3 -ltix8.1.8.3' diff -urN tix-8.1.3/unix/tkX8.3/Makefile.in tix-8.1.3-p1/unix/tkX8.3/Makefile.in --- tix-8.1.3/unix/tkX8.3/Makefile.in Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/unix/tkX8.3/Makefile.in Fri Apr 12 14:11:06 2002 @@ -0,0 +1,567 @@ +# +# $Id: Makefile.in,v 1.1 2000/11/03 00:18:11 idiscovery Exp $ +# +# Makefile -- +# +# This file is a Makefile to compile Tix with Tk version +# 8.x. If it has the name "Makefile.in" then it is a +# template for a Makefile; to generate the actual Makefile, run +# "./configure", which is a configuration script generated by the +# "autoconf" program (constructs like "@foo@" will get replaced in the +# actual Makefile. + +# CYGNUS LOCAL: Set VPATH. +VPATH = @srcdir@ +srcdir = @srcdir@ + +#---------------------------------------------------------------- +# Things you can change to personalize the Makefile for your own +# site (you can make these changes in either Makefile.in or +# Makefile, but changes to Makefile will get lost if you re-run +# the configuration script). +#---------------------------------------------------------------- + +# Default top-level directories in which to install architecture- +# specific files (exec_prefix) and machine-independent files such +# as scripts (prefix). The values specified here may be overridden +# at configure-time with the --exec-prefix and --prefix options +# to the "configure" script. + +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +# Use datadir from TCL_PACKAGE_PATH in tclConfig.sh +datadir = @TCL_PACKAGE_PATH@ + +TIX_VERSION = @TIX_VERSION@ +TCL_VERSION = @TCL_VERSION@ + +@SET_MAKE@ + +# Directory in which to install the library of Tix scripts and demos +# (note: you can set the TIX_LIBRARY environment variable at run-time to +# override the compiled-in location): +TIX_LIBRARY = $(datadir)/tix$(TIX_VERSION) + +# Directory in which to install the archive libtix.a: +LIB_DIR = $(exec_prefix)/lib +LIB_INSTALL_DIR = $(LIB_DIR) +LIB_RUNTIME_DIR = $(LIB_DIR) + +# Directory in which to install the program tixwish: +BIN_DIR = $(exec_prefix)/bin + +# To change the compiler switches, for example to change from -O +# to -g, change the following line: +CFLAGS = -O +TIX_CFLAGS = $(CFLAGS) + +# To disable ANSI-C procedure prototypes reverse the comment characters +# on the following lines: +PROTO_FLAGS = +#PROTO_FLAGS = -DNO_PROTOTYPE + +# To enable memory debugging reverse the comment characters on the following +# lines. Warning: if you enable memory debugging, you must do it +# *everywhere*, including all the code that calls Tcl, and you must use +# ckalloc and ckfree everywhere instead of malloc and free. +MEM_DEBUG_FLAGS = +#MEM_DEBUG_FLAGS = -DTCL_MEM_DEBUG + +# Some versions of make, like SGI's, use the following variable to +# determine which shell to use for executing commands: +SHELL = /bin/sh + +# Location of the Tcl 8.x source directory. +# +TCL_SRC_DIR = @TCL_SRC_DIR@ +TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic +TCL_BIN_DIR = $(TCL_SRC_DIR)/unix + +# Some TclX 8.x details +TCLX_INC_SPEC = @TCLXHDIR@ + +# Location of the Tk 8.x source directory. +# +TK_SRC_DIR = @TK_SRC_DIR@ +TK_GENERIC_DIR = $(TK_SRC_DIR)/generic + +# Libraries to use when linking: +LIBS = @ITK_BUILD_LIB_SPEC@ @ITCL_BUILD_LIB_SPEC@ \ + @TK_BUILD_LIB_SPEC@ @TCLX_BUILD_LIB_SPEC@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@ + +# Libraries for building a stand-alone Tclsh. +# +LIBS_TCLONLY = @TCL_BUILD_LIB_SPEC@ @TCLX_BUILD_LIB_SPEC@ @TCL_LIBS@ + +RUN_TCLSH = TCL_LIBRARY=$(TCL_SRC_DIR)/library \ + TK_LIBRARY=$(TK_SRC_DIR)/library \ + $(TCL_BIN_DIR)/tclsh + + +#---------------------------------------------------------------- +# The information below is modified by the configure script when +# Makefile is generated from Makefile.in. You shouldn't normally +# modify any of this stuff by hand. +#---------------------------------------------------------------- + +CC = @CC@ + +SHLIB_CFLAGS = @SHLIB_CFLAGS@ +SHLIB_LD = @SHLIB_LD@ +SHLIB_SUFFIX = @SHLIB_SUFFIX@ +SHLIB_VERSION = @SHLIB_VERSION@ +TIX_SHLIB_CFLAGS = @TIX_SHLIB_CFLAGS@ +TK_XINCLUDES = @TK_XINCLUDES@ + +ITCL_EXT = + +SRC_DIR = @TIX_SRC_DIR@ +GENERIC_DIR = $(SRC_DIR)/generic +UNIX_DIR = $(SRC_DIR)/unix +AC_FLAGS = @DEFS@ @TIX_DEFS@ +RANLIB = @RANLIB@ +TIX_RANLIB = @TIX_RANLIB@ +INSTALL = @TIX_SRC_DIR@/install.sh -c +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ + +TIX_LIB_FILE = @TIX_LIB_FILE@ +TIX_EXE_FILE = @TIX_EXE_FILE@ +TCL_SAM_FILE = @TCL_SAM_FILE@ +TK_SAM_FILE = @TK_SAM_FILE@ +TIX_SAM_FILE = @TIX_SAM_FILE@ +TCL_SAMEXE_FILE = @TCL_SAMEXE_FILE@ +TK_SAMEXE_FILE = @TK_SAMEXE_FILE@ +TIX_SAMEXE_FILE = @TIX_SAMEXE_FILE@ + +INST_EXE = $(TIX_EXE_FILE)$(TIX_VERSION).$(TCL_VERSION)$(ITCL_EXT) +INST_TIX_SAMEXE = $(TIX_SAMEXE_FILE)$(TIX_VERSION).$(TCL_VERSION)$(ITCL_EXT) +INST_TK_SAMEXE = $(TK_SAMEXE_FILE)$(TCL_VERSION) +INST_TCL_SAMEXE = $(TCL_SAMEXE_FILE)$(TCL_VERSION) + +SAM_TARGETS = $(TIX_SAM_FILE) + +TIX_SAM_TARGETS = @TIX_SAM_TARGETS@ +SAM_INSTALL = @TIX_SAM_INSTALL@ + +ITCL_CFLAGS = + +CC_SWITCHES = $(TIX_CFLAGS) $(AC_FLAGS) -I$(TCL_GENERIC_DIR) \ + $(TCLX_INC_SPEC) \ + -I$(TCL_SRC_DIR)/unix -I$(TK_GENERIC_DIR) -I$(TK_SRC_DIR)/unix \ + $(ITCL_CFLAGS) \ + -I$(GENERIC_DIR) -I$(UNIX_DIR) $(TK_XINCLUDES) $(TIX_SHLIB_CFLAGS) + +#---------------------------------------------------------------- +# The information below should be usable as is. You shouldn't need +# to modify it. +#---------------------------------------------------------------- + +CORE_OBJS = \ + tixClass.o \ + tixCmds.o \ + tixCompat.o \ + tixError.o \ + tixGeometry.o \ + tixInit.o \ + tixItcl.o \ + tixList.o \ + tixMethod.o \ + tixOption.o \ + tixScroll.o \ + tixSmpLs.o \ + tixUtils.o \ + tixWidget.o + +DITEM_OBJS = \ + tixDItem.o \ + tixDiITxt.o \ + tixDiImg.o \ + tixDiStyle.o \ + tixDiText.o \ + tixDiWin.o + +MANAGER_OBJS = \ + tixForm.o \ + tixFormMisc.o + +WIDGET_OBJS = \ + tixGrid.o \ + tixGrData.o \ + tixGrFmt.o \ + tixGrRC.o \ + tixGrSel.o \ + tixGrSort.o \ + tixGrUtl.o \ + tixHList.o \ + tixHLCol.o \ + tixHLInd.o \ + tixHLHdr.o \ + tixInputO.o \ + tixNBFrame.o \ + tixTList.o + +MISC_OBJS = \ + tixImgCmp.o \ + tixImgXpm.o \ + tixMwm.o + +UNIX_OBJS = \ + tixUnixDraw.o \ + tixUnixXpm.o \ + tixUnixWm.o + +OBJS = $(CORE_OBJS) $(DITEM_OBJS) $(MANAGER_OBJS) $(MISC_OBJS) \ + $(WIDGET_OBJS) $(UNIX_OBJS) + +TCL_SAM_OBJS = \ + tclUnixSam80.o + +TK_SAM_OBJS = \ + tkUnixSam80.o + +TIX_SAM_OBJS = \ + $(OBJS) tixUnixSam.o + +#---------------------------------------------------------------------- +# These are the scripts that we'll compile into the SAM's. The +# scripts of TK must be included in the fixed order. +#---------------------------------------------------------------------- + +TCL_SCRIPTS = $(TCL_SRC_DIR)/library/*.tcl + +TK_SCRIPTS = \ + $(TK_SRC_DIR)/library/bgerror.tcl \ + $(TK_SRC_DIR)/library/dialog.tcl \ + $(TK_SRC_DIR)/library/focus.tcl \ + $(TK_SRC_DIR)/library/obsolete.tcl \ + $(TK_SRC_DIR)/library/optMenu.tcl \ + $(TK_SRC_DIR)/library/palette.tcl \ + $(TK_SRC_DIR)/library/tearoff.tcl \ + $(TK_SRC_DIR)/library/clrpick.tcl \ + $(TK_SRC_DIR)/library/comdlg.tcl \ + $(TK_SRC_DIR)/library/msgbox.tcl \ + $(TK_SRC_DIR)/library/tkfbox.tcl \ + $(TK_SRC_DIR)/library/xmfbox.tcl \ + $(SRC_DIR)/generic/tk4.2/tk.tcl \ + $(TK_SRC_DIR)/library/button.tcl \ + $(TK_SRC_DIR)/library/entry.tcl \ + $(TK_SRC_DIR)/library/listbox.tcl \ + $(TK_SRC_DIR)/library/menu.tcl \ + $(TK_SRC_DIR)/library/scale.tcl \ + $(TK_SRC_DIR)/library/scrlbar.tcl \ + $(TK_SRC_DIR)/library/text.tcl \ + $(SRC_DIR)/generic/tk8.0/console.tcl + +TIX_SCRIPTS = \ + $(SRC_DIR)/library/pref/*.fsc \ + $(SRC_DIR)/library/pref/*.csc \ + $(SRC_DIR)/library/*.tcl + +all: $(TIX_LIB_FILE) $(TIX_EXE_FILE) @TIX_SAM_TARGETS@ + +$(TIX_LIB_FILE): $(OBJS) + rm -f $(TIX_LIB_FILE) + @TIX_MAKE_LIB@ + $(TIX_RANLIB) $(TIX_LIB_FILE) + +$(TCL_SAM_FILE): $(TCL_SAM_OBJS) + rm -f $(TCL_SAM_FILE) + @TCL_MAKE_SAM@ + $(TIX_RANLIB) $(TCL_SAM_FILE) + +$(TK_SAM_FILE): $(TK_SAM_OBJS) + rm -f $(TK_SAM_FILE) + @TK_MAKE_SAM@ + $(TIX_RANLIB) $(TK_SAM_FILE) + +$(TIX_SAM_FILE): $(TIX_SAM_OBJS) + rm -f $(TIX_SAM_FILE) + @TIX_MAKE_SAM@ + $(TIX_RANLIB) $(TIX_SAM_FILE) + +$(TIX_EXE_FILE): tixAppInit.o $(TIX_LIB_FILE) + $(CC) @LD_FLAGS@ tixAppInit.o @TIX_BUILD_LIB_SPEC@ $(LIBS) \ + @TIX_LD_SEARCH_FLAGS@ -o $(TIX_EXE_FILE) + +$(TCL_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) + $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TCL $(UNIX_DIR)/samAppInit.c \ + @TCL_BUILD_SAM_SPEC@ $(LIBS_TCLONLY) \ + @TIX_LD_SEARCH_FLAGS@ -o $(TCL_SAMEXE_FILE) + +$(TK_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE) + $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TK $(UNIX_DIR)/samAppInit.c \ + @TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ $(LIBS) \ + @TIX_LD_SEARCH_FLAGS@ -o $(TK_SAMEXE_FILE) + +$(TIX_SAMEXE_FILE): $(UNIX_DIR)/samAppInit.c $(TCL_SAM_FILE) $(TK_SAM_FILE) \ + $(TIX_SAM_FILE) + $(CC) $(CC_SWITCHES) @LD_FLAGS@ -DUSE_TIX $(UNIX_DIR)/samAppInit.c \ + @TIX_BUILD_SAM_SPEC@ \ + @TK_BUILD_SAM_SPEC@ @TCL_BUILD_SAM_SPEC@ \ + $(LIBS) \ + @TIX_LD_SEARCH_FLAGS@ -o $(TIX_SAMEXE_FILE) + + +#---------------------------------------------------------------------- +# +# .o file rules +# +#---------------------------------------------------------------------- +tixAppInit.o : tixAppInit.c + $(CC) -c $(CC_SWITCHES) $(srcdir)/tixAppInit.c + +tixClass.o : $(GENERIC_DIR)/tixClass.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixClass.c + +tixCmds.o: $(GENERIC_DIR)/tixCmds.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCmds.c + +tixCompat.o: $(GENERIC_DIR)/tixCompat.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixCompat.c + +tixDItem.o: $(GENERIC_DIR)/tixDItem.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDItem.c + +tixDiImg.o: $(GENERIC_DIR)/tixDiImg.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiImg.c + +tixDiITxt.o: $(GENERIC_DIR)/tixDiITxt.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiITxt.c + +tixDiStyle.o: $(GENERIC_DIR)/tixDiStyle.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiStyle.c + +tixDiText.o: $(GENERIC_DIR)/tixDiText.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiText.c + +tixDiWin.o: $(GENERIC_DIR)/tixDiWin.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixDiWin.c + +tixError.o: $(GENERIC_DIR)/tixError.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixError.c + +tixForm.o: $(GENERIC_DIR)/tixForm.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixForm.c + +tixFormMisc.o: $(GENERIC_DIR)/tixFormMisc.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixFormMisc.c + +tixGeometry.o: $(GENERIC_DIR)/tixGeometry.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGeometry.c + +tixGrid.o: $(GENERIC_DIR)/tixGrid.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrid.c + +tixGrData.o: $(GENERIC_DIR)/tixGrData.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrData.c + +tixGrFmt.o: $(GENERIC_DIR)/tixGrFmt.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrFmt.c + +tixGrRC.o: $(GENERIC_DIR)/tixGrRC.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrRC.c + +tixGrSel.o: $(GENERIC_DIR)/tixGrSel.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSel.c + +tixGrSort.o: $(GENERIC_DIR)/tixGrSort.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrSort.c + +tixGrUtl.o: $(GENERIC_DIR)/tixGrUtl.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixGrUtl.c + +tixHLCol.o: $(GENERIC_DIR)/tixHLCol.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLCol.c + +tixHLHdr.o: $(GENERIC_DIR)/tixHLHdr.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLHdr.c + +tixHLInd.o: $(GENERIC_DIR)/tixHLInd.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHLInd.c + +tixHList.o: $(GENERIC_DIR)/tixHList.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixHList.c + +tixImgCmp.o: $(GENERIC_DIR)/tixImgCmp.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgCmp.c + +tixImgXpm.o: $(GENERIC_DIR)/tixImgXpm.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixImgXpm.c + +tixInit.o: $(GENERIC_DIR)/tixInit.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInit.c + +tixItcl.o: $(GENERIC_DIR)/tixItcl.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixItcl.c + +tixInputO.o : $(GENERIC_DIR)/tixInputO.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixInputO.c + +tixList.o: $(GENERIC_DIR)/tixList.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixList.c + +tixMethod.o : $(GENERIC_DIR)/tixMethod.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMethod.c + +tixMwm.o: $(GENERIC_DIR)/tixMwm.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixMwm.c + +tixNBFrame.o: $(GENERIC_DIR)/tixNBFrame.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixNBFrame.c + +tixOption.o: $(GENERIC_DIR)/tixOption.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixOption.c + +tixSmpLs.o: $(GENERIC_DIR)/tixSmpLs.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixSmpLs.c + +tixScroll.o: $(GENERIC_DIR)/tixScroll.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixScroll.c + +tixTList.o: $(GENERIC_DIR)/tixTList.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixTList.c + +tixUtils.o: $(GENERIC_DIR)/tixUtils.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixUtils.c + +tixWidget.o: $(GENERIC_DIR)/tixWidget.c + $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tixWidget.c + +tixUnixDraw.o: $(UNIX_DIR)/tixUnixDraw.c + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixDraw.c + +tixUnixXpm.o: $(UNIX_DIR)/tixUnixXpm.c + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixXpm.c + +tixUnixWm.o: $(UNIX_DIR)/tixUnixWm.c + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixWm.c + +# +# Dependence rules for SAM +# +tclUnixSam80.o: tclUnixSam80.c tclSamLib.c + $(CC) -c $(CC_SWITCHES) tclUnixSam80.c + +tclSamLib.c: + $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TCL_SCRIPTS) \ + > tclSamLib.c + +tkUnixSam80.o: tkUnixSam80.c tkSamLib.c + $(CC) -c $(CC_SWITCHES) tkUnixSam80.c + +tkSamLib.c: + $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TK_SCRIPTS) \ + > tkSamLib.c + +tixUnixSam.o: $(UNIX_DIR)/tixUnixSam.c tixSamLib.c + $(CC) -c -I. $(CC_SWITCHES) $(UNIX_DIR)/tixUnixSam.c + +tixSamLib.c: + $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TIX_SCRIPTS) \ + > tixSamLib.c + + +tests: $(TIX_EXE_FILE) + TCL_LIBRARY=$(TCL_SRC_DIR)/library TK_LIBRARY=$(TK_SRC_DIR)/library \ + ITCL_LIBRARY=$(ITCL_SRC_DIR)/library \ + ITK_LIBRARY=$(ITK_SRC_DIR)/library \ + IWIDGETS_LIBRARY=$(ITCL_ROOT_DIR)/$(IWIDGETS) \ + TIX_LIBRARY=$(SRC_DIR)/library \ + LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:.:$(TCL_SRC_DIR)/unix:$(TK_SRC_DIR)/unix \ + ./$(TIX_EXE_FILE) $(SRC_DIR)/tests/Driver.tcl + +sa-tests: $(TIX_SAMEXE_FILE) + ./$(TIX_SAMEXE_FILE) $(SRC_DIR)/tests/Driver.tcl + +#---------------------------------------------------------------------- +# +# INSTALLATION +# +#---------------------------------------------------------------------- +_install_: $(TIX_LIB_FILE) $(TIX_EXE_FILE) $(SAM_INSTALL) + @for i in $(LIB_DIR) $(BIN_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @echo "Installing $(TIX_LIB_FILE) as $(LIB_DIR)/$(TIX_LIB_FILE)" + @$(INSTALL_DATA) $(TIX_LIB_FILE) $(LIB_DIR)/$(TIX_LIB_FILE) + @echo "Installing $(TIX_EXE_FILE) as $(BIN_DIR)/$(INST_EXE)" + @$(INSTALL_PROGRAM) $(TIX_EXE_FILE) $(BIN_DIR)/$(INST_EXE) + @echo "Installing tixConfig.sh" + @$(INSTALL_DATA) ../../tixConfig.sh $(LIB_DIR)/tixConfig.sh + +_install_sam_exe_: $(SAM_TARGETS) + @for i in $(LIB_DIR) $(BIN_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @echo "Installing $(TK_SAM_FILE) as $(LIB_DIR)/$(TK_SAM_FILE)" + @$(INSTALL_DATA) $(TK_SAM_FILE) $(LIB_DIR)/$(TK_SAM_FILE) + @echo "Installing $(TCL_SAM_FILE) as $(LIB_DIR)/$(TCL_SAM_FILE)" + @$(INSTALL_DATA) $(TCL_SAM_FILE) $(LIB_DIR)/$(TCL_SAM_FILE) + @echo "" + @echo "Installing $(TIX_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TIX_SAMEXE)" + @$(INSTALL_PROGRAM) $(TIX_SAMEXE_FILE) $(BIN_DIR)/$(INST_TIX_SAMEXE) + @echo "Installing $(TK_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TK_SAMEXE)" + @$(INSTALL_PROGRAM) $(TK_SAMEXE_FILE) $(BIN_DIR)/$(INST_TK_SAMEXE) + @echo "Installing $(TCL_SAMEXE_FILE) as $(BIN_DIR)/$(INST_TCL_SAMEXE)" + @$(INSTALL_PROGRAM) $(TCL_SAMEXE_FILE) $(BIN_DIR)/$(INST_TCL_SAMEXE) + +_install_sam_lib_: $(SAM_TARGETS) + @for i in $(LIB_DIR) $(BIN_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @echo "Installing $(TIX_SAM_FILE) as $(LIB_DIR)/$(TIX_SAM_FILE)" + @$(INSTALL_DATA) $(TIX_SAM_FILE) $(LIB_DIR)/$(TIX_SAM_FILE) + + +install: _install_ + @echo The binary files have been installed. + @echo You probably need to make install in the parent directory + @echo to install other files. + +sam_clean: + rm -f tixSamLib.c $(UNIX_DIR)/tixBitmaps.c + +clean: + rm -f *.so *.a *.o *_s.o core errs *~ \#* TAGS *.E sta* \ + a.out errors $(TIX_EXE_FILE) $(TIX_LIB_FILE) *.bak \ + $(SAM_TARGETS) tclSamLib.c tkSamLib.c + +distclean: clean + rm -f Makefile config.* lib.exp + +depend: + makedepend -- $(CC_SWITCHES) -- $(SRCS) + +# CYGNUS LOCAL: Makefile depends upon config.status +Makefile: Makefile.in config.status + ./config.status + +.c.o: + $(CC) -c $(CC_SWITCHES) $< + +# CYGNUS LOCAL: Rebuild config.status when appropriate. +config.status: configure + $(SHELL) config.status --recheck + +# DO NOT DELETE THIS LINE -- make depend depends on it. + diff -urN tix-8.1.3/unix/tkX8.3/aclocal.m4 tix-8.1.3-p1/unix/tkX8.3/aclocal.m4 --- tix-8.1.3/unix/tkX8.3/aclocal.m4 Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/unix/tkX8.3/aclocal.m4 Fri Apr 12 10:04:48 2002 @@ -0,0 +1 @@ +"sinclude(../../config/acinclude.m4)" diff -urN tix-8.1.3/unix/tkX8.3/configure tix-8.1.3-p1/unix/tkX8.3/configure --- tix-8.1.3/unix/tkX8.3/configure Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/unix/tkX8.3/configure Fri Apr 12 14:35:24 2002 @@ -0,0 +1,4087 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by Autoconf 2.50. +# +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=/usr/local +cross_compiling=no +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Avoid depending upon Character Ranges. +ac_cr_az='abcdefghijklmnopqrstuvwxyz' +ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +ac_cr_09='0123456789' +ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 + +# Sed expression to map a string onto a valid sh and CPP variable names. +ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" +ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" + +ac_unique_file="../../generic/tixInit.c" + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= + +ac_prev= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_option in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "enable_$ac_feature='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "with_$ac_package='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir \ + exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + NONE ) ;; + *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: should be removed in autoconf 3.0. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources in $srcdir" >&2 + { (exit 1); exit 1; }; } + fi +fi +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias +ac_env_CC_set=${CC+set} +ac_env_CC_value=$CC +ac_cv_env_CC_set=${CC+set} +ac_cv_env_CC_value=$CC +ac_env_CFLAGS_set=${CFLAGS+set} +ac_env_CFLAGS_value=$CFLAGS +ac_cv_env_CFLAGS_set=${CFLAGS+set} +ac_cv_env_CFLAGS_value=$CFLAGS +ac_env_LDFLAGS_set=${LDFLAGS+set} +ac_env_LDFLAGS_value=$LDFLAGS +ac_cv_env_LDFLAGS_set=${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=$LDFLAGS +ac_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_env_CPPFLAGS_value=$CPPFLAGS +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=$CPPFLAGS +ac_env_CPP_set=${CPP+set} +ac_env_CPP_value=$CPP +ac_cv_env_CPP_set=${CPP+set} +ac_cv_env_CPP_value=$CPP + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat < if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +EOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue + cd $ac_subdir + # A "../" for each directory in /$ac_subdir. + ac_dots=`echo $ac_subdir | + sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` + + case $srcdir in + .) # No --srcdir option. We are building in place. + ac_sub_srcdir=$srcdir ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_sub_srcdir=$srcdir/$ac_subdir ;; + *) # Relative path. + ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; + esac + + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_sub_srcdir/configure.gnu; then + echo + $SHELL $ac_sub_srcdir/configure.gnu --help=recursive + elif test -f $ac_sub_srcdir/configure; then + echo + $SHELL $ac_sub_srcdir/configure --help=recursive + elif test -f $ac_sub_srcdir/configure.ac || + test -f $ac_sub_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\EOF + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +EOF + exit 0 +fi +exec 5>config.log +cat >&5 </dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +hostinfo = `(hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +PATH = $PATH + +_ASUNAME +} >&5 + +cat >&5 <\?\"\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=" " ;; + *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" + ac_sep=" " ;; + esac + # Get rid of the leading space. +done + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + echo >&5 + echo "## ----------------- ##" >&5 + echo "## Cache variables. ##" >&5 + echo "## ----------------- ##" >&5 + echo >&5 + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} >&5 + sed "/^$/d" confdefs.h >conftest.log + if test -s conftest.log; then + echo >&5 + echo "## ------------ ##" >&5 + echo "## confdefs.h. ##" >&5 + echo "## ------------ ##" >&5 + echo >&5 + cat conftest.log >&5 + fi + (echo; echo) >&5 + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" >&5 + echo "$as_me: exit $exit_status" >&5 + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >confdefs.h + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:824: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + cat "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:835: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:843: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_suggest_removing_cache=false +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val="\$ac_cv_env_${ac_var}_value" + eval ac_new_val="\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:859: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_suggest_removing_cache=: ;; + ,set) + { echo "$as_me:863: WARNING: \`$ac_var' was not set in the previous run" >&5 +echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} + ac_suggest_removing_cache=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + { echo "$as_me:869: WARNING: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:871: WARNING: former value: $ac_old_val" >&5 +echo "$as_me: WARNING: former value: $ac_old_val" >&2;} + { echo "$as_me:873: WARNING: current value: $ac_new_val" >&5 +echo "$as_me: WARNING: current value: $ac_new_val" >&2;} + ac_suggest_removing_cache=: + fi;; + esac +done +if $ac_suggest_removing_cache; then + { echo "$as_me:880: WARNING: changes in the environment can compromise the build" >&5 +echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} + { echo "$as_me:882: WARNING: consider removing $cache_file and starting over" >&5 +echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:901: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:904: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' +else + ac_path_separator=: +fi +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh + +#-------------------------------------------------------------------- +# Remove the ./config.cache file and rerun configure if +# the cache file belong to a different architecture +# +# This doesn't seem to work in the Cygnus environment, +# it causes an error message about having more than +# one target, so I disabled it. meissner@cygnus.com +#---------------------------------------------------------------------- +#AC_CHECK_PROG(UNAME, uname -a, [uname -a], "") +#if test "$UNAME" = ""; then +# AC_CHECK_PROG(UNAME, uname, [uname], "") +#fi +# +#if test "$UNAME" != ""; then +# uname=`$UNAME` +# AC_MSG_CHECKING([cached value of \$uname]) +# AC_CACHE_VAL(ac_cv_prog_uname, [nocached=1 ac_cv_prog_uname=`$UNAME`]) +# if test "$nocached" = "1"; then +# AC_MSG_RESULT(no) +# else +# AC_MSG_RESULT(yes) +# fi +# +# if test "$uname" != "$ac_cv_prog_uname"; then +# echo "Running on a different machine/architecture. Can't use cached values" +# echo "Removing config.cache and running configure again ..." +# rm -f config.cache +# CMDLINE="$0 $*" +# exec $CMDLINE +# fi +#fi + +#---------------------------------------------------------------------- +# We don't want to use any relative path because we need to generate +# Makefile's in subdirectories +#---------------------------------------------------------------------- +if test "$INSTALL" = "./install.sh"; then + INSTALL=`pwd`/install.sh +fi + +#-------------------------------------------------------------------- +# Version information about this TIX release. +#-------------------------------------------------------------------- + +TIX_VERSION=8.1 +TIX_MAJOR_VERSION=8 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.8.3 + +VERSION=${BIN_VERSION} + +#-------------------------------------------------------------------- +# See if user wants to use gcc to compile Tix. This option must +# be used before any checking that uses the C compiler. +#-------------------------------------------------------------------- + +# Check whether --enable-gcc or --disable-gcc was given. +if test "${enable_gcc+set}" = set; then + enableval="$enable_gcc" + tix_ok=$enableval +else + tix_ok=no +fi; +if test "$tix_ok" = "yes"; then + CC="gcc" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +echo "$as_me:988: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="${ac_tool_prefix}gcc" +echo "$as_me:1003: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1011: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:1014: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo "$as_me:1023: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="gcc" +echo "$as_me:1038: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1046: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1049: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +echo "$as_me:1062: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="${ac_tool_prefix}cc" +echo "$as_me:1077: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1085: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:1088: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:1097: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="cc" +echo "$as_me:1112: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1120: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1123: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=$ac_ct_CC +else + CC="$ac_cv_prog_CC" +fi + +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo "$as_me:1136: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue +fi +ac_cv_prog_CC="cc" +echo "$as_me:1156: found $ac_dir/$ac_word" >&5 +break +done + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" ${1+"$@"} + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1178: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:1181: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:1192: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_CC="$ac_tool_prefix$ac_prog" +echo "$as_me:1207: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:1215: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:1218: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:1231: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_CC="$ac_prog" +echo "$as_me:1246: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:1254: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:1257: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CC" && break +done + + CC=$ac_ct_CC +fi + +fi + +test -z "$CC" && { { echo "$as_me:1269: error: no acceptable cc found in \$PATH" >&5 +echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} + { (exit 1); exit 1; }; } + +cat >conftest.$ac_ext <<_ACEOF +#line 1274 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compiler, and finding out an intuition +# of exeext. +echo "$as_me:1290: checking for C compiler default output" >&5 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:1293: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=$? + echo "$as_me:1296: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + a.out ) # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:1313: error: C compiler cannot create executables" >&5 +echo "$as_me: error: C compiler cannot create executables" >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:1319: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1324: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:1330: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1333: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:1340: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&2;} + { (exit 1); exit 1; }; } + fi + fi +fi +echo "$as_me:1348: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1355: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:1357: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:1360: checking for executable suffix" >&5 +echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 +if { (eval echo "$as_me:1362: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:1365: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + { { echo "$as_me:1381: error: cannot compute EXEEXT: cannot compile and link" >&5 +echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +echo "$as_me:1387: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +echo "$as_me:1393: checking for object suffix" >&5 +echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1399 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:1411: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1414: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:1426: error: cannot compute OBJEXT: cannot compile" >&5 +echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:1433: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:1437: checking whether we are using the GNU C compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 +if test "${ac_cv_c_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1443 "configure" +#include "confdefs.h" + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1458: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1461: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1464: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1467: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_compiler_gnu=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:1479: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 +GCC=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +CFLAGS="-g" +echo "$as_me:1485: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1491 "configure" +#include "confdefs.h" + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1503: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1506: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1509: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1512: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_g=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_prog_cc_g=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:1522: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +cat >conftest.$ac_ext <<_ACEOF +#ifndef __cplusplus + choke me +#endif +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1549: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1552: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1555: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1558: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ + ''\ + '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +#line 1570 "configure" +#include "confdefs.h" +#include +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1583: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1586: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1589: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1592: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +continue +fi +rm -f conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +#line 1602 "configure" +#include "confdefs.h" +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:1614: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:1617: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1620: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1623: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +echo '#ifdef __cplusplus' >>confdefs.h +echo $ac_declaration >>confdefs.h +echo '#endif' >>confdefs.h + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:1664: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:1684: checking for a BSD compatible install" >&5 +echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_save_IFS=$IFS; IFS=$ac_path_separator + for ac_dir in $PATH; do + IFS=$ac_save_IFS + # Account for people who put trailing slashes in PATH elements. + case $ac_dir/ in + / | ./ | .// | /cC/* \ + | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ + | /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if $as_executable_p "$ac_dir/$ac_prog"; then + if test $ac_prog = install && + grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:1733: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo "$as_me:1747: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" +echo "$as_me:1762: found $ac_dir/$ac_word" >&5 +break +done + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + echo "$as_me:1770: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 +else + echo "$as_me:1773: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo "$as_me:1782: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else + ac_save_IFS=$IFS; IFS=$ac_path_separator +ac_dummy="$PATH" +for ac_dir in $ac_dummy; do + IFS=$ac_save_IFS + test -z "$ac_dir" && ac_dir=. + $as_executable_p "$ac_dir/$ac_word" || continue +ac_cv_prog_ac_ct_RANLIB="ranlib" +echo "$as_me:1797: found $ac_dir/$ac_word" >&5 +break +done + + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + echo "$as_me:1806: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6 +else + echo "$as_me:1809: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + RANLIB=$ac_ct_RANLIB +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:1823: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + # break 2 since there is a loop in there. + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +#line 1845 "configure" +#include "confdefs.h" +#include + Syntax error +_ACEOF +if { (eval echo "$as_me:1850: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1856: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +#line 1879 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:1883: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1889: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break 2 +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +echo "$as_me:1926: result: $CPP" >&5 +echo "${ECHO_T}$CPP" >&6 +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +#line 1936 "configure" +#include "confdefs.h" +#include + Syntax error +_ACEOF +if { (eval echo "$as_me:1941: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1947: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +#line 1970 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:1974: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:1980: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:2008: error: C preprocessor \"$CPP\" fails sanity check" >&5 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +for ac_header in unistd.h limits.h +do +ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` +echo "$as_me:2022: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 2028 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:2032: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:2038: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + eval "$ac_ac_Header=no" +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:2057: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:2087: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:2091: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + +#-------------------------------------------------------------------- +# unsigned char is not supported by some non-ANSI compilers. +#-------------------------------------------------------------------- + +echo "$as_me:2100: checking unsigned char" >&5 +echo $ECHO_N "checking unsigned char... $ECHO_C" >&6 +cat >conftest.$ac_ext <<_ACEOF +#line 2103 "configure" +#include "confdefs.h" +#include +int +main () +{ + + unsigned char c = 'c'; + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:2117: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:2120: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2123: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2126: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + tcl_ok=supported +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +tcl_ok=notsupported +fi +rm -f conftest.$ac_objext conftest.$ac_ext + +echo "$as_me:2136: result: $tcl_ok" >&5 +echo "${ECHO_T}$tcl_ok" >&6 +if test $tcl_ok = supported; then + cat >>confdefs.h <<\EOF +#define UCHAR_SUPPORTED 1 +EOF + +fi + +#-------------------------------------------------------------------- +# Check whether there is an strcasecmp function on this system. +# This is a bit tricky because under SCO it's in -lsocket and +# under Sequent Dynix it's in -linet. +#-------------------------------------------------------------------- + +echo "$as_me:2151: checking for strcasecmp" >&5 +echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 +if test "${ac_cv_func_strcasecmp+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 2157 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strcasecmp (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) +choke me +#else +f = strcasecmp; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:2188: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:2191: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:2194: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2197: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_strcasecmp=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_strcasecmp=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:2207: result: $ac_cv_func_strcasecmp" >&5 +echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 +if test $ac_cv_func_strcasecmp = yes; then + tcl_ok=1 +else + tcl_ok=0 +fi + +if test "$tcl_ok" = 0; then + echo "$as_me:2216: checking for strcasecmp in -lsocket" >&5 +echo $ECHO_N "checking for strcasecmp in -lsocket... $ECHO_C" >&6 +if test "${ac_cv_lib_socket_strcasecmp+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line 2224 "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp (); +int +main () +{ +strcasecmp (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:2243: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:2246: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:2249: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2252: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_socket_strcasecmp=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_socket_strcasecmp=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:2263: result: $ac_cv_lib_socket_strcasecmp" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_strcasecmp" >&6 +if test $ac_cv_lib_socket_strcasecmp = yes; then + tcl_ok=1 +else + tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + echo "$as_me:2273: checking for strcasecmp in -linet" >&5 +echo $ECHO_N "checking for strcasecmp in -linet... $ECHO_C" >&6 +if test "${ac_cv_lib_inet_strcasecmp+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-linet $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line 2281 "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp (); +int +main () +{ +strcasecmp (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:2300: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:2303: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:2306: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:2309: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_inet_strcasecmp=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_inet_strcasecmp=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:2320: result: $ac_cv_lib_inet_strcasecmp" >&5 +echo "${ECHO_T}$ac_cv_lib_inet_strcasecmp" >&6 +if test $ac_cv_lib_inet_strcasecmp = yes; then + tcl_ok=1 +else + tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + cat >>confdefs.h <<\EOF +#define NO_STRCASECMP 1 +EOF + +fi + +# Check for Tcl, Tk and TclX. + +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +if test x"${no_tcl}" = x ; then + no_tcl=true + +# Check whether --with-tclconfig or --without-tclconfig was given. +if test "${with_tclconfig+set}" = set; then + withval="$with_tclconfig" + with_tclconfig=${withval} +fi; + echo "$as_me:2347: checking for Tcl configuration script" >&5 +echo $ECHO_N "checking for Tcl configuration script... $ECHO_C" >&6 + if test "${ac_cv_c_tclconfig+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x"${with_tclconfig}" != x ; then + if test -f "${with_tclconfig}/tclConfig.sh" ; then + ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` + else + { { echo "$as_me:2357: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 +echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} + { (exit 1); exit 1; }; } + fi + fi + + if test x"${ac_cv_c_tclconfig}" = x ; then + for i in $dirlist; do + if test -f $srcdir/$i/unix/tclConfig.sh ; then + ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)` + break + fi + done + fi + if test x"${ac_cv_c_tclconfig}" = x ; then + for i in $dirlist; do + if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then + tclconfpath=$i + break + fi + done + + for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do + if test -f $i/unix/tclConfig.sh ; then + ac_cv_c_tclconfig=`(cd $i/unix; pwd)` + break + fi + done + fi + + if test x"${ac_cv_c_tclconfig}" = x ; then + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib + if test -f $ccpath/tclConfig.sh; then + ac_cv_c_tclconfig=$ccpath + fi + fi + +fi + + if test x"${ac_cv_c_tclconfig}" = x ; then + TCLCONFIG="" + { echo "$as_me:2398: WARNING: Can't find Tcl configuration definitions" >&5 +echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} + else + no_tcl="" + TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh + echo "$as_me:2403: result: ${TCLCONFIG}" >&5 +echo "${ECHO_T}${TCLCONFIG}" >&6 + fi +fi + + . $TCLCONFIG + +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +if test x"${no_tk}" = x ; then + no_tk=true + +# Check whether --with-tkconfig or --without-tkconfig was given. +if test "${with_tkconfig+set}" = set; then + withval="$with_tkconfig" + with_tkconfig=${withval} +fi; + echo "$as_me:2419: checking for Tk configuration script" >&5 +echo $ECHO_N "checking for Tk configuration script... $ECHO_C" >&6 + if test "${ac_cv_c_tkconfig+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x"${with_tkconfig}" != x ; then + if test -f "${with_tkconfig}/tkConfig.sh" ; then + ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` + else + { { echo "$as_me:2429: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 +echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} + { (exit 1); exit 1; }; } + fi + fi + + if test x"${ac_cv_c_tkconfig}" = x ; then + for i in $dirlist; do + if test -f $srcdir/$i/unix/tkConfig.sh ; then + ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)` + break + fi + done + fi + if test x"${ac_cv_c_tkconfig}" = x ; then + for i in $dirlist; do + if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then + tkconfpath=$i + break + fi + done + + for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do + if test -f $i/unix/tkConfig.sh ; then + ac_cv_c_tkconfig=`(cd $i/unix; pwd)` + break + fi + done + fi + + if test x"${ac_cv_c_tkconfig}" = x ; then + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib + if test -f $ccpath/tkConfig.sh; then + ac_cv_c_tkconfig=$ccpath + fi + fi + +fi + + if test x"${ac_cv_c_tkconfig}" = x ; then + TKCONFIG="" + { echo "$as_me:2470: WARNING: Can't find Tk configuration definitions" >&5 +echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} + else + no_tk="" + TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh + echo "$as_me:2475: result: ${TKCONFIG}" >&5 +echo "${ECHO_T}${TKCONFIG}" >&6 + fi +fi + + if test -f "$TKCONFIG" ; then + . $TKCONFIG + fi + +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +if test x"${no_tclx}" = x ; then + no_tclx=true + +# Check whether --with-tclxconfig or --without-tclxconfig was given. +if test "${with_tclxconfig+set}" = set; then + withval="$with_tclxconfig" + with_tclxconfig=${withval} +fi; + echo "$as_me:2493: checking for TclX configuration script" >&5 +echo $ECHO_N "checking for TclX configuration script... $ECHO_C" >&6 + if test "${ac_cv_c_tclxconfig+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + if test x"${with_tclxconfig}" != x ; then + if test -f "${with_tclxconfig}/tclxConfig.sh" ; then + ac_cv_c_tclxconfig=`(cd ${with_tclxconfig}; pwd)` + else + { { echo "$as_me:2503: error: ${with_tclxconfig} directory doesn't contain tclxConfig.sh" >&5 +echo "$as_me: error: ${with_tclxconfig} directory doesn't contain tclxConfig.sh" >&2;} + { (exit 1); exit 1; }; } + fi + fi + + if test x"${ac_cv_c_tclxconfig}" = x ; then + for i in $dirlist; do + if test -f $srcdir/$i/tcl/unix/tclxConfig.sh ; then + ac_cv_c_tclxconfig=`(cd $srcdir/$i/tcl/unix; pwd)` + break + fi + done + fi + if test x"${ac_cv_c_tclxconfig}" = x ; then + for i in $dirlist; do + if test -n "`ls -dr $i/tclx* 2>/dev/null`" ; then + tclxconfpath=$i + break + fi + done + + for i in `ls -dr $tclxconfpath/tcl* 2>/dev/null ` ; do + if test -f $i/tcl/unix/tclxConfig.sh ; then + ac_cv_c_tclxconfig=`(cd $i/tcl/unix; pwd)` + break + fi + done + fi + + if test x"${ac_cv_c_tclxconfig}" = x ; then + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib + if test -f $ccpath/tclxConfig.sh; then + ac_cv_c_tclxconfig=$ccpath + fi + fi + +fi + + if test x"${ac_cv_c_tclxconfig}" = x ; then + TCLXCONFIG="" + { echo "$as_me:2544: WARNING: Can't find TclX configuration definitions" >&5 +echo "$as_me: WARNING: Can't find TclX configuration definitions" >&2;} + else + no_tclx="" + TCLXCONFIG=${ac_cv_c_tclxconfig}/tclxConfig.sh + echo "$as_me:2549: result: ${TCLXCONFIG}" >&5 +echo "${ECHO_T}${TCLXCONFIG}" >&6 + fi +fi + + . $TCLXCONFIG + +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +no_tcl=true +echo "$as_me:2558: checking for Tcl headers in the source tree" >&5 +echo $ECHO_N "checking for Tcl headers in the source tree... $ECHO_C" >&6 + +# Check whether --with-tclinclude or --without-tclinclude was given. +if test "${with_tclinclude+set}" = set; then + withval="$with_tclinclude" + with_tclinclude=${withval} +fi; +if test "${ac_cv_c_tclh+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +if test x"${with_tclinclude}" != x ; then + if test -f ${with_tclinclude}/tcl.h ; then + ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` + elif test -f ${with_tclinclude}/generic/tcl.h ; then + ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` + else + { { echo "$as_me:2576: error: ${with_tclinclude} directory doesn't contain headers" >&5 +echo "$as_me: error: ${with_tclinclude} directory doesn't contain headers" >&2;} + { (exit 1); exit 1; }; } + fi +fi + +if test x"${ac_cv_c_tclconfig}" != x ; then + for i in $dirlist; do + if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then + ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)` + break + fi + done +fi + +if test x"${ac_cv_c_tclh}" = x ; then + for i in $dirlist; do + if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then + tclpath=$srcdir/$i + break + fi + done + + for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do + if test -f $i/generic/tcl.h ; then + ac_cv_c_tclh=`(cd $i/generic; pwd)` + break + fi + done +fi + +if test x"${ac_cv_c_tclh}" = x ; then + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include + if test -f $ccpath/tcl.h; then + ac_cv_c_tclh=$ccpath + fi +fi + +if test x"${ac_cv_c_tclh}" = x ; then + echo "$as_me:2615: result: none" >&5 +echo "${ECHO_T}none" >&6 + echo "$as_me:2617: checking for tcl.h" >&5 +echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 +if test "${ac_cv_header_tcl_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 2623 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:2627: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:2633: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_tcl_h=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_tcl_h=no +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:2652: result: $ac_cv_header_tcl_h" >&5 +echo "${ECHO_T}$ac_cv_header_tcl_h" >&6 +if test $ac_cv_header_tcl_h = yes; then + ac_cv_c_tclh=installed +else + ac_cv_c_tclh="" +fi + +else + echo "$as_me:2661: result: ${ac_cv_c_tclh}" >&5 +echo "${ECHO_T}${ac_cv_c_tclh}" >&6 +fi + +fi + + TCLHDIR="" +if test x"${ac_cv_c_tclh}" = x ; then + { { echo "$as_me:2669: error: Can't find any Tcl headers" >&5 +echo "$as_me: error: Can't find any Tcl headers" >&2;} + { (exit 1); exit 1; }; } +fi +if test x"${ac_cv_c_tclh}" != x ; then + no_tcl="" + if test x"${ac_cv_c_tclh}" != x"installed" ; then + if test x"${CC}" = xcl ; then + tmp="`cygpath --windows ${ac_cv_c_tclh}`" + ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`" + fi + echo "$as_me:2680: result: ${ac_cv_c_tclh}" >&5 +echo "${ECHO_T}${ac_cv_c_tclh}" >&6 + TCLHDIR="-I${ac_cv_c_tclh}" + fi +fi + +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +no_tcl=true +echo "$as_me:2688: checking for TclX headers in the source tree" >&5 +echo $ECHO_N "checking for TclX headers in the source tree... $ECHO_C" >&6 + +# Check whether --with-tclxinclude or --without-tclxinclude was given. +if test "${with_tclxinclude+set}" = set; then + withval="$with_tclxinclude" + with_tclinclude=${withval} +fi; +if test "${ac_cv_c_tclxh+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +if test x"${with_tclxinclude}" != x ; then + if test -f ${with_tclxinclude}/tclExtend.h ; then + ac_cv_c_tclxh=`(cd ${with_tclxinclude}; pwd)` + elif test -f ${with_tclxinclude}/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd ${with_tclinclude}/generic; pwd)` + elif test -f ${with_tclxinclude}/tcl/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd ${with_tclxinclude}/tcl/generic; pwd)` + else + { { echo "$as_me:2708: error: ${with_tclxinclude} directory doesn't contain headers" >&5 +echo "$as_me: error: ${with_tclxinclude} directory doesn't contain headers" >&2;} + { (exit 1); exit 1; }; } + fi +fi + +if test x"${ac_cv_c_tclxconfig}" != x ; then + for i in $dirlist; do + if test -f $ac_cv_c_tclxconfig/$i/tcl/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd $ac_cv_c_tclxconfig/$i/tcl/generic; pwd)` + break + fi + done +fi + +if test x"${ac_cv_c_tclxh}" = x ; then + for i in $dirlist; do + if test -n "`ls -dr $srcdir/$i/tclX* 2>/dev/null`" ; then + tclxpath=$srcdir/$i + break + fi + done + + for i in `ls -dr $tclxpath/tcl* 2>/dev/null ` ; do + if test -f $i/tcl/generic/tclExtend.h ; then + ac_cv_c_tclxh=`(cd $i/tcl/generic; pwd)` + break + fi + done +fi + +if test x"${ac_cv_c_tclxh}" = x ; then + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include + if test -f $ccpath/tclExtend.h; then + ac_cv_c_tclxh=$ccpath + fi +fi + +if test x"${ac_cv_c_tclxh}" = x ; then + echo "$as_me:2747: result: none" >&5 +echo "${ECHO_T}none" >&6 + echo "$as_me:2749: checking for tclExtend.h" >&5 +echo $ECHO_N "checking for tclExtend.h... $ECHO_C" >&6 +if test "${ac_cv_header_tclExtend_h+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 2755 "configure" +#include "confdefs.h" +#include +_ACEOF +if { (eval echo "$as_me:2759: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:2765: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_cv_header_tclExtend_h=yes +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_tclExtend_h=no +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:2784: result: $ac_cv_header_tclExtend_h" >&5 +echo "${ECHO_T}$ac_cv_header_tclExtend_h" >&6 +if test $ac_cv_header_tclExtend_h = yes; then + ac_cv_c_tclxh=installed +else + ac_cv_c_tclxh="" +fi + +else + echo "$as_me:2793: result: ${ac_cv_c_tclxh}" >&5 +echo "${ECHO_T}${ac_cv_c_tclxh}" >&6 +fi + +fi + + TCLXHDIR="" +if test x"${ac_cv_c_tclxh}" = x ; then + { { echo "$as_me:2801: error: Can't find any TclX headers" >&5 +echo "$as_me: error: Can't find any TclX headers" >&2;} + { (exit 1); exit 1; }; } +fi +if test x"${ac_cv_c_tclxh}" != x ; then + no_tclx="" + if test x"${ac_cv_c_tclxh}" != x"installed" ; then + if test x"${CC}" = xcl ; then + tmp="`cygpath --windows ${ac_cv_c_tclxh}`" + ac_cv_c_tclxh="`echo $tmp | sed -e s#\\\\\\\\#/#g`" + fi + echo "$as_me:2812: result: ${ac_cv_c_tclxh}" >&5 +echo "${ECHO_T}${ac_cv_c_tclxh}" >&6 + TCLXHDIR="-I${ac_cv_c_tclxh}" + fi +fi + +# FIXME: consider only doing this if --with-x given. + +# +# Ok, lets find the tk source trees so we can use the headers +# If the directory (presumably symlink) named "tk" exists, use that one +# in preference to any others. Same logic is used when choosing library +# and again with Tcl. The search order is the best place to look first, then in +# decreasing significance. The loop breaks if the trigger file is found. +# Note the gross little conversion here of srcdir by cd'ing to the found +# directory. This converts the path from a relative to an absolute, so +# recursive cache variables for the path will work right. We check all +# the possible paths in one loop rather than many seperate loops to speed +# things up. +# the alternative search directory is involked by --with-tkinclude +# +dirlist="../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +no_tk=true +echo "$as_me:2835: checking for Tk headers in the source tree" >&5 +echo $ECHO_N "checking for Tk headers in the source tree... $ECHO_C" >&6 + +# Check whether --with-tkinclude or --without-tkinclude was given. +if test "${with_tkinclude+set}" = set; then + withval="$with_tkinclude" + with_tkinclude=${withval} +fi; +if test "${ac_cv_c_tkh+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +if test x"${with_tkinclude}" != x ; then + if test -f ${with_tkinclude}/tk.h ; then + ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` + elif test -f ${with_tkinclude}/generic/tk.h ; then + ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` + else + { { echo "$as_me:2853: error: ${with_tkinclude} directory doesn't contain headers" >&5 +echo "$as_me: error: ${with_tkinclude} directory doesn't contain headers" >&2;} + { (exit 1); exit 1; }; } + fi +fi + +if test x"${ac_cv_c_tkconfig}" != x ; then + for i in $dirlist; do + if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then + ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)` + break + fi + done +fi + +if test x"${ac_cv_c_tkh}" = x ; then + for i in $dirlist; do + if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then + tkpath=$srcdir/$i + break + fi + done + + for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do + if test -f $i/generic/tk.h ; then + ac_cv_c_tkh=`(cd $i/generic; pwd)` + break + fi + done +fi + +if test x"${ac_cv_c_tkh}" = x ; then + echo "$as_me:2885: result: none" >&5 +echo "${ECHO_T}none" >&6 + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include + if test -f $ccpath/tk.h; then + ac_cv_c_tkh=$ccpath + fi +else + echo "$as_me:2892: result: ${ac_cv_c_tkh}" >&5 +echo "${ECHO_T}${ac_cv_c_tkh}" >&6 +fi + +fi + + TKHDIR="" +if test x"${ac_cv_c_tkh}" = x ; then + { { echo "$as_me:2900: error: Can't find any Tk headers" >&5 +echo "$as_me: error: Can't find any Tk headers" >&2;} + { (exit 1); exit 1; }; } +fi +if test x"${ac_cv_c_tkh}" != x ; then + no_tk="" + if test x"${ac_cv_c_tkh}" != x"installed" ; then + if test x"${CC}" = xcl ; then + tmp="`cygpath --windows ${ac_cv_c_tkh}`" + ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`" + fi + echo "$as_me:2911: result: found in ${ac_cv_c_tkh}" >&5 +echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 + TKHDIR="-I${ac_cv_c_tkh}" + fi +fi + +#-------------------------------------------------------------------- +# Find out the top level source directory of the Tix package. +#-------------------------------------------------------------------- +TIX_SRC_DIR=`cd ${srcdir}/../..; pwd` + +#-------------------------------------------------------------------- +# See if we should compile SAM +#-------------------------------------------------------------------- + +# Check whether --enable-sam or --disable-sam was given. +if test "${enable_sam+set}" = set; then + enableval="$enable_sam" + ok=$enableval +else + ok=no +fi; + +if test "$ok" = "yes"; then + TIX_BUILD_SAM="yes" + TIX_SAM_TARGETS='$(SAM_TARGETS)' +else + TIX_BUILD_SAM="no" +fi + + TIX_SAM_INSTALL=_install_sam_lib_ + +IS_ITCL=0 +ITCL_BUILD_LIB_SPEC="" +ITK_BUILD_LIB_SPEC="" +TIX_EXE_FILE=tixwishx +TCL_SAMEXE_FILE=satclshx +TK_SAMEXE_FILE=sawishx +TIX_SAMEXE_FILE=satixwishx + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tcl for shared +# libraries, and arrange for it to be substituted into our +# Makefile. +#-------------------------------------------------------------------- + +CC=$TCL_CC +SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS +SHLIB_LD=$TCL_SHLIB_LD +SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS +SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX +SHLIB_VERSION=$TCL_SHLIB_VERSION + +DL_LIBS=$TCL_DL_LIBS +LD_FLAGS=$TCL_LD_FLAGS +TIX_LD_SEARCH_FLAGS=$TK_LD_SEARCH_FLAGS + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tk and arrange +# for it to be substituted into our Makefile. +#-------------------------------------------------------------------- + +TIX_DEFS="$TK_DEFS $TCL_DEFS $TCLX_DEFS" + +# Note: in the following variable, it's important to use the absolute +# path name of the Tcl directory rather than "..": this is because +# AIX remembers this path and will attempt to use it at run-time to look +# up the Tcl library. + +if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then + TIX_BUILD_LIB_SPEC="-L`pwd` -ltix${VERSION}" + TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam${VERSION}" + TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam${TCL_VERSION}" + TK_BUILD_SAM_SPEC="-L`pwd` -ltksam${TK_VERSION}" + TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix${VERSION}" +else + TIX_BUILD_LIB_SPEC="-L`pwd` -ltix`echo ${VERSION} | tr -d .`" + TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam`echo ${VERSION} | tr -d .`" + TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam`echo ${TCL_VERSION} | tr -d .`" + TK_BUILD_SAM_SPEC="-L`pwd` -ltksam`echo ${TK_VERSION} | tr -d .`" + TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix`echo ${VERSION} | tr -d .`" +fi + +#-------------------------------------------------------------------- +# See if we should compile shared library. +#-------------------------------------------------------------------- + +# Check whether --enable-shared or --disable-shared was given. +if test "${enable_shared+set}" = set; then + enableval="$enable_shared" + ok=$enableval +else + ok=no +fi; + +if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then + TIX_SHLIB_CFLAGS="${SHLIB_CFLAGS}" + TIX_RANLIB=":" + + # The main Tix library + # + eval "TIX_LIB_FILE=libtix${TCL_SHARED_LIB_SUFFIX}" + TIX_MAKE_LIB="\${SHLIB_LD} -o ${TIX_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}" + + # The Tcl SAM library + # + VERSION=8.3 + eval "TCL_SAM_FILE=libtclsam${TCL_SHARED_LIB_SUFFIX}" + TCL_MAKE_SAM="\${SHLIB_LD} -o ${TCL_SAM_FILE} \${TCL_SAM_OBJS} ${SHLIB_LD_LIBS}" + + # The Tk SAM library + # + VERSION=8.3 + eval "TK_SAM_FILE=libtksam${TCL_SHARED_LIB_SUFFIX}" + TK_MAKE_SAM="\${SHLIB_LD} -o ${TK_SAM_FILE} \${TK_SAM_OBJS} ${SHLIB_LD_LIBS}" + + # The Tix SAM library + # + VERSION=${BIN_VERSION} + eval "TIX_SAM_FILE=libtixsam${TCL_SHARED_LIB_SUFFIX}" + TIX_MAKE_SAM="\${SHLIB_LD} -o ${TIX_SAM_FILE} \${TIX_SAM_OBJS} ${SHLIB_LD_LIBS}" + +else + TIX_SHLIB_CFLAGS="" + TIX_RANLIB='$(RANLIB)' + + # The main Tix library + # + eval "TIX_LIB_FILE=libtix${TCL_UNSHARED_LIB_SUFFIX}" + TIX_MAKE_LIB="ar cr ${TIX_LIB_FILE} \${OBJS}" + + # The Tcl SAM library + + VERSION=8.3 + eval "TCL_SAM_FILE=libtclsam${TCL_UNSHARED_LIB_SUFFIX}" + TCL_MAKE_SAM="ar cr ${TCL_SAM_FILE} \${TCL_SAM_OBJS}" + + # The Tk SAM library + # + VERSION=8.3 + eval "TK_SAM_FILE=libtksam${TCL_UNSHARED_LIB_SUFFIX}" + TK_MAKE_SAM="ar cr ${TK_SAM_FILE} \${TK_SAM_OBJS}" + + # The Tix SAM library + # + VERSION=${BIN_VERSION} + eval "TIX_SAM_FILE=libtixsam${TCL_UNSHARED_LIB_SUFFIX}" + TIX_MAKE_SAM="ar cr ${TIX_SAM_FILE} \${TIX_SAM_OBJS}" +fi + +#-------------------------------------------------------------------- +# Check for the existence of the -lsocket and -lnsl libraries. +# The order here is important, so that they end up in the right +# order in the command line generated by make. Here are some +# special considerations: +# 1. Use "connect" and "accept" to check for -lsocket, and +# "gethostbyname" to check for -lnsl. +# 2. Use each function name only once: can't redo a check because +# autoconf caches the results of the last check and won't redo it. +# 3. Use -lnsl and -lsocket only if they supply procedures that +# aren't already present in the normal libraries. This is because +# IRIX 5.2 has libraries, but they aren't needed and they're +# bogus: they goof up name resolution if used. +# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. +# To get around this problem, check for both libraries together +# if -lsocket doesn't work by itself. +#-------------------------------------------------------------------- + +checked=0 +for i in $TK_LIBS; do + if test "$i" = "-lsocket"; then + checked=1 + fi +done + +if test "$checked" = "0"; then + tcl_checkBoth=0 + echo "$as_me:3088: checking for connect" >&5 +echo $ECHO_N "checking for connect... $ECHO_C" >&6 +if test "${ac_cv_func_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3094 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char connect (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_connect) || defined (__stub___connect) +choke me +#else +f = connect; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3125: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3128: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3131: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3134: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_connect=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_connect=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:3144: result: $ac_cv_func_connect" >&5 +echo "${ECHO_T}$ac_cv_func_connect" >&6 +if test $ac_cv_func_connect = yes; then + tcl_checkSocket=0 +else + tcl_checkSocket=1 +fi + + if test "$tcl_checkSocket" = 1; then + echo "$as_me:3153: checking for main in -lsocket" >&5 +echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 +if test "${ac_cv_lib_socket_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line 3161 "configure" +#include "confdefs.h" + +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3173: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3176: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3179: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3182: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_socket_main=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_socket_main=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:3193: result: $ac_cv_lib_socket_main" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 +if test $ac_cv_lib_socket_main = yes; then + TK_LIBS="$TK_LIBS -lsocket" +else + tcl_checkBoth=1 +fi + + fi + if test "$tcl_checkBoth" = 1; then + tk_oldLibs=$TK_LIBS + TK_LIBS="$TK_LIBS -lsocket -lnsl" + echo "$as_me:3205: checking for accept" >&5 +echo $ECHO_N "checking for accept... $ECHO_C" >&6 +if test "${ac_cv_func_accept+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3211 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char accept (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char accept (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_accept) || defined (__stub___accept) +choke me +#else +f = accept; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3242: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3245: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3248: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3251: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_accept=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_accept=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:3261: result: $ac_cv_func_accept" >&5 +echo "${ECHO_T}$ac_cv_func_accept" >&6 +if test $ac_cv_func_accept = yes; then + tcl_checkNsl=0 +else + TK_LIBS=$tk_oldLibs +fi + + fi + echo "$as_me:3270: checking for gethostbyname" >&5 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 +if test "${ac_cv_func_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 3276 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) +choke me +#else +f = gethostbyname; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3307: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3310: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3313: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3316: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_gethostbyname=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:3326: result: $ac_cv_func_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 +if test $ac_cv_func_gethostbyname = yes; then + : +else + echo "$as_me:3331: checking for main in -lnsl" >&5 +echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 +if test "${ac_cv_lib_nsl_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line 3339 "configure" +#include "confdefs.h" + +int +main () +{ +main (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:3351: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:3354: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3357: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:3360: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_nsl_main=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_nsl_main=no +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:3371: result: $ac_cv_lib_nsl_main" >&5 +echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 +if test $ac_cv_lib_nsl_main = yes; then + TK_LIBS="$TK_LIBS -lnsl" +fi + +fi + +fi + +echo $TCLXHDIR +echo $TCLX_BUILD_LIB_SPEC +echo $TIX_BUILD_LIB_SPEC + +#---------------------------------------------------------------------- +# Substitution strings exported by TIX +#---------------------------------------------------------------------- + +# The "binary version" of Tix (see docs/Pkg.txt) +TIX_VERSION_PKG=${BIN_VERSION} + +TIXSAM_PKG_FILE="[file join [file dirname \$dir] ${TIX_SAM_FILE}]" +# if test "$TIX_BUILD_SAM" = "yes"; then + TIX_SAM_PACKAGE_IFNEEDED="package ifneeded Tixsam ${TIX_VERSION_PKG} [list load \"${TIXSAM_PKG_FILE}\" Tixsam]" +# fi + +# The package file, usually a shared library +TIX_PKG_FILE="[file join [file dirname \$dir] ${TIX_LIB_FILE}]" + +ac_config_files="$ac_config_files Makefile pkgIndex.tcl ../../tixConfig.sh" +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overriden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + : end' >>confcache +if cmp -s $cache_file confcache; then :; else + if test -w $cache_file; then + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +# +# If the first sed substitution is executed (which looks for macros that +# take arguments), then we branch to the quote section. Otherwise, +# look for a macro that doesn't take arguments. +cat >confdef2opt.sed <<\EOF +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g +t quote +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g +t quote +d +: quote +s,[ `~#$^&*(){}\\|;'"<>?],\\&,g +s,\[,\\&,g +s,\],\\&,g +s,\$,$$,g +p +EOF +# We use echo to avoid assuming a particular line-breaking character. +# The extra dot is to prevent the shell from consuming trailing +# line-breaks from the sub-command output. A line-break within +# single-quotes doesn't work because, if this script is created in a +# platform that uses two characters for line-breaks (e.g., DOS), tr +# would break. +ac_LF_and_DOT=`echo; echo .` +DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` +rm -f confdef2opt.sed + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:3510: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated automatically by configure. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +SHELL=\${CONFIG_SHELL-$SHELL} +ac_cs_invocation="\$0 \$@" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# Name of the executable. +as_me=`echo "$0" |sed 's,.*[\\/],,'` + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +as_executable_p="test -f" + +# Support unset when possible. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + +# NLS nuisances. +$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } +$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } +$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } +$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } +$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } +$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } +$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } +$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } + +exec 6>&1 + +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\EOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + +Configuration files: +$config_files + +Report bugs to ." +EOF + +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + shift + set dummy "$ac_option" "$ac_optarg" ${1+"$@"} + shift + ;; + -*);; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_need_defaults=false;; + esac + + case $1 in + # Handling of the options. +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:3678: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + shift + CONFIG_FILES="$CONFIG_FILES $1" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + shift + CONFIG_HEADERS="$CONFIG_HEADERS $1" + ac_need_defaults=false;; + + # Handling of arguments. + 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + 'pkgIndex.tcl' ) CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; + '../../tixConfig.sh' ) CONFIG_FILES="$CONFIG_FILES ../../tixConfig.sh" ;; + + # This is an error. + -*) { { echo "$as_me:3702: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + *) { { echo "$as_me:3707: error: invalid argument: $1" >&5 +echo "$as_me: error: invalid argument: $1" >&2;} + { (exit 1); exit 1; }; };; + esac + shift +done + +exec 5>>config.log +cat >&5 << _ACEOF + +## ----------------------- ## +## Running config.status. ## +## ----------------------- ## + +This file was extended by $as_me 2.50, executed with + > $ac_cs_invocation +on `(hostname || uname -n) 2>/dev/null | sed 1q` + +_ACEOF +EOF + +cat >>$CONFIG_STATUS <<\EOF +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +fi + +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit $?); exit $?; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=/tmp} +{ + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + +EOF + +cat >>$CONFIG_STATUS <\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@DEFS@,$DEFS,;t t +s,@LIBS@,$LIBS,;t t +s,@CC@,$CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@RANLIB@,$RANLIB,;t t +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t +s,@CPP@,$CPP,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@TCLCONFIG@,$TCLCONFIG,;t t +s,@TCL_DEFS@,$TCL_DEFS,;t t +s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t +s,@TCL_LIB_FULL_PATH@,$TCL_LIB_FULL_PATH,;t t +s,@TCL_LIBS@,$TCL_LIBS,;t t +s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t +s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t +s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t +s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t +s,@TCL_RANLIB@,$TCL_RANLIB,;t t +s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t +s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t +s,@TKCONFIG@,$TKCONFIG,;t t +s,@TK_VERSION@,$TK_VERSION,;t t +s,@TK_DEFS@,$TK_DEFS,;t t +s,@TK_LIBS@,$TK_LIBS,;t t +s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t +s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t +s,@TK_XLIBSW@,$TK_XLIBSW,;t t +s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t +s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t +s,@TCLXCONFIG@,$TCLXCONFIG,;t t +s,@TCLX_DEFS@,$TCLX_DEFS,;t t +s,@TCLX_LIBS@,$TCLX_LIBS,;t t +s,@TCLHDIR@,$TCLHDIR,;t t +s,@TCLXHDIR@,$TCLXHDIR,;t t +s,@TKHDIR@,$TKHDIR,;t t +s,@TIX_RANLIB@,$TIX_RANLIB,;t t +s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t +s,@SHLIB_LD@,$SHLIB_LD,;t t +s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t +s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t +s,@SHLIB_VERSION@,$SHLIB_VERSION,;t t +s,@DL_LIBS@,$DL_LIBS,;t t +s,@LD_FLAGS@,$LD_FLAGS,;t t +s,@TCL_VERSION@,$TCL_VERSION,;t t +s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t +s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t +s,@TCLX_LIB_SPEC@,$TCLX_LIB_SPEC,;t t +s,@TCLX_BUILD_LIB_SPEC@,$TCLX_BUILD_LIB_SPEC,;t t +s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t +s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t +s,@TIX_LD_SEARCH_FLAGS@,$TIX_LD_SEARCH_FLAGS,;t t +s,@TIX_MAJOR_VERSION@,$TIX_MAJOR_VERSION,;t t +s,@TIX_MINOR_VERSION@,$TIX_MINOR_VERSION,;t t +s,@TIX_VERSION@,$TIX_VERSION,;t t +s,@TIX_SRC_DIR@,$TIX_SRC_DIR,;t t +s,@TIX_SHLIB_CFLAGS@,$TIX_SHLIB_CFLAGS,;t t +s,@TIX_MAKE_LIB@,$TIX_MAKE_LIB,;t t +s,@TIX_LIB_FILE@,$TIX_LIB_FILE,;t t +s,@TIX_BUILD_LIB_SPEC@,$TIX_BUILD_LIB_SPEC,;t t +s,@TIX_LIB_SPEC@,$TIX_LIB_SPEC,;t t +s,@TIX_EXE_FILE@,$TIX_EXE_FILE,;t t +s,@TIX_SAM_TARGETS@,$TIX_SAM_TARGETS,;t t +s,@TIX_SAM_INSTALL@,$TIX_SAM_INSTALL,;t t +s,@TCL_SAM_FILE@,$TCL_SAM_FILE,;t t +s,@TCL_MAKE_SAM@,$TCL_MAKE_SAM,;t t +s,@TK_SAM_FILE@,$TK_SAM_FILE,;t t +s,@TK_MAKE_SAM@,$TK_MAKE_SAM,;t t +s,@TIX_SAM_FILE@,$TIX_SAM_FILE,;t t +s,@TIX_MAKE_SAM@,$TIX_MAKE_SAM,;t t +s,@TIX_DEFS@,$TIX_DEFS,;t t +s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t +s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t +s,@TCL_SAMEXE_FILE@,$TCL_SAMEXE_FILE,;t t +s,@TK_SAMEXE_FILE@,$TK_SAMEXE_FILE,;t t +s,@TIX_SAMEXE_FILE@,$TIX_SAMEXE_FILE,;t t +s,@TCL_BUILD_SAM_SPEC@,$TCL_BUILD_SAM_SPEC,;t t +s,@TK_BUILD_SAM_SPEC@,$TK_BUILD_SAM_SPEC,;t t +s,@TIX_BUILD_SAM_SPEC@,$TIX_BUILD_SAM_SPEC,;t t +s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t +s,@TIX_VERSION_PKG@,$TIX_VERSION_PKG,;t t +s,@TIX_PKG_FILE@,$TIX_PKG_FILE,;t t +s,@TIX_SAM_PACKAGE_IFNEEDED@,$TIX_SAM_PACKAGE_IFNEEDED,;t t +CEOF + +EOF + + cat >>$CONFIG_STATUS <<\EOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat + fi +fi # test -n "$CONFIG_FILES" + +EOF +cat >>$CONFIG_STATUS <<\EOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + { case "$ac_dir" in + [\\/]* | ?:[\\/]* ) as_incr_dir=;; + *) as_incr_dir=.;; +esac +as_dummy="$ac_dir" +for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do + case $as_mkdir_dir in + # Skip DOS drivespec + ?:) as_incr_dir=$as_mkdir_dir ;; + *) + as_incr_dir=$as_incr_dir/$as_mkdir_dir + test -d "$as_incr_dir" || mkdir "$as_incr_dir" + ;; + esac +done; } + + ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` + else + ac_dir_suffix= ac_dots= + fi + + case $srcdir in + .) ac_srcdir=. + if test -z "$ac_dots"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_dots$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_dots$srcdir ;; + esac + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_dots$INSTALL ;; + esac + + if test x"$ac_file" != x-; then + { echo "$as_me:4002: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated automatically by config.status. */ + configure_input="Generated automatically from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:4020: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:4033: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +EOF +cat >>$CONFIG_STATUS <>$CONFIG_STATUS <<\EOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@srcdir@,$ac_srcdir,;t t +s,@top_srcdir@,$ac_top_srcdir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + +done +EOF + +cat >>$CONFIG_STATUS <<\EOF + +{ (exit 0); exit 0; } +EOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + exec 5>/dev/null + $SHELL $CONFIG_STATUS || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi + diff -urN tix-8.1.3/unix/tkX8.3/configure.in tix-8.1.3-p1/unix/tkX8.3/configure.in --- tix-8.1.3/unix/tkX8.3/configure.in Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/unix/tkX8.3/configure.in Fri Apr 12 14:35:50 2002 @@ -0,0 +1,376 @@ +dnl $Id: configure.in,v 1.1 2000/11/03 00:20:04 idiscovery Exp $ +dnl This file is an input file used by the GNU "autoconf" program to +dnl generate the file "configure", which is run to configure the +dnl Makefile in this directory. + +AC_INIT(../../generic/tixInit.c) + +#-------------------------------------------------------------------- +# Remove the ./config.cache file and rerun configure if +# the cache file belong to a different architecture +# +# This doesn't seem to work in the Cygnus environment, +# it causes an error message about having more than +# one target, so I disabled it. meissner@cygnus.com +#---------------------------------------------------------------------- +#AC_CHECK_PROG(UNAME, uname -a, [uname -a], "") +#if test "$UNAME" = ""; then +# AC_CHECK_PROG(UNAME, uname, [uname], "") +#fi +# +#if test "$UNAME" != ""; then +# uname=`$UNAME` +# AC_MSG_CHECKING([cached value of \$uname]) +# AC_CACHE_VAL(ac_cv_prog_uname, [nocached=1 ac_cv_prog_uname=`$UNAME`]) +# if test "$nocached" = "1"; then +# AC_MSG_RESULT(no) +# else +# AC_MSG_RESULT(yes) +# fi +# +# if test "$uname" != "$ac_cv_prog_uname"; then +# echo "Running on a different machine/architecture. Can't use cached values" +# echo "Removing config.cache and running configure again ..." +# rm -f config.cache +# CMDLINE="$0 $*" +# exec $CMDLINE +# fi +#fi + +#---------------------------------------------------------------------- +# We don't want to use any relative path because we need to generate +# Makefile's in subdirectories +#---------------------------------------------------------------------- +if test "$INSTALL" = "./install.sh"; then + INSTALL=`pwd`/install.sh +fi + +#-------------------------------------------------------------------- +# Version information about this TIX release. +#-------------------------------------------------------------------- + +TIX_VERSION=8.1 +TIX_MAJOR_VERSION=8 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.8.3 + + +VERSION=${BIN_VERSION} + +#-------------------------------------------------------------------- +# See if user wants to use gcc to compile Tix. This option must +# be used before any checking that uses the C compiler. +#-------------------------------------------------------------------- + +AC_ARG_ENABLE(gcc, [ --enable-gcc allow use of gcc if available], + [tix_ok=$enableval], [tix_ok=no]) +if test "$tix_ok" = "yes"; then + CC="gcc" +fi +AC_PROG_CC +AC_SUBST(CC) + +AC_PROG_INSTALL +AC_PROG_RANLIB +AC_HAVE_HEADERS(unistd.h limits.h) +AC_PROG_MAKE_SET + +#-------------------------------------------------------------------- +# unsigned char is not supported by some non-ANSI compilers. +#-------------------------------------------------------------------- + +AC_MSG_CHECKING([unsigned char]) +AC_TRY_COMPILE([#include ],[ + unsigned char c = 'c'; +], tcl_ok=supported, tcl_ok=notsupported) + +AC_MSG_RESULT($tcl_ok) +if test $tcl_ok = supported; then + AC_DEFINE(UCHAR_SUPPORTED) +fi + +#-------------------------------------------------------------------- +# Check whether there is an strcasecmp function on this system. +# This is a bit tricky because under SCO it's in -lsocket and +# under Sequent Dynix it's in -linet. +#-------------------------------------------------------------------- + +AC_CHECK_FUNC(strcasecmp, tcl_ok=1, tcl_ok=0) +if test "$tcl_ok" = 0; then + AC_CHECK_LIB(socket, strcasecmp, tcl_ok=1, tcl_ok=0) +fi +if test "$tcl_ok" = 0; then + AC_CHECK_LIB(inet, strcasecmp, tcl_ok=1, tcl_ok=0) +fi +if test "$tcl_ok" = 0; then + AC_DEFINE(NO_STRCASECMP) +fi + +# Check for Tcl, Tk and TclX. +CYG_AC_PATH_TCLCONFIG +CYG_AC_LOAD_TCLCONFIG +CYG_AC_PATH_TKCONFIG +CYG_AC_LOAD_TKCONFIG +CYG_AC_PATH_TCLXCONFIG +CYG_AC_LOAD_TCLXCONFIG +CYG_AC_PATH_TCLH +CYG_AC_PATH_TCLXH + +# FIXME: consider only doing this if --with-x given. +CYG_AC_PATH_TKH + +#-------------------------------------------------------------------- +# Find out the top level source directory of the Tix package. +#-------------------------------------------------------------------- +TIX_SRC_DIR=`cd ${srcdir}/../..; pwd` + +#-------------------------------------------------------------------- +# See if we should compile SAM +#-------------------------------------------------------------------- + +AC_ARG_ENABLE(sam, + [ --enable-sam build stand-alone modules], + [ok=$enableval], [ok=no]) + +if test "$ok" = "yes"; then + TIX_BUILD_SAM="yes" + TIX_SAM_TARGETS='$(SAM_TARGETS)' +else + TIX_BUILD_SAM="no" +fi + + TIX_SAM_INSTALL=_install_sam_lib_ + +IS_ITCL=0 +ITCL_BUILD_LIB_SPEC="" +ITK_BUILD_LIB_SPEC="" +TIX_EXE_FILE=tixwishx +TCL_SAMEXE_FILE=satclshx +TK_SAMEXE_FILE=sawishx +TIX_SAMEXE_FILE=satixwishx + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tcl for shared +# libraries, and arrange for it to be substituted into our +# Makefile. +#-------------------------------------------------------------------- + +CC=$TCL_CC +SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS +SHLIB_LD=$TCL_SHLIB_LD +SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS +SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX +SHLIB_VERSION=$TCL_SHLIB_VERSION + +DL_LIBS=$TCL_DL_LIBS +LD_FLAGS=$TCL_LD_FLAGS +TIX_LD_SEARCH_FLAGS=$TK_LD_SEARCH_FLAGS + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tk and arrange +# for it to be substituted into our Makefile. +#-------------------------------------------------------------------- + +TIX_DEFS="$TK_DEFS $TCL_DEFS $TCLX_DEFS" + +# Note: in the following variable, it's important to use the absolute +# path name of the Tcl directory rather than "..": this is because +# AIX remembers this path and will attempt to use it at run-time to look +# up the Tcl library. + +if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then + TIX_BUILD_LIB_SPEC="-L`pwd` -ltix${VERSION}" + TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam${VERSION}" + TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam${TCL_VERSION}" + TK_BUILD_SAM_SPEC="-L`pwd` -ltksam${TK_VERSION}" + TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix${VERSION}" +else + TIX_BUILD_LIB_SPEC="-L`pwd` -ltix`echo ${VERSION} | tr -d .`" + TIX_BUILD_SAM_SPEC="-L`pwd` -ltixsam`echo ${VERSION} | tr -d .`" + TCL_BUILD_SAM_SPEC="-L`pwd` -ltclsam`echo ${TCL_VERSION} | tr -d .`" + TK_BUILD_SAM_SPEC="-L`pwd` -ltksam`echo ${TK_VERSION} | tr -d .`" + TIX_LIB_SPEC="-L${exec_prefix}/lib -ltix`echo ${VERSION} | tr -d .`" +fi + +#-------------------------------------------------------------------- +# See if we should compile shared library. +#-------------------------------------------------------------------- + +AC_ARG_ENABLE(shared, + [ --enable-shared build libtix as a shared library], + [ok=$enableval], [ok=no]) + +if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then + TIX_SHLIB_CFLAGS="${SHLIB_CFLAGS}" + TIX_RANLIB=":" + + # The main Tix library + # + eval "TIX_LIB_FILE=libtix${TCL_SHARED_LIB_SUFFIX}" + TIX_MAKE_LIB="\${SHLIB_LD} -o ${TIX_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}" + + # The Tcl SAM library + # + VERSION=8.3 + eval "TCL_SAM_FILE=libtclsam${TCL_SHARED_LIB_SUFFIX}" + TCL_MAKE_SAM="\${SHLIB_LD} -o ${TCL_SAM_FILE} \${TCL_SAM_OBJS} ${SHLIB_LD_LIBS}" + + # The Tk SAM library + # + VERSION=8.3 + eval "TK_SAM_FILE=libtksam${TCL_SHARED_LIB_SUFFIX}" + TK_MAKE_SAM="\${SHLIB_LD} -o ${TK_SAM_FILE} \${TK_SAM_OBJS} ${SHLIB_LD_LIBS}" + + # The Tix SAM library + # + VERSION=${BIN_VERSION} + eval "TIX_SAM_FILE=libtixsam${TCL_SHARED_LIB_SUFFIX}" + TIX_MAKE_SAM="\${SHLIB_LD} -o ${TIX_SAM_FILE} \${TIX_SAM_OBJS} ${SHLIB_LD_LIBS}" + +else + TIX_SHLIB_CFLAGS="" + TIX_RANLIB='$(RANLIB)' + + # The main Tix library + # + eval "TIX_LIB_FILE=libtix${TCL_UNSHARED_LIB_SUFFIX}" + TIX_MAKE_LIB="ar cr ${TIX_LIB_FILE} \${OBJS}" + + # The Tcl SAM library + + VERSION=8.3 + eval "TCL_SAM_FILE=libtclsam${TCL_UNSHARED_LIB_SUFFIX}" + TCL_MAKE_SAM="ar cr ${TCL_SAM_FILE} \${TCL_SAM_OBJS}" + + # The Tk SAM library + # + VERSION=8.3 + eval "TK_SAM_FILE=libtksam${TCL_UNSHARED_LIB_SUFFIX}" + TK_MAKE_SAM="ar cr ${TK_SAM_FILE} \${TK_SAM_OBJS}" + + # The Tix SAM library + # + VERSION=${BIN_VERSION} + eval "TIX_SAM_FILE=libtixsam${TCL_UNSHARED_LIB_SUFFIX}" + TIX_MAKE_SAM="ar cr ${TIX_SAM_FILE} \${TIX_SAM_OBJS}" +fi + + +#-------------------------------------------------------------------- +# Check for the existence of the -lsocket and -lnsl libraries. +# The order here is important, so that they end up in the right +# order in the command line generated by make. Here are some +# special considerations: +# 1. Use "connect" and "accept" to check for -lsocket, and +# "gethostbyname" to check for -lnsl. +# 2. Use each function name only once: can't redo a check because +# autoconf caches the results of the last check and won't redo it. +# 3. Use -lnsl and -lsocket only if they supply procedures that +# aren't already present in the normal libraries. This is because +# IRIX 5.2 has libraries, but they aren't needed and they're +# bogus: they goof up name resolution if used. +# 4. On some SVR4 systems, can't use -lsocket without -lnsl too. +# To get around this problem, check for both libraries together +# if -lsocket doesn't work by itself. +#-------------------------------------------------------------------- + +checked=0 +for i in $TK_LIBS; do + if test "$i" = "-lsocket"; then + checked=1 + fi +done + +if test "$checked" = "0"; then + tcl_checkBoth=0 + AC_CHECK_FUNC(connect, tcl_checkSocket=0, tcl_checkSocket=1) + if test "$tcl_checkSocket" = 1; then + AC_CHECK_LIB(socket, main, TK_LIBS="$TK_LIBS -lsocket", + tcl_checkBoth=1) + fi + if test "$tcl_checkBoth" = 1; then + tk_oldLibs=$TK_LIBS + TK_LIBS="$TK_LIBS -lsocket -lnsl" + AC_CHECK_FUNC(accept, tcl_checkNsl=0, [TK_LIBS=$tk_oldLibs]) + fi + AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, + [TK_LIBS="$TK_LIBS -lnsl"])) +fi + +AC_SUBST(datadir) +#---------------------------------------------------------------------- +# Substitution strings exported by TIX +#---------------------------------------------------------------------- +AC_SUBST(SHELL) +AC_SUBST(CC) +AC_SUBST(RANLIB) +AC_SUBST(TIX_RANLIB) +AC_SUBST(SHLIB_CFLAGS) +AC_SUBST(SHLIB_LD) +AC_SUBST(SHLIB_LD_LIBS) +AC_SUBST(SHLIB_SUFFIX) +AC_SUBST(SHLIB_VERSION) +AC_SUBST(DL_LIBS) +AC_SUBST(LD_FLAGS) +AC_SUBST(TCL_BUILD_LIB_SPEC) +AC_SUBST(TCL_LIBS) +AC_SUBST(TCL_VERSION) +AC_SUBST(TCL_SRC_DIR) +AC_SUBST(TCL_BIN_DIR) +AC_SUBST(TCLXHDIR) +AC_SUBST(TCLX_LIBS) +AC_SUBST(TCLX_LIB_SPEC) +AC_SUBST(TCLX_BUILD_LIB_SPEC) +AC_SUBST(TK_BUILD_LIB_SPEC) +AC_SUBST(TK_LIBS) +AC_SUBST(TK_VERSION) +AC_SUBST(TK_SRC_DIR) +AC_SUBST(TK_BIN_DIR) +AC_SUBST(TK_XINCLUDES) +AC_SUBST(TIX_LD_SEARCH_FLAGS) +AC_SUBST(TIX_MAJOR_VERSION) +AC_SUBST(TIX_MINOR_VERSION) +AC_SUBST(TIX_VERSION) +AC_SUBST(TIX_SRC_DIR) +AC_SUBST(TIX_SHLIB_CFLAGS) +AC_SUBST(TIX_MAKE_LIB) +AC_SUBST(TIX_LIB_FILE) +AC_SUBST(TIX_BUILD_LIB_SPEC) +AC_SUBST(TIX_LIB_SPEC) +AC_SUBST(TIX_EXE_FILE) +AC_SUBST(TIX_SAM_TARGETS) +AC_SUBST(TIX_SAM_INSTALL) +AC_SUBST(TCL_SAM_FILE) +AC_SUBST(TCL_MAKE_SAM) +AC_SUBST(TK_SAM_FILE) +AC_SUBST(TK_MAKE_SAM) +AC_SUBST(TIX_SAM_FILE) +AC_SUBST(TIX_MAKE_SAM) +AC_SUBST(TIX_DEFS) +AC_SUBST(ITCL_BUILD_LIB_SPEC) +AC_SUBST(ITK_BUILD_LIB_SPEC) +AC_SUBST(TCL_SAMEXE_FILE) +AC_SUBST(TK_SAMEXE_FILE) +AC_SUBST(TIX_SAMEXE_FILE) +AC_SUBST(TCL_BUILD_SAM_SPEC) +AC_SUBST(TK_BUILD_SAM_SPEC) +AC_SUBST(TIX_BUILD_SAM_SPEC) +AC_SUBST(TCL_PACKAGE_PATH) + +# The "binary version" of Tix (see docs/Pkg.txt) +TIX_VERSION_PKG=${BIN_VERSION} +AC_SUBST(TIX_VERSION_PKG) + +TIXSAM_PKG_FILE="[[file join [file dirname \$dir] ${TIX_SAM_FILE}]]" +# if test "$TIX_BUILD_SAM" = "yes"; then + TIX_SAM_PACKAGE_IFNEEDED="package ifneeded Tixsam ${TIX_VERSION_PKG} [[list load \"${TIXSAM_PKG_FILE}\" Tixsam]]" +# fi + +# The package file, usually a shared library +TIX_PKG_FILE="[[file join [file dirname \$dir] ${TIX_LIB_FILE}]]" +AC_SUBST(TIX_PKG_FILE) +AC_SUBST(TIX_SAM_PACKAGE_IFNEEDED) + +AC_OUTPUT(Makefile pkgIndex.tcl ../../tixConfig.sh) + diff -urN tix-8.1.3/unix/tkX8.3/pkgIndex.tcl.in tix-8.1.3-p1/unix/tkX8.3/pkgIndex.tcl.in --- tix-8.1.3/unix/tkX8.3/pkgIndex.tcl.in Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/unix/tkX8.3/pkgIndex.tcl.in Fri Apr 12 10:04:48 2002 @@ -0,0 +1,8 @@ +# Tcl package index file, version 1.0 +# +# $Id: pkgIndex.tcl.in,v 1.1.2.1 2001/11/04 05:00:43 idiscovery Exp $ +# + +package ifneeded Tix @TIX_VERSION_PKG@ [list load "@TIX_PKG_FILE@" Tix] +@TIX_SAM_PACKAGE_IFNEEDED@ +package ifneeded wm_default 1.0 [list source [file join $dir pref WmDefault.tcl]] diff -urN tix-8.1.3/unix/tkX8.3/tixAppInit.c tix-8.1.3-p1/unix/tkX8.3/tixAppInit.c --- tix-8.1.3/unix/tkX8.3/tixAppInit.c Thu Jan 1 09:30:00 1970 +++ tix-8.1.3-p1/unix/tkX8.3/tixAppInit.c Fri Apr 12 14:37:16 2002 @@ -0,0 +1,121 @@ +/* $Id: tixAppInit.c,v 1.1.2.1 2001/11/15 05:18:16 idiscovery Exp $ */ +/* + * + * tixAppInit.c -- + * + * Provides a default version of the Tcl_AppInit procedure for + * use in wish and similar Tk-based applications. + * + * Copyright (c) 1995 Ioi K Lam + * Copyright (c) 1993 The Regents of the University of California. + * Copyright (c) 1994 Sun Microsystems, Inc. + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + */ + +#include +#include +#include + +/* + * The following variable is a special hack that is needed in order for + * Sun shared libraries to be used for Tcl. + */ + +extern int matherr(); +int *tclDummyMathPtr = (int *) matherr; + +/* + *---------------------------------------------------------------------- + * + * main -- + * + * This is the main program for the application. + * + * Results: + * None: Tk_Main never returns here, so this procedure never + * returns either. + * + * Side effects: + * Whatever the application does. + * + *---------------------------------------------------------------------- + */ + +int +main(argc, argv) + int argc; /* Number of command-line arguments. */ + char **argv; /* Values of command-line arguments. */ +{ + Tk_Main(argc, argv, Tcl_AppInit); + return 0; /* Needed only to prevent compiler warning. */ +} + +/* + *---------------------------------------------------------------------- + * + * Tcl_AppInit -- + * + * This procedure performs application-specific initialization. + * Most applications, especially those that incorporate additional + * packages, will have their own version of this procedure. + * + * Results: + * Returns a standard Tcl completion code, and leaves an error + * message in interp->result if an error occurs. + * + * Side effects: + * Depends on the startup script. + * + *---------------------------------------------------------------------- + */ + +int +Tcl_AppInit(interp) + Tcl_Interp *interp; /* Interpreter for application. */ +{ + if (Tcl_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } + if (Tclx_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } + if (Tk_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } + Tcl_StaticPackage(interp, "Tk", Tk_Init, (Tcl_PackageInitProc *) NULL); + if (Tix_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } + Tcl_StaticPackage(interp, "Tix", Tix_Init, (Tcl_PackageInitProc *) NULL); + + /* + * Call the init procedures for included packages. Each call should + * look like this: + * + * if (Mod_Init(interp) == TCL_ERROR) { + * return TCL_ERROR; + * } + * + * where "Mod" is the name of the module. + */ + + /* + * Call Tcl_CreateCommand for application-specific commands, if + * they weren't already created by the init procedures called above. + */ + + /* + Tix_SetRcFileName(interp, "~/.tixwishrc"); + In the past, the interactive initialization file was inconsistent, + and on Windows, $env(HOME) is undefined or most users don't even + know where there HOME is (Profiles\User\Application Data\)! + So a site wide initialization file tixwishrc.tcl is now used, + which must be in the same directory as the executable. To restore + the past behaviour, simply add the following line to that file: + if {[file isfile [set file ~/.tixwishrc]]} {source $file} + */ + + return TCL_OK; +}