Check-in [e327ead7cb]
Overview
SHA1:e327ead7cbcd4b242b82b8d4fb35e06e74fe9cea
Date: 2011-09-09 13:45:00
User: rkeene
Comment:Updated to produce libctk.so
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-09-09
14:09
[a68d12f98b] Updated to use simpler and more portable build system (user: rkeene, tags: trunk)
13:45
[e327ead7cb] Updated to produce libctk.so (user: rkeene, tags: trunk)
13:30
[6f5109a8b4] Added ctk project (user: rkeene, tags: trunk)
Changes

Added .fossil-settings/ignore-glob version [6736ca86e2].

            1  +Makefile
            2  +Makefile/*
            3  +autom4te.cache
            4  +autom4te.cache/*
            5  +config.log
            6  +config.log/*
            7  +config.status
            8  +config.status/*
            9  +configure
           10  +configure/*

Modified Makefile.in from [41aed597d9] to [7eaddc5372].

    64     64   # appropriate version of Tcl for this version of CTk, curses,
    65     65   # and the math library (in that order).  It is (hopefully) filled
    66     66   # in properly by the configure script.
    67     67   LIBS = @LIBS@
    68     68   
    69     69   # To change the compiler switches, for example to change from -O
    70     70   # to -g, change the following line:
    71         -CFLAGS = -O
           71  +CFLAGS = @CFLAGS@
    72     72   
    73     73   # Linker options (-L/.../lib) necessary to find the TCL
    74     74   # and curses libraries (if any).  It is (hopefully) filled in
    75     75   # properly by the configure script.
    76     76   LDFLAGS =		@LDFLAGS@
    77     77   
    78     78   # Preprocessor options (-I/.../include) necessary to find the TCL
................................................................................
   165    165   	tkUtil.c tkWindow.c tkXEvent.c
   166    166   
   167    167   HDRS = default.h keyCodes.h ks_names.h patchlevel.h tk.h tkInt.h \
   168    168   	tkPort.h tkText.h
   169    169   
   170    170   DEMOPROGS = widget
   171    171   
   172         -all: libctk.a cwish$(VERSION)
          172  +all: @TARGETS@
   173    173   
   174    174   libctk.a: $(OBJS)
   175    175   	rm -f libctk.a
   176    176   	ar cr libctk.a $(OBJS)
   177    177   	$(RANLIB) libctk.a
   178    178   
   179         -cwish$(VERSION): tkAppInit.o libctk.a
   180         -	$(CC) $(CC_SWITCHES) tkAppInit.o libctk.a $(LDFLAGS) $(LIBS) -o cwish$(VERSION)
          179  +libctk.so: $(OBJS)
          180  +	rm -f libctk.so
          181  +	gcc -rdynamic -shared $(CFLAGS) $(LDFLAGS) -o libctk.so $(OBJS) $(LIBS)
   181    182   
   182    183   configInfo: Makefile
   183    184   	@rm -f configInfo
   184    185   	@echo "# Definitions and libraries needed to build Tk applications" >> configInfo
   185    186   	@echo "# (generated by the configure script):" >> configInfo
   186    187   	@echo "TK_CC_SWITCHES = ${AC_FLAGS} ${MEM_DEBUG_FLAGS}" >> configInfo
   187    188   	@echo "TK_LIBS = @LIBS@" >> configInfo
   188    189   
   189    190   install: install-binaries install-libraries install-demos install-man
   190    191   
   191         -install-binaries: libctk.a cwish$(VERSION)
          192  +install-binaries: libctk.a
   192    193   	@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
   193    194   	    do \
   194    195   	    if [ ! -d $$i ] ; then \
   195    196   		echo "Making directory $$i"; \
   196    197   		mkdir $$i; \
   197    198   		chmod 755 $$i; \
   198    199   		else true; \
   199    200   		fi; \
   200    201   	    done;
   201    202   	@echo "Installing libctk.a"
   202    203   	@$(INSTALL_DATA) libctk.a $(LIB_INSTALL_DIR)
   203    204   	@$(RANLIB) $(LIB_INSTALL_DIR)/libctk.a
   204         -	@echo "Installing cwish$(VERSION)"
   205         -	@$(INSTALL_PROGRAM) cwish$(VERSION) $(BIN_INSTALL_DIR)
   206    205   
   207    206   install-libraries:
   208    207   	@for i in $(INSTALL_ROOT)$(prefix)/lib $(INCLUDE_INSTALL_DIR) \
   209    208   		$(SCRIPT_INSTALL_DIR) ; \
   210    209   	    do \
   211    210   	    if [ ! -d $$i ] ; then \
   212    211   		echo "Making directory $$i"; \
................................................................................
   263    262   	    $(INSTALL_DATA) $$i $(MAN1_INSTALL_DIR); \
   264    263   	    done;
   265    264   
   266    265   Makefile: $(SRC_DIR)/Makefile.in
   267    266   	$(SHELL) config.status
   268    267   
   269    268   clean:
          269  +	rm -f libctk.a libctk.so
   270    270   	rm -f *.a *.o core errs *~ \#* TAGS *.E a.out errors tktest cwish$(VERSION) \
   271    271   		config.info
   272    272   
   273    273   distclean: clean
   274         -	rm -f Makefile config.status
          274  +	rm -f Makefile config.status config.log
   275    275   
   276    276   depend:
   277    277   	makedepend -- $(CC_SWITCHES) -- $(SRCS)
   278    278   
   279    279   .c.o:
   280    280   	$(CC) -c $(CC_SWITCHES) $<
   281    281   

Deleted config.log version [242d0fd3a2].

     1         -This file contains any messages produced by compilers while
     2         -running configure, to aid debugging if configure makes a mistake.
     3         -
     4         -cc -E
     5         -cc -E
     6         -cc -E
     7         -cc -c conftest.c
     8         -cc -E
     9         -cc -E
    10         -cc -E
    11         -cc -o conftest conftest.c
    12         -cc -E
    13         -cc -E
    14         -cc -E
    15         -cc -o conftest conftest.c
    16         -configure: In function 'main':
    17         -configure:1009: warning: incompatible implicit declaration of built-in function 'exit'
    18         -cc -E
    19         -cc -E
    20         -cc -E
    21         -cc -E
    22         -cc -o conftest conftest.c -lcurses
    23         -cc -E
    24         -cc -o conftest conftest.c -lcurses
    25         -cc -o conftest conftest.c -lcurses
    26         -cc -o conftest conftest.c -lcurses
    27         -cc -o conftest conftest.c -lcurses
    28         -cc -c conftest.c
    29         -cc -c conftest.c
    30         -configure: In function 't':
    31         -configure:1428: error: 'FILE' has no member named '_cnt'
    32         -cc -c conftest.c
    33         -configure: In function 't':
    34         -configure:1444: error: 'FILE' has no member named '__cnt'
    35         -cc -c conftest.c
    36         -configure: In function 't':
    37         -configure:1461: error: 'FILE' has no member named '_r'
    38         -cc -c conftest.c
    39         -configure: In function 't':
    40         -configure:1478: error: 'FILE' has no member named 'readCount'
    41         -cc -c conftest.c
    42         -configure: In function 't':
    43         -configure:1501: error: 'FILE' has no member named '_gptr'
    44         -configure:1501: error: 'FILE' has no member named '_egptr'
    45         -cc -c conftest.c
    46         -cc -o conftest conftest.c -lcurses
    47         -configure:1572: warning: conflicting types for built-in function 'sin'
    48         -/tmp/ccYH09hj.o: In function `t':
    49         -conftest.c:(.text+0x20): undefined reference to `sin'
    50         -collect2: ld returned 1 exit status
    51         -cc -o conftest conftest.c -lieee -lm -lcurses
    52         -cc -o conftest conftest.c -lieee -lm -lcurses
    53         -cc -o conftest conftest.c -lieee -lm -lcurses
    54         -configure:1708: warning: conflicting types for built-in function 'memmove'
    55         -cc -o conftest conftest.c -lieee -lm -lcurses
    56         -configure: In function 'main':
    57         -configure:1766: warning: incompatible implicit declaration of built-in function 'exit'
    58         -configure:1768: warning: incompatible implicit declaration of built-in function 'exit'
    59         -cc -o conftest conftest.c -lieee -lm -lcurses
    60         -/tmp/cc6XWPiP.o: In function `t':
    61         -conftest.c:(.text+0x20): undefined reference to `BSDgettimeofday'
    62         -collect2: ld returned 1 exit status
    63         -cc -E
    64         -cc -o conftest conftest.c -lieee -lm -lcurses
    65         -cc -o conftest conftest.c -lieee -lm -lcurses
    66         -configure: In function 'main':
    67         -configure:1935: warning: incompatible implicit declaration of built-in function 'exit'
    68         -configure:1937: warning: incompatible implicit declaration of built-in function 'exit'
    69         -cc -o conftest conftest.c -ltcl8.2 -lieee -lm -lcurses
    70         -/usr/lib/gcc/i486-slackware-linux/4.3.3/../../../../i486-slackware-linux/bin/ld: cannot find -ltcl8.2
    71         -collect2: ld returned 1 exit status
    72         -cc -E

Deleted configure version [3b129ddf7f].

     1         -#! /bin/sh
     2         -
     3         -# Guess values for system-dependent variables and create Makefiles.
     4         -# Generated automatically using autoconf version 2.7 
     5         -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
     6         -#
     7         -# This configure script is free software; the Free Software Foundation
     8         -# gives unlimited permission to copy, distribute and modify it.
     9         -
    10         -# Defaults:
    11         -ac_help=
    12         -ac_default_prefix=/usr/local
    13         -# Any additions from configure.in:
    14         -ac_help="$ac_help
    15         -  --with-ncurses   use ncurses library instead of curses"
    16         -ac_help="$ac_help
    17         -  --with-libdirs   directories to add to library search path"
    18         -ac_help="$ac_help
    19         -  --with-incdirs   directories to add to include search path"
    20         -
    21         -# Initialize some variables set by options.
    22         -# The variables have the same names as the options, with
    23         -# dashes changed to underlines.
    24         -build=NONE
    25         -cache_file=./config.cache
    26         -exec_prefix=NONE
    27         -host=NONE
    28         -no_create=
    29         -nonopt=NONE
    30         -no_recursion=
    31         -prefix=NONE
    32         -program_prefix=NONE
    33         -program_suffix=NONE
    34         -program_transform_name=s,x,x,
    35         -silent=
    36         -site=
    37         -srcdir=
    38         -target=NONE
    39         -verbose=
    40         -x_includes=NONE
    41         -x_libraries=NONE
    42         -bindir='${exec_prefix}/bin'
    43         -sbindir='${exec_prefix}/sbin'
    44         -libexecdir='${exec_prefix}/libexec'
    45         -datadir='${prefix}/share'
    46         -sysconfdir='${prefix}/etc'
    47         -sharedstatedir='${prefix}/com'
    48         -localstatedir='${prefix}/var'
    49         -libdir='${exec_prefix}/lib'
    50         -includedir='${prefix}/include'
    51         -oldincludedir='/usr/include'
    52         -infodir='${prefix}/info'
    53         -mandir='${prefix}/man'
    54         -
    55         -# Initialize some other variables.
    56         -subdirs=
    57         -MFLAGS= MAKEFLAGS=
    58         -
    59         -ac_prev=
    60         -for ac_option
    61         -do
    62         -
    63         -  # If the previous option needs an argument, assign it.
    64         -  if test -n "$ac_prev"; then
    65         -    eval "$ac_prev=\$ac_option"
    66         -    ac_prev=
    67         -    continue
    68         -  fi
    69         -
    70         -  case "$ac_option" in
    71         -  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    72         -  *) ac_optarg= ;;
    73         -  esac
    74         -
    75         -  # Accept the important Cygnus configure options, so we can diagnose typos.
    76         -
    77         -  case "$ac_option" in
    78         -
    79         -  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    80         -    ac_prev=bindir ;;
    81         -  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    82         -    bindir="$ac_optarg" ;;
    83         -
    84         -  -build | --build | --buil | --bui | --bu)
    85         -    ac_prev=build ;;
    86         -  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    87         -    build="$ac_optarg" ;;
    88         -
    89         -  -cache-file | --cache-file | --cache-fil | --cache-fi \
    90         -  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    91         -    ac_prev=cache_file ;;
    92         -  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    93         -  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    94         -    cache_file="$ac_optarg" ;;
    95         -
    96         -  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    97         -    ac_prev=datadir ;;
    98         -  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    99         -  | --da=*)
   100         -    datadir="$ac_optarg" ;;
   101         -
   102         -  -disable-* | --disable-*)
   103         -    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
   104         -    # Reject names that are not valid shell variable names.
   105         -    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
   106         -      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   107         -    fi
   108         -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   109         -    eval "enable_${ac_feature}=no" ;;
   110         -
   111         -  -enable-* | --enable-*)
   112         -    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
   113         -    # Reject names that are not valid shell variable names.
   114         -    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
   115         -      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   116         -    fi
   117         -    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   118         -    case "$ac_option" in
   119         -      *=*) ;;
   120         -      *) ac_optarg=yes ;;
   121         -    esac
   122         -    eval "enable_${ac_feature}='$ac_optarg'" ;;
   123         -
   124         -  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   125         -  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   126         -  | --exec | --exe | --ex)
   127         -    ac_prev=exec_prefix ;;
   128         -  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   129         -  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   130         -  | --exec=* | --exe=* | --ex=*)
   131         -    exec_prefix="$ac_optarg" ;;
   132         -
   133         -  -gas | --gas | --ga | --g)
   134         -    # Obsolete; use --with-gas.
   135         -    with_gas=yes ;;
   136         -
   137         -  -help | --help | --hel | --he)
   138         -    # Omit some internal or obsolete options to make the list less imposing.
   139         -    # This message is too long to be a string in the A/UX 3.1 sh.
   140         -    cat << EOF
   141         -Usage: configure [options] [host]
   142         -Options: [defaults in brackets after descriptions]
   143         -Configuration:
   144         -  --cache-file=FILE       cache test results in FILE
   145         -  --help                  print this message
   146         -  --no-create             do not create output files
   147         -  --quiet, --silent       do not print \`checking...' messages
   148         -  --version               print the version of autoconf that created configure
   149         -Directory and file names:
   150         -  --prefix=PREFIX         install architecture-independent files in PREFIX
   151         -                          [$ac_default_prefix]
   152         -  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   153         -                          [same as prefix]
   154         -  --bindir=DIR            user executables in DIR [EPREFIX/bin]
   155         -  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
   156         -  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
   157         -  --datadir=DIR           read-only architecture-independent data in DIR
   158         -                          [PREFIX/share]
   159         -  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
   160         -  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
   161         -                          [PREFIX/com]
   162         -  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
   163         -  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
   164         -  --includedir=DIR        C header files in DIR [PREFIX/include]
   165         -  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
   166         -  --infodir=DIR           info documentation in DIR [PREFIX/info]
   167         -  --mandir=DIR            man documentation in DIR [PREFIX/man]
   168         -  --srcdir=DIR            find the sources in DIR [configure dir or ..]
   169         -  --program-prefix=PREFIX prepend PREFIX to installed program names
   170         -  --program-suffix=SUFFIX append SUFFIX to installed program names
   171         -  --program-transform-name=PROGRAM
   172         -                          run sed PROGRAM on installed program names
   173         -EOF
   174         -    cat << EOF
   175         -Host type:
   176         -  --build=BUILD           configure for building on BUILD [BUILD=HOST]
   177         -  --host=HOST             configure for HOST [guessed]
   178         -  --target=TARGET         configure for TARGET [TARGET=HOST]
   179         -Features and packages:
   180         -  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   181         -  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   182         -  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   183         -  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   184         -  --x-includes=DIR        X include files are in DIR
   185         -  --x-libraries=DIR       X library files are in DIR
   186         -EOF
   187         -    if test -n "$ac_help"; then
   188         -      echo "--enable and --with options recognized:$ac_help"
   189         -    fi
   190         -    exit 0 ;;
   191         -
   192         -  -host | --host | --hos | --ho)
   193         -    ac_prev=host ;;
   194         -  -host=* | --host=* | --hos=* | --ho=*)
   195         -    host="$ac_optarg" ;;
   196         -
   197         -  -includedir | --includedir | --includedi | --included | --include \
   198         -  | --includ | --inclu | --incl | --inc)
   199         -    ac_prev=includedir ;;
   200         -  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   201         -  | --includ=* | --inclu=* | --incl=* | --inc=*)
   202         -    includedir="$ac_optarg" ;;
   203         -
   204         -  -infodir | --infodir | --infodi | --infod | --info | --inf)
   205         -    ac_prev=infodir ;;
   206         -  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   207         -    infodir="$ac_optarg" ;;
   208         -
   209         -  -libdir | --libdir | --libdi | --libd)
   210         -    ac_prev=libdir ;;
   211         -  -libdir=* | --libdir=* | --libdi=* | --libd=*)
   212         -    libdir="$ac_optarg" ;;
   213         -
   214         -  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   215         -  | --libexe | --libex | --libe)
   216         -    ac_prev=libexecdir ;;
   217         -  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   218         -  | --libexe=* | --libex=* | --libe=*)
   219         -    libexecdir="$ac_optarg" ;;
   220         -
   221         -  -localstatedir | --localstatedir | --localstatedi | --localstated \
   222         -  | --localstate | --localstat | --localsta | --localst \
   223         -  | --locals | --local | --loca | --loc | --lo)
   224         -    ac_prev=localstatedir ;;
   225         -  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   226         -  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
   227         -  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
   228         -    localstatedir="$ac_optarg" ;;
   229         -
   230         -  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   231         -    ac_prev=mandir ;;
   232         -  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   233         -    mandir="$ac_optarg" ;;
   234         -
   235         -  -nfp | --nfp | --nf)
   236         -    # Obsolete; use --without-fp.
   237         -    with_fp=no ;;
   238         -
   239         -  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   240         -  | --no-cr | --no-c)
   241         -    no_create=yes ;;
   242         -
   243         -  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   244         -  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   245         -    no_recursion=yes ;;
   246         -
   247         -  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   248         -  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   249         -  | --oldin | --oldi | --old | --ol | --o)
   250         -    ac_prev=oldincludedir ;;
   251         -  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   252         -  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   253         -  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   254         -    oldincludedir="$ac_optarg" ;;
   255         -
   256         -  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   257         -    ac_prev=prefix ;;
   258         -  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   259         -    prefix="$ac_optarg" ;;
   260         -
   261         -  -program-prefix | --program-prefix | --program-prefi | --program-pref \
   262         -  | --program-pre | --program-pr | --program-p)
   263         -    ac_prev=program_prefix ;;
   264         -  -program-prefix=* | --program-prefix=* | --program-prefi=* \
   265         -  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   266         -    program_prefix="$ac_optarg" ;;
   267         -
   268         -  -program-suffix | --program-suffix | --program-suffi | --program-suff \
   269         -  | --program-suf | --program-su | --program-s)
   270         -    ac_prev=program_suffix ;;
   271         -  -program-suffix=* | --program-suffix=* | --program-suffi=* \
   272         -  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   273         -    program_suffix="$ac_optarg" ;;
   274         -
   275         -  -program-transform-name | --program-transform-name \
   276         -  | --program-transform-nam | --program-transform-na \
   277         -  | --program-transform-n | --program-transform- \
   278         -  | --program-transform | --program-transfor \
   279         -  | --program-transfo | --program-transf \
   280         -  | --program-trans | --program-tran \
   281         -  | --progr-tra | --program-tr | --program-t)
   282         -    ac_prev=program_transform_name ;;
   283         -  -program-transform-name=* | --program-transform-name=* \
   284         -  | --program-transform-nam=* | --program-transform-na=* \
   285         -  | --program-transform-n=* | --program-transform-=* \
   286         -  | --program-transform=* | --program-transfor=* \
   287         -  | --program-transfo=* | --program-transf=* \
   288         -  | --program-trans=* | --program-tran=* \
   289         -  | --progr-tra=* | --program-tr=* | --program-t=*)
   290         -    program_transform_name="$ac_optarg" ;;
   291         -
   292         -  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   293         -  | -silent | --silent | --silen | --sile | --sil)
   294         -    silent=yes ;;
   295         -
   296         -  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   297         -    ac_prev=sbindir ;;
   298         -  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   299         -  | --sbi=* | --sb=*)
   300         -    sbindir="$ac_optarg" ;;
   301         -
   302         -  -sharedstatedir | --sharedstatedir | --sharedstatedi \
   303         -  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   304         -  | --sharedst | --shareds | --shared | --share | --shar \
   305         -  | --sha | --sh)
   306         -    ac_prev=sharedstatedir ;;
   307         -  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   308         -  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   309         -  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   310         -  | --sha=* | --sh=*)
   311         -    sharedstatedir="$ac_optarg" ;;
   312         -
   313         -  -site | --site | --sit)
   314         -    ac_prev=site ;;
   315         -  -site=* | --site=* | --sit=*)
   316         -    site="$ac_optarg" ;;
   317         -
   318         -  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   319         -    ac_prev=srcdir ;;
   320         -  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   321         -    srcdir="$ac_optarg" ;;
   322         -
   323         -  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   324         -  | --syscon | --sysco | --sysc | --sys | --sy)
   325         -    ac_prev=sysconfdir ;;
   326         -  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   327         -  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   328         -    sysconfdir="$ac_optarg" ;;
   329         -
   330         -  -target | --target | --targe | --targ | --tar | --ta | --t)
   331         -    ac_prev=target ;;
   332         -  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   333         -    target="$ac_optarg" ;;
   334         -
   335         -  -v | -verbose | --verbose | --verbos | --verbo | --verb)
   336         -    verbose=yes ;;
   337         -
   338         -  -version | --version | --versio | --versi | --vers)
   339         -    echo "configure generated by autoconf version 2.7"
   340         -    exit 0 ;;
   341         -
   342         -  -with-* | --with-*)
   343         -    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
   344         -    # Reject names that are not valid shell variable names.
   345         -    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
   346         -      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
   347         -    fi
   348         -    ac_package=`echo $ac_package| sed 's/-/_/g'`
   349         -    case "$ac_option" in
   350         -      *=*) ;;
   351         -      *) ac_optarg=yes ;;
   352         -    esac
   353         -    eval "with_${ac_package}='$ac_optarg'" ;;
   354         -
   355         -  -without-* | --without-*)
   356         -    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
   357         -    # Reject names that are not valid shell variable names.
   358         -    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
   359         -      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
   360         -    fi
   361         -    ac_package=`echo $ac_package| sed 's/-/_/g'`
   362         -    eval "with_${ac_package}=no" ;;
   363         -
   364         -  --x)
   365         -    # Obsolete; use --with-x.
   366         -    with_x=yes ;;
   367         -
   368         -  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   369         -  | --x-incl | --x-inc | --x-in | --x-i)
   370         -    ac_prev=x_includes ;;
   371         -  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   372         -  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   373         -    x_includes="$ac_optarg" ;;
   374         -
   375         -  -x-libraries | --x-libraries | --x-librarie | --x-librari \
   376         -  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   377         -    ac_prev=x_libraries ;;
   378         -  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   379         -  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   380         -    x_libraries="$ac_optarg" ;;
   381         -
   382         -  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
   383         -    ;;
   384         -
   385         -  *)
   386         -    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
   387         -      echo "configure: warning: $ac_option: invalid host type" 1>&2
   388         -    fi
   389         -    if test "x$nonopt" != xNONE; then
   390         -      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
   391         -    fi
   392         -    nonopt="$ac_option"
   393         -    ;;
   394         -
   395         -  esac
   396         -done
   397         -
   398         -if test -n "$ac_prev"; then
   399         -  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
   400         -fi
   401         -
   402         -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
   403         -
   404         -# File descriptor usage:
   405         -# 0 standard input
   406         -# 1 file creation
   407         -# 2 errors and warnings
   408         -# 3 some systems may open it to /dev/tty
   409         -# 4 used on the Kubota Titan
   410         -# 6 checking for... messages and results
   411         -# 5 compiler messages saved in config.log
   412         -if test "$silent" = yes; then
   413         -  exec 6>/dev/null
   414         -else
   415         -  exec 6>&1
   416         -fi
   417         -exec 5>./config.log
   418         -
   419         -echo "\
   420         -This file contains any messages produced by compilers while
   421         -running configure, to aid debugging if configure makes a mistake.
   422         -" 1>&5
   423         -
   424         -# Strip out --no-create and --no-recursion so they do not pile up.
   425         -# Also quote any args containing shell metacharacters.
   426         -ac_configure_args=
   427         -for ac_arg
   428         -do
   429         -  case "$ac_arg" in
   430         -  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   431         -  | --no-cr | --no-c) ;;
   432         -  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   433         -  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
   434         -  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
   435         -  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   436         -  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
   437         -  esac
   438         -done
   439         -
   440         -# NLS nuisances.
   441         -# Only set LANG and LC_ALL to C if already set.
   442         -# These must not be set unconditionally because not all systems understand
   443         -# e.g. LANG=C (notably SCO).
   444         -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
   445         -if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
   446         -
   447         -# confdefs.h avoids OS command line length limits that DEFS can exceed.
   448         -rm -rf conftest* confdefs.h
   449         -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
   450         -echo > confdefs.h
   451         -
   452         -# A filename unique to this package, relative to the directory that
   453         -# configure is in, which we can look for to find out if srcdir is correct.
   454         -ac_unique_file=tk.h
   455         -
   456         -# Find the source files, if location was not specified.
   457         -if test -z "$srcdir"; then
   458         -  ac_srcdir_defaulted=yes
   459         -  # Try the directory containing this script, then its parent.
   460         -  ac_prog=$0
   461         -  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
   462         -  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
   463         -  srcdir=$ac_confdir
   464         -  if test ! -r $srcdir/$ac_unique_file; then
   465         -    srcdir=..
   466         -  fi
   467         -else
   468         -  ac_srcdir_defaulted=no
   469         -fi
   470         -if test ! -r $srcdir/$ac_unique_file; then
   471         -  if test "$ac_srcdir_defaulted" = yes; then
   472         -    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
   473         -  else
   474         -    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
   475         -  fi
   476         -fi
   477         -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
   478         -
   479         -# Prefer explicitly selected file to automatically selected ones.
   480         -if test -z "$CONFIG_SITE"; then
   481         -  if test "x$prefix" != xNONE; then
   482         -    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   483         -  else
   484         -    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   485         -  fi
   486         -fi
   487         -for ac_site_file in $CONFIG_SITE; do
   488         -  if test -r "$ac_site_file"; then
   489         -    echo "loading site script $ac_site_file"
   490         -    . "$ac_site_file"
   491         -  fi
   492         -done
   493         -
   494         -if test -r "$cache_file"; then
   495         -  echo "loading cache $cache_file"
   496         -  . $cache_file
   497         -else
   498         -  echo "creating cache $cache_file"
   499         -  > $cache_file
   500         -fi
   501         -
   502         -ac_ext=c
   503         -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   504         -ac_cpp='echo $CPP $CPPFLAGS 1>&5;
   505         -$CPP $CPPFLAGS'
   506         -ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
   507         -${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
   508         -ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
   509         -${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
   510         -
   511         -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   512         -  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
   513         -  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
   514         -    ac_n= ac_c='
   515         -' ac_t='	'
   516         -  else
   517         -    ac_n=-n ac_c= ac_t=
   518         -  fi
   519         -else
   520         -  ac_n= ac_c='\c' ac_t=
   521         -fi
   522         -
   523         -
   524         -
   525         -# @(#) $Id: ctk.shar,v 1.48 1995/12/21 19:31:05 andrewm Exp andrewm $
   526         -
   527         -# Check whether --with-ncurses or --without-ncurses was given.
   528         -if test "${with_ncurses+set}" = set; then
   529         -  withval="$with_ncurses"
   530         -  :
   531         -else
   532         -  with_ncurses=no
   533         -fi
   534         -
   535         -# Check whether --with-libdirs or --without-libdirs was given.
   536         -if test "${with_libdirs+set}" = set; then
   537         -  withval="$with_libdirs"
   538         -  :
   539         -fi
   540         -
   541         -# Check whether --with-incdirs or --without-incdirs was given.
   542         -if test "${with_incdirs+set}" = set; then
   543         -  withval="$with_incdirs"
   544         -  :
   545         -fi
   546         -
   547         -
   548         -for ldir in $with_libdirs ;do
   549         -    LDFLAGS="$LDFLAGS -L$ldir"
   550         -done
   551         -for idir in $with_incdirs ;do
   552         -    CPPFLAGS="$CPPFLAGS -I$idir"
   553         -done
   554         -
   555         -ac_aux_dir=
   556         -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   557         -  if test -f $ac_dir/install-sh; then
   558         -    ac_aux_dir=$ac_dir
   559         -    ac_install_sh="$ac_aux_dir/install-sh -c"
   560         -    break
   561         -  elif test -f $ac_dir/install.sh; then
   562         -    ac_aux_dir=$ac_dir
   563         -    ac_install_sh="$ac_aux_dir/install.sh -c"
   564         -    break
   565         -  fi
   566         -done
   567         -if test -z "$ac_aux_dir"; then
   568         -  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
   569         -fi
   570         -ac_config_guess=$ac_aux_dir/config.guess
   571         -ac_config_sub=$ac_aux_dir/config.sub
   572         -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
   573         -
   574         -# Find a good install program.  We prefer a C program (faster),
   575         -# so one script is as good as another.  But avoid the broken or
   576         -# incompatible versions:
   577         -# SysV /etc/install, /usr/sbin/install
   578         -# SunOS /usr/etc/install
   579         -# IRIX /sbin/install
   580         -# AIX /bin/install
   581         -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
   582         -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   583         -# ./install, which can be erroneously created by make from ./install.sh.
   584         -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
   585         -if test -z "$INSTALL"; then
   586         -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   587         -  echo $ac_n "(cached) $ac_c" 1>&6
   588         -else
   589         -    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   590         -  for ac_dir in $PATH; do
   591         -    # Account for people who put trailing slashes in PATH elements.
   592         -    case "$ac_dir/" in
   593         -    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
   594         -    *)
   595         -      # OSF1 and SCO ODT 3.0 have their own names for install.
   596         -      for ac_prog in ginstall installbsd scoinst install; do
   597         -        if test -f $ac_dir/$ac_prog; then
   598         -	  if test $ac_prog = install &&
   599         -            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
   600         -	    # AIX install.  It has an incompatible calling convention.
   601         -	    # OSF/1 installbsd also uses dspmsg, but is usable.
   602         -	    :
   603         -	  else
   604         -	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   605         -	    break 2
   606         -	  fi
   607         -	fi
   608         -      done
   609         -      ;;
   610         -    esac
   611         -  done
   612         -  IFS="$ac_save_ifs"
   613         -
   614         -fi
   615         -  if test "${ac_cv_path_install+set}" = set; then
   616         -    INSTALL="$ac_cv_path_install"
   617         -  else
   618         -    # As a last resort, use the slow shell script.  We don't cache a
   619         -    # path for INSTALL within a source directory, because that will
   620         -    # break other packages using the cache if that directory is
   621         -    # removed, or if the path is relative.
   622         -    INSTALL="$ac_install_sh"
   623         -  fi
   624         -fi
   625         -echo "$ac_t""$INSTALL" 1>&6
   626         -
   627         -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   628         -# It thinks the first close brace ends the variable substitution.
   629         -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   630         -
   631         -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   632         -
   633         -# Extract the first word of "ranlib", so it can be a program name with args.
   634         -set dummy ranlib; ac_word=$2
   635         -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   636         -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   637         -  echo $ac_n "(cached) $ac_c" 1>&6
   638         -else
   639         -  if test -n "$RANLIB"; then
   640         -  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   641         -else
   642         -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   643         -  for ac_dir in $PATH; do
   644         -    test -z "$ac_dir" && ac_dir=.
   645         -    if test -f $ac_dir/$ac_word; then
   646         -      ac_cv_prog_RANLIB="ranlib"
   647         -      break
   648         -    fi
   649         -  done
   650         -  IFS="$ac_save_ifs"
   651         -  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
   652         -fi
   653         -fi
   654         -RANLIB="$ac_cv_prog_RANLIB"
   655         -if test -n "$RANLIB"; then
   656         -  echo "$ac_t""$RANLIB" 1>&6
   657         -else
   658         -  echo "$ac_t""no" 1>&6
   659         -fi
   660         -
   661         -if test "x$prefix" = xNONE; then
   662         -echo $ac_n "checking for prefix by ""... $ac_c" 1>&6
   663         -# Extract the first word of "cwish", so it can be a program name with args.
   664         -set dummy cwish; ac_word=$2
   665         -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   666         -if eval "test \"`echo '$''{'ac_cv_path_CWISH'+set}'`\" = set"; then
   667         -  echo $ac_n "(cached) $ac_c" 1>&6
   668         -else
   669         -  case "$CWISH" in
   670         -  /*)
   671         -  ac_cv_path_CWISH="$CWISH" # Let the user override the test with a path.
   672         -  ;;
   673         -  *)
   674         -  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   675         -  for ac_dir in $PATH; do
   676         -    test -z "$ac_dir" && ac_dir=.
   677         -    if test -f $ac_dir/$ac_word; then
   678         -      ac_cv_path_CWISH="$ac_dir/$ac_word"
   679         -      break
   680         -    fi
   681         -  done
   682         -  IFS="$ac_save_ifs"
   683         -  ;;
   684         -esac
   685         -fi
   686         -CWISH="$ac_cv_path_CWISH"
   687         -if test -n "$CWISH"; then
   688         -  echo "$ac_t""$CWISH" 1>&6
   689         -else
   690         -  echo "$ac_t""no" 1>&6
   691         -fi
   692         -
   693         -  if test -n "$ac_cv_path_CWISH"; then
   694         -    prefix=`echo $ac_cv_path_CWISH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'`
   695         -  fi
   696         -fi
   697         -
   698         -CC=${CC-cc}
   699         -
   700         -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
   701         -# On Suns, sometimes $CPP names a directory.
   702         -if test -n "$CPP" && test -d "$CPP"; then
   703         -  CPP=
   704         -fi
   705         -if test -z "$CPP"; then
   706         -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
   707         -  echo $ac_n "(cached) $ac_c" 1>&6
   708         -else
   709         -    # This must be in double quotes, not single quotes, because CPP may get
   710         -  # substituted into the Makefile and "${CC-cc}" will confuse make.
   711         -  CPP="${CC-cc} -E"
   712         -  # On the NeXT, cc -E runs the code through the compiler's parser,
   713         -  # not just through cpp.
   714         -  cat > conftest.$ac_ext <<EOF
   715         -#line 716 "configure"
   716         -#include "confdefs.h"
   717         -#include <assert.h>
   718         -Syntax Error
   719         -EOF
   720         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   721         -ac_err=`grep -v '^ *+' conftest.out`
   722         -if test -z "$ac_err"; then
   723         -  :
   724         -else
   725         -  echo "$ac_err" >&5
   726         -  rm -rf conftest*
   727         -  CPP="${CC-cc} -E -traditional-cpp"
   728         -  cat > conftest.$ac_ext <<EOF
   729         -#line 730 "configure"
   730         -#include "confdefs.h"
   731         -#include <assert.h>
   732         -Syntax Error
   733         -EOF
   734         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   735         -ac_err=`grep -v '^ *+' conftest.out`
   736         -if test -z "$ac_err"; then
   737         -  :
   738         -else
   739         -  echo "$ac_err" >&5
   740         -  rm -rf conftest*
   741         -  CPP=/lib/cpp
   742         -fi
   743         -rm -f conftest*
   744         -fi
   745         -rm -f conftest*
   746         -  ac_cv_prog_CPP="$CPP"
   747         -fi
   748         -  CPP="$ac_cv_prog_CPP"
   749         -else
   750         -  ac_cv_prog_CPP="$CPP"
   751         -fi
   752         -echo "$ac_t""$CPP" 1>&6
   753         -
   754         -for ac_hdr in unistd.h limits.h
   755         -do
   756         -ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
   757         -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
   758         -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   759         -  echo $ac_n "(cached) $ac_c" 1>&6
   760         -else
   761         -  cat > conftest.$ac_ext <<EOF
   762         -#line 763 "configure"
   763         -#include "confdefs.h"
   764         -#include <$ac_hdr>
   765         -EOF
   766         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   767         -ac_err=`grep -v '^ *+' conftest.out`
   768         -if test -z "$ac_err"; then
   769         -  rm -rf conftest*
   770         -  eval "ac_cv_header_$ac_safe=yes"
   771         -else
   772         -  echo "$ac_err" >&5
   773         -  rm -rf conftest*
   774         -  eval "ac_cv_header_$ac_safe=no"
   775         -fi
   776         -rm -f conftest*
   777         -fi
   778         -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   779         -  echo "$ac_t""yes" 1>&6
   780         -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
   781         -  cat >> confdefs.h <<EOF
   782         -#define $ac_tr_hdr 1
   783         -EOF
   784         - 
   785         -else
   786         -  echo "$ac_t""no" 1>&6
   787         -fi
   788         -done
   789         -
   790         -
   791         -#--------------------------------------------------------------------
   792         -#	Include sys/select.h if it exists and if it supplies things
   793         -#	that appear to be useful and aren't already in sys/types.h.
   794         -#	This appears to be true only on the RS/6000 under AIX.  Some
   795         -#	systems like OSF/1 have a sys/select.h that's of no use, and
   796         -#	other systems like SCO UNIX have a sys/select.h that's
   797         -#	pernicious.  If "fd_set" isn't defined anywhere then set a
   798         -#	special flag.
   799         -#--------------------------------------------------------------------
   800         -
   801         -echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6
   802         -cat > conftest.$ac_ext <<EOF
   803         -#line 804 "configure"
   804         -#include "confdefs.h"
   805         -#include <sys/types.h>
   806         -int main() { return 0; }
   807         -int t() {
   808         -fd_set readMask, writeMask;
   809         -; return 0; }
   810         -EOF
   811         -if eval $ac_compile; then
   812         -  rm -rf conftest*
   813         -  tk_ok=yes
   814         -else
   815         -  rm -rf conftest*
   816         -  tk_ok=no
   817         -fi
   818         -rm -f conftest*
   819         -
   820         -if test $tk_ok = no; then
   821         -    cat > conftest.$ac_ext <<EOF
   822         -#line 823 "configure"
   823         -#include "confdefs.h"
   824         -#include <sys/select.h>
   825         -EOF
   826         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   827         -  egrep "fd_mask" >/dev/null 2>&1; then
   828         -  rm -rf conftest*
   829         -  tk_ok=yes
   830         -fi
   831         -rm -f conftest*
   832         -
   833         -    if test $tk_ok = yes; then
   834         -	cat >> confdefs.h <<\EOF
   835         -#define HAVE_SYS_SELECT_H 1
   836         -EOF
   837         -
   838         -    fi
   839         -fi
   840         -echo "$ac_t""$tk_ok" 1>&6
   841         -if test $tk_ok = no; then
   842         -    cat >> confdefs.h <<\EOF
   843         -#define NO_FD_SET 1
   844         -EOF
   845         -
   846         -fi
   847         -
   848         -#--------------------------------------------------------------------
   849         -#	Supply a substitute for stdlib.h if it doesn't define strtol,
   850         -#	strtoul, or strtod (which it doesn't in some versions of SunOS).
   851         -#--------------------------------------------------------------------
   852         -
   853         -echo $ac_n "checking stdlib.h""... $ac_c" 1>&6
   854         -cat > conftest.$ac_ext <<EOF
   855         -#line 856 "configure"
   856         -#include "confdefs.h"
   857         -#include <stdlib.h>
   858         -EOF
   859         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   860         -  egrep "strtol" >/dev/null 2>&1; then
   861         -  rm -rf conftest*
   862         -  tk_ok=yes
   863         -else
   864         -  rm -rf conftest*
   865         -  tk_ok=no
   866         -fi
   867         -rm -f conftest*
   868         -
   869         -cat > conftest.$ac_ext <<EOF
   870         -#line 871 "configure"
   871         -#include "confdefs.h"
   872         -#include <stdlib.h>
   873         -EOF
   874         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   875         -  egrep "strtoul" >/dev/null 2>&1; then
   876         -  :
   877         -else
   878         -  rm -rf conftest*
   879         -  tk_ok=no
   880         -fi
   881         -rm -f conftest*
   882         -
   883         -cat > conftest.$ac_ext <<EOF
   884         -#line 885 "configure"
   885         -#include "confdefs.h"
   886         -#include <stdlib.h>
   887         -EOF
   888         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   889         -  egrep "strtod" >/dev/null 2>&1; then
   890         -  :
   891         -else
   892         -  rm -rf conftest*
   893         -  tk_ok=no
   894         -fi
   895         -rm -f conftest*
   896         -
   897         -if test $tk_ok = no; then
   898         -    cat >> confdefs.h <<\EOF
   899         -#define NO_STDLIB_H 1
   900         -EOF
   901         -
   902         -fi
   903         -echo "$ac_t""$tk_ok" 1>&6
   904         -
   905         -#--------------------------------------------------------------------
   906         -#	Check for various typedefs and provide substitutes if
   907         -#	they don't exist.
   908         -#--------------------------------------------------------------------
   909         -
   910         -# If we cannot run a trivial program, we must be cross compiling.
   911         -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
   912         -if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
   913         -  echo $ac_n "(cached) $ac_c" 1>&6
   914         -else
   915         -  if test "$cross_compiling" = yes; then
   916         -  ac_cv_c_cross=yes
   917         -else
   918         -cat > conftest.$ac_ext <<EOF
   919         -#line 920 "configure"
   920         -#include "confdefs.h"
   921         -main(){return(0);}
   922         -EOF
   923         -eval $ac_link
   924         -if test -s conftest && (./conftest; exit) 2>/dev/null; then
   925         -  ac_cv_c_cross=no
   926         -else
   927         -  ac_cv_c_cross=yes
   928         -fi
   929         -fi
   930         -rm -fr conftest*
   931         -fi
   932         -
   933         -echo "$ac_t""$ac_cv_c_cross" 1>&6
   934         -cross_compiling=$ac_cv_c_cross
   935         -
   936         -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
   937         -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   938         -  echo $ac_n "(cached) $ac_c" 1>&6
   939         -else
   940         -  cat > conftest.$ac_ext <<EOF
   941         -#line 942 "configure"
   942         -#include "confdefs.h"
   943         -#include <stdlib.h>
   944         -#include <stdarg.h>
   945         -#include <string.h>
   946         -#include <float.h>
   947         -EOF
   948         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   949         -ac_err=`grep -v '^ *+' conftest.out`
   950         -if test -z "$ac_err"; then
   951         -  rm -rf conftest*
   952         -  ac_cv_header_stdc=yes
   953         -else
   954         -  echo "$ac_err" >&5
   955         -  rm -rf conftest*
   956         -  ac_cv_header_stdc=no
   957         -fi
   958         -rm -f conftest*
   959         -
   960         -if test $ac_cv_header_stdc = yes; then
   961         -  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   962         -cat > conftest.$ac_ext <<EOF
   963         -#line 964 "configure"
   964         -#include "confdefs.h"
   965         -#include <string.h>
   966         -EOF
   967         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   968         -  egrep "memchr" >/dev/null 2>&1; then
   969         -  :
   970         -else
   971         -  rm -rf conftest*
   972         -  ac_cv_header_stdc=no
   973         -fi
   974         -rm -f conftest*
   975         -
   976         -fi
   977         -
   978         -if test $ac_cv_header_stdc = yes; then
   979         -  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   980         -cat > conftest.$ac_ext <<EOF
   981         -#line 982 "configure"
   982         -#include "confdefs.h"
   983         -#include <stdlib.h>
   984         -EOF
   985         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   986         -  egrep "free" >/dev/null 2>&1; then
   987         -  :
   988         -else
   989         -  rm -rf conftest*
   990         -  ac_cv_header_stdc=no
   991         -fi
   992         -rm -f conftest*
   993         -
   994         -fi
   995         -
   996         -if test $ac_cv_header_stdc = yes; then
   997         -  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   998         -if test "$cross_compiling" = yes; then
   999         -  :
  1000         -else
  1001         -cat > conftest.$ac_ext <<EOF
  1002         -#line 1003 "configure"
  1003         -#include "confdefs.h"
  1004         -#include <ctype.h>
  1005         -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1006         -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1007         -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1008         -int main () { int i; for (i = 0; i < 256; i++)
  1009         -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1010         -exit (0); }
  1011         -
  1012         -EOF
  1013         -eval $ac_link
  1014         -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1015         -  :
  1016         -else
  1017         -  ac_cv_header_stdc=no
  1018         -fi
  1019         -fi
  1020         -rm -fr conftest*
  1021         -fi
  1022         -fi
  1023         -
  1024         -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1025         -if test $ac_cv_header_stdc = yes; then
  1026         -  cat >> confdefs.h <<\EOF
  1027         -#define STDC_HEADERS 1
  1028         -EOF
  1029         -
  1030         -fi
  1031         -
  1032         -echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  1033         -if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  1034         -  echo $ac_n "(cached) $ac_c" 1>&6
  1035         -else
  1036         -  cat > conftest.$ac_ext <<EOF
  1037         -#line 1038 "configure"
  1038         -#include "confdefs.h"
  1039         -#include <sys/types.h>
  1040         -#if STDC_HEADERS
  1041         -#include <stdlib.h>
  1042         -#endif
  1043         -EOF
  1044         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1045         -  egrep "mode_t" >/dev/null 2>&1; then
  1046         -  rm -rf conftest*
  1047         -  ac_cv_type_mode_t=yes
  1048         -else
  1049         -  rm -rf conftest*
  1050         -  ac_cv_type_mode_t=no
  1051         -fi
  1052         -rm -f conftest*
  1053         -
  1054         -fi
  1055         -echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  1056         -if test $ac_cv_type_mode_t = no; then
  1057         -  cat >> confdefs.h <<\EOF
  1058         -#define mode_t int
  1059         -EOF
  1060         -
  1061         -fi
  1062         -
  1063         -echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  1064         -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  1065         -  echo $ac_n "(cached) $ac_c" 1>&6
  1066         -else
  1067         -  cat > conftest.$ac_ext <<EOF
  1068         -#line 1069 "configure"
  1069         -#include "confdefs.h"
  1070         -#include <sys/types.h>
  1071         -#if STDC_HEADERS
  1072         -#include <stdlib.h>
  1073         -#endif
  1074         -EOF
  1075         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1076         -  egrep "pid_t" >/dev/null 2>&1; then
  1077         -  rm -rf conftest*
  1078         -  ac_cv_type_pid_t=yes
  1079         -else
  1080         -  rm -rf conftest*
  1081         -  ac_cv_type_pid_t=no
  1082         -fi
  1083         -rm -f conftest*
  1084         -
  1085         -fi
  1086         -echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  1087         -if test $ac_cv_type_pid_t = no; then
  1088         -  cat >> confdefs.h <<\EOF
  1089         -#define pid_t int
  1090         -EOF
  1091         -
  1092         -fi
  1093         -
  1094         -echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1095         -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1096         -  echo $ac_n "(cached) $ac_c" 1>&6
  1097         -else
  1098         -  cat > conftest.$ac_ext <<EOF
  1099         -#line 1100 "configure"
  1100         -#include "confdefs.h"
  1101         -#include <sys/types.h>
  1102         -#if STDC_HEADERS
  1103         -#include <stdlib.h>
  1104         -#endif
  1105         -EOF
  1106         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1107         -  egrep "size_t" >/dev/null 2>&1; then
  1108         -  rm -rf conftest*
  1109         -  ac_cv_type_size_t=yes
  1110         -else
  1111         -  rm -rf conftest*
  1112         -  ac_cv_type_size_t=no
  1113         -fi
  1114         -rm -f conftest*
  1115         -
  1116         -fi
  1117         -echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1118         -if test $ac_cv_type_size_t = no; then
  1119         -  cat >> confdefs.h <<\EOF
  1120         -#define size_t unsigned
  1121         -EOF
  1122         -
  1123         -fi
  1124         -
  1125         -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  1126         -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  1127         -  echo $ac_n "(cached) $ac_c" 1>&6
  1128         -else
  1129         -  cat > conftest.$ac_ext <<EOF
  1130         -#line 1131 "configure"
  1131         -#include "confdefs.h"
  1132         -#include <sys/types.h>
  1133         -EOF
  1134         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1135         -  egrep "uid_t" >/dev/null 2>&1; then
  1136         -  rm -rf conftest*
  1137         -  ac_cv_type_uid_t=yes
  1138         -else
  1139         -  rm -rf conftest*
  1140         -  ac_cv_type_uid_t=no
  1141         -fi
  1142         -rm -f conftest*
  1143         -
  1144         -fi
  1145         -
  1146         -echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  1147         -if test $ac_cv_type_uid_t = no; then
  1148         -  cat >> confdefs.h <<\EOF
  1149         -#define uid_t int
  1150         -EOF
  1151         -
  1152         -  cat >> confdefs.h <<\EOF
  1153         -#define gid_t int
  1154         -EOF
  1155         -
  1156         -fi
  1157         -
  1158         -
  1159         -#--------------------------------------------------------------------
  1160         -#	Locate the curses header files and the curses library
  1161         -#	archive.
  1162         -#--------------------------------------------------------------------
  1163         -
  1164         -got_it=no
  1165         -if test $with_ncurses = yes; then
  1166         -    echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  1167         -ac_lib_var=`echo ncurses | tr '.-/+' '___p'`
  1168         -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1169         -  echo $ac_n "(cached) $ac_c" 1>&6
  1170         -else
  1171         -  ac_save_LIBS="$LIBS"
  1172         -LIBS="-lncurses  $LIBS"
  1173         -cat > conftest.$ac_ext <<EOF
  1174         -#line 1175 "configure"
  1175         -#include "confdefs.h"
  1176         -
  1177         -int main() { return 0; }
  1178         -int t() {
  1179         -initscr()
  1180         -; return 0; }
  1181         -EOF
  1182         -if eval $ac_link; then
  1183         -  rm -rf conftest*
  1184         -  eval "ac_cv_lib_$ac_lib_var=yes"
  1185         -else
  1186         -  rm -rf conftest*
  1187         -  eval "ac_cv_lib_$ac_lib_var=no"
  1188         -fi
  1189         -rm -f conftest*
  1190         -LIBS="$ac_save_LIBS"
  1191         -
  1192         -fi
  1193         -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1194         -  echo "$ac_t""yes" 1>&6
  1195         -  LIBS="$LIBS -lncurses"; got_it=yes
  1196         -else
  1197         -  echo "$ac_t""no" 1>&6
  1198         -fi
  1199         -
  1200         -else
  1201         -    echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  1202         -ac_lib_var=`echo curses | tr '.-/+' '___p'`
  1203         -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1204         -  echo $ac_n "(cached) $ac_c" 1>&6
  1205         -else
  1206         -  ac_save_LIBS="$LIBS"
  1207         -LIBS="-lcurses  $LIBS"
  1208         -cat > conftest.$ac_ext <<EOF
  1209         -#line 1210 "configure"
  1210         -#include "confdefs.h"
  1211         -
  1212         -int main() { return 0; }
  1213         -int t() {
  1214         -initscr()
  1215         -; return 0; }
  1216         -EOF
  1217         -if eval $ac_link; then
  1218         -  rm -rf conftest*
  1219         -  eval "ac_cv_lib_$ac_lib_var=yes"
  1220         -else
  1221         -  rm -rf conftest*
  1222         -  eval "ac_cv_lib_$ac_lib_var=no"
  1223         -fi
  1224         -rm -f conftest*
  1225         -LIBS="$ac_save_LIBS"
  1226         -
  1227         -fi
  1228         -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1229         -  echo "$ac_t""yes" 1>&6
  1230         -  LIBS="$LIBS -lcurses"; got_it=yes
  1231         -else
  1232         -  echo "$ac_t""no" 1>&6
  1233         -unset ac_cv_lib_curses
  1234         -	    echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  1235         -ac_lib_var=`echo curses | tr '.-/+' '___p'`
  1236         -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1237         -  echo $ac_n "(cached) $ac_c" 1>&6
  1238         -else
  1239         -  ac_save_LIBS="$LIBS"
  1240         -LIBS="-lcurses -ltermcap $LIBS"
  1241         -cat > conftest.$ac_ext <<EOF
  1242         -#line 1243 "configure"
  1243         -#include "confdefs.h"
  1244         -
  1245         -int main() { return 0; }
  1246         -int t() {
  1247         -initscr()
  1248         -; return 0; }
  1249         -EOF
  1250         -if eval $ac_link; then
  1251         -  rm -rf conftest*
  1252         -  eval "ac_cv_lib_$ac_lib_var=yes"
  1253         -else
  1254         -  rm -rf conftest*
  1255         -  eval "ac_cv_lib_$ac_lib_var=no"
  1256         -fi
  1257         -rm -f conftest*
  1258         -LIBS="$ac_save_LIBS"
  1259         -
  1260         -fi
  1261         -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1262         -  echo "$ac_t""yes" 1>&6
  1263         -  LIBS="$LIBS -lcurses -ltermcap"; got_it=yes
  1264         -else
  1265         -  echo "$ac_t""no" 1>&6
  1266         -fi
  1267         - 
  1268         -fi
  1269         -
  1270         -fi
  1271         -if test $got_it = no; then
  1272         -    echo "configure: warning: couldn't find curses library archive" 1>&2
  1273         -    echo "configure: warning: will not be able to properly determine curses capabilities" 1>&2
  1274         -fi
  1275         -
  1276         -echo $ac_n "checking curses header file""... $ac_c" 1>&6
  1277         -got_it=no
  1278         -if test $with_ncurses = yes; then
  1279         -    cat > conftest.$ac_ext <<EOF
  1280         -#line 1281 "configure"
  1281         -#include "confdefs.h"
  1282         -#include <ncurses.h>
  1283         -EOF
  1284         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1285         -ac_err=`grep -v '^ *+' conftest.out`
  1286         -if test -z "$ac_err"; then
  1287         -  rm -rf conftest*
  1288         -  got_it=ncurses.h; cat >> confdefs.h <<\EOF
  1289         -#define USE_NCURSES_H 1
  1290         -EOF
  1291         -
  1292         -else
  1293         -  echo "$ac_err" >&5
  1294         -fi
  1295         -rm -f conftest*
  1296         -fi
  1297         -if test $got_it = no; then
  1298         -    cat > conftest.$ac_ext <<EOF
  1299         -#line 1300 "configure"
  1300         -#include "confdefs.h"
  1301         -#include <curses.h>
  1302         -EOF
  1303         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1304         -ac_err=`grep -v '^ *+' conftest.out`
  1305         -if test -z "$ac_err"; then
  1306         -  rm -rf conftest*
  1307         -  got_it=curses.h
  1308         -else
  1309         -  echo "$ac_err" >&5
  1310         -fi
  1311         -rm -f conftest*
  1312         -fi
  1313         -if test $got_it = no; then
  1314         -    echo "configure: warning: couldn't find curses include file" 1>&2
  1315         -fi
  1316         -echo "$ac_t""$got_it" 1>&6
  1317         -
  1318         -#--------------------------------------------------------------------
  1319         -#	Check the curses library features.
  1320         -#--------------------------------------------------------------------
  1321         -
  1322         -for ac_func in curs_set set_term beep keypad
  1323         -do
  1324         -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1325         -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1326         -  echo $ac_n "(cached) $ac_c" 1>&6
  1327         -else
  1328         -  cat > conftest.$ac_ext <<EOF
  1329         -#line 1330 "configure"
  1330         -#include "confdefs.h"
  1331         -/* System header to define __stub macros and hopefully few prototypes,
  1332         -    which can conflict with char $ac_func(); below.  */
  1333         -#include <assert.h>
  1334         -/* Override any gcc2 internal prototype to avoid an error.  */
  1335         -char $ac_func();
  1336         -
  1337         -int main() { return 0; }
  1338         -int t() {
  1339         -
  1340         -/* The GNU C library defines this for functions which it implements
  1341         -    to always fail with ENOSYS.  Some functions are actually named
  1342         -    something starting with __ and the normal name is an alias.  */
  1343         -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1344         -choke me
  1345         -#else
  1346         -$ac_func();
  1347         -#endif
  1348         -
  1349         -; return 0; }
  1350         -EOF
  1351         -if eval $ac_link; then
  1352         -  rm -rf conftest*
  1353         -  eval "ac_cv_func_$ac_func=yes"
  1354         -else
  1355         -  rm -rf conftest*
  1356         -  eval "ac_cv_func_$ac_func=no"
  1357         -fi
  1358         -rm -f conftest*
  1359         -
  1360         -fi
  1361         -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1362         -  echo "$ac_t""yes" 1>&6
  1363         -    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1364         -  cat >> confdefs.h <<EOF
  1365         -#define $ac_tr_func 1
  1366         -EOF
  1367         - 
  1368         -else
  1369         -  echo "$ac_t""no" 1>&6
  1370         -fi
  1371         -done
  1372         -
  1373         -
  1374         -#--------------------------------------------------------------------
  1375         -#	Check to see whether the system supports the matherr function
  1376         -#	and its associated type "struct exception".
  1377         -#--------------------------------------------------------------------
  1378         -
  1379         -echo $ac_n "checking matherr support""... $ac_c" 1>&6
  1380         -cat > conftest.$ac_ext <<EOF
  1381         -#line 1382 "configure"
  1382         -#include "confdefs.h"
  1383         -#include <math.h>
  1384         -int main() { return 0; }
  1385         -int t() {
  1386         -
  1387         -struct exception x;
  1388         -x.type = DOMAIN;
  1389         -x.type = SING;
  1390         -
  1391         -; return 0; }
  1392         -EOF
  1393         -if eval $ac_compile; then
  1394         -  rm -rf conftest*
  1395         -  tk_ok=yes
  1396         -else
  1397         -  rm -rf conftest*
  1398         -  tk_ok=no
  1399         -fi
  1400         -rm -f conftest*
  1401         -
  1402         -echo "$ac_t""$tk_ok" 1>&6
  1403         -if test $tk_ok = yes; then
  1404         -    cat >> confdefs.h <<\EOF
  1405         -#define NEED_MATHERR 1
  1406         -EOF
  1407         -
  1408         -fi
  1409         -
  1410         -#--------------------------------------------------------------------
  1411         -#	Figure out how to find out whether a FILE structure contains
  1412         -#	buffered readable data.  Some known names for the count field:
  1413         -#		_cnt:		Most UNIX systems
  1414         -#		__cnt:		HPUX
  1415         -#		_r:		BSD
  1416         -#		readCount:	Sprite
  1417         -#	Or, in GNU libc there are two fields, _gptr and _egptr, which
  1418         -#	have to be compared.
  1419         -#--------------------------------------------------------------------
  1420         -
  1421         -echo $ac_n "checking count field in FILE structures""... $ac_c" 1>&6
  1422         -cat > conftest.$ac_ext <<EOF
  1423         -#line 1424 "configure"
  1424         -#include "confdefs.h"
  1425         -#include <stdio.h>
  1426         -int main() { return 0; }
  1427         -int t() {
  1428         -FILE *f = stdin; f->_cnt = 0;
  1429         -; return 0; }
  1430         -EOF
  1431         -if eval $ac_compile; then
  1432         -  rm -rf conftest*
  1433         -  fcnt="_cnt"
  1434         -fi
  1435         -rm -f conftest*
  1436         -
  1437         -if test "$fcnt" = ""; then
  1438         -    cat > conftest.$ac_ext <<EOF
  1439         -#line 1440 "configure"
  1440         -#include "confdefs.h"
  1441         -#include <stdio.h>
  1442         -int main() { return 0; }
  1443         -int t() {
  1444         -FILE *f = stdin; f->__cnt = 0;
  1445         -; return 0; }
  1446         -EOF
  1447         -if eval $ac_compile; then
  1448         -  rm -rf conftest*
  1449         -  fcnt="__cnt"
  1450         -fi
  1451         -rm -f conftest*
  1452         -
  1453         -fi
  1454         -if test "$fcnt" = ""; then
  1455         -    cat > conftest.$ac_ext <<EOF
  1456         -#line 1457 "configure"
  1457         -#include "confdefs.h"
  1458         -#include <stdio.h>
  1459         -int main() { return 0; }
  1460         -int t() {
  1461         -FILE *f = stdin; f->_r = 0;
  1462         -; return 0; }
  1463         -EOF
  1464         -if eval $ac_compile; then
  1465         -  rm -rf conftest*
  1466         -  fcnt="_r"
  1467         -fi
  1468         -rm -f conftest*
  1469         -
  1470         -fi
  1471         -if test "$fcnt" = ""; then
  1472         -    cat > conftest.$ac_ext <<EOF
  1473         -#line 1474 "configure"
  1474         -#include "confdefs.h"
  1475         -#include <stdio.h>
  1476         -int main() { return 0; }
  1477         -int t() {
  1478         -FILE *f = stdin; f->readCount = 0;
  1479         -; return 0; }
  1480         -EOF
  1481         -if eval $ac_compile; then
  1482         -  rm -rf conftest*
  1483         -  fcnt="readCount"
  1484         -fi
  1485         -rm -f conftest*
  1486         -
  1487         -fi
  1488         -if test "$fcnt" != ""; then
  1489         -    cat >> confdefs.h <<EOF
  1490         -#define TK_FILE_COUNT $fcnt
  1491         -EOF
  1492         -
  1493         -fi
  1494         -if test "$fcnt" = ""; then
  1495         -    cat > conftest.$ac_ext <<EOF
  1496         -#line 1497 "configure"
  1497         -#include "confdefs.h"
  1498         -#include <stdio.h>
  1499         -int main() { return 0; }
  1500         -int t() {
  1501         -FILE *f = stdin; f->_gptr = f->_egptr;
  1502         -; return 0; }
  1503         -EOF
  1504         -if eval $ac_compile; then
  1505         -  rm -rf conftest*
  1506         -  tk_ok=yes
  1507         -else
  1508         -  rm -rf conftest*
  1509         -  tk_ok=no
  1510         -fi
  1511         -rm -f conftest*
  1512         -
  1513         -    if test $tk_ok = yes; then
  1514         -	cat >> confdefs.h <<\EOF
  1515         -#define TK_FILE_GPTR 1
  1516         -EOF
  1517         -
  1518         -	fcnt="_gptr/_egptr"
  1519         -    fi
  1520         -fi
  1521         -if test "$fcnt" = ""; then
  1522         -    cat > conftest.$ac_ext <<EOF
  1523         -#line 1524 "configure"
  1524         -#include "confdefs.h"
  1525         -#include <stdio.h>
  1526         -int main() { return 0; }
  1527         -int t() {
  1528         -FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
  1529         -; return 0; }
  1530         -EOF
  1531         -if eval $ac_compile; then
  1532         -  rm -rf conftest*
  1533         -  tk_ok=yes
  1534         -else
  1535         -  rm -rf conftest*
  1536         -  tk_ok=no
  1537         -fi
  1538         -rm -f conftest*
  1539         -
  1540         -    if test $tk_ok = yes; then
  1541         -	cat >> confdefs.h <<\EOF
  1542         -#define TK_FILE_READ_PTR 1
  1543         -EOF
  1544         -
  1545         -	fcnt="_IO_read_ptr/_IO_read_end"
  1546         -    fi
  1547         -fi
  1548         -if test "$fcnt" = ""; then
  1549         -    echo "$ac_t""not found; must supply TkReadDataPending procedure" 1>&6
  1550         -else
  1551         -    echo "$ac_t"""$fcnt"" 1>&6
  1552         -fi
  1553         -
  1554         -#--------------------------------------------------------------------
  1555         -#	On a few very rare systems, all of the libm.a stuff is
  1556         -#	already in libc.a.  Set compiler flags accordingly.
  1557         -#	Also, Linux requires the "ieee" library for math to
  1558         -#	work right (and it must appear before "-lm").
  1559         -#--------------------------------------------------------------------
  1560         -
  1561         -echo $ac_n "checking for sin""... $ac_c" 1>&6
  1562         -if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
  1563         -  echo $ac_n "(cached) $ac_c" 1>&6
  1564         -else
  1565         -  cat > conftest.$ac_ext <<EOF
  1566         -#line 1567 "configure"
  1567         -#include "confdefs.h"
  1568         -/* System header to define __stub macros and hopefully few prototypes,
  1569         -    which can conflict with char sin(); below.  */
  1570         -#include <assert.h>
  1571         -/* Override any gcc2 internal prototype to avoid an error.  */
  1572         -char sin();
  1573         -
  1574         -int main() { return 0; }
  1575         -int t() {
  1576         -
  1577         -/* The GNU C library defines this for functions which it implements
  1578         -    to always fail with ENOSYS.  Some functions are actually named
  1579         -    something starting with __ and the normal name is an alias.  */
  1580         -#if defined (__stub_sin) || defined (__stub___sin)
  1581         -choke me
  1582         -#else
  1583         -sin();
  1584         -#endif
  1585         -
  1586         -; return 0; }
  1587         -EOF
  1588         -if eval $ac_link; then
  1589         -  rm -rf conftest*
  1590         -  eval "ac_cv_func_sin=yes"
  1591         -else
  1592         -  rm -rf conftest*
  1593         -  eval "ac_cv_func_sin=no"
  1594         -fi
  1595         -rm -f conftest*
  1596         -
  1597         -fi
  1598         -if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
  1599         -  echo "$ac_t""yes" 1>&6
  1600         -  :
  1601         -else
  1602         -  echo "$ac_t""no" 1>&6
  1603         -LIBS="-lm $LIBS"
  1604         -fi
  1605         -
  1606         -echo $ac_n "checking for -lieee""... $ac_c" 1>&6
  1607         -ac_lib_var=`echo ieee | tr '.-/+' '___p'`
  1608         -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1609         -  echo $ac_n "(cached) $ac_c" 1>&6
  1610         -else
  1611         -  ac_save_LIBS="$LIBS"
  1612         -LIBS="-lieee  $LIBS"
  1613         -cat > conftest.$ac_ext <<EOF
  1614         -#line 1615 "configure"
  1615         -#include "confdefs.h"
  1616         -
  1617         -int main() { return 0; }
  1618         -int t() {
  1619         -main()
  1620         -; return 0; }
  1621         -EOF
  1622         -if eval $ac_link; then
  1623         -  rm -rf conftest*
  1624         -  eval "ac_cv_lib_$ac_lib_var=yes"
  1625         -else
  1626         -  rm -rf conftest*
  1627         -  eval "ac_cv_lib_$ac_lib_var=no"
  1628         -fi
  1629         -rm -f conftest*
  1630         -LIBS="$ac_save_LIBS"
  1631         -
  1632         -fi
  1633         -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1634         -  echo "$ac_t""yes" 1>&6
  1635         -  LIBS="-lieee $LIBS"
  1636         -else
  1637         -  echo "$ac_t""no" 1>&6
  1638         -fi
  1639         -
  1640         -
  1641         -#--------------------------------------------------------------------
  1642         -#	Apparently SCO requires -lsocket for the gettimeofday()
  1643         -#	function.
  1644         -#--------------------------------------------------------------------
  1645         -
  1646         -echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
  1647         -if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
  1648         -  echo $ac_n "(cached) $ac_c" 1>&6
  1649         -else
  1650         -  cat > conftest.$ac_ext <<EOF
  1651         -#line 1652 "configure"
  1652         -#include "confdefs.h"
  1653         -/* System header to define __stub macros and hopefully few prototypes,
  1654         -    which can conflict with char gettimeofday(); below.  */
  1655         -#include <assert.h>
  1656         -/* Override any gcc2 internal prototype to avoid an error.  */
  1657         -char gettimeofday();
  1658         -
  1659         -int main() { return 0; }
  1660         -int t() {
  1661         -
  1662         -/* The GNU C library defines this for functions which it implements
  1663         -    to always fail with ENOSYS.  Some functions are actually named
  1664         -    something starting with __ and the normal name is an alias.  */
  1665         -#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
  1666         -choke me
  1667         -#else
  1668         -gettimeofday();
  1669         -#endif
  1670         -
  1671         -; return 0; }
  1672         -EOF
  1673         -if eval $ac_link; then
  1674         -  rm -rf conftest*
  1675         -  eval "ac_cv_func_gettimeofday=yes"
  1676         -else
  1677         -  rm -rf conftest*
  1678         -  eval "ac_cv_func_gettimeofday=no"
  1679         -fi
  1680         -rm -f conftest*
  1681         -
  1682         -fi
  1683         -if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
  1684         -  echo "$ac_t""yes" 1>&6
  1685         -  :
  1686         -else
  1687         -  echo "$ac_t""no" 1>&6
  1688         -LIBS="-lsocket $LIBS"
  1689         -fi
  1690         -
  1691         -
  1692         -#--------------------------------------------------------------------
  1693         -#	If this system doesn't have a memmove procedure, use memcpy
  1694         -#	instead.
  1695         -#--------------------------------------------------------------------
  1696         -
  1697         -echo $ac_n "checking for memmove""... $ac_c" 1>&6
  1698         -if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
  1699         -  echo $ac_n "(cached) $ac_c" 1>&6
  1700         -else
  1701         -  cat > conftest.$ac_ext <<EOF
  1702         -#line 1703 "configure"
  1703         -#include "confdefs.h"
  1704         -/* System header to define __stub macros and hopefully few prototypes,
  1705         -    which can conflict with char memmove(); below.  */
  1706         -#include <assert.h>
  1707         -/* Override any gcc2 internal prototype to avoid an error.  */
  1708         -char memmove();
  1709         -
  1710         -int main() { return 0; }
  1711         -int t() {
  1712         -
  1713         -/* The GNU C library defines this for functions which it implements
  1714         -    to always fail with ENOSYS.  Some functions are actually named
  1715         -    something starting with __ and the normal name is an alias.  */
  1716         -#if defined (__stub_memmove) || defined (__stub___memmove)
  1717         -choke me
  1718         -#else
  1719         -memmove();
  1720         -#endif
  1721         -
  1722         -; return 0; }
  1723         -EOF
  1724         -if eval $ac_link; then
  1725         -  rm -rf conftest*
  1726         -  eval "ac_cv_func_memmove=yes"
  1727         -else
  1728         -  rm -rf conftest*
  1729         -  eval "ac_cv_func_memmove=no"
  1730         -fi
  1731         -rm -f conftest*
  1732         -
  1733         -fi
  1734         -if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
  1735         -  echo "$ac_t""yes" 1>&6
  1736         -  :
  1737         -else
  1738         -  echo "$ac_t""no" 1>&6
  1739         -cat >> confdefs.h <<\EOF
  1740         -#define memmove memcpy
  1741         -EOF
  1742         -
  1743         -fi
  1744         -
  1745         -
  1746         -#--------------------------------------------------------------------
  1747         -#	Figure out whether "char" is unsigned.  If so, set a
  1748         -#	#define.
  1749         -#--------------------------------------------------------------------
  1750         -
  1751         -echo $ac_n "checking type of "char"""... $ac_c" 1>&6
  1752         -if test "$cross_compiling" = yes; then
  1753         -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1754         -else
  1755         -cat > conftest.$ac_ext <<EOF
  1756         -#line 1757 "configure"
  1757         -#include "confdefs.h"
  1758         -
  1759         -int main()
  1760         -{
  1761         -    char c;
  1762         -    int i;
  1763         -    c = 0377;
  1764         -    i = c;
  1765         -    if (i == -1) {
  1766         -	exit(0);
  1767         -    }
  1768         -    exit(1);
  1769         -}
  1770         -EOF
  1771         -eval $ac_link
  1772         -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1773         -  tk_signed=1
  1774         -else
  1775         -  tk_signed=0
  1776         -fi
  1777         -fi
  1778         -rm -fr conftest*
  1779         -if test $tk_signed = 0; then
  1780         -    cat >> confdefs.h <<\EOF
  1781         -#define CHAR_UNSIGNED 1
  1782         -EOF
  1783         -
  1784         -    echo "$ac_t""unsigned" 1>&6
  1785         -else
  1786         -    echo "$ac_t""signed" 1>&6
  1787         -fi
  1788         -
  1789         -#--------------------------------------------------------------------
  1790         -#	SGI systems don't use the BSD form of the gettimeofday function,
  1791         -#	but they have a BSDgettimeofday function that can be used instead.
  1792         -#
  1793         -#	Also, check for the existence of a gettimeofday declaration,
  1794         -#	to tkPort.h can declare it if it isn't already declared.
  1795         -#--------------------------------------------------------------------
  1796         -
  1797         -echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
  1798         -if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
  1799         -  echo $ac_n "(cached) $ac_c" 1>&6
  1800         -else
  1801         -  cat > conftest.$ac_ext <<EOF
  1802         -#line 1803 "configure"
  1803         -#include "confdefs.h"
  1804         -/* System header to define __stub macros and hopefully few prototypes,
  1805         -    which can conflict with char BSDgettimeofday(); below.  */
  1806         -#include <assert.h>
  1807         -/* Override any gcc2 internal prototype to avoid an error.  */
  1808         -char BSDgettimeofday();
  1809         -
  1810         -int main() { return 0; }
  1811         -int t() {
  1812         -
  1813         -/* The GNU C library defines this for functions which it implements
  1814         -    to always fail with ENOSYS.  Some functions are actually named
  1815         -    something starting with __ and the normal name is an alias.  */
  1816         -#if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
  1817         -choke me
  1818         -#else
  1819         -BSDgettimeofday();
  1820         -#endif
  1821         -
  1822         -; return 0; }
  1823         -EOF
  1824         -if eval $ac_link; then
  1825         -  rm -rf conftest*
  1826         -  eval "ac_cv_func_BSDgettimeofday=yes"
  1827         -else
  1828         -  rm -rf conftest*
  1829         -  eval "ac_cv_func_BSDgettimeofday=no"
  1830         -fi
  1831         -rm -f conftest*
  1832         -
  1833         -fi
  1834         -if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
  1835         -  echo "$ac_t""yes" 1>&6
  1836         -  cat >> confdefs.h <<\EOF
  1837         -#define HAVE_BSDGETTIMEOFDAY 1
  1838         -EOF
  1839         -
  1840         -else
  1841         -  echo "$ac_t""no" 1>&6
  1842         -fi
  1843         -
  1844         -echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
  1845         -cat > conftest.$ac_ext <<EOF
  1846         -#line 1847 "configure"
  1847         -#include "confdefs.h"
  1848         -#include <sys/time.h>
  1849         -EOF
  1850         -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1851         -  egrep "gettimeofday" >/dev/null 2>&1; then
  1852         -  rm -rf conftest*
  1853         -  echo "$ac_t""present" 1>&6
  1854         -else
  1855         -  rm -rf conftest*
  1856         -  
  1857         -    echo "$ac_t""missing" 1>&6
  1858         -    cat >> confdefs.h <<\EOF
  1859         -#define GETTOD_NOT_DECLARED 1
  1860         -EOF
  1861         -
  1862         -
  1863         -fi
  1864         -rm -f conftest*
  1865         -
  1866         -
  1867         -#--------------------------------------------------------------------
  1868         -#	Under Solaris 2.4, strtod returns the wrong value for the
  1869         -#	terminating character under some conditions.  Check for this
  1870         -#	and if the problem exists use a substitute procedure
  1871         -#	"fixstrtod" (provided by Tcl) that corrects the error.
  1872         -#--------------------------------------------------------------------
  1873         -
  1874         -echo $ac_n "checking for strtod""... $ac_c" 1>&6
  1875         -if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
  1876         -  echo $ac_n "(cached) $ac_c" 1>&6
  1877         -else
  1878         -  cat > conftest.$ac_ext <<EOF
  1879         -#line 1880 "configure"
  1880         -#include "confdefs.h"
  1881         -/* System header to define __stub macros and hopefully few prototypes,
  1882         -    which can conflict with char strtod(); below.  */
  1883         -#include <assert.h>
  1884         -/* Override any gcc2 internal prototype to avoid an error.  */
  1885         -char strtod();
  1886         -
  1887         -int main() { return 0; }
  1888         -int t() {
  1889         -
  1890         -/* The GNU C library defines this for functions which it implements
  1891         -    to always fail with ENOSYS.  Some functions are actually named
  1892         -    something starting with __ and the normal name is an alias.  */
  1893         -#if defined (__stub_strtod) || defined (__stub___strtod)
  1894         -choke me
  1895         -#else
  1896         -strtod();
  1897         -#endif
  1898         -
  1899         -; return 0; }
  1900         -EOF
  1901         -if eval $ac_link; then
  1902         -  rm -rf conftest*
  1903         -  eval "ac_cv_func_strtod=yes"
  1904         -else
  1905         -  rm -rf conftest*
  1906         -  eval "ac_cv_func_strtod=no"
  1907         -fi
  1908         -rm -f conftest*
  1909         -
  1910         -fi
  1911         -if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
  1912         -  echo "$ac_t""yes" 1>&6
  1913         -  tk_strtod=1
  1914         -else
  1915         -  echo "$ac_t""no" 1>&6
  1916         -tk_strtod=0
  1917         -fi
  1918         -
  1919         -if test "$tk_strtod" = 1; then
  1920         -    echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&6
  1921         -    if test "$cross_compiling" = yes; then
  1922         -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1923         -else
  1924         -cat > conftest.$ac_ext <<EOF
  1925         -#line 1926 "configure"
  1926         -#include "confdefs.h"
  1927         -
  1928         -	extern double strtod();
  1929         -	int main()
  1930         -	{
  1931         -	    char *string = "NaN";
  1932         -	    char *term;
  1933         -	    strtod(string, &term);
  1934         -	    if ((term != string) && (term[-1] == 0)) {
  1935         -		exit(1);
  1936         -	    }
  1937         -	    exit(0);
  1938         -	}
  1939         -EOF
  1940         -eval $ac_link
  1941         -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1942         -  echo "$ac_t""ok" 1>&6
  1943         -else
  1944         -  
  1945         -	    echo "$ac_t""buggy" 1>&6
  1946         -	    cat >> confdefs.h <<\EOF
  1947         -#define strtod fixstrtod
  1948         -EOF
  1949         -
  1950         -	
  1951         -fi
  1952         -fi
  1953         -rm -fr conftest*
  1954         -fi
  1955         -
  1956         -#--------------------------------------------------------------------
  1957         -#	Locate the Tcl header files and the Tcl library
  1958         -#	archive.
  1959         -#--------------------------------------------------------------------
  1960         -
  1961         -echo $ac_n "checking for -ltcl8.2""... $ac_c" 1>&6
  1962         -ac_lib_var=`echo tcl8.2 | tr '.-/+' '___p'`
  1963         -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1964         -  echo $ac_n "(cached) $ac_c" 1>&6
  1965         -else
  1966         -  ac_save_LIBS="$LIBS"
  1967         -LIBS="-ltcl8.2  $LIBS"
  1968         -cat > conftest.$ac_ext <<EOF
  1969         -#line 1970 "configure"
  1970         -#include "confdefs.h"
  1971         -
  1972         -int main() { return 0; }
  1973         -int t() {
  1974         -Tcl_Init()
  1975         -; return 0; }
  1976         -EOF
  1977         -if eval $ac_link; then
  1978         -  rm -rf conftest*
  1979         -  eval "ac_cv_lib_$ac_lib_var=yes"
  1980         -else
  1981         -  rm -rf conftest*
  1982         -  eval "ac_cv_lib_$ac_lib_var=no"
  1983         -fi
  1984         -rm -f conftest*
  1985         -LIBS="$ac_save_LIBS"
  1986         -
  1987         -fi
  1988         -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1989         -  echo "$ac_t""yes" 1>&6
  1990         -  LIBS="-ltcl8.2 $LIBS"; got_it=yes
  1991         -else
  1992         -  echo "$ac_t""no" 1>&6
  1993         -echo "configure: warning: couldn't find tcl8.2 library archive" 1>&2 
  1994         -fi
  1995         -
  1996         -cat > conftest.$ac_ext <<EOF
  1997         -#line 1998 "configure"
  1998         -#include "confdefs.h"
  1999         -#include "tcl.h"
  2000         -EOF
  2001         -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2002         -ac_err=`grep -v '^ *+' conftest.out`
  2003         -if test -z "$ac_err"; then
  2004         -  :
  2005         -else
  2006         -  echo "$ac_err" >&5
  2007         -  rm -rf conftest*
  2008         -  echo "configure: warning: couldn't find tcl include file" 1>&2 
  2009         -fi
  2010         -rm -f conftest*
  2011         -
  2012         -trap '' 1 2 15
  2013         -cat > confcache <<\EOF
  2014         -# This file is a shell script that caches the results of configure
  2015         -# tests run on this system so they can be shared between configure
  2016         -# scripts and configure runs.  It is not useful on other systems.
  2017         -# If it contains results you don't want to keep, you may remove or edit it.
  2018         -#
  2019         -# By default, configure uses ./config.cache as the cache file,
  2020         -# creating it if it does not exist already.  You can give configure
  2021         -# the --cache-file=FILE option to use a different cache file; that is
  2022         -# what configure does when it calls configure scripts in
  2023         -# subdirectories, so they share the cache.
  2024         -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  2025         -# config.status only pays attention to the cache file if you give it the
  2026         -# --recheck option to rerun configure.
  2027         -#
  2028         -EOF
  2029         -# Ultrix sh set writes to stderr and can't be redirected directly,
  2030         -# and sets the high bit in the cache file unless we assign to the vars.
  2031         -(set) 2>&1 |
  2032         -  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2033         -  >> confcache
  2034         -if cmp -s $cache_file confcache; then
  2035         -  :
  2036         -else
  2037         -  if test -w $cache_file; then
  2038         -    echo "updating cache $cache_file"
  2039         -    cat confcache > $cache_file
  2040         -  else
  2041         -    echo "not updating unwritable cache $cache_file"
  2042         -  fi
  2043         -fi
  2044         -rm -f confcache
  2045         -
  2046         -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2047         -
  2048         -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2049         -# Let make expand exec_prefix.
  2050         -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2051         -
  2052         -# Any assignment to VPATH causes Sun make to only execute
  2053         -# the first set of double-colon rules, so remove it if not needed.
  2054         -# If there is a colon in the path, we need to keep it.
  2055         -if test "x$srcdir" = x.; then
  2056         -  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
  2057         -fi
  2058         -
  2059         -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2060         -
  2061         -# Transform confdefs.h into DEFS.
  2062         -# Protect against shell expansion while executing Makefile rules.
  2063         -# Protect against Makefile macro expansion.
  2064         -cat > conftest.defs <<\EOF
  2065         -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  2066         -s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
  2067         -s%\[%\\&%g
  2068         -s%\]%\\&%g
  2069         -s%\$%$$%g
  2070         -EOF
  2071         -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2072         -rm -f conftest.defs
  2073         -
  2074         -
  2075         -# Without the "./", some shells look in PATH for config.status.
  2076         -: ${CONFIG_STATUS=./config.status}
  2077         -
  2078         -echo creating $CONFIG_STATUS
  2079         -rm -f $CONFIG_STATUS
  2080         -cat > $CONFIG_STATUS <<EOF
  2081         -#! /bin/sh
  2082         -# Generated automatically by configure.
  2083         -# Run this file to recreate the current configuration.
  2084         -# This directory was configured as follows,
  2085         -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2086         -#
  2087         -# $0 $ac_configure_args
  2088         -#
  2089         -# Compiler output produced by configure, useful for debugging
  2090         -# configure, is in ./config.log if it exists.
  2091         -
  2092         -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2093         -for ac_option
  2094         -do
  2095         -  case "\$ac_option" in
  2096         -  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2097         -    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2098         -    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2099         -  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2100         -    echo "$CONFIG_STATUS generated by autoconf version 2.7"
  2101         -    exit 0 ;;
  2102         -  -help | --help | --hel | --he | --h)
  2103         -    echo "\$ac_cs_usage"; exit 0 ;;
  2104         -  *) echo "\$ac_cs_usage"; exit 1 ;;
  2105         -  esac
  2106         -done
  2107         -
  2108         -ac_given_srcdir=$srcdir
  2109         -ac_given_INSTALL="$INSTALL"
  2110         -
  2111         -trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2112         -EOF
  2113         -cat >> $CONFIG_STATUS <<EOF
  2114         -
  2115         -# Protect against being on the right side of a sed subst in config.status.
  2116         -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2117         - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2118         -$ac_vpsub
  2119         -$extrasub
  2120         -s%@CFLAGS@%$CFLAGS%g
  2121         -s%@CPPFLAGS@%$CPPFLAGS%g
  2122         -s%@CXXFLAGS@%$CXXFLAGS%g
  2123         -s%@DEFS@%$DEFS%g
  2124         -s%@LDFLAGS@%$LDFLAGS%g
  2125         -s%@LIBS@%$LIBS%g
  2126         -s%@exec_prefix@%$exec_prefix%g
  2127         -s%@prefix@%$prefix%g
  2128         -s%@program_transform_name@%$program_transform_name%g
  2129         -s%@bindir@%$bindir%g
  2130         -s%@sbindir@%$sbindir%g
  2131         -s%@libexecdir@%$libexecdir%g
  2132         -s%@datadir@%$datadir%g
  2133         -s%@sysconfdir@%$sysconfdir%g
  2134         -s%@sharedstatedir@%$sharedstatedir%g
  2135         -s%@localstatedir@%$localstatedir%g
  2136         -s%@libdir@%$libdir%g
  2137         -s%@includedir@%$includedir%g
  2138         -s%@oldincludedir@%$oldincludedir%g
  2139         -s%@infodir@%$infodir%g
  2140         -s%@mandir@%$mandir%g
  2141         -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2142         -s%@INSTALL_DATA@%$INSTALL_DATA%g
  2143         -s%@RANLIB@%$RANLIB%g
  2144         -s%@CWISH@%$CWISH%g
  2145         -s%@CC@%$CC%g
  2146         -s%@CPP@%$CPP%g
  2147         -
  2148         -CEOF
  2149         -EOF
  2150         -cat >> $CONFIG_STATUS <<EOF
  2151         -
  2152         -CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2153         -EOF
  2154         -cat >> $CONFIG_STATUS <<\EOF
  2155         -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2156         -  # Support "outfile[:infile]", defaulting infile="outfile.in".
  2157         -  case "$ac_file" in
  2158         -  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2159         -       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2160         -  *) ac_file_in="${ac_file}.in" ;;
  2161         -  esac
  2162         -
  2163         -  # Adjust relative srcdir, etc. for subdirectories.
  2164         -
  2165         -  # Remove last slash and all that follows it.  Not all systems have dirname.
  2166         -  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2167         -  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2168         -    # The file is in a subdirectory.
  2169         -    test ! -d "$ac_dir" && mkdir "$ac_dir"
  2170         -    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2171         -    # A "../" for each directory in $ac_dir_suffix.
  2172         -    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2173         -  else
  2174         -    ac_dir_suffix= ac_dots=
  2175         -  fi
  2176         -
  2177         -  case "$ac_given_srcdir" in
  2178         -  .)  srcdir=.
  2179         -      if test -z "$ac_dots"; then top_srcdir=.
  2180         -      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2181         -  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2182         -  *) # Relative path.
  2183         -    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2184         -    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2185         -  esac
  2186         -
  2187         -  case "$ac_given_INSTALL" in
  2188         -  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2189         -  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2190         -  esac
  2191         -  echo creating "$ac_file"
  2192         -  rm -f "$ac_file"
  2193         -  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2194         -  case "$ac_file" in
  2195         -  *Makefile*) ac_comsub="1i\\
  2196         -# $configure_input" ;;
  2197         -  *) ac_comsub= ;;
  2198         -  esac
  2199         -  sed -e "$ac_comsub
  2200         -s%@configure_input@%$configure_input%g
  2201         -s%@srcdir@%$srcdir%g
  2202         -s%@top_srcdir@%$top_srcdir%g
  2203         -s%@INSTALL@%$INSTALL%g
  2204         -" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2205         -fi; done
  2206         -rm -f conftest.subs
  2207         -
  2208         -
  2209         -
  2210         -exit 0
  2211         -EOF
  2212         -chmod +x $CONFIG_STATUS
  2213         -rm -fr confdefs* $ac_clean_files
  2214         -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2215         -

Modified configure.in from [43ffbc82cf] to [5daba49e62].

   279    279   fi
   280    280   
   281    281   #--------------------------------------------------------------------
   282    282   #	Locate the Tcl header files and the Tcl library
   283    283   #	archive.
   284    284   #--------------------------------------------------------------------
   285    285   
   286         -AC_CHECK_LIB(tcl, Tcl_Init, [LIBS="-ltcl8.0 $LIBS"; got_it=yes],
          286  +AC_DEFINE(USE_TCL_STUBS, [1])
          287  +AC_CHECK_LIB(tclstub8.5, Tcl_InitStubs, [LIBS="-ltclstub8.5 $LIBS"; got_it=yes],
   287    288       [AC_MSG_WARN(couldn't find tcl8.0 library archive)] )
   288    289   AC_TRY_CPP([#include "tcl.h"], ,
   289    290       [AC_MSG_WARN(couldn't find tcl include file)] )
          291  +
          292  +TARGETS='libctk.so'
          293  +CFLAGS="${CFLAGS} -fPIC -DPIC"
          294  +AC_SUBST(TARGETS)
   290    295   
   291    296   AC_OUTPUT(Makefile)