OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/insight/tix/unix
    from Rev 578 to Rev 1765
    Reverse comparison

Rev 578 → Rev 1765

/configure
0,0 → 1,1506
#! /bin/sh
 
# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12.2
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
 
# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
--with-tclconfig directory containing tcl configuration (tclConfig.sh)"
ac_help="$ac_help
--with-tkconfig directory containing tk configuration (tkConfig.sh)"
ac_help="$ac_help
--with-tclinclude directory where tcl headers are"
ac_help="$ac_help
--with-tkinclude directory where tk headers are"
 
# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
 
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
 
ac_prev=
for ac_option
do
 
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi
 
case "$ac_option" in
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) ac_optarg= ;;
esac
 
# Accept the important Cygnus configure options, so we can diagnose typos.
 
case "$ac_option" in
 
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;
 
-build | --build | --buil | --bui | --bu)
ac_prev=build ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;
 
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;
 
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir="$ac_optarg" ;;
 
-disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
eval "enable_${ac_feature}=no" ;;
 
-enable-* | --enable-*)
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "enable_${ac_feature}='$ac_optarg'" ;;
 
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
exec_prefix="$ac_optarg" ;;
 
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
 
-help | --help | --hel | --he)
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print \`checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
EOF
cat << EOF
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
fi
exit 0 ;;
 
-host | --host | --hos | --ho)
ac_prev=host ;;
-host=* | --host=* | --hos=* | --ho=*)
host="$ac_optarg" ;;
 
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir="$ac_optarg" ;;
 
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir="$ac_optarg" ;;
 
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir="$ac_optarg" ;;
 
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir="$ac_optarg" ;;
 
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
localstatedir="$ac_optarg" ;;
 
-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 ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target="$ac_optarg" ;;
 
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
 
-version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 2.12.2"
exit 0 ;;
 
-with-* | --with-*)
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
case "$ac_option" in
*=*) ;;
*) ac_optarg=yes ;;
esac
eval "with_${ac_package}='$ac_optarg'" ;;
 
-without-* | --without-*)
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
fi
ac_package=`echo $ac_package| sed 's/-/_/g'`
eval "with_${ac_package}=no" ;;
 
--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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
;;
 
*)
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
echo "configure: warning: $ac_option: invalid host type" 1>&2
fi
if test "x$nonopt" != xNONE; then
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
fi
nonopt="$ac_option"
;;
 
esac
done
 
if test -n "$ac_prev"; then
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
exec 6>/dev/null
else
exec 6>&1
fi
exec 5>./config.log
 
echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5
 
# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
case "$ac_arg" in
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c) ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
esac
done
 
# NLS nuisances.
# Only set these to C if already set. These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h
 
# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=../generic/tixInit.c
 
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then its parent.
ac_prog=$0
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
else
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
. "$ac_site_file"
fi
done
 
if test -r "$cache_file"; then
echo "loading cache $cache_file"
. $cache_file
else
echo "creating cache $cache_file"
> $cache_file
fi
 
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
 
ac_exeext=
ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
ac_n= ac_c='
' ac_t=' '
else
ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi
 
 
 
ac_aux_dir=
for ac_dir in $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
fi
done
if test -z "$ac_aux_dir"; then
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AIX 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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:565: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
for ac_dir in $PATH; do
# Account for people who put trailing slashes in PATH elements.
case "$ac_dir/" in
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
if test -f $ac_dir/$ac_prog; then
if test $ac_prog = install &&
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
else
ac_cv_path_install="$ac_dir/$ac_prog -c"
break 2
fi
fi
done
;;
esac
done
IFS="$ac_save_IFS"
 
fi
if test "${ac_cv_path_install+set}" = set; then
INSTALL="$ac_cv_path_install"
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL="$ac_install_sh"
fi
fi
echo "$ac_t""$INSTALL" 1>&6
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:616: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftestmake <<\EOF
all:
@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 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 conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
echo "$ac_t""yes" 1>&6
SET_MAKE=
else
echo "$ac_t""no" 1>&6
SET_MAKE="MAKE=${MAKE-make}"
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
SRC_DIR=`cd ${srcdir}/..; pwd`
 
 
# Check for Tcl and Tk.
 
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 $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6
echo "configure:665: checking for Tcl configuration script" >&5
if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; 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 "configure: warning: Can't find Tcl configuration definitions" 1>&2
else
no_tcl=""
TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
echo "$ac_t""${TCLCONFIG}" 1>&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 $ac_n "checking for Tk configuration script""... $ac_c" 1>&6
echo "configure:752: checking for Tk configuration script" >&5
if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; 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 "configure: warning: Can't find Tk configuration definitions" 1>&2
else
no_tk=""
TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
echo "$ac_t""${TKCONFIG}" 1>&6
fi
fi
 
 
 
if test -f "$TKCONFIG" ; then
. $TKCONFIG
fi
 
 
 
 
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:828: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# This must be in double quotes, not single quotes, because CPP may get
# substituted into the Makefile and "${CC-cc}" will confuse make.
CPP="${CC-cc} -E"
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 843 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 860 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 877 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
fi
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
else
ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6
 
 
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
no_tcl=true
echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6
echo "configure:911: checking for Tcl headers in the source tree" >&5
# Check whether --with-tclinclude or --without-tclinclude was given.
if test "${with_tclinclude+set}" = set; then
withval="$with_tclinclude"
with_tclinclude=${withval}
fi
 
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; 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 "$ac_t""none" 1>&6
ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
echo "configure:968: checking for tcl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 973 "configure"
#include "confdefs.h"
#include <tcl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_cv_c_tclh=installed
else
echo "$ac_t""no" 1>&6
ac_cv_c_tclh=""
fi
 
else
echo "$ac_t""${ac_cv_c_tclh}" 1>&6
fi
 
fi
 
TCLHDIR=""
if test x"${ac_cv_c_tclh}" = x ; then
{ echo "configure: error: Can't find any Tcl headers" 1>&2; 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 "$ac_t""${ac_cv_c_tclh}" 1>&6
TCLHDIR="-I${ac_cv_c_tclh}"
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 $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6
echo "configure:1042: checking for Tk headers in the source tree" >&5
# Check whether --with-tkinclude or --without-tkinclude was given.
if test "${with_tkinclude+set}" = set; then
withval="$with_tkinclude"
with_tkinclude=${withval}
fi
 
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; 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 "$ac_t""none" 1>&6
ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include
if test -f $ccpath/tk.h; then
ac_cv_c_tkh=$ccpath
fi
else
echo "$ac_t""${ac_cv_c_tkh}" 1>&6
fi
 
fi
 
TKHDIR=""
if test x"${ac_cv_c_tkh}" = x ; then
{ echo "configure: error: Can't find any Tk headers" 1>&2; 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 "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
TKHDIR="-I${ac_cv_c_tkh}"
fi
fi
 
 
 
 
SUBDIR=tk${TK_VERSION}
 
subdirs="${SUBDIR}"
 
 
TIX_VERSION=4.1
 
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
case `(ac_space=' '; set) 2>&1 | grep ac_space` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
sed -n \
-e "s/'/'\\\\''/g" \
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
;;
esac >> confcache
if cmp -s $cache_file confcache; then
:
else
if test -w $cache_file; then
echo "updating cache $cache_file"
cat confcache > $cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
fi
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
cat > conftest.defs <<\EOF
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
s%\[%\\&%g
s%\]%\\&%g
s%\$%$$%g
EOF
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
rm -f conftest.defs
 
 
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
 
echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
case "\$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
*) echo "\$ac_cs_usage"; exit 1 ;;
esac
done
 
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
 
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
 
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
s%@INSTALL_DATA@%$INSTALL_DATA%g
s%@SET_MAKE@%$SET_MAKE%g
s%@SRC_DIR@%$SRC_DIR%g
s%@TCLCONFIG@%$TCLCONFIG%g
s%@TCL_DEFS@%$TCL_DEFS%g
s%@TCL_LIBS@%$TCL_LIBS%g
s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
s%@TCL_RANLIB@%$TCL_RANLIB%g
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
s%@TKCONFIG@%$TKCONFIG%g
s%@TK_VERSION@%$TK_VERSION%g
s%@TK_DEFS@%$TK_DEFS%g
s%@TK_LIBS@%$TK_LIBS%g
s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
s%@TK_XLIBSW@%$TK_XLIBSW%g
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
s%@CPP@%$CPP%g
s%@TCLHDIR@%$TCLHDIR%g
s%@TKHDIR@%$TKHDIR%g
s%@SUBDIR@%$SUBDIR%g
s%@subdirs@%$subdirs%g
s%@TIX_VERSION@%$TIX_VERSION%g
 
CEOF
EOF
 
cat >> $CONFIG_STATUS <<\EOF
 
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
EOF
 
cat >> $CONFIG_STATUS <<EOF
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
 
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
 
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
 
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
 
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
 
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
 
EOF
cat >> $CONFIG_STATUS <<EOF
 
EOF
cat >> $CONFIG_STATUS <<\EOF
 
exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
if test "$no_recursion" != yes; then
 
# Remove --cache-file and --srcdir arguments so they do not pile up.
ac_sub_configure_args=
ac_prev=
for ac_arg in $ac_configure_args; do
if test -n "$ac_prev"; then
ac_prev=
continue
fi
case "$ac_arg" in
-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=*)
;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
;;
*) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
esac
done
 
for ac_config_dir in ${SUBDIR}; do
 
# Do not complain, so a configure script can configure whichever
# parts of a large source tree are present.
if test ! -d $srcdir/$ac_config_dir; then
continue
fi
 
echo configuring in $ac_config_dir
 
case "$srcdir" in
.) ;;
*)
if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
else
{ echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
fi
;;
esac
 
ac_popdir=`pwd`
cd $ac_config_dir
 
# A "../" for each directory in /$ac_config_dir.
ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
 
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
/*) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
esac
 
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_sub_srcdir/configure; then
ac_sub_configure=$ac_sub_srcdir/configure
elif test -f $ac_sub_srcdir/configure.in; then
ac_sub_configure=$ac_configure
else
echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
ac_sub_configure=
fi
 
# The recursion is here.
if test -n "$ac_sub_configure"; then
 
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
/*) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
case "$ac_given_INSTALL" in
[/$]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
 
echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
# The eval makes quoting arguments work.
if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
then :
else
{ echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
fi
fi
 
cd $ac_popdir
done
fi
 
configure Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: Makefile.in =================================================================== --- Makefile.in (nonexistent) +++ Makefile.in (revision 1765) @@ -0,0 +1,347 @@ +# This file is a Makefile for Tix. 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. +# + +#---------------------------------------------------------------- +# 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@ + +@SET_MAKE@ + +TIX_VERSION = @TIX_VERSION@ + +# 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 = $(prefix)/share/tix$(TIX_VERSION) + +# Directory in which to install the archive libtix.a: +LIB_DIR = $(exec_prefix)/lib + +# Directory in which to install the program wish: +BIN_DIR = $(exec_prefix)/bin + +# Directory in which to install the include file tix.h: +INCLUDE_DIR = $(prefix)/include + +# Top-level directory for manual entries: +MAN_DIR = $(prefix)/man + +# Directory in which to install manual entry for wish: +MAN1_DIR = $(MAN_DIR)/man1 + +# Directory in which to install manual entries for Tix's C library +# procedures: +MAN3_DIR = $(MAN_DIR)/man3 + +# Directory in which to install manual entries for the built-in +# Tcl commands implemented by Tix: +MANN_DIR = $(MAN_DIR)/mann + +# Some versions of make, like SGI's, use the following variable to +# determine which shell to use for executing commands: +SHELL = @SHELL@ + +#---------------------------------------------------------------- +# 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. +#---------------------------------------------------------------- +INSTALL = @SRC_DIR@/install.sh -c +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +SRC_DIR = @SRC_DIR@ +INC_DIR = @SRC_DIR@/generic +UNIX_DIR = @SRC_DIR@/unix +LIBRARY_DIR = @SRC_DIR@/library +DEMOS_DIR = @SRC_DIR@/demos +DEMO_PROGS = widget +TOOLS_DIR = @SRC_DIR@/tools +MANUAL_DIR = @SRC_DIR@/man +# CYGNUS LOCAL: Set VPATH to unix subdirectory, not top level. +VPATH = @SRC_DIR@/unix +CFLAGS = @CFLAGS@ + +# CYGNUS LOCAL: Just recur for most targets: + +SUBDIR = @SUBDIR@ + +all test: + @cd $(SUBDIR) && $(MAKE) $@ + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @cd $(SUBDIR) && $(MAKE) `echo $@ | sed 's/-recursive//'` + +configure: + cd $(SRC_DIR)/unix && autoconf + +mostlyclean: mostlyclean-recursive + +maintainer-clean: distclean-local maintainer-clean-recursive + +config.status: configure + $(SHELL) config.status --recheck + +# END CYGNUS LOCAL + +#---------------------------------------------------------------------- +# +# Installation +# +#---------------------------------------------------------------------- +install:: install-basic install-binaries + @echo done + +BINDIRS = tk4.0 tk4.1 tk4.2 tk4.3 tk8.0 itcl2.0 itcl2.1 itcl2.2 + +install-binaries:: + @for i in $(BINDIRS); \ + do \ + if test -r $$i/Makefile; then \ + echo "Entering directory $$i"; \ + cd $$i; \ + $(MAKE) prefix=$(prefix) \ + exec_prefix=$(exec_prefix) _install_; \ + cd ..; \ + fi; \ + done; + +# +# Basic installtion +# +install-basic:: install-libraries install-headers install-demos \ + install-man install-tools + +install-tools: + @for i in $(BIN_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @echo "installing the tixindex program for building tclIndex for Tix scripts" + @cd $(TOOLS_DIR); $(INSTALL_PROGRAM) tixindex $(BIN_DIR)/tixindex + +install-headers: + @for i in $(INCLUDE_DIR); \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @for i in $(INC_DIR)/tix.h; \ + do \ + echo "Installing $$i"; \ + $(INSTALL_DATA) $$i $(INCLUDE_DIR); \ + done; + +install-libraries: + @for i in $(TIX_LIBRARY) $(TIX_LIBRARY)/bitmaps $(TIX_LIBRARY)/pref; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @for i in $(LIBRARY_DIR)/*.tcl $(LIBRARY_DIR)/tclIndex; \ + do \ + echo "Installing $$i"; \ + $(INSTALL_DATA) $$i $(TIX_LIBRARY); \ + done; + @for i in $(LIBRARY_DIR)/bitmaps/* .gif $(LIBRARY_DIR)/bitmaps/*.x*m; \ + do \ + if [ -f $$i ] ; then \ + echo "Installing $$i"; \ + $(INSTALL_DATA) $$i $(TIX_LIBRARY)/bitmaps; \ + fi; \ + done; + @for i in $(LIBRARY_DIR)/pref/*.f* $(LIBRARY_DIR)/pref/*.c* $(LIBRARY_DIR)/pref/tixmkpref; \ + do \ + if [ -f $$i ] ; then \ + echo "Installing $$i"; \ + $(INSTALL_DATA) $$i $(TIX_LIBRARY)/pref; \ + fi; \ + done; + @echo "Installing pkgIndex.tcl" + @cat */pkgIndex.tcl > pkgIndex.tcl + @$(INSTALL_DATA) pkgIndex.tcl $(TIX_LIBRARY) + +install-demos: + @for i in $(prefix)/lib $(TIX_LIBRARY) $(TIX_LIBRARY)/demos \ + $(TIX_LIBRARY)/demos/bitmaps $(TIX_LIBRARY)/demos/samples ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @cd $(DEMOS_DIR); for i in *; \ + do \ + if [ -f $$i ] ; then \ + echo "Installing demos/$$i"; \ + sed -e '1 s|/usr/local/bin/tixwish|$(BIN_DIR)/tixwish|' \ + $$i > $(TIX_LIBRARY)/demos/$$i; \ + fi; \ + done; + @for i in $(DEMO_PROGS); \ + do \ + chmod 755 $(TIX_LIBRARY)/demos/$$i; \ + done; + @for i in $(DEMOS_DIR)/bitmaps/*; \ + do \ + if [ -f $$i ] ; then \ + echo "Installing $$i"; \ + $(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/bitmaps; \ + fi; \ + done; + @for i in $(DEMOS_DIR)/samples/*; \ + do \ + if [ -f $$i ] ; then \ + echo "Installing $$i"; \ + $(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/samples; \ + fi; \ + done; + +install-man: + @for i in $(MAN_DIR) $(MAN1_DIR) $(MAN3_DIR) $(MANN_DIR) ; \ + do \ + if [ ! -d $$i ] ; then \ + echo "Making directory $$i"; \ + mkdir $$i; \ + chmod 755 $$i; \ + else true; \ + fi; \ + done; + @cd $(MANUAL_DIR); for i in *.n *.1; \ + do \ + echo "Installing doc/$$i"; \ + rm -f $(MANN_DIR)/$$i; \ + sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ + $$i > $(MANN_DIR)/$$i; \ + chmod 444 $(MANN_DIR)/$$i; \ + done; + +# CYGNUS LOCAL: install-minimal target. +install-minimal: install-libraries + +tests:: + @for i in $(BINDIRS); \ + do \ + if test -r $$i/Makefile; then \ + echo "Entering directory $$i"; \ + cd $$i; \ + $(MAKE) tests; \ + cd $(UNIX_DIR); \ + fi; \ + done; + +sa-tests:: + @for i in $(BINDIRS); \ + do \ + if test -r $$i/Makefile; then \ + echo "Entering directory $$i"; \ + cd $$i; \ + $(MAKE) sa-tests; \ + cd $(UNIX_DIR); \ + fi; \ + done; + +compile:: + @for i in $(BINDIRS); \ + do \ + if test -r $$i/Makefile; then \ + echo "Entering directory $$i"; \ + cd $$i; \ + $(MAKE) CFLAGS=$(CFLAGS) ; \ + cd $(UNIX_DIR); \ + fi; \ + done; + +clean:: + @for i in $(BINDIRS); \ + do \ + if test -r $$i/Makefile; then \ + echo "Entering directory $$i"; \ + cd $$i; \ + $(MAKE) clean; \ + cd $(UNIX_DIR); \ + fi; \ + done; + - rm -f tixSamLib.c tixBitmaps.c + +distclean:: + @for i in $(BINDIRS); \ + do \ + if test -r $$i/Makefile; then \ + echo "Entering directory $$i"; \ + cd $$i; \ + $(MAKE) distclean; \ + cd $(UNIX_DIR); \ + fi; \ + done; + - rm -f config.status Makefile.bak config.status \ + config.cache config.log tixConfig.tcl *~ Makefile + +# CYGNUS LOCAL: Makefile depends upon config.status +Makefile:Makefile.in config.status + ./config.status + +autoconf:: + autoconf + +config:: + -cd tk4.0; ./configure + -cd tk4.1; ./configure + -cd tk4.2; ./configure + -cd tk4.3; ./configure + -cd tk8.0; ./configure + -cd itcl2.0; ./configure + -cd itcl2.1; ./configure + -cd itcl2.2; ./configure + +config-shared:: + -cd tk4.0; ./configure + -cd tk4.1; ./configure --enable-shared + -cd tk4.2; ./configure --enable-shared + -cd tk4.3; ./configure --enable-shared + -cd tk8.0; ./configure --enable-shared + -cd itcl2.0; ./configure + -cd itcl2.1; ./configure --enable-shared + -cd itcl2.2; ./configure --enable-shared + +config-shared-sam:: + -cd tk4.0; ./configure --enable-sam + -cd tk4.1; ./configure --enable-shared --enable-sam + -cd tk4.2; ./configure --enable-shared --enable-sam + -cd tk4.3; ./configure --enable-shared + -cd tk8.0; ./configure --enable-shared + -cd itcl2.0; ./configure + -cd itcl2.1; ./configure --enable-shared + -cd itcl2.2; ./configure --enable-shared +
Makefile.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/pkgIndex.tcl.in =================================================================== --- tk4.2/pkgIndex.tcl.in (nonexistent) +++ tk4.2/pkgIndex.tcl.in (revision 1765) @@ -0,0 +1,4 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tix @TIX_VERSION_PKG@ [list load "@TIX_PKG_FILE@" Tix] +@TIX_SAM_PACKAGE_IFNEEDED@
tk4.2/pkgIndex.tcl.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/configure =================================================================== --- tk4.2/configure (nonexistent) +++ tk4.2/configure (revision 1765) @@ -0,0 +1,2190 @@ +#! /bin/sh + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.12.2 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --enable-gcc allow use of gcc if available" +ac_help="$ac_help + --with-tcl=DIR use Tcl 7.6 source from DIR" +ac_help="$ac_help + --with-tk=DIR use Tk 4.2 source from DIR" +ac_help="$ac_help + --enable-sam build stand-alone modules" +ac_help="$ac_help + --enable-shared build libtix as a shared library" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -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 ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.12.2" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=../../generic/tixInit.c + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + +#-------------------------------------------------------------------- +# Remove the ./config.cache file and rerun configure if +# the cache file belong to a different architecture +#---------------------------------------------------------------------- +# Extract the first word of "uname -a", so it can be a program name with args. +set dummy uname -a; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:543: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$UNAME"; then + ac_cv_prog_UNAME="$UNAME" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_UNAME="uname -a" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME="""" +fi +fi +UNAME="$ac_cv_prog_UNAME" +if test -n "$UNAME"; then + echo "$ac_t""$UNAME" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test "$UNAME" = ""; then + # Extract the first word of "uname", so it can be a program name with args. +set dummy uname; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:573: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_UNAME'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$UNAME"; then + ac_cv_prog_UNAME="$UNAME" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_UNAME="uname" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME="""" +fi +fi +UNAME="$ac_cv_prog_UNAME" +if test -n "$UNAME"; then + echo "$ac_t""$UNAME" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +fi + +if test "$UNAME" != ""; then + uname=`$UNAME` + echo $ac_n "checking cached value of \$uname""... $ac_c" 1>&6 +echo "configure:604: checking cached value of \$uname" >&5 + if eval "test \"`echo '$''{'ac_cv_prog_uname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + nocached=1 ac_cv_prog_uname=`$UNAME` +fi + + if test "$nocached" = "1"; then + echo "$ac_t""no" 1>&6 + else + echo "$ac_t""yes" 1>&6 + 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=4.1 +TIX_MAJOR_VERSION=4 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.7.6 + + +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 + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:664: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:693: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_prog_rejected=no + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_save_ifs" +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + # Extract the first word of "cl", so it can be a program name with args. +set dummy cl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:743: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="cl" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + ;; + esac + fi + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } +fi + +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cc_cross=no + else + ac_cv_prog_cc_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cc_works=no +fi +rm -fr conftest* + +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +if test $ac_cv_prog_cc_works = no; then + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 +cross_compiling=$ac_cv_prog_cc_cross + +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +echo "configure:813: checking whether we are using GNU C" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 + +if test $ac_cv_prog_gcc = yes; then + GCC=yes +else + GCC= +fi + +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" +CFLAGS= +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:841: checking whether ${CC-cc} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_cc_g=yes +else + ac_cv_prog_cc_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +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 + +else + CC=${CC-cc} + +fi + +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 + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:908: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +# Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:961: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="ranlib" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:988: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +for ac_hdr in unistd.h limits.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1071: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:1108: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 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 conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + +#-------------------------------------------------------------------- +# unsigned char is not supported by some non-ANSI compilers. +#-------------------------------------------------------------------- + +echo $ac_n "checking unsigned char""... $ac_c" 1>&6 +echo "configure:1140: checking unsigned char" >&5 +cat > conftest.$ac_ext < +int main() { + + unsigned char c = 'c'; + +; return 0; } +EOF +if { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + tcl_ok=supported +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + tcl_ok=not supported +fi +rm -f conftest* + +echo "$ac_t""$tcl_ok" 1>&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 $ac_n "checking for strcasecmp""... $ac_c" 1>&6 +echo "configure:1177: checking for strcasecmp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp(); + +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 +strcasecmp(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strcasecmp=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strcasecmp=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +if test "$tcl_ok" = 0; then + echo $ac_n "checking for strcasecmp in -lsocket""... $ac_c" 1>&6 +echo "configure:1227: checking for strcasecmp in -lsocket" >&5 +ac_lib_var=`echo socket'_'strcasecmp | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + echo $ac_n "checking for strcasecmp in -linet""... $ac_c" 1>&6 +echo "configure:1270: checking for strcasecmp in -linet" >&5 +ac_lib_var=`echo inet'_'strcasecmp | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-linet $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + cat >> confdefs.h <<\EOF +#define NO_STRCASECMP 1 +EOF + +fi + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tcl is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +# Check whether --with-tcl or --without-tcl was given. +if test "${with_tcl+set}" = set; then + withval="$with_tcl" + val=$withval +else + val="" +fi + + +echo $ac_n "checking Tcl source directory""... $ac_c" 1>&6 +echo "configure:1333: checking Tcl source directory" >&5 + +if test "$val" != ""; then + TCL_SRC_DIR=$val + if test ! -d $TCL_SRC_DIR; then + { echo "configure: error: Directory $TCL_SRC_DIR doesn't exist" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tcl 7.6" 1>&2; exit 1; } + exit 1 + fi +else + # CYGNUS LOCAL: Just use tcl. + dirs="${srcdir}/../../../tcl7.6* ${srcdir}/../../../tcl" + TCL_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TCL_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TCL_SRC_DIR; then + { echo "configure: error: Cannot locate Tcl source directory in $dirs" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tcl 7.6" 1>&2; exit 1; } + exit 1 + fi +fi +echo "$ac_t""$TCL_SRC_DIR" 1>&6 + +# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which +# only works when srcdir == objdir +TCL_BIN_DIR=../../../tcl/unix + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tk is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +# Check whether --with-tk or --without-tk was given. +if test "${with_tk+set}" = set; then + withval="$with_tk" + val=$withval +else + val="" +fi + + +echo $ac_n "checking Tk source directory""... $ac_c" 1>&6 +echo "configure:1379: checking Tk source directory" >&5 + +if test "$val" != ""; then + TK_SRC_DIR=$val + if test ! -d $TK_SRC_DIR; then + { echo "configure: error: Directory $TK_SRC_DIR doesn't exist" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tk 4.2" 1>&2; exit 1; } + exit 1 + fi +else + # CYGNUS LOCAL: Just use tk + dirs="${srcdir}/../../../tk4.2* ${srcdir}/../../../tk" + TK_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TK_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TK_SRC_DIR; then + { echo "configure: error: Cannot locate Tk source directory in $dirs" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tk 4.2" 1>&2; exit 1; } + exit 1 + fi +fi +echo "$ac_t""$TK_SRC_DIR" 1>&6 + +# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which +# only works when srcdir == objdir +TK_BIN_DIR=../../../tk/unix + +#-------------------------------------------------------------------- +# 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)' + TIX_SAM_INSTALL=_install_sam_ +else + TIX_BUILD_SAM="no" +fi + +IS_ITCL=0 +ITCL_BUILD_LIB_SPEC="" +ITK_BUILD_LIB_SPEC="" +TIX_EXE_FILE=tixwish +TCL_SAMEXE_FILE=satclsh +TK_SAMEXE_FILE=sawish +TIX_SAMEXE_FILE=satixwish + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tcl for shared +# libraries, and arrange for it to be substituted into our +# Makefile. +#-------------------------------------------------------------------- + +file=$TCL_BIN_DIR/tclConfig.sh +. $file +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=$TCL_LD_SEARCH_FLAGS + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tk and arrange +# for it to be substituted into our Makefile. +#-------------------------------------------------------------------- +file=$TK_BIN_DIR/tkConfig.sh +. $file + +TIX_DEFS="$TK_DEFS $TCL_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}" + 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=7.6 + 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=4.2 + 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="" + + # 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=7.6 + 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=4.2 + 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 $ac_n "checking for connect""... $ac_c" 1>&6 +echo "configure:1587: checking for connect" >&5 +if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect(); + +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 +connect(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_connect=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_connect=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_checkSocket=0 +else + echo "$ac_t""no" 1>&6 +tcl_checkSocket=1 +fi + + if test "$tcl_checkSocket" = 1; then + echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 +echo "configure:1637: checking for main in -lsocket" >&5 +ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TK_LIBS="$TK_LIBS -lsocket" +else + echo "$ac_t""no" 1>&6 +tcl_checkBoth=1 +fi + + fi + if test "$tcl_checkBoth" = 1; then + tk_oldLibs=$TK_LIBS + TK_LIBS="$TK_LIBS -lsocket -lnsl" + echo $ac_n "checking for accept""... $ac_c" 1>&6 +echo "configure:1678: checking for accept" >&5 +if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char accept(); + +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 +accept(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_accept=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_accept=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_checkNsl=0 +else + echo "$ac_t""no" 1>&6 +TK_LIBS=$tk_oldLibs +fi + + fi + echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 +echo "configure:1728: checking for gethostbyname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +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 +gethostbyname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 +echo "configure:1774: checking for main in -lnsl" >&5 +ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TK_LIBS="$TK_LIBS -lnsl" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + +#---------------------------------------------------------------------- +# 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}]" + + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set) 2>&1 | grep ac_space` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs + + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.12.2" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@UNAME@%$UNAME%g +s%@CC@%$CC%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@RANLIB@%$RANLIB%g +s%@CPP@%$CPP%g +s%@SET_MAKE@%$SET_MAKE%g +s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g +s%@SHLIB_LD@%$SHLIB_LD%g +s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g +s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g +s%@SHLIB_VERSION@%$SHLIB_VERSION%g +s%@DL_LIBS@%$DL_LIBS%g +s%@LD_FLAGS@%$LD_FLAGS%g +s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g +s%@TCL_LIBS@%$TCL_LIBS%g +s%@TCL_VERSION@%$TCL_VERSION%g +s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g +s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g +s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g +s%@TK_LIBS@%$TK_LIBS%g +s%@TK_VERSION@%$TK_VERSION%g +s%@TK_SRC_DIR@%$TK_SRC_DIR%g +s%@TK_BIN_DIR@%$TK_BIN_DIR%g +s%@TK_XINCLUDES@%$TK_XINCLUDES%g +s%@TIX_LD_SEARCH_FLAGS@%$TIX_LD_SEARCH_FLAGS%g +s%@TIX_MAJOR_VERSION@%$TIX_MAJOR_VERSION%g +s%@TIX_MINOR_VERSION@%$TIX_MINOR_VERSION%g +s%@TIX_VERSION@%$TIX_VERSION%g +s%@TIX_SRC_DIR@%$TIX_SRC_DIR%g +s%@TIX_SHLIB_CFLAGS@%$TIX_SHLIB_CFLAGS%g +s%@TIX_MAKE_LIB@%$TIX_MAKE_LIB%g +s%@TIX_LIB_FILE@%$TIX_LIB_FILE%g +s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g +s%@TIX_LIB_SPEC@%$TIX_LIB_SPEC%g +s%@TIX_EXE_FILE@%$TIX_EXE_FILE%g +s%@TIX_SAM_TARGETS@%$TIX_SAM_TARGETS%g +s%@TIX_SAM_INSTALL@%$TIX_SAM_INSTALL%g +s%@TCL_SAM_FILE@%$TCL_SAM_FILE%g +s%@TCL_MAKE_SAM@%$TCL_MAKE_SAM%g +s%@TK_SAM_FILE@%$TK_SAM_FILE%g +s%@TK_MAKE_SAM@%$TK_MAKE_SAM%g +s%@TIX_SAM_FILE@%$TIX_SAM_FILE%g +s%@TIX_MAKE_SAM@%$TIX_MAKE_SAM%g +s%@TIX_DEFS@%$TIX_DEFS%g +s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g +s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g +s%@TCL_SAMEXE_FILE@%$TCL_SAMEXE_FILE%g +s%@TK_SAMEXE_FILE@%$TK_SAMEXE_FILE%g +s%@TIX_SAMEXE_FILE@%$TIX_SAMEXE_FILE%g +s%@TCL_BUILD_SAM_SPEC@%$TCL_BUILD_SAM_SPEC%g +s%@TK_BUILD_SAM_SPEC@%$TK_BUILD_SAM_SPEC%g +s%@TIX_BUILD_SAM_SPEC@%$TIX_BUILD_SAM_SPEC%g +s%@TIX_VERSION_PKG@%$TIX_VERSION_PKG%g +s%@TIX_PKG_FILE@%$TIX_PKG_FILE%g +s%@TIX_SAM_PACKAGE_IFNEEDED@%$TIX_SAM_PACKAGE_IFNEEDED%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + +
tk4.2/configure Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/Makefile.in =================================================================== --- tk4.2/Makefile.in (nonexistent) +++ tk4.2/Makefile.in (revision 1765) @@ -0,0 +1,541 @@ +# Makefile -- +# +# This file is a Makefile to compile Tix with Tk version +# 4.2. 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@ +TIX_VERSION = @TIX_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 = $(prefix)/lib/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 + +# 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 7.6 source directory. +# +TCL_SRC_DIR = @TCL_SRC_DIR@ +TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic +TCL_BIN_DIR = @TCL_BIN_DIR@ + +# Location of the Tk 4.2 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@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@ + +# Libraries for building a stand-alone Tclsh. +# +LIBS_TCLONLY = @TCL_BUILD_LIB_SPEC@ @TCL_LIBS@ + +RUN_TCLSH = TCL_LIBRARY=$(TCL_SRC_DIR)/library \ + TK_LIBRARY=$(TK_SRC_DIR)/library \ + $(TCL_BIN_DIR)/unix/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@ +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).7.6$(ITCL_EXT) +INST_TIX_SAMEXE = $(TIX_SAMEXE_FILE)$(TIX_VERSION).7.6$(ITCL_EXT) +INST_TK_SAMEXE = $(TK_SAMEXE_FILE)4.2 +INST_TCL_SAMEXE = $(TCL_SAMEXE_FILE)7.6 + +SAM_TARGETS = $(TCL_SAM_FILE) $(TK_SAM_FILE) $(TIX_SAM_FILE) \ + $(TCL_SAMEXE_FILE) $(TK_SAMEXE_FILE) $(TIX_SAMEXE_FILE) + +TIX_SAM_TARGETS = @TIX_SAM_TARGETS@ +SAM_INSTALL = @TIX_SAM_INSTALL@ + +ITCL_CFLAGS = + +CC_SWITCHES = $(CFLAGS) $(AC_FLAGS) -I$(TCL_GENERIC_DIR) \ + -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 = \ + tclUnixSam76.o + +TK_SAM_OBJS = \ + tkUnixSam42.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/tk4.2/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@ + $(RANLIB) $(TIX_LIB_FILE) + +$(TCL_SAM_FILE): $(TCL_SAM_OBJS) + rm -f $(TCL_SAM_FILE) + @TCL_MAKE_SAM@ + $(RANLIB) $(TCL_SAM_FILE) + +$(TK_SAM_FILE): $(TK_SAM_OBJS) + rm -f $(TK_SAM_FILE) + @TK_MAKE_SAM@ + $(RANLIB) $(TK_SAM_FILE) + +$(TIX_SAM_FILE): $(TIX_SAM_OBJS) + rm -f $(TIX_SAM_FILE) + @TIX_MAKE_SAM@ + $(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 +# +tclUnixSam76.o: tclUnixSam76.c tclSamLib.c + $(CC) -c $(CC_SWITCHES) tclUnixSam76.c + +tclSamLib.c: + $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TCL_SCRIPTS) \ + > tclSamLib.c + +tkUnixSam42.o: tkUnixSam42.c tkSamLib.c + $(CC) -c $(CC_SWITCHES) tkUnixSam42.c + +tkSamLib.c: + $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TK_SCRIPTS) \ + > tkSamLib.c + +tixUnixSam.o: $(UNIX_DIR)/tixUnixSam.c $(UNIX_DIR)/tixSamLib.c + $(CC) -c $(CC_SWITCHES) $(UNIX_DIR)/tixUnixSam.c + +$(UNIX_DIR)/tixSamLib.c: + $(RUN_TCLSH) $(SRC_DIR)/tools/tclc.tcl $(TIX_SCRIPTS) \ + > $(UNIX_DIR)/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}:. \ + ./$(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_PROGRAM) $(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) + +_install_sam_: $(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_PROGRAM) $(TIX_SAM_FILE) $(LIB_DIR)/$(TIX_SAM_FILE) + @echo "Installing $(TK_SAM_FILE) as $(LIB_DIR)/$(TK_SAM_FILE)" + @$(INSTALL_PROGRAM) $(TK_SAM_FILE) $(LIB_DIR)/$(TK_SAM_FILE) + @echo "Installing $(TCL_SAM_FILE) as $(LIB_DIR)/$(TCL_SAM_FILE)" + @$(INSTALL_PROGRAM) $(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: _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 $(UNIX_DIR)/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. +
tk4.2/Makefile.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/tclUnixSam76.c =================================================================== --- tk4.2/tclUnixSam76.c (nonexistent) +++ tk4.2/tclUnixSam76.c (revision 1765) @@ -0,0 +1,26 @@ +/* + * tclUnixSam76.c -- + * + * Initializes the Tcl stand-alone module Tcl version 7.6. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#include "tclPort.h" +#include "tclInt.h" + +#include "tclSamLib.c" + +int SamTcl_Init _ANSI_ARGS_((Tcl_Interp *interp)); + +int +Tclsam_Init(interp) + Tcl_Interp *interp; /* Interpreter to initialize. */ +{ + Tcl_Eval(interp, "set tcl_library {}"); + return LoadScripts(interp); +}
tk4.2/tclUnixSam76.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/configure.in =================================================================== --- tk4.2/configure.in (nonexistent) +++ tk4.2/configure.in (revision 1765) @@ -0,0 +1,431 @@ +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 +#---------------------------------------------------------------------- +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=4.1 +TIX_MAJOR_VERSION=4 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.7.6 + + +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 + AC_PROG_CC +else + CC=${CC-cc} +AC_SUBST(CC) +fi + +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=not supported) + +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 + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tcl is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 7.6 source from DIR], + val=$withval, val="") + +AC_MSG_CHECKING([Tcl source directory]) + +if test "$val" != ""; then + TCL_SRC_DIR=$val + if test ! -d $TCL_SRC_DIR; then + AC_MSG_ERROR(Directory $TCL_SRC_DIR doesn't exist) + AC_MSG_ERROR(Please install the source code of Tcl 7.6) + exit 1 + fi +else + # CYGNUS LOCAL: Just use tcl. + dirs="${srcdir}/../../../tcl7.6* ${srcdir}/../../../tcl" + TCL_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TCL_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TCL_SRC_DIR; then + AC_MSG_ERROR(Cannot locate Tcl source directory in $dirs) + AC_MSG_ERROR(Please install the source code of Tcl 7.6) + exit 1 + fi +fi +AC_MSG_RESULT($TCL_SRC_DIR) + +# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which +# only works when srcdir == objdir +TCL_BIN_DIR=../../../tcl/unix + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tk is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +AC_ARG_WITH(tk, [ --with-tk=DIR use Tk 4.2 source from DIR], + val=$withval, val="") + +AC_MSG_CHECKING([Tk source directory]) + +if test "$val" != ""; then + TK_SRC_DIR=$val + if test ! -d $TK_SRC_DIR; then + AC_MSG_ERROR(Directory $TK_SRC_DIR doesn't exist) + AC_MSG_ERROR(Please install the source code of Tk 4.2) + exit 1 + fi +else + # CYGNUS LOCAL: Just use tk + dirs="${srcdir}/../../../tk4.2* ${srcdir}/../../../tk" + TK_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TK_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TK_SRC_DIR; then + AC_MSG_ERROR(Cannot locate Tk source directory in $dirs) + AC_MSG_ERROR(Please install the source code of Tk 4.2) + exit 1 + fi +fi +AC_MSG_RESULT($TK_SRC_DIR) + +# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which +# only works when srcdir == objdir +TK_BIN_DIR=../../../tk/unix + +#-------------------------------------------------------------------- +# 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)' + TIX_SAM_INSTALL=_install_sam_ +else + TIX_BUILD_SAM="no" +fi + +IS_ITCL=0 +ITCL_BUILD_LIB_SPEC="" +ITK_BUILD_LIB_SPEC="" +TIX_EXE_FILE=tixwish +TCL_SAMEXE_FILE=satclsh +TK_SAMEXE_FILE=sawish +TIX_SAMEXE_FILE=satixwish + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tcl for shared +# libraries, and arrange for it to be substituted into our +# Makefile. +#-------------------------------------------------------------------- + +file=$TCL_BIN_DIR/tclConfig.sh +. $file +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=$TCL_LD_SEARCH_FLAGS + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tk and arrange +# for it to be substituted into our Makefile. +#-------------------------------------------------------------------- +file=$TK_BIN_DIR/tkConfig.sh +. $file + +TIX_DEFS="$TK_DEFS $TCL_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}" + 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=7.6 + 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=4.2 + 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="" + + # 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=7.6 + 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=4.2 + 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 + +#---------------------------------------------------------------------- +# Substitution strings exported by TIX +#---------------------------------------------------------------------- +AC_SUBST(CC) +AC_SUBST(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(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) + +# 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) +
tk4.2/configure.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/tixAppInit.c =================================================================== --- tk4.2/tixAppInit.c (nonexistent) +++ tk4.2/tixAppInit.c (revision 1765) @@ -0,0 +1,112 @@ +/* + * 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 + +/* + * 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 (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. + */ + + /* + * Specify a user-specific startup file to invoke if the application + * is run interactively. Typically the startup file is "~/.apprc" + * where "app" is the name of the application. If this line is deleted + * then no user-specific startup file will be run under any conditions. + */ + Tix_SetRcFileName(interp, "~/.tixwishrc"); + + return TCL_OK; +}
tk4.2/tixAppInit.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk4.2/tkUnixSam42.c =================================================================== --- tk4.2/tkUnixSam42.c (nonexistent) +++ tk4.2/tkUnixSam42.c (revision 1765) @@ -0,0 +1,215 @@ +/* + * tkUnixSam42.c -- + * + * Initializes the Tk stand-alone module Tk version 4.2. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#include +#include + +#if defined(__WIN32__) || defined(_WIN32) +# define SAMTK_WINDOWS +#else +# if defined(MAC_TCL) +# define SAMTK_MAC +# else +# define SAMTK_UNIX +# include +# endif +#endif + +int SamTk_Init _ANSI_ARGS_((Tcl_Interp *interp)); + +#include "tkSamLib.c" + +static int +SamTkPlatformInit(interp) + Tcl_Interp * interp; +{ +#ifdef SAMTK_UNIX + TkCreateXEventSource(); +#endif + Tcl_Eval(interp, "set tk_library {}"); + return LoadScripts(interp); +} + +/* + * The variables and table below are used to parse arguments from + * the "argv" variable in Tk_Init. + */ + +static int synchronize; +static char *name; +static char *display; +static char *geometry; +static char *colormap; +static char *visual; +static int rest = 0; + +static Tk_ArgvInfo argTable[] = { + {"-colormap", TK_ARGV_STRING, (char *) NULL, (char *) &colormap, + "Colormap for main window"}, + {"-display", TK_ARGV_STRING, (char *) NULL, (char *) &display, + "Display to use"}, + {"-geometry", TK_ARGV_STRING, (char *) NULL, (char *) &geometry, + "Initial geometry for window"}, + {"-name", TK_ARGV_STRING, (char *) NULL, (char *) &name, + "Name to use for application"}, + {"-sync", TK_ARGV_CONSTANT, (char *) 1, (char *) &synchronize, + "Use synchronous mode for display server"}, + {"-visual", TK_ARGV_STRING, (char *) NULL, (char *) &visual, + "Visual for main window"}, + {"--", TK_ARGV_REST, (char *) 1, (char *) &rest, + "Pass all remaining arguments through to script"}, + {(char *) NULL, TK_ARGV_END, (char *) NULL, (char *) NULL, + (char *) NULL} +}; + +int +Tksam_Init(interp) + Tcl_Interp *interp; /* Interpreter to initialize. */ +{ + char *p; + int argc, code; + char **argv, *args[20]; + Tcl_DString class; + char buffer[30]; + + /* + * If there is an "argv" variable, get its value, extract out + * relevant arguments from it, and rewrite the variable without + * the arguments that we used. + */ + + synchronize = 0; + name = display = geometry = colormap = visual = NULL; + p = Tcl_GetVar2(interp, "argv", (char *) NULL, TCL_GLOBAL_ONLY); + argv = NULL; + if (p != NULL) { + if (Tcl_SplitList(interp, p, &argc, &argv) != TCL_OK) { + argError: + Tcl_AddErrorInfo(interp, + "\n (processing arguments in argv variable)"); + return TCL_ERROR; + } + if (Tk_ParseArgv(interp, (Tk_Window) NULL, &argc, argv, + argTable, TK_ARGV_DONT_SKIP_FIRST_ARG|TK_ARGV_NO_DEFAULTS) + != TCL_OK) { + ckfree((char *) argv); + goto argError; + } + p = Tcl_Merge(argc, argv); + Tcl_SetVar2(interp, "argv", (char *) NULL, p, TCL_GLOBAL_ONLY); + sprintf(buffer, "%d", argc); + Tcl_SetVar2(interp, "argc", (char *) NULL, buffer, TCL_GLOBAL_ONLY); + ckfree(p); + } + + /* + * Figure out the application's name and class. + */ + + if (name == NULL) { + name = Tcl_GetVar(interp, "argv0", TCL_GLOBAL_ONLY); + if ((name == NULL) || (*name == 0)) { + name = "tk"; + } else { + p = strrchr(name, '/'); + if (p != NULL) { + name = p+1; + } + } + } + Tcl_DStringInit(&class); + Tcl_DStringAppend(&class, name, -1); + p = Tcl_DStringValue(&class); + if (islower(*p)) { + *p = toupper((unsigned char) *p); + } + + /* + * Create an argument list for creating the top-level window, + * using the information parsed from argv, if any. + */ + + args[0] = "toplevel"; + args[1] = "."; + args[2] = "-class"; + args[3] = Tcl_DStringValue(&class); + argc = 4; + if (display != NULL) { + args[argc] = "-screen"; + args[argc+1] = display; + argc += 2; + + /* + * If this is the first application for this process, save + * the display name in the DISPLAY environment variable so + * that it will be available to subprocesses created by us. + */ + + if (Tk_GetNumMainWindows() == 0) { + Tcl_SetVar2(interp, "env", "DISPLAY", display, TCL_GLOBAL_ONLY); + } + } + if (colormap != NULL) { + args[argc] = "-colormap"; + args[argc+1] = colormap; + argc += 2; + } + if (visual != NULL) { + args[argc] = "-visual"; + args[argc+1] = visual; + argc += 2; + } + args[argc] = NULL; + code = TkCreateFrame((ClientData) NULL, interp, argc, args, 1, name); + Tcl_DStringFree(&class); + if (code != TCL_OK) { + goto done; + } + Tcl_ResetResult(interp); + if (synchronize) { + XSynchronize(Tk_Display(Tk_MainWindow(interp)), True); + } + + /* + * Set the geometry of the main window, if requested. Put the + * requested geometry into the "geometry" variable. + */ + + if (geometry != NULL) { + Tcl_SetVar(interp, "geometry", geometry, TCL_GLOBAL_ONLY); + code = Tcl_VarEval(interp, "wm geometry . ", geometry, (char *) NULL); + if (code != TCL_OK) { + goto done; + } + } + if (Tcl_PkgRequire(interp, "Tcl", TCL_VERSION, 1) == NULL) { + code = TCL_ERROR; + goto done; + } + code = Tcl_PkgProvide(interp, "Tk", TK_VERSION); + if (code != TCL_OK) { + goto done; + } + + /* + * Invoke platform-specific initialization. + */ + + code = SamTkPlatformInit(interp); + + done: + if (argv != NULL) { + ckfree((char *) argv); + } + return code; +} +
tk4.2/tkUnixSam42.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tixUnixPort.h =================================================================== --- tixUnixPort.h (nonexistent) +++ tixUnixPort.h (revision 1765) @@ -0,0 +1,29 @@ +/* + * tixUnixPort.h -- + * + * This header file handles porting issues that occur because of + * differences between systems. It reads in platform specific + * portability files. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#ifndef _TIX_UNIXPORT_H_ +#define _TIX_UNIXPORT_H_ + +struct _TixpSubRegion { + XRectangle rect; + int rectUsed; +}; + +#ifdef UCHAR_SUPPORTED +typedef unsigned char UNSIGNED_CHAR; +#else +typedef char UNSIGNED_CHAR; +#endif + +#endif /* _TIX_UNIXPORT_H_ */
tixUnixPort.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.0/pkgIndex.tcl.in =================================================================== --- tk8.0/pkgIndex.tcl.in (nonexistent) +++ tk8.0/pkgIndex.tcl.in (revision 1765) @@ -0,0 +1,4 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tix @TIX_VERSION_PKG@ [list load "@TIX_PKG_FILE@" Tix] +@TIX_SAM_PACKAGE_IFNEEDED@
tk8.0/pkgIndex.tcl.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.0/configure =================================================================== --- tk8.0/configure (nonexistent) +++ tk8.0/configure (revision 1765) @@ -0,0 +1,2163 @@ +#! /bin/sh + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --enable-gcc allow use of gcc if available" +ac_help="$ac_help + --with-tcl=DIR use Tcl 8.0 source from DIR" +ac_help="$ac_help + --with-tk=DIR use Tk 8.0 source from DIR" +ac_help="$ac_help + --enable-sam build stand-alone modules" +ac_help="$ac_help + --enable-shared build libtix as a shared library" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -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 ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=../../generic/tixInit.c + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + +#-------------------------------------------------------------------- +# 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=4.1 +TIX_MAJOR_VERSION=4 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.8.0 + + +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 + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:606: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:636: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_prog_rejected=no + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_save_ifs" +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + # Extract the first word of "cl", so it can be a program name with args. +set dummy cl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:687: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="cl" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + ;; + esac + fi + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } +fi + +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +cat > conftest.$ac_ext << EOF + +#line 730 "configure" +#include "confdefs.h" + +main(){return(0);} +EOF +if { (eval echo configure:735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cc_cross=no + else + ac_cv_prog_cc_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cc_works=no +fi +rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +if test $ac_cv_prog_cc_works = no; then + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 +cross_compiling=$ac_cv_prog_cc_cross + +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +echo "configure:766: checking whether we are using GNU C" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 + +if test $ac_cv_prog_gcc = yes; then + GCC=yes +else + GCC= +fi + +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" +CFLAGS= +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:794: checking whether ${CC-cc} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_cc_g=yes +else + ac_cv_prog_cc_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +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 + +else + CC=${CC-cc} + +fi + +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 + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:861: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +# Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:916: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="ranlib" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:944: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +for ac_hdr in unistd.h limits.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1027: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:1064: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 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 conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + +#-------------------------------------------------------------------- +# unsigned char is not supported by some non-ANSI compilers. +#-------------------------------------------------------------------- + +echo $ac_n "checking unsigned char""... $ac_c" 1>&6 +echo "configure:1096: checking unsigned char" >&5 +cat > conftest.$ac_ext < +int main() { + + unsigned char c = 'c'; + +; return 0; } +EOF +if { (eval echo configure:1107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + tcl_ok=supported +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + tcl_ok=notsupported +fi +rm -f conftest* + +echo "$ac_t""$tcl_ok" 1>&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 $ac_n "checking for strcasecmp""... $ac_c" 1>&6 +echo "configure:1133: checking for strcasecmp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp(); + +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 +strcasecmp(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strcasecmp=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strcasecmp=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +if test "$tcl_ok" = 0; then + echo $ac_n "checking for strcasecmp in -lsocket""... $ac_c" 1>&6 +echo "configure:1183: checking for strcasecmp in -lsocket" >&5 +ac_lib_var=`echo socket'_'strcasecmp | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + echo $ac_n "checking for strcasecmp in -linet""... $ac_c" 1>&6 +echo "configure:1226: checking for strcasecmp in -linet" >&5 +ac_lib_var=`echo inet'_'strcasecmp | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-linet $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + cat >> confdefs.h <<\EOF +#define NO_STRCASECMP 1 +EOF + +fi + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tcl is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +# Check whether --with-tcl or --without-tcl was given. +if test "${with_tcl+set}" = set; then + withval="$with_tcl" + val=$withval +else + val="" +fi + + +echo $ac_n "checking Tcl source directory""... $ac_c" 1>&6 +echo "configure:1289: checking Tcl source directory" >&5 + +if test "$val" != ""; then + TCL_SRC_DIR=$val + if test ! -d $TCL_SRC_DIR; then + { echo "configure: error: Directory $TCL_SRC_DIR doesn't exist" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tcl 8.0" 1>&2; exit 1; } + exit 1 + fi +else + # CYGNUS LOCAL: Just use tcl. + dirs="${srcdir}/../../../tcl8.0* ${srcdir}/../../../tcl" + TCL_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TCL_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TCL_SRC_DIR; then + { echo "configure: error: Cannot locate Tcl source directory in $dirs" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tcl 8.0" 1>&2; exit 1; } + exit 1 + fi +fi +echo "$ac_t""$TCL_SRC_DIR" 1>&6 + +# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which +# only works when srcdir == objdir +TCL_BIN_DIR=../../../tcl/unix + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tk is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +# Check whether --with-tk or --without-tk was given. +if test "${with_tk+set}" = set; then + withval="$with_tk" + val=$withval +else + val="" +fi + + +echo $ac_n "checking Tk source directory""... $ac_c" 1>&6 +echo "configure:1335: checking Tk source directory" >&5 + +if test "$val" != ""; then + TK_SRC_DIR=$val + if test ! -d $TK_SRC_DIR; then + { echo "configure: error: Directory $TK_SRC_DIR doesn't exist" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tk 8.0" 1>&2; exit 1; } + exit 1 + fi +else + # CYGNUS LOCAL: Just use tk + dirs="${srcdir}/../../../tk8.0* ${srcdir}/../../../tk" + TK_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TK_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TK_SRC_DIR; then + { echo "configure: error: Cannot locate Tk source directory in $dirs" 1>&2; exit 1; } + { echo "configure: error: Please install the source code of Tk 8.0" 1>&2; exit 1; } + exit 1 + fi +fi +echo "$ac_t""$TK_SRC_DIR" 1>&6 + +# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which +# only works when srcdir == objdir +TK_BIN_DIR=../../../tk/unix + +#-------------------------------------------------------------------- +# 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=tixwish +TCL_SAMEXE_FILE=satclsh +TK_SAMEXE_FILE=sawish +TIX_SAMEXE_FILE=satixwish + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tcl for shared +# libraries, and arrange for it to be substituted into our +# Makefile. +#-------------------------------------------------------------------- + +file=$TCL_BIN_DIR/tclConfig.sh +. $file +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=$TCL_LD_SEARCH_FLAGS + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tk and arrange +# for it to be substituted into our Makefile. +#-------------------------------------------------------------------- +file=$TK_BIN_DIR/tkConfig.sh +. $file + +TIX_DEFS="$TK_DEFS $TCL_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. + +TIX_BUILD_LOCATION="`pwd`" +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.0 + 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.0 + 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.0 + 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.0 + 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 $ac_n "checking for connect""... $ac_c" 1>&6 +echo "configure:1546: checking for connect" >&5 +if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect(); + +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 +connect(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_connect=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_connect=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_checkSocket=0 +else + echo "$ac_t""no" 1>&6 +tcl_checkSocket=1 +fi + + if test "$tcl_checkSocket" = 1; then + echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 +echo "configure:1596: checking for main in -lsocket" >&5 +ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TK_LIBS="$TK_LIBS -lsocket" +else + echo "$ac_t""no" 1>&6 +tcl_checkBoth=1 +fi + + fi + if test "$tcl_checkBoth" = 1; then + tk_oldLibs=$TK_LIBS + TK_LIBS="$TK_LIBS -lsocket -lnsl" + echo $ac_n "checking for accept""... $ac_c" 1>&6 +echo "configure:1637: checking for accept" >&5 +if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char accept(); + +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 +accept(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_accept=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_accept=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_checkNsl=0 +else + echo "$ac_t""no" 1>&6 +TK_LIBS=$tk_oldLibs +fi + + fi + echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 +echo "configure:1687: checking for gethostbyname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +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 +gethostbyname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 +echo "configure:1733: checking for main in -lnsl" >&5 +ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TK_LIBS="$TK_LIBS -lnsl" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + +TIX_LIB_FULL_PATH="`pwd`/${TIX_LIB_FILE}" + +#---------------------------------------------------------------------- +# 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}]" + + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs + + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile pkgIndex.tcl ../../tixConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@CC@%$CC%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@RANLIB@%$RANLIB%g +s%@CPP@%$CPP%g +s%@SET_MAKE@%$SET_MAKE%g +s%@TIX_RANLIB@%$TIX_RANLIB%g +s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g +s%@SHLIB_LD@%$SHLIB_LD%g +s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g +s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g +s%@SHLIB_VERSION@%$SHLIB_VERSION%g +s%@DL_LIBS@%$DL_LIBS%g +s%@LD_FLAGS@%$LD_FLAGS%g +s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g +s%@TCL_LIBS@%$TCL_LIBS%g +s%@TCL_VERSION@%$TCL_VERSION%g +s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g +s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g +s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g +s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g +s%@TK_LIBS@%$TK_LIBS%g +s%@TK_VERSION@%$TK_VERSION%g +s%@TK_SRC_DIR@%$TK_SRC_DIR%g +s%@TK_BIN_DIR@%$TK_BIN_DIR%g +s%@TK_XINCLUDES@%$TK_XINCLUDES%g +s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g +s%@TIX_LD_SEARCH_FLAGS@%$TIX_LD_SEARCH_FLAGS%g +s%@TIX_MAJOR_VERSION@%$TIX_MAJOR_VERSION%g +s%@TIX_MINOR_VERSION@%$TIX_MINOR_VERSION%g +s%@TIX_VERSION@%$TIX_VERSION%g +s%@TIX_SRC_DIR@%$TIX_SRC_DIR%g +s%@TIX_SHLIB_CFLAGS@%$TIX_SHLIB_CFLAGS%g +s%@TIX_MAKE_LIB@%$TIX_MAKE_LIB%g +s%@TIX_LIB_FILE@%$TIX_LIB_FILE%g +s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g +s%@TIX_LIB_SPEC@%$TIX_LIB_SPEC%g +s%@TIX_EXE_FILE@%$TIX_EXE_FILE%g +s%@TIX_SAM_TARGETS@%$TIX_SAM_TARGETS%g +s%@TIX_SAM_INSTALL@%$TIX_SAM_INSTALL%g +s%@TIX_LIB_FULL_PATH@%$TIX_LIB_FULL_PATH%g +s%@TCL_SAM_FILE@%$TCL_SAM_FILE%g +s%@TCL_MAKE_SAM@%$TCL_MAKE_SAM%g +s%@TK_SAM_FILE@%$TK_SAM_FILE%g +s%@TK_MAKE_SAM@%$TK_MAKE_SAM%g +s%@TIX_SAM_FILE@%$TIX_SAM_FILE%g +s%@TIX_MAKE_SAM@%$TIX_MAKE_SAM%g +s%@TIX_DEFS@%$TIX_DEFS%g +s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g +s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g +s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g +s%@TCL_SAMEXE_FILE@%$TCL_SAMEXE_FILE%g +s%@TK_SAMEXE_FILE@%$TK_SAMEXE_FILE%g +s%@TIX_SAMEXE_FILE@%$TIX_SAMEXE_FILE%g +s%@TCL_BUILD_SAM_SPEC@%$TCL_BUILD_SAM_SPEC%g +s%@TK_BUILD_SAM_SPEC@%$TK_BUILD_SAM_SPEC%g +s%@TIX_BUILD_SAM_SPEC@%$TIX_BUILD_SAM_SPEC%g +s%@TIX_BUILD_LOCATION@%$TIX_BUILD_LOCATION%g +s%@TIX_VERSION_PKG@%$TIX_VERSION_PKG%g +s%@TIX_PKG_FILE@%$TIX_PKG_FILE%g +s%@TIX_SAM_PACKAGE_IFNEEDED@%$TIX_SAM_PACKAGE_IFNEEDED%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + +
tk8.0/configure Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.0/Makefile.in =================================================================== --- tk8.0/Makefile.in (nonexistent) +++ tk8.0/Makefile.in (revision 1765) @@ -0,0 +1,555 @@ +# Makefile -- +# +# This file is a Makefile to compile Tix with Tk version +# 8.0. 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@ +TIX_VERSION = @TIX_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 = $(prefix)/share/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 + +# 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.0 source directory. +# +TCL_SRC_DIR = @TCL_SRC_DIR@ +TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic +TCL_BIN_DIR = @TCL_BIN_DIR@ + +# Location of the Tk 8.0 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@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@ + +# Libraries for building a stand-alone Tclsh. +# +LIBS_TCLONLY = @TCL_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).8.0$(ITCL_EXT) +INST_TIX_SAMEXE = $(TIX_SAMEXE_FILE)$(TIX_VERSION).8.0$(ITCL_EXT) +INST_TK_SAMEXE = $(TK_SAMEXE_FILE)8.0 +INST_TCL_SAMEXE = $(TCL_SAMEXE_FILE)8.0 + +SAM_TARGETS = $(TIX_SAM_FILE) + +TIX_SAM_TARGETS = @TIX_SAM_TARGETS@ +SAM_INSTALL = @TIX_SAM_INSTALL@ + +ITCL_CFLAGS = + +CC_SWITCHES = $(CFLAGS) $(AC_FLAGS) -I$(TCL_GENERIC_DIR) \ + -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) @TCL_LIB_FULL_PATH@ \ + @TK_LIB_FULL_PATH@ @ITCL_LIB_FULL_PATH@ + $(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) \ + @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ @ITCL_LIB_FULL_PATH@ + $(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) @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ \ + @ITCL_LIB_FULL_PATH@ + $(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}:. \ + ./$(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_DATA) $(TIX_EXE_FILE) $(BIN_DIR)/$(INST_EXE) + +_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. +
tk8.0/Makefile.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.0/configure.in =================================================================== --- tk8.0/configure.in (nonexistent) +++ tk8.0/configure.in (revision 1765) @@ -0,0 +1,445 @@ +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=4.1 +TIX_MAJOR_VERSION=4 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.8.0 + + +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 + AC_PROG_CC +else + CC=${CC-cc} +AC_SUBST(CC) +fi + +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 + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tcl is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl 8.0 source from DIR], + val=$withval, val="") + +AC_MSG_CHECKING([Tcl source directory]) + +if test "$val" != ""; then + TCL_SRC_DIR=$val + if test ! -d $TCL_SRC_DIR; then + AC_MSG_ERROR(Directory $TCL_SRC_DIR doesn't exist) + AC_MSG_ERROR(Please install the source code of Tcl 8.0) + exit 1 + fi +else + # CYGNUS LOCAL: Just use tcl. + dirs="${srcdir}/../../../tcl8.0* ${srcdir}/../../../tcl" + TCL_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TCL_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TCL_SRC_DIR; then + AC_MSG_ERROR(Cannot locate Tcl source directory in $dirs) + AC_MSG_ERROR(Please install the source code of Tcl 8.0) + exit 1 + fi +fi +AC_MSG_RESULT($TCL_SRC_DIR) + +# CYGNUS LOCAL: This used to get TCL_BIN_DIR from TCL_SRC_DIR, which +# only works when srcdir == objdir +TCL_BIN_DIR=../../../tcl/unix + +#-------------------------------------------------------------------- +# See if there was a command-line option for where Tk is; if +# not, assume that its top-level directory is a sibling of ours. +#-------------------------------------------------------------------- + +AC_ARG_WITH(tk, [ --with-tk=DIR use Tk 8.0 source from DIR], + val=$withval, val="") + +AC_MSG_CHECKING([Tk source directory]) + +if test "$val" != ""; then + TK_SRC_DIR=$val + if test ! -d $TK_SRC_DIR; then + AC_MSG_ERROR(Directory $TK_SRC_DIR doesn't exist) + AC_MSG_ERROR(Please install the source code of Tk 8.0) + exit 1 + fi +else + # CYGNUS LOCAL: Just use tk + dirs="${srcdir}/../../../tk8.0* ${srcdir}/../../../tk" + TK_SRC_DIR="no-no" + for i in $dirs; do + if test -d $i; then + TK_SRC_DIR=`cd $i; pwd` + fi + done + + if test ! -d $TK_SRC_DIR; then + AC_MSG_ERROR(Cannot locate Tk source directory in $dirs) + AC_MSG_ERROR(Please install the source code of Tk 8.0) + exit 1 + fi +fi +AC_MSG_RESULT($TK_SRC_DIR) + +# CYGNUS LOCAL: This used to get TK_BIN_DIR from TK_SRC_DIR, which +# only works when srcdir == objdir +TK_BIN_DIR=../../../tk/unix + +#-------------------------------------------------------------------- +# 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=tixwish +TCL_SAMEXE_FILE=satclsh +TK_SAMEXE_FILE=sawish +TIX_SAMEXE_FILE=satixwish + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tcl for shared +# libraries, and arrange for it to be substituted into our +# Makefile. +#-------------------------------------------------------------------- + +file=$TCL_BIN_DIR/tclConfig.sh +. $file +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=$TCL_LD_SEARCH_FLAGS + +#-------------------------------------------------------------------- +# Read in configuration information generated by Tk and arrange +# for it to be substituted into our Makefile. +#-------------------------------------------------------------------- +file=$TK_BIN_DIR/tkConfig.sh +. $file + +TIX_DEFS="$TK_DEFS $TCL_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. + +TIX_BUILD_LOCATION="`pwd`" +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.0 + 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.0 + 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.0 + 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.0 + 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 + +TIX_LIB_FULL_PATH="`pwd`/${TIX_LIB_FILE}" + +#---------------------------------------------------------------------- +# Substitution strings exported by TIX +#---------------------------------------------------------------------- +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(TCL_LIB_FULL_PATH) +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(TK_LIB_FULL_PATH) +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(TIX_LIB_FULL_PATH) +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(ITCL_LIB_FULL_PATH) +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(TIX_BUILD_LOCATION) +# 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) +
tk8.0/configure.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.0/pkgIndex.tcl =================================================================== --- tk8.0/pkgIndex.tcl (nonexistent) +++ tk8.0/pkgIndex.tcl (revision 1765) @@ -0,0 +1,4 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tix 4.1.8.0 [list load "[file join [file dirname $dir] libtix4.1.8.0.a]" Tix] + Index: tk8.0/tixAppInit.c =================================================================== --- tk8.0/tixAppInit.c (nonexistent) +++ tk8.0/tixAppInit.c (revision 1765) @@ -0,0 +1,112 @@ +/* + * 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 + +/* + * 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 (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. + */ + + /* + * Specify a user-specific startup file to invoke if the application + * is run interactively. Typically the startup file is "~/.apprc" + * where "app" is the name of the application. If this line is deleted + * then no user-specific startup file will be run under any conditions. + */ + Tix_SetRcFileName(interp, "~/.tixwishrc"); + + return TCL_OK; +}
tk8.0/tixAppInit.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.0/tixSamLib.c =================================================================== Index: tk8.0/tixSamLib.c =================================================================== --- tk8.0/tixSamLib.c (nonexistent) +++ tk8.0/tixSamLib.c (revision 1765)
tk8.0/tixSamLib.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.1/pkgIndex.tcl.in =================================================================== --- tk8.1/pkgIndex.tcl.in (nonexistent) +++ tk8.1/pkgIndex.tcl.in (revision 1765) @@ -0,0 +1,4 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tix @TIX_VERSION_PKG@ [list load "@TIX_PKG_FILE@" Tix] +@TIX_SAM_PACKAGE_IFNEEDED@
tk8.1/pkgIndex.tcl.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.1/configure =================================================================== --- tk8.1/configure (nonexistent) +++ tk8.1/configure (revision 1765) @@ -0,0 +1,2480 @@ +#! /bin/sh + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --enable-gcc allow use of gcc if available" +ac_help="$ac_help + --with-tclconfig directory containing tcl configuration (tclConfig.sh)" +ac_help="$ac_help + --with-tkconfig directory containing tk configuration (tkConfig.sh)" +ac_help="$ac_help + --with-tclinclude directory where tcl headers are" +ac_help="$ac_help + --with-tkinclude directory where tk headers are" +ac_help="$ac_help + --enable-sam build stand-alone modules" +ac_help="$ac_help + --enable-shared build libtix as a shared library" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -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 ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=../../generic/tixInit.c + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + +#-------------------------------------------------------------------- +# 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=4.1 +TIX_MAJOR_VERSION=4 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.8.1 + + +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 + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:610: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:640: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_prog_rejected=no + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_save_ifs" +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + # Extract the first word of "cl", so it can be a program name with args. +set dummy cl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:691: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="cl" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + ;; + esac + fi + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } +fi + +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +cat > conftest.$ac_ext << EOF + +#line 734 "configure" +#include "confdefs.h" + +main(){return(0);} +EOF +if { (eval echo configure:739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cc_cross=no + else + ac_cv_prog_cc_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cc_works=no +fi +rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +if test $ac_cv_prog_cc_works = no; then + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 +cross_compiling=$ac_cv_prog_cc_cross + +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +echo "configure:770: checking whether we are using GNU C" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 + +if test $ac_cv_prog_gcc = yes; then + GCC=yes +else + GCC= +fi + +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" +CFLAGS= +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:798: checking whether ${CC-cc} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_cc_g=yes +else + ac_cv_prog_cc_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +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 + +else + CC=${CC-cc} + +fi + +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 + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:865: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +# Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:920: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="ranlib" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:948: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext < +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +for ac_hdr in unistd.h limits.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:1031: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:1068: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 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 conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + +#-------------------------------------------------------------------- +# unsigned char is not supported by some non-ANSI compilers. +#-------------------------------------------------------------------- + +echo $ac_n "checking unsigned char""... $ac_c" 1>&6 +echo "configure:1100: checking unsigned char" >&5 +cat > conftest.$ac_ext < +int main() { + + unsigned char c = 'c'; + +; return 0; } +EOF +if { (eval echo configure:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + tcl_ok=supported +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + tcl_ok=notsupported +fi +rm -f conftest* + +echo "$ac_t""$tcl_ok" 1>&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 $ac_n "checking for strcasecmp""... $ac_c" 1>&6 +echo "configure:1137: checking for strcasecmp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp(); + +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 +strcasecmp(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strcasecmp=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strcasecmp=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +if test "$tcl_ok" = 0; then + echo $ac_n "checking for strcasecmp in -lsocket""... $ac_c" 1>&6 +echo "configure:1187: checking for strcasecmp in -lsocket" >&5 +ac_lib_var=`echo socket'_'strcasecmp | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + echo $ac_n "checking for strcasecmp in -linet""... $ac_c" 1>&6 +echo "configure:1230: checking for strcasecmp in -linet" >&5 +ac_lib_var=`echo inet'_'strcasecmp | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-linet $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_ok=1 +else + echo "$ac_t""no" 1>&6 +tcl_ok=0 +fi + +fi +if test "$tcl_ok" = 0; then + cat >> confdefs.h <<\EOF +#define NO_STRCASECMP 1 +EOF + +fi + +# Check for Tcl and Tk. + +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 $ac_n "checking for Tcl configuration script""... $ac_c" 1>&6 +echo "configure:1290: checking for Tcl configuration script" >&5 + if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; 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 "configure: warning: Can't find Tcl configuration definitions" 1>&2 + else + no_tcl="" + TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh + echo "$ac_t""${TCLCONFIG}" 1>&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 $ac_n "checking for Tk configuration script""... $ac_c" 1>&6 +echo "configure:1381: checking for Tk configuration script" >&5 + if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; 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 "configure: warning: Can't find Tk configuration definitions" 1>&2 + else + no_tk="" + TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh + echo "$ac_t""${TKCONFIG}" 1>&6 + fi +fi + + + + if test -f "$TKCONFIG" ; then + . $TKCONFIG + fi + + + + + + + + + + + + + + + +dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.." +no_tcl=true +echo $ac_n "checking for Tcl headers in the source tree""... $ac_c" 1>&6 +echo "configure:1461: checking for Tcl headers in the source tree" >&5 +# Check whether --with-tclinclude or --without-tclinclude was given. +if test "${with_tclinclude+set}" = set; then + withval="$with_tclinclude" + with_tclinclude=${withval} +fi + +if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tclinclude} directory doesn't contain headers" 1>&2; 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 "$ac_t""none" 1>&6 + ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for tcl.h""... $ac_c" 1>&6 +echo "configure:1518: checking for tcl.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_cv_c_tclh=installed +else + echo "$ac_t""no" 1>&6 +ac_cv_c_tclh="" +fi + +else + echo "$ac_t""${ac_cv_c_tclh}" 1>&6 +fi + +fi + + TCLHDIR="" +if test x"${ac_cv_c_tclh}" = x ; then + { echo "configure: error: Can't find any Tcl headers" 1>&2; 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 "$ac_t""${ac_cv_c_tclh}" 1>&6 + TCLHDIR="-I${ac_cv_c_tclh}" + 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 $ac_n "checking for Tk headers in the source tree""... $ac_c" 1>&6 +echo "configure:1592: checking for Tk headers in the source tree" >&5 +# Check whether --with-tkinclude or --without-tkinclude was given. +if test "${with_tkinclude+set}" = set; then + withval="$with_tkinclude" + with_tkinclude=${withval} +fi + +if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&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 "configure: error: ${with_tkinclude} directory doesn't contain headers" 1>&2; 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 "$ac_t""none" 1>&6 + ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include + if test -f $ccpath/tk.h; then + ac_cv_c_tkh=$ccpath + fi +else + echo "$ac_t""${ac_cv_c_tkh}" 1>&6 +fi + +fi + + TKHDIR="" +if test x"${ac_cv_c_tkh}" = x ; then + { echo "configure: error: Can't find any Tk headers" 1>&2; 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 "$ac_t""found in ${ac_cv_c_tkh}" 1>&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=tixwish +TCL_SAMEXE_FILE=satclsh +TK_SAMEXE_FILE=sawish +TIX_SAMEXE_FILE=satixwish + +#-------------------------------------------------------------------- +# 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=$TCL_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" + +# 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. + +TIX_BUILD_LOCATION="`pwd`" +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.1 + 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.1 + 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.1 + 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.1 + 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 + +TIX_LIB_FULL_PATH="`pwd`/${TIX_LIB_FILE}" + +#-------------------------------------------------------------------- +# 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 $ac_n "checking for connect""... $ac_c" 1>&6 +echo "configure:1846: checking for connect" >&5 +if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect(); + +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 +connect(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_connect=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_connect=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_checkSocket=0 +else + echo "$ac_t""no" 1>&6 +tcl_checkSocket=1 +fi + + if test "$tcl_checkSocket" = 1; then + echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 +echo "configure:1896: checking for main in -lsocket" >&5 +ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TK_LIBS="$TK_LIBS -lsocket" +else + echo "$ac_t""no" 1>&6 +tcl_checkBoth=1 +fi + + fi + if test "$tcl_checkBoth" = 1; then + tk_oldLibs=$TK_LIBS + TK_LIBS="$TK_LIBS -lsocket -lnsl" + echo $ac_n "checking for accept""... $ac_c" 1>&6 +echo "configure:1937: checking for accept" >&5 +if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char accept(); + +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 +accept(); +#endif + +; return 0; } +EOF +if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_accept=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_accept=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then + echo "$ac_t""yes" 1>&6 + tcl_checkNsl=0 +else + echo "$ac_t""no" 1>&6 +TK_LIBS=$tk_oldLibs +fi + + fi + echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 +echo "configure:1987: checking for gethostbyname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +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 +gethostbyname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 +echo "configure:2033: checking for main in -lnsl" >&5 +ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TK_LIBS="$TK_LIBS -lnsl" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + +#---------------------------------------------------------------------- +# 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}]" + + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +# Transform confdefs.h into DEFS. +# Protect against shell expansion while executing Makefile rules. +# Protect against Makefile macro expansion. +cat > conftest.defs <<\EOF +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g +s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g +s%\[%\\&%g +s%\]%\\&%g +s%\$%$$%g +EOF +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` +rm -f conftest.defs + + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS </dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo "Makefile pkgIndex.tcl ../../tixConfig.sh" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@CC@%$CC%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@RANLIB@%$RANLIB%g +s%@CPP@%$CPP%g +s%@SET_MAKE@%$SET_MAKE%g +s%@TCLCONFIG@%$TCLCONFIG%g +s%@TCL_DEFS@%$TCL_DEFS%g +s%@TCL_LIB_FILE@%$TCL_LIB_FILE%g +s%@TCL_LIB_FULL_PATH@%$TCL_LIB_FULL_PATH%g +s%@TCL_LIBS@%$TCL_LIBS%g +s%@TCL_CFLAGS@%$TCL_CFLAGS%g +s%@TCL_SHLIB_CFLAGS@%$TCL_SHLIB_CFLAGS%g +s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g +s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g +s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g +s%@TCL_RANLIB@%$TCL_RANLIB%g +s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g +s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g +s%@TKCONFIG@%$TKCONFIG%g +s%@TK_VERSION@%$TK_VERSION%g +s%@TK_DEFS@%$TK_DEFS%g +s%@TK_LIB_FILE@%$TK_LIB_FILE%g +s%@TK_LIB_FULL_PATH@%$TK_LIB_FULL_PATH%g +s%@TK_LIBS@%$TK_LIBS%g +s%@TK_BUILD_INCLUDES@%$TK_BUILD_INCLUDES%g +s%@TK_XINCLUDES@%$TK_XINCLUDES%g +s%@TK_XLIBSW@%$TK_XLIBSW%g +s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g +s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g +s%@TCLHDIR@%$TCLHDIR%g +s%@TKHDIR@%$TKHDIR%g +s%@TIX_RANLIB@%$TIX_RANLIB%g +s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g +s%@SHLIB_LD@%$SHLIB_LD%g +s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g +s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g +s%@SHLIB_VERSION@%$SHLIB_VERSION%g +s%@DL_LIBS@%$DL_LIBS%g +s%@LD_FLAGS@%$LD_FLAGS%g +s%@TCL_VERSION@%$TCL_VERSION%g +s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g +s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g +s%@TK_SRC_DIR@%$TK_SRC_DIR%g +s%@TK_BIN_DIR@%$TK_BIN_DIR%g +s%@TIX_LD_SEARCH_FLAGS@%$TIX_LD_SEARCH_FLAGS%g +s%@TIX_MAJOR_VERSION@%$TIX_MAJOR_VERSION%g +s%@TIX_MINOR_VERSION@%$TIX_MINOR_VERSION%g +s%@TIX_VERSION@%$TIX_VERSION%g +s%@TIX_SRC_DIR@%$TIX_SRC_DIR%g +s%@TIX_SHLIB_CFLAGS@%$TIX_SHLIB_CFLAGS%g +s%@TIX_MAKE_LIB@%$TIX_MAKE_LIB%g +s%@TIX_LIB_FILE@%$TIX_LIB_FILE%g +s%@TIX_BUILD_LIB_SPEC@%$TIX_BUILD_LIB_SPEC%g +s%@TIX_LIB_SPEC@%$TIX_LIB_SPEC%g +s%@TIX_EXE_FILE@%$TIX_EXE_FILE%g +s%@TIX_SAM_TARGETS@%$TIX_SAM_TARGETS%g +s%@TIX_SAM_INSTALL@%$TIX_SAM_INSTALL%g +s%@TIX_LIB_FULL_PATH@%$TIX_LIB_FULL_PATH%g +s%@TCL_SAM_FILE@%$TCL_SAM_FILE%g +s%@TCL_MAKE_SAM@%$TCL_MAKE_SAM%g +s%@TK_SAM_FILE@%$TK_SAM_FILE%g +s%@TK_MAKE_SAM@%$TK_MAKE_SAM%g +s%@TIX_SAM_FILE@%$TIX_SAM_FILE%g +s%@TIX_MAKE_SAM@%$TIX_MAKE_SAM%g +s%@TIX_DEFS@%$TIX_DEFS%g +s%@ITCL_BUILD_LIB_SPEC@%$ITCL_BUILD_LIB_SPEC%g +s%@ITCL_LIB_FULL_PATH@%$ITCL_LIB_FULL_PATH%g +s%@ITK_BUILD_LIB_SPEC@%$ITK_BUILD_LIB_SPEC%g +s%@TCL_SAMEXE_FILE@%$TCL_SAMEXE_FILE%g +s%@TK_SAMEXE_FILE@%$TK_SAMEXE_FILE%g +s%@TIX_SAMEXE_FILE@%$TIX_SAMEXE_FILE%g +s%@TCL_BUILD_SAM_SPEC@%$TCL_BUILD_SAM_SPEC%g +s%@TK_BUILD_SAM_SPEC@%$TK_BUILD_SAM_SPEC%g +s%@TIX_BUILD_SAM_SPEC@%$TIX_BUILD_SAM_SPEC%g +s%@TIX_BUILD_LOCATION@%$TIX_BUILD_LOCATION%g +s%@TIX_VERSION_PKG@%$TIX_VERSION_PKG%g +s%@TIX_PKG_FILE@%$TIX_PKG_FILE%g +s%@TIX_SAM_PACKAGE_IFNEEDED@%$TIX_SAM_PACKAGE_IFNEEDED%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +EOF +cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + +
tk8.1/configure Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.1/Makefile.in =================================================================== --- tk8.1/Makefile.in (nonexistent) +++ tk8.1/Makefile.in (revision 1765) @@ -0,0 +1,556 @@ +# Makefile -- +# +# This file is a Makefile to compile Tix with Tk version +# 8.1. 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@ +TIX_VERSION = @TIX_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 = $(prefix)/share/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) -fwritable-strings + +# 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.1 source directory. +# +TCL_SRC_DIR = @TCL_SRC_DIR@ +TCL_GENERIC_DIR = $(TCL_SRC_DIR)/generic +TCL_BIN_DIR = @TCL_BIN_DIR@ + +# Location of the Tk 8.1 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@ @TCL_BUILD_LIB_SPEC@ @TK_LIBS@ + +# Libraries for building a stand-alone Tclsh. +# +LIBS_TCLONLY = @TCL_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).8.1$(ITCL_EXT) +INST_TIX_SAMEXE = $(TIX_SAMEXE_FILE)$(TIX_VERSION).8.1$(ITCL_EXT) +INST_TK_SAMEXE = $(TK_SAMEXE_FILE)8.1 +INST_TCL_SAMEXE = $(TCL_SAMEXE_FILE)8.1 + +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) \ + -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) @TCL_LIB_FULL_PATH@ \ + @TK_LIB_FULL_PATH@ @ITCL_LIB_FULL_PATH@ + $(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) \ + @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ @ITCL_LIB_FULL_PATH@ + $(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) @TCL_LIB_FULL_PATH@ @TK_LIB_FULL_PATH@ \ + @ITCL_LIB_FULL_PATH@ + $(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}:. \ + ./$(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) + +_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. +
tk8.1/Makefile.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.1/configure.in =================================================================== --- tk8.1/configure.in (nonexistent) +++ tk8.1/configure.in (revision 1765) @@ -0,0 +1,372 @@ +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=4.1 +TIX_MAJOR_VERSION=4 +TIX_MINOR_VERSION=1 + +BIN_VERSION=${TIX_VERSION}.8.1 + + +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 + AC_PROG_CC +else + CC=${CC-cc} +AC_SUBST(CC) +fi + +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 and Tk. +CYG_AC_PATH_TCLCONFIG +CYG_AC_LOAD_TCLCONFIG +CYG_AC_PATH_TKCONFIG +CYG_AC_LOAD_TKCONFIG +CYG_AC_PATH_TCLH +# 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=tixwish +TCL_SAMEXE_FILE=satclsh +TK_SAMEXE_FILE=sawish +TIX_SAMEXE_FILE=satixwish + +#-------------------------------------------------------------------- +# 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=$TCL_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" + +# 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. + +TIX_BUILD_LOCATION="`pwd`" +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.1 + 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.1 + 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.1 + 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.1 + 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 + +TIX_LIB_FULL_PATH="`pwd`/${TIX_LIB_FILE}" + +#-------------------------------------------------------------------- +# 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 + +#---------------------------------------------------------------------- +# Substitution strings exported by TIX +#---------------------------------------------------------------------- +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(TCL_LIB_FULL_PATH) +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(TK_LIB_FULL_PATH) +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(TIX_LIB_FULL_PATH) +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(ITCL_LIB_FULL_PATH) +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(TIX_BUILD_LOCATION) + +# 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) +
tk8.1/configure.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.1/tixAppInit.c =================================================================== --- tk8.1/tixAppInit.c (nonexistent) +++ tk8.1/tixAppInit.c (revision 1765) @@ -0,0 +1,112 @@ +/* + * 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 + +/* + * 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 (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. + */ + + /* + * Specify a user-specific startup file to invoke if the application + * is run interactively. Typically the startup file is "~/.apprc" + * where "app" is the name of the application. If this line is deleted + * then no user-specific startup file will be run under any conditions. + */ + Tix_SetRcFileName(interp, "~/.tixwishrc"); + + return TCL_OK; +}
tk8.1/tixAppInit.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tk8.1/aclocal.m4 =================================================================== --- tk8.1/aclocal.m4 (nonexistent) +++ tk8.1/aclocal.m4 (revision 1765) @@ -0,0 +1 @@ +"sinclude(../../../config/acinclude.m4)"
tk8.1/aclocal.m4 Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: configure.in =================================================================== --- configure.in (nonexistent) +++ configure.in (revision 1765) @@ -0,0 +1,35 @@ +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) + +AC_PROG_INSTALL +AC_PROG_MAKE_SET + +#---------------------------------------------------------------------- +# 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 +SRC_DIR=`cd ${srcdir}/..; pwd` +AC_SUBST(SRC_DIR) + +# Check for Tcl and Tk. +CYG_AC_PATH_TCLCONFIG +CYG_AC_LOAD_TCLCONFIG +CYG_AC_PATH_TKCONFIG +CYG_AC_LOAD_TKCONFIG +CYG_AC_PATH_TCLH +# FIXME: consider only doing this if --with-x given. +CYG_AC_PATH_TKH + +SUBDIR=tk${TK_VERSION} +AC_SUBST(SUBDIR) +AC_CONFIG_SUBDIRS(${SUBDIR}) + +TIX_VERSION=4.1 +AC_SUBST(TIX_VERSION) +AC_OUTPUT(Makefile)
configure.in Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: samAppInit.c =================================================================== --- samAppInit.c (nonexistent) +++ samAppInit.c (revision 1765) @@ -0,0 +1,177 @@ +/* + * samAppInit.c -- + * + * Provides a default version of the Tcl_AppInit procedure for + * use in stand-alone Tcl, Tk or Tix applications. + * + * Copyright (c) 1996, Expert Interface Technologies + * 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 + +#ifdef USE_TIX +# ifndef USE_TK +# define USE_TK +# endif +#endif + +#ifdef USE_TK +#include +#endif + +#ifdef USE_TIX +# include +#else +# if (TCL_MAJOR_VERSION > 7) +# define TCL_7_5_OR_LATER +# else +# if ((TCL_MAJOR_VERSION == 7) && (TCL_MINOR_VERSION >= 5)) +# define TCL_7_5_OR_LATER +# endif +# endif +#endif + +EXTERN int Tclsam_Init _ANSI_ARGS_((Tcl_Interp *interp)); +EXTERN int Tksam_Init _ANSI_ARGS_((Tcl_Interp *interp)); +EXTERN int Tixsam_Init _ANSI_ARGS_((Tcl_Interp *interp)); + +/* + * 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. */ +{ +#ifdef USE_TK + Tk_Main(argc, argv, Tcl_AppInit); +#else + Tcl_Main(argc, argv, Tcl_AppInit); +#endif + + 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 (Tclsam_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } +#ifdef USE_TK + if (Tksam_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } +#endif + +#ifdef USE_TIX + if (Tixsam_Init(interp) == TCL_ERROR) { + return TCL_ERROR; + } +#endif + +#ifdef TCL_7_5_OR_LATER + Tcl_StaticPackage(interp, "Tclsam", Tclsam_Init, NULL); +#ifdef USE_TK + Tcl_StaticPackage(interp, "Tk", Tk_Init, NULL); + Tcl_StaticPackage(interp, "Tksam", Tksam_Init, NULL); +#endif +#ifdef USE_TIX + Tcl_StaticPackage(interp, "Tix", Tix_Init, NULL); + Tcl_StaticPackage(interp, "Tixsam", Tixsam_Init, NULL); +#endif +#endif + + /* + * 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. + */ + + /* + * Specify a user-specific startup file to invoke if the application + * is run interactively. Typically the startup file is "~/.apprc" + * where "app" is the name of the application. If this line is deleted + * then no user-specific startup file will be run under any conditions. + */ +#if defined(USE_TIX) +# define RC_FILENAME "~/.tixwishrc" +#else +# if defined(USE_TK) +# define RC_FILENAME "~/.wishrc" +# else +# define RC_FILENAME "~/.tclshrc" +# endif +#endif + +#ifdef TCL_7_5_OR_LATER + /* + * Starting from TCL 7.5, the symbol tcl_rcFileName is no longer + * exported by libtcl.a. Instead, this variable must be set using + * a TCL global variable + */ + Tcl_SetVar(interp, "tcl_rcFileName", RC_FILENAME, TCL_GLOBAL_ONLY); +#else + tcl_RcFileName = RC_FILENAME; +#endif + + return TCL_OK; +}
samAppInit.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tixUnixDraw.c =================================================================== --- tixUnixDraw.c (nonexistent) +++ tixUnixDraw.c (revision 1765) @@ -0,0 +1,307 @@ +/* + * tixUnixDraw.c -- + * + * Implement the Unix specific function calls for drawing. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#include +#include + + +/* + *---------------------------------------------------------------------- + * TixpDrawTmpLine -- + * + * Draws a "temporary" line between the two points. The line can be + * removed by calling the function again with the same parameters. + * + * Results: + * Standard Tcl result. + * + * Side effects: + * A line is XOR'ed onto the screen. + *---------------------------------------------------------------------- + */ +void +TixpDrawTmpLine(x1, y1, x2, y2, tkwin) + int x1; + int y1; + int x2; + int y2; + Tk_Window tkwin; +{ + GC gc; + XGCValues values; + unsigned long valuemask = GCForeground | GCSubwindowMode | GCFunction; + Window winId; /* The Window to draw into. */ + Tk_Window toplevel; /* Toplevel containing the tkwin. */ + int rootx1, rooty1; /* Root x and y of the toplevel window. */ + int rootx2, rooty2; + + for (toplevel=tkwin; !Tk_IsTopLevel(toplevel); + toplevel=Tk_Parent(toplevel)) { + ; + } + + Tk_GetRootCoords(toplevel, &rootx1, &rooty1); + rootx2 = rootx1 + Tk_Width(toplevel) - 1; + rooty2 = rooty1 + Tk_Height(toplevel) - 1; + + if (x1 >= rootx1 && x2 <= rootx2 && y1 >= rooty1 && y2 <= rooty2) { + /* + * The line is completely inside the toplevel containing + * tkwin. It's better to draw into this window because on some + * X servers, especially PC X Servers running on Windows, + * drawing into the root window shows no effect. + */ + winId = Tk_WindowId(toplevel); + x1 -= rootx1; + y1 -= rooty1; + x2 -= rootx1; + y2 -= rooty1; + } else { + winId = XRootWindow(Tk_Display(tkwin), Tk_ScreenNumber(tkwin)); + } + + values.foreground = 0xff; + values.subwindow_mode = IncludeInferiors; + values.function = GXxor; + + gc = XCreateGC(Tk_Display(tkwin), winId, valuemask, &values); + XDrawLine(Tk_Display(tkwin), winId, gc, x1, y1, x2, y2); + XFreeGC(Tk_Display(tkwin), gc); +} + +/*---------------------------------------------------------------------- + * TixpDrawAnchorLines -- + * + * See comments near Tix_DrawAnchorLines. + *---------------------------------------------------------------------- + */ + +void TixpDrawAnchorLines(display, drawable, gc, x, y, w, h) + Display *display; + Drawable drawable; + GC gc; + int x; + int y; + int w; + int h; +{ + XPoint points[4]; + + if (w < 1) { + w = 1; + } + if (h < 1) { + h = 1; + } + + XDrawRectangle(display, drawable, gc, x, y, w-1, h-1); + + /* + * Draw these points so that the corners will not be rounded + */ + points[0].x = x; + points[0].y = y; + points[1].x = x + w - 1; + points[1].y = y; + points[2].x = x; + points[2].y = y + h - 1; + points[3].x = x + w - 1; + points[3].y = y + h - 1; + + XDrawPoints(display, drawable, gc, points, 4, CoordModeOrigin); +} + +/*---------------------------------------------------------------------- + * TixpStartSubRegionDraw -- + * + * Limits the subsequent drawing operations into the prescribed + * rectangle region. This takes effect up to a matching + * TixEndSubRegionDraw() call. + * + * Return value: + * none. + *---------------------------------------------------------------------- + */ + +void +TixpStartSubRegionDraw(display, drawable, gc, subRegPtr, origX, origY, + x, y, width, height, needWidth, needHeight) + Display *display; + Drawable drawable; + GC gc; + TixpSubRegion * subRegPtr; + int origX; + int origY; + int x; + int y; + int width; + int height; + int needWidth; + int needHeight; +{ + if ((width < needWidth) || (height < needHeight)) { + subRegPtr->rectUsed = 1; + subRegPtr->rect.x = (short)x; + subRegPtr->rect.y = (short)y; + subRegPtr->rect.width = (short)width; + subRegPtr->rect.height = (short)height; + + XSetClipRectangles(display, gc, origX, origY, &subRegPtr->rect, + 1, Unsorted); + } else { + subRegPtr->rectUsed = 0; + } +} + +/*---------------------------------------------------------------------- + * TixpEndSubRegionDraw -- + * + * + *---------------------------------------------------------------------- + */ +void +TixpEndSubRegionDraw(display, drawable, gc, subRegPtr) + Display *display; + Drawable drawable; + GC gc; + TixpSubRegion * subRegPtr; +{ + if (subRegPtr->rectUsed) { + subRegPtr->rect.x = (short)0; + subRegPtr->rect.y = (short)0; + subRegPtr->rect.width = (short)20000; + subRegPtr->rect.height = (short)20000; + XSetClipRectangles(display, gc, 0, 0, &subRegPtr->rect, 1, Unsorted); + } +} + +/* + *---------------------------------------------------------------------- + * + * TixpSubRegDisplayText -- + * + * Display a text string on one or more lines in a sub region. + * + * Results: + * See TkDisplayText + * + * Side effects: + * See TkDisplayText + * + *---------------------------------------------------------------------- + */ + +void +TixpSubRegDisplayText(display, drawable, gc, subRegPtr, font, string, + numChars, x, y, length, justify, underline) + Display *display; /* X display to use for drawing text. */ + Drawable drawable; /* Window or pixmap in which to draw the + * text. */ + GC gc; /* Graphics context to use for drawing text. */ + TixpSubRegion * subRegPtr; /* Information about the subregion */ + TixFont font; /* Font that determines geometry of text + * (should be same as font in gc). */ + char *string; /* String to display; may contain embedded + * newlines. */ + int numChars; /* Number of characters to use from string. */ + int x, y; /* Pixel coordinates within drawable of + * upper left corner of display area. */ + int length; /* Line length in pixels; used to compute + * word wrap points and also for + * justification. Must be > 0. */ + Tk_Justify justify; /* How to justify lines. */ + int underline; /* Index of character to underline, or < 0 + * for no underlining. */ +{ + TixDisplayText(display, drawable, font, string, + numChars, x, y, length, justify, underline, gc); +} + +/*---------------------------------------------------------------------- + * TixpSubRegFillRectangle -- + * + * + *---------------------------------------------------------------------- + */ +void +TixpSubRegFillRectangle(display, drawable, gc, subRegPtr, x, y, width, height) + Display *display; /* X display to use for drawing rectangle. */ + Drawable drawable; /* Window or pixmap in which to draw the + * rectangle. */ + GC gc; /* Graphics context to use for drawing. */ + TixpSubRegion * subRegPtr; /* Information about the subregion */ + int x, y; /* Pixel coordinates within drawable of + * upper left corner of display area. */ + int width, height; /* Size of the rectangle. */ +{ + XFillRectangle(display, drawable, gc, x, y, width, height); +} + +/*---------------------------------------------------------------------- + * TixpSubRegDrawImage -- + * + * Draws a Tk image in a subregion. + *---------------------------------------------------------------------- + */ +void +TixpSubRegDrawImage(subRegPtr, image, imageX, imageY, width, height, + drawable, drawableX, drawableY) + TixpSubRegion * subRegPtr; + Tk_Image image; + int imageX; + int imageY; + int width; + int height; + Drawable drawable; + int drawableX; + int drawableY; +{ + if (subRegPtr->rectUsed) { + if (drawableX < subRegPtr->rect.x) { + width -= subRegPtr->rect.x - drawableX; + imageX += subRegPtr->rect.x - drawableX; + drawableX = subRegPtr->rect.x; + } + if (drawableX + width > subRegPtr->rect.x + subRegPtr->rect.width) { + width = subRegPtr->rect.x - drawableX + subRegPtr->rect.width; + } + + if (drawableY < subRegPtr->rect.y) { + height -= subRegPtr->rect.y - drawableY; + imageY += subRegPtr->rect.y - drawableY; + drawableY = subRegPtr->rect.y; + } + if (drawableY + height > subRegPtr->rect.y + subRegPtr->rect.height) { + height = subRegPtr->rect.y - drawableY + subRegPtr->rect.height; + } + } + + Tk_RedrawImage(image, imageX, imageY, width, height, drawable, + drawableX, drawableY); +} + +void +TixpSubRegDrawBitmap(display, drawable, gc, subRegPtr, bitmap, src_x, src_y, + width, height, dest_x, dest_y, plane) + Display *display; + Drawable drawable; + GC gc; + TixpSubRegion * subRegPtr; + Pixmap bitmap; + int src_x, src_y; + int width, height; + int dest_x, dest_y; + unsigned long plane; +{ + XCopyPlane(display, bitmap, drawable, gc, src_x, src_y, width, height, + dest_x, dest_y, plane); +}
tixUnixDraw.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tixUnixInt.h =================================================================== --- tixUnixInt.h (nonexistent) +++ tixUnixInt.h (revision 1765) @@ -0,0 +1,20 @@ +/* + * tixUnixInt.h + * + * Internal header file for Tix on the Unix platform. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#ifndef _TIX_UNIX_INT_H_ +#define _TIX_UNIX_INT_H_ + +#ifndef _TIX_INT_H_ +#include "tixInt.h" +#endif + +#endif /* _TIX_UNIX_INT_H_ */
tixUnixInt.h Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: pkgIndex.tcl =================================================================== --- pkgIndex.tcl (nonexistent) +++ pkgIndex.tcl (revision 1765) @@ -0,0 +1,4 @@ +# Tcl package index file, version 1.0 + +package ifneeded Tix 4.1.8.0 [list load "[file join [file dirname $dir] libtix4.1.8.0.a]" Tix] +
pkgIndex.tcl Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tixUnixSam.c =================================================================== --- tixUnixSam.c (nonexistent) +++ tixUnixSam.c (revision 1765) @@ -0,0 +1,39 @@ +/* + * eixInit41.c -- + * + * Initializes embedded Tix for Tix version 4.1. + * + */ + +#include +#include + +#include "tixSamLib.c" + +int SamTix_Init _ANSI_ARGS_((Tcl_Interp *interp)); + +int +Tixsam_Init(interp) + Tcl_Interp *interp; /* Interpreter to initialize. */ +{ + Tcl_Interp * Et_Interp = interp; + + if (TixInitSam(interp) != TCL_OK ){ + return TCL_ERROR; + } + if (LoadScripts(interp) != TCL_OK ){ + return TCL_ERROR; + } + if (Tcl_GlobalEval(interp, "__tixInit") != TCL_OK) { + return TCL_ERROR; + } + + return TCL_OK; +} + +int +Tixsam_SafeInit(interp) + Tcl_Interp *interp; /* Interpreter to initialize. */ +{ + return Tixsam_Init(interp); +}
tixUnixSam.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: aclocal.m4 =================================================================== --- aclocal.m4 (nonexistent) +++ aclocal.m4 (revision 1765) @@ -0,0 +1 @@ +"sinclude(../../config/acinclude.m4)"
aclocal.m4 Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tixUnixWm.c =================================================================== --- tixUnixWm.c (nonexistent) +++ tixUnixWm.c (revision 1765) @@ -0,0 +1,23 @@ +/* + * tixUnixWm.c -- + * + * Implement the Windows specific function calls for window management. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#include "tixUnixInt.h" + +int +TixpSetWindowParent(interp, tkwin, newParent, parentId) + Tcl_Interp * interp; + Tk_Window tkwin; + Tk_Window newParent; + int parentId; +{ + return TCL_OK; +}
tixUnixWm.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: tixUnixXpm.c =================================================================== --- tixUnixXpm.c (nonexistent) +++ tixUnixXpm.c (revision 1765) @@ -0,0 +1,270 @@ +/* + * tixUnixImgXpm.c -- + * + * Implement the Windows specific function calls for the pixmap + * image type. + * + * Copyright (c) 1996, Expert Interface Technologies + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + */ + +#include +#include +#include + +typedef struct PixmapData { + Pixmap mask; /* Mask: only display pixmap pixels where + * there are 1's here. */ + GC gc; /* Graphics context for displaying pixmap. + * None means there was an error while + * setting up the instance, so it cannot + * be displayed. */ +} PixmapData; + + +/*---------------------------------------------------------------------- + * TixpInitPixmapInstance -- + * + * Initializes the platform-specific data of a pixmap instance + * + *---------------------------------------------------------------------- + */ + +void +TixpInitPixmapInstance(masterPtr, instancePtr) + PixmapMaster *masterPtr; /* Pointer to master for image. */ + PixmapInstance *instancePtr;/* The pixmap instance. */ +{ + PixmapData * dataPtr; + + dataPtr = (PixmapData *)ckalloc(sizeof(PixmapData)); + dataPtr->mask = None; + dataPtr->gc = None; + + instancePtr->clientData = (ClientData)dataPtr; +} + +/*---------------------------------------------------------------------- + * TixpXpmAllocTmpBuffer -- + * + * Allocate a temporary space to draw the image. + * + *---------------------------------------------------------------------- + */ + +void +TixpXpmAllocTmpBuffer(masterPtr, instancePtr, imagePtr, maskPtr) + PixmapMaster * masterPtr; + PixmapInstance * instancePtr; + XImage ** imagePtr; + XImage ** maskPtr; +{ + int pad; + XImage * image = NULL, * mask = NULL; + Display *display = Tk_Display(instancePtr->tkwin); + int depth; + + depth = Tk_Depth(instancePtr->tkwin); + + if (depth > 16) { + pad = 32; + } else if (depth > 8) { + pad = 16; + } else { + pad = 8; + } + + /* + * Create the XImage structures to store the temporary image + */ + image = XCreateImage(display, + Tk_Visual(instancePtr->tkwin), + depth, ZPixmap, 0, 0, + masterPtr->size[0], masterPtr->size[1], pad, 0); + image->data = + (char *)ckalloc(image->bytes_per_line * masterPtr->size[1]); + + mask = XCreateImage(display, + Tk_Visual(instancePtr->tkwin), + 1, XYPixmap, 0, 0, + masterPtr->size[0], masterPtr->size[1], pad, 0); + + mask->data = + (char *)ckalloc(mask->bytes_per_line * masterPtr->size[1]); + + *imagePtr = image; + *maskPtr = mask; +} + +void +TixpXpmFreeTmpBuffer(masterPtr, instancePtr, image, mask) + PixmapMaster * masterPtr; + PixmapInstance * instancePtr; + XImage * image; + XImage * mask; +{ + if (image) { + ckfree((char*)image->data); + image->data = NULL; + XDestroyImage(image); + } + if (mask) { + ckfree((char*)mask->data); + mask->data = NULL; + XDestroyImage(mask); + } +} + +/*---------------------------------------------------------------------- + * TixpXpmSetPixel -- + * + * Sets the pixel at the given (x,y) coordinate to be the given + * color. + *---------------------------------------------------------------------- + */ +void +TixpXpmSetPixel(instancePtr, image, mask, x, y, colorPtr, isTranspPtr) + PixmapInstance * instancePtr; + XImage * image; + XImage * mask; + int x; + int y; + XColor * colorPtr; + int * isTranspPtr; +{ + if (colorPtr != NULL) { + XPutPixel(image, x, y, colorPtr->pixel); + XPutPixel(mask, x, y, 1); + } else { + XPutPixel(mask, x, y, 0); + *isTranspPtr = 1; + } +} + +/*---------------------------------------------------------------------- + * TixpXpmRealizePixmap -- + * + * On Unix: Create the pixmap from the buffer. + * On Windows: Free the mask if there are no transparent pixels. + *---------------------------------------------------------------------- + */ + +void +TixpXpmRealizePixmap(masterPtr, instancePtr, image, mask, isTransp) + PixmapMaster * masterPtr; + PixmapInstance * instancePtr; + XImage * image; + XImage * mask; + int isTransp; +{ + Display *display = Tk_Display(instancePtr->tkwin); + int depth = Tk_Depth(instancePtr->tkwin); + PixmapData *dataPtr = (PixmapData*)instancePtr->clientData; + unsigned int gcMask; + XGCValues gcValues; + GC gc; + + instancePtr->pixmap = Tk_GetPixmap(display, + Tk_WindowId(instancePtr->tkwin), + masterPtr->size[0], masterPtr->size[1], depth); + + gc = Tk_GetGC(instancePtr->tkwin, 0, NULL); + + XPutImage(display, instancePtr->pixmap, + gc, image, 0, 0, 0, 0, masterPtr->size[0], masterPtr->size[1]); + + Tk_FreeGC(display, gc); + + if (isTransp) { + /* + * There are transparent pixels. We need a mask. + */ + dataPtr->mask = Tk_GetPixmap(display, + Tk_WindowId(instancePtr->tkwin), + masterPtr->size[0], masterPtr->size[1], 1); + gc = XCreateGC(display, dataPtr->mask, 0, NULL); + XPutImage(display, dataPtr->mask, + gc, mask, 0, 0, 0, 0, masterPtr->size[0], masterPtr->size[1]); + XFreeGC(display, gc); + } else { + dataPtr->mask = None; + } + + /* + * Allocate a GC for drawing this instance (mask is not used if there + * is no transparent pixels inside the image). + */ + if (dataPtr->mask != None) { + gcMask = GCGraphicsExposures|GCClipMask; + } else { + gcMask = GCGraphicsExposures; + } + gcValues.graphics_exposures = False; + gcValues.clip_mask = dataPtr->mask; + + gc = Tk_GetGC(instancePtr->tkwin, gcMask, &gcValues); + dataPtr->gc = gc; +} + +void +TixpXpmFreeInstanceData(instancePtr, delete, display) + PixmapInstance *instancePtr;/* Pixmap instance. */ + int delete; /* Should the instance data structure + * be deleted as well? */ + Display *display; /* Display containing window that used image.*/ +{ + PixmapData *dataPtr = (PixmapData*)instancePtr->clientData; + + if (dataPtr->mask != None) { + Tk_FreePixmap(display, dataPtr->mask); + dataPtr->mask = None; + } + if (dataPtr->gc != None) { + Tk_FreeGC(display, dataPtr->gc); + dataPtr->gc = None; + } + if (delete) { + ckfree((char*)dataPtr); + instancePtr->clientData = NULL; + } +} + +void +TixpXpmDisplay(clientData, display, drawable, imageX, imageY, width, + height, drawableX, drawableY) + ClientData clientData; /* Pointer to PixmapInstance structure for + * for instance to be displayed. */ + Display *display; /* Display on which to draw image. */ + Drawable drawable; /* Pixmap or window in which to draw image. */ + int imageX, imageY; /* Upper-left corner of region within image + * to draw. */ + int width, height; /* Dimensions of region within image to draw.*/ + int drawableX, drawableY; /* Coordinates within drawable that + * correspond to imageX and imageY. */ +{ + PixmapInstance *instancePtr = (PixmapInstance *) clientData; + PixmapData *dataPtr = (PixmapData*)instancePtr->clientData; + + /* + * If there's no graphics context, it means that an error occurred + * while creating the image instance so it can't be displayed. + */ + if (dataPtr->gc == None) { + return; + } + + /* + * We always use clipping: modify the clip origin within + * the graphics context to line up with the image's origin. + * Then draw the image and reset the clip origin. + */ + XSetClipOrigin(display, dataPtr->gc, drawableX - imageX, + drawableY - imageY); + XCopyArea(display, instancePtr->pixmap, drawable, dataPtr->gc, + imageX, imageY, (unsigned) width, (unsigned) height, + drawableX, drawableY); + XSetClipOrigin(display, dataPtr->gc, 0, 0); +}
tixUnixXpm.c Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.