~ubuntu-branches/ubuntu/trusty/expect/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2006-10-01 22:23:00 UTC
  • mfrom: (2.1.7 edgy)
  • Revision ID: james.westby@ubuntu.com-20061001222300-08nd1wqc92mxggdq
Tags: 5.43.0-8
* Added patch from Niko Tyni <ntyni@iki.fi> to fix static library name on
  alpha, mips and mipsel (Closes: #390366).
* Added *.so symlink (Closes: #390365).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
 
2
 
2
3
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
4
6
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
6
7
# This configure script is free software; the Free Software Foundation
7
8
# gives unlimited permission to copy, distribute and modify it.
8
 
## --------------------- ##
9
 
## M4sh Initialization.  ##
10
 
## --------------------- ##
11
 
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
22
 
DUALCASE=1; export DUALCASE # for MKS sh
23
 
 
24
 
# Support unset when possible.
25
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
 
  as_unset=unset
27
 
else
28
 
  as_unset=false
29
 
fi
30
 
 
31
 
 
32
 
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
34
 
PS1='$ '
35
 
PS2='> '
36
 
PS4='+ '
37
 
 
38
 
# NLS nuisances.
39
 
for as_var in \
40
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
 
  LC_TELEPHONE LC_TIME
43
 
do
44
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
 
    eval $as_var=C; export $as_var
46
 
  else
47
 
    $as_unset $as_var
48
 
  fi
49
 
done
50
 
 
51
 
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
53
 
  as_expr=expr
54
 
else
55
 
  as_expr=false
56
 
fi
57
 
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
 
  as_basename=basename
60
 
else
61
 
  as_basename=false
62
 
fi
63
 
 
64
 
 
65
 
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
67
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
 
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
71
 
echo X/"$0" |
72
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
 
          /^X\/\(\/\).*/{ s//\1/; q; }
75
 
          s/.*/./; q'`
76
 
 
77
 
 
78
 
# PATH needs CR, and LINENO needs CR and PATH.
79
 
# Avoid depending upon Character Ranges.
80
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
 
as_cr_digits='0123456789'
84
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
 
86
 
# The user is always right.
87
 
if test "${PATH_SEPARATOR+set}" != set; then
88
 
  echo "#! /bin/sh" >conf$$.sh
89
 
  echo  "exit 0"   >>conf$$.sh
90
 
  chmod +x conf$$.sh
91
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
 
    PATH_SEPARATOR=';'
93
 
  else
94
 
    PATH_SEPARATOR=:
95
 
  fi
96
 
  rm -f conf$$.sh
97
 
fi
98
 
 
99
 
 
100
 
  as_lineno_1=$LINENO
101
 
  as_lineno_2=$LINENO
102
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
 
  # Find who we are.  Look in the path if we contain no path at all
106
 
  # relative or not.
107
 
  case $0 in
108
 
    *[\\/]* ) as_myself=$0 ;;
109
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
 
for as_dir in $PATH
111
 
do
112
 
  IFS=$as_save_IFS
113
 
  test -z "$as_dir" && as_dir=.
114
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
 
done
116
 
 
117
 
       ;;
118
 
  esac
119
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
 
  # in which case we are not to be found in the path.
121
 
  if test "x$as_myself" = x; then
122
 
    as_myself=$0
123
 
  fi
124
 
  if test ! -f "$as_myself"; then
125
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
 
   { (exit 1); exit 1; }; }
127
 
  fi
128
 
  case $CONFIG_SHELL in
129
 
  '')
130
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
 
do
133
 
  IFS=$as_save_IFS
134
 
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
137
 
         /*)
138
 
           if ("$as_dir/$as_base" -c '
139
 
  as_lineno_1=$LINENO
140
 
  as_lineno_2=$LINENO
141
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
 
             CONFIG_SHELL=$as_dir/$as_base
147
 
             export CONFIG_SHELL
148
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
 
           fi;;
150
 
         esac
151
 
       done
152
 
done
153
 
;;
154
 
  esac
155
 
 
156
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
 
  # line-number line before each line; the second 'sed' does the real
159
 
  # work.  The second script uses 'N' to pair each line-number line
160
 
  # with the numbered line, and appends trailing '-' during
161
 
  # substitution so that $LINENO is not a special case at line end.
162
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
 
  sed '=' <$as_myself |
165
 
    sed '
166
 
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
 
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
173
 
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
175
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
 
   { (exit 1); exit 1; }; }
177
 
 
178
 
  # Don't try to exec as it changes $[0], causing all sort of problems
179
 
  # (the dirname of $[0] is not the place where we might find the
180
 
  # original and so on.  Autoconf is especially sensible to this).
181
 
  . ./$as_me.lineno
182
 
  # Exit status is that of the last command.
183
 
  exit
184
 
}
185
 
 
186
 
 
187
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
 
  *c*,-n*) ECHO_N= ECHO_C='
189
 
' ECHO_T='      ' ;;
190
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
 
esac
193
 
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
195
 
  as_expr=expr
196
 
else
197
 
  as_expr=false
198
 
fi
199
 
 
200
 
rm -f conf$$ conf$$.exe conf$$.file
201
 
echo >conf$$.file
202
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
 
  # We could just check for DJGPP; but this test a) works b) is more generic
204
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
 
  if test -f conf$$.exe; then
206
 
    # Don't use ln at all; we don't have any links
207
 
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
 
elif ln conf$$.file conf$$ 2>/dev/null; then
212
 
  as_ln_s=ln
213
 
else
214
 
  as_ln_s='cp -p'
215
 
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
217
 
 
218
 
if mkdir -p . 2>/dev/null; then
219
 
  as_mkdir_p=:
220
 
else
221
 
  test -d ./-p && rmdir ./-p
222
 
  as_mkdir_p=false
223
 
fi
224
 
 
225
 
as_executable_p="test -f"
226
 
 
227
 
# Sed expression to map a string onto a valid CPP name.
228
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
 
230
 
# Sed expression to map a string onto a valid variable name.
231
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
 
233
 
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
 
 
244
 
# Name of the host.
245
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
 
# so uname gets run too.
247
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
 
249
 
exec 6>&1
250
 
 
251
 
#
252
 
# Initializations.
253
 
#
 
9
 
 
10
# Defaults:
 
11
ac_help=
254
12
ac_default_prefix=/usr/local
255
 
ac_config_libobj_dir=.
256
 
cross_compiling=no
257
 
subdirs=
258
 
MFLAGS=
259
 
MAKEFLAGS=
260
 
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
 
262
 
# Maximum number of lines to put in a shell here document.
263
 
# This variable seems obsolete.  It should probably be removed, and
264
 
# only ac_max_sed_lines should be used.
265
 
: ${ac_max_here_lines=38}
266
 
 
267
 
# Identity of this package.
268
 
PACKAGE_NAME=
269
 
PACKAGE_TARNAME=
270
 
PACKAGE_VERSION=
271
 
PACKAGE_STRING=
272
 
PACKAGE_BUGREPORT=
273
 
 
274
 
ac_unique_file="expect.h"
275
 
ac_subdirs_all="$ac_subdirs_all testsuite"
276
 
# Factoring default headers for most tests.
277
 
ac_includes_default="\
278
 
#include <stdio.h>
279
 
#if HAVE_SYS_TYPES_H
280
 
# include <sys/types.h>
281
 
#endif
282
 
#if HAVE_SYS_STAT_H
283
 
# include <sys/stat.h>
284
 
#endif
285
 
#if STDC_HEADERS
286
 
# include <stdlib.h>
287
 
# include <stddef.h>
288
 
#else
289
 
# if HAVE_STDLIB_H
290
 
#  include <stdlib.h>
291
 
# endif
292
 
#endif
293
 
#if HAVE_STRING_H
294
 
# if !STDC_HEADERS && HAVE_MEMORY_H
295
 
#  include <memory.h>
296
 
# endif
297
 
# include <string.h>
298
 
#endif
299
 
#if HAVE_STRINGS_H
300
 
# include <strings.h>
301
 
#endif
302
 
#if HAVE_INTTYPES_H
303
 
# include <inttypes.h>
304
 
#else
305
 
# if HAVE_STDINT_H
306
 
#  include <stdint.h>
307
 
# endif
308
 
#endif
309
 
#if HAVE_UNISTD_H
310
 
# include <unistd.h>
311
 
#endif"
312
 
 
313
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS found build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT TCL_DEFS TCL_DELETEME TCL_DBGX TCL_EXEC_PREFIX TCL_SHLIB_LD SHLIB_SUFFIX TCL_LD_FLAGS TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_SHARED_LIB_SUFFIX TK_VERSION TK_DEFS TK_DBGX TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB subdirs CPP EGREP TCLHDIR TCLHDIRDASHI TCL_LIBRARY TKHDIRDASHI EXP_MAJOR_VERSION EXP_MINOR_VERSION EXP_MICRO_VERSION EXP_VERSION_FULL EXP_VERSION EXP_CONFIG_SHELL EXP_SHARED_LIB_FILE EXP_UNSHARED_LIB_FILE EXP_SHLIB_CFLAGS EXP_LIB_FILE EXP_LIB_FILES EXP_BUILD_LIB_SPEC EXP_LIB_SPEC EXP_CFLAGS EXP_LDFLAGS EXP_LD_SEARCH_FLAGS TCL_LD_SEARCH_FLAGS EXP_AND_TCL_LIBS EXP_AND_TK_LIBS EXP_SHLIB_LD_LIBS X_PROGS PTY_TYPE EVENT_TYPE EVENT_ABLE SETUID UNSHARED_RANLIB DEFAULT_STTY_ARGS STTY_BIN LIBOBJS LTLIBOBJS'
314
 
ac_subst_files=''
 
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --enable-threads        build with threads (not supported)"
 
16
ac_help="$ac_help
 
17
  --with-tcl           directory containing tcl configuration (tclConfig.sh)"
 
18
ac_help="$ac_help
 
19
  --with-tk           directory containing tk configuration (tkConfig.sh)"
 
20
ac_help="$ac_help
 
21
  --enable-symbols   allow use of symbols if available"
 
22
ac_help="$ac_help
 
23
  --with-tclinclude       directory where tcl private headers are"
 
24
ac_help="$ac_help
 
25
  --enable-shared     build libexpect as a shared library"
 
26
ac_help="$ac_help
 
27
  --with-x               whether or not to use X (default yes)"
 
28
ac_help="$ac_help
 
29
  --with-tkinclude       directory where tk private headers are"
 
30
ac_help="$ac_help
 
31
  --disable-load     disallow dynamic loading"
 
32
ac_help="$ac_help
 
33
  --enable-gcc        allow use of gcc if available"
315
34
 
316
35
# Initialize some variables set by options.
317
 
ac_init_help=
318
 
ac_init_version=false
319
36
# The variables have the same names as the options, with
320
37
# dashes changed to underlines.
321
 
cache_file=/dev/null
 
38
build=NONE
 
39
cache_file=./config.cache
322
40
exec_prefix=NONE
 
41
host=NONE
323
42
no_create=
 
43
nonopt=NONE
324
44
no_recursion=
325
45
prefix=NONE
326
46
program_prefix=NONE
329
49
silent=
330
50
site=
331
51
srcdir=
 
52
target=NONE
332
53
verbose=
333
54
x_includes=NONE
334
55
x_libraries=NONE
335
 
 
336
 
# Installation directory options.
337
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
 
# and all the variables that are supposed to be based on exec_prefix
339
 
# by default will actually change.
340
 
# Use braces instead of parens because sh, perl, etc. also accept them.
341
56
bindir='${exec_prefix}/bin'
342
57
sbindir='${exec_prefix}/sbin'
343
58
libexecdir='${exec_prefix}/libexec'
351
66
infodir='${prefix}/info'
352
67
mandir='${prefix}/man'
353
68
 
 
69
# Initialize some other variables.
 
70
subdirs=
 
71
MFLAGS= MAKEFLAGS=
 
72
SHELL=${CONFIG_SHELL-/bin/sh}
 
73
# Maximum number of lines to put in a shell here document.
 
74
ac_max_here_lines=12
 
75
 
354
76
ac_prev=
355
77
for ac_option
356
78
do
 
79
 
357
80
  # If the previous option needs an argument, assign it.
358
81
  if test -n "$ac_prev"; then
359
82
    eval "$ac_prev=\$ac_option"
361
84
    continue
362
85
  fi
363
86
 
364
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
87
  case "$ac_option" in
 
88
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
89
  *) ac_optarg= ;;
 
90
  esac
365
91
 
366
92
  # Accept the important Cygnus configure options, so we can diagnose typos.
367
93
 
368
 
  case $ac_option in
 
94
  case "$ac_option" in
369
95
 
370
96
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371
97
    ac_prev=bindir ;;
372
98
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
 
    bindir=$ac_optarg ;;
 
99
    bindir="$ac_optarg" ;;
374
100
 
375
101
  -build | --build | --buil | --bui | --bu)
376
 
    ac_prev=build_alias ;;
 
102
    ac_prev=build ;;
377
103
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
 
    build_alias=$ac_optarg ;;
 
104
    build="$ac_optarg" ;;
379
105
 
380
106
  -cache-file | --cache-file | --cache-fil | --cache-fi \
381
107
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
108
    ac_prev=cache_file ;;
383
109
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
110
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
 
    cache_file=$ac_optarg ;;
386
 
 
387
 
  --config-cache | -C)
388
 
    cache_file=config.cache ;;
 
111
    cache_file="$ac_optarg" ;;
389
112
 
390
113
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
114
    ac_prev=datadir ;;
392
115
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
116
  | --da=*)
394
 
    datadir=$ac_optarg ;;
 
117
    datadir="$ac_optarg" ;;
395
118
 
396
119
  -disable-* | --disable-*)
397
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
120
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
398
121
    # Reject names that are not valid shell variable names.
399
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
 
   { (exit 1); exit 1; }; }
402
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
 
    eval "enable_$ac_feature=no" ;;
 
122
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
123
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
124
    fi
 
125
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
126
    eval "enable_${ac_feature}=no" ;;
404
127
 
405
128
  -enable-* | --enable-*)
406
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
129
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
407
130
    # Reject names that are not valid shell variable names.
408
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
 
   { (exit 1); exit 1; }; }
411
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
 
    case $ac_option in
413
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
131
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
132
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
133
    fi
 
134
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
135
    case "$ac_option" in
 
136
      *=*) ;;
414
137
      *) ac_optarg=yes ;;
415
138
    esac
416
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
139
    eval "enable_${ac_feature}='$ac_optarg'" ;;
417
140
 
418
141
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
142
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422
145
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
146
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
147
  | --exec=* | --exe=* | --ex=*)
425
 
    exec_prefix=$ac_optarg ;;
 
148
    exec_prefix="$ac_optarg" ;;
426
149
 
427
150
  -gas | --gas | --ga | --g)
428
151
    # Obsolete; use --with-gas.
429
152
    with_gas=yes ;;
430
153
 
431
 
  -help | --help | --hel | --he | -h)
432
 
    ac_init_help=long ;;
433
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
 
    ac_init_help=recursive ;;
435
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
 
    ac_init_help=short ;;
 
154
  -help | --help | --hel | --he)
 
155
    # Omit some internal or obsolete options to make the list less imposing.
 
156
    # This message is too long to be a string in the A/UX 3.1 sh.
 
157
    cat << EOF
 
158
Usage: configure [options] [host]
 
159
Options: [defaults in brackets after descriptions]
 
160
Configuration:
 
161
  --cache-file=FILE       cache test results in FILE
 
162
  --help                  print this message
 
163
  --no-create             do not create output files
 
164
  --quiet, --silent       do not print \`checking...' messages
 
165
  --version               print the version of autoconf that created configure
 
166
Directory and file names:
 
167
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
168
                          [$ac_default_prefix]
 
169
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
170
                          [same as prefix]
 
171
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
172
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
173
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
174
  --datadir=DIR           read-only architecture-independent data in DIR
 
175
                          [PREFIX/share]
 
176
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
177
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
178
                          [PREFIX/com]
 
179
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
180
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
181
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
182
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
183
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
184
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
185
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
186
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
187
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
188
  --program-transform-name=PROGRAM
 
189
                          run sed PROGRAM on installed program names
 
190
EOF
 
191
    cat << EOF
 
192
Host type:
 
193
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
194
  --host=HOST             configure for HOST [guessed]
 
195
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
196
Features and packages:
 
197
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
198
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
199
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
200
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
201
  --x-includes=DIR        X include files are in DIR
 
202
  --x-libraries=DIR       X library files are in DIR
 
203
EOF
 
204
    if test -n "$ac_help"; then
 
205
      echo "--enable and --with options recognized:$ac_help"
 
206
    fi
 
207
    exit 0 ;;
437
208
 
438
209
  -host | --host | --hos | --ho)
439
 
    ac_prev=host_alias ;;
 
210
    ac_prev=host ;;
440
211
  -host=* | --host=* | --hos=* | --ho=*)
441
 
    host_alias=$ac_optarg ;;
 
212
    host="$ac_optarg" ;;
442
213
 
443
214
  -includedir | --includedir | --includedi | --included | --include \
444
215
  | --includ | --inclu | --incl | --inc)
445
216
    ac_prev=includedir ;;
446
217
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
218
  | --includ=* | --inclu=* | --incl=* | --inc=*)
448
 
    includedir=$ac_optarg ;;
 
219
    includedir="$ac_optarg" ;;
449
220
 
450
221
  -infodir | --infodir | --infodi | --infod | --info | --inf)
451
222
    ac_prev=infodir ;;
452
223
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
 
    infodir=$ac_optarg ;;
 
224
    infodir="$ac_optarg" ;;
454
225
 
455
226
  -libdir | --libdir | --libdi | --libd)
456
227
    ac_prev=libdir ;;
457
228
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458
 
    libdir=$ac_optarg ;;
 
229
    libdir="$ac_optarg" ;;
459
230
 
460
231
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
232
  | --libexe | --libex | --libe)
462
233
    ac_prev=libexecdir ;;
463
234
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
235
  | --libexe=* | --libex=* | --libe=*)
465
 
    libexecdir=$ac_optarg ;;
 
236
    libexecdir="$ac_optarg" ;;
466
237
 
467
238
  -localstatedir | --localstatedir | --localstatedi | --localstated \
468
239
  | --localstate | --localstat | --localsta | --localst \
471
242
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
243
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
244
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
 
    localstatedir=$ac_optarg ;;
 
245
    localstatedir="$ac_optarg" ;;
475
246
 
476
247
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
248
    ac_prev=mandir ;;
478
249
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479
 
    mandir=$ac_optarg ;;
 
250
    mandir="$ac_optarg" ;;
480
251
 
481
252
  -nfp | --nfp | --nf)
482
253
    # Obsolete; use --without-fp.
483
254
    with_fp=no ;;
484
255
 
485
256
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
 
  | --no-cr | --no-c | -n)
 
257
  | --no-cr | --no-c)
487
258
    no_create=yes ;;
488
259
 
489
260
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497
268
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
269
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
270
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
 
    oldincludedir=$ac_optarg ;;
 
271
    oldincludedir="$ac_optarg" ;;
501
272
 
502
273
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
274
    ac_prev=prefix ;;
504
275
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
 
    prefix=$ac_optarg ;;
 
276
    prefix="$ac_optarg" ;;
506
277
 
507
278
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508
279
  | --program-pre | --program-pr | --program-p)
509
280
    ac_prev=program_prefix ;;
510
281
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511
282
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
 
    program_prefix=$ac_optarg ;;
 
283
    program_prefix="$ac_optarg" ;;
513
284
 
514
285
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515
286
  | --program-suf | --program-su | --program-s)
516
287
    ac_prev=program_suffix ;;
517
288
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518
289
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
 
    program_suffix=$ac_optarg ;;
 
290
    program_suffix="$ac_optarg" ;;
520
291
 
521
292
  -program-transform-name | --program-transform-name \
522
293
  | --program-transform-nam | --program-transform-na \
533
304
  | --program-transfo=* | --program-transf=* \
534
305
  | --program-trans=* | --program-tran=* \
535
306
  | --progr-tra=* | --program-tr=* | --program-t=*)
536
 
    program_transform_name=$ac_optarg ;;
 
307
    program_transform_name="$ac_optarg" ;;
537
308
 
538
309
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
310
  | -silent | --silent | --silen | --sile | --sil)
543
314
    ac_prev=sbindir ;;
544
315
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
316
  | --sbi=* | --sb=*)
546
 
    sbindir=$ac_optarg ;;
 
317
    sbindir="$ac_optarg" ;;
547
318
 
548
319
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549
320
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554
325
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
326
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
327
  | --sha=* | --sh=*)
557
 
    sharedstatedir=$ac_optarg ;;
 
328
    sharedstatedir="$ac_optarg" ;;
558
329
 
559
330
  -site | --site | --sit)
560
331
    ac_prev=site ;;
561
332
  -site=* | --site=* | --sit=*)
562
 
    site=$ac_optarg ;;
 
333
    site="$ac_optarg" ;;
563
334
 
564
335
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
336
    ac_prev=srcdir ;;
566
337
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
 
    srcdir=$ac_optarg ;;
 
338
    srcdir="$ac_optarg" ;;
568
339
 
569
340
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
341
  | --syscon | --sysco | --sysc | --sys | --sy)
571
342
    ac_prev=sysconfdir ;;
572
343
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
344
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
 
    sysconfdir=$ac_optarg ;;
 
345
    sysconfdir="$ac_optarg" ;;
575
346
 
576
347
  -target | --target | --targe | --targ | --tar | --ta | --t)
577
 
    ac_prev=target_alias ;;
 
348
    ac_prev=target ;;
578
349
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
 
    target_alias=$ac_optarg ;;
 
350
    target="$ac_optarg" ;;
580
351
 
581
352
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582
353
    verbose=yes ;;
583
354
 
584
 
  -version | --version | --versio | --versi | --vers | -V)
585
 
    ac_init_version=: ;;
 
355
  -version | --version | --versio | --versi | --vers)
 
356
    echo "configure generated by autoconf version 2.13"
 
357
    exit 0 ;;
586
358
 
587
359
  -with-* | --with-*)
588
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
360
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
589
361
    # Reject names that are not valid shell variable names.
590
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
592
 
   { (exit 1); exit 1; }; }
 
362
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
363
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
364
    fi
593
365
    ac_package=`echo $ac_package| sed 's/-/_/g'`
594
 
    case $ac_option in
595
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
366
    case "$ac_option" in
 
367
      *=*) ;;
596
368
      *) ac_optarg=yes ;;
597
369
    esac
598
 
    eval "with_$ac_package='$ac_optarg'" ;;
 
370
    eval "with_${ac_package}='$ac_optarg'" ;;
599
371
 
600
372
  -without-* | --without-*)
601
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
373
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
602
374
    # Reject names that are not valid shell variable names.
603
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
605
 
   { (exit 1); exit 1; }; }
606
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
607
 
    eval "with_$ac_package=no" ;;
 
375
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
376
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
377
    fi
 
378
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
379
    eval "with_${ac_package}=no" ;;
608
380
 
609
381
  --x)
610
382
    # Obsolete; use --with-x.
615
387
    ac_prev=x_includes ;;
616
388
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
389
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
 
    x_includes=$ac_optarg ;;
 
390
    x_includes="$ac_optarg" ;;
619
391
 
620
392
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621
393
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
394
    ac_prev=x_libraries ;;
623
395
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
396
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
 
    x_libraries=$ac_optarg ;;
 
397
    x_libraries="$ac_optarg" ;;
626
398
 
627
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
628
 
Try \`$0 --help' for more information." >&2
629
 
   { (exit 1); exit 1; }; }
 
399
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
630
400
    ;;
631
401
 
632
 
  *=*)
633
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
 
    # Reject names that are not valid shell variable names.
635
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
 
   { (exit 1); exit 1; }; }
638
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
 
    eval "$ac_envvar='$ac_optarg'"
640
 
    export $ac_envvar ;;
641
 
 
642
402
  *)
643
 
    # FIXME: should be removed in autoconf 3.0.
644
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
403
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
404
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
405
    fi
 
406
    if test "x$nonopt" != xNONE; then
 
407
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
408
    fi
 
409
    nonopt="$ac_option"
648
410
    ;;
649
411
 
650
412
  esac
651
413
done
652
414
 
653
415
if test -n "$ac_prev"; then
654
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
656
 
   { (exit 1); exit 1; }; }
657
 
fi
658
 
 
659
 
# Be sure to have absolute paths.
660
 
for ac_var in exec_prefix prefix
661
 
do
662
 
  eval ac_val=$`echo $ac_var`
663
 
  case $ac_val in
664
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
 
   { (exit 1); exit 1; }; };;
667
 
  esac
668
 
done
669
 
 
670
 
# Be sure to have absolute paths.
671
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
 
              localstatedir libdir includedir oldincludedir infodir mandir
673
 
do
674
 
  eval ac_val=$`echo $ac_var`
675
 
  case $ac_val in
676
 
    [\\/$]* | ?:[\\/]* ) ;;
677
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
 
   { (exit 1); exit 1; }; };;
679
 
  esac
680
 
done
681
 
 
682
 
# There might be people who depend on the old broken behavior: `$host'
683
 
# used to hold the argument of --host etc.
684
 
# FIXME: To remove some day.
685
 
build=$build_alias
686
 
host=$host_alias
687
 
target=$target_alias
688
 
 
689
 
# FIXME: To remove some day.
690
 
if test "x$host_alias" != x; then
691
 
  if test "x$build_alias" = x; then
692
 
    cross_compiling=maybe
693
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
 
    If a cross compiler is detected then cross compile mode will be used." >&2
695
 
  elif test "x$build_alias" != "x$host_alias"; then
696
 
    cross_compiling=yes
697
 
  fi
698
 
fi
699
 
 
700
 
ac_tool_prefix=
701
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
 
 
703
 
test "$silent" = yes && exec 6>/dev/null
704
 
 
 
416
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
417
fi
 
418
 
 
419
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
420
 
 
421
# File descriptor usage:
 
422
# 0 standard input
 
423
# 1 file creation
 
424
# 2 errors and warnings
 
425
# 3 some systems may open it to /dev/tty
 
426
# 4 used on the Kubota Titan
 
427
# 6 checking for... messages and results
 
428
# 5 compiler messages saved in config.log
 
429
if test "$silent" = yes; then
 
430
  exec 6>/dev/null
 
431
else
 
432
  exec 6>&1
 
433
fi
 
434
exec 5>./config.log
 
435
 
 
436
echo "\
 
437
This file contains any messages produced by compilers while
 
438
running configure, to aid debugging if configure makes a mistake.
 
439
" 1>&5
 
440
 
 
441
# Strip out --no-create and --no-recursion so they do not pile up.
 
442
# Also quote any args containing shell metacharacters.
 
443
ac_configure_args=
 
444
for ac_arg
 
445
do
 
446
  case "$ac_arg" in
 
447
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
448
  | --no-cr | --no-c) ;;
 
449
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
450
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
451
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
452
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
453
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
454
  esac
 
455
done
 
456
 
 
457
# NLS nuisances.
 
458
# Only set these to C if already set.  These must not be set unconditionally
 
459
# because not all systems understand e.g. LANG=C (notably SCO).
 
460
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
461
# Non-C LC_CTYPE values break the ctype check.
 
462
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
463
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
464
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
465
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
466
 
 
467
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
468
rm -rf conftest* confdefs.h
 
469
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
470
echo > confdefs.h
 
471
 
 
472
# A filename unique to this package, relative to the directory that
 
473
# configure is in, which we can look for to find out if srcdir is correct.
 
474
ac_unique_file=expect.h
705
475
 
706
476
# Find the source files, if location was not specified.
707
477
if test -z "$srcdir"; then
708
478
  ac_srcdir_defaulted=yes
709
479
  # Try the directory containing this script, then its parent.
710
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
711
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
 
         X"$0" : 'X\(//\)[^/]' \| \
713
 
         X"$0" : 'X\(//\)$' \| \
714
 
         X"$0" : 'X\(/\)' \| \
715
 
         .     : '\(.\)' 2>/dev/null ||
716
 
echo X"$0" |
717
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
 
          /^X\(\/\/\)$/{ s//\1/; q; }
720
 
          /^X\(\/\).*/{ s//\1/; q; }
721
 
          s/.*/./; q'`
 
480
  ac_prog=$0
 
481
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
482
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
722
483
  srcdir=$ac_confdir
723
484
  if test ! -r $srcdir/$ac_unique_file; then
724
485
    srcdir=..
728
489
fi
729
490
if test ! -r $srcdir/$ac_unique_file; then
730
491
  if test "$ac_srcdir_defaulted" = yes; then
731
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
 
   { (exit 1); exit 1; }; }
 
492
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
733
493
  else
734
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
 
   { (exit 1); exit 1; }; }
 
494
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
736
495
  fi
737
496
fi
738
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
 
   { (exit 1); exit 1; }; }
741
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
 
ac_env_build_alias_set=${build_alias+set}
743
 
ac_env_build_alias_value=$build_alias
744
 
ac_cv_env_build_alias_set=${build_alias+set}
745
 
ac_cv_env_build_alias_value=$build_alias
746
 
ac_env_host_alias_set=${host_alias+set}
747
 
ac_env_host_alias_value=$host_alias
748
 
ac_cv_env_host_alias_set=${host_alias+set}
749
 
ac_cv_env_host_alias_value=$host_alias
750
 
ac_env_target_alias_set=${target_alias+set}
751
 
ac_env_target_alias_value=$target_alias
752
 
ac_cv_env_target_alias_set=${target_alias+set}
753
 
ac_cv_env_target_alias_value=$target_alias
754
 
ac_env_CC_set=${CC+set}
755
 
ac_env_CC_value=$CC
756
 
ac_cv_env_CC_set=${CC+set}
757
 
ac_cv_env_CC_value=$CC
758
 
ac_env_CFLAGS_set=${CFLAGS+set}
759
 
ac_env_CFLAGS_value=$CFLAGS
760
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
 
ac_cv_env_CFLAGS_value=$CFLAGS
762
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
 
ac_env_LDFLAGS_value=$LDFLAGS
764
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
 
ac_env_CPPFLAGS_value=$CPPFLAGS
768
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
 
ac_env_CPP_set=${CPP+set}
771
 
ac_env_CPP_value=$CPP
772
 
ac_cv_env_CPP_set=${CPP+set}
773
 
ac_cv_env_CPP_value=$CPP
774
 
 
775
 
#
776
 
# Report the --help message.
777
 
#
778
 
if test "$ac_init_help" = "long"; then
779
 
  # Omit some internal or obsolete options to make the list less imposing.
780
 
  # This message is too long to be a string in the A/UX 3.1 sh.
781
 
  cat <<_ACEOF
782
 
\`configure' configures this package to adapt to many kinds of systems.
783
 
 
784
 
Usage: $0 [OPTION]... [VAR=VALUE]...
785
 
 
786
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
788
 
 
789
 
Defaults for the options are specified in brackets.
790
 
 
791
 
Configuration:
792
 
  -h, --help              display this help and exit
793
 
      --help=short        display options specific to this package
794
 
      --help=recursive    display the short help of all the included packages
795
 
  -V, --version           display version information and exit
796
 
  -q, --quiet, --silent   do not print \`checking...' messages
797
 
      --cache-file=FILE   cache test results in FILE [disabled]
798
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
799
 
  -n, --no-create         do not create output files
800
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
 
 
802
 
_ACEOF
803
 
 
804
 
  cat <<_ACEOF
805
 
Installation directories:
806
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
807
 
                          [$ac_default_prefix]
808
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809
 
                          [PREFIX]
810
 
 
811
 
By default, \`make install' will install all the files in
812
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
 
for instance \`--prefix=\$HOME'.
815
 
 
816
 
For better control, use the options below.
817
 
 
818
 
Fine tuning of the installation directories:
819
 
  --bindir=DIR           user executables [EPREFIX/bin]
820
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
822
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
827
 
  --includedir=DIR       C header files [PREFIX/include]
828
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829
 
  --infodir=DIR          info documentation [PREFIX/info]
830
 
  --mandir=DIR           man documentation [PREFIX/man]
831
 
_ACEOF
832
 
 
833
 
  cat <<\_ACEOF
834
 
 
835
 
System types:
836
 
  --build=BUILD     configure for building on BUILD [guessed]
837
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
839
 
_ACEOF
840
 
fi
841
 
 
842
 
if test -n "$ac_init_help"; then
843
 
 
844
 
  cat <<\_ACEOF
845
 
 
846
 
Optional Features:
847
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849
 
  --enable-threads        build with threads (not supported)
850
 
  --enable-symbols   allow use of symbols if available
851
 
  --enable-shared     build libexpect as a shared library
852
 
  --enable-stubs     use Tcl stubs, if available
853
 
  --disable-load     disallow dynamic loading
854
 
  --enable-gcc        allow use of gcc if available
855
 
 
856
 
Optional Packages:
857
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859
 
  --with-tcl           directory containing tcl configuration (tclConfig.sh)
860
 
  --with-tk           directory containing tk configuration (tkConfig.sh)
861
 
  --with-tclinclude       directory where tcl private headers are
862
 
  --with-x               whether or not to use X (default yes)
863
 
  --with-tkinclude       directory where tk private headers are
864
 
 
865
 
Some influential environment variables:
866
 
  CC          C compiler command
867
 
  CFLAGS      C compiler flags
868
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
869
 
              nonstandard directory <lib dir>
870
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
871
 
              headers in a nonstandard directory <include dir>
872
 
  CPP         C preprocessor
873
 
 
874
 
Use these variables to override the choices made by `configure' or to help
875
 
it to find libraries and programs with nonstandard names/locations.
876
 
 
877
 
_ACEOF
878
 
fi
879
 
 
880
 
if test "$ac_init_help" = "recursive"; then
881
 
  # If there are subdirs, report their specific --help.
882
 
  ac_popdir=`pwd`
883
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884
 
    test -d $ac_dir || continue
885
 
    ac_builddir=.
886
 
 
887
 
if test "$ac_dir" != .; then
888
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889
 
  # A "../" for each directory in $ac_dir_suffix.
890
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891
 
else
892
 
  ac_dir_suffix= ac_top_builddir=
893
 
fi
894
 
 
895
 
case $srcdir in
896
 
  .)  # No --srcdir option.  We are building in place.
897
 
    ac_srcdir=.
898
 
    if test -z "$ac_top_builddir"; then
899
 
       ac_top_srcdir=.
900
 
    else
901
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902
 
    fi ;;
903
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
904
 
    ac_srcdir=$srcdir$ac_dir_suffix;
905
 
    ac_top_srcdir=$srcdir ;;
906
 
  *) # Relative path.
907
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
909
 
esac
910
 
 
911
 
# Do not use `cd foo && pwd` to compute absolute paths, because
912
 
# the directories may not exist.
913
 
case `pwd` in
914
 
.) ac_abs_builddir="$ac_dir";;
915
 
*)
916
 
  case "$ac_dir" in
917
 
  .) ac_abs_builddir=`pwd`;;
918
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
919
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
920
 
  esac;;
921
 
esac
922
 
case $ac_abs_builddir in
923
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
924
 
*)
925
 
  case ${ac_top_builddir}. in
926
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
927
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
928
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
929
 
  esac;;
930
 
esac
931
 
case $ac_abs_builddir in
932
 
.) ac_abs_srcdir=$ac_srcdir;;
933
 
*)
934
 
  case $ac_srcdir in
935
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
936
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
937
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
938
 
  esac;;
939
 
esac
940
 
case $ac_abs_builddir in
941
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
942
 
*)
943
 
  case $ac_top_srcdir in
944
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
945
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
946
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947
 
  esac;;
948
 
esac
949
 
 
950
 
    cd $ac_dir
951
 
    # Check for guested configure; otherwise get Cygnus style configure.
952
 
    if test -f $ac_srcdir/configure.gnu; then
953
 
      echo
954
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
955
 
    elif test -f $ac_srcdir/configure; then
956
 
      echo
957
 
      $SHELL $ac_srcdir/configure  --help=recursive
958
 
    elif test -f $ac_srcdir/configure.ac ||
959
 
           test -f $ac_srcdir/configure.in; then
960
 
      echo
961
 
      $ac_configure --help
962
 
    else
963
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964
 
    fi
965
 
    cd "$ac_popdir"
966
 
  done
967
 
fi
968
 
 
969
 
test -n "$ac_init_help" && exit 0
970
 
if $ac_init_version; then
971
 
  cat <<\_ACEOF
972
 
 
973
 
Copyright (C) 2003 Free Software Foundation, Inc.
974
 
This configure script is free software; the Free Software Foundation
975
 
gives unlimited permission to copy, distribute and modify it.
976
 
_ACEOF
977
 
  exit 0
978
 
fi
979
 
exec 5>config.log
980
 
cat >&5 <<_ACEOF
981
 
This file contains any messages produced by compilers while
982
 
running configure, to aid debugging if configure makes a mistake.
983
 
 
984
 
It was created by $as_me, which was
985
 
generated by GNU Autoconf 2.59.  Invocation command line was
986
 
 
987
 
  $ $0 $@
988
 
 
989
 
_ACEOF
990
 
{
991
 
cat <<_ASUNAME
992
 
## --------- ##
993
 
## Platform. ##
994
 
## --------- ##
995
 
 
996
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
998
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
999
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
 
 
1002
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1004
 
 
1005
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1006
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1007
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1009
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1010
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1011
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1012
 
 
1013
 
_ASUNAME
1014
 
 
1015
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016
 
for as_dir in $PATH
1017
 
do
1018
 
  IFS=$as_save_IFS
1019
 
  test -z "$as_dir" && as_dir=.
1020
 
  echo "PATH: $as_dir"
1021
 
done
1022
 
 
1023
 
} >&5
1024
 
 
1025
 
cat >&5 <<_ACEOF
1026
 
 
1027
 
 
1028
 
## ----------- ##
1029
 
## Core tests. ##
1030
 
## ----------- ##
1031
 
 
1032
 
_ACEOF
1033
 
 
1034
 
 
1035
 
# Keep a trace of the command line.
1036
 
# Strip out --no-create and --no-recursion so they do not pile up.
1037
 
# Strip out --silent because we don't want to record it for future runs.
1038
 
# Also quote any args containing shell meta-characters.
1039
 
# Make two passes to allow for proper duplicate-argument suppression.
1040
 
ac_configure_args=
1041
 
ac_configure_args0=
1042
 
ac_configure_args1=
1043
 
ac_sep=
1044
 
ac_must_keep_next=false
1045
 
for ac_pass in 1 2
1046
 
do
1047
 
  for ac_arg
1048
 
  do
1049
 
    case $ac_arg in
1050
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052
 
    | -silent | --silent | --silen | --sile | --sil)
1053
 
      continue ;;
1054
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056
 
    esac
1057
 
    case $ac_pass in
1058
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059
 
    2)
1060
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061
 
      if test $ac_must_keep_next = true; then
1062
 
        ac_must_keep_next=false # Got value, back to normal.
1063
 
      else
1064
 
        case $ac_arg in
1065
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1066
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1069
 
            case "$ac_configure_args0 " in
1070
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071
 
            esac
1072
 
            ;;
1073
 
          -* ) ac_must_keep_next=true ;;
1074
 
        esac
1075
 
      fi
1076
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077
 
      # Get rid of the leading space.
1078
 
      ac_sep=" "
1079
 
      ;;
1080
 
    esac
1081
 
  done
1082
 
done
1083
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
 
 
1086
 
# When interrupted or exit'd, cleanup temporary files, and complete
1087
 
# config.log.  We remove comments because anyway the quotes in there
1088
 
# would cause problems or look ugly.
1089
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1090
 
# such as our DU 5.0 friend, will then `close' the trap.
1091
 
trap 'exit_status=$?
1092
 
  # Save into config.log some information that might help in debugging.
1093
 
  {
1094
 
    echo
1095
 
 
1096
 
    cat <<\_ASBOX
1097
 
## ---------------- ##
1098
 
## Cache variables. ##
1099
 
## ---------------- ##
1100
 
_ASBOX
1101
 
    echo
1102
 
    # The following way of writing the cache mishandles newlines in values,
1103
 
{
1104
 
  (set) 2>&1 |
1105
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106
 
    *ac_space=\ *)
1107
 
      sed -n \
1108
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110
 
      ;;
1111
 
    *)
1112
 
      sed -n \
1113
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114
 
      ;;
1115
 
    esac;
1116
 
}
1117
 
    echo
1118
 
 
1119
 
    cat <<\_ASBOX
1120
 
## ----------------- ##
1121
 
## Output variables. ##
1122
 
## ----------------- ##
1123
 
_ASBOX
1124
 
    echo
1125
 
    for ac_var in $ac_subst_vars
1126
 
    do
1127
 
      eval ac_val=$`echo $ac_var`
1128
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1129
 
    done | sort
1130
 
    echo
1131
 
 
1132
 
    if test -n "$ac_subst_files"; then
1133
 
      cat <<\_ASBOX
1134
 
## ------------- ##
1135
 
## Output files. ##
1136
 
## ------------- ##
1137
 
_ASBOX
1138
 
      echo
1139
 
      for ac_var in $ac_subst_files
1140
 
      do
1141
 
        eval ac_val=$`echo $ac_var`
1142
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1143
 
      done | sort
1144
 
      echo
1145
 
    fi
1146
 
 
1147
 
    if test -s confdefs.h; then
1148
 
      cat <<\_ASBOX
1149
 
## ----------- ##
1150
 
## confdefs.h. ##
1151
 
## ----------- ##
1152
 
_ASBOX
1153
 
      echo
1154
 
      sed "/^$/d" confdefs.h | sort
1155
 
      echo
1156
 
    fi
1157
 
    test "$ac_signal" != 0 &&
1158
 
      echo "$as_me: caught signal $ac_signal"
1159
 
    echo "$as_me: exit $exit_status"
1160
 
  } >&5
1161
 
  rm -f core *.core &&
1162
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163
 
    exit $exit_status
1164
 
     ' 0
1165
 
for ac_signal in 1 2 13 15; do
1166
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167
 
done
1168
 
ac_signal=0
1169
 
 
1170
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1171
 
rm -rf conftest* confdefs.h
1172
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173
 
echo >confdefs.h
1174
 
 
1175
 
# Predefined preprocessor variables.
1176
 
 
1177
 
cat >>confdefs.h <<_ACEOF
1178
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1179
 
_ACEOF
1180
 
 
1181
 
 
1182
 
cat >>confdefs.h <<_ACEOF
1183
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184
 
_ACEOF
1185
 
 
1186
 
 
1187
 
cat >>confdefs.h <<_ACEOF
1188
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1189
 
_ACEOF
1190
 
 
1191
 
 
1192
 
cat >>confdefs.h <<_ACEOF
1193
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1194
 
_ACEOF
1195
 
 
1196
 
 
1197
 
cat >>confdefs.h <<_ACEOF
1198
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199
 
_ACEOF
1200
 
 
1201
 
 
1202
 
# Let the site file select an alternate cache file if it wants to.
 
497
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
498
 
1203
499
# Prefer explicitly selected file to automatically selected ones.
1204
500
if test -z "$CONFIG_SITE"; then
1205
501
  if test "x$prefix" != xNONE; then
1210
506
fi
1211
507
for ac_site_file in $CONFIG_SITE; do
1212
508
  if test -r "$ac_site_file"; then
1213
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1215
 
    sed 's/^/| /' "$ac_site_file" >&5
 
509
    echo "loading site script $ac_site_file"
1216
510
    . "$ac_site_file"
1217
511
  fi
1218
512
done
1219
513
 
1220
514
 
1221
 
# Check that the precious variables saved in the cache have kept the same
1222
 
# value.
1223
 
ac_cache_corrupted=false
1224
 
for ac_var in `(set) 2>&1 |
1225
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1226
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1228
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1230
 
  case $ac_old_set,$ac_new_set in
1231
 
    set,)
1232
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1233
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1234
 
      ac_cache_corrupted=: ;;
1235
 
    ,set)
1236
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1237
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238
 
      ac_cache_corrupted=: ;;
1239
 
    ,);;
1240
 
    *)
1241
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1242
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1243
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1244
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1245
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1246
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1247
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1248
 
        ac_cache_corrupted=:
1249
 
      fi;;
1250
 
  esac
1251
 
  # Pass precious variables to config.status.
1252
 
  if test "$ac_new_set" = set; then
1253
 
    case $ac_new_val in
1254
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1256
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1257
 
    esac
1258
 
    case " $ac_configure_args " in
1259
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1260
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261
 
    esac
1262
 
  fi
1263
 
done
1264
 
if $ac_cache_corrupted; then
1265
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1268
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269
 
   { (exit 1); exit 1; }; }
1270
 
fi
1271
 
 
1272
515
ac_ext=c
 
516
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1273
517
ac_cpp='$CPP $CPPFLAGS'
1274
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1275
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1276
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
 
 
1284
 
 
1285
 
 
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
 
1292
 
 
1293
 
 
 
518
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
519
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
520
cross_compiling=$ac_cv_prog_cc_cross
 
521
 
 
522
ac_exeext=
 
523
ac_objext=o
 
524
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
525
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
526
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
527
    ac_n= ac_c='
 
528
' ac_t='        '
 
529
  else
 
530
    ac_n=-n ac_c= ac_t=
 
531
  fi
 
532
else
 
533
  ac_n= ac_c='\c' ac_t=
 
534
fi
1294
535
 
1295
536
 
1296
537
 
1297
538
# note when updating version numbers here, also update pkgIndex.in (see
1298
539
# comments in Makefile)
1299
540
EXP_MAJOR_VERSION=5
1300
 
EXP_MINOR_VERSION=42
1301
 
EXP_MICRO_VERSION=1
 
541
EXP_MINOR_VERSION=43
 
542
EXP_MICRO_VERSION=0
1302
543
EXP_VERSION=$EXP_MAJOR_VERSION.$EXP_MINOR_VERSION
1303
544
EXP_VERSION_NODOTS=$EXP_MAJOR_VERSION$EXP_MINOR_VERSION
1304
545
EXP_VERSION_FULL=$EXP_VERSION.$EXP_MICRO_VERSION
1320
561
# Test if configure is older than configure.in and explain if no autoconf
1321
562
# Extract the first word of "autoconf", so it can be a program name with args.
1322
563
set dummy autoconf; ac_word=$2
1323
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1324
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325
 
if test "${ac_cv_prog_found+set}" = set; then
1326
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
564
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
565
echo "configure:566: checking for $ac_word" >&5
 
566
if eval "test \"`echo '$''{'ac_cv_prog_found'+set}'`\" = set"; then
 
567
  echo $ac_n "(cached) $ac_c" 1>&6
1327
568
else
1328
569
  if test -n "$found"; then
1329
570
  ac_cv_prog_found="$found" # Let the user override the test.
1330
571
else
1331
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332
 
for as_dir in $PATH
1333
 
do
1334
 
  IFS=$as_save_IFS
1335
 
  test -z "$as_dir" && as_dir=.
1336
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1337
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338
 
    ac_cv_prog_found="yes"
1339
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340
 
    break 2
1341
 
  fi
1342
 
done
1343
 
done
1344
 
 
 
572
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
573
  ac_dummy="$PATH"
 
574
  for ac_dir in $ac_dummy; do
 
575
    test -z "$ac_dir" && ac_dir=.
 
576
    if test -f $ac_dir/$ac_word; then
 
577
      ac_cv_prog_found="yes"
 
578
      break
 
579
    fi
 
580
  done
 
581
  IFS="$ac_save_ifs"
1345
582
  test -z "$ac_cv_prog_found" && ac_cv_prog_found="no"
1346
583
fi
1347
584
fi
1348
 
found=$ac_cv_prog_found
 
585
found="$ac_cv_prog_found"
1349
586
if test -n "$found"; then
1350
 
  echo "$as_me:$LINENO: result: $found" >&5
1351
 
echo "${ECHO_T}$found" >&6
 
587
  echo "$ac_t""$found" 1>&6
1352
588
else
1353
 
  echo "$as_me:$LINENO: result: no" >&5
1354
 
echo "${ECHO_T}no" >&6
 
589
  echo "$ac_t""no" 1>&6
1355
590
fi
1356
591
 
1357
 
echo "$as_me:$LINENO: checking configure up to date" >&5
1358
 
echo $ECHO_N "checking configure up to date... $ECHO_C" >&6
 
592
echo $ac_n "checking configure up to date""... $ac_c" 1>&6
 
593
echo "configure:594: checking configure up to date" >&5
1359
594
for i in `ls -tr ${srcdir}/configure ${srcdir}/configure.in ${srcdir}/Makefile.in` ; do
1360
595
  newest=$i
1361
596
done
1362
597
if test "$srcdir/configure" = "$newest" ; then
1363
 
  echo "$as_me:$LINENO: result: yes" >&5
1364
 
echo "${ECHO_T}yes" >&6
 
598
  echo "$ac_t""yes" 1>&6
1365
599
else
1366
 
  echo "$as_me:$LINENO: result: no" >&5
1367
 
echo "${ECHO_T}no" >&6
 
600
  echo "$ac_t""no" 1>&6
1368
601
fi
1369
602
if test $found = "no" -a "$newest" != "$srcdir/configure" ; then
1370
 
  { echo "$as_me:$LINENO: WARNING: $srcdir/configure appears to be old ($srcdir/configure.in and/or $srcdir/Makefile.in are newer) and the autoconf program to fix this situation was not found.  If you've no idea what this means, enter the command \"touch $srcdir/configure\" and restart $srcdir/configure." >&5
1371
 
echo "$as_me: WARNING: $srcdir/configure appears to be old ($srcdir/configure.in and/or $srcdir/Makefile.in are newer) and the autoconf program to fix this situation was not found.  If you've no idea what this means, enter the command \"touch $srcdir/configure\" and restart $srcdir/configure." >&2;}
 
603
  echo "configure: warning: $srcdir/configure appears to be old ($srcdir/configure.in and/or $srcdir/Makefile.in are newer) and the autoconf program to fix this situation was not found.  If you've no idea what this means, enter the command \"touch $srcdir/configure\" and restart $srcdir/configure." 1>&2
1372
604
  exit
1373
605
fi
1374
606
 
1382
614
    ac_aux_dir=$ac_dir
1383
615
    ac_install_sh="$ac_aux_dir/install.sh -c"
1384
616
    break
1385
 
  elif test -f $ac_dir/shtool; then
1386
 
    ac_aux_dir=$ac_dir
1387
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1388
 
    break
1389
617
  fi
1390
618
done
1391
619
if test -z "$ac_aux_dir"; then
1392
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394
 
   { (exit 1); exit 1; }; }
1395
 
fi
1396
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
 
 
1400
 
# Make sure we can run config.sub.
1401
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1402
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404
 
   { (exit 1); exit 1; }; }
1405
 
 
1406
 
echo "$as_me:$LINENO: checking build system type" >&5
1407
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408
 
if test "${ac_cv_build+set}" = set; then
1409
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1410
 
else
1411
 
  ac_cv_build_alias=$build_alias
1412
 
test -z "$ac_cv_build_alias" &&
1413
 
  ac_cv_build_alias=`$ac_config_guess`
1414
 
test -z "$ac_cv_build_alias" &&
1415
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417
 
   { (exit 1); exit 1; }; }
1418
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421
 
   { (exit 1); exit 1; }; }
1422
 
 
1423
 
fi
1424
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425
 
echo "${ECHO_T}$ac_cv_build" >&6
1426
 
build=$ac_cv_build
1427
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430
 
 
1431
 
 
1432
 
echo "$as_me:$LINENO: checking host system type" >&5
1433
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434
 
if test "${ac_cv_host+set}" = set; then
1435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1436
 
else
1437
 
  ac_cv_host_alias=$host_alias
1438
 
test -z "$ac_cv_host_alias" &&
1439
 
  ac_cv_host_alias=$ac_cv_build_alias
1440
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443
 
   { (exit 1); exit 1; }; }
1444
 
 
1445
 
fi
1446
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447
 
echo "${ECHO_T}$ac_cv_host" >&6
1448
 
host=$ac_cv_host
1449
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
 
 
1453
 
 
1454
 
echo "$as_me:$LINENO: checking target system type" >&5
1455
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1456
 
if test "${ac_cv_target+set}" = set; then
1457
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1458
 
else
1459
 
  ac_cv_target_alias=$target_alias
1460
 
test "x$ac_cv_target_alias" = "x" &&
1461
 
  ac_cv_target_alias=$ac_cv_host_alias
1462
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1463
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1464
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1465
 
   { (exit 1); exit 1; }; }
1466
 
 
1467
 
fi
1468
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1469
 
echo "${ECHO_T}$ac_cv_target" >&6
1470
 
target=$ac_cv_target
1471
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
 
 
 
620
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
621
fi
 
622
ac_config_guess=$ac_aux_dir/config.guess
 
623
ac_config_sub=$ac_aux_dir/config.sub
 
624
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
625
 
 
626
 
 
627
# Do some error checking and defaulting for the host and target type.
 
628
# The inputs are:
 
629
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
 
630
#
 
631
# The rules are:
 
632
# 1. You are not allowed to specify --host, --target, and nonopt at the
 
633
#    same time.
 
634
# 2. Host defaults to nonopt.
 
635
# 3. If nonopt is not specified, then host defaults to the current host,
 
636
#    as determined by config.guess.
 
637
# 4. Target and build default to nonopt.
 
638
# 5. If nonopt is not specified, then target and build default to host.
1475
639
 
1476
640
# The aliases save the names the user supplied, while $host etc.
1477
641
# will get canonicalized.
1478
 
test -n "$target_alias" &&
 
642
case $host---$target---$nonopt in
 
643
NONE---*---* | *---NONE---* | *---*---NONE) ;;
 
644
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
 
645
esac
 
646
 
 
647
 
 
648
# Make sure we can run config.sub.
 
649
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
650
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
651
fi
 
652
 
 
653
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
654
echo "configure:655: checking host system type" >&5
 
655
 
 
656
host_alias=$host
 
657
case "$host_alias" in
 
658
NONE)
 
659
  case $nonopt in
 
660
  NONE)
 
661
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
662
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
663
    fi ;;
 
664
  *) host_alias=$nonopt ;;
 
665
  esac ;;
 
666
esac
 
667
 
 
668
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
669
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
670
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
671
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
672
echo "$ac_t""$host" 1>&6
 
673
 
 
674
echo $ac_n "checking target system type""... $ac_c" 1>&6
 
675
echo "configure:676: checking target system type" >&5
 
676
 
 
677
target_alias=$target
 
678
case "$target_alias" in
 
679
NONE)
 
680
  case $nonopt in
 
681
  NONE) target_alias=$host_alias ;;
 
682
  *) target_alias=$nonopt ;;
 
683
  esac ;;
 
684
esac
 
685
 
 
686
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
 
687
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
688
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
689
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
690
echo "$ac_t""$target" 1>&6
 
691
 
 
692
echo $ac_n "checking build system type""... $ac_c" 1>&6
 
693
echo "configure:694: checking build system type" >&5
 
694
 
 
695
build_alias=$build
 
696
case "$build_alias" in
 
697
NONE)
 
698
  case $nonopt in
 
699
  NONE) build_alias=$host_alias ;;
 
700
  *) build_alias=$nonopt ;;
 
701
  esac ;;
 
702
esac
 
703
 
 
704
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 
705
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
706
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
707
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
708
echo "$ac_t""$build" 1>&6
 
709
 
 
710
test "$host_alias" != "$target_alias" &&
1479
711
  test "$program_prefix$program_suffix$program_transform_name" = \
1480
712
    NONENONEs,x,x, &&
1481
713
  program_prefix=${target_alias}-
1482
714
 
1483
 
          ac_config_headers="$ac_config_headers expect_cf.h"
 
715
 
1484
716
 
1485
717
 
1486
718
# /bin/sh on some systems is too deficient (in particular, Ultrix 4.3
1487
719
# sh lacks unset and we *need* that), but all these systems come with
1488
720
# alternatives, so take user's choice or whatever we're using here and
1489
721
# allow it to be seen by Make.
1490
 
echo "$as_me:$LINENO: checking shell to use within Make" >&5
1491
 
echo $ECHO_N "checking shell to use within Make... $ECHO_C" >&6
 
722
echo $ac_n "checking shell to use within Make""... $ac_c" 1>&6
 
723
echo "configure:724: checking shell to use within Make" >&5
1492
724
EXP_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1493
 
echo "$as_me:$LINENO: result: $CONFIG_SHELL" >&5
1494
 
echo "${ECHO_T}$CONFIG_SHELL" >&6
 
725
echo "$ac_t""$CONFIG_SHELL" 1>&6
1495
726
 
1496
727
# If `configure' is invoked (in)directly via `make', ensure that it
1497
728
# encounters no `make' conflicts.
1520
751
# EXP_LIBS.  Sigh.
1521
752
 
1522
753
OLD_CFLAGS=$CFLAGS
1523
 
ac_ext=c
1524
 
ac_cpp='$CPP $CPPFLAGS'
1525
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
 
if test -n "$ac_tool_prefix"; then
1529
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1532
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533
 
if test "${ac_cv_prog_CC+set}" = set; then
1534
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1535
 
else
1536
 
  if test -n "$CC"; then
1537
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1538
 
else
1539
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540
 
for as_dir in $PATH
1541
 
do
1542
 
  IFS=$as_save_IFS
1543
 
  test -z "$as_dir" && as_dir=.
1544
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1545
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548
 
    break 2
1549
 
  fi
1550
 
done
1551
 
done
1552
 
 
1553
 
fi
1554
 
fi
1555
 
CC=$ac_cv_prog_CC
1556
 
if test -n "$CC"; then
1557
 
  echo "$as_me:$LINENO: result: $CC" >&5
1558
 
echo "${ECHO_T}$CC" >&6
1559
 
else
1560
 
  echo "$as_me:$LINENO: result: no" >&5
1561
 
echo "${ECHO_T}no" >&6
1562
 
fi
1563
 
 
1564
 
fi
1565
 
if test -z "$ac_cv_prog_CC"; then
1566
 
  ac_ct_CC=$CC
1567
 
  # Extract the first word of "gcc", so it can be a program name with args.
 
754
# Extract the first word of "gcc", so it can be a program name with args.
1568
755
set dummy gcc; ac_word=$2
1569
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1570
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1573
 
else
1574
 
  if test -n "$ac_ct_CC"; then
1575
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576
 
else
1577
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578
 
for as_dir in $PATH
1579
 
do
1580
 
  IFS=$as_save_IFS
1581
 
  test -z "$as_dir" && as_dir=.
1582
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1583
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584
 
    ac_cv_prog_ac_ct_CC="gcc"
1585
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586
 
    break 2
1587
 
  fi
1588
 
done
1589
 
done
1590
 
 
1591
 
fi
1592
 
fi
1593
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594
 
if test -n "$ac_ct_CC"; then
1595
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596
 
echo "${ECHO_T}$ac_ct_CC" >&6
1597
 
else
1598
 
  echo "$as_me:$LINENO: result: no" >&5
1599
 
echo "${ECHO_T}no" >&6
1600
 
fi
1601
 
 
1602
 
  CC=$ac_ct_CC
1603
 
else
1604
 
  CC="$ac_cv_prog_CC"
1605
 
fi
1606
 
 
1607
 
if test -z "$CC"; then
1608
 
  if test -n "$ac_tool_prefix"; then
1609
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1611
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1612
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613
 
if test "${ac_cv_prog_CC+set}" = set; then
1614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
756
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
757
echo "configure:758: checking for $ac_word" >&5
 
758
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
759
  echo $ac_n "(cached) $ac_c" 1>&6
1615
760
else
1616
761
  if test -n "$CC"; then
1617
762
  ac_cv_prog_CC="$CC" # Let the user override the test.
1618
763
else
1619
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620
 
for as_dir in $PATH
1621
 
do
1622
 
  IFS=$as_save_IFS
1623
 
  test -z "$as_dir" && as_dir=.
1624
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1625
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1627
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628
 
    break 2
1629
 
  fi
1630
 
done
1631
 
done
1632
 
 
1633
 
fi
1634
 
fi
1635
 
CC=$ac_cv_prog_CC
 
764
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
765
  ac_dummy="$PATH"
 
766
  for ac_dir in $ac_dummy; do
 
767
    test -z "$ac_dir" && ac_dir=.
 
768
    if test -f $ac_dir/$ac_word; then
 
769
      ac_cv_prog_CC="gcc"
 
770
      break
 
771
    fi
 
772
  done
 
773
  IFS="$ac_save_ifs"
 
774
fi
 
775
fi
 
776
CC="$ac_cv_prog_CC"
1636
777
if test -n "$CC"; then
1637
 
  echo "$as_me:$LINENO: result: $CC" >&5
1638
 
echo "${ECHO_T}$CC" >&6
1639
 
else
1640
 
  echo "$as_me:$LINENO: result: no" >&5
1641
 
echo "${ECHO_T}no" >&6
1642
 
fi
1643
 
 
1644
 
fi
1645
 
if test -z "$ac_cv_prog_CC"; then
1646
 
  ac_ct_CC=$CC
1647
 
  # Extract the first word of "cc", so it can be a program name with args.
1648
 
set dummy cc; ac_word=$2
1649
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1650
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1653
 
else
1654
 
  if test -n "$ac_ct_CC"; then
1655
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656
 
else
1657
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658
 
for as_dir in $PATH
1659
 
do
1660
 
  IFS=$as_save_IFS
1661
 
  test -z "$as_dir" && as_dir=.
1662
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1663
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664
 
    ac_cv_prog_ac_ct_CC="cc"
1665
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666
 
    break 2
1667
 
  fi
1668
 
done
1669
 
done
1670
 
 
1671
 
fi
1672
 
fi
1673
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674
 
if test -n "$ac_ct_CC"; then
1675
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676
 
echo "${ECHO_T}$ac_ct_CC" >&6
1677
 
else
1678
 
  echo "$as_me:$LINENO: result: no" >&5
1679
 
echo "${ECHO_T}no" >&6
1680
 
fi
1681
 
 
1682
 
  CC=$ac_ct_CC
1683
 
else
1684
 
  CC="$ac_cv_prog_CC"
1685
 
fi
1686
 
 
1687
 
fi
 
778
  echo "$ac_t""$CC" 1>&6
 
779
else
 
780
  echo "$ac_t""no" 1>&6
 
781
fi
 
782
 
1688
783
if test -z "$CC"; then
1689
784
  # Extract the first word of "cc", so it can be a program name with args.
1690
785
set dummy cc; ac_word=$2
1691
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1692
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693
 
if test "${ac_cv_prog_CC+set}" = set; then
1694
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
786
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
787
echo "configure:788: checking for $ac_word" >&5
 
788
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
789
  echo $ac_n "(cached) $ac_c" 1>&6
1695
790
else
1696
791
  if test -n "$CC"; then
1697
792
  ac_cv_prog_CC="$CC" # Let the user override the test.
1698
793
else
 
794
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1699
795
  ac_prog_rejected=no
1700
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701
 
for as_dir in $PATH
1702
 
do
1703
 
  IFS=$as_save_IFS
1704
 
  test -z "$as_dir" && as_dir=.
1705
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1706
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708
 
       ac_prog_rejected=yes
1709
 
       continue
1710
 
     fi
1711
 
    ac_cv_prog_CC="cc"
1712
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713
 
    break 2
1714
 
  fi
1715
 
done
1716
 
done
1717
 
 
 
796
  ac_dummy="$PATH"
 
797
  for ac_dir in $ac_dummy; do
 
798
    test -z "$ac_dir" && ac_dir=.
 
799
    if test -f $ac_dir/$ac_word; then
 
800
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
801
        ac_prog_rejected=yes
 
802
        continue
 
803
      fi
 
804
      ac_cv_prog_CC="cc"
 
805
      break
 
806
    fi
 
807
  done
 
808
  IFS="$ac_save_ifs"
1718
809
if test $ac_prog_rejected = yes; then
1719
810
  # We found a bogon in the path, so make sure we never use it.
1720
811
  set dummy $ac_cv_prog_CC
1721
812
  shift
1722
 
  if test $# != 0; then
 
813
  if test $# -gt 0; then
1723
814
    # We chose a different compiler from the bogus one.
1724
815
    # However, it has the same basename, so the bogon will be chosen
1725
816
    # first if we set CC to just the basename; use the full file name.
1726
817
    shift
1727
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
818
    set dummy "$ac_dir/$ac_word" "$@"
 
819
    shift
 
820
    ac_cv_prog_CC="$@"
1728
821
  fi
1729
822
fi
1730
823
fi
1731
824
fi
1732
 
CC=$ac_cv_prog_CC
 
825
CC="$ac_cv_prog_CC"
1733
826
if test -n "$CC"; then
1734
 
  echo "$as_me:$LINENO: result: $CC" >&5
1735
 
echo "${ECHO_T}$CC" >&6
 
827
  echo "$ac_t""$CC" 1>&6
1736
828
else
1737
 
  echo "$as_me:$LINENO: result: no" >&5
1738
 
echo "${ECHO_T}no" >&6
 
829
  echo "$ac_t""no" 1>&6
1739
830
fi
1740
831
 
1741
 
fi
1742
 
if test -z "$CC"; then
1743
 
  if test -n "$ac_tool_prefix"; then
1744
 
  for ac_prog in cl
1745
 
  do
1746
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1749
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750
 
if test "${ac_cv_prog_CC+set}" = set; then
1751
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
832
  if test -z "$CC"; then
 
833
    case "`uname -s`" in
 
834
    *win32* | *WIN32*)
 
835
      # Extract the first word of "cl", so it can be a program name with args.
 
836
set dummy cl; ac_word=$2
 
837
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
838
echo "configure:839: checking for $ac_word" >&5
 
839
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
840
  echo $ac_n "(cached) $ac_c" 1>&6
1752
841
else
1753
842
  if test -n "$CC"; then
1754
843
  ac_cv_prog_CC="$CC" # Let the user override the test.
1755
844
else
1756
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757
 
for as_dir in $PATH
1758
 
do
1759
 
  IFS=$as_save_IFS
1760
 
  test -z "$as_dir" && as_dir=.
1761
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1762
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765
 
    break 2
1766
 
  fi
1767
 
done
1768
 
done
1769
 
 
1770
 
fi
1771
 
fi
1772
 
CC=$ac_cv_prog_CC
1773
 
if test -n "$CC"; then
1774
 
  echo "$as_me:$LINENO: result: $CC" >&5
1775
 
echo "${ECHO_T}$CC" >&6
1776
 
else
1777
 
  echo "$as_me:$LINENO: result: no" >&5
1778
 
echo "${ECHO_T}no" >&6
1779
 
fi
1780
 
 
1781
 
    test -n "$CC" && break
 
845
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
846
  ac_dummy="$PATH"
 
847
  for ac_dir in $ac_dummy; do
 
848
    test -z "$ac_dir" && ac_dir=.
 
849
    if test -f $ac_dir/$ac_word; then
 
850
      ac_cv_prog_CC="cl"
 
851
      break
 
852
    fi
1782
853
  done
1783
 
fi
1784
 
if test -z "$CC"; then
1785
 
  ac_ct_CC=$CC
1786
 
  for ac_prog in cl
1787
 
do
1788
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1789
 
set dummy $ac_prog; ac_word=$2
1790
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1791
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1794
 
else
1795
 
  if test -n "$ac_ct_CC"; then
1796
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797
 
else
1798
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799
 
for as_dir in $PATH
1800
 
do
1801
 
  IFS=$as_save_IFS
1802
 
  test -z "$as_dir" && as_dir=.
1803
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1804
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1806
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807
 
    break 2
 
854
  IFS="$ac_save_ifs"
 
855
fi
 
856
fi
 
857
CC="$ac_cv_prog_CC"
 
858
if test -n "$CC"; then
 
859
  echo "$ac_t""$CC" 1>&6
 
860
else
 
861
  echo "$ac_t""no" 1>&6
 
862
fi
 
863
 ;;
 
864
    esac
1808
865
  fi
1809
 
done
1810
 
done
1811
 
 
1812
 
fi
1813
 
fi
1814
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815
 
if test -n "$ac_ct_CC"; then
1816
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817
 
echo "${ECHO_T}$ac_ct_CC" >&6
1818
 
else
1819
 
  echo "$as_me:$LINENO: result: no" >&5
1820
 
echo "${ECHO_T}no" >&6
1821
 
fi
1822
 
 
1823
 
  test -n "$ac_ct_CC" && break
1824
 
done
1825
 
 
1826
 
  CC=$ac_ct_CC
1827
 
fi
1828
 
 
1829
 
fi
1830
 
 
1831
 
 
1832
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833
 
See \`config.log' for more details." >&5
1834
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1835
 
See \`config.log' for more details." >&2;}
1836
 
   { (exit 1); exit 1; }; }
1837
 
 
1838
 
# Provide some information about the compiler.
1839
 
echo "$as_me:$LINENO:" \
1840
 
     "checking for C compiler version" >&5
1841
 
ac_compiler=`set X $ac_compile; echo $2`
1842
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1844
 
  ac_status=$?
1845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846
 
  (exit $ac_status); }
1847
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1849
 
  ac_status=$?
1850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851
 
  (exit $ac_status); }
1852
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1854
 
  ac_status=$?
1855
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856
 
  (exit $ac_status); }
1857
 
 
1858
 
cat >conftest.$ac_ext <<_ACEOF
1859
 
/* confdefs.h.  */
1860
 
_ACEOF
1861
 
cat confdefs.h >>conftest.$ac_ext
1862
 
cat >>conftest.$ac_ext <<_ACEOF
1863
 
/* end confdefs.h.  */
1864
 
 
1865
 
int
1866
 
main ()
1867
 
{
1868
 
 
1869
 
  ;
1870
 
  return 0;
1871
 
}
1872
 
_ACEOF
1873
 
ac_clean_files_save=$ac_clean_files
1874
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875
 
# Try to create an executable without -o first, disregard a.out.
1876
 
# It will help us diagnose broken compilers, and finding out an intuition
1877
 
# of exeext.
1878
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882
 
  (eval $ac_link_default) 2>&5
1883
 
  ac_status=$?
1884
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885
 
  (exit $ac_status); }; then
1886
 
  # Find the output, starting from the most likely.  This scheme is
1887
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888
 
# resort.
1889
 
 
1890
 
# Be careful to initialize this variable, since it used to be cached.
1891
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892
 
ac_cv_exeext=
1893
 
# b.out is created by i960 compilers.
1894
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895
 
do
1896
 
  test -f "$ac_file" || continue
1897
 
  case $ac_file in
1898
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899
 
        ;;
1900
 
    conftest.$ac_ext )
1901
 
        # This is the source file.
1902
 
        ;;
1903
 
    [ab].out )
1904
 
        # We found the default executable, but exeext='' is most
1905
 
        # certainly right.
1906
 
        break;;
1907
 
    *.* )
1908
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1910
 
        # but it would be cool to find out if it's true.  Does anybody
1911
 
        # maintain Libtool? --akim.
1912
 
        export ac_cv_exeext
1913
 
        break;;
1914
 
    * )
1915
 
        break;;
1916
 
  esac
1917
 
done
1918
 
else
1919
 
  echo "$as_me: failed program was:" >&5
1920
 
sed 's/^/| /' conftest.$ac_ext >&5
1921
 
 
1922
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923
 
See \`config.log' for more details." >&5
1924
 
echo "$as_me: error: C compiler cannot create executables
1925
 
See \`config.log' for more details." >&2;}
1926
 
   { (exit 77); exit 77; }; }
1927
 
fi
1928
 
 
1929
 
ac_exeext=$ac_cv_exeext
1930
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1931
 
echo "${ECHO_T}$ac_file" >&6
1932
 
 
1933
 
# Check the compiler produces executables we can run.  If not, either
1934
 
# the compiler is broken, or we cross compile.
1935
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938
 
# If not cross compiling, check that we can run a simple program.
1939
 
if test "$cross_compiling" != yes; then
1940
 
  if { ac_try='./$ac_file'
1941
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942
 
  (eval $ac_try) 2>&5
1943
 
  ac_status=$?
1944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945
 
  (exit $ac_status); }; }; then
1946
 
    cross_compiling=no
 
866
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
867
fi
 
868
 
 
869
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
870
echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
871
 
 
872
ac_ext=c
 
873
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
874
ac_cpp='$CPP $CPPFLAGS'
 
875
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
876
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
877
cross_compiling=$ac_cv_prog_cc_cross
 
878
 
 
879
cat > conftest.$ac_ext << EOF
 
880
 
 
881
#line 882 "configure"
 
882
#include "confdefs.h"
 
883
 
 
884
main(){return(0);}
 
885
EOF
 
886
if { (eval echo configure:887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
887
  ac_cv_prog_cc_works=yes
 
888
  # If we can't run a trivial program, we are probably using a cross compiler.
 
889
  if (./conftest; exit) 2>/dev/null; then
 
890
    ac_cv_prog_cc_cross=no
1947
891
  else
1948
 
    if test "$cross_compiling" = maybe; then
1949
 
        cross_compiling=yes
1950
 
    else
1951
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952
 
If you meant to cross compile, use \`--host'.
1953
 
See \`config.log' for more details." >&5
1954
 
echo "$as_me: error: cannot run C compiled programs.
1955
 
If you meant to cross compile, use \`--host'.
1956
 
See \`config.log' for more details." >&2;}
1957
 
   { (exit 1); exit 1; }; }
1958
 
    fi
 
892
    ac_cv_prog_cc_cross=yes
1959
893
  fi
1960
 
fi
1961
 
echo "$as_me:$LINENO: result: yes" >&5
1962
 
echo "${ECHO_T}yes" >&6
1963
 
 
1964
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965
 
ac_clean_files=$ac_clean_files_save
1966
 
# Check the compiler produces executables we can run.  If not, either
1967
 
# the compiler is broken, or we cross compile.
1968
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971
 
echo "${ECHO_T}$cross_compiling" >&6
1972
 
 
1973
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976
 
  (eval $ac_link) 2>&5
1977
 
  ac_status=$?
1978
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979
 
  (exit $ac_status); }; then
1980
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1983
 
# `rm'.
1984
 
for ac_file in conftest.exe conftest conftest.*; do
1985
 
  test -f "$ac_file" || continue
1986
 
  case $ac_file in
1987
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989
 
          export ac_cv_exeext
1990
 
          break;;
1991
 
    * ) break;;
1992
 
  esac
1993
 
done
1994
 
else
1995
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996
 
See \`config.log' for more details." >&5
1997
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998
 
See \`config.log' for more details." >&2;}
1999
 
   { (exit 1); exit 1; }; }
2000
 
fi
2001
 
 
2002
 
rm -f conftest$ac_cv_exeext
2003
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2005
 
 
2006
 
rm -f conftest.$ac_ext
2007
 
EXEEXT=$ac_cv_exeext
2008
 
ac_exeext=$EXEEXT
2009
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011
 
if test "${ac_cv_objext+set}" = set; then
2012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2013
 
else
2014
 
  cat >conftest.$ac_ext <<_ACEOF
2015
 
/* confdefs.h.  */
2016
 
_ACEOF
2017
 
cat confdefs.h >>conftest.$ac_ext
2018
 
cat >>conftest.$ac_ext <<_ACEOF
2019
 
/* end confdefs.h.  */
2020
 
 
2021
 
int
2022
 
main ()
2023
 
{
2024
 
 
2025
 
  ;
2026
 
  return 0;
2027
 
}
2028
 
_ACEOF
2029
 
rm -f conftest.o conftest.obj
2030
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031
 
  (eval $ac_compile) 2>&5
2032
 
  ac_status=$?
2033
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034
 
  (exit $ac_status); }; then
2035
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036
 
  case $ac_file in
2037
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039
 
       break;;
2040
 
  esac
2041
 
done
2042
 
else
2043
 
  echo "$as_me: failed program was:" >&5
2044
 
sed 's/^/| /' conftest.$ac_ext >&5
2045
 
 
2046
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047
 
See \`config.log' for more details." >&5
2048
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049
 
See \`config.log' for more details." >&2;}
2050
 
   { (exit 1); exit 1; }; }
2051
 
fi
2052
 
 
2053
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054
 
fi
2055
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056
 
echo "${ECHO_T}$ac_cv_objext" >&6
2057
 
OBJEXT=$ac_cv_objext
2058
 
ac_objext=$OBJEXT
2059
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2063
 
else
2064
 
  cat >conftest.$ac_ext <<_ACEOF
2065
 
/* confdefs.h.  */
2066
 
_ACEOF
2067
 
cat confdefs.h >>conftest.$ac_ext
2068
 
cat >>conftest.$ac_ext <<_ACEOF
2069
 
/* end confdefs.h.  */
2070
 
 
2071
 
int
2072
 
main ()
2073
 
{
2074
 
#ifndef __GNUC__
2075
 
       choke me
 
894
else
 
895
  echo "configure: failed program was:" >&5
 
896
  cat conftest.$ac_ext >&5
 
897
  ac_cv_prog_cc_works=no
 
898
fi
 
899
rm -fr conftest*
 
900
ac_ext=c
 
901
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
902
ac_cpp='$CPP $CPPFLAGS'
 
903
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
904
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
905
cross_compiling=$ac_cv_prog_cc_cross
 
906
 
 
907
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
908
if test $ac_cv_prog_cc_works = no; then
 
909
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
910
fi
 
911
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
912
echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
913
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
914
cross_compiling=$ac_cv_prog_cc_cross
 
915
 
 
916
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
917
echo "configure:918: checking whether we are using GNU C" >&5
 
918
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
919
  echo $ac_n "(cached) $ac_c" 1>&6
 
920
else
 
921
  cat > conftest.c <<EOF
 
922
#ifdef __GNUC__
 
923
  yes;
2076
924
#endif
2077
 
 
2078
 
  ;
2079
 
  return 0;
2080
 
}
2081
 
_ACEOF
2082
 
rm -f conftest.$ac_objext
2083
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084
 
  (eval $ac_compile) 2>conftest.er1
2085
 
  ac_status=$?
2086
 
  grep -v '^ *+' conftest.er1 >conftest.err
2087
 
  rm -f conftest.er1
2088
 
  cat conftest.err >&5
2089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090
 
  (exit $ac_status); } &&
2091
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2092
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093
 
  (eval $ac_try) 2>&5
2094
 
  ac_status=$?
2095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096
 
  (exit $ac_status); }; } &&
2097
 
         { ac_try='test -s conftest.$ac_objext'
2098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099
 
  (eval $ac_try) 2>&5
2100
 
  ac_status=$?
2101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102
 
  (exit $ac_status); }; }; then
2103
 
  ac_compiler_gnu=yes
2104
 
else
2105
 
  echo "$as_me: failed program was:" >&5
2106
 
sed 's/^/| /' conftest.$ac_ext >&5
2107
 
 
2108
 
ac_compiler_gnu=no
2109
 
fi
2110
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2112
 
 
2113
 
fi
2114
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2117
 
ac_test_CFLAGS=${CFLAGS+set}
2118
 
ac_save_CFLAGS=$CFLAGS
2119
 
CFLAGS="-g"
2120
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2123
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2124
 
else
2125
 
  cat >conftest.$ac_ext <<_ACEOF
2126
 
/* confdefs.h.  */
2127
 
_ACEOF
2128
 
cat confdefs.h >>conftest.$ac_ext
2129
 
cat >>conftest.$ac_ext <<_ACEOF
2130
 
/* end confdefs.h.  */
2131
 
 
2132
 
int
2133
 
main ()
2134
 
{
2135
 
 
2136
 
  ;
2137
 
  return 0;
2138
 
}
2139
 
_ACEOF
2140
 
rm -f conftest.$ac_objext
2141
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142
 
  (eval $ac_compile) 2>conftest.er1
2143
 
  ac_status=$?
2144
 
  grep -v '^ *+' conftest.er1 >conftest.err
2145
 
  rm -f conftest.er1
2146
 
  cat conftest.err >&5
2147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148
 
  (exit $ac_status); } &&
2149
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2150
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151
 
  (eval $ac_try) 2>&5
2152
 
  ac_status=$?
2153
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154
 
  (exit $ac_status); }; } &&
2155
 
         { ac_try='test -s conftest.$ac_objext'
2156
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157
 
  (eval $ac_try) 2>&5
2158
 
  ac_status=$?
2159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
 
  (exit $ac_status); }; }; then
 
925
EOF
 
926
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
927
  ac_cv_prog_gcc=yes
 
928
else
 
929
  ac_cv_prog_gcc=no
 
930
fi
 
931
fi
 
932
 
 
933
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
934
 
 
935
if test $ac_cv_prog_gcc = yes; then
 
936
  GCC=yes
 
937
else
 
938
  GCC=
 
939
fi
 
940
 
 
941
ac_test_CFLAGS="${CFLAGS+set}"
 
942
ac_save_CFLAGS="$CFLAGS"
 
943
CFLAGS=
 
944
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
945
echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
 
946
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
947
  echo $ac_n "(cached) $ac_c" 1>&6
 
948
else
 
949
  echo 'void f(){}' > conftest.c
 
950
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2161
951
  ac_cv_prog_cc_g=yes
2162
952
else
2163
 
  echo "$as_me: failed program was:" >&5
2164
 
sed 's/^/| /' conftest.$ac_ext >&5
2165
 
 
2166
 
ac_cv_prog_cc_g=no
2167
 
fi
2168
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169
 
fi
2170
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
953
  ac_cv_prog_cc_g=no
 
954
fi
 
955
rm -f conftest*
 
956
 
 
957
fi
 
958
 
 
959
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2172
960
if test "$ac_test_CFLAGS" = set; then
2173
 
  CFLAGS=$ac_save_CFLAGS
 
961
  CFLAGS="$ac_save_CFLAGS"
2174
962
elif test $ac_cv_prog_cc_g = yes; then
2175
963
  if test "$GCC" = yes; then
2176
964
    CFLAGS="-g -O2"
2184
972
    CFLAGS=
2185
973
  fi
2186
974
fi
2187
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2191
 
else
2192
 
  ac_cv_prog_cc_stdc=no
2193
 
ac_save_CC=$CC
2194
 
cat >conftest.$ac_ext <<_ACEOF
2195
 
/* confdefs.h.  */
2196
 
_ACEOF
2197
 
cat confdefs.h >>conftest.$ac_ext
2198
 
cat >>conftest.$ac_ext <<_ACEOF
2199
 
/* end confdefs.h.  */
2200
 
#include <stdarg.h>
2201
 
#include <stdio.h>
2202
 
#include <sys/types.h>
2203
 
#include <sys/stat.h>
2204
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2205
 
struct buf { int x; };
2206
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207
 
static char *e (p, i)
2208
 
     char **p;
2209
 
     int i;
2210
 
{
2211
 
  return p[i];
2212
 
}
2213
 
static char *f (char * (*g) (char **, int), char **p, ...)
2214
 
{
2215
 
  char *s;
2216
 
  va_list v;
2217
 
  va_start (v,p);
2218
 
  s = g (p, va_arg (v,int));
2219
 
  va_end (v);
2220
 
  return s;
2221
 
}
2222
 
 
2223
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2224
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2225
 
   These don't provoke an error unfortunately, instead are silently treated
2226
 
   as 'x'.  The following induces an error, until -std1 is added to get
2227
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2228
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2229
 
   that's true only with -std1.  */
2230
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231
 
 
2232
 
int test (int i, double x);
2233
 
struct s1 {int (*f) (int a);};
2234
 
struct s2 {int (*f) (double a);};
2235
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236
 
int argc;
2237
 
char **argv;
2238
 
int
2239
 
main ()
2240
 
{
2241
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2242
 
  ;
2243
 
  return 0;
2244
 
}
2245
 
_ACEOF
2246
 
# Don't try gcc -ansi; that turns off useful extensions and
2247
 
# breaks some systems' header files.
2248
 
# AIX                   -qlanglvl=ansi
2249
 
# Ultrix and OSF/1      -std1
2250
 
# HP-UX 10.20 and later -Ae
2251
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2252
 
# SVR4                  -Xc -D__EXTENSIONS__
2253
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254
 
do
2255
 
  CC="$ac_save_CC $ac_arg"
2256
 
  rm -f conftest.$ac_objext
2257
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258
 
  (eval $ac_compile) 2>conftest.er1
2259
 
  ac_status=$?
2260
 
  grep -v '^ *+' conftest.er1 >conftest.err
2261
 
  rm -f conftest.er1
2262
 
  cat conftest.err >&5
2263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264
 
  (exit $ac_status); } &&
2265
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2266
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267
 
  (eval $ac_try) 2>&5
2268
 
  ac_status=$?
2269
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270
 
  (exit $ac_status); }; } &&
2271
 
         { ac_try='test -s conftest.$ac_objext'
2272
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273
 
  (eval $ac_try) 2>&5
2274
 
  ac_status=$?
2275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276
 
  (exit $ac_status); }; }; then
2277
 
  ac_cv_prog_cc_stdc=$ac_arg
2278
 
break
2279
 
else
2280
 
  echo "$as_me: failed program was:" >&5
2281
 
sed 's/^/| /' conftest.$ac_ext >&5
2282
 
 
2283
 
fi
2284
 
rm -f conftest.err conftest.$ac_objext
2285
 
done
2286
 
rm -f conftest.$ac_ext conftest.$ac_objext
2287
 
CC=$ac_save_CC
2288
 
 
2289
 
fi
2290
 
 
2291
 
case "x$ac_cv_prog_cc_stdc" in
2292
 
  x|xno)
2293
 
    echo "$as_me:$LINENO: result: none needed" >&5
2294
 
echo "${ECHO_T}none needed" >&6 ;;
2295
 
  *)
2296
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2297
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2298
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2299
 
esac
2300
 
 
2301
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2302
 
# in C++ we need to declare it.  In case someone uses the same compiler
2303
 
# for both compiling C and C++ we need to have the C++ compiler decide
2304
 
# the declaration of exit, since it's the most demanding environment.
2305
 
cat >conftest.$ac_ext <<_ACEOF
2306
 
#ifndef __cplusplus
2307
 
  choke me
2308
 
#endif
2309
 
_ACEOF
2310
 
rm -f conftest.$ac_objext
2311
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312
 
  (eval $ac_compile) 2>conftest.er1
2313
 
  ac_status=$?
2314
 
  grep -v '^ *+' conftest.er1 >conftest.err
2315
 
  rm -f conftest.er1
2316
 
  cat conftest.err >&5
2317
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318
 
  (exit $ac_status); } &&
2319
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2320
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321
 
  (eval $ac_try) 2>&5
2322
 
  ac_status=$?
2323
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324
 
  (exit $ac_status); }; } &&
2325
 
         { ac_try='test -s conftest.$ac_objext'
2326
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327
 
  (eval $ac_try) 2>&5
2328
 
  ac_status=$?
2329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330
 
  (exit $ac_status); }; }; then
2331
 
  for ac_declaration in \
2332
 
   '' \
2333
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2334
 
   'extern "C" void std::exit (int); using std::exit;' \
2335
 
   'extern "C" void exit (int) throw ();' \
2336
 
   'extern "C" void exit (int);' \
2337
 
   'void exit (int);'
2338
 
do
2339
 
  cat >conftest.$ac_ext <<_ACEOF
2340
 
/* confdefs.h.  */
2341
 
_ACEOF
2342
 
cat confdefs.h >>conftest.$ac_ext
2343
 
cat >>conftest.$ac_ext <<_ACEOF
2344
 
/* end confdefs.h.  */
2345
 
$ac_declaration
2346
 
#include <stdlib.h>
2347
 
int
2348
 
main ()
2349
 
{
2350
 
exit (42);
2351
 
  ;
2352
 
  return 0;
2353
 
}
2354
 
_ACEOF
2355
 
rm -f conftest.$ac_objext
2356
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357
 
  (eval $ac_compile) 2>conftest.er1
2358
 
  ac_status=$?
2359
 
  grep -v '^ *+' conftest.er1 >conftest.err
2360
 
  rm -f conftest.er1
2361
 
  cat conftest.err >&5
2362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363
 
  (exit $ac_status); } &&
2364
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2365
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366
 
  (eval $ac_try) 2>&5
2367
 
  ac_status=$?
2368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369
 
  (exit $ac_status); }; } &&
2370
 
         { ac_try='test -s conftest.$ac_objext'
2371
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372
 
  (eval $ac_try) 2>&5
2373
 
  ac_status=$?
2374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375
 
  (exit $ac_status); }; }; then
2376
 
  :
2377
 
else
2378
 
  echo "$as_me: failed program was:" >&5
2379
 
sed 's/^/| /' conftest.$ac_ext >&5
2380
 
 
2381
 
continue
2382
 
fi
2383
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384
 
  cat >conftest.$ac_ext <<_ACEOF
2385
 
/* confdefs.h.  */
2386
 
_ACEOF
2387
 
cat confdefs.h >>conftest.$ac_ext
2388
 
cat >>conftest.$ac_ext <<_ACEOF
2389
 
/* end confdefs.h.  */
2390
 
$ac_declaration
2391
 
int
2392
 
main ()
2393
 
{
2394
 
exit (42);
2395
 
  ;
2396
 
  return 0;
2397
 
}
2398
 
_ACEOF
2399
 
rm -f conftest.$ac_objext
2400
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401
 
  (eval $ac_compile) 2>conftest.er1
2402
 
  ac_status=$?
2403
 
  grep -v '^ *+' conftest.er1 >conftest.err
2404
 
  rm -f conftest.er1
2405
 
  cat conftest.err >&5
2406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407
 
  (exit $ac_status); } &&
2408
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2409
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410
 
  (eval $ac_try) 2>&5
2411
 
  ac_status=$?
2412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
 
  (exit $ac_status); }; } &&
2414
 
         { ac_try='test -s conftest.$ac_objext'
2415
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416
 
  (eval $ac_try) 2>&5
2417
 
  ac_status=$?
2418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419
 
  (exit $ac_status); }; }; then
2420
 
  break
2421
 
else
2422
 
  echo "$as_me: failed program was:" >&5
2423
 
sed 's/^/| /' conftest.$ac_ext >&5
2424
 
 
2425
 
fi
2426
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427
 
done
2428
 
rm -f conftest*
2429
 
if test -n "$ac_declaration"; then
2430
 
  echo '#ifdef __cplusplus' >>confdefs.h
2431
 
  echo $ac_declaration      >>confdefs.h
2432
 
  echo '#endif'             >>confdefs.h
2433
 
fi
2434
 
 
2435
 
else
2436
 
  echo "$as_me: failed program was:" >&5
2437
 
sed 's/^/| /' conftest.$ac_ext >&5
2438
 
 
2439
 
fi
2440
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441
 
ac_ext=c
2442
 
ac_cpp='$CPP $CPPFLAGS'
2443
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
975
 
2447
976
CFLAGS=$OLD_CFLAGS
2448
977
 
2452
981
#------------------------------------------------------------------------
2453
982
 
2454
983
 
2455
 
    echo "$as_me:$LINENO: checking for building with threads" >&5
2456
 
echo $ECHO_N "checking for building with threads... $ECHO_C" >&6
 
984
    echo $ac_n "checking for building with threads""... $ac_c" 1>&6
 
985
echo "configure:986: checking for building with threads" >&5
2457
986
    # Check whether --enable-threads or --disable-threads was given.
2458
987
if test "${enable_threads+set}" = set; then
2459
988
  enableval="$enable_threads"
2460
989
  tcl_ok=$enableval
2461
990
else
2462
991
  tcl_ok=no
2463
 
fi;
 
992
fi
 
993
 
2464
994
 
2465
995
    if test "$tcl_ok" = "yes"; then
2466
 
          { echo "$as_me:$LINENO: WARNING: Expect is not fully thread-enabled.  Although significant work has been done towards that goal, it is not complete.  Continue compiling at your own risk." >&5
2467
 
echo "$as_me: WARNING: Expect is not fully thread-enabled.  Although significant work has been done towards that goal, it is not complete.  Continue compiling at your own risk." >&2;}
 
996
          echo "configure: warning: Expect is not fully thread-enabled.  Although significant work has been done towards that goal, it is not complete.  Continue compiling at your own risk." 1>&2
2468
997
    fi
2469
998
#    if test "$tcl_ok" = "yes"; then
2470
999
#       AC_MSG_RESULT(yes)
2485
1014
#       AC_MSG_RESULT(no (default))
2486
1015
#    fi
2487
1016
 
2488
 
    echo "$as_me:$LINENO: result: no (default)" >&5
2489
 
echo "${ECHO_T}no (default)" >&6
 
1017
    echo "$ac_t""no (default)" 1>&6
2490
1018
 
2491
1019
 
2492
1020
 
2493
1021
 
2494
1022
#
2495
1023
# Ok, lets find the tcl configuration
2496
 
# First, look for one uninstalled.
 
1024
# First, look for one uninstalled.  
2497
1025
# the alternative search directory is invoked by --with-tcl
2498
1026
#
2499
1027
 
2500
1028
if test x"${no_tcl}" = x ; then
2501
1029
  # we reset no_tcl in case something fails here
2502
1030
  no_tcl=true
2503
 
 
2504
 
# Check whether --with-tcl or --without-tcl was given.
 
1031
  # Check whether --with-tcl or --without-tcl was given.
2505
1032
if test "${with_tcl+set}" = set; then
2506
1033
  withval="$with_tcl"
2507
1034
  with_tclconfig=${withval}
2508
 
fi;
2509
 
  echo "$as_me:$LINENO: checking for Tcl configuration" >&5
2510
 
echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
2511
 
  if test "${ac_cv_c_tclconfig+set}" = set; then
2512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1035
fi
 
1036
 
 
1037
  echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
 
1038
echo "configure:1039: checking for Tcl configuration" >&5
 
1039
  if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
 
1040
  echo $ac_n "(cached) $ac_c" 1>&6
2513
1041
else
2514
 
 
 
1042
  
2515
1043
 
2516
1044
  # First check to see if --with-tcl was specified.
2517
1045
  if test x"${with_tclconfig}" != x ; then
2518
1046
    if test -f "${with_tclconfig}/tclConfig.sh" ; then
2519
1047
      ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
2520
1048
    else
2521
 
      { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
2522
 
echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
2523
 
   { (exit 1); exit 1; }; }
 
1049
      { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
2524
1050
    fi
2525
1051
  fi
2526
1052
 
2563
1089
      fi
2564
1090
    done
2565
1091
  fi
2566
 
 
 
1092
  
2567
1093
fi
2568
1094
 
2569
1095
  if test x"${ac_cv_c_tclconfig}" = x ; then
2570
1096
    TCLCONFIG="# no Tcl configs found"
2571
 
    { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
2572
 
echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
 
1097
    echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
2573
1098
  else
2574
1099
    no_tcl=
2575
1100
    TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
2576
 
    echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
2577
 
echo "${ECHO_T}found $TCLCONFIG" >&6
 
1101
    echo "$ac_t""found $TCLCONFIG" 1>&6
2578
1102
  fi
2579
1103
fi
2580
1104
 
2581
1105
 
2582
 
 
2583
1106
    . $TCLCONFIG
2584
1107
 
2585
 
 
2586
 
 
2587
 
 
2588
 
 
2589
 
 
2590
 
 
2591
 
 
2592
 
 
2593
 
 
 
1108
    
 
1109
    
 
1110
    
 
1111
 
 
1112
 
 
1113
 
 
1114
    
 
1115
 
 
1116
    
2594
1117
 
2595
1118
# Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
2596
1119
# as just SHLIB_SUFFIX.  How bizarre.
2597
1120
    SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
2598
 
 
2599
 
 
2600
 
 
 
1121
    
 
1122
 
 
1123
    
2601
1124
 
2602
1125
# if Tcl's build directory has been removed, TCL_LIB_SPEC should
2603
1126
# be used instead of TCL_BUILD_LIB_SPEC
2604
1127
SAVELIBS=$LIBS
2605
1128
# eval used to expand out TCL_DBGX
2606
1129
eval "LIBS=\"$TCL_BUILD_LIB_SPEC $TCL_LIBS\""
2607
 
echo "$as_me:$LINENO: checking Tcl build library" >&5
2608
 
echo $ECHO_N "checking Tcl build library... $ECHO_C" >&6
2609
 
echo "$as_me:$LINENO: result: $LIBS" >&5
2610
 
echo "${ECHO_T}$LIBS" >&6
 
1130
echo $ac_n "checking Tcl build library""... $ac_c" 1>&6
 
1131
echo "configure:1132: checking Tcl build library" >&5
 
1132
echo "$ac_t""$LIBS" 1>&6
2611
1133
 
2612
 
echo "$as_me:$LINENO: checking for Tcl_CreateCommand" >&5
2613
 
echo $ECHO_N "checking for Tcl_CreateCommand... $ECHO_C" >&6
2614
 
if test "${ac_cv_func_Tcl_CreateCommand+set}" = set; then
2615
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1134
echo $ac_n "checking for Tcl_CreateCommand""... $ac_c" 1>&6
 
1135
echo "configure:1136: checking for Tcl_CreateCommand" >&5
 
1136
if eval "test \"`echo '$''{'ac_cv_func_Tcl_CreateCommand'+set}'`\" = set"; then
 
1137
  echo $ac_n "(cached) $ac_c" 1>&6
2616
1138
else
2617
 
  cat >conftest.$ac_ext <<_ACEOF
2618
 
/* confdefs.h.  */
2619
 
_ACEOF
2620
 
cat confdefs.h >>conftest.$ac_ext
2621
 
cat >>conftest.$ac_ext <<_ACEOF
2622
 
/* end confdefs.h.  */
2623
 
/* Define Tcl_CreateCommand to an innocuous variant, in case <limits.h> declares Tcl_CreateCommand.
2624
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2625
 
#define Tcl_CreateCommand innocuous_Tcl_CreateCommand
2626
 
 
 
1139
  cat > conftest.$ac_ext <<EOF
 
1140
#line 1141 "configure"
 
1141
#include "confdefs.h"
2627
1142
/* System header to define __stub macros and hopefully few prototypes,
2628
 
    which can conflict with char Tcl_CreateCommand (); below.
2629
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2630
 
    <limits.h> exists even on freestanding compilers.  */
2631
 
 
2632
 
#ifdef __STDC__
2633
 
# include <limits.h>
2634
 
#else
2635
 
# include <assert.h>
2636
 
#endif
2637
 
 
2638
 
#undef Tcl_CreateCommand
2639
 
 
 
1143
    which can conflict with char Tcl_CreateCommand(); below.  */
 
1144
#include <assert.h>
2640
1145
/* Override any gcc2 internal prototype to avoid an error.  */
2641
 
#ifdef __cplusplus
2642
 
extern "C"
2643
 
{
2644
 
#endif
2645
1146
/* We use char because int might match the return type of a gcc2
2646
 
   builtin and then its argument prototype would still apply.  */
2647
 
char Tcl_CreateCommand ();
 
1147
    builtin and then its argument prototype would still apply.  */
 
1148
char Tcl_CreateCommand();
 
1149
 
 
1150
int main() {
 
1151
 
2648
1152
/* The GNU C library defines this for functions which it implements
2649
1153
    to always fail with ENOSYS.  Some functions are actually named
2650
1154
    something starting with __ and the normal name is an alias.  */
2651
1155
#if defined (__stub_Tcl_CreateCommand) || defined (__stub___Tcl_CreateCommand)
2652
1156
choke me
2653
1157
#else
2654
 
char (*f) () = Tcl_CreateCommand;
2655
 
#endif
2656
 
#ifdef __cplusplus
2657
 
}
2658
 
#endif
2659
 
 
2660
 
int
2661
 
main ()
2662
 
{
2663
 
return f != Tcl_CreateCommand;
2664
 
  ;
2665
 
  return 0;
2666
 
}
2667
 
_ACEOF
2668
 
rm -f conftest.$ac_objext conftest$ac_exeext
2669
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670
 
  (eval $ac_link) 2>conftest.er1
2671
 
  ac_status=$?
2672
 
  grep -v '^ *+' conftest.er1 >conftest.err
2673
 
  rm -f conftest.er1
2674
 
  cat conftest.err >&5
2675
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676
 
  (exit $ac_status); } &&
2677
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2678
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679
 
  (eval $ac_try) 2>&5
2680
 
  ac_status=$?
2681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682
 
  (exit $ac_status); }; } &&
2683
 
         { ac_try='test -s conftest$ac_exeext'
2684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685
 
  (eval $ac_try) 2>&5
2686
 
  ac_status=$?
2687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
 
  (exit $ac_status); }; }; then
2689
 
  ac_cv_func_Tcl_CreateCommand=yes
2690
 
else
2691
 
  echo "$as_me: failed program was:" >&5
2692
 
sed 's/^/| /' conftest.$ac_ext >&5
2693
 
 
2694
 
ac_cv_func_Tcl_CreateCommand=no
2695
 
fi
2696
 
rm -f conftest.err conftest.$ac_objext \
2697
 
      conftest$ac_exeext conftest.$ac_ext
2698
 
fi
2699
 
echo "$as_me:$LINENO: result: $ac_cv_func_Tcl_CreateCommand" >&5
2700
 
echo "${ECHO_T}$ac_cv_func_Tcl_CreateCommand" >&6
2701
 
if test $ac_cv_func_Tcl_CreateCommand = yes; then
2702
 
 
2703
 
        echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
2704
 
echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
2705
 
        echo "$as_me:$LINENO: result: yes" >&5
2706
 
echo "${ECHO_T}yes" >&6
2707
 
 
2708
 
else
 
1158
Tcl_CreateCommand();
 
1159
#endif
 
1160
 
 
1161
; return 0; }
 
1162
EOF
 
1163
if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1164
  rm -rf conftest*
 
1165
  eval "ac_cv_func_Tcl_CreateCommand=yes"
 
1166
else
 
1167
  echo "configure: failed program was:" >&5
 
1168
  cat conftest.$ac_ext >&5
 
1169
  rm -rf conftest*
 
1170
  eval "ac_cv_func_Tcl_CreateCommand=no"
 
1171
fi
 
1172
rm -f conftest*
 
1173
fi
 
1174
 
 
1175
if eval "test \"`echo '$ac_cv_func_'Tcl_CreateCommand`\" = yes"; then
 
1176
  echo "$ac_t""yes" 1>&6
 
1177
  
 
1178
        echo $ac_n "checking if Tcl library build specification is valid""... $ac_c" 1>&6
 
1179
echo "configure:1180: checking if Tcl library build specification is valid" >&5
 
1180
        echo "$ac_t""yes" 1>&6
 
1181
 
 
1182
else
 
1183
  echo "$ac_t""no" 1>&6
2709
1184
 
2710
1185
        TCL_BUILD_LIB_SPEC=$TCL_LIB_SPEC
2711
1186
        # Can't pull the following CHECKING call out since it will be
2712
1187
        # broken up by the CHECK_FUNC just above.
2713
 
        echo "$as_me:$LINENO: checking if Tcl library build specification is valid" >&5
2714
 
echo $ECHO_N "checking if Tcl library build specification is valid... $ECHO_C" >&6
2715
 
        echo "$as_me:$LINENO: result: no" >&5
2716
 
echo "${ECHO_T}no" >&6
 
1188
        echo $ac_n "checking if Tcl library build specification is valid""... $ac_c" 1>&6
 
1189
echo "configure:1190: checking if Tcl library build specification is valid" >&5
 
1190
        echo "$ac_t""no" 1>&6
2717
1191
 
2718
1192
fi
2719
1193
 
2720
1194
LIBS=$SAVELIBS
2721
1195
 
2722
 
 
2723
 
 
2724
 
 
2725
 
 
 
1196
    
 
1197
    
 
1198
 
 
1199
    
2726
1200
 
2727
1201
 
2728
1202
CC=$TCL_CC
2730
1204
 
2731
1205
#
2732
1206
# Ok, lets find the tk configuration
2733
 
# First, look for one uninstalled.
 
1207
# First, look for one uninstalled.  
2734
1208
# the alternative search directory is invoked by --with-tk
2735
1209
#
2736
1210
 
2737
1211
if test x"${no_tk}" = x ; then
2738
1212
  # we reset no_tk in case something fails here
2739
1213
  no_tk=true
2740
 
 
2741
 
# Check whether --with-tk or --without-tk was given.
 
1214
  # Check whether --with-tk or --without-tk was given.
2742
1215
if test "${with_tk+set}" = set; then
2743
1216
  withval="$with_tk"
2744
1217
  with_tkconfig=${withval}
2745
 
fi;
2746
 
  echo "$as_me:$LINENO: checking for Tk configuration" >&5
2747
 
echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
2748
 
  if test "${ac_cv_c_tkconfig+set}" = set; then
2749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1218
fi
 
1219
 
 
1220
  echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
 
1221
echo "configure:1222: checking for Tk configuration" >&5
 
1222
  if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
 
1223
  echo $ac_n "(cached) $ac_c" 1>&6
2750
1224
else
2751
 
 
 
1225
  
2752
1226
 
2753
1227
  # First check to see if --with-tk was specified.
2754
1228
  if test x"${with_tkconfig}" != x ; then
2755
1229
    if test -f "${with_tkconfig}/tkConfig.sh" ; then
2756
1230
      ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
2757
1231
    else
2758
 
      { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
2759
 
echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
2760
 
   { (exit 1); exit 1; }; }
 
1232
      { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
2761
1233
    fi
2762
1234
  fi
2763
1235
 
2800
1272
      fi
2801
1273
    done
2802
1274
  fi
2803
 
 
 
1275
  
2804
1276
fi
2805
1277
 
2806
1278
  if test x"${ac_cv_c_tkconfig}" = x ; then
2807
1279
    TKCONFIG="# no Tk configs found"
2808
 
    { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
2809
 
echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
 
1280
    echo "configure: warning: Can't find Tk configuration definitions" 1>&2
2810
1281
  else
2811
1282
    no_tk=
2812
1283
    TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
2813
 
    echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
2814
 
echo "${ECHO_T}found $TKCONFIG" >&6
 
1284
    echo "$ac_t""found $TKCONFIG" 1>&6
2815
1285
  fi
2816
1286
fi
2817
1287
 
2821
1291
      . $TKCONFIG
2822
1292
    fi
2823
1293
 
2824
 
 
2825
 
 
2826
 
 
2827
 
 
2828
 
 
2829
 
 
2830
 
 
2831
 
 
2832
 
 
 
1294
    
 
1295
    
 
1296
 
 
1297
    
 
1298
    
 
1299
 
 
1300
 
 
1301
    
 
1302
    
2833
1303
 
2834
1304
# if Tk's build directory has been removed, TK_LIB_SPEC should
2835
1305
# be used instead of TK_BUILD_LIB_SPEC
2836
1306
SAVELIBS=$LIBS
2837
1307
# eval used to expand out TK_DBGX
2838
1308
eval "LIBS=\"$TK_BUILD_LIB_SPEC $TCL_BUILD_LIB_SPEC $TK_LIBS\""
2839
 
echo "$as_me:$LINENO: checking for Tk_Init" >&5
2840
 
echo $ECHO_N "checking for Tk_Init... $ECHO_C" >&6
2841
 
if test "${ac_cv_func_Tk_Init+set}" = set; then
2842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1309
echo $ac_n "checking for Tk_Init""... $ac_c" 1>&6
 
1310
echo "configure:1311: checking for Tk_Init" >&5
 
1311
if eval "test \"`echo '$''{'ac_cv_func_Tk_Init'+set}'`\" = set"; then
 
1312
  echo $ac_n "(cached) $ac_c" 1>&6
2843
1313
else
2844
 
  cat >conftest.$ac_ext <<_ACEOF
2845
 
/* confdefs.h.  */
2846
 
_ACEOF
2847
 
cat confdefs.h >>conftest.$ac_ext
2848
 
cat >>conftest.$ac_ext <<_ACEOF
2849
 
/* end confdefs.h.  */
2850
 
/* Define Tk_Init to an innocuous variant, in case <limits.h> declares Tk_Init.
2851
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2852
 
#define Tk_Init innocuous_Tk_Init
2853
 
 
 
1314
  cat > conftest.$ac_ext <<EOF
 
1315
#line 1316 "configure"
 
1316
#include "confdefs.h"
2854
1317
/* System header to define __stub macros and hopefully few prototypes,
2855
 
    which can conflict with char Tk_Init (); below.
2856
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2857
 
    <limits.h> exists even on freestanding compilers.  */
2858
 
 
2859
 
#ifdef __STDC__
2860
 
# include <limits.h>
2861
 
#else
2862
 
# include <assert.h>
2863
 
#endif
2864
 
 
2865
 
#undef Tk_Init
2866
 
 
 
1318
    which can conflict with char Tk_Init(); below.  */
 
1319
#include <assert.h>
2867
1320
/* Override any gcc2 internal prototype to avoid an error.  */
2868
 
#ifdef __cplusplus
2869
 
extern "C"
2870
 
{
2871
 
#endif
2872
1321
/* We use char because int might match the return type of a gcc2
2873
 
   builtin and then its argument prototype would still apply.  */
2874
 
char Tk_Init ();
 
1322
    builtin and then its argument prototype would still apply.  */
 
1323
char Tk_Init();
 
1324
 
 
1325
int main() {
 
1326
 
2875
1327
/* The GNU C library defines this for functions which it implements
2876
1328
    to always fail with ENOSYS.  Some functions are actually named
2877
1329
    something starting with __ and the normal name is an alias.  */
2878
1330
#if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
2879
1331
choke me
2880
1332
#else
2881
 
char (*f) () = Tk_Init;
2882
 
#endif
2883
 
#ifdef __cplusplus
2884
 
}
2885
 
#endif
2886
 
 
2887
 
int
2888
 
main ()
2889
 
{
2890
 
return f != Tk_Init;
2891
 
  ;
2892
 
  return 0;
2893
 
}
2894
 
_ACEOF
2895
 
rm -f conftest.$ac_objext conftest$ac_exeext
2896
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2897
 
  (eval $ac_link) 2>conftest.er1
2898
 
  ac_status=$?
2899
 
  grep -v '^ *+' conftest.er1 >conftest.err
2900
 
  rm -f conftest.er1
2901
 
  cat conftest.err >&5
2902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903
 
  (exit $ac_status); } &&
2904
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2905
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906
 
  (eval $ac_try) 2>&5
2907
 
  ac_status=$?
2908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909
 
  (exit $ac_status); }; } &&
2910
 
         { ac_try='test -s conftest$ac_exeext'
2911
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912
 
  (eval $ac_try) 2>&5
2913
 
  ac_status=$?
2914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915
 
  (exit $ac_status); }; }; then
2916
 
  ac_cv_func_Tk_Init=yes
2917
 
else
2918
 
  echo "$as_me: failed program was:" >&5
2919
 
sed 's/^/| /' conftest.$ac_ext >&5
2920
 
 
2921
 
ac_cv_func_Tk_Init=no
2922
 
fi
2923
 
rm -f conftest.err conftest.$ac_objext \
2924
 
      conftest$ac_exeext conftest.$ac_ext
2925
 
fi
2926
 
echo "$as_me:$LINENO: result: $ac_cv_func_Tk_Init" >&5
2927
 
echo "${ECHO_T}$ac_cv_func_Tk_Init" >&6
2928
 
if test $ac_cv_func_Tk_Init = yes; then
2929
 
 
2930
 
        echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
2931
 
echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
2932
 
        echo "$as_me:$LINENO: result: yes" >&5
2933
 
echo "${ECHO_T}yes" >&6
2934
 
 
2935
 
else
 
1333
Tk_Init();
 
1334
#endif
 
1335
 
 
1336
; return 0; }
 
1337
EOF
 
1338
if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1339
  rm -rf conftest*
 
1340
  eval "ac_cv_func_Tk_Init=yes"
 
1341
else
 
1342
  echo "configure: failed program was:" >&5
 
1343
  cat conftest.$ac_ext >&5
 
1344
  rm -rf conftest*
 
1345
  eval "ac_cv_func_Tk_Init=no"
 
1346
fi
 
1347
rm -f conftest*
 
1348
fi
 
1349
 
 
1350
if eval "test \"`echo '$ac_cv_func_'Tk_Init`\" = yes"; then
 
1351
  echo "$ac_t""yes" 1>&6
 
1352
  
 
1353
        echo $ac_n "checking if Tk library build specification is valid""... $ac_c" 1>&6
 
1354
echo "configure:1355: checking if Tk library build specification is valid" >&5
 
1355
        echo "$ac_t""yes" 1>&6
 
1356
 
 
1357
else
 
1358
  echo "$ac_t""no" 1>&6
2936
1359
 
2937
1360
        TK_BUILD_LIB_SPEC=$TK_LIB_SPEC
2938
1361
        # Can't pull the following CHECKING call out since it will be
2939
1362
        # broken up by the CHECK_FUNC just above.
2940
 
        echo "$as_me:$LINENO: checking if Tk library build specification is valid" >&5
2941
 
echo $ECHO_N "checking if Tk library build specification is valid... $ECHO_C" >&6
2942
 
        echo "$as_me:$LINENO: result: no" >&5
2943
 
echo "${ECHO_T}no" >&6
 
1363
        echo $ac_n "checking if Tk library build specification is valid""... $ac_c" 1>&6
 
1364
echo "configure:1365: checking if Tk library build specification is valid" >&5
 
1365
        echo "$ac_t""no" 1>&6
2944
1366
 
2945
1367
fi
2946
1368
 
2947
1369
LIBS=$SAVELIBS
2948
1370
 
2949
 
 
2950
 
 
 
1371
    
 
1372
    
2951
1373
 
2952
1374
EXP_AND_TK_LIBS=$TK_LIBS
2953
1375
 
2954
1376
 
2955
1377
# If we cannot compile and link a trivial program, we can't expect anything to work
2956
 
echo "$as_me:$LINENO: checking whether the compiler ($CC) actually works" >&5
2957
 
echo $ECHO_N "checking whether the compiler ($CC) actually works... $ECHO_C" >&6
2958
 
cat >conftest.$ac_ext <<_ACEOF
2959
 
/* confdefs.h.  */
2960
 
_ACEOF
2961
 
cat confdefs.h >>conftest.$ac_ext
2962
 
cat >>conftest.$ac_ext <<_ACEOF
2963
 
/* end confdefs.h.  */
 
1378
echo $ac_n "checking whether the compiler ($CC) actually works""... $ac_c" 1>&6
 
1379
echo "configure:1380: checking whether the compiler ($CC) actually works" >&5
 
1380
cat > conftest.$ac_ext <<EOF
 
1381
#line 1382 "configure"
 
1382
#include "confdefs.h"
2964
1383
 
2965
 
int
2966
 
main ()
2967
 
{
 
1384
int main() {
2968
1385
/* don't need anything here */
2969
 
  ;
2970
 
  return 0;
2971
 
}
2972
 
_ACEOF
2973
 
rm -f conftest.$ac_objext
2974
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975
 
  (eval $ac_compile) 2>conftest.er1
2976
 
  ac_status=$?
2977
 
  grep -v '^ *+' conftest.er1 >conftest.err
2978
 
  rm -f conftest.er1
2979
 
  cat conftest.err >&5
2980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
 
  (exit $ac_status); } &&
2982
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2983
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984
 
  (eval $ac_try) 2>&5
2985
 
  ac_status=$?
2986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987
 
  (exit $ac_status); }; } &&
2988
 
         { ac_try='test -s conftest.$ac_objext'
2989
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990
 
  (eval $ac_try) 2>&5
2991
 
  ac_status=$?
2992
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993
 
  (exit $ac_status); }; }; then
 
1386
; return 0; }
 
1387
EOF
 
1388
if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1389
  rm -rf conftest*
2994
1390
  c_compiles=yes
2995
1391
else
2996
 
  echo "$as_me: failed program was:" >&5
2997
 
sed 's/^/| /' conftest.$ac_ext >&5
2998
 
 
2999
 
c_compiles=no
 
1392
  echo "configure: failed program was:" >&5
 
1393
  cat conftest.$ac_ext >&5
 
1394
  rm -rf conftest*
 
1395
  c_compiles=no
3000
1396
fi
3001
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002
 
 
3003
 
cat >conftest.$ac_ext <<_ACEOF
3004
 
/* confdefs.h.  */
3005
 
_ACEOF
3006
 
cat confdefs.h >>conftest.$ac_ext
3007
 
cat >>conftest.$ac_ext <<_ACEOF
3008
 
/* end confdefs.h.  */
3009
 
 
3010
 
int
3011
 
main ()
3012
 
{
 
1397
rm -f conftest*
 
1398
 
 
1399
cat > conftest.$ac_ext <<EOF
 
1400
#line 1401 "configure"
 
1401
#include "confdefs.h"
 
1402
 
 
1403
int main() {
3013
1404
/* don't need anything here */
3014
 
  ;
3015
 
  return 0;
3016
 
}
3017
 
_ACEOF
3018
 
rm -f conftest.$ac_objext conftest$ac_exeext
3019
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020
 
  (eval $ac_link) 2>conftest.er1
3021
 
  ac_status=$?
3022
 
  grep -v '^ *+' conftest.er1 >conftest.err
3023
 
  rm -f conftest.er1
3024
 
  cat conftest.err >&5
3025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
 
  (exit $ac_status); } &&
3027
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3028
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029
 
  (eval $ac_try) 2>&5
3030
 
  ac_status=$?
3031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
 
  (exit $ac_status); }; } &&
3033
 
         { ac_try='test -s conftest$ac_exeext'
3034
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035
 
  (eval $ac_try) 2>&5
3036
 
  ac_status=$?
3037
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038
 
  (exit $ac_status); }; }; then
 
1405
; return 0; }
 
1406
EOF
 
1407
if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1408
  rm -rf conftest*
3039
1409
  c_links=yes
3040
1410
else
3041
 
  echo "$as_me: failed program was:" >&5
3042
 
sed 's/^/| /' conftest.$ac_ext >&5
3043
 
 
3044
 
c_links=no
 
1411
  echo "configure: failed program was:" >&5
 
1412
  cat conftest.$ac_ext >&5
 
1413
  rm -rf conftest*
 
1414
  c_links=no
3045
1415
fi
3046
 
rm -f conftest.err conftest.$ac_objext \
3047
 
      conftest$ac_exeext conftest.$ac_ext
 
1416
rm -f conftest*
3048
1417
 
3049
1418
if test x"${c_compiles}" = x"no" ; then
3050
 
  { { echo "$as_me:$LINENO: error: the native compiler is broken and won't compile." >&5
3051
 
echo "$as_me: error: the native compiler is broken and won't compile." >&2;}
3052
 
   { (exit 1); exit 1; }; }
 
1419
  { echo "configure: error: the native compiler is broken and won't compile." 1>&2; exit 1; }
3053
1420
fi
3054
1421
 
3055
1422
if test x"${c_links}" = x"no" ; then
3056
 
  { { echo "$as_me:$LINENO: error: the native compiler is broken and won't link." >&5
3057
 
echo "$as_me: error: the native compiler is broken and won't link." >&2;}
3058
 
   { (exit 1); exit 1; }; }
 
1423
  { echo "configure: error: the native compiler is broken and won't link." 1>&2; exit 1; }
3059
1424
fi
3060
 
echo "$as_me:$LINENO: result: yes" >&5
3061
 
echo "${ECHO_T}yes" >&6
 
1425
echo "$ac_t""yes" 1>&6
3062
1426
 
3063
1427
 
3064
1428
# this'll use a BSD compatible install or our included install-sh
3069
1433
# SunOS /usr/etc/install
3070
1434
# IRIX /sbin/install
3071
1435
# AIX /bin/install
3072
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3073
1436
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3074
1437
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3075
1438
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3076
 
# OS/2's system install, which has a completely different semantic
3077
1439
# ./install, which can be erroneously created by make from ./install.sh.
3078
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3079
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1440
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
1441
echo "configure:1442: checking for a BSD compatible install" >&5
3080
1442
if test -z "$INSTALL"; then
3081
 
if test "${ac_cv_path_install+set}" = set; then
3082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1443
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
1444
  echo $ac_n "(cached) $ac_c" 1>&6
3083
1445
else
3084
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085
 
for as_dir in $PATH
3086
 
do
3087
 
  IFS=$as_save_IFS
3088
 
  test -z "$as_dir" && as_dir=.
3089
 
  # Account for people who put trailing slashes in PATH elements.
3090
 
case $as_dir/ in
3091
 
  ./ | .// | /cC/* | \
3092
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3093
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3094
 
  /usr/ucb/* ) ;;
3095
 
  *)
3096
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3097
 
    # Don't use installbsd from OSF since it installs stuff as root
3098
 
    # by default.
3099
 
    for ac_prog in ginstall scoinst install; do
3100
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3101
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1446
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
1447
  for ac_dir in $PATH; do
 
1448
    # Account for people who put trailing slashes in PATH elements.
 
1449
    case "$ac_dir/" in
 
1450
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
1451
    *)
 
1452
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
1453
      # Don't use installbsd from OSF since it installs stuff as root
 
1454
      # by default.
 
1455
      for ac_prog in ginstall scoinst install; do
 
1456
        if test -f $ac_dir/$ac_prog; then
3102
1457
          if test $ac_prog = install &&
3103
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1458
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3104
1459
            # AIX install.  It has an incompatible calling convention.
3105
1460
            :
3106
 
          elif test $ac_prog = install &&
3107
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108
 
            # program-specific install script used by HP pwplus--don't use.
3109
 
            :
3110
1461
          else
3111
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3112
 
            break 3
 
1462
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
1463
            break 2
3113
1464
          fi
3114
1465
        fi
3115
1466
      done
3116
 
    done
3117
 
    ;;
3118
 
esac
3119
 
done
3120
 
 
 
1467
      ;;
 
1468
    esac
 
1469
  done
 
1470
  IFS="$ac_save_IFS"
3121
1471
 
3122
1472
fi
3123
1473
  if test "${ac_cv_path_install+set}" = set; then
3124
 
    INSTALL=$ac_cv_path_install
 
1474
    INSTALL="$ac_cv_path_install"
3125
1475
  else
3126
1476
    # As a last resort, use the slow shell script.  We don't cache a
3127
1477
    # path for INSTALL within a source directory, because that will
3128
1478
    # break other packages using the cache if that directory is
3129
1479
    # removed, or if the path is relative.
3130
 
    INSTALL=$ac_install_sh
 
1480
    INSTALL="$ac_install_sh"
3131
1481
  fi
3132
1482
fi
3133
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
3134
 
echo "${ECHO_T}$INSTALL" >&6
 
1483
echo "$ac_t""$INSTALL" 1>&6
3135
1484
 
3136
1485
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3137
1486
# It thinks the first close brace ends the variable substitution.
3138
1487
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3139
1488
 
3140
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1489
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3141
1490
 
3142
1491
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3143
1492
 
3144
1493
 
3145
1494
# Tcl sets TCL_RANLIB appropriately for shared library if --enable-shared
3146
 
if test -n "$ac_tool_prefix"; then
3147
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3148
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3149
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3150
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3151
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
3152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1495
# Extract the first word of "ranlib", so it can be a program name with args.
 
1496
set dummy ranlib; ac_word=$2
 
1497
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1498
echo "configure:1499: checking for $ac_word" >&5
 
1499
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
1500
  echo $ac_n "(cached) $ac_c" 1>&6
3153
1501
else
3154
1502
  if test -n "$RANLIB"; then
3155
1503
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3156
1504
else
3157
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158
 
for as_dir in $PATH
3159
 
do
3160
 
  IFS=$as_save_IFS
3161
 
  test -z "$as_dir" && as_dir=.
3162
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3163
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3165
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166
 
    break 2
3167
 
  fi
3168
 
done
3169
 
done
3170
 
 
3171
 
fi
3172
 
fi
3173
 
RANLIB=$ac_cv_prog_RANLIB
 
1505
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1506
  ac_dummy="$PATH"
 
1507
  for ac_dir in $ac_dummy; do
 
1508
    test -z "$ac_dir" && ac_dir=.
 
1509
    if test -f $ac_dir/$ac_word; then
 
1510
      ac_cv_prog_RANLIB="ranlib"
 
1511
      break
 
1512
    fi
 
1513
  done
 
1514
  IFS="$ac_save_ifs"
 
1515
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
1516
fi
 
1517
fi
 
1518
RANLIB="$ac_cv_prog_RANLIB"
3174
1519
if test -n "$RANLIB"; then
3175
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3176
 
echo "${ECHO_T}$RANLIB" >&6
3177
 
else
3178
 
  echo "$as_me:$LINENO: result: no" >&5
3179
 
echo "${ECHO_T}no" >&6
3180
 
fi
3181
 
 
3182
 
fi
3183
 
if test -z "$ac_cv_prog_RANLIB"; then
3184
 
  ac_ct_RANLIB=$RANLIB
3185
 
  # Extract the first word of "ranlib", so it can be a program name with args.
3186
 
set dummy ranlib; ac_word=$2
3187
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3188
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3190
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3191
 
else
3192
 
  if test -n "$ac_ct_RANLIB"; then
3193
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3194
 
else
3195
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196
 
for as_dir in $PATH
3197
 
do
3198
 
  IFS=$as_save_IFS
3199
 
  test -z "$as_dir" && as_dir=.
3200
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3201
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3203
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204
 
    break 2
3205
 
  fi
3206
 
done
3207
 
done
3208
 
 
3209
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3210
 
fi
3211
 
fi
3212
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3213
 
if test -n "$ac_ct_RANLIB"; then
3214
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3215
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3216
 
else
3217
 
  echo "$as_me:$LINENO: result: no" >&5
3218
 
echo "${ECHO_T}no" >&6
3219
 
fi
3220
 
 
3221
 
  RANLIB=$ac_ct_RANLIB
3222
 
else
3223
 
  RANLIB="$ac_cv_prog_RANLIB"
 
1520
  echo "$ac_t""$RANLIB" 1>&6
 
1521
else
 
1522
  echo "$ac_t""no" 1>&6
3224
1523
fi
3225
1524
 
3226
1525
UNSHARED_RANLIB=$RANLIB
3227
1526
 
3228
1527
# these are the other subdirectories we need to configure
3229
 
 
3230
 
 
3231
 
subdirs="$subdirs testsuite"
 
1528
subdirs="testsuite"
3232
1529
 
3233
1530
 
3234
1531
# This is for LynxOS, which needs a flag to force true POSIX when
3237
1534
# -mposix is for the new gcc (at least 2.5.8)
3238
1535
# This modifies the value of $CC to have the POSIX flag added
3239
1536
# so it'll configure correctly
3240
 
ac_ext=c
3241
 
ac_cpp='$CPP $CPPFLAGS'
3242
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3246
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
1537
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1538
echo "configure:1539: checking how to run the C preprocessor" >&5
3247
1539
# On Suns, sometimes $CPP names a directory.
3248
1540
if test -n "$CPP" && test -d "$CPP"; then
3249
1541
  CPP=
3250
1542
fi
3251
1543
if test -z "$CPP"; then
3252
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3254
 
else
3255
 
      # Double quotes because CPP needs to be expanded
3256
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3257
 
    do
3258
 
      ac_preproc_ok=false
3259
 
for ac_c_preproc_warn_flag in '' yes
3260
 
do
3261
 
  # Use a header file that comes with gcc, so configuring glibc
3262
 
  # with a fresh cross-compiler works.
3263
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264
 
  # <limits.h> exists even on freestanding compilers.
3265
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3266
 
  # not just through cpp. "Syntax error" is here to catch this case.
3267
 
  cat >conftest.$ac_ext <<_ACEOF
3268
 
/* confdefs.h.  */
3269
 
_ACEOF
3270
 
cat confdefs.h >>conftest.$ac_ext
3271
 
cat >>conftest.$ac_ext <<_ACEOF
3272
 
/* end confdefs.h.  */
3273
 
#ifdef __STDC__
3274
 
# include <limits.h>
3275
 
#else
3276
 
# include <assert.h>
3277
 
#endif
3278
 
                     Syntax error
3279
 
_ACEOF
3280
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282
 
  ac_status=$?
3283
 
  grep -v '^ *+' conftest.er1 >conftest.err
3284
 
  rm -f conftest.er1
3285
 
  cat conftest.err >&5
3286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287
 
  (exit $ac_status); } >/dev/null; then
3288
 
  if test -s conftest.err; then
3289
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3290
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291
 
  else
3292
 
    ac_cpp_err=
3293
 
  fi
3294
 
else
3295
 
  ac_cpp_err=yes
3296
 
fi
3297
 
if test -z "$ac_cpp_err"; then
3298
 
  :
3299
 
else
3300
 
  echo "$as_me: failed program was:" >&5
3301
 
sed 's/^/| /' conftest.$ac_ext >&5
3302
 
 
3303
 
  # Broken: fails on valid input.
3304
 
continue
3305
 
fi
3306
 
rm -f conftest.err conftest.$ac_ext
3307
 
 
3308
 
  # OK, works on sane cases.  Now check whether non-existent headers
3309
 
  # can be detected and how.
3310
 
  cat >conftest.$ac_ext <<_ACEOF
3311
 
/* confdefs.h.  */
3312
 
_ACEOF
3313
 
cat confdefs.h >>conftest.$ac_ext
3314
 
cat >>conftest.$ac_ext <<_ACEOF
3315
 
/* end confdefs.h.  */
3316
 
#include <ac_nonexistent.h>
3317
 
_ACEOF
3318
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320
 
  ac_status=$?
3321
 
  grep -v '^ *+' conftest.er1 >conftest.err
3322
 
  rm -f conftest.er1
3323
 
  cat conftest.err >&5
3324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325
 
  (exit $ac_status); } >/dev/null; then
3326
 
  if test -s conftest.err; then
3327
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3328
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329
 
  else
3330
 
    ac_cpp_err=
3331
 
  fi
3332
 
else
3333
 
  ac_cpp_err=yes
3334
 
fi
3335
 
if test -z "$ac_cpp_err"; then
3336
 
  # Broken: success on invalid input.
3337
 
continue
3338
 
else
3339
 
  echo "$as_me: failed program was:" >&5
3340
 
sed 's/^/| /' conftest.$ac_ext >&5
3341
 
 
3342
 
  # Passes both tests.
3343
 
ac_preproc_ok=:
3344
 
break
3345
 
fi
3346
 
rm -f conftest.err conftest.$ac_ext
3347
 
 
3348
 
done
3349
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350
 
rm -f conftest.err conftest.$ac_ext
3351
 
if $ac_preproc_ok; then
3352
 
  break
3353
 
fi
3354
 
 
3355
 
    done
3356
 
    ac_cv_prog_CPP=$CPP
3357
 
 
3358
 
fi
3359
 
  CPP=$ac_cv_prog_CPP
3360
 
else
3361
 
  ac_cv_prog_CPP=$CPP
3362
 
fi
3363
 
echo "$as_me:$LINENO: result: $CPP" >&5
3364
 
echo "${ECHO_T}$CPP" >&6
3365
 
ac_preproc_ok=false
3366
 
for ac_c_preproc_warn_flag in '' yes
3367
 
do
3368
 
  # Use a header file that comes with gcc, so configuring glibc
3369
 
  # with a fresh cross-compiler works.
3370
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371
 
  # <limits.h> exists even on freestanding compilers.
3372
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3373
 
  # not just through cpp. "Syntax error" is here to catch this case.
3374
 
  cat >conftest.$ac_ext <<_ACEOF
3375
 
/* confdefs.h.  */
3376
 
_ACEOF
3377
 
cat confdefs.h >>conftest.$ac_ext
3378
 
cat >>conftest.$ac_ext <<_ACEOF
3379
 
/* end confdefs.h.  */
3380
 
#ifdef __STDC__
3381
 
# include <limits.h>
3382
 
#else
3383
 
# include <assert.h>
3384
 
#endif
3385
 
                     Syntax error
3386
 
_ACEOF
3387
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389
 
  ac_status=$?
3390
 
  grep -v '^ *+' conftest.er1 >conftest.err
3391
 
  rm -f conftest.er1
3392
 
  cat conftest.err >&5
3393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394
 
  (exit $ac_status); } >/dev/null; then
3395
 
  if test -s conftest.err; then
3396
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3397
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398
 
  else
3399
 
    ac_cpp_err=
3400
 
  fi
3401
 
else
3402
 
  ac_cpp_err=yes
3403
 
fi
3404
 
if test -z "$ac_cpp_err"; then
3405
 
  :
3406
 
else
3407
 
  echo "$as_me: failed program was:" >&5
3408
 
sed 's/^/| /' conftest.$ac_ext >&5
3409
 
 
3410
 
  # Broken: fails on valid input.
3411
 
continue
3412
 
fi
3413
 
rm -f conftest.err conftest.$ac_ext
3414
 
 
3415
 
  # OK, works on sane cases.  Now check whether non-existent headers
3416
 
  # can be detected and how.
3417
 
  cat >conftest.$ac_ext <<_ACEOF
3418
 
/* confdefs.h.  */
3419
 
_ACEOF
3420
 
cat confdefs.h >>conftest.$ac_ext
3421
 
cat >>conftest.$ac_ext <<_ACEOF
3422
 
/* end confdefs.h.  */
3423
 
#include <ac_nonexistent.h>
3424
 
_ACEOF
3425
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427
 
  ac_status=$?
3428
 
  grep -v '^ *+' conftest.er1 >conftest.err
3429
 
  rm -f conftest.er1
3430
 
  cat conftest.err >&5
3431
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432
 
  (exit $ac_status); } >/dev/null; then
3433
 
  if test -s conftest.err; then
3434
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3435
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436
 
  else
3437
 
    ac_cpp_err=
3438
 
  fi
3439
 
else
3440
 
  ac_cpp_err=yes
3441
 
fi
3442
 
if test -z "$ac_cpp_err"; then
3443
 
  # Broken: success on invalid input.
3444
 
continue
3445
 
else
3446
 
  echo "$as_me: failed program was:" >&5
3447
 
sed 's/^/| /' conftest.$ac_ext >&5
3448
 
 
3449
 
  # Passes both tests.
3450
 
ac_preproc_ok=:
3451
 
break
3452
 
fi
3453
 
rm -f conftest.err conftest.$ac_ext
3454
 
 
3455
 
done
3456
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457
 
rm -f conftest.err conftest.$ac_ext
3458
 
if $ac_preproc_ok; then
3459
 
  :
3460
 
else
3461
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3462
 
See \`config.log' for more details." >&5
3463
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3464
 
See \`config.log' for more details." >&2;}
3465
 
   { (exit 1); exit 1; }; }
3466
 
fi
3467
 
 
3468
 
ac_ext=c
3469
 
ac_cpp='$CPP $CPPFLAGS'
3470
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473
 
 
3474
 
 
3475
 
echo "$as_me:$LINENO: checking for egrep" >&5
3476
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3477
 
if test "${ac_cv_prog_egrep+set}" = set; then
3478
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3479
 
else
3480
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3481
 
    then ac_cv_prog_egrep='grep -E'
3482
 
    else ac_cv_prog_egrep='egrep'
3483
 
    fi
3484
 
fi
3485
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3486
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3487
 
 EGREP=$ac_cv_prog_egrep
3488
 
 
3489
 
 
3490
 
 
3491
 
echo "$as_me:$LINENO: checking if running LynxOS" >&5
3492
 
echo $ECHO_N "checking if running LynxOS... $ECHO_C" >&6
3493
 
if test "${ac_cv_os_lynx+set}" = set; then
3494
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3495
 
else
3496
 
  cat >conftest.$ac_ext <<_ACEOF
3497
 
/* confdefs.h.  */
3498
 
_ACEOF
3499
 
cat confdefs.h >>conftest.$ac_ext
3500
 
cat >>conftest.$ac_ext <<_ACEOF
3501
 
/* end confdefs.h.  */
 
1544
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1545
  echo $ac_n "(cached) $ac_c" 1>&6
 
1546
else
 
1547
    # This must be in double quotes, not single quotes, because CPP may get
 
1548
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1549
  CPP="${CC-cc} -E"
 
1550
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
1551
  # not just through cpp.
 
1552
  cat > conftest.$ac_ext <<EOF
 
1553
#line 1554 "configure"
 
1554
#include "confdefs.h"
 
1555
#include <assert.h>
 
1556
Syntax Error
 
1557
EOF
 
1558
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1559
{ (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1560
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1561
if test -z "$ac_err"; then
 
1562
  :
 
1563
else
 
1564
  echo "$ac_err" >&5
 
1565
  echo "configure: failed program was:" >&5
 
1566
  cat conftest.$ac_ext >&5
 
1567
  rm -rf conftest*
 
1568
  CPP="${CC-cc} -E -traditional-cpp"
 
1569
  cat > conftest.$ac_ext <<EOF
 
1570
#line 1571 "configure"
 
1571
#include "confdefs.h"
 
1572
#include <assert.h>
 
1573
Syntax Error
 
1574
EOF
 
1575
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1576
{ (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1577
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1578
if test -z "$ac_err"; then
 
1579
  :
 
1580
else
 
1581
  echo "$ac_err" >&5
 
1582
  echo "configure: failed program was:" >&5
 
1583
  cat conftest.$ac_ext >&5
 
1584
  rm -rf conftest*
 
1585
  CPP="${CC-cc} -nologo -E"
 
1586
  cat > conftest.$ac_ext <<EOF
 
1587
#line 1588 "configure"
 
1588
#include "confdefs.h"
 
1589
#include <assert.h>
 
1590
Syntax Error
 
1591
EOF
 
1592
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1593
{ (eval echo configure:1594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1594
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1595
if test -z "$ac_err"; then
 
1596
  :
 
1597
else
 
1598
  echo "$ac_err" >&5
 
1599
  echo "configure: failed program was:" >&5
 
1600
  cat conftest.$ac_ext >&5
 
1601
  rm -rf conftest*
 
1602
  CPP=/lib/cpp
 
1603
fi
 
1604
rm -f conftest*
 
1605
fi
 
1606
rm -f conftest*
 
1607
fi
 
1608
rm -f conftest*
 
1609
  ac_cv_prog_CPP="$CPP"
 
1610
fi
 
1611
  CPP="$ac_cv_prog_CPP"
 
1612
else
 
1613
  ac_cv_prog_CPP="$CPP"
 
1614
fi
 
1615
echo "$ac_t""$CPP" 1>&6
 
1616
 
 
1617
 
 
1618
echo $ac_n "checking if running LynxOS""... $ac_c" 1>&6
 
1619
echo "configure:1620: checking if running LynxOS" >&5
 
1620
if eval "test \"`echo '$''{'ac_cv_os_lynx'+set}'`\" = set"; then
 
1621
  echo $ac_n "(cached) $ac_c" 1>&6
 
1622
else
 
1623
  cat > conftest.$ac_ext <<EOF
 
1624
#line 1625 "configure"
 
1625
#include "confdefs.h"
3502
1626
/*
3503
1627
 * The old Lynx "cc" only defines "Lynx", but the newer one uses "__Lynx__"
3504
1628
 */
3506
1630
yes
3507
1631
#endif
3508
1632
 
3509
 
_ACEOF
 
1633
EOF
3510
1634
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511
 
  $EGREP "yes" >/dev/null 2>&1; then
 
1635
  egrep "yes" >/dev/null 2>&1; then
 
1636
  rm -rf conftest*
3512
1637
  ac_cv_os_lynx=yes
3513
1638
else
 
1639
  rm -rf conftest*
3514
1640
  ac_cv_os_lynx=no
3515
1641
fi
3516
1642
rm -f conftest*
3519
1645
 
3520
1646
#
3521
1647
if test "$ac_cv_os_lynx" = "yes" ; then
3522
 
  echo "$as_me:$LINENO: result: yes" >&5
3523
 
echo "${ECHO_T}yes" >&6
3524
 
  cat >>confdefs.h <<\_ACEOF
 
1648
  echo "$ac_t""yes" 1>&6
 
1649
  cat >> confdefs.h <<\EOF
3525
1650
#define LYNX 1
3526
 
_ACEOF
 
1651
EOF
3527
1652
 
3528
 
  echo "$as_me:$LINENO: checking whether -mposix or -X is available" >&5
3529
 
echo $ECHO_N "checking whether -mposix or -X is available... $ECHO_C" >&6
3530
 
  if test "${ac_cv_c_posix_flag+set}" = set; then
3531
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1653
  echo $ac_n "checking whether -mposix or -X is available""... $ac_c" 1>&6
 
1654
echo "configure:1655: checking whether -mposix or -X is available" >&5
 
1655
  if eval "test \"`echo '$''{'ac_cv_c_posix_flag'+set}'`\" = set"; then
 
1656
  echo $ac_n "(cached) $ac_c" 1>&6
3532
1657
else
3533
 
  cat >conftest.$ac_ext <<_ACEOF
3534
 
/* confdefs.h.  */
3535
 
_ACEOF
3536
 
cat confdefs.h >>conftest.$ac_ext
3537
 
cat >>conftest.$ac_ext <<_ACEOF
3538
 
/* end confdefs.h.  */
 
1658
  cat > conftest.$ac_ext <<EOF
 
1659
#line 1660 "configure"
 
1660
#include "confdefs.h"
3539
1661
 
3540
 
int
3541
 
main ()
3542
 
{
 
1662
int main() {
3543
1663
 
3544
1664
  /*
3545
1665
   * This flag varies depending on how old the compiler is.
3549
1669
  #if defined(__GNUC__) && __GNUC__ >= 2
3550
1670
  choke me
3551
1671
  #endif
3552
 
 
3553
 
  ;
3554
 
  return 0;
3555
 
}
3556
 
_ACEOF
3557
 
rm -f conftest.$ac_objext
3558
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559
 
  (eval $ac_compile) 2>conftest.er1
3560
 
  ac_status=$?
3561
 
  grep -v '^ *+' conftest.er1 >conftest.err
3562
 
  rm -f conftest.er1
3563
 
  cat conftest.err >&5
3564
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565
 
  (exit $ac_status); } &&
3566
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3567
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568
 
  (eval $ac_try) 2>&5
3569
 
  ac_status=$?
3570
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571
 
  (exit $ac_status); }; } &&
3572
 
         { ac_try='test -s conftest.$ac_objext'
3573
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574
 
  (eval $ac_try) 2>&5
3575
 
  ac_status=$?
3576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
 
  (exit $ac_status); }; }; then
 
1672
  
 
1673
; return 0; }
 
1674
EOF
 
1675
if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1676
  rm -rf conftest*
3578
1677
  ac_cv_c_posix_flag=" -mposix"
3579
1678
else
3580
 
  echo "$as_me: failed program was:" >&5
3581
 
sed 's/^/| /' conftest.$ac_ext >&5
3582
 
 
3583
 
ac_cv_c_posix_flag=" -X"
 
1679
  echo "configure: failed program was:" >&5
 
1680
  cat conftest.$ac_ext >&5
 
1681
  rm -rf conftest*
 
1682
  ac_cv_c_posix_flag=" -X"
3584
1683
fi
3585
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1684
rm -f conftest*
3586
1685
fi
3587
1686
 
3588
1687
  CC="$CC $ac_cv_c_posix_flag"
3589
 
  echo "$as_me:$LINENO: result: $ac_cv_c_posix_flag" >&5
3590
 
echo "${ECHO_T}$ac_cv_c_posix_flag" >&6
 
1688
  echo "$ac_t""$ac_cv_c_posix_flag" 1>&6
3591
1689
  else
3592
 
  echo "$as_me:$LINENO: result: no" >&5
3593
 
echo "${ECHO_T}no" >&6
 
1690
  echo "$ac_t""no" 1>&6
3594
1691
fi
3595
1692
 
3596
1693
 
3597
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3598
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3599
 
if test "${ac_cv_header_stdc+set}" = set; then
3600
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1694
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
 
1695
echo "configure:1696: checking for ANSI C header files" >&5
 
1696
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
 
1697
  echo $ac_n "(cached) $ac_c" 1>&6
3601
1698
else
3602
 
  cat >conftest.$ac_ext <<_ACEOF
3603
 
/* confdefs.h.  */
3604
 
_ACEOF
3605
 
cat confdefs.h >>conftest.$ac_ext
3606
 
cat >>conftest.$ac_ext <<_ACEOF
3607
 
/* end confdefs.h.  */
 
1699
  cat > conftest.$ac_ext <<EOF
 
1700
#line 1701 "configure"
 
1701
#include "confdefs.h"
3608
1702
#include <stdlib.h>
3609
1703
#include <stdarg.h>
3610
1704
#include <string.h>
3611
1705
#include <float.h>
3612
 
 
3613
 
int
3614
 
main ()
3615
 
{
3616
 
 
3617
 
  ;
3618
 
  return 0;
3619
 
}
3620
 
_ACEOF
3621
 
rm -f conftest.$ac_objext
3622
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623
 
  (eval $ac_compile) 2>conftest.er1
3624
 
  ac_status=$?
3625
 
  grep -v '^ *+' conftest.er1 >conftest.err
3626
 
  rm -f conftest.er1
3627
 
  cat conftest.err >&5
3628
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629
 
  (exit $ac_status); } &&
3630
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3631
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632
 
  (eval $ac_try) 2>&5
3633
 
  ac_status=$?
3634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635
 
  (exit $ac_status); }; } &&
3636
 
         { ac_try='test -s conftest.$ac_objext'
3637
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638
 
  (eval $ac_try) 2>&5
3639
 
  ac_status=$?
3640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
 
  (exit $ac_status); }; }; then
 
1706
EOF
 
1707
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1708
{ (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1709
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1710
if test -z "$ac_err"; then
 
1711
  rm -rf conftest*
3642
1712
  ac_cv_header_stdc=yes
3643
1713
else
3644
 
  echo "$as_me: failed program was:" >&5
3645
 
sed 's/^/| /' conftest.$ac_ext >&5
3646
 
 
3647
 
ac_cv_header_stdc=no
 
1714
  echo "$ac_err" >&5
 
1715
  echo "configure: failed program was:" >&5
 
1716
  cat conftest.$ac_ext >&5
 
1717
  rm -rf conftest*
 
1718
  ac_cv_header_stdc=no
3648
1719
fi
3649
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
1720
rm -f conftest*
3650
1721
 
3651
1722
if test $ac_cv_header_stdc = yes; then
3652
1723
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3653
 
  cat >conftest.$ac_ext <<_ACEOF
3654
 
/* confdefs.h.  */
3655
 
_ACEOF
3656
 
cat confdefs.h >>conftest.$ac_ext
3657
 
cat >>conftest.$ac_ext <<_ACEOF
3658
 
/* end confdefs.h.  */
 
1724
cat > conftest.$ac_ext <<EOF
 
1725
#line 1726 "configure"
 
1726
#include "confdefs.h"
3659
1727
#include <string.h>
3660
 
 
3661
 
_ACEOF
 
1728
EOF
3662
1729
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663
 
  $EGREP "memchr" >/dev/null 2>&1; then
 
1730
  egrep "memchr" >/dev/null 2>&1; then
3664
1731
  :
3665
1732
else
 
1733
  rm -rf conftest*
3666
1734
  ac_cv_header_stdc=no
3667
1735
fi
3668
1736
rm -f conftest*
3671
1739
 
3672
1740
if test $ac_cv_header_stdc = yes; then
3673
1741
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3674
 
  cat >conftest.$ac_ext <<_ACEOF
3675
 
/* confdefs.h.  */
3676
 
_ACEOF
3677
 
cat confdefs.h >>conftest.$ac_ext
3678
 
cat >>conftest.$ac_ext <<_ACEOF
3679
 
/* end confdefs.h.  */
 
1742
cat > conftest.$ac_ext <<EOF
 
1743
#line 1744 "configure"
 
1744
#include "confdefs.h"
3680
1745
#include <stdlib.h>
3681
 
 
3682
 
_ACEOF
 
1746
EOF
3683
1747
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684
 
  $EGREP "free" >/dev/null 2>&1; then
 
1748
  egrep "free" >/dev/null 2>&1; then
3685
1749
  :
3686
1750
else
 
1751
  rm -rf conftest*
3687
1752
  ac_cv_header_stdc=no
3688
1753
fi
3689
1754
rm -f conftest*
3692
1757
 
3693
1758
if test $ac_cv_header_stdc = yes; then
3694
1759
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3695
 
  if test "$cross_compiling" = yes; then
 
1760
if test "$cross_compiling" = yes; then
3696
1761
  :
3697
1762
else
3698
 
  cat >conftest.$ac_ext <<_ACEOF
3699
 
/* confdefs.h.  */
3700
 
_ACEOF
3701
 
cat confdefs.h >>conftest.$ac_ext
3702
 
cat >>conftest.$ac_ext <<_ACEOF
3703
 
/* end confdefs.h.  */
 
1763
  cat > conftest.$ac_ext <<EOF
 
1764
#line 1765 "configure"
 
1765
#include "confdefs.h"
3704
1766
#include <ctype.h>
3705
 
#if ((' ' & 0x0FF) == 0x020)
3706
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3707
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3708
 
#else
3709
 
# define ISLOWER(c) \
3710
 
                   (('a' <= (c) && (c) <= 'i') \
3711
 
                     || ('j' <= (c) && (c) <= 'r') \
3712
 
                     || ('s' <= (c) && (c) <= 'z'))
3713
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3714
 
#endif
3715
 
 
 
1767
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
1768
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3716
1769
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3717
 
int
3718
 
main ()
3719
 
{
3720
 
  int i;
3721
 
  for (i = 0; i < 256; i++)
3722
 
    if (XOR (islower (i), ISLOWER (i))
3723
 
        || toupper (i) != TOUPPER (i))
3724
 
      exit(2);
3725
 
  exit (0);
3726
 
}
3727
 
_ACEOF
3728
 
rm -f conftest$ac_exeext
3729
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730
 
  (eval $ac_link) 2>&5
3731
 
  ac_status=$?
3732
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3734
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735
 
  (eval $ac_try) 2>&5
3736
 
  ac_status=$?
3737
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738
 
  (exit $ac_status); }; }; then
 
1770
int main () { int i; for (i = 0; i < 256; i++)
 
1771
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
 
1772
exit (0); }
 
1773
 
 
1774
EOF
 
1775
if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1776
then
3739
1777
  :
3740
1778
else
3741
 
  echo "$as_me: program exited with status $ac_status" >&5
3742
 
echo "$as_me: failed program was:" >&5
3743
 
sed 's/^/| /' conftest.$ac_ext >&5
3744
 
 
3745
 
( exit $ac_status )
3746
 
ac_cv_header_stdc=no
3747
 
fi
3748
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3749
 
fi
3750
 
fi
3751
 
fi
3752
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3753
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
1779
  echo "configure: failed program was:" >&5
 
1780
  cat conftest.$ac_ext >&5
 
1781
  rm -fr conftest*
 
1782
  ac_cv_header_stdc=no
 
1783
fi
 
1784
rm -fr conftest*
 
1785
fi
 
1786
 
 
1787
fi
 
1788
fi
 
1789
 
 
1790
echo "$ac_t""$ac_cv_header_stdc" 1>&6
3754
1791
if test $ac_cv_header_stdc = yes; then
3755
 
 
3756
 
cat >>confdefs.h <<\_ACEOF
 
1792
  cat >> confdefs.h <<\EOF
3757
1793
#define STDC_HEADERS 1
3758
 
_ACEOF
3759
 
 
3760
 
fi
3761
 
 
3762
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3763
 
 
3764
 
 
3765
 
 
3766
 
 
3767
 
 
3768
 
 
3769
 
 
3770
 
 
3771
 
 
3772
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3773
 
                  inttypes.h stdint.h unistd.h
3774
 
do
3775
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3776
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3777
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3778
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3779
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3780
 
else
3781
 
  cat >conftest.$ac_ext <<_ACEOF
3782
 
/* confdefs.h.  */
3783
 
_ACEOF
3784
 
cat confdefs.h >>conftest.$ac_ext
3785
 
cat >>conftest.$ac_ext <<_ACEOF
3786
 
/* end confdefs.h.  */
3787
 
$ac_includes_default
3788
 
 
3789
 
#include <$ac_header>
3790
 
_ACEOF
3791
 
rm -f conftest.$ac_objext
3792
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793
 
  (eval $ac_compile) 2>conftest.er1
3794
 
  ac_status=$?
3795
 
  grep -v '^ *+' conftest.er1 >conftest.err
3796
 
  rm -f conftest.er1
3797
 
  cat conftest.err >&5
3798
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
 
  (exit $ac_status); } &&
3800
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3801
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802
 
  (eval $ac_try) 2>&5
3803
 
  ac_status=$?
3804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805
 
  (exit $ac_status); }; } &&
3806
 
         { ac_try='test -s conftest.$ac_objext'
3807
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808
 
  (eval $ac_try) 2>&5
3809
 
  ac_status=$?
3810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811
 
  (exit $ac_status); }; }; then
3812
 
  eval "$as_ac_Header=yes"
3813
 
else
3814
 
  echo "$as_me: failed program was:" >&5
3815
 
sed 's/^/| /' conftest.$ac_ext >&5
3816
 
 
3817
 
eval "$as_ac_Header=no"
3818
 
fi
3819
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3820
 
fi
3821
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3822
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3823
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3824
 
  cat >>confdefs.h <<_ACEOF
3825
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3826
 
_ACEOF
3827
 
 
3828
 
fi
3829
 
 
3830
 
done
3831
 
 
3832
 
 
3833
 
echo "$as_me:$LINENO: checking for pid_t" >&5
3834
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3835
 
if test "${ac_cv_type_pid_t+set}" = set; then
3836
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3837
 
else
3838
 
  cat >conftest.$ac_ext <<_ACEOF
3839
 
/* confdefs.h.  */
3840
 
_ACEOF
3841
 
cat confdefs.h >>conftest.$ac_ext
3842
 
cat >>conftest.$ac_ext <<_ACEOF
3843
 
/* end confdefs.h.  */
3844
 
$ac_includes_default
3845
 
int
3846
 
main ()
3847
 
{
3848
 
if ((pid_t *) 0)
3849
 
  return 0;
3850
 
if (sizeof (pid_t))
3851
 
  return 0;
3852
 
  ;
3853
 
  return 0;
3854
 
}
3855
 
_ACEOF
3856
 
rm -f conftest.$ac_objext
3857
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858
 
  (eval $ac_compile) 2>conftest.er1
3859
 
  ac_status=$?
3860
 
  grep -v '^ *+' conftest.er1 >conftest.err
3861
 
  rm -f conftest.er1
3862
 
  cat conftest.err >&5
3863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
 
  (exit $ac_status); } &&
3865
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867
 
  (eval $ac_try) 2>&5
3868
 
  ac_status=$?
3869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870
 
  (exit $ac_status); }; } &&
3871
 
         { ac_try='test -s conftest.$ac_objext'
3872
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873
 
  (eval $ac_try) 2>&5
3874
 
  ac_status=$?
3875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
 
  (exit $ac_status); }; }; then
 
1794
EOF
 
1795
 
 
1796
fi
 
1797
 
 
1798
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
 
1799
echo "configure:1800: checking for pid_t" >&5
 
1800
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
 
1801
  echo $ac_n "(cached) $ac_c" 1>&6
 
1802
else
 
1803
  cat > conftest.$ac_ext <<EOF
 
1804
#line 1805 "configure"
 
1805
#include "confdefs.h"
 
1806
#include <sys/types.h>
 
1807
#if STDC_HEADERS
 
1808
#include <stdlib.h>
 
1809
#include <stddef.h>
 
1810
#endif
 
1811
EOF
 
1812
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
1813
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
 
1814
  rm -rf conftest*
3877
1815
  ac_cv_type_pid_t=yes
3878
1816
else
3879
 
  echo "$as_me: failed program was:" >&5
3880
 
sed 's/^/| /' conftest.$ac_ext >&5
3881
 
 
3882
 
ac_cv_type_pid_t=no
3883
 
fi
3884
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3885
 
fi
3886
 
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3887
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3888
 
if test $ac_cv_type_pid_t = yes; then
3889
 
  :
3890
 
else
3891
 
 
3892
 
cat >>confdefs.h <<_ACEOF
 
1817
  rm -rf conftest*
 
1818
  ac_cv_type_pid_t=no
 
1819
fi
 
1820
rm -f conftest*
 
1821
 
 
1822
fi
 
1823
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
 
1824
if test $ac_cv_type_pid_t = no; then
 
1825
  cat >> confdefs.h <<\EOF
3893
1826
#define pid_t int
3894
 
_ACEOF
 
1827
EOF
3895
1828
 
3896
1829
fi
3897
1830
 
3898
 
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3899
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3900
 
if test "${ac_cv_type_signal+set}" = set; then
3901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1831
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
 
1832
echo "configure:1833: checking return type of signal handlers" >&5
 
1833
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
 
1834
  echo $ac_n "(cached) $ac_c" 1>&6
3902
1835
else
3903
 
  cat >conftest.$ac_ext <<_ACEOF
3904
 
/* confdefs.h.  */
3905
 
_ACEOF
3906
 
cat confdefs.h >>conftest.$ac_ext
3907
 
cat >>conftest.$ac_ext <<_ACEOF
3908
 
/* end confdefs.h.  */
 
1836
  cat > conftest.$ac_ext <<EOF
 
1837
#line 1838 "configure"
 
1838
#include "confdefs.h"
3909
1839
#include <sys/types.h>
3910
1840
#include <signal.h>
3911
1841
#ifdef signal
3912
 
# undef signal
 
1842
#undef signal
3913
1843
#endif
3914
1844
#ifdef __cplusplus
3915
1845
extern "C" void (*signal (int, void (*)(int)))(int);
3917
1847
void (*signal ()) ();
3918
1848
#endif
3919
1849
 
3920
 
int
3921
 
main ()
3922
 
{
 
1850
int main() {
3923
1851
int i;
3924
 
  ;
3925
 
  return 0;
3926
 
}
3927
 
_ACEOF
3928
 
rm -f conftest.$ac_objext
3929
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930
 
  (eval $ac_compile) 2>conftest.er1
3931
 
  ac_status=$?
3932
 
  grep -v '^ *+' conftest.er1 >conftest.err
3933
 
  rm -f conftest.er1
3934
 
  cat conftest.err >&5
3935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
 
  (exit $ac_status); } &&
3937
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3938
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
 
  (eval $ac_try) 2>&5
3940
 
  ac_status=$?
3941
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942
 
  (exit $ac_status); }; } &&
3943
 
         { ac_try='test -s conftest.$ac_objext'
3944
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945
 
  (eval $ac_try) 2>&5
3946
 
  ac_status=$?
3947
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948
 
  (exit $ac_status); }; }; then
 
1852
; return 0; }
 
1853
EOF
 
1854
if { (eval echo configure:1855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1855
  rm -rf conftest*
3949
1856
  ac_cv_type_signal=void
3950
1857
else
3951
 
  echo "$as_me: failed program was:" >&5
3952
 
sed 's/^/| /' conftest.$ac_ext >&5
3953
 
 
3954
 
ac_cv_type_signal=int
3955
 
fi
3956
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3957
 
fi
3958
 
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3959
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
3960
 
 
3961
 
cat >>confdefs.h <<_ACEOF
 
1858
  echo "configure: failed program was:" >&5
 
1859
  cat conftest.$ac_ext >&5
 
1860
  rm -rf conftest*
 
1861
  ac_cv_type_signal=int
 
1862
fi
 
1863
rm -f conftest*
 
1864
fi
 
1865
 
 
1866
echo "$ac_t""$ac_cv_type_signal" 1>&6
 
1867
cat >> confdefs.h <<EOF
3962
1868
#define RETSIGTYPE $ac_cv_type_signal
3963
 
_ACEOF
3964
 
 
3965
 
 
3966
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3967
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3968
 
if test "${ac_cv_header_time+set}" = set; then
3969
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1869
EOF
 
1870
 
 
1871
 
 
1872
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
 
1873
echo "configure:1874: checking whether time.h and sys/time.h may both be included" >&5
 
1874
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
 
1875
  echo $ac_n "(cached) $ac_c" 1>&6
3970
1876
else
3971
 
  cat >conftest.$ac_ext <<_ACEOF
3972
 
/* confdefs.h.  */
3973
 
_ACEOF
3974
 
cat confdefs.h >>conftest.$ac_ext
3975
 
cat >>conftest.$ac_ext <<_ACEOF
3976
 
/* end confdefs.h.  */
 
1877
  cat > conftest.$ac_ext <<EOF
 
1878
#line 1879 "configure"
 
1879
#include "confdefs.h"
3977
1880
#include <sys/types.h>
3978
1881
#include <sys/time.h>
3979
1882
#include <time.h>
3980
 
 
3981
 
int
3982
 
main ()
3983
 
{
3984
 
if ((struct tm *) 0)
3985
 
return 0;
3986
 
  ;
3987
 
  return 0;
3988
 
}
3989
 
_ACEOF
3990
 
rm -f conftest.$ac_objext
3991
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3992
 
  (eval $ac_compile) 2>conftest.er1
3993
 
  ac_status=$?
3994
 
  grep -v '^ *+' conftest.er1 >conftest.err
3995
 
  rm -f conftest.er1
3996
 
  cat conftest.err >&5
3997
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998
 
  (exit $ac_status); } &&
3999
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4000
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001
 
  (eval $ac_try) 2>&5
4002
 
  ac_status=$?
4003
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004
 
  (exit $ac_status); }; } &&
4005
 
         { ac_try='test -s conftest.$ac_objext'
4006
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007
 
  (eval $ac_try) 2>&5
4008
 
  ac_status=$?
4009
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010
 
  (exit $ac_status); }; }; then
 
1883
int main() {
 
1884
struct tm *tp;
 
1885
; return 0; }
 
1886
EOF
 
1887
if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1888
  rm -rf conftest*
4011
1889
  ac_cv_header_time=yes
4012
1890
else
4013
 
  echo "$as_me: failed program was:" >&5
4014
 
sed 's/^/| /' conftest.$ac_ext >&5
 
1891
  echo "configure: failed program was:" >&5
 
1892
  cat conftest.$ac_ext >&5
 
1893
  rm -rf conftest*
 
1894
  ac_cv_header_time=no
 
1895
fi
 
1896
rm -f conftest*
 
1897
fi
4015
1898
 
4016
 
ac_cv_header_time=no
4017
 
fi
4018
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4019
 
fi
4020
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4021
 
echo "${ECHO_T}$ac_cv_header_time" >&6
 
1899
echo "$ac_t""$ac_cv_header_time" 1>&6
4022
1900
if test $ac_cv_header_time = yes; then
4023
 
 
4024
 
cat >>confdefs.h <<\_ACEOF
 
1901
  cat >> confdefs.h <<\EOF
4025
1902
#define TIME_WITH_SYS_TIME 1
4026
 
_ACEOF
 
1903
EOF
4027
1904
 
4028
1905
fi
4029
1906
 
4030
 
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4031
 
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4032
 
if test "${ac_cv_header_sys_wait_h+set}" = set; then
4033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1907
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
 
1908
echo "configure:1909: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
1909
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
 
1910
  echo $ac_n "(cached) $ac_c" 1>&6
4034
1911
else
4035
 
  cat >conftest.$ac_ext <<_ACEOF
4036
 
/* confdefs.h.  */
4037
 
_ACEOF
4038
 
cat confdefs.h >>conftest.$ac_ext
4039
 
cat >>conftest.$ac_ext <<_ACEOF
4040
 
/* end confdefs.h.  */
 
1912
  cat > conftest.$ac_ext <<EOF
 
1913
#line 1914 "configure"
 
1914
#include "confdefs.h"
4041
1915
#include <sys/types.h>
4042
1916
#include <sys/wait.h>
4043
1917
#ifndef WEXITSTATUS
4044
 
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
1918
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4045
1919
#endif
4046
1920
#ifndef WIFEXITED
4047
 
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
1921
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4048
1922
#endif
4049
 
 
4050
 
int
4051
 
main ()
4052
 
{
4053
 
  int s;
4054
 
  wait (&s);
4055
 
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4056
 
  ;
4057
 
  return 0;
4058
 
}
4059
 
_ACEOF
4060
 
rm -f conftest.$ac_objext
4061
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062
 
  (eval $ac_compile) 2>conftest.er1
4063
 
  ac_status=$?
4064
 
  grep -v '^ *+' conftest.er1 >conftest.err
4065
 
  rm -f conftest.er1
4066
 
  cat conftest.err >&5
4067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068
 
  (exit $ac_status); } &&
4069
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4070
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071
 
  (eval $ac_try) 2>&5
4072
 
  ac_status=$?
4073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
 
  (exit $ac_status); }; } &&
4075
 
         { ac_try='test -s conftest.$ac_objext'
4076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077
 
  (eval $ac_try) 2>&5
4078
 
  ac_status=$?
4079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
 
  (exit $ac_status); }; }; then
 
1923
int main() {
 
1924
int s;
 
1925
wait (&s);
 
1926
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
1927
; return 0; }
 
1928
EOF
 
1929
if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1930
  rm -rf conftest*
4081
1931
  ac_cv_header_sys_wait_h=yes
4082
1932
else
4083
 
  echo "$as_me: failed program was:" >&5
4084
 
sed 's/^/| /' conftest.$ac_ext >&5
 
1933
  echo "configure: failed program was:" >&5
 
1934
  cat conftest.$ac_ext >&5
 
1935
  rm -rf conftest*
 
1936
  ac_cv_header_sys_wait_h=no
 
1937
fi
 
1938
rm -f conftest*
 
1939
fi
4085
1940
 
4086
 
ac_cv_header_sys_wait_h=no
4087
 
fi
4088
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4089
 
fi
4090
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4091
 
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
1941
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4092
1942
if test $ac_cv_header_sys_wait_h = yes; then
4093
 
 
4094
 
cat >>confdefs.h <<\_ACEOF
 
1943
  cat >> confdefs.h <<\EOF
4095
1944
#define HAVE_SYS_WAIT_H 1
4096
 
_ACEOF
 
1945
EOF
4097
1946
 
4098
1947
fi
4099
1948
 
4104
1953
  enable_symbols=$enableval
4105
1954
else
4106
1955
  enable_symbols=no
4107
 
fi;
 
1956
fi
 
1957
 
4108
1958
if test "$enable_symbols" = "no"; then
4109
1959
  EXP_CFLAGS="$TCL_EXTRA_CFLAGS"
4110
1960
else
4117
1967
  i[3456]86-*-linux*)   EXP_CFLAGS="" ;;
4118
1968
esac
4119
1969
 
4120
 
echo "$as_me:$LINENO: checking if running Mach" >&5
4121
 
echo $ECHO_N "checking if running Mach... $ECHO_C" >&6
 
1970
echo $ac_n "checking if running Mach""... $ac_c" 1>&6
 
1971
echo "configure:1972: checking if running Mach" >&5
4122
1972
mach=0
4123
1973
case "${host}" in
4124
1974
  # Both Next and pure Mach behave identically with respect
4128
1978
esac
4129
1979
 
4130
1980
if test $mach -eq 1 ; then
4131
 
  echo "$as_me:$LINENO: result: yes" >&5
4132
 
echo "${ECHO_T}yes" >&6
 
1981
  echo "$ac_t""yes" 1>&6
4133
1982
else
4134
 
  echo "$as_me:$LINENO: result: no" >&5
4135
 
echo "${ECHO_T}no" >&6
 
1983
  echo "$ac_t""no" 1>&6
4136
1984
fi
4137
1985
 
4138
 
echo "$as_me:$LINENO: checking if running MachTen" >&5
4139
 
echo $ECHO_N "checking if running MachTen... $ECHO_C" >&6
 
1986
echo $ac_n "checking if running MachTen""... $ac_c" 1>&6
 
1987
echo "configure:1988: checking if running MachTen" >&5
4140
1988
# yet another Mach clone
4141
1989
if test -r /MachTen ; then
4142
 
  echo "$as_me:$LINENO: result: yes" >&5
4143
 
echo "${ECHO_T}yes" >&6
 
1990
  echo "$ac_t""yes" 1>&6
4144
1991
  mach=1
4145
1992
else
4146
 
  echo "$as_me:$LINENO: result: no" >&5
4147
 
echo "${ECHO_T}no" >&6
 
1993
  echo "$ac_t""no" 1>&6
4148
1994
fi
4149
1995
 
4150
 
echo "$as_me:$LINENO: checking if on Pyramid" >&5
4151
 
echo $ECHO_N "checking if on Pyramid... $ECHO_C" >&6
 
1996
echo $ac_n "checking if on Pyramid""... $ac_c" 1>&6
 
1997
echo "configure:1998: checking if on Pyramid" >&5
4152
1998
if test -r /bin/pyr ; then
4153
 
  echo "$as_me:$LINENO: result: yes" >&5
4154
 
echo "${ECHO_T}yes" >&6
 
1999
  echo "$ac_t""yes" 1>&6
4155
2000
  pyr=1
4156
2001
else
4157
 
  echo "$as_me:$LINENO: result: no" >&5
4158
 
echo "${ECHO_T}no" >&6
 
2002
  echo "$ac_t""no" 1>&6
4159
2003
  pyr=0
4160
2004
fi
4161
2005
 
4162
 
echo "$as_me:$LINENO: checking if on Apollo" >&5
4163
 
echo $ECHO_N "checking if on Apollo... $ECHO_C" >&6
 
2006
echo $ac_n "checking if on Apollo""... $ac_c" 1>&6
 
2007
echo "configure:2008: checking if on Apollo" >&5
4164
2008
if test -r /usr/apollo/bin ; then
4165
 
  echo "$as_me:$LINENO: result: yes" >&5
4166
 
echo "${ECHO_T}yes" >&6
 
2009
  echo "$ac_t""yes" 1>&6
4167
2010
  apollo=1
4168
2011
else
4169
 
  echo "$as_me:$LINENO: result: no" >&5
4170
 
echo "${ECHO_T}no" >&6
 
2012
  echo "$ac_t""no" 1>&6
4171
2013
  apollo=0
4172
2014
fi
4173
2015
 
4174
 
echo "$as_me:$LINENO: checking if on Interactive" >&5
4175
 
echo $ECHO_N "checking if on Interactive... $ECHO_C" >&6
 
2016
echo $ac_n "checking if on Interactive""... $ac_c" 1>&6
 
2017
echo "configure:2018: checking if on Interactive" >&5
4176
2018
if test "x`(uname -s) 2>/dev/null`" = xIUNIX; then
4177
 
  echo "$as_me:$LINENO: result: yes" >&5
4178
 
echo "${ECHO_T}yes" >&6
 
2019
  echo "$ac_t""yes" 1>&6
4179
2020
  iunix=1
4180
2021
else
4181
 
  echo "$as_me:$LINENO: result: no" >&5
4182
 
echo "${ECHO_T}no" >&6
 
2022
  echo "$ac_t""no" 1>&6
4183
2023
  iunix=0
4184
2024
fi
4185
2025
 
4186
 
echo "$as_me:$LINENO: checking stty to use" >&5
4187
 
echo $ECHO_N "checking stty to use... $ECHO_C" >&6
 
2026
echo $ac_n "checking stty to use""... $ac_c" 1>&6
 
2027
echo "configure:2028: checking stty to use" >&5
4188
2028
if test -r /usr/local/bin/stty ; then
4189
2029
  STTY_BIN=/usr/local/bin/stty
4190
2030
else
4191
2031
  STTY_BIN=/bin/stty
4192
2032
fi
4193
 
echo "$as_me:$LINENO: result: $STTY_BIN" >&5
4194
 
echo "${ECHO_T}$STTY_BIN" >&6
4195
 
cat >>confdefs.h <<\_ACEOF
 
2033
echo "$ac_t""$STTY_BIN" 1>&6
 
2034
cat >> confdefs.h <<\EOF
4196
2035
#define STTY_BIN 1
4197
 
_ACEOF
4198
 
 
4199
 
 
4200
 
echo "$as_me:$LINENO: checking if stty reads stdout" >&5
4201
 
echo $ECHO_N "checking if stty reads stdout... $ECHO_C" >&6
 
2036
EOF
 
2037
 
 
2038
 
 
2039
echo $ac_n "checking if stty reads stdout""... $ac_c" 1>&6
 
2040
echo "configure:2041: checking if stty reads stdout" >&5
4202
2041
 
4203
2042
# On some systems stty can't be run in the background (svr4) or get it
4204
2043
# wrong because they fail to complain (next, mach), so don't attempt
4242
2081
fi
4243
2082
 
4244
2083
if test ${stty_reads_stdout} -eq 1 ; then
4245
 
  echo "$as_me:$LINENO: result: yes" >&5
4246
 
echo "${ECHO_T}yes" >&6
4247
 
  cat >>confdefs.h <<\_ACEOF
 
2084
  echo "$ac_t""yes" 1>&6
 
2085
  cat >> confdefs.h <<\EOF
4248
2086
#define STTY_READS_STDOUT 1
4249
 
_ACEOF
 
2087
EOF
4250
2088
 
4251
2089
else
4252
 
  echo "$as_me:$LINENO: result: no" >&5
4253
 
echo "${ECHO_T}no" >&6
 
2090
  echo "$ac_t""no" 1>&6
4254
2091
fi
4255
2092
 
4256
2093
# Solaris 2.4 and later requires __EXTENSIONS__ in order to see all sorts
4257
2094
# of traditional but nonstandard stuff in header files.
4258
 
echo "$as_me:$LINENO: checking if running Solaris" >&5
4259
 
echo $ECHO_N "checking if running Solaris... $ECHO_C" >&6
 
2095
echo $ac_n "checking if running Solaris""... $ac_c" 1>&6
 
2096
echo "configure:2097: checking if running Solaris" >&5
4260
2097
solaris=0
4261
2098
case "${host}" in
4262
2099
  *-*-solaris*)         solaris=1;;
4263
2100
esac
4264
2101
 
4265
2102
if test $solaris -eq 1 ; then
4266
 
  echo "$as_me:$LINENO: result: yes" >&5
4267
 
echo "${ECHO_T}yes" >&6
4268
 
  cat >>confdefs.h <<\_ACEOF
 
2103
  echo "$ac_t""yes" 1>&6
 
2104
  cat >> confdefs.h <<\EOF
4269
2105
#define SOLARIS 1
4270
 
_ACEOF
 
2106
EOF
4271
2107
 
4272
2108
else
4273
 
  echo "$as_me:$LINENO: result: no" >&5
4274
 
echo "${ECHO_T}no" >&6
 
2109
  echo "$ac_t""no" 1>&6
4275
2110
fi
4276
2111
 
4277
2112
 
4278
2113
# On a few systems, libm.a is the same as libc.a
4279
2114
# Don't bother to test against Tcl and Tk libs, they always include -lm
4280
 
echo "$as_me:$LINENO: checking for sin" >&5
4281
 
echo $ECHO_N "checking for sin... $ECHO_C" >&6
4282
 
if test "${ac_cv_func_sin+set}" = set; then
4283
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2115
echo $ac_n "checking for sin""... $ac_c" 1>&6
 
2116
echo "configure:2117: checking for sin" >&5
 
2117
if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
 
2118
  echo $ac_n "(cached) $ac_c" 1>&6
4284
2119
else
4285
 
  cat >conftest.$ac_ext <<_ACEOF
4286
 
/* confdefs.h.  */
4287
 
_ACEOF
4288
 
cat confdefs.h >>conftest.$ac_ext
4289
 
cat >>conftest.$ac_ext <<_ACEOF
4290
 
/* end confdefs.h.  */
4291
 
/* Define sin to an innocuous variant, in case <limits.h> declares sin.
4292
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4293
 
#define sin innocuous_sin
4294
 
 
 
2120
  cat > conftest.$ac_ext <<EOF
 
2121
#line 2122 "configure"
 
2122
#include "confdefs.h"
4295
2123
/* System header to define __stub macros and hopefully few prototypes,
4296
 
    which can conflict with char sin (); below.
4297
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4298
 
    <limits.h> exists even on freestanding compilers.  */
4299
 
 
4300
 
#ifdef __STDC__
4301
 
# include <limits.h>
4302
 
#else
4303
 
# include <assert.h>
4304
 
#endif
4305
 
 
4306
 
#undef sin
4307
 
 
 
2124
    which can conflict with char sin(); below.  */
 
2125
#include <assert.h>
4308
2126
/* Override any gcc2 internal prototype to avoid an error.  */
4309
 
#ifdef __cplusplus
4310
 
extern "C"
4311
 
{
4312
 
#endif
4313
2127
/* We use char because int might match the return type of a gcc2
4314
 
   builtin and then its argument prototype would still apply.  */
4315
 
char sin ();
 
2128
    builtin and then its argument prototype would still apply.  */
 
2129
char sin();
 
2130
 
 
2131
int main() {
 
2132
 
4316
2133
/* The GNU C library defines this for functions which it implements
4317
2134
    to always fail with ENOSYS.  Some functions are actually named
4318
2135
    something starting with __ and the normal name is an alias.  */
4319
2136
#if defined (__stub_sin) || defined (__stub___sin)
4320
2137
choke me
4321
2138
#else
4322
 
char (*f) () = sin;
4323
 
#endif
4324
 
#ifdef __cplusplus
4325
 
}
 
2139
sin();
4326
2140
#endif
4327
2141
 
4328
 
int
4329
 
main ()
4330
 
{
4331
 
return f != sin;
4332
 
  ;
4333
 
  return 0;
4334
 
}
4335
 
_ACEOF
4336
 
rm -f conftest.$ac_objext conftest$ac_exeext
4337
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338
 
  (eval $ac_link) 2>conftest.er1
4339
 
  ac_status=$?
4340
 
  grep -v '^ *+' conftest.er1 >conftest.err
4341
 
  rm -f conftest.er1
4342
 
  cat conftest.err >&5
4343
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344
 
  (exit $ac_status); } &&
4345
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4346
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347
 
  (eval $ac_try) 2>&5
4348
 
  ac_status=$?
4349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
 
  (exit $ac_status); }; } &&
4351
 
         { ac_try='test -s conftest$ac_exeext'
4352
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353
 
  (eval $ac_try) 2>&5
4354
 
  ac_status=$?
4355
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356
 
  (exit $ac_status); }; }; then
4357
 
  ac_cv_func_sin=yes
 
2142
; return 0; }
 
2143
EOF
 
2144
if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2145
  rm -rf conftest*
 
2146
  eval "ac_cv_func_sin=yes"
4358
2147
else
4359
 
  echo "$as_me: failed program was:" >&5
4360
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2148
  echo "configure: failed program was:" >&5
 
2149
  cat conftest.$ac_ext >&5
 
2150
  rm -rf conftest*
 
2151
  eval "ac_cv_func_sin=no"
 
2152
fi
 
2153
rm -f conftest*
 
2154
fi
4361
2155
 
4362
 
ac_cv_func_sin=no
4363
 
fi
4364
 
rm -f conftest.err conftest.$ac_objext \
4365
 
      conftest$ac_exeext conftest.$ac_ext
4366
 
fi
4367
 
echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4368
 
echo "${ECHO_T}$ac_cv_func_sin" >&6
4369
 
if test $ac_cv_func_sin = yes; then
 
2156
if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
 
2157
  echo "$ac_t""yes" 1>&6
4370
2158
  :
4371
2159
else
4372
 
  LIBS="${LIBS} -lm"
 
2160
  echo "$ac_t""no" 1>&6
 
2161
LIBS="${LIBS} -lm" 
4373
2162
fi
4374
2163
 
4375
2164
 
4381
2170
if test $iunix -eq 1 ; then
4382
2171
  EXP_LIBS=$LIBS
4383
2172
  LIBS=$EXP_AND_TCL_LIBS
4384
 
  echo "$as_me:$LINENO: checking for strftime" >&5
4385
 
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
4386
 
if test "${ac_cv_func_strftime+set}" = set; then
4387
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2173
  echo $ac_n "checking for strftime""... $ac_c" 1>&6
 
2174
echo "configure:2175: checking for strftime" >&5
 
2175
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
 
2176
  echo $ac_n "(cached) $ac_c" 1>&6
4388
2177
else
4389
 
  cat >conftest.$ac_ext <<_ACEOF
4390
 
/* confdefs.h.  */
4391
 
_ACEOF
4392
 
cat confdefs.h >>conftest.$ac_ext
4393
 
cat >>conftest.$ac_ext <<_ACEOF
4394
 
/* end confdefs.h.  */
4395
 
/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
4396
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4397
 
#define strftime innocuous_strftime
4398
 
 
 
2178
  cat > conftest.$ac_ext <<EOF
 
2179
#line 2180 "configure"
 
2180
#include "confdefs.h"
4399
2181
/* System header to define __stub macros and hopefully few prototypes,
4400
 
    which can conflict with char strftime (); below.
4401
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4402
 
    <limits.h> exists even on freestanding compilers.  */
4403
 
 
4404
 
#ifdef __STDC__
4405
 
# include <limits.h>
4406
 
#else
4407
 
# include <assert.h>
4408
 
#endif
4409
 
 
4410
 
#undef strftime
4411
 
 
 
2182
    which can conflict with char strftime(); below.  */
 
2183
#include <assert.h>
4412
2184
/* Override any gcc2 internal prototype to avoid an error.  */
4413
 
#ifdef __cplusplus
4414
 
extern "C"
4415
 
{
4416
 
#endif
4417
2185
/* We use char because int might match the return type of a gcc2
4418
 
   builtin and then its argument prototype would still apply.  */
4419
 
char strftime ();
 
2186
    builtin and then its argument prototype would still apply.  */
 
2187
char strftime();
 
2188
 
 
2189
int main() {
 
2190
 
4420
2191
/* The GNU C library defines this for functions which it implements
4421
2192
    to always fail with ENOSYS.  Some functions are actually named
4422
2193
    something starting with __ and the normal name is an alias.  */
4423
2194
#if defined (__stub_strftime) || defined (__stub___strftime)
4424
2195
choke me
4425
2196
#else
4426
 
char (*f) () = strftime;
4427
 
#endif
4428
 
#ifdef __cplusplus
4429
 
}
 
2197
strftime();
4430
2198
#endif
4431
2199
 
4432
 
int
4433
 
main ()
4434
 
{
4435
 
return f != strftime;
4436
 
  ;
4437
 
  return 0;
4438
 
}
4439
 
_ACEOF
4440
 
rm -f conftest.$ac_objext conftest$ac_exeext
4441
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442
 
  (eval $ac_link) 2>conftest.er1
4443
 
  ac_status=$?
4444
 
  grep -v '^ *+' conftest.er1 >conftest.err
4445
 
  rm -f conftest.er1
4446
 
  cat conftest.err >&5
4447
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448
 
  (exit $ac_status); } &&
4449
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4450
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451
 
  (eval $ac_try) 2>&5
4452
 
  ac_status=$?
4453
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454
 
  (exit $ac_status); }; } &&
4455
 
         { ac_try='test -s conftest$ac_exeext'
4456
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457
 
  (eval $ac_try) 2>&5
4458
 
  ac_status=$?
4459
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460
 
  (exit $ac_status); }; }; then
4461
 
  ac_cv_func_strftime=yes
 
2200
; return 0; }
 
2201
EOF
 
2202
if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2203
  rm -rf conftest*
 
2204
  eval "ac_cv_func_strftime=yes"
4462
2205
else
4463
 
  echo "$as_me: failed program was:" >&5
4464
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2206
  echo "configure: failed program was:" >&5
 
2207
  cat conftest.$ac_ext >&5
 
2208
  rm -rf conftest*
 
2209
  eval "ac_cv_func_strftime=no"
 
2210
fi
 
2211
rm -f conftest*
 
2212
fi
4465
2213
 
4466
 
ac_cv_func_strftime=no
4467
 
fi
4468
 
rm -f conftest.err conftest.$ac_objext \
4469
 
      conftest$ac_exeext conftest.$ac_ext
4470
 
fi
4471
 
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
4472
 
echo "${ECHO_T}$ac_cv_func_strftime" >&6
4473
 
if test $ac_cv_func_strftime = yes; then
 
2214
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
 
2215
  echo "$ac_t""yes" 1>&6
4474
2216
  :
4475
2217
else
4476
 
 
4477
 
        EXP_LIBS="${LIBS} -Xp"
4478
 
        EXP_AND_TCL_LIBS="${LIBS} -Xp"
4479
 
        EXP_AND_TK_LIBS="${LIBS} -Xp"
4480
 
 
 
2218
  echo "$ac_t""no" 1>&6
 
2219
 
 
2220
        EXP_LIBS="${LIBS} -Xp" 
 
2221
        EXP_AND_TCL_LIBS="${LIBS} -Xp" 
 
2222
        EXP_AND_TK_LIBS="${LIBS} -Xp" 
 
2223
        
4481
2224
fi
4482
2225
 
4483
2226
  LIBS=EXP_LIBS
4495
2238
# the alternative search directory is involked by --with-tclinclude
4496
2239
#
4497
2240
no_tcl=true
4498
 
echo "$as_me:$LINENO: checking for Tcl private headers" >&5
4499
 
echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
4500
 
 
 
2241
echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
 
2242
echo "configure:2243: checking for Tcl private headers" >&5
4501
2243
# Check whether --with-tclinclude or --without-tclinclude was given.
4502
2244
if test "${with_tclinclude+set}" = set; then
4503
2245
  withval="$with_tclinclude"
4504
2246
  with_tclinclude=${withval}
4505
 
fi;
4506
 
if test "${ac_cv_c_tclh+set}" = set; then
4507
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2247
fi
 
2248
 
 
2249
if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
 
2250
  echo $ac_n "(cached) $ac_c" 1>&6
4508
2251
else
4509
 
 
 
2252
  
4510
2253
# first check to see if --with-tclinclude was specified
4511
2254
if test x"${with_tclinclude}" != x ; then
4512
2255
  if test -f ${with_tclinclude}/tclInt.h ; then
4514
2257
  elif test -f ${with_tclinclude}/generic/tclInt.h ; then
4515
2258
    ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
4516
2259
  else
4517
 
    { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
4518
 
echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
4519
 
   { (exit 1); exit 1; }; }
 
2260
    { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
4520
2261
  fi
4521
2262
fi
4522
2263
 
4567
2308
fi
4568
2309
# see if one is installed
4569
2310
if test x"${ac_cv_c_tclh}" = x ; then
4570
 
   if test "${ac_cv_header_tclInt_h+set}" = set; then
4571
 
  echo "$as_me:$LINENO: checking for tclInt.h" >&5
4572
 
echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
4573
 
if test "${ac_cv_header_tclInt_h+set}" = set; then
4574
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4575
 
fi
4576
 
echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
4577
 
echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
4578
 
else
4579
 
  # Is the header compilable?
4580
 
echo "$as_me:$LINENO: checking tclInt.h usability" >&5
4581
 
echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
4582
 
cat >conftest.$ac_ext <<_ACEOF
4583
 
/* confdefs.h.  */
4584
 
_ACEOF
4585
 
cat confdefs.h >>conftest.$ac_ext
4586
 
cat >>conftest.$ac_ext <<_ACEOF
4587
 
/* end confdefs.h.  */
4588
 
$ac_includes_default
4589
 
#include <tclInt.h>
4590
 
_ACEOF
4591
 
rm -f conftest.$ac_objext
4592
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593
 
  (eval $ac_compile) 2>conftest.er1
4594
 
  ac_status=$?
4595
 
  grep -v '^ *+' conftest.er1 >conftest.err
4596
 
  rm -f conftest.er1
4597
 
  cat conftest.err >&5
4598
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599
 
  (exit $ac_status); } &&
4600
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4601
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602
 
  (eval $ac_try) 2>&5
4603
 
  ac_status=$?
4604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605
 
  (exit $ac_status); }; } &&
4606
 
         { ac_try='test -s conftest.$ac_objext'
4607
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608
 
  (eval $ac_try) 2>&5
4609
 
  ac_status=$?
4610
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611
 
  (exit $ac_status); }; }; then
4612
 
  ac_header_compiler=yes
4613
 
else
4614
 
  echo "$as_me: failed program was:" >&5
4615
 
sed 's/^/| /' conftest.$ac_ext >&5
4616
 
 
4617
 
ac_header_compiler=no
4618
 
fi
4619
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4620
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4621
 
echo "${ECHO_T}$ac_header_compiler" >&6
4622
 
 
4623
 
# Is the header present?
4624
 
echo "$as_me:$LINENO: checking tclInt.h presence" >&5
4625
 
echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
4626
 
cat >conftest.$ac_ext <<_ACEOF
4627
 
/* confdefs.h.  */
4628
 
_ACEOF
4629
 
cat confdefs.h >>conftest.$ac_ext
4630
 
cat >>conftest.$ac_ext <<_ACEOF
4631
 
/* end confdefs.h.  */
4632
 
#include <tclInt.h>
4633
 
_ACEOF
4634
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4635
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4636
 
  ac_status=$?
4637
 
  grep -v '^ *+' conftest.er1 >conftest.err
4638
 
  rm -f conftest.er1
4639
 
  cat conftest.err >&5
4640
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641
 
  (exit $ac_status); } >/dev/null; then
4642
 
  if test -s conftest.err; then
4643
 
    ac_cpp_err=$ac_c_preproc_warn_flag
4644
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4645
 
  else
4646
 
    ac_cpp_err=
4647
 
  fi
4648
 
else
4649
 
  ac_cpp_err=yes
4650
 
fi
4651
 
if test -z "$ac_cpp_err"; then
4652
 
  ac_header_preproc=yes
4653
 
else
4654
 
  echo "$as_me: failed program was:" >&5
4655
 
sed 's/^/| /' conftest.$ac_ext >&5
4656
 
 
4657
 
  ac_header_preproc=no
4658
 
fi
4659
 
rm -f conftest.err conftest.$ac_ext
4660
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4661
 
echo "${ECHO_T}$ac_header_preproc" >&6
4662
 
 
4663
 
# So?  What about this header?
4664
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4665
 
  yes:no: )
4666
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
4667
 
echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4668
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
4669
 
echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
4670
 
    ac_header_preproc=yes
4671
 
    ;;
4672
 
  no:yes:* )
4673
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
4674
 
echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
4675
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h:     check for missing prerequisite headers?" >&5
4676
 
echo "$as_me: WARNING: tclInt.h:     check for missing prerequisite headers?" >&2;}
4677
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
4678
 
echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
4679
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&5
4680
 
echo "$as_me: WARNING: tclInt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4681
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
4682
 
echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
4683
 
    { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
4684
 
echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
4685
 
    (
4686
 
      cat <<\_ASBOX
4687
 
## ------------------------------------------ ##
4688
 
## Report this to the AC_PACKAGE_NAME lists.  ##
4689
 
## ------------------------------------------ ##
4690
 
_ASBOX
4691
 
    ) |
4692
 
      sed "s/^/$as_me: WARNING:     /" >&2
4693
 
    ;;
4694
 
esac
4695
 
echo "$as_me:$LINENO: checking for tclInt.h" >&5
4696
 
echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
4697
 
if test "${ac_cv_header_tclInt_h+set}" = set; then
4698
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4699
 
else
4700
 
  ac_cv_header_tclInt_h=$ac_header_preproc
4701
 
fi
4702
 
echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
4703
 
echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
4704
 
 
4705
 
fi
4706
 
if test $ac_cv_header_tclInt_h = yes; then
 
2311
   ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
 
2312
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
 
2313
echo "configure:2314: checking for tclInt.h" >&5
 
2314
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
2315
  echo $ac_n "(cached) $ac_c" 1>&6
 
2316
else
 
2317
  cat > conftest.$ac_ext <<EOF
 
2318
#line 2319 "configure"
 
2319
#include "confdefs.h"
 
2320
#include <tclInt.h>
 
2321
EOF
 
2322
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2323
{ (eval echo configure:2324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2324
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2325
if test -z "$ac_err"; then
 
2326
  rm -rf conftest*
 
2327
  eval "ac_cv_header_$ac_safe=yes"
 
2328
else
 
2329
  echo "$ac_err" >&5
 
2330
  echo "configure: failed program was:" >&5
 
2331
  cat conftest.$ac_ext >&5
 
2332
  rm -rf conftest*
 
2333
  eval "ac_cv_header_$ac_safe=no"
 
2334
fi
 
2335
rm -f conftest*
 
2336
fi
 
2337
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
2338
  echo "$ac_t""yes" 1>&6
4707
2339
  ac_cv_c_tclh=installed
4708
2340
else
4709
 
  ac_cv_c_tclh=""
 
2341
  echo "$ac_t""no" 1>&6
 
2342
ac_cv_c_tclh=""
4710
2343
fi
4711
 
 
4712
2344
 
4713
2345
fi
4714
2346
 
4717
2349
if test x"${ac_cv_c_tclh}" = x ; then
4718
2350
  TCLHDIR="# no Tcl private headers found"
4719
2351
  TCLHDIRDASHI="# no Tcl private headers found"
4720
 
  { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
4721
 
echo "$as_me: error: Can't find Tcl private headers" >&2;}
4722
 
   { (exit 1); exit 1; }; }
 
2352
  { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
4723
2353
fi
4724
2354
if test x"${ac_cv_c_tclh}" != x ; then
4725
2355
  no_tcl=""
4726
2356
  if test x"${ac_cv_c_tclh}" = x"installed" ; then
4727
 
    echo "$as_me:$LINENO: result: is installed" >&5
4728
 
echo "${ECHO_T}is installed" >&6
 
2357
    echo "$ac_t""is installed" 1>&6
4729
2358
    TCLHDIR=""
4730
2359
    TCLHDIRDASHI=""
4731
2360
    TCL_LIBRARY=""
4732
2361
  else
4733
 
    echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
4734
 
echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
 
2362
    echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
4735
2363
    # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
4736
2364
    TCLHDIR="${ac_cv_c_tclh}"
4737
2365
    TCLHDIRDASHI="-I${ac_cv_c_tclh}"
4752
2380
fi
4753
2381
 
4754
2382
# have to know whether we're generating shared libs before configuring debugger
4755
 
echo "$as_me:$LINENO: checking type of library to build" >&5
4756
 
echo $ECHO_N "checking type of library to build... $ECHO_C" >&6
 
2383
echo $ac_n "checking type of library to build""... $ac_c" 1>&6
 
2384
echo "configure:2385: checking type of library to build" >&5
4757
2385
# Check whether --enable-shared or --disable-shared was given.
4758
2386
if test "${enable_shared+set}" = set; then
4759
2387
  enableval="$enable_shared"
4760
2388
  enable_shared=$enableval
4761
2389
else
4762
2390
  enable_shared=no
4763
 
fi;
 
2391
fi
 
2392
 
4764
2393
if test "$enable_shared" = "yes" && test "x${TCL_SHLIB_SUFFIX}" != "x" ; then
4765
 
  echo "$as_me:$LINENO: result: both shared and unshared" >&5
4766
 
echo "${ECHO_T}both shared and unshared" >&6
4767
 
else
4768
 
  echo "$as_me:$LINENO: result: unshared" >&5
4769
 
echo "${ECHO_T}unshared" >&6
4770
 
fi
4771
 
 
4772
 
# now see if we can/should use Tcl stubs
4773
 
echo "$as_me:$LINENO: checking whether to use Tcl stubs" >&5
4774
 
echo $ECHO_N "checking whether to use Tcl stubs... $ECHO_C" >&6
4775
 
# Check whether --enable-stubs or --disable-stubs was given.
4776
 
if test "${enable_stubs+set}" = set; then
4777
 
  enableval="$enable_stubs"
4778
 
  enable_stubs=$enableval
4779
 
else
4780
 
  enable_stubs=no
4781
 
fi;
4782
 
if test "$enable_shared" = "yes" && test "$enable_stubs" = "yes" && test "x${TCL_SUPPORTS_STUBS}" = "x1"; then
4783
 
  echo "$as_me:$LINENO: result: yes" >&5
4784
 
echo "${ECHO_T}yes" >&6
4785
 
  EXP_CFLAGS="$EXP_CFLAGS -DUSE_TCL_STUBS"
4786
 
else
4787
 
  echo "$as_me:$LINENO: result: no" >&5
4788
 
echo "${ECHO_T}no" >&6
 
2394
  echo "$ac_t""both shared and unshared" 1>&6
 
2395
else
 
2396
  echo "$ac_t""unshared" 1>&6
4789
2397
fi
4790
2398
 
4791
2399
#
4797
2405
#
4798
2406
# Incidentally, the debugger can't depend on Expect's cf file, because
4799
2407
# the debugger is designed to be independent of Expect.
4800
 
#
 
2408
4801
2409
 
4802
2410
test -n "$verbose" && echo "configuring Tcl debugger"
4803
2411
tmpdir=./Dbg$$
4851
2459
######################################################################
4852
2460
# required by Sequent ptx2
4853
2461
unset ac_cv_func_gethostname
4854
 
echo "$as_me:$LINENO: checking for gethostname" >&5
4855
 
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
4856
 
if test "${ac_cv_func_gethostname+set}" = set; then
4857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2462
echo $ac_n "checking for gethostname""... $ac_c" 1>&6
 
2463
echo "configure:2464: checking for gethostname" >&5
 
2464
if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
 
2465
  echo $ac_n "(cached) $ac_c" 1>&6
4858
2466
else
4859
 
  cat >conftest.$ac_ext <<_ACEOF
4860
 
/* confdefs.h.  */
4861
 
_ACEOF
4862
 
cat confdefs.h >>conftest.$ac_ext
4863
 
cat >>conftest.$ac_ext <<_ACEOF
4864
 
/* end confdefs.h.  */
4865
 
/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
4866
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4867
 
#define gethostname innocuous_gethostname
4868
 
 
 
2467
  cat > conftest.$ac_ext <<EOF
 
2468
#line 2469 "configure"
 
2469
#include "confdefs.h"
4869
2470
/* System header to define __stub macros and hopefully few prototypes,
4870
 
    which can conflict with char gethostname (); below.
4871
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4872
 
    <limits.h> exists even on freestanding compilers.  */
4873
 
 
4874
 
#ifdef __STDC__
4875
 
# include <limits.h>
4876
 
#else
4877
 
# include <assert.h>
4878
 
#endif
4879
 
 
4880
 
#undef gethostname
4881
 
 
 
2471
    which can conflict with char gethostname(); below.  */
 
2472
#include <assert.h>
4882
2473
/* Override any gcc2 internal prototype to avoid an error.  */
4883
 
#ifdef __cplusplus
4884
 
extern "C"
4885
 
{
4886
 
#endif
4887
2474
/* We use char because int might match the return type of a gcc2
4888
 
   builtin and then its argument prototype would still apply.  */
4889
 
char gethostname ();
 
2475
    builtin and then its argument prototype would still apply.  */
 
2476
char gethostname();
 
2477
 
 
2478
int main() {
 
2479
 
4890
2480
/* The GNU C library defines this for functions which it implements
4891
2481
    to always fail with ENOSYS.  Some functions are actually named
4892
2482
    something starting with __ and the normal name is an alias.  */
4893
2483
#if defined (__stub_gethostname) || defined (__stub___gethostname)
4894
2484
choke me
4895
2485
#else
4896
 
char (*f) () = gethostname;
4897
 
#endif
4898
 
#ifdef __cplusplus
4899
 
}
4900
 
#endif
4901
 
 
4902
 
int
4903
 
main ()
4904
 
{
4905
 
return f != gethostname;
4906
 
  ;
4907
 
  return 0;
4908
 
}
4909
 
_ACEOF
4910
 
rm -f conftest.$ac_objext conftest$ac_exeext
4911
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912
 
  (eval $ac_link) 2>conftest.er1
4913
 
  ac_status=$?
4914
 
  grep -v '^ *+' conftest.er1 >conftest.err
4915
 
  rm -f conftest.er1
4916
 
  cat conftest.err >&5
4917
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918
 
  (exit $ac_status); } &&
4919
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4920
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921
 
  (eval $ac_try) 2>&5
4922
 
  ac_status=$?
4923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924
 
  (exit $ac_status); }; } &&
4925
 
         { ac_try='test -s conftest$ac_exeext'
4926
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927
 
  (eval $ac_try) 2>&5
4928
 
  ac_status=$?
4929
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930
 
  (exit $ac_status); }; }; then
4931
 
  ac_cv_func_gethostname=yes
4932
 
else
4933
 
  echo "$as_me: failed program was:" >&5
4934
 
sed 's/^/| /' conftest.$ac_ext >&5
4935
 
 
4936
 
ac_cv_func_gethostname=no
4937
 
fi
4938
 
rm -f conftest.err conftest.$ac_objext \
4939
 
      conftest$ac_exeext conftest.$ac_ext
4940
 
fi
4941
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
4942
 
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
4943
 
if test $ac_cv_func_gethostname = yes; then
4944
 
  gethostname=1
4945
 
else
4946
 
  gethostname=0
 
2486
gethostname();
 
2487
#endif
 
2488
 
 
2489
; return 0; }
 
2490
EOF
 
2491
if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2492
  rm -rf conftest*
 
2493
  eval "ac_cv_func_gethostname=yes"
 
2494
else
 
2495
  echo "configure: failed program was:" >&5
 
2496
  cat conftest.$ac_ext >&5
 
2497
  rm -rf conftest*
 
2498
  eval "ac_cv_func_gethostname=no"
 
2499
fi
 
2500
rm -f conftest*
 
2501
fi
 
2502
 
 
2503
if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
 
2504
  echo "$ac_t""yes" 1>&6
 
2505
  gethostname=1 
 
2506
else
 
2507
  echo "$ac_t""no" 1>&6
 
2508
gethostname=0
4947
2509
fi
4948
2510
 
4949
2511
if test $gethostname -eq 0 ; then
4950
2512
  unset ac_cv_lib_inet_gethostname
4951
 
  echo "$as_me:$LINENO: checking for gethostname in -linet" >&5
4952
 
echo $ECHO_N "checking for gethostname in -linet... $ECHO_C" >&6
4953
 
if test "${ac_cv_lib_inet_gethostname+set}" = set; then
4954
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2513
  echo $ac_n "checking for gethostname in -linet""... $ac_c" 1>&6
 
2514
echo "configure:2515: checking for gethostname in -linet" >&5
 
2515
ac_lib_var=`echo inet'_'gethostname | sed 'y%./+-%__p_%'`
 
2516
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2517
  echo $ac_n "(cached) $ac_c" 1>&6
4955
2518
else
4956
 
  ac_check_lib_save_LIBS=$LIBS
 
2519
  ac_save_LIBS="$LIBS"
4957
2520
LIBS="-linet  $LIBS"
4958
 
cat >conftest.$ac_ext <<_ACEOF
4959
 
/* confdefs.h.  */
4960
 
_ACEOF
4961
 
cat confdefs.h >>conftest.$ac_ext
4962
 
cat >>conftest.$ac_ext <<_ACEOF
4963
 
/* end confdefs.h.  */
4964
 
 
 
2521
cat > conftest.$ac_ext <<EOF
 
2522
#line 2523 "configure"
 
2523
#include "confdefs.h"
4965
2524
/* Override any gcc2 internal prototype to avoid an error.  */
4966
 
#ifdef __cplusplus
4967
 
extern "C"
4968
 
#endif
4969
2525
/* We use char because int might match the return type of a gcc2
4970
 
   builtin and then its argument prototype would still apply.  */
4971
 
char gethostname ();
4972
 
int
4973
 
main ()
4974
 
{
4975
 
gethostname ();
4976
 
  ;
4977
 
  return 0;
4978
 
}
4979
 
_ACEOF
4980
 
rm -f conftest.$ac_objext conftest$ac_exeext
4981
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982
 
  (eval $ac_link) 2>conftest.er1
4983
 
  ac_status=$?
4984
 
  grep -v '^ *+' conftest.er1 >conftest.err
4985
 
  rm -f conftest.er1
4986
 
  cat conftest.err >&5
4987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988
 
  (exit $ac_status); } &&
4989
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4990
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991
 
  (eval $ac_try) 2>&5
4992
 
  ac_status=$?
4993
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994
 
  (exit $ac_status); }; } &&
4995
 
         { ac_try='test -s conftest$ac_exeext'
4996
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997
 
  (eval $ac_try) 2>&5
4998
 
  ac_status=$?
4999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000
 
  (exit $ac_status); }; }; then
5001
 
  ac_cv_lib_inet_gethostname=yes
 
2526
    builtin and then its argument prototype would still apply.  */
 
2527
char gethostname();
 
2528
 
 
2529
int main() {
 
2530
gethostname()
 
2531
; return 0; }
 
2532
EOF
 
2533
if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2534
  rm -rf conftest*
 
2535
  eval "ac_cv_lib_$ac_lib_var=yes"
5002
2536
else
5003
 
  echo "$as_me: failed program was:" >&5
5004
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2537
  echo "configure: failed program was:" >&5
 
2538
  cat conftest.$ac_ext >&5
 
2539
  rm -rf conftest*
 
2540
  eval "ac_cv_lib_$ac_lib_var=no"
 
2541
fi
 
2542
rm -f conftest*
 
2543
LIBS="$ac_save_LIBS"
5005
2544
 
5006
 
ac_cv_lib_inet_gethostname=no
5007
 
fi
5008
 
rm -f conftest.err conftest.$ac_objext \
5009
 
      conftest$ac_exeext conftest.$ac_ext
5010
 
LIBS=$ac_check_lib_save_LIBS
5011
 
fi
5012
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_gethostname" >&5
5013
 
echo "${ECHO_T}$ac_cv_lib_inet_gethostname" >&6
5014
 
if test $ac_cv_lib_inet_gethostname = yes; then
 
2545
fi
 
2546
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2547
  echo "$ac_t""yes" 1>&6
5015
2548
  LIBS="$LIBS -linet"
 
2549
else
 
2550
  echo "$ac_t""no" 1>&6
5016
2551
fi
5017
2552
 
5018
2553
fi
5020
2555
EXP_LIBS=$LIBS
5021
2556
LIBS=$EXP_AND_TCL_LIBS
5022
2557
unset ac_cv_func_gethostname
5023
 
echo "$as_me:$LINENO: checking for gethostname" >&5
5024
 
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
5025
 
if test "${ac_cv_func_gethostname+set}" = set; then
5026
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2558
echo $ac_n "checking for gethostname""... $ac_c" 1>&6
 
2559
echo "configure:2560: checking for gethostname" >&5
 
2560
if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
 
2561
  echo $ac_n "(cached) $ac_c" 1>&6
5027
2562
else
5028
 
  cat >conftest.$ac_ext <<_ACEOF
5029
 
/* confdefs.h.  */
5030
 
_ACEOF
5031
 
cat confdefs.h >>conftest.$ac_ext
5032
 
cat >>conftest.$ac_ext <<_ACEOF
5033
 
/* end confdefs.h.  */
5034
 
/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
5035
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5036
 
#define gethostname innocuous_gethostname
5037
 
 
 
2563
  cat > conftest.$ac_ext <<EOF
 
2564
#line 2565 "configure"
 
2565
#include "confdefs.h"
5038
2566
/* System header to define __stub macros and hopefully few prototypes,
5039
 
    which can conflict with char gethostname (); below.
5040
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041
 
    <limits.h> exists even on freestanding compilers.  */
5042
 
 
5043
 
#ifdef __STDC__
5044
 
# include <limits.h>
5045
 
#else
5046
 
# include <assert.h>
5047
 
#endif
5048
 
 
5049
 
#undef gethostname
5050
 
 
 
2567
    which can conflict with char gethostname(); below.  */
 
2568
#include <assert.h>
5051
2569
/* Override any gcc2 internal prototype to avoid an error.  */
5052
 
#ifdef __cplusplus
5053
 
extern "C"
5054
 
{
5055
 
#endif
5056
2570
/* We use char because int might match the return type of a gcc2
5057
 
   builtin and then its argument prototype would still apply.  */
5058
 
char gethostname ();
 
2571
    builtin and then its argument prototype would still apply.  */
 
2572
char gethostname();
 
2573
 
 
2574
int main() {
 
2575
 
5059
2576
/* The GNU C library defines this for functions which it implements
5060
2577
    to always fail with ENOSYS.  Some functions are actually named
5061
2578
    something starting with __ and the normal name is an alias.  */
5062
2579
#if defined (__stub_gethostname) || defined (__stub___gethostname)
5063
2580
choke me
5064
2581
#else
5065
 
char (*f) () = gethostname;
5066
 
#endif
5067
 
#ifdef __cplusplus
5068
 
}
5069
 
#endif
5070
 
 
5071
 
int
5072
 
main ()
5073
 
{
5074
 
return f != gethostname;
5075
 
  ;
5076
 
  return 0;
5077
 
}
5078
 
_ACEOF
5079
 
rm -f conftest.$ac_objext conftest$ac_exeext
5080
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081
 
  (eval $ac_link) 2>conftest.er1
5082
 
  ac_status=$?
5083
 
  grep -v '^ *+' conftest.er1 >conftest.err
5084
 
  rm -f conftest.er1
5085
 
  cat conftest.err >&5
5086
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087
 
  (exit $ac_status); } &&
5088
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5089
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090
 
  (eval $ac_try) 2>&5
5091
 
  ac_status=$?
5092
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093
 
  (exit $ac_status); }; } &&
5094
 
         { ac_try='test -s conftest$ac_exeext'
5095
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096
 
  (eval $ac_try) 2>&5
5097
 
  ac_status=$?
5098
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099
 
  (exit $ac_status); }; }; then
5100
 
  ac_cv_func_gethostname=yes
5101
 
else
5102
 
  echo "$as_me: failed program was:" >&5
5103
 
sed 's/^/| /' conftest.$ac_ext >&5
5104
 
 
5105
 
ac_cv_func_gethostname=no
5106
 
fi
5107
 
rm -f conftest.err conftest.$ac_objext \
5108
 
      conftest$ac_exeext conftest.$ac_ext
5109
 
fi
5110
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
5111
 
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
5112
 
if test $ac_cv_func_gethostname = yes; then
5113
 
  gethostname=1
5114
 
else
5115
 
  gethostname=0
 
2582
gethostname();
 
2583
#endif
 
2584
 
 
2585
; return 0; }
 
2586
EOF
 
2587
if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2588
  rm -rf conftest*
 
2589
  eval "ac_cv_func_gethostname=yes"
 
2590
else
 
2591
  echo "configure: failed program was:" >&5
 
2592
  cat conftest.$ac_ext >&5
 
2593
  rm -rf conftest*
 
2594
  eval "ac_cv_func_gethostname=no"
 
2595
fi
 
2596
rm -f conftest*
 
2597
fi
 
2598
 
 
2599
if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
 
2600
  echo "$ac_t""yes" 1>&6
 
2601
  gethostname=1 
 
2602
else
 
2603
  echo "$ac_t""no" 1>&6
 
2604
gethostname=0
5116
2605
fi
5117
2606
 
5118
2607
if test $gethostname -eq 0 ; then
5119
2608
  unset ac_cv_lib_inet_gethostname
5120
 
  echo "$as_me:$LINENO: checking for gethostname in -linet" >&5
5121
 
echo $ECHO_N "checking for gethostname in -linet... $ECHO_C" >&6
5122
 
if test "${ac_cv_lib_inet_gethostname+set}" = set; then
5123
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2609
  echo $ac_n "checking for gethostname in -linet""... $ac_c" 1>&6
 
2610
echo "configure:2611: checking for gethostname in -linet" >&5
 
2611
ac_lib_var=`echo inet'_'gethostname | sed 'y%./+-%__p_%'`
 
2612
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2613
  echo $ac_n "(cached) $ac_c" 1>&6
5124
2614
else
5125
 
  ac_check_lib_save_LIBS=$LIBS
 
2615
  ac_save_LIBS="$LIBS"
5126
2616
LIBS="-linet  $LIBS"
5127
 
cat >conftest.$ac_ext <<_ACEOF
5128
 
/* confdefs.h.  */
5129
 
_ACEOF
5130
 
cat confdefs.h >>conftest.$ac_ext
5131
 
cat >>conftest.$ac_ext <<_ACEOF
5132
 
/* end confdefs.h.  */
5133
 
 
 
2617
cat > conftest.$ac_ext <<EOF
 
2618
#line 2619 "configure"
 
2619
#include "confdefs.h"
5134
2620
/* Override any gcc2 internal prototype to avoid an error.  */
5135
 
#ifdef __cplusplus
5136
 
extern "C"
5137
 
#endif
5138
2621
/* We use char because int might match the return type of a gcc2
5139
 
   builtin and then its argument prototype would still apply.  */
5140
 
char gethostname ();
5141
 
int
5142
 
main ()
5143
 
{
5144
 
gethostname ();
5145
 
  ;
5146
 
  return 0;
5147
 
}
5148
 
_ACEOF
5149
 
rm -f conftest.$ac_objext conftest$ac_exeext
5150
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5151
 
  (eval $ac_link) 2>conftest.er1
5152
 
  ac_status=$?
5153
 
  grep -v '^ *+' conftest.er1 >conftest.err
5154
 
  rm -f conftest.er1
5155
 
  cat conftest.err >&5
5156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157
 
  (exit $ac_status); } &&
5158
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5159
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160
 
  (eval $ac_try) 2>&5
5161
 
  ac_status=$?
5162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163
 
  (exit $ac_status); }; } &&
5164
 
         { ac_try='test -s conftest$ac_exeext'
5165
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166
 
  (eval $ac_try) 2>&5
5167
 
  ac_status=$?
5168
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169
 
  (exit $ac_status); }; }; then
5170
 
  ac_cv_lib_inet_gethostname=yes
 
2622
    builtin and then its argument prototype would still apply.  */
 
2623
char gethostname();
 
2624
 
 
2625
int main() {
 
2626
gethostname()
 
2627
; return 0; }
 
2628
EOF
 
2629
if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2630
  rm -rf conftest*
 
2631
  eval "ac_cv_lib_$ac_lib_var=yes"
5171
2632
else
5172
 
  echo "$as_me: failed program was:" >&5
5173
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2633
  echo "configure: failed program was:" >&5
 
2634
  cat conftest.$ac_ext >&5
 
2635
  rm -rf conftest*
 
2636
  eval "ac_cv_lib_$ac_lib_var=no"
 
2637
fi
 
2638
rm -f conftest*
 
2639
LIBS="$ac_save_LIBS"
5174
2640
 
5175
 
ac_cv_lib_inet_gethostname=no
5176
 
fi
5177
 
rm -f conftest.err conftest.$ac_objext \
5178
 
      conftest$ac_exeext conftest.$ac_ext
5179
 
LIBS=$ac_check_lib_save_LIBS
5180
 
fi
5181
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_gethostname" >&5
5182
 
echo "${ECHO_T}$ac_cv_lib_inet_gethostname" >&6
5183
 
if test $ac_cv_lib_inet_gethostname = yes; then
 
2641
fi
 
2642
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2643
  echo "$ac_t""yes" 1>&6
5184
2644
  LIBS="$LIBS -linet"
 
2645
else
 
2646
  echo "$ac_t""no" 1>&6
5185
2647
fi
5186
2648
 
5187
2649
fi
5189
2651
EXP_AND_TCL_LIBS=$LIBS
5190
2652
LIBS=$EXP_AND_TK_LIBS
5191
2653
unset ac_cv_func_gethostname
5192
 
echo "$as_me:$LINENO: checking for gethostname" >&5
5193
 
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
5194
 
if test "${ac_cv_func_gethostname+set}" = set; then
5195
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2654
echo $ac_n "checking for gethostname""... $ac_c" 1>&6
 
2655
echo "configure:2656: checking for gethostname" >&5
 
2656
if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
 
2657
  echo $ac_n "(cached) $ac_c" 1>&6
5196
2658
else
5197
 
  cat >conftest.$ac_ext <<_ACEOF
5198
 
/* confdefs.h.  */
5199
 
_ACEOF
5200
 
cat confdefs.h >>conftest.$ac_ext
5201
 
cat >>conftest.$ac_ext <<_ACEOF
5202
 
/* end confdefs.h.  */
5203
 
/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
5204
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5205
 
#define gethostname innocuous_gethostname
5206
 
 
 
2659
  cat > conftest.$ac_ext <<EOF
 
2660
#line 2661 "configure"
 
2661
#include "confdefs.h"
5207
2662
/* System header to define __stub macros and hopefully few prototypes,
5208
 
    which can conflict with char gethostname (); below.
5209
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210
 
    <limits.h> exists even on freestanding compilers.  */
5211
 
 
5212
 
#ifdef __STDC__
5213
 
# include <limits.h>
5214
 
#else
5215
 
# include <assert.h>
5216
 
#endif
5217
 
 
5218
 
#undef gethostname
5219
 
 
 
2663
    which can conflict with char gethostname(); below.  */
 
2664
#include <assert.h>
5220
2665
/* Override any gcc2 internal prototype to avoid an error.  */
5221
 
#ifdef __cplusplus
5222
 
extern "C"
5223
 
{
5224
 
#endif
5225
2666
/* We use char because int might match the return type of a gcc2
5226
 
   builtin and then its argument prototype would still apply.  */
5227
 
char gethostname ();
 
2667
    builtin and then its argument prototype would still apply.  */
 
2668
char gethostname();
 
2669
 
 
2670
int main() {
 
2671
 
5228
2672
/* The GNU C library defines this for functions which it implements
5229
2673
    to always fail with ENOSYS.  Some functions are actually named
5230
2674
    something starting with __ and the normal name is an alias.  */
5231
2675
#if defined (__stub_gethostname) || defined (__stub___gethostname)
5232
2676
choke me
5233
2677
#else
5234
 
char (*f) () = gethostname;
5235
 
#endif
5236
 
#ifdef __cplusplus
5237
 
}
5238
 
#endif
5239
 
 
5240
 
int
5241
 
main ()
5242
 
{
5243
 
return f != gethostname;
5244
 
  ;
5245
 
  return 0;
5246
 
}
5247
 
_ACEOF
5248
 
rm -f conftest.$ac_objext conftest$ac_exeext
5249
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250
 
  (eval $ac_link) 2>conftest.er1
5251
 
  ac_status=$?
5252
 
  grep -v '^ *+' conftest.er1 >conftest.err
5253
 
  rm -f conftest.er1
5254
 
  cat conftest.err >&5
5255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256
 
  (exit $ac_status); } &&
5257
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259
 
  (eval $ac_try) 2>&5
5260
 
  ac_status=$?
5261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262
 
  (exit $ac_status); }; } &&
5263
 
         { ac_try='test -s conftest$ac_exeext'
5264
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265
 
  (eval $ac_try) 2>&5
5266
 
  ac_status=$?
5267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268
 
  (exit $ac_status); }; }; then
5269
 
  ac_cv_func_gethostname=yes
5270
 
else
5271
 
  echo "$as_me: failed program was:" >&5
5272
 
sed 's/^/| /' conftest.$ac_ext >&5
5273
 
 
5274
 
ac_cv_func_gethostname=no
5275
 
fi
5276
 
rm -f conftest.err conftest.$ac_objext \
5277
 
      conftest$ac_exeext conftest.$ac_ext
5278
 
fi
5279
 
echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
5280
 
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
5281
 
if test $ac_cv_func_gethostname = yes; then
5282
 
  gethostname=1
5283
 
else
5284
 
  gethostname=0
 
2678
gethostname();
 
2679
#endif
 
2680
 
 
2681
; return 0; }
 
2682
EOF
 
2683
if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2684
  rm -rf conftest*
 
2685
  eval "ac_cv_func_gethostname=yes"
 
2686
else
 
2687
  echo "configure: failed program was:" >&5
 
2688
  cat conftest.$ac_ext >&5
 
2689
  rm -rf conftest*
 
2690
  eval "ac_cv_func_gethostname=no"
 
2691
fi
 
2692
rm -f conftest*
 
2693
fi
 
2694
 
 
2695
if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
 
2696
  echo "$ac_t""yes" 1>&6
 
2697
  gethostname=1 
 
2698
else
 
2699
  echo "$ac_t""no" 1>&6
 
2700
gethostname=0
5285
2701
fi
5286
2702
 
5287
2703
if test $gethostname -eq 0 ; then
5288
2704
  unset ac_cv_lib_inet_gethostname
5289
 
  echo "$as_me:$LINENO: checking for gethostname in -linet" >&5
5290
 
echo $ECHO_N "checking for gethostname in -linet... $ECHO_C" >&6
5291
 
if test "${ac_cv_lib_inet_gethostname+set}" = set; then
5292
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2705
  echo $ac_n "checking for gethostname in -linet""... $ac_c" 1>&6
 
2706
echo "configure:2707: checking for gethostname in -linet" >&5
 
2707
ac_lib_var=`echo inet'_'gethostname | sed 'y%./+-%__p_%'`
 
2708
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2709
  echo $ac_n "(cached) $ac_c" 1>&6
5293
2710
else
5294
 
  ac_check_lib_save_LIBS=$LIBS
 
2711
  ac_save_LIBS="$LIBS"
5295
2712
LIBS="-linet  $LIBS"
5296
 
cat >conftest.$ac_ext <<_ACEOF
5297
 
/* confdefs.h.  */
5298
 
_ACEOF
5299
 
cat confdefs.h >>conftest.$ac_ext
5300
 
cat >>conftest.$ac_ext <<_ACEOF
5301
 
/* end confdefs.h.  */
5302
 
 
 
2713
cat > conftest.$ac_ext <<EOF
 
2714
#line 2715 "configure"
 
2715
#include "confdefs.h"
5303
2716
/* Override any gcc2 internal prototype to avoid an error.  */
5304
 
#ifdef __cplusplus
5305
 
extern "C"
5306
 
#endif
5307
2717
/* We use char because int might match the return type of a gcc2
5308
 
   builtin and then its argument prototype would still apply.  */
5309
 
char gethostname ();
5310
 
int
5311
 
main ()
5312
 
{
5313
 
gethostname ();
5314
 
  ;
5315
 
  return 0;
5316
 
}
5317
 
_ACEOF
5318
 
rm -f conftest.$ac_objext conftest$ac_exeext
5319
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5320
 
  (eval $ac_link) 2>conftest.er1
5321
 
  ac_status=$?
5322
 
  grep -v '^ *+' conftest.er1 >conftest.err
5323
 
  rm -f conftest.er1
5324
 
  cat conftest.err >&5
5325
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326
 
  (exit $ac_status); } &&
5327
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5328
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329
 
  (eval $ac_try) 2>&5
5330
 
  ac_status=$?
5331
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332
 
  (exit $ac_status); }; } &&
5333
 
         { ac_try='test -s conftest$ac_exeext'
5334
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335
 
  (eval $ac_try) 2>&5
5336
 
  ac_status=$?
5337
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338
 
  (exit $ac_status); }; }; then
5339
 
  ac_cv_lib_inet_gethostname=yes
 
2718
    builtin and then its argument prototype would still apply.  */
 
2719
char gethostname();
 
2720
 
 
2721
int main() {
 
2722
gethostname()
 
2723
; return 0; }
 
2724
EOF
 
2725
if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2726
  rm -rf conftest*
 
2727
  eval "ac_cv_lib_$ac_lib_var=yes"
5340
2728
else
5341
 
  echo "$as_me: failed program was:" >&5
5342
 
sed 's/^/| /' conftest.$ac_ext >&5
 
2729
  echo "configure: failed program was:" >&5
 
2730
  cat conftest.$ac_ext >&5
 
2731
  rm -rf conftest*
 
2732
  eval "ac_cv_lib_$ac_lib_var=no"
 
2733
fi
 
2734
rm -f conftest*
 
2735
LIBS="$ac_save_LIBS"
5343
2736
 
5344
 
ac_cv_lib_inet_gethostname=no
5345
 
fi
5346
 
rm -f conftest.err conftest.$ac_objext \
5347
 
      conftest$ac_exeext conftest.$ac_ext
5348
 
LIBS=$ac_check_lib_save_LIBS
5349
 
fi
5350
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_gethostname" >&5
5351
 
echo "${ECHO_T}$ac_cv_lib_inet_gethostname" >&6
5352
 
if test $ac_cv_lib_inet_gethostname = yes; then
 
2737
fi
 
2738
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2739
  echo "$ac_t""yes" 1>&6
5353
2740
  LIBS="$LIBS -linet"
 
2741
else
 
2742
  echo "$ac_t""no" 1>&6
5354
2743
fi
5355
2744
 
5356
2745
fi
5361
2750
######################################################################
5362
2751
# required by Fischman's ISC 4.0
5363
2752
unset ac_cv_func_socket
5364
 
echo "$as_me:$LINENO: checking for socket" >&5
5365
 
echo $ECHO_N "checking for socket... $ECHO_C" >&6
5366
 
if test "${ac_cv_func_socket+set}" = set; then
5367
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5368
 
else
5369
 
  cat >conftest.$ac_ext <<_ACEOF
5370
 
/* confdefs.h.  */
5371
 
_ACEOF
5372
 
cat confdefs.h >>conftest.$ac_ext
5373
 
cat >>conftest.$ac_ext <<_ACEOF
5374
 
/* end confdefs.h.  */
5375
 
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
5376
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5377
 
#define socket innocuous_socket
5378
 
 
5379
 
/* System header to define __stub macros and hopefully few prototypes,
5380
 
    which can conflict with char socket (); below.
5381
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5382
 
    <limits.h> exists even on freestanding compilers.  */
5383
 
 
5384
 
#ifdef __STDC__
5385
 
# include <limits.h>
5386
 
#else
5387
 
# include <assert.h>
5388
 
#endif
5389
 
 
5390
 
#undef socket
5391
 
 
5392
 
/* Override any gcc2 internal prototype to avoid an error.  */
5393
 
#ifdef __cplusplus
5394
 
extern "C"
5395
 
{
5396
 
#endif
5397
 
/* We use char because int might match the return type of a gcc2
5398
 
   builtin and then its argument prototype would still apply.  */
5399
 
char socket ();
5400
 
/* The GNU C library defines this for functions which it implements
5401
 
    to always fail with ENOSYS.  Some functions are actually named
5402
 
    something starting with __ and the normal name is an alias.  */
5403
 
#if defined (__stub_socket) || defined (__stub___socket)
5404
 
choke me
5405
 
#else
5406
 
char (*f) () = socket;
5407
 
#endif
5408
 
#ifdef __cplusplus
5409
 
}
5410
 
#endif
5411
 
 
5412
 
int
5413
 
main ()
5414
 
{
5415
 
return f != socket;
5416
 
  ;
5417
 
  return 0;
5418
 
}
5419
 
_ACEOF
5420
 
rm -f conftest.$ac_objext conftest$ac_exeext
5421
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422
 
  (eval $ac_link) 2>conftest.er1
5423
 
  ac_status=$?
5424
 
  grep -v '^ *+' conftest.er1 >conftest.err
5425
 
  rm -f conftest.er1
5426
 
  cat conftest.err >&5
5427
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428
 
  (exit $ac_status); } &&
5429
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5430
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431
 
  (eval $ac_try) 2>&5
5432
 
  ac_status=$?
5433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434
 
  (exit $ac_status); }; } &&
5435
 
         { ac_try='test -s conftest$ac_exeext'
5436
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437
 
  (eval $ac_try) 2>&5
5438
 
  ac_status=$?
5439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440
 
  (exit $ac_status); }; }; then
5441
 
  ac_cv_func_socket=yes
5442
 
else
5443
 
  echo "$as_me: failed program was:" >&5
5444
 
sed 's/^/| /' conftest.$ac_ext >&5
5445
 
 
5446
 
ac_cv_func_socket=no
5447
 
fi
5448
 
rm -f conftest.err conftest.$ac_objext \
5449
 
      conftest$ac_exeext conftest.$ac_ext
5450
 
fi
5451
 
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5452
 
echo "${ECHO_T}$ac_cv_func_socket" >&6
5453
 
if test $ac_cv_func_socket = yes; then
5454
 
  socket=1
5455
 
else
5456
 
  socket=0
5457
 
fi
5458
 
 
5459
 
if test $socket -eq 0 ; then
5460
 
  unset ac_cv_lib_inet_socket
5461
 
  echo "$as_me:$LINENO: checking for socket in -linet" >&5
5462
 
echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
5463
 
if test "${ac_cv_lib_inet_socket+set}" = set; then
5464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5465
 
else
5466
 
  ac_check_lib_save_LIBS=$LIBS
5467
 
LIBS="-linet  $LIBS"
5468
 
cat >conftest.$ac_ext <<_ACEOF
5469
 
/* confdefs.h.  */
5470
 
_ACEOF
5471
 
cat confdefs.h >>conftest.$ac_ext
5472
 
cat >>conftest.$ac_ext <<_ACEOF
5473
 
/* end confdefs.h.  */
5474
 
 
5475
 
/* Override any gcc2 internal prototype to avoid an error.  */
5476
 
#ifdef __cplusplus
5477
 
extern "C"
5478
 
#endif
5479
 
/* We use char because int might match the return type of a gcc2
5480
 
   builtin and then its argument prototype would still apply.  */
5481
 
char socket ();
5482
 
int
5483
 
main ()
5484
 
{
5485
 
socket ();
5486
 
  ;
5487
 
  return 0;
5488
 
}
5489
 
_ACEOF
5490
 
rm -f conftest.$ac_objext conftest$ac_exeext
5491
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492
 
  (eval $ac_link) 2>conftest.er1
5493
 
  ac_status=$?
5494
 
  grep -v '^ *+' conftest.er1 >conftest.err
5495
 
  rm -f conftest.er1
5496
 
  cat conftest.err >&5
5497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498
 
  (exit $ac_status); } &&
5499
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5500
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501
 
  (eval $ac_try) 2>&5
5502
 
  ac_status=$?
5503
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504
 
  (exit $ac_status); }; } &&
5505
 
         { ac_try='test -s conftest$ac_exeext'
5506
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507
 
  (eval $ac_try) 2>&5
5508
 
  ac_status=$?
5509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510
 
  (exit $ac_status); }; }; then
5511
 
  ac_cv_lib_inet_socket=yes
5512
 
else
5513
 
  echo "$as_me: failed program was:" >&5
5514
 
sed 's/^/| /' conftest.$ac_ext >&5
5515
 
 
5516
 
ac_cv_lib_inet_socket=no
5517
 
fi
5518
 
rm -f conftest.err conftest.$ac_objext \
5519
 
      conftest$ac_exeext conftest.$ac_ext
5520
 
LIBS=$ac_check_lib_save_LIBS
5521
 
fi
5522
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
5523
 
echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
5524
 
if test $ac_cv_lib_inet_socket = yes; then
5525
 
  LIBS="$LIBS -linet"
5526
 
fi
5527
 
 
5528
 
fi
5529
 
# save results and retry for Tcl
5530
 
EXP_LIBS=$LIBS
5531
 
LIBS=$EXP_AND_TCL_LIBS
5532
 
unset ac_cv_func_socket
5533
 
echo "$as_me:$LINENO: checking for socket" >&5
5534
 
echo $ECHO_N "checking for socket... $ECHO_C" >&6
5535
 
if test "${ac_cv_func_socket+set}" = set; then
5536
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5537
 
else
5538
 
  cat >conftest.$ac_ext <<_ACEOF
5539
 
/* confdefs.h.  */
5540
 
_ACEOF
5541
 
cat confdefs.h >>conftest.$ac_ext
5542
 
cat >>conftest.$ac_ext <<_ACEOF
5543
 
/* end confdefs.h.  */
5544
 
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
5545
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5546
 
#define socket innocuous_socket
5547
 
 
5548
 
/* System header to define __stub macros and hopefully few prototypes,
5549
 
    which can conflict with char socket (); below.
5550
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5551
 
    <limits.h> exists even on freestanding compilers.  */
5552
 
 
5553
 
#ifdef __STDC__
5554
 
# include <limits.h>
5555
 
#else
5556
 
# include <assert.h>
5557
 
#endif
5558
 
 
5559
 
#undef socket
5560
 
 
5561
 
/* Override any gcc2 internal prototype to avoid an error.  */
5562
 
#ifdef __cplusplus
5563
 
extern "C"
5564
 
{
5565
 
#endif
5566
 
/* We use char because int might match the return type of a gcc2
5567
 
   builtin and then its argument prototype would still apply.  */
5568
 
char socket ();
5569
 
/* The GNU C library defines this for functions which it implements
5570
 
    to always fail with ENOSYS.  Some functions are actually named
5571
 
    something starting with __ and the normal name is an alias.  */
5572
 
#if defined (__stub_socket) || defined (__stub___socket)
5573
 
choke me
5574
 
#else
5575
 
char (*f) () = socket;
5576
 
#endif
5577
 
#ifdef __cplusplus
5578
 
}
5579
 
#endif
5580
 
 
5581
 
int
5582
 
main ()
5583
 
{
5584
 
return f != socket;
5585
 
  ;
5586
 
  return 0;
5587
 
}
5588
 
_ACEOF
5589
 
rm -f conftest.$ac_objext conftest$ac_exeext
5590
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591
 
  (eval $ac_link) 2>conftest.er1
5592
 
  ac_status=$?
5593
 
  grep -v '^ *+' conftest.er1 >conftest.err
5594
 
  rm -f conftest.er1
5595
 
  cat conftest.err >&5
5596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597
 
  (exit $ac_status); } &&
5598
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5599
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600
 
  (eval $ac_try) 2>&5
5601
 
  ac_status=$?
5602
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603
 
  (exit $ac_status); }; } &&
5604
 
         { ac_try='test -s conftest$ac_exeext'
5605
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606
 
  (eval $ac_try) 2>&5
5607
 
  ac_status=$?
5608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609
 
  (exit $ac_status); }; }; then
5610
 
  ac_cv_func_socket=yes
5611
 
else
5612
 
  echo "$as_me: failed program was:" >&5
5613
 
sed 's/^/| /' conftest.$ac_ext >&5
5614
 
 
5615
 
ac_cv_func_socket=no
5616
 
fi
5617
 
rm -f conftest.err conftest.$ac_objext \
5618
 
      conftest$ac_exeext conftest.$ac_ext
5619
 
fi
5620
 
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5621
 
echo "${ECHO_T}$ac_cv_func_socket" >&6
5622
 
if test $ac_cv_func_socket = yes; then
5623
 
  socket=1
5624
 
else
5625
 
  socket=0
5626
 
fi
5627
 
 
5628
 
if test $socket -eq 0 ; then
5629
 
  unset ac_cv_lib_inet_socket
5630
 
  echo "$as_me:$LINENO: checking for socket in -linet" >&5
5631
 
echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
5632
 
if test "${ac_cv_lib_inet_socket+set}" = set; then
5633
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5634
 
else
5635
 
  ac_check_lib_save_LIBS=$LIBS
5636
 
LIBS="-linet  $LIBS"
5637
 
cat >conftest.$ac_ext <<_ACEOF
5638
 
/* confdefs.h.  */
5639
 
_ACEOF
5640
 
cat confdefs.h >>conftest.$ac_ext
5641
 
cat >>conftest.$ac_ext <<_ACEOF
5642
 
/* end confdefs.h.  */
5643
 
 
5644
 
/* Override any gcc2 internal prototype to avoid an error.  */
5645
 
#ifdef __cplusplus
5646
 
extern "C"
5647
 
#endif
5648
 
/* We use char because int might match the return type of a gcc2
5649
 
   builtin and then its argument prototype would still apply.  */
5650
 
char socket ();
5651
 
int
5652
 
main ()
5653
 
{
5654
 
socket ();
5655
 
  ;
5656
 
  return 0;
5657
 
}
5658
 
_ACEOF
5659
 
rm -f conftest.$ac_objext conftest$ac_exeext
5660
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5661
 
  (eval $ac_link) 2>conftest.er1
5662
 
  ac_status=$?
5663
 
  grep -v '^ *+' conftest.er1 >conftest.err
5664
 
  rm -f conftest.er1
5665
 
  cat conftest.err >&5
5666
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667
 
  (exit $ac_status); } &&
5668
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5669
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670
 
  (eval $ac_try) 2>&5
5671
 
  ac_status=$?
5672
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
 
  (exit $ac_status); }; } &&
5674
 
         { ac_try='test -s conftest$ac_exeext'
5675
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676
 
  (eval $ac_try) 2>&5
5677
 
  ac_status=$?
5678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679
 
  (exit $ac_status); }; }; then
5680
 
  ac_cv_lib_inet_socket=yes
5681
 
else
5682
 
  echo "$as_me: failed program was:" >&5
5683
 
sed 's/^/| /' conftest.$ac_ext >&5
5684
 
 
5685
 
ac_cv_lib_inet_socket=no
5686
 
fi
5687
 
rm -f conftest.err conftest.$ac_objext \
5688
 
      conftest$ac_exeext conftest.$ac_ext
5689
 
LIBS=$ac_check_lib_save_LIBS
5690
 
fi
5691
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
5692
 
echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
5693
 
if test $ac_cv_lib_inet_socket = yes; then
5694
 
  LIBS="$LIBS -linet"
5695
 
fi
5696
 
 
5697
 
fi
5698
 
# save Tcl results and retry for Tk
5699
 
EXP_AND_TCL_LIBS=$LIBS
5700
 
LIBS=$EXP_AND_TK_LIBS
5701
 
unset ac_cv_func_socket
5702
 
echo "$as_me:$LINENO: checking for socket" >&5
5703
 
echo $ECHO_N "checking for socket... $ECHO_C" >&6
5704
 
if test "${ac_cv_func_socket+set}" = set; then
5705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5706
 
else
5707
 
  cat >conftest.$ac_ext <<_ACEOF
5708
 
/* confdefs.h.  */
5709
 
_ACEOF
5710
 
cat confdefs.h >>conftest.$ac_ext
5711
 
cat >>conftest.$ac_ext <<_ACEOF
5712
 
/* end confdefs.h.  */
5713
 
/* Define socket to an innocuous variant, in case <limits.h> declares socket.
5714
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5715
 
#define socket innocuous_socket
5716
 
 
5717
 
/* System header to define __stub macros and hopefully few prototypes,
5718
 
    which can conflict with char socket (); below.
5719
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720
 
    <limits.h> exists even on freestanding compilers.  */
5721
 
 
5722
 
#ifdef __STDC__
5723
 
# include <limits.h>
5724
 
#else
5725
 
# include <assert.h>
5726
 
#endif
5727
 
 
5728
 
#undef socket
5729
 
 
5730
 
/* Override any gcc2 internal prototype to avoid an error.  */
5731
 
#ifdef __cplusplus
5732
 
extern "C"
5733
 
{
5734
 
#endif
5735
 
/* We use char because int might match the return type of a gcc2
5736
 
   builtin and then its argument prototype would still apply.  */
5737
 
char socket ();
5738
 
/* The GNU C library defines this for functions which it implements
5739
 
    to always fail with ENOSYS.  Some functions are actually named
5740
 
    something starting with __ and the normal name is an alias.  */
5741
 
#if defined (__stub_socket) || defined (__stub___socket)
5742
 
choke me
5743
 
#else
5744
 
char (*f) () = socket;
5745
 
#endif
5746
 
#ifdef __cplusplus
5747
 
}
5748
 
#endif
5749
 
 
5750
 
int
5751
 
main ()
5752
 
{
5753
 
return f != socket;
5754
 
  ;
5755
 
  return 0;
5756
 
}
5757
 
_ACEOF
5758
 
rm -f conftest.$ac_objext conftest$ac_exeext
5759
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760
 
  (eval $ac_link) 2>conftest.er1
5761
 
  ac_status=$?
5762
 
  grep -v '^ *+' conftest.er1 >conftest.err
5763
 
  rm -f conftest.er1
5764
 
  cat conftest.err >&5
5765
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766
 
  (exit $ac_status); } &&
5767
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5768
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769
 
  (eval $ac_try) 2>&5
5770
 
  ac_status=$?
5771
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772
 
  (exit $ac_status); }; } &&
5773
 
         { ac_try='test -s conftest$ac_exeext'
5774
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775
 
  (eval $ac_try) 2>&5
5776
 
  ac_status=$?
5777
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778
 
  (exit $ac_status); }; }; then
5779
 
  ac_cv_func_socket=yes
5780
 
else
5781
 
  echo "$as_me: failed program was:" >&5
5782
 
sed 's/^/| /' conftest.$ac_ext >&5
5783
 
 
5784
 
ac_cv_func_socket=no
5785
 
fi
5786
 
rm -f conftest.err conftest.$ac_objext \
5787
 
      conftest$ac_exeext conftest.$ac_ext
5788
 
fi
5789
 
echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5790
 
echo "${ECHO_T}$ac_cv_func_socket" >&6
5791
 
if test $ac_cv_func_socket = yes; then
5792
 
  socket=1
5793
 
else
5794
 
  socket=0
5795
 
fi
5796
 
 
5797
 
if test $socket -eq 0 ; then
5798
 
  unset ac_cv_lib_inet_socket
5799
 
  echo "$as_me:$LINENO: checking for socket in -linet" >&5
5800
 
echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
5801
 
if test "${ac_cv_lib_inet_socket+set}" = set; then
5802
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5803
 
else
5804
 
  ac_check_lib_save_LIBS=$LIBS
5805
 
LIBS="-linet  $LIBS"
5806
 
cat >conftest.$ac_ext <<_ACEOF
5807
 
/* confdefs.h.  */
5808
 
_ACEOF
5809
 
cat confdefs.h >>conftest.$ac_ext
5810
 
cat >>conftest.$ac_ext <<_ACEOF
5811
 
/* end confdefs.h.  */
5812
 
 
5813
 
/* Override any gcc2 internal prototype to avoid an error.  */
5814
 
#ifdef __cplusplus
5815
 
extern "C"
5816
 
#endif
5817
 
/* We use char because int might match the return type of a gcc2
5818
 
   builtin and then its argument prototype would still apply.  */
5819
 
char socket ();
5820
 
int
5821
 
main ()
5822
 
{
5823
 
socket ();
5824
 
  ;
5825
 
  return 0;
5826
 
}
5827
 
_ACEOF
5828
 
rm -f conftest.$ac_objext conftest$ac_exeext
5829
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830
 
  (eval $ac_link) 2>conftest.er1
5831
 
  ac_status=$?
5832
 
  grep -v '^ *+' conftest.er1 >conftest.err
5833
 
  rm -f conftest.er1
5834
 
  cat conftest.err >&5
5835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836
 
  (exit $ac_status); } &&
5837
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5838
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839
 
  (eval $ac_try) 2>&5
5840
 
  ac_status=$?
5841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842
 
  (exit $ac_status); }; } &&
5843
 
         { ac_try='test -s conftest$ac_exeext'
5844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845
 
  (eval $ac_try) 2>&5
5846
 
  ac_status=$?
5847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848
 
  (exit $ac_status); }; }; then
5849
 
  ac_cv_lib_inet_socket=yes
5850
 
else
5851
 
  echo "$as_me: failed program was:" >&5
5852
 
sed 's/^/| /' conftest.$ac_ext >&5
5853
 
 
5854
 
ac_cv_lib_inet_socket=no
5855
 
fi
5856
 
rm -f conftest.err conftest.$ac_objext \
5857
 
      conftest$ac_exeext conftest.$ac_ext
5858
 
LIBS=$ac_check_lib_save_LIBS
5859
 
fi
5860
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
5861
 
echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
5862
 
if test $ac_cv_lib_inet_socket = yes; then
5863
 
  LIBS="$LIBS -linet"
5864
 
fi
5865
 
 
5866
 
fi
5867
 
# save Tk results and reset for Expect
5868
 
EXP_AND_TK_LIBS=$LIBS
5869
 
LIBS=$EXP_LIBS
5870
 
 
5871
 
######################################################################
5872
 
unset ac_cv_func_select
5873
 
echo "$as_me:$LINENO: checking for select" >&5
5874
 
echo $ECHO_N "checking for select... $ECHO_C" >&6
5875
 
if test "${ac_cv_func_select+set}" = set; then
5876
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5877
 
else
5878
 
  cat >conftest.$ac_ext <<_ACEOF
5879
 
/* confdefs.h.  */
5880
 
_ACEOF
5881
 
cat confdefs.h >>conftest.$ac_ext
5882
 
cat >>conftest.$ac_ext <<_ACEOF
5883
 
/* end confdefs.h.  */
5884
 
/* Define select to an innocuous variant, in case <limits.h> declares select.
5885
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5886
 
#define select innocuous_select
5887
 
 
5888
 
/* System header to define __stub macros and hopefully few prototypes,
5889
 
    which can conflict with char select (); below.
5890
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891
 
    <limits.h> exists even on freestanding compilers.  */
5892
 
 
5893
 
#ifdef __STDC__
5894
 
# include <limits.h>
5895
 
#else
5896
 
# include <assert.h>
5897
 
#endif
5898
 
 
5899
 
#undef select
5900
 
 
5901
 
/* Override any gcc2 internal prototype to avoid an error.  */
5902
 
#ifdef __cplusplus
5903
 
extern "C"
5904
 
{
5905
 
#endif
5906
 
/* We use char because int might match the return type of a gcc2
5907
 
   builtin and then its argument prototype would still apply.  */
5908
 
char select ();
5909
 
/* The GNU C library defines this for functions which it implements
5910
 
    to always fail with ENOSYS.  Some functions are actually named
5911
 
    something starting with __ and the normal name is an alias.  */
5912
 
#if defined (__stub_select) || defined (__stub___select)
5913
 
choke me
5914
 
#else
5915
 
char (*f) () = select;
5916
 
#endif
5917
 
#ifdef __cplusplus
5918
 
}
5919
 
#endif
5920
 
 
5921
 
int
5922
 
main ()
5923
 
{
5924
 
return f != select;
5925
 
  ;
5926
 
  return 0;
5927
 
}
5928
 
_ACEOF
5929
 
rm -f conftest.$ac_objext conftest$ac_exeext
5930
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931
 
  (eval $ac_link) 2>conftest.er1
5932
 
  ac_status=$?
5933
 
  grep -v '^ *+' conftest.er1 >conftest.err
5934
 
  rm -f conftest.er1
5935
 
  cat conftest.err >&5
5936
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937
 
  (exit $ac_status); } &&
5938
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5939
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940
 
  (eval $ac_try) 2>&5
5941
 
  ac_status=$?
5942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
 
  (exit $ac_status); }; } &&
5944
 
         { ac_try='test -s conftest$ac_exeext'
5945
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946
 
  (eval $ac_try) 2>&5
5947
 
  ac_status=$?
5948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949
 
  (exit $ac_status); }; }; then
5950
 
  ac_cv_func_select=yes
5951
 
else
5952
 
  echo "$as_me: failed program was:" >&5
5953
 
sed 's/^/| /' conftest.$ac_ext >&5
5954
 
 
5955
 
ac_cv_func_select=no
5956
 
fi
5957
 
rm -f conftest.err conftest.$ac_objext \
5958
 
      conftest$ac_exeext conftest.$ac_ext
5959
 
fi
5960
 
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
5961
 
echo "${ECHO_T}$ac_cv_func_select" >&6
5962
 
if test $ac_cv_func_select = yes; then
5963
 
  select=1
5964
 
else
5965
 
  select=0
5966
 
fi
5967
 
 
5968
 
if test $select -eq 0 ; then
5969
 
  unset ac_cv_lib_inet_select
5970
 
  echo "$as_me:$LINENO: checking for select in -linet" >&5
5971
 
echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
5972
 
if test "${ac_cv_lib_inet_select+set}" = set; then
5973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5974
 
else
5975
 
  ac_check_lib_save_LIBS=$LIBS
5976
 
LIBS="-linet  $LIBS"
5977
 
cat >conftest.$ac_ext <<_ACEOF
5978
 
/* confdefs.h.  */
5979
 
_ACEOF
5980
 
cat confdefs.h >>conftest.$ac_ext
5981
 
cat >>conftest.$ac_ext <<_ACEOF
5982
 
/* end confdefs.h.  */
5983
 
 
5984
 
/* Override any gcc2 internal prototype to avoid an error.  */
5985
 
#ifdef __cplusplus
5986
 
extern "C"
5987
 
#endif
5988
 
/* We use char because int might match the return type of a gcc2
5989
 
   builtin and then its argument prototype would still apply.  */
5990
 
char select ();
5991
 
int
5992
 
main ()
5993
 
{
5994
 
select ();
5995
 
  ;
5996
 
  return 0;
5997
 
}
5998
 
_ACEOF
5999
 
rm -f conftest.$ac_objext conftest$ac_exeext
6000
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6001
 
  (eval $ac_link) 2>conftest.er1
6002
 
  ac_status=$?
6003
 
  grep -v '^ *+' conftest.er1 >conftest.err
6004
 
  rm -f conftest.er1
6005
 
  cat conftest.err >&5
6006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007
 
  (exit $ac_status); } &&
6008
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6009
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010
 
  (eval $ac_try) 2>&5
6011
 
  ac_status=$?
6012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013
 
  (exit $ac_status); }; } &&
6014
 
         { ac_try='test -s conftest$ac_exeext'
6015
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016
 
  (eval $ac_try) 2>&5
6017
 
  ac_status=$?
6018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019
 
  (exit $ac_status); }; }; then
6020
 
  ac_cv_lib_inet_select=yes
6021
 
else
6022
 
  echo "$as_me: failed program was:" >&5
6023
 
sed 's/^/| /' conftest.$ac_ext >&5
6024
 
 
6025
 
ac_cv_lib_inet_select=no
6026
 
fi
6027
 
rm -f conftest.err conftest.$ac_objext \
6028
 
      conftest$ac_exeext conftest.$ac_ext
6029
 
LIBS=$ac_check_lib_save_LIBS
6030
 
fi
6031
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
6032
 
echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
6033
 
if test $ac_cv_lib_inet_select = yes; then
6034
 
  LIBS="$LIBS -linet"
6035
 
fi
6036
 
 
6037
 
fi
6038
 
# save results and retry for Tcl
6039
 
EXP_LIBS=$LIBS
6040
 
LIBS=$EXP_AND_TCL_LIBS
6041
 
unset ac_cv_func_select
6042
 
echo "$as_me:$LINENO: checking for select" >&5
6043
 
echo $ECHO_N "checking for select... $ECHO_C" >&6
6044
 
if test "${ac_cv_func_select+set}" = set; then
6045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6046
 
else
6047
 
  cat >conftest.$ac_ext <<_ACEOF
6048
 
/* confdefs.h.  */
6049
 
_ACEOF
6050
 
cat confdefs.h >>conftest.$ac_ext
6051
 
cat >>conftest.$ac_ext <<_ACEOF
6052
 
/* end confdefs.h.  */
6053
 
/* Define select to an innocuous variant, in case <limits.h> declares select.
6054
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6055
 
#define select innocuous_select
6056
 
 
6057
 
/* System header to define __stub macros and hopefully few prototypes,
6058
 
    which can conflict with char select (); below.
6059
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060
 
    <limits.h> exists even on freestanding compilers.  */
6061
 
 
6062
 
#ifdef __STDC__
6063
 
# include <limits.h>
6064
 
#else
6065
 
# include <assert.h>
6066
 
#endif
6067
 
 
6068
 
#undef select
6069
 
 
6070
 
/* Override any gcc2 internal prototype to avoid an error.  */
6071
 
#ifdef __cplusplus
6072
 
extern "C"
6073
 
{
6074
 
#endif
6075
 
/* We use char because int might match the return type of a gcc2
6076
 
   builtin and then its argument prototype would still apply.  */
6077
 
char select ();
6078
 
/* The GNU C library defines this for functions which it implements
6079
 
    to always fail with ENOSYS.  Some functions are actually named
6080
 
    something starting with __ and the normal name is an alias.  */
6081
 
#if defined (__stub_select) || defined (__stub___select)
6082
 
choke me
6083
 
#else
6084
 
char (*f) () = select;
6085
 
#endif
6086
 
#ifdef __cplusplus
6087
 
}
6088
 
#endif
6089
 
 
6090
 
int
6091
 
main ()
6092
 
{
6093
 
return f != select;
6094
 
  ;
6095
 
  return 0;
6096
 
}
6097
 
_ACEOF
6098
 
rm -f conftest.$ac_objext conftest$ac_exeext
6099
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100
 
  (eval $ac_link) 2>conftest.er1
6101
 
  ac_status=$?
6102
 
  grep -v '^ *+' conftest.er1 >conftest.err
6103
 
  rm -f conftest.er1
6104
 
  cat conftest.err >&5
6105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106
 
  (exit $ac_status); } &&
6107
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109
 
  (eval $ac_try) 2>&5
6110
 
  ac_status=$?
6111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112
 
  (exit $ac_status); }; } &&
6113
 
         { ac_try='test -s conftest$ac_exeext'
6114
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115
 
  (eval $ac_try) 2>&5
6116
 
  ac_status=$?
6117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118
 
  (exit $ac_status); }; }; then
6119
 
  ac_cv_func_select=yes
6120
 
else
6121
 
  echo "$as_me: failed program was:" >&5
6122
 
sed 's/^/| /' conftest.$ac_ext >&5
6123
 
 
6124
 
ac_cv_func_select=no
6125
 
fi
6126
 
rm -f conftest.err conftest.$ac_objext \
6127
 
      conftest$ac_exeext conftest.$ac_ext
6128
 
fi
6129
 
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
6130
 
echo "${ECHO_T}$ac_cv_func_select" >&6
6131
 
if test $ac_cv_func_select = yes; then
6132
 
  select=1
6133
 
else
6134
 
  select=0
6135
 
fi
6136
 
 
6137
 
if test $select -eq 0 ; then
6138
 
  unset ac_cv_lib_inet_select
6139
 
  echo "$as_me:$LINENO: checking for select in -linet" >&5
6140
 
echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
6141
 
if test "${ac_cv_lib_inet_select+set}" = set; then
6142
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6143
 
else
6144
 
  ac_check_lib_save_LIBS=$LIBS
6145
 
LIBS="-linet  $LIBS"
6146
 
cat >conftest.$ac_ext <<_ACEOF
6147
 
/* confdefs.h.  */
6148
 
_ACEOF
6149
 
cat confdefs.h >>conftest.$ac_ext
6150
 
cat >>conftest.$ac_ext <<_ACEOF
6151
 
/* end confdefs.h.  */
6152
 
 
6153
 
/* Override any gcc2 internal prototype to avoid an error.  */
6154
 
#ifdef __cplusplus
6155
 
extern "C"
6156
 
#endif
6157
 
/* We use char because int might match the return type of a gcc2
6158
 
   builtin and then its argument prototype would still apply.  */
6159
 
char select ();
6160
 
int
6161
 
main ()
6162
 
{
6163
 
select ();
6164
 
  ;
6165
 
  return 0;
6166
 
}
6167
 
_ACEOF
6168
 
rm -f conftest.$ac_objext conftest$ac_exeext
6169
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170
 
  (eval $ac_link) 2>conftest.er1
6171
 
  ac_status=$?
6172
 
  grep -v '^ *+' conftest.er1 >conftest.err
6173
 
  rm -f conftest.er1
6174
 
  cat conftest.err >&5
6175
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176
 
  (exit $ac_status); } &&
6177
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6178
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179
 
  (eval $ac_try) 2>&5
6180
 
  ac_status=$?
6181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
 
  (exit $ac_status); }; } &&
6183
 
         { ac_try='test -s conftest$ac_exeext'
6184
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185
 
  (eval $ac_try) 2>&5
6186
 
  ac_status=$?
6187
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188
 
  (exit $ac_status); }; }; then
6189
 
  ac_cv_lib_inet_select=yes
6190
 
else
6191
 
  echo "$as_me: failed program was:" >&5
6192
 
sed 's/^/| /' conftest.$ac_ext >&5
6193
 
 
6194
 
ac_cv_lib_inet_select=no
6195
 
fi
6196
 
rm -f conftest.err conftest.$ac_objext \
6197
 
      conftest$ac_exeext conftest.$ac_ext
6198
 
LIBS=$ac_check_lib_save_LIBS
6199
 
fi
6200
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
6201
 
echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
6202
 
if test $ac_cv_lib_inet_select = yes; then
6203
 
  LIBS="$LIBS -linet"
6204
 
fi
6205
 
 
6206
 
fi
6207
 
# save Tcl results and retry for Tk
6208
 
EXP_AND_TCL_LIBS=$LIBS
6209
 
LIBS=$EXP_AND_TK_LIBS
6210
 
unset ac_cv_func_select
6211
 
echo "$as_me:$LINENO: checking for select" >&5
6212
 
echo $ECHO_N "checking for select... $ECHO_C" >&6
6213
 
if test "${ac_cv_func_select+set}" = set; then
6214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6215
 
else
6216
 
  cat >conftest.$ac_ext <<_ACEOF
6217
 
/* confdefs.h.  */
6218
 
_ACEOF
6219
 
cat confdefs.h >>conftest.$ac_ext
6220
 
cat >>conftest.$ac_ext <<_ACEOF
6221
 
/* end confdefs.h.  */
6222
 
/* Define select to an innocuous variant, in case <limits.h> declares select.
6223
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6224
 
#define select innocuous_select
6225
 
 
6226
 
/* System header to define __stub macros and hopefully few prototypes,
6227
 
    which can conflict with char select (); below.
6228
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229
 
    <limits.h> exists even on freestanding compilers.  */
6230
 
 
6231
 
#ifdef __STDC__
6232
 
# include <limits.h>
6233
 
#else
6234
 
# include <assert.h>
6235
 
#endif
6236
 
 
6237
 
#undef select
6238
 
 
6239
 
/* Override any gcc2 internal prototype to avoid an error.  */
6240
 
#ifdef __cplusplus
6241
 
extern "C"
6242
 
{
6243
 
#endif
6244
 
/* We use char because int might match the return type of a gcc2
6245
 
   builtin and then its argument prototype would still apply.  */
6246
 
char select ();
6247
 
/* The GNU C library defines this for functions which it implements
6248
 
    to always fail with ENOSYS.  Some functions are actually named
6249
 
    something starting with __ and the normal name is an alias.  */
6250
 
#if defined (__stub_select) || defined (__stub___select)
6251
 
choke me
6252
 
#else
6253
 
char (*f) () = select;
6254
 
#endif
6255
 
#ifdef __cplusplus
6256
 
}
6257
 
#endif
6258
 
 
6259
 
int
6260
 
main ()
6261
 
{
6262
 
return f != select;
6263
 
  ;
6264
 
  return 0;
6265
 
}
6266
 
_ACEOF
6267
 
rm -f conftest.$ac_objext conftest$ac_exeext
6268
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269
 
  (eval $ac_link) 2>conftest.er1
6270
 
  ac_status=$?
6271
 
  grep -v '^ *+' conftest.er1 >conftest.err
6272
 
  rm -f conftest.er1
6273
 
  cat conftest.err >&5
6274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275
 
  (exit $ac_status); } &&
6276
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6277
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278
 
  (eval $ac_try) 2>&5
6279
 
  ac_status=$?
6280
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281
 
  (exit $ac_status); }; } &&
6282
 
         { ac_try='test -s conftest$ac_exeext'
6283
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284
 
  (eval $ac_try) 2>&5
6285
 
  ac_status=$?
6286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
 
  (exit $ac_status); }; }; then
6288
 
  ac_cv_func_select=yes
6289
 
else
6290
 
  echo "$as_me: failed program was:" >&5
6291
 
sed 's/^/| /' conftest.$ac_ext >&5
6292
 
 
6293
 
ac_cv_func_select=no
6294
 
fi
6295
 
rm -f conftest.err conftest.$ac_objext \
6296
 
      conftest$ac_exeext conftest.$ac_ext
6297
 
fi
6298
 
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
6299
 
echo "${ECHO_T}$ac_cv_func_select" >&6
6300
 
if test $ac_cv_func_select = yes; then
6301
 
  select=1
6302
 
else
6303
 
  select=0
6304
 
fi
6305
 
 
6306
 
if test $select -eq 0 ; then
6307
 
  unset ac_cv_lib_inet_select
6308
 
  echo "$as_me:$LINENO: checking for select in -linet" >&5
6309
 
echo $ECHO_N "checking for select in -linet... $ECHO_C" >&6
6310
 
if test "${ac_cv_lib_inet_select+set}" = set; then
6311
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6312
 
else
6313
 
  ac_check_lib_save_LIBS=$LIBS
6314
 
LIBS="-linet  $LIBS"
6315
 
cat >conftest.$ac_ext <<_ACEOF
6316
 
/* confdefs.h.  */
6317
 
_ACEOF
6318
 
cat confdefs.h >>conftest.$ac_ext
6319
 
cat >>conftest.$ac_ext <<_ACEOF
6320
 
/* end confdefs.h.  */
6321
 
 
6322
 
/* Override any gcc2 internal prototype to avoid an error.  */
6323
 
#ifdef __cplusplus
6324
 
extern "C"
6325
 
#endif
6326
 
/* We use char because int might match the return type of a gcc2
6327
 
   builtin and then its argument prototype would still apply.  */
6328
 
char select ();
6329
 
int
6330
 
main ()
6331
 
{
6332
 
select ();
6333
 
  ;
6334
 
  return 0;
6335
 
}
6336
 
_ACEOF
6337
 
rm -f conftest.$ac_objext conftest$ac_exeext
6338
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339
 
  (eval $ac_link) 2>conftest.er1
6340
 
  ac_status=$?
6341
 
  grep -v '^ *+' conftest.er1 >conftest.err
6342
 
  rm -f conftest.er1
6343
 
  cat conftest.err >&5
6344
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345
 
  (exit $ac_status); } &&
6346
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6347
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348
 
  (eval $ac_try) 2>&5
6349
 
  ac_status=$?
6350
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351
 
  (exit $ac_status); }; } &&
6352
 
         { ac_try='test -s conftest$ac_exeext'
6353
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354
 
  (eval $ac_try) 2>&5
6355
 
  ac_status=$?
6356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357
 
  (exit $ac_status); }; }; then
6358
 
  ac_cv_lib_inet_select=yes
6359
 
else
6360
 
  echo "$as_me: failed program was:" >&5
6361
 
sed 's/^/| /' conftest.$ac_ext >&5
6362
 
 
6363
 
ac_cv_lib_inet_select=no
6364
 
fi
6365
 
rm -f conftest.err conftest.$ac_objext \
6366
 
      conftest$ac_exeext conftest.$ac_ext
6367
 
LIBS=$ac_check_lib_save_LIBS
6368
 
fi
6369
 
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_select" >&5
6370
 
echo "${ECHO_T}$ac_cv_lib_inet_select" >&6
6371
 
if test $ac_cv_lib_inet_select = yes; then
6372
 
  LIBS="$LIBS -linet"
6373
 
fi
6374
 
 
6375
 
fi
6376
 
# save Tk results and reset for Expect
6377
 
EXP_AND_TK_LIBS=$LIBS
6378
 
LIBS=$EXP_LIBS
6379
 
 
6380
 
######################################################################
6381
 
unset ac_cv_func_getpseudotty
6382
 
echo "$as_me:$LINENO: checking for getpseudotty" >&5
6383
 
echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
6384
 
if test "${ac_cv_func_getpseudotty+set}" = set; then
6385
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6386
 
else
6387
 
  cat >conftest.$ac_ext <<_ACEOF
6388
 
/* confdefs.h.  */
6389
 
_ACEOF
6390
 
cat confdefs.h >>conftest.$ac_ext
6391
 
cat >>conftest.$ac_ext <<_ACEOF
6392
 
/* end confdefs.h.  */
6393
 
/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
6394
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6395
 
#define getpseudotty innocuous_getpseudotty
6396
 
 
6397
 
/* System header to define __stub macros and hopefully few prototypes,
6398
 
    which can conflict with char getpseudotty (); below.
6399
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400
 
    <limits.h> exists even on freestanding compilers.  */
6401
 
 
6402
 
#ifdef __STDC__
6403
 
# include <limits.h>
6404
 
#else
6405
 
# include <assert.h>
6406
 
#endif
6407
 
 
6408
 
#undef getpseudotty
6409
 
 
6410
 
/* Override any gcc2 internal prototype to avoid an error.  */
6411
 
#ifdef __cplusplus
6412
 
extern "C"
6413
 
{
6414
 
#endif
6415
 
/* We use char because int might match the return type of a gcc2
6416
 
   builtin and then its argument prototype would still apply.  */
6417
 
char getpseudotty ();
6418
 
/* The GNU C library defines this for functions which it implements
6419
 
    to always fail with ENOSYS.  Some functions are actually named
6420
 
    something starting with __ and the normal name is an alias.  */
6421
 
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
6422
 
choke me
6423
 
#else
6424
 
char (*f) () = getpseudotty;
6425
 
#endif
6426
 
#ifdef __cplusplus
6427
 
}
6428
 
#endif
6429
 
 
6430
 
int
6431
 
main ()
6432
 
{
6433
 
return f != getpseudotty;
6434
 
  ;
6435
 
  return 0;
6436
 
}
6437
 
_ACEOF
6438
 
rm -f conftest.$ac_objext conftest$ac_exeext
6439
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440
 
  (eval $ac_link) 2>conftest.er1
6441
 
  ac_status=$?
6442
 
  grep -v '^ *+' conftest.er1 >conftest.err
6443
 
  rm -f conftest.er1
6444
 
  cat conftest.err >&5
6445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446
 
  (exit $ac_status); } &&
6447
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6448
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449
 
  (eval $ac_try) 2>&5
6450
 
  ac_status=$?
6451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452
 
  (exit $ac_status); }; } &&
6453
 
         { ac_try='test -s conftest$ac_exeext'
6454
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455
 
  (eval $ac_try) 2>&5
6456
 
  ac_status=$?
6457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458
 
  (exit $ac_status); }; }; then
6459
 
  ac_cv_func_getpseudotty=yes
6460
 
else
6461
 
  echo "$as_me: failed program was:" >&5
6462
 
sed 's/^/| /' conftest.$ac_ext >&5
6463
 
 
6464
 
ac_cv_func_getpseudotty=no
6465
 
fi
6466
 
rm -f conftest.err conftest.$ac_objext \
6467
 
      conftest$ac_exeext conftest.$ac_ext
6468
 
fi
6469
 
echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
6470
 
echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
6471
 
if test $ac_cv_func_getpseudotty = yes; then
6472
 
  getpseudotty=1
6473
 
else
6474
 
  getpseudotty=0
6475
 
fi
6476
 
 
6477
 
if test $getpseudotty -eq 0 ; then
6478
 
  unset ac_cv_lib_seq_getpseudotty
6479
 
 
6480
 
echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
6481
 
echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
6482
 
if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
6483
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6484
 
else
6485
 
  ac_check_lib_save_LIBS=$LIBS
6486
 
LIBS="-lseq  $LIBS"
6487
 
cat >conftest.$ac_ext <<_ACEOF
6488
 
/* confdefs.h.  */
6489
 
_ACEOF
6490
 
cat confdefs.h >>conftest.$ac_ext
6491
 
cat >>conftest.$ac_ext <<_ACEOF
6492
 
/* end confdefs.h.  */
6493
 
 
6494
 
/* Override any gcc2 internal prototype to avoid an error.  */
6495
 
#ifdef __cplusplus
6496
 
extern "C"
6497
 
#endif
6498
 
/* We use char because int might match the return type of a gcc2
6499
 
   builtin and then its argument prototype would still apply.  */
6500
 
char getpseudotty ();
6501
 
int
6502
 
main ()
6503
 
{
6504
 
getpseudotty ();
6505
 
  ;
6506
 
  return 0;
6507
 
}
6508
 
_ACEOF
6509
 
rm -f conftest.$ac_objext conftest$ac_exeext
6510
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511
 
  (eval $ac_link) 2>conftest.er1
6512
 
  ac_status=$?
6513
 
  grep -v '^ *+' conftest.er1 >conftest.err
6514
 
  rm -f conftest.er1
6515
 
  cat conftest.err >&5
6516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517
 
  (exit $ac_status); } &&
6518
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6519
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520
 
  (eval $ac_try) 2>&5
6521
 
  ac_status=$?
6522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523
 
  (exit $ac_status); }; } &&
6524
 
         { ac_try='test -s conftest$ac_exeext'
6525
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526
 
  (eval $ac_try) 2>&5
6527
 
  ac_status=$?
6528
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529
 
  (exit $ac_status); }; }; then
6530
 
  ac_cv_lib_seq_getpseudotty=yes
6531
 
else
6532
 
  echo "$as_me: failed program was:" >&5
6533
 
sed 's/^/| /' conftest.$ac_ext >&5
6534
 
 
6535
 
ac_cv_lib_seq_getpseudotty=no
6536
 
fi
6537
 
rm -f conftest.err conftest.$ac_objext \
6538
 
      conftest$ac_exeext conftest.$ac_ext
6539
 
LIBS=$ac_check_lib_save_LIBS
6540
 
fi
6541
 
echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
6542
 
echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
6543
 
if test $ac_cv_lib_seq_getpseudotty = yes; then
6544
 
  cat >>confdefs.h <<_ACEOF
6545
 
#define HAVE_LIBSEQ 1
6546
 
_ACEOF
6547
 
 
6548
 
  LIBS="-lseq $LIBS"
6549
 
 
6550
 
fi
6551
 
 
6552
 
fi
6553
 
# save results and retry for Tcl
6554
 
EXP_LIBS=$LIBS
6555
 
LIBS=$EXP_AND_TCL_LIBS
6556
 
unset ac_cv_func_getpseudotty
6557
 
echo "$as_me:$LINENO: checking for getpseudotty" >&5
6558
 
echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
6559
 
if test "${ac_cv_func_getpseudotty+set}" = set; then
6560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6561
 
else
6562
 
  cat >conftest.$ac_ext <<_ACEOF
6563
 
/* confdefs.h.  */
6564
 
_ACEOF
6565
 
cat confdefs.h >>conftest.$ac_ext
6566
 
cat >>conftest.$ac_ext <<_ACEOF
6567
 
/* end confdefs.h.  */
6568
 
/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
6569
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6570
 
#define getpseudotty innocuous_getpseudotty
6571
 
 
6572
 
/* System header to define __stub macros and hopefully few prototypes,
6573
 
    which can conflict with char getpseudotty (); below.
6574
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6575
 
    <limits.h> exists even on freestanding compilers.  */
6576
 
 
6577
 
#ifdef __STDC__
6578
 
# include <limits.h>
6579
 
#else
6580
 
# include <assert.h>
6581
 
#endif
6582
 
 
6583
 
#undef getpseudotty
6584
 
 
6585
 
/* Override any gcc2 internal prototype to avoid an error.  */
6586
 
#ifdef __cplusplus
6587
 
extern "C"
6588
 
{
6589
 
#endif
6590
 
/* We use char because int might match the return type of a gcc2
6591
 
   builtin and then its argument prototype would still apply.  */
6592
 
char getpseudotty ();
6593
 
/* The GNU C library defines this for functions which it implements
6594
 
    to always fail with ENOSYS.  Some functions are actually named
6595
 
    something starting with __ and the normal name is an alias.  */
6596
 
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
6597
 
choke me
6598
 
#else
6599
 
char (*f) () = getpseudotty;
6600
 
#endif
6601
 
#ifdef __cplusplus
6602
 
}
6603
 
#endif
6604
 
 
6605
 
int
6606
 
main ()
6607
 
{
6608
 
return f != getpseudotty;
6609
 
  ;
6610
 
  return 0;
6611
 
}
6612
 
_ACEOF
6613
 
rm -f conftest.$ac_objext conftest$ac_exeext
6614
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615
 
  (eval $ac_link) 2>conftest.er1
6616
 
  ac_status=$?
6617
 
  grep -v '^ *+' conftest.er1 >conftest.err
6618
 
  rm -f conftest.er1
6619
 
  cat conftest.err >&5
6620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621
 
  (exit $ac_status); } &&
6622
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624
 
  (eval $ac_try) 2>&5
6625
 
  ac_status=$?
6626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627
 
  (exit $ac_status); }; } &&
6628
 
         { ac_try='test -s conftest$ac_exeext'
6629
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630
 
  (eval $ac_try) 2>&5
6631
 
  ac_status=$?
6632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633
 
  (exit $ac_status); }; }; then
6634
 
  ac_cv_func_getpseudotty=yes
6635
 
else
6636
 
  echo "$as_me: failed program was:" >&5
6637
 
sed 's/^/| /' conftest.$ac_ext >&5
6638
 
 
6639
 
ac_cv_func_getpseudotty=no
6640
 
fi
6641
 
rm -f conftest.err conftest.$ac_objext \
6642
 
      conftest$ac_exeext conftest.$ac_ext
6643
 
fi
6644
 
echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
6645
 
echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
6646
 
if test $ac_cv_func_getpseudotty = yes; then
6647
 
  getpseudotty=1
6648
 
else
6649
 
  getpseudotty=0
6650
 
fi
6651
 
 
6652
 
if test $getpseudotty -eq 0 ; then
6653
 
  unset ac_cv_lib_seq_getpseudotty
6654
 
 
6655
 
echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
6656
 
echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
6657
 
if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
6658
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6659
 
else
6660
 
  ac_check_lib_save_LIBS=$LIBS
6661
 
LIBS="-lseq  $LIBS"
6662
 
cat >conftest.$ac_ext <<_ACEOF
6663
 
/* confdefs.h.  */
6664
 
_ACEOF
6665
 
cat confdefs.h >>conftest.$ac_ext
6666
 
cat >>conftest.$ac_ext <<_ACEOF
6667
 
/* end confdefs.h.  */
6668
 
 
6669
 
/* Override any gcc2 internal prototype to avoid an error.  */
6670
 
#ifdef __cplusplus
6671
 
extern "C"
6672
 
#endif
6673
 
/* We use char because int might match the return type of a gcc2
6674
 
   builtin and then its argument prototype would still apply.  */
6675
 
char getpseudotty ();
6676
 
int
6677
 
main ()
6678
 
{
6679
 
getpseudotty ();
6680
 
  ;
6681
 
  return 0;
6682
 
}
6683
 
_ACEOF
6684
 
rm -f conftest.$ac_objext conftest$ac_exeext
6685
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6686
 
  (eval $ac_link) 2>conftest.er1
6687
 
  ac_status=$?
6688
 
  grep -v '^ *+' conftest.er1 >conftest.err
6689
 
  rm -f conftest.er1
6690
 
  cat conftest.err >&5
6691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692
 
  (exit $ac_status); } &&
6693
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6694
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695
 
  (eval $ac_try) 2>&5
6696
 
  ac_status=$?
6697
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698
 
  (exit $ac_status); }; } &&
6699
 
         { ac_try='test -s conftest$ac_exeext'
6700
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701
 
  (eval $ac_try) 2>&5
6702
 
  ac_status=$?
6703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704
 
  (exit $ac_status); }; }; then
6705
 
  ac_cv_lib_seq_getpseudotty=yes
6706
 
else
6707
 
  echo "$as_me: failed program was:" >&5
6708
 
sed 's/^/| /' conftest.$ac_ext >&5
6709
 
 
6710
 
ac_cv_lib_seq_getpseudotty=no
6711
 
fi
6712
 
rm -f conftest.err conftest.$ac_objext \
6713
 
      conftest$ac_exeext conftest.$ac_ext
6714
 
LIBS=$ac_check_lib_save_LIBS
6715
 
fi
6716
 
echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
6717
 
echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
6718
 
if test $ac_cv_lib_seq_getpseudotty = yes; then
6719
 
  cat >>confdefs.h <<_ACEOF
6720
 
#define HAVE_LIBSEQ 1
6721
 
_ACEOF
6722
 
 
6723
 
  LIBS="-lseq $LIBS"
6724
 
 
6725
 
fi
6726
 
 
6727
 
fi
6728
 
# save Tcl results and retry for Tk
6729
 
EXP_AND_TCL_LIBS=$LIBS
6730
 
LIBS=$EXP_AND_TK_LIBS
6731
 
unset ac_cv_func_getpseudotty
6732
 
echo "$as_me:$LINENO: checking for getpseudotty" >&5
6733
 
echo $ECHO_N "checking for getpseudotty... $ECHO_C" >&6
6734
 
if test "${ac_cv_func_getpseudotty+set}" = set; then
6735
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6736
 
else
6737
 
  cat >conftest.$ac_ext <<_ACEOF
6738
 
/* confdefs.h.  */
6739
 
_ACEOF
6740
 
cat confdefs.h >>conftest.$ac_ext
6741
 
cat >>conftest.$ac_ext <<_ACEOF
6742
 
/* end confdefs.h.  */
6743
 
/* Define getpseudotty to an innocuous variant, in case <limits.h> declares getpseudotty.
6744
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6745
 
#define getpseudotty innocuous_getpseudotty
6746
 
 
6747
 
/* System header to define __stub macros and hopefully few prototypes,
6748
 
    which can conflict with char getpseudotty (); below.
6749
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6750
 
    <limits.h> exists even on freestanding compilers.  */
6751
 
 
6752
 
#ifdef __STDC__
6753
 
# include <limits.h>
6754
 
#else
6755
 
# include <assert.h>
6756
 
#endif
6757
 
 
6758
 
#undef getpseudotty
6759
 
 
6760
 
/* Override any gcc2 internal prototype to avoid an error.  */
6761
 
#ifdef __cplusplus
6762
 
extern "C"
6763
 
{
6764
 
#endif
6765
 
/* We use char because int might match the return type of a gcc2
6766
 
   builtin and then its argument prototype would still apply.  */
6767
 
char getpseudotty ();
6768
 
/* The GNU C library defines this for functions which it implements
6769
 
    to always fail with ENOSYS.  Some functions are actually named
6770
 
    something starting with __ and the normal name is an alias.  */
6771
 
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
6772
 
choke me
6773
 
#else
6774
 
char (*f) () = getpseudotty;
6775
 
#endif
6776
 
#ifdef __cplusplus
6777
 
}
6778
 
#endif
6779
 
 
6780
 
int
6781
 
main ()
6782
 
{
6783
 
return f != getpseudotty;
6784
 
  ;
6785
 
  return 0;
6786
 
}
6787
 
_ACEOF
6788
 
rm -f conftest.$ac_objext conftest$ac_exeext
6789
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790
 
  (eval $ac_link) 2>conftest.er1
6791
 
  ac_status=$?
6792
 
  grep -v '^ *+' conftest.er1 >conftest.err
6793
 
  rm -f conftest.er1
6794
 
  cat conftest.err >&5
6795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796
 
  (exit $ac_status); } &&
6797
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6798
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799
 
  (eval $ac_try) 2>&5
6800
 
  ac_status=$?
6801
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802
 
  (exit $ac_status); }; } &&
6803
 
         { ac_try='test -s conftest$ac_exeext'
6804
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805
 
  (eval $ac_try) 2>&5
6806
 
  ac_status=$?
6807
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808
 
  (exit $ac_status); }; }; then
6809
 
  ac_cv_func_getpseudotty=yes
6810
 
else
6811
 
  echo "$as_me: failed program was:" >&5
6812
 
sed 's/^/| /' conftest.$ac_ext >&5
6813
 
 
6814
 
ac_cv_func_getpseudotty=no
6815
 
fi
6816
 
rm -f conftest.err conftest.$ac_objext \
6817
 
      conftest$ac_exeext conftest.$ac_ext
6818
 
fi
6819
 
echo "$as_me:$LINENO: result: $ac_cv_func_getpseudotty" >&5
6820
 
echo "${ECHO_T}$ac_cv_func_getpseudotty" >&6
6821
 
if test $ac_cv_func_getpseudotty = yes; then
6822
 
  getpseudotty=1
6823
 
else
6824
 
  getpseudotty=0
6825
 
fi
6826
 
 
6827
 
if test $getpseudotty -eq 0 ; then
6828
 
  unset ac_cv_lib_seq_getpseudotty
6829
 
 
6830
 
echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
6831
 
echo $ECHO_N "checking for getpseudotty in -lseq... $ECHO_C" >&6
6832
 
if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
6833
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6834
 
else
6835
 
  ac_check_lib_save_LIBS=$LIBS
6836
 
LIBS="-lseq  $LIBS"
6837
 
cat >conftest.$ac_ext <<_ACEOF
6838
 
/* confdefs.h.  */
6839
 
_ACEOF
6840
 
cat confdefs.h >>conftest.$ac_ext
6841
 
cat >>conftest.$ac_ext <<_ACEOF
6842
 
/* end confdefs.h.  */
6843
 
 
6844
 
/* Override any gcc2 internal prototype to avoid an error.  */
6845
 
#ifdef __cplusplus
6846
 
extern "C"
6847
 
#endif
6848
 
/* We use char because int might match the return type of a gcc2
6849
 
   builtin and then its argument prototype would still apply.  */
6850
 
char getpseudotty ();
6851
 
int
6852
 
main ()
6853
 
{
6854
 
getpseudotty ();
6855
 
  ;
6856
 
  return 0;
6857
 
}
6858
 
_ACEOF
6859
 
rm -f conftest.$ac_objext conftest$ac_exeext
6860
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861
 
  (eval $ac_link) 2>conftest.er1
6862
 
  ac_status=$?
6863
 
  grep -v '^ *+' conftest.er1 >conftest.err
6864
 
  rm -f conftest.er1
6865
 
  cat conftest.err >&5
6866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867
 
  (exit $ac_status); } &&
6868
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6869
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870
 
  (eval $ac_try) 2>&5
6871
 
  ac_status=$?
6872
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873
 
  (exit $ac_status); }; } &&
6874
 
         { ac_try='test -s conftest$ac_exeext'
6875
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876
 
  (eval $ac_try) 2>&5
6877
 
  ac_status=$?
6878
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879
 
  (exit $ac_status); }; }; then
6880
 
  ac_cv_lib_seq_getpseudotty=yes
6881
 
else
6882
 
  echo "$as_me: failed program was:" >&5
6883
 
sed 's/^/| /' conftest.$ac_ext >&5
6884
 
 
6885
 
ac_cv_lib_seq_getpseudotty=no
6886
 
fi
6887
 
rm -f conftest.err conftest.$ac_objext \
6888
 
      conftest$ac_exeext conftest.$ac_ext
6889
 
LIBS=$ac_check_lib_save_LIBS
6890
 
fi
6891
 
echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
6892
 
echo "${ECHO_T}$ac_cv_lib_seq_getpseudotty" >&6
6893
 
if test $ac_cv_lib_seq_getpseudotty = yes; then
6894
 
  cat >>confdefs.h <<_ACEOF
6895
 
#define HAVE_LIBSEQ 1
6896
 
_ACEOF
6897
 
 
6898
 
  LIBS="-lseq $LIBS"
6899
 
 
 
2753
echo $ac_n "checking for socket""... $ac_c" 1>&6
 
2754
echo "configure:2755: checking for socket" >&5
 
2755
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
 
2756
  echo $ac_n "(cached) $ac_c" 1>&6
 
2757
else
 
2758
  cat > conftest.$ac_ext <<EOF
 
2759
#line 2760 "configure"
 
2760
#include "confdefs.h"
 
2761
/* System header to define __stub macros and hopefully few prototypes,
 
2762
    which can conflict with char socket(); below.  */
 
2763
#include <assert.h>
 
2764
/* Override any gcc2 internal prototype to avoid an error.  */
 
2765
/* We use char because int might match the return type of a gcc2
 
2766
    builtin and then its argument prototype would still apply.  */
 
2767
char socket();
 
2768
 
 
2769
int main() {
 
2770
 
 
2771
/* The GNU C library defines this for functions which it implements
 
2772
    to always fail with ENOSYS.  Some functions are actually named
 
2773
    something starting with __ and the normal name is an alias.  */
 
2774
#if defined (__stub_socket) || defined (__stub___socket)
 
2775
choke me
 
2776
#else
 
2777
socket();
 
2778
#endif
 
2779
 
 
2780
; return 0; }
 
2781
EOF
 
2782
if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2783
  rm -rf conftest*
 
2784
  eval "ac_cv_func_socket=yes"
 
2785
else
 
2786
  echo "configure: failed program was:" >&5
 
2787
  cat conftest.$ac_ext >&5
 
2788
  rm -rf conftest*
 
2789
  eval "ac_cv_func_socket=no"
 
2790
fi
 
2791
rm -f conftest*
 
2792
fi
 
2793
 
 
2794
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
 
2795
  echo "$ac_t""yes" 1>&6
 
2796
  socket=1 
 
2797
else
 
2798
  echo "$ac_t""no" 1>&6
 
2799
socket=0
 
2800
fi
 
2801
 
 
2802
if test $socket -eq 0 ; then
 
2803
  unset ac_cv_lib_inet_socket
 
2804
  echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
 
2805
echo "configure:2806: checking for socket in -linet" >&5
 
2806
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
 
2807
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2808
  echo $ac_n "(cached) $ac_c" 1>&6
 
2809
else
 
2810
  ac_save_LIBS="$LIBS"
 
2811
LIBS="-linet  $LIBS"
 
2812
cat > conftest.$ac_ext <<EOF
 
2813
#line 2814 "configure"
 
2814
#include "confdefs.h"
 
2815
/* Override any gcc2 internal prototype to avoid an error.  */
 
2816
/* We use char because int might match the return type of a gcc2
 
2817
    builtin and then its argument prototype would still apply.  */
 
2818
char socket();
 
2819
 
 
2820
int main() {
 
2821
socket()
 
2822
; return 0; }
 
2823
EOF
 
2824
if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2825
  rm -rf conftest*
 
2826
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2827
else
 
2828
  echo "configure: failed program was:" >&5
 
2829
  cat conftest.$ac_ext >&5
 
2830
  rm -rf conftest*
 
2831
  eval "ac_cv_lib_$ac_lib_var=no"
 
2832
fi
 
2833
rm -f conftest*
 
2834
LIBS="$ac_save_LIBS"
 
2835
 
 
2836
fi
 
2837
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2838
  echo "$ac_t""yes" 1>&6
 
2839
  LIBS="$LIBS -linet"
 
2840
else
 
2841
  echo "$ac_t""no" 1>&6
 
2842
fi
 
2843
 
 
2844
fi
 
2845
# save results and retry for Tcl
 
2846
EXP_LIBS=$LIBS
 
2847
LIBS=$EXP_AND_TCL_LIBS
 
2848
unset ac_cv_func_socket
 
2849
echo $ac_n "checking for socket""... $ac_c" 1>&6
 
2850
echo "configure:2851: checking for socket" >&5
 
2851
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
 
2852
  echo $ac_n "(cached) $ac_c" 1>&6
 
2853
else
 
2854
  cat > conftest.$ac_ext <<EOF
 
2855
#line 2856 "configure"
 
2856
#include "confdefs.h"
 
2857
/* System header to define __stub macros and hopefully few prototypes,
 
2858
    which can conflict with char socket(); below.  */
 
2859
#include <assert.h>
 
2860
/* Override any gcc2 internal prototype to avoid an error.  */
 
2861
/* We use char because int might match the return type of a gcc2
 
2862
    builtin and then its argument prototype would still apply.  */
 
2863
char socket();
 
2864
 
 
2865
int main() {
 
2866
 
 
2867
/* The GNU C library defines this for functions which it implements
 
2868
    to always fail with ENOSYS.  Some functions are actually named
 
2869
    something starting with __ and the normal name is an alias.  */
 
2870
#if defined (__stub_socket) || defined (__stub___socket)
 
2871
choke me
 
2872
#else
 
2873
socket();
 
2874
#endif
 
2875
 
 
2876
; return 0; }
 
2877
EOF
 
2878
if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2879
  rm -rf conftest*
 
2880
  eval "ac_cv_func_socket=yes"
 
2881
else
 
2882
  echo "configure: failed program was:" >&5
 
2883
  cat conftest.$ac_ext >&5
 
2884
  rm -rf conftest*
 
2885
  eval "ac_cv_func_socket=no"
 
2886
fi
 
2887
rm -f conftest*
 
2888
fi
 
2889
 
 
2890
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
 
2891
  echo "$ac_t""yes" 1>&6
 
2892
  socket=1 
 
2893
else
 
2894
  echo "$ac_t""no" 1>&6
 
2895
socket=0
 
2896
fi
 
2897
 
 
2898
if test $socket -eq 0 ; then
 
2899
  unset ac_cv_lib_inet_socket
 
2900
  echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
 
2901
echo "configure:2902: checking for socket in -linet" >&5
 
2902
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
 
2903
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
2904
  echo $ac_n "(cached) $ac_c" 1>&6
 
2905
else
 
2906
  ac_save_LIBS="$LIBS"
 
2907
LIBS="-linet  $LIBS"
 
2908
cat > conftest.$ac_ext <<EOF
 
2909
#line 2910 "configure"
 
2910
#include "confdefs.h"
 
2911
/* Override any gcc2 internal prototype to avoid an error.  */
 
2912
/* We use char because int might match the return type of a gcc2
 
2913
    builtin and then its argument prototype would still apply.  */
 
2914
char socket();
 
2915
 
 
2916
int main() {
 
2917
socket()
 
2918
; return 0; }
 
2919
EOF
 
2920
if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2921
  rm -rf conftest*
 
2922
  eval "ac_cv_lib_$ac_lib_var=yes"
 
2923
else
 
2924
  echo "configure: failed program was:" >&5
 
2925
  cat conftest.$ac_ext >&5
 
2926
  rm -rf conftest*
 
2927
  eval "ac_cv_lib_$ac_lib_var=no"
 
2928
fi
 
2929
rm -f conftest*
 
2930
LIBS="$ac_save_LIBS"
 
2931
 
 
2932
fi
 
2933
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
2934
  echo "$ac_t""yes" 1>&6
 
2935
  LIBS="$LIBS -linet"
 
2936
else
 
2937
  echo "$ac_t""no" 1>&6
 
2938
fi
 
2939
 
 
2940
fi
 
2941
# save Tcl results and retry for Tk
 
2942
EXP_AND_TCL_LIBS=$LIBS
 
2943
LIBS=$EXP_AND_TK_LIBS
 
2944
unset ac_cv_func_socket
 
2945
echo $ac_n "checking for socket""... $ac_c" 1>&6
 
2946
echo "configure:2947: checking for socket" >&5
 
2947
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
 
2948
  echo $ac_n "(cached) $ac_c" 1>&6
 
2949
else
 
2950
  cat > conftest.$ac_ext <<EOF
 
2951
#line 2952 "configure"
 
2952
#include "confdefs.h"
 
2953
/* System header to define __stub macros and hopefully few prototypes,
 
2954
    which can conflict with char socket(); below.  */
 
2955
#include <assert.h>
 
2956
/* Override any gcc2 internal prototype to avoid an error.  */
 
2957
/* We use char because int might match the return type of a gcc2
 
2958
    builtin and then its argument prototype would still apply.  */
 
2959
char socket();
 
2960
 
 
2961
int main() {
 
2962
 
 
2963
/* The GNU C library defines this for functions which it implements
 
2964
    to always fail with ENOSYS.  Some functions are actually named
 
2965
    something starting with __ and the normal name is an alias.  */
 
2966
#if defined (__stub_socket) || defined (__stub___socket)
 
2967
choke me
 
2968
#else
 
2969
socket();
 
2970
#endif
 
2971
 
 
2972
; return 0; }
 
2973
EOF
 
2974
if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2975
  rm -rf conftest*
 
2976
  eval "ac_cv_func_socket=yes"
 
2977
else
 
2978
  echo "configure: failed program was:" >&5
 
2979
  cat conftest.$ac_ext >&5
 
2980
  rm -rf conftest*
 
2981
  eval "ac_cv_func_socket=no"
 
2982
fi
 
2983
rm -f conftest*
 
2984
fi
 
2985
 
 
2986
if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
 
2987
  echo "$ac_t""yes" 1>&6
 
2988
  socket=1 
 
2989
else
 
2990
  echo "$ac_t""no" 1>&6
 
2991
socket=0
 
2992
fi
 
2993
 
 
2994
if test $socket -eq 0 ; then
 
2995
  unset ac_cv_lib_inet_socket
 
2996
  echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
 
2997
echo "configure:2998: checking for socket in -linet" >&5
 
2998
ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
 
2999
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3000
  echo $ac_n "(cached) $ac_c" 1>&6
 
3001
else
 
3002
  ac_save_LIBS="$LIBS"
 
3003
LIBS="-linet  $LIBS"
 
3004
cat > conftest.$ac_ext <<EOF
 
3005
#line 3006 "configure"
 
3006
#include "confdefs.h"
 
3007
/* Override any gcc2 internal prototype to avoid an error.  */
 
3008
/* We use char because int might match the return type of a gcc2
 
3009
    builtin and then its argument prototype would still apply.  */
 
3010
char socket();
 
3011
 
 
3012
int main() {
 
3013
socket()
 
3014
; return 0; }
 
3015
EOF
 
3016
if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3017
  rm -rf conftest*
 
3018
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3019
else
 
3020
  echo "configure: failed program was:" >&5
 
3021
  cat conftest.$ac_ext >&5
 
3022
  rm -rf conftest*
 
3023
  eval "ac_cv_lib_$ac_lib_var=no"
 
3024
fi
 
3025
rm -f conftest*
 
3026
LIBS="$ac_save_LIBS"
 
3027
 
 
3028
fi
 
3029
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3030
  echo "$ac_t""yes" 1>&6
 
3031
  LIBS="$LIBS -linet"
 
3032
else
 
3033
  echo "$ac_t""no" 1>&6
 
3034
fi
 
3035
 
 
3036
fi
 
3037
# save Tk results and reset for Expect
 
3038
EXP_AND_TK_LIBS=$LIBS
 
3039
LIBS=$EXP_LIBS
 
3040
 
 
3041
######################################################################
 
3042
unset ac_cv_func_select
 
3043
echo $ac_n "checking for select""... $ac_c" 1>&6
 
3044
echo "configure:3045: checking for select" >&5
 
3045
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
 
3046
  echo $ac_n "(cached) $ac_c" 1>&6
 
3047
else
 
3048
  cat > conftest.$ac_ext <<EOF
 
3049
#line 3050 "configure"
 
3050
#include "confdefs.h"
 
3051
/* System header to define __stub macros and hopefully few prototypes,
 
3052
    which can conflict with char select(); below.  */
 
3053
#include <assert.h>
 
3054
/* Override any gcc2 internal prototype to avoid an error.  */
 
3055
/* We use char because int might match the return type of a gcc2
 
3056
    builtin and then its argument prototype would still apply.  */
 
3057
char select();
 
3058
 
 
3059
int main() {
 
3060
 
 
3061
/* The GNU C library defines this for functions which it implements
 
3062
    to always fail with ENOSYS.  Some functions are actually named
 
3063
    something starting with __ and the normal name is an alias.  */
 
3064
#if defined (__stub_select) || defined (__stub___select)
 
3065
choke me
 
3066
#else
 
3067
select();
 
3068
#endif
 
3069
 
 
3070
; return 0; }
 
3071
EOF
 
3072
if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3073
  rm -rf conftest*
 
3074
  eval "ac_cv_func_select=yes"
 
3075
else
 
3076
  echo "configure: failed program was:" >&5
 
3077
  cat conftest.$ac_ext >&5
 
3078
  rm -rf conftest*
 
3079
  eval "ac_cv_func_select=no"
 
3080
fi
 
3081
rm -f conftest*
 
3082
fi
 
3083
 
 
3084
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
 
3085
  echo "$ac_t""yes" 1>&6
 
3086
  select=1 
 
3087
else
 
3088
  echo "$ac_t""no" 1>&6
 
3089
select=0
 
3090
fi
 
3091
 
 
3092
if test $select -eq 0 ; then
 
3093
  unset ac_cv_lib_inet_select
 
3094
  echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
 
3095
echo "configure:3096: checking for select in -linet" >&5
 
3096
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
 
3097
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3098
  echo $ac_n "(cached) $ac_c" 1>&6
 
3099
else
 
3100
  ac_save_LIBS="$LIBS"
 
3101
LIBS="-linet  $LIBS"
 
3102
cat > conftest.$ac_ext <<EOF
 
3103
#line 3104 "configure"
 
3104
#include "confdefs.h"
 
3105
/* Override any gcc2 internal prototype to avoid an error.  */
 
3106
/* We use char because int might match the return type of a gcc2
 
3107
    builtin and then its argument prototype would still apply.  */
 
3108
char select();
 
3109
 
 
3110
int main() {
 
3111
select()
 
3112
; return 0; }
 
3113
EOF
 
3114
if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3115
  rm -rf conftest*
 
3116
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3117
else
 
3118
  echo "configure: failed program was:" >&5
 
3119
  cat conftest.$ac_ext >&5
 
3120
  rm -rf conftest*
 
3121
  eval "ac_cv_lib_$ac_lib_var=no"
 
3122
fi
 
3123
rm -f conftest*
 
3124
LIBS="$ac_save_LIBS"
 
3125
 
 
3126
fi
 
3127
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3128
  echo "$ac_t""yes" 1>&6
 
3129
  LIBS="$LIBS -linet"
 
3130
else
 
3131
  echo "$ac_t""no" 1>&6
 
3132
fi
 
3133
 
 
3134
fi
 
3135
# save results and retry for Tcl
 
3136
EXP_LIBS=$LIBS
 
3137
LIBS=$EXP_AND_TCL_LIBS
 
3138
unset ac_cv_func_select
 
3139
echo $ac_n "checking for select""... $ac_c" 1>&6
 
3140
echo "configure:3141: checking for select" >&5
 
3141
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
 
3142
  echo $ac_n "(cached) $ac_c" 1>&6
 
3143
else
 
3144
  cat > conftest.$ac_ext <<EOF
 
3145
#line 3146 "configure"
 
3146
#include "confdefs.h"
 
3147
/* System header to define __stub macros and hopefully few prototypes,
 
3148
    which can conflict with char select(); below.  */
 
3149
#include <assert.h>
 
3150
/* Override any gcc2 internal prototype to avoid an error.  */
 
3151
/* We use char because int might match the return type of a gcc2
 
3152
    builtin and then its argument prototype would still apply.  */
 
3153
char select();
 
3154
 
 
3155
int main() {
 
3156
 
 
3157
/* The GNU C library defines this for functions which it implements
 
3158
    to always fail with ENOSYS.  Some functions are actually named
 
3159
    something starting with __ and the normal name is an alias.  */
 
3160
#if defined (__stub_select) || defined (__stub___select)
 
3161
choke me
 
3162
#else
 
3163
select();
 
3164
#endif
 
3165
 
 
3166
; return 0; }
 
3167
EOF
 
3168
if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3169
  rm -rf conftest*
 
3170
  eval "ac_cv_func_select=yes"
 
3171
else
 
3172
  echo "configure: failed program was:" >&5
 
3173
  cat conftest.$ac_ext >&5
 
3174
  rm -rf conftest*
 
3175
  eval "ac_cv_func_select=no"
 
3176
fi
 
3177
rm -f conftest*
 
3178
fi
 
3179
 
 
3180
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
 
3181
  echo "$ac_t""yes" 1>&6
 
3182
  select=1 
 
3183
else
 
3184
  echo "$ac_t""no" 1>&6
 
3185
select=0
 
3186
fi
 
3187
 
 
3188
if test $select -eq 0 ; then
 
3189
  unset ac_cv_lib_inet_select
 
3190
  echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
 
3191
echo "configure:3192: checking for select in -linet" >&5
 
3192
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
 
3193
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3194
  echo $ac_n "(cached) $ac_c" 1>&6
 
3195
else
 
3196
  ac_save_LIBS="$LIBS"
 
3197
LIBS="-linet  $LIBS"
 
3198
cat > conftest.$ac_ext <<EOF
 
3199
#line 3200 "configure"
 
3200
#include "confdefs.h"
 
3201
/* Override any gcc2 internal prototype to avoid an error.  */
 
3202
/* We use char because int might match the return type of a gcc2
 
3203
    builtin and then its argument prototype would still apply.  */
 
3204
char select();
 
3205
 
 
3206
int main() {
 
3207
select()
 
3208
; return 0; }
 
3209
EOF
 
3210
if { (eval echo configure:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3211
  rm -rf conftest*
 
3212
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3213
else
 
3214
  echo "configure: failed program was:" >&5
 
3215
  cat conftest.$ac_ext >&5
 
3216
  rm -rf conftest*
 
3217
  eval "ac_cv_lib_$ac_lib_var=no"
 
3218
fi
 
3219
rm -f conftest*
 
3220
LIBS="$ac_save_LIBS"
 
3221
 
 
3222
fi
 
3223
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3224
  echo "$ac_t""yes" 1>&6
 
3225
  LIBS="$LIBS -linet"
 
3226
else
 
3227
  echo "$ac_t""no" 1>&6
 
3228
fi
 
3229
 
 
3230
fi
 
3231
# save Tcl results and retry for Tk
 
3232
EXP_AND_TCL_LIBS=$LIBS
 
3233
LIBS=$EXP_AND_TK_LIBS
 
3234
unset ac_cv_func_select
 
3235
echo $ac_n "checking for select""... $ac_c" 1>&6
 
3236
echo "configure:3237: checking for select" >&5
 
3237
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
 
3238
  echo $ac_n "(cached) $ac_c" 1>&6
 
3239
else
 
3240
  cat > conftest.$ac_ext <<EOF
 
3241
#line 3242 "configure"
 
3242
#include "confdefs.h"
 
3243
/* System header to define __stub macros and hopefully few prototypes,
 
3244
    which can conflict with char select(); below.  */
 
3245
#include <assert.h>
 
3246
/* Override any gcc2 internal prototype to avoid an error.  */
 
3247
/* We use char because int might match the return type of a gcc2
 
3248
    builtin and then its argument prototype would still apply.  */
 
3249
char select();
 
3250
 
 
3251
int main() {
 
3252
 
 
3253
/* The GNU C library defines this for functions which it implements
 
3254
    to always fail with ENOSYS.  Some functions are actually named
 
3255
    something starting with __ and the normal name is an alias.  */
 
3256
#if defined (__stub_select) || defined (__stub___select)
 
3257
choke me
 
3258
#else
 
3259
select();
 
3260
#endif
 
3261
 
 
3262
; return 0; }
 
3263
EOF
 
3264
if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3265
  rm -rf conftest*
 
3266
  eval "ac_cv_func_select=yes"
 
3267
else
 
3268
  echo "configure: failed program was:" >&5
 
3269
  cat conftest.$ac_ext >&5
 
3270
  rm -rf conftest*
 
3271
  eval "ac_cv_func_select=no"
 
3272
fi
 
3273
rm -f conftest*
 
3274
fi
 
3275
 
 
3276
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
 
3277
  echo "$ac_t""yes" 1>&6
 
3278
  select=1 
 
3279
else
 
3280
  echo "$ac_t""no" 1>&6
 
3281
select=0
 
3282
fi
 
3283
 
 
3284
if test $select -eq 0 ; then
 
3285
  unset ac_cv_lib_inet_select
 
3286
  echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
 
3287
echo "configure:3288: checking for select in -linet" >&5
 
3288
ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
 
3289
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3290
  echo $ac_n "(cached) $ac_c" 1>&6
 
3291
else
 
3292
  ac_save_LIBS="$LIBS"
 
3293
LIBS="-linet  $LIBS"
 
3294
cat > conftest.$ac_ext <<EOF
 
3295
#line 3296 "configure"
 
3296
#include "confdefs.h"
 
3297
/* Override any gcc2 internal prototype to avoid an error.  */
 
3298
/* We use char because int might match the return type of a gcc2
 
3299
    builtin and then its argument prototype would still apply.  */
 
3300
char select();
 
3301
 
 
3302
int main() {
 
3303
select()
 
3304
; return 0; }
 
3305
EOF
 
3306
if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3307
  rm -rf conftest*
 
3308
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3309
else
 
3310
  echo "configure: failed program was:" >&5
 
3311
  cat conftest.$ac_ext >&5
 
3312
  rm -rf conftest*
 
3313
  eval "ac_cv_lib_$ac_lib_var=no"
 
3314
fi
 
3315
rm -f conftest*
 
3316
LIBS="$ac_save_LIBS"
 
3317
 
 
3318
fi
 
3319
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3320
  echo "$ac_t""yes" 1>&6
 
3321
  LIBS="$LIBS -linet"
 
3322
else
 
3323
  echo "$ac_t""no" 1>&6
 
3324
fi
 
3325
 
 
3326
fi
 
3327
# save Tk results and reset for Expect
 
3328
EXP_AND_TK_LIBS=$LIBS
 
3329
LIBS=$EXP_LIBS
 
3330
 
 
3331
######################################################################
 
3332
unset ac_cv_func_getpseudotty
 
3333
echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
 
3334
echo "configure:3335: checking for getpseudotty" >&5
 
3335
if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
 
3336
  echo $ac_n "(cached) $ac_c" 1>&6
 
3337
else
 
3338
  cat > conftest.$ac_ext <<EOF
 
3339
#line 3340 "configure"
 
3340
#include "confdefs.h"
 
3341
/* System header to define __stub macros and hopefully few prototypes,
 
3342
    which can conflict with char getpseudotty(); below.  */
 
3343
#include <assert.h>
 
3344
/* Override any gcc2 internal prototype to avoid an error.  */
 
3345
/* We use char because int might match the return type of a gcc2
 
3346
    builtin and then its argument prototype would still apply.  */
 
3347
char getpseudotty();
 
3348
 
 
3349
int main() {
 
3350
 
 
3351
/* The GNU C library defines this for functions which it implements
 
3352
    to always fail with ENOSYS.  Some functions are actually named
 
3353
    something starting with __ and the normal name is an alias.  */
 
3354
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
 
3355
choke me
 
3356
#else
 
3357
getpseudotty();
 
3358
#endif
 
3359
 
 
3360
; return 0; }
 
3361
EOF
 
3362
if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3363
  rm -rf conftest*
 
3364
  eval "ac_cv_func_getpseudotty=yes"
 
3365
else
 
3366
  echo "configure: failed program was:" >&5
 
3367
  cat conftest.$ac_ext >&5
 
3368
  rm -rf conftest*
 
3369
  eval "ac_cv_func_getpseudotty=no"
 
3370
fi
 
3371
rm -f conftest*
 
3372
fi
 
3373
 
 
3374
if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
 
3375
  echo "$ac_t""yes" 1>&6
 
3376
  getpseudotty=1 
 
3377
else
 
3378
  echo "$ac_t""no" 1>&6
 
3379
getpseudotty=0
 
3380
fi
 
3381
 
 
3382
if test $getpseudotty -eq 0 ; then
 
3383
  unset ac_cv_lib_seq_getpseudotty
 
3384
  echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
 
3385
echo "configure:3386: checking for getpseudotty in -lseq" >&5
 
3386
ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
 
3387
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3388
  echo $ac_n "(cached) $ac_c" 1>&6
 
3389
else
 
3390
  ac_save_LIBS="$LIBS"
 
3391
LIBS="-lseq  $LIBS"
 
3392
cat > conftest.$ac_ext <<EOF
 
3393
#line 3394 "configure"
 
3394
#include "confdefs.h"
 
3395
/* Override any gcc2 internal prototype to avoid an error.  */
 
3396
/* We use char because int might match the return type of a gcc2
 
3397
    builtin and then its argument prototype would still apply.  */
 
3398
char getpseudotty();
 
3399
 
 
3400
int main() {
 
3401
getpseudotty()
 
3402
; return 0; }
 
3403
EOF
 
3404
if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3405
  rm -rf conftest*
 
3406
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3407
else
 
3408
  echo "configure: failed program was:" >&5
 
3409
  cat conftest.$ac_ext >&5
 
3410
  rm -rf conftest*
 
3411
  eval "ac_cv_lib_$ac_lib_var=no"
 
3412
fi
 
3413
rm -f conftest*
 
3414
LIBS="$ac_save_LIBS"
 
3415
 
 
3416
fi
 
3417
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3418
  echo "$ac_t""yes" 1>&6
 
3419
    ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
3420
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
3421
  cat >> confdefs.h <<EOF
 
3422
#define $ac_tr_lib 1
 
3423
EOF
 
3424
 
 
3425
  LIBS="-lseq $LIBS"
 
3426
 
 
3427
else
 
3428
  echo "$ac_t""no" 1>&6
 
3429
fi
 
3430
 
 
3431
fi
 
3432
# save results and retry for Tcl
 
3433
EXP_LIBS=$LIBS
 
3434
LIBS=$EXP_AND_TCL_LIBS
 
3435
unset ac_cv_func_getpseudotty
 
3436
echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
 
3437
echo "configure:3438: checking for getpseudotty" >&5
 
3438
if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
 
3439
  echo $ac_n "(cached) $ac_c" 1>&6
 
3440
else
 
3441
  cat > conftest.$ac_ext <<EOF
 
3442
#line 3443 "configure"
 
3443
#include "confdefs.h"
 
3444
/* System header to define __stub macros and hopefully few prototypes,
 
3445
    which can conflict with char getpseudotty(); below.  */
 
3446
#include <assert.h>
 
3447
/* Override any gcc2 internal prototype to avoid an error.  */
 
3448
/* We use char because int might match the return type of a gcc2
 
3449
    builtin and then its argument prototype would still apply.  */
 
3450
char getpseudotty();
 
3451
 
 
3452
int main() {
 
3453
 
 
3454
/* The GNU C library defines this for functions which it implements
 
3455
    to always fail with ENOSYS.  Some functions are actually named
 
3456
    something starting with __ and the normal name is an alias.  */
 
3457
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
 
3458
choke me
 
3459
#else
 
3460
getpseudotty();
 
3461
#endif
 
3462
 
 
3463
; return 0; }
 
3464
EOF
 
3465
if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3466
  rm -rf conftest*
 
3467
  eval "ac_cv_func_getpseudotty=yes"
 
3468
else
 
3469
  echo "configure: failed program was:" >&5
 
3470
  cat conftest.$ac_ext >&5
 
3471
  rm -rf conftest*
 
3472
  eval "ac_cv_func_getpseudotty=no"
 
3473
fi
 
3474
rm -f conftest*
 
3475
fi
 
3476
 
 
3477
if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
 
3478
  echo "$ac_t""yes" 1>&6
 
3479
  getpseudotty=1 
 
3480
else
 
3481
  echo "$ac_t""no" 1>&6
 
3482
getpseudotty=0
 
3483
fi
 
3484
 
 
3485
if test $getpseudotty -eq 0 ; then
 
3486
  unset ac_cv_lib_seq_getpseudotty
 
3487
  echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
 
3488
echo "configure:3489: checking for getpseudotty in -lseq" >&5
 
3489
ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
 
3490
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3491
  echo $ac_n "(cached) $ac_c" 1>&6
 
3492
else
 
3493
  ac_save_LIBS="$LIBS"
 
3494
LIBS="-lseq  $LIBS"
 
3495
cat > conftest.$ac_ext <<EOF
 
3496
#line 3497 "configure"
 
3497
#include "confdefs.h"
 
3498
/* Override any gcc2 internal prototype to avoid an error.  */
 
3499
/* We use char because int might match the return type of a gcc2
 
3500
    builtin and then its argument prototype would still apply.  */
 
3501
char getpseudotty();
 
3502
 
 
3503
int main() {
 
3504
getpseudotty()
 
3505
; return 0; }
 
3506
EOF
 
3507
if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3508
  rm -rf conftest*
 
3509
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3510
else
 
3511
  echo "configure: failed program was:" >&5
 
3512
  cat conftest.$ac_ext >&5
 
3513
  rm -rf conftest*
 
3514
  eval "ac_cv_lib_$ac_lib_var=no"
 
3515
fi
 
3516
rm -f conftest*
 
3517
LIBS="$ac_save_LIBS"
 
3518
 
 
3519
fi
 
3520
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3521
  echo "$ac_t""yes" 1>&6
 
3522
    ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
3523
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
3524
  cat >> confdefs.h <<EOF
 
3525
#define $ac_tr_lib 1
 
3526
EOF
 
3527
 
 
3528
  LIBS="-lseq $LIBS"
 
3529
 
 
3530
else
 
3531
  echo "$ac_t""no" 1>&6
 
3532
fi
 
3533
 
 
3534
fi
 
3535
# save Tcl results and retry for Tk
 
3536
EXP_AND_TCL_LIBS=$LIBS
 
3537
LIBS=$EXP_AND_TK_LIBS
 
3538
unset ac_cv_func_getpseudotty
 
3539
echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
 
3540
echo "configure:3541: checking for getpseudotty" >&5
 
3541
if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
 
3542
  echo $ac_n "(cached) $ac_c" 1>&6
 
3543
else
 
3544
  cat > conftest.$ac_ext <<EOF
 
3545
#line 3546 "configure"
 
3546
#include "confdefs.h"
 
3547
/* System header to define __stub macros and hopefully few prototypes,
 
3548
    which can conflict with char getpseudotty(); below.  */
 
3549
#include <assert.h>
 
3550
/* Override any gcc2 internal prototype to avoid an error.  */
 
3551
/* We use char because int might match the return type of a gcc2
 
3552
    builtin and then its argument prototype would still apply.  */
 
3553
char getpseudotty();
 
3554
 
 
3555
int main() {
 
3556
 
 
3557
/* The GNU C library defines this for functions which it implements
 
3558
    to always fail with ENOSYS.  Some functions are actually named
 
3559
    something starting with __ and the normal name is an alias.  */
 
3560
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
 
3561
choke me
 
3562
#else
 
3563
getpseudotty();
 
3564
#endif
 
3565
 
 
3566
; return 0; }
 
3567
EOF
 
3568
if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3569
  rm -rf conftest*
 
3570
  eval "ac_cv_func_getpseudotty=yes"
 
3571
else
 
3572
  echo "configure: failed program was:" >&5
 
3573
  cat conftest.$ac_ext >&5
 
3574
  rm -rf conftest*
 
3575
  eval "ac_cv_func_getpseudotty=no"
 
3576
fi
 
3577
rm -f conftest*
 
3578
fi
 
3579
 
 
3580
if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
 
3581
  echo "$ac_t""yes" 1>&6
 
3582
  getpseudotty=1 
 
3583
else
 
3584
  echo "$ac_t""no" 1>&6
 
3585
getpseudotty=0
 
3586
fi
 
3587
 
 
3588
if test $getpseudotty -eq 0 ; then
 
3589
  unset ac_cv_lib_seq_getpseudotty
 
3590
  echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
 
3591
echo "configure:3592: checking for getpseudotty in -lseq" >&5
 
3592
ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
 
3593
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3594
  echo $ac_n "(cached) $ac_c" 1>&6
 
3595
else
 
3596
  ac_save_LIBS="$LIBS"
 
3597
LIBS="-lseq  $LIBS"
 
3598
cat > conftest.$ac_ext <<EOF
 
3599
#line 3600 "configure"
 
3600
#include "confdefs.h"
 
3601
/* Override any gcc2 internal prototype to avoid an error.  */
 
3602
/* We use char because int might match the return type of a gcc2
 
3603
    builtin and then its argument prototype would still apply.  */
 
3604
char getpseudotty();
 
3605
 
 
3606
int main() {
 
3607
getpseudotty()
 
3608
; return 0; }
 
3609
EOF
 
3610
if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3611
  rm -rf conftest*
 
3612
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3613
else
 
3614
  echo "configure: failed program was:" >&5
 
3615
  cat conftest.$ac_ext >&5
 
3616
  rm -rf conftest*
 
3617
  eval "ac_cv_lib_$ac_lib_var=no"
 
3618
fi
 
3619
rm -f conftest*
 
3620
LIBS="$ac_save_LIBS"
 
3621
 
 
3622
fi
 
3623
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3624
  echo "$ac_t""yes" 1>&6
 
3625
    ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
 
3626
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
 
3627
  cat >> confdefs.h <<EOF
 
3628
#define $ac_tr_lib 1
 
3629
EOF
 
3630
 
 
3631
  LIBS="-lseq $LIBS"
 
3632
 
 
3633
else
 
3634
  echo "$ac_t""no" 1>&6
6900
3635
fi
6901
3636
 
6902
3637
fi
6907
3642
######################################################################
6908
3643
# Check for FreeBSD/NetBSD openpty()
6909
3644
unset ac_cv_func_openpty
6910
 
echo "$as_me:$LINENO: checking for openpty" >&5
6911
 
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
6912
 
if test "${ac_cv_func_openpty+set}" = set; then
6913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3645
echo $ac_n "checking for openpty""... $ac_c" 1>&6
 
3646
echo "configure:3647: checking for openpty" >&5
 
3647
if eval "test \"`echo '$''{'ac_cv_func_openpty'+set}'`\" = set"; then
 
3648
  echo $ac_n "(cached) $ac_c" 1>&6
6914
3649
else
6915
 
  cat >conftest.$ac_ext <<_ACEOF
6916
 
/* confdefs.h.  */
6917
 
_ACEOF
6918
 
cat confdefs.h >>conftest.$ac_ext
6919
 
cat >>conftest.$ac_ext <<_ACEOF
6920
 
/* end confdefs.h.  */
6921
 
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
6922
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6923
 
#define openpty innocuous_openpty
6924
 
 
 
3650
  cat > conftest.$ac_ext <<EOF
 
3651
#line 3652 "configure"
 
3652
#include "confdefs.h"
6925
3653
/* System header to define __stub macros and hopefully few prototypes,
6926
 
    which can conflict with char openpty (); below.
6927
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6928
 
    <limits.h> exists even on freestanding compilers.  */
6929
 
 
6930
 
#ifdef __STDC__
6931
 
# include <limits.h>
6932
 
#else
6933
 
# include <assert.h>
6934
 
#endif
6935
 
 
6936
 
#undef openpty
6937
 
 
 
3654
    which can conflict with char openpty(); below.  */
 
3655
#include <assert.h>
6938
3656
/* Override any gcc2 internal prototype to avoid an error.  */
6939
 
#ifdef __cplusplus
6940
 
extern "C"
6941
 
{
6942
 
#endif
6943
3657
/* We use char because int might match the return type of a gcc2
6944
 
   builtin and then its argument prototype would still apply.  */
6945
 
char openpty ();
 
3658
    builtin and then its argument prototype would still apply.  */
 
3659
char openpty();
 
3660
 
 
3661
int main() {
 
3662
 
6946
3663
/* The GNU C library defines this for functions which it implements
6947
3664
    to always fail with ENOSYS.  Some functions are actually named
6948
3665
    something starting with __ and the normal name is an alias.  */
6949
3666
#if defined (__stub_openpty) || defined (__stub___openpty)
6950
3667
choke me
6951
3668
#else
6952
 
char (*f) () = openpty;
6953
 
#endif
6954
 
#ifdef __cplusplus
6955
 
}
6956
 
#endif
6957
 
 
6958
 
int
6959
 
main ()
6960
 
{
6961
 
return f != openpty;
6962
 
  ;
6963
 
  return 0;
6964
 
}
6965
 
_ACEOF
6966
 
rm -f conftest.$ac_objext conftest$ac_exeext
6967
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968
 
  (eval $ac_link) 2>conftest.er1
6969
 
  ac_status=$?
6970
 
  grep -v '^ *+' conftest.er1 >conftest.err
6971
 
  rm -f conftest.er1
6972
 
  cat conftest.err >&5
6973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974
 
  (exit $ac_status); } &&
6975
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977
 
  (eval $ac_try) 2>&5
6978
 
  ac_status=$?
6979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980
 
  (exit $ac_status); }; } &&
6981
 
         { ac_try='test -s conftest$ac_exeext'
6982
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983
 
  (eval $ac_try) 2>&5
6984
 
  ac_status=$?
6985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986
 
  (exit $ac_status); }; }; then
6987
 
  ac_cv_func_openpty=yes
6988
 
else
6989
 
  echo "$as_me: failed program was:" >&5
6990
 
sed 's/^/| /' conftest.$ac_ext >&5
6991
 
 
6992
 
ac_cv_func_openpty=no
6993
 
fi
6994
 
rm -f conftest.err conftest.$ac_objext \
6995
 
      conftest$ac_exeext conftest.$ac_ext
6996
 
fi
6997
 
echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
6998
 
echo "${ECHO_T}$ac_cv_func_openpty" >&6
6999
 
if test $ac_cv_func_openpty = yes; then
7000
 
  openpty=1
7001
 
else
7002
 
  openpty=0
 
3669
openpty();
 
3670
#endif
 
3671
 
 
3672
; return 0; }
 
3673
EOF
 
3674
if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3675
  rm -rf conftest*
 
3676
  eval "ac_cv_func_openpty=yes"
 
3677
else
 
3678
  echo "configure: failed program was:" >&5
 
3679
  cat conftest.$ac_ext >&5
 
3680
  rm -rf conftest*
 
3681
  eval "ac_cv_func_openpty=no"
 
3682
fi
 
3683
rm -f conftest*
 
3684
fi
 
3685
 
 
3686
if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
 
3687
  echo "$ac_t""yes" 1>&6
 
3688
  openpty=1 
 
3689
else
 
3690
  echo "$ac_t""no" 1>&6
 
3691
openpty=0
7003
3692
fi
7004
3693
 
7005
3694
if test $openpty -eq 0 ; then
7006
3695
  unset ac_cv_lib_util_openpty
7007
 
  echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7008
 
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7009
 
if test "${ac_cv_lib_util_openpty+set}" = set; then
7010
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3696
  echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
 
3697
echo "configure:3698: checking for openpty in -lutil" >&5
 
3698
ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
 
3699
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3700
  echo $ac_n "(cached) $ac_c" 1>&6
7011
3701
else
7012
 
  ac_check_lib_save_LIBS=$LIBS
 
3702
  ac_save_LIBS="$LIBS"
7013
3703
LIBS="-lutil  $LIBS"
7014
 
cat >conftest.$ac_ext <<_ACEOF
7015
 
/* confdefs.h.  */
7016
 
_ACEOF
7017
 
cat confdefs.h >>conftest.$ac_ext
7018
 
cat >>conftest.$ac_ext <<_ACEOF
7019
 
/* end confdefs.h.  */
7020
 
 
 
3704
cat > conftest.$ac_ext <<EOF
 
3705
#line 3706 "configure"
 
3706
#include "confdefs.h"
7021
3707
/* Override any gcc2 internal prototype to avoid an error.  */
7022
 
#ifdef __cplusplus
7023
 
extern "C"
7024
 
#endif
7025
3708
/* We use char because int might match the return type of a gcc2
7026
 
   builtin and then its argument prototype would still apply.  */
7027
 
char openpty ();
7028
 
int
7029
 
main ()
7030
 
{
7031
 
openpty ();
7032
 
  ;
7033
 
  return 0;
7034
 
}
7035
 
_ACEOF
7036
 
rm -f conftest.$ac_objext conftest$ac_exeext
7037
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038
 
  (eval $ac_link) 2>conftest.er1
7039
 
  ac_status=$?
7040
 
  grep -v '^ *+' conftest.er1 >conftest.err
7041
 
  rm -f conftest.er1
7042
 
  cat conftest.err >&5
7043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044
 
  (exit $ac_status); } &&
7045
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7046
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047
 
  (eval $ac_try) 2>&5
7048
 
  ac_status=$?
7049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050
 
  (exit $ac_status); }; } &&
7051
 
         { ac_try='test -s conftest$ac_exeext'
7052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053
 
  (eval $ac_try) 2>&5
7054
 
  ac_status=$?
7055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056
 
  (exit $ac_status); }; }; then
7057
 
  ac_cv_lib_util_openpty=yes
 
3709
    builtin and then its argument prototype would still apply.  */
 
3710
char openpty();
 
3711
 
 
3712
int main() {
 
3713
openpty()
 
3714
; return 0; }
 
3715
EOF
 
3716
if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3717
  rm -rf conftest*
 
3718
  eval "ac_cv_lib_$ac_lib_var=yes"
7058
3719
else
7059
 
  echo "$as_me: failed program was:" >&5
7060
 
sed 's/^/| /' conftest.$ac_ext >&5
7061
 
 
7062
 
ac_cv_lib_util_openpty=no
7063
 
fi
7064
 
rm -f conftest.err conftest.$ac_objext \
7065
 
      conftest$ac_exeext conftest.$ac_ext
7066
 
LIBS=$ac_check_lib_save_LIBS
7067
 
fi
7068
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7069
 
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7070
 
if test $ac_cv_lib_util_openpty = yes; then
7071
 
 
 
3720
  echo "configure: failed program was:" >&5
 
3721
  cat conftest.$ac_ext >&5
 
3722
  rm -rf conftest*
 
3723
  eval "ac_cv_lib_$ac_lib_var=no"
 
3724
fi
 
3725
rm -f conftest*
 
3726
LIBS="$ac_save_LIBS"
 
3727
 
 
3728
fi
 
3729
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3730
  echo "$ac_t""yes" 1>&6
 
3731
  
7072
3732
        # we only need to define OPENPTY once, but since we are overriding
7073
3733
        # the default behavior, we must also handle augment LIBS too.
7074
3734
        # This needn't be done in the 2nd and 3rd tests.
7075
 
        cat >>confdefs.h <<\_ACEOF
 
3735
        cat >> confdefs.h <<\EOF
7076
3736
#define HAVE_OPENPTY 1
7077
 
_ACEOF
 
3737
EOF
7078
3738
 
7079
3739
        LIBS="$LIBS -lutil"
7080
 
 
 
3740
  
 
3741
else
 
3742
  echo "$ac_t""no" 1>&6
7081
3743
fi
7082
3744
 
7083
3745
fi
7085
3747
EXP_LIBS=$LIBS
7086
3748
LIBS=$EXP_AND_TCL_LIBS
7087
3749
unset ac_cv_func_openpty
7088
 
echo "$as_me:$LINENO: checking for openpty" >&5
7089
 
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
7090
 
if test "${ac_cv_func_openpty+set}" = set; then
7091
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3750
echo $ac_n "checking for openpty""... $ac_c" 1>&6
 
3751
echo "configure:3752: checking for openpty" >&5
 
3752
if eval "test \"`echo '$''{'ac_cv_func_openpty'+set}'`\" = set"; then
 
3753
  echo $ac_n "(cached) $ac_c" 1>&6
7092
3754
else
7093
 
  cat >conftest.$ac_ext <<_ACEOF
7094
 
/* confdefs.h.  */
7095
 
_ACEOF
7096
 
cat confdefs.h >>conftest.$ac_ext
7097
 
cat >>conftest.$ac_ext <<_ACEOF
7098
 
/* end confdefs.h.  */
7099
 
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
7100
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7101
 
#define openpty innocuous_openpty
7102
 
 
 
3755
  cat > conftest.$ac_ext <<EOF
 
3756
#line 3757 "configure"
 
3757
#include "confdefs.h"
7103
3758
/* System header to define __stub macros and hopefully few prototypes,
7104
 
    which can conflict with char openpty (); below.
7105
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106
 
    <limits.h> exists even on freestanding compilers.  */
7107
 
 
7108
 
#ifdef __STDC__
7109
 
# include <limits.h>
7110
 
#else
7111
 
# include <assert.h>
7112
 
#endif
7113
 
 
7114
 
#undef openpty
7115
 
 
 
3759
    which can conflict with char openpty(); below.  */
 
3760
#include <assert.h>
7116
3761
/* Override any gcc2 internal prototype to avoid an error.  */
7117
 
#ifdef __cplusplus
7118
 
extern "C"
7119
 
{
7120
 
#endif
7121
3762
/* We use char because int might match the return type of a gcc2
7122
 
   builtin and then its argument prototype would still apply.  */
7123
 
char openpty ();
 
3763
    builtin and then its argument prototype would still apply.  */
 
3764
char openpty();
 
3765
 
 
3766
int main() {
 
3767
 
7124
3768
/* The GNU C library defines this for functions which it implements
7125
3769
    to always fail with ENOSYS.  Some functions are actually named
7126
3770
    something starting with __ and the normal name is an alias.  */
7127
3771
#if defined (__stub_openpty) || defined (__stub___openpty)
7128
3772
choke me
7129
3773
#else
7130
 
char (*f) () = openpty;
7131
 
#endif
7132
 
#ifdef __cplusplus
7133
 
}
7134
 
#endif
7135
 
 
7136
 
int
7137
 
main ()
7138
 
{
7139
 
return f != openpty;
7140
 
  ;
7141
 
  return 0;
7142
 
}
7143
 
_ACEOF
7144
 
rm -f conftest.$ac_objext conftest$ac_exeext
7145
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146
 
  (eval $ac_link) 2>conftest.er1
7147
 
  ac_status=$?
7148
 
  grep -v '^ *+' conftest.er1 >conftest.err
7149
 
  rm -f conftest.er1
7150
 
  cat conftest.err >&5
7151
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152
 
  (exit $ac_status); } &&
7153
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7154
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155
 
  (eval $ac_try) 2>&5
7156
 
  ac_status=$?
7157
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158
 
  (exit $ac_status); }; } &&
7159
 
         { ac_try='test -s conftest$ac_exeext'
7160
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161
 
  (eval $ac_try) 2>&5
7162
 
  ac_status=$?
7163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164
 
  (exit $ac_status); }; }; then
7165
 
  ac_cv_func_openpty=yes
7166
 
else
7167
 
  echo "$as_me: failed program was:" >&5
7168
 
sed 's/^/| /' conftest.$ac_ext >&5
7169
 
 
7170
 
ac_cv_func_openpty=no
7171
 
fi
7172
 
rm -f conftest.err conftest.$ac_objext \
7173
 
      conftest$ac_exeext conftest.$ac_ext
7174
 
fi
7175
 
echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
7176
 
echo "${ECHO_T}$ac_cv_func_openpty" >&6
7177
 
if test $ac_cv_func_openpty = yes; then
7178
 
  openpty=1
7179
 
else
7180
 
  openpty=0
 
3774
openpty();
 
3775
#endif
 
3776
 
 
3777
; return 0; }
 
3778
EOF
 
3779
if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3780
  rm -rf conftest*
 
3781
  eval "ac_cv_func_openpty=yes"
 
3782
else
 
3783
  echo "configure: failed program was:" >&5
 
3784
  cat conftest.$ac_ext >&5
 
3785
  rm -rf conftest*
 
3786
  eval "ac_cv_func_openpty=no"
 
3787
fi
 
3788
rm -f conftest*
 
3789
fi
 
3790
 
 
3791
if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
 
3792
  echo "$ac_t""yes" 1>&6
 
3793
  openpty=1 
 
3794
else
 
3795
  echo "$ac_t""no" 1>&6
 
3796
openpty=0
7181
3797
fi
7182
3798
 
7183
3799
if test $openpty -eq 0 ; then
7184
3800
  unset ac_cv_lib_util_openpty
7185
 
  echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7186
 
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7187
 
if test "${ac_cv_lib_util_openpty+set}" = set; then
7188
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3801
  echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
 
3802
echo "configure:3803: checking for openpty in -lutil" >&5
 
3803
ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
 
3804
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3805
  echo $ac_n "(cached) $ac_c" 1>&6
7189
3806
else
7190
 
  ac_check_lib_save_LIBS=$LIBS
 
3807
  ac_save_LIBS="$LIBS"
7191
3808
LIBS="-lutil  $LIBS"
7192
 
cat >conftest.$ac_ext <<_ACEOF
7193
 
/* confdefs.h.  */
7194
 
_ACEOF
7195
 
cat confdefs.h >>conftest.$ac_ext
7196
 
cat >>conftest.$ac_ext <<_ACEOF
7197
 
/* end confdefs.h.  */
7198
 
 
 
3809
cat > conftest.$ac_ext <<EOF
 
3810
#line 3811 "configure"
 
3811
#include "confdefs.h"
7199
3812
/* Override any gcc2 internal prototype to avoid an error.  */
7200
 
#ifdef __cplusplus
7201
 
extern "C"
7202
 
#endif
7203
3813
/* We use char because int might match the return type of a gcc2
7204
 
   builtin and then its argument prototype would still apply.  */
7205
 
char openpty ();
7206
 
int
7207
 
main ()
7208
 
{
7209
 
openpty ();
7210
 
  ;
7211
 
  return 0;
7212
 
}
7213
 
_ACEOF
7214
 
rm -f conftest.$ac_objext conftest$ac_exeext
7215
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216
 
  (eval $ac_link) 2>conftest.er1
7217
 
  ac_status=$?
7218
 
  grep -v '^ *+' conftest.er1 >conftest.err
7219
 
  rm -f conftest.er1
7220
 
  cat conftest.err >&5
7221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222
 
  (exit $ac_status); } &&
7223
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7224
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225
 
  (eval $ac_try) 2>&5
7226
 
  ac_status=$?
7227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228
 
  (exit $ac_status); }; } &&
7229
 
         { ac_try='test -s conftest$ac_exeext'
7230
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231
 
  (eval $ac_try) 2>&5
7232
 
  ac_status=$?
7233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234
 
  (exit $ac_status); }; }; then
7235
 
  ac_cv_lib_util_openpty=yes
 
3814
    builtin and then its argument prototype would still apply.  */
 
3815
char openpty();
 
3816
 
 
3817
int main() {
 
3818
openpty()
 
3819
; return 0; }
 
3820
EOF
 
3821
if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3822
  rm -rf conftest*
 
3823
  eval "ac_cv_lib_$ac_lib_var=yes"
7236
3824
else
7237
 
  echo "$as_me: failed program was:" >&5
7238
 
sed 's/^/| /' conftest.$ac_ext >&5
7239
 
 
7240
 
ac_cv_lib_util_openpty=no
7241
 
fi
7242
 
rm -f conftest.err conftest.$ac_objext \
7243
 
      conftest$ac_exeext conftest.$ac_ext
7244
 
LIBS=$ac_check_lib_save_LIBS
7245
 
fi
7246
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7247
 
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7248
 
if test $ac_cv_lib_util_openpty = yes; then
7249
 
 
7250
 
        cat >>confdefs.h <<\_ACEOF
 
3825
  echo "configure: failed program was:" >&5
 
3826
  cat conftest.$ac_ext >&5
 
3827
  rm -rf conftest*
 
3828
  eval "ac_cv_lib_$ac_lib_var=no"
 
3829
fi
 
3830
rm -f conftest*
 
3831
LIBS="$ac_save_LIBS"
 
3832
 
 
3833
fi
 
3834
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3835
  echo "$ac_t""yes" 1>&6
 
3836
  
 
3837
        cat >> confdefs.h <<\EOF
7251
3838
#define HAVE_OPENPTY 1
7252
 
_ACEOF
 
3839
EOF
7253
3840
 
7254
3841
        LIBS="$LIBS -lutil"
7255
 
 
 
3842
  
 
3843
else
 
3844
  echo "$ac_t""no" 1>&6
7256
3845
fi
7257
3846
 
7258
3847
fi
7260
3849
EXP_AND_TCL_LIBS=$LIBS
7261
3850
LIBS=$EXP_AND_TK_LIBS
7262
3851
unset ac_cv_func_openpty
7263
 
echo "$as_me:$LINENO: checking for openpty" >&5
7264
 
echo $ECHO_N "checking for openpty... $ECHO_C" >&6
7265
 
if test "${ac_cv_func_openpty+set}" = set; then
7266
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3852
echo $ac_n "checking for openpty""... $ac_c" 1>&6
 
3853
echo "configure:3854: checking for openpty" >&5
 
3854
if eval "test \"`echo '$''{'ac_cv_func_openpty'+set}'`\" = set"; then
 
3855
  echo $ac_n "(cached) $ac_c" 1>&6
7267
3856
else
7268
 
  cat >conftest.$ac_ext <<_ACEOF
7269
 
/* confdefs.h.  */
7270
 
_ACEOF
7271
 
cat confdefs.h >>conftest.$ac_ext
7272
 
cat >>conftest.$ac_ext <<_ACEOF
7273
 
/* end confdefs.h.  */
7274
 
/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
7275
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7276
 
#define openpty innocuous_openpty
7277
 
 
 
3857
  cat > conftest.$ac_ext <<EOF
 
3858
#line 3859 "configure"
 
3859
#include "confdefs.h"
7278
3860
/* System header to define __stub macros and hopefully few prototypes,
7279
 
    which can conflict with char openpty (); below.
7280
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7281
 
    <limits.h> exists even on freestanding compilers.  */
7282
 
 
7283
 
#ifdef __STDC__
7284
 
# include <limits.h>
7285
 
#else
7286
 
# include <assert.h>
7287
 
#endif
7288
 
 
7289
 
#undef openpty
7290
 
 
 
3861
    which can conflict with char openpty(); below.  */
 
3862
#include <assert.h>
7291
3863
/* Override any gcc2 internal prototype to avoid an error.  */
7292
 
#ifdef __cplusplus
7293
 
extern "C"
7294
 
{
7295
 
#endif
7296
3864
/* We use char because int might match the return type of a gcc2
7297
 
   builtin and then its argument prototype would still apply.  */
7298
 
char openpty ();
 
3865
    builtin and then its argument prototype would still apply.  */
 
3866
char openpty();
 
3867
 
 
3868
int main() {
 
3869
 
7299
3870
/* The GNU C library defines this for functions which it implements
7300
3871
    to always fail with ENOSYS.  Some functions are actually named
7301
3872
    something starting with __ and the normal name is an alias.  */
7302
3873
#if defined (__stub_openpty) || defined (__stub___openpty)
7303
3874
choke me
7304
3875
#else
7305
 
char (*f) () = openpty;
7306
 
#endif
7307
 
#ifdef __cplusplus
7308
 
}
7309
 
#endif
7310
 
 
7311
 
int
7312
 
main ()
7313
 
{
7314
 
return f != openpty;
7315
 
  ;
7316
 
  return 0;
7317
 
}
7318
 
_ACEOF
7319
 
rm -f conftest.$ac_objext conftest$ac_exeext
7320
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7321
 
  (eval $ac_link) 2>conftest.er1
7322
 
  ac_status=$?
7323
 
  grep -v '^ *+' conftest.er1 >conftest.err
7324
 
  rm -f conftest.er1
7325
 
  cat conftest.err >&5
7326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327
 
  (exit $ac_status); } &&
7328
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7329
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330
 
  (eval $ac_try) 2>&5
7331
 
  ac_status=$?
7332
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333
 
  (exit $ac_status); }; } &&
7334
 
         { ac_try='test -s conftest$ac_exeext'
7335
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336
 
  (eval $ac_try) 2>&5
7337
 
  ac_status=$?
7338
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339
 
  (exit $ac_status); }; }; then
7340
 
  ac_cv_func_openpty=yes
7341
 
else
7342
 
  echo "$as_me: failed program was:" >&5
7343
 
sed 's/^/| /' conftest.$ac_ext >&5
7344
 
 
7345
 
ac_cv_func_openpty=no
7346
 
fi
7347
 
rm -f conftest.err conftest.$ac_objext \
7348
 
      conftest$ac_exeext conftest.$ac_ext
7349
 
fi
7350
 
echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
7351
 
echo "${ECHO_T}$ac_cv_func_openpty" >&6
7352
 
if test $ac_cv_func_openpty = yes; then
7353
 
  openpty=1
7354
 
else
7355
 
  openpty=0
 
3876
openpty();
 
3877
#endif
 
3878
 
 
3879
; return 0; }
 
3880
EOF
 
3881
if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3882
  rm -rf conftest*
 
3883
  eval "ac_cv_func_openpty=yes"
 
3884
else
 
3885
  echo "configure: failed program was:" >&5
 
3886
  cat conftest.$ac_ext >&5
 
3887
  rm -rf conftest*
 
3888
  eval "ac_cv_func_openpty=no"
 
3889
fi
 
3890
rm -f conftest*
 
3891
fi
 
3892
 
 
3893
if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
 
3894
  echo "$ac_t""yes" 1>&6
 
3895
  openpty=1 
 
3896
else
 
3897
  echo "$ac_t""no" 1>&6
 
3898
openpty=0
7356
3899
fi
7357
3900
 
7358
3901
if test $openpty -eq 0 ; then
7359
3902
  unset ac_cv_lib_util_openpty
7360
 
  echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7361
 
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7362
 
if test "${ac_cv_lib_util_openpty+set}" = set; then
7363
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3903
  echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
 
3904
echo "configure:3905: checking for openpty in -lutil" >&5
 
3905
ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
 
3906
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3907
  echo $ac_n "(cached) $ac_c" 1>&6
7364
3908
else
7365
 
  ac_check_lib_save_LIBS=$LIBS
 
3909
  ac_save_LIBS="$LIBS"
7366
3910
LIBS="-lutil  $LIBS"
7367
 
cat >conftest.$ac_ext <<_ACEOF
7368
 
/* confdefs.h.  */
7369
 
_ACEOF
7370
 
cat confdefs.h >>conftest.$ac_ext
7371
 
cat >>conftest.$ac_ext <<_ACEOF
7372
 
/* end confdefs.h.  */
7373
 
 
 
3911
cat > conftest.$ac_ext <<EOF
 
3912
#line 3913 "configure"
 
3913
#include "confdefs.h"
7374
3914
/* Override any gcc2 internal prototype to avoid an error.  */
7375
 
#ifdef __cplusplus
7376
 
extern "C"
7377
 
#endif
7378
3915
/* We use char because int might match the return type of a gcc2
7379
 
   builtin and then its argument prototype would still apply.  */
7380
 
char openpty ();
7381
 
int
7382
 
main ()
7383
 
{
7384
 
openpty ();
7385
 
  ;
7386
 
  return 0;
7387
 
}
7388
 
_ACEOF
7389
 
rm -f conftest.$ac_objext conftest$ac_exeext
7390
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391
 
  (eval $ac_link) 2>conftest.er1
7392
 
  ac_status=$?
7393
 
  grep -v '^ *+' conftest.er1 >conftest.err
7394
 
  rm -f conftest.er1
7395
 
  cat conftest.err >&5
7396
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397
 
  (exit $ac_status); } &&
7398
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7399
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400
 
  (eval $ac_try) 2>&5
7401
 
  ac_status=$?
7402
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403
 
  (exit $ac_status); }; } &&
7404
 
         { ac_try='test -s conftest$ac_exeext'
7405
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406
 
  (eval $ac_try) 2>&5
7407
 
  ac_status=$?
7408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409
 
  (exit $ac_status); }; }; then
7410
 
  ac_cv_lib_util_openpty=yes
 
3916
    builtin and then its argument prototype would still apply.  */
 
3917
char openpty();
 
3918
 
 
3919
int main() {
 
3920
openpty()
 
3921
; return 0; }
 
3922
EOF
 
3923
if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3924
  rm -rf conftest*
 
3925
  eval "ac_cv_lib_$ac_lib_var=yes"
7411
3926
else
7412
 
  echo "$as_me: failed program was:" >&5
7413
 
sed 's/^/| /' conftest.$ac_ext >&5
7414
 
 
7415
 
ac_cv_lib_util_openpty=no
7416
 
fi
7417
 
rm -f conftest.err conftest.$ac_objext \
7418
 
      conftest$ac_exeext conftest.$ac_ext
7419
 
LIBS=$ac_check_lib_save_LIBS
7420
 
fi
7421
 
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7422
 
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7423
 
if test $ac_cv_lib_util_openpty = yes; then
7424
 
 
7425
 
        cat >>confdefs.h <<\_ACEOF
 
3927
  echo "configure: failed program was:" >&5
 
3928
  cat conftest.$ac_ext >&5
 
3929
  rm -rf conftest*
 
3930
  eval "ac_cv_lib_$ac_lib_var=no"
 
3931
fi
 
3932
rm -f conftest*
 
3933
LIBS="$ac_save_LIBS"
 
3934
 
 
3935
fi
 
3936
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3937
  echo "$ac_t""yes" 1>&6
 
3938
  
 
3939
        cat >> confdefs.h <<\EOF
7426
3940
#define HAVE_OPENPTY 1
7427
 
_ACEOF
 
3941
EOF
7428
3942
 
7429
3943
        LIBS="$LIBS -lutil"
7430
 
 
 
3944
  
 
3945
else
 
3946
  echo "$ac_t""no" 1>&6
7431
3947
fi
7432
3948
 
7433
3949
fi
7441
3957
 
7442
3958
# Hand patches to library/func checking.
7443
3959
 
7444
 
echo "$as_me:$LINENO: checking if running Sequent running SVR4" >&5
7445
 
echo $ECHO_N "checking if running Sequent running SVR4... $ECHO_C" >&6
 
3960
echo $ac_n "checking if running Sequent running SVR4""... $ac_c" 1>&6
 
3961
echo "configure:3962: checking if running Sequent running SVR4" >&5
7446
3962
if test "$host_alias" = "i386-sequent-sysv4" ; then
7447
3963
 EXP_AND_TCL_LIBS="-lnsl -lsocket -lm"
7448
 
  echo "$as_me:$LINENO: result: yes" >&5
7449
 
echo "${ECHO_T}yes" >&6
 
3964
  echo "$ac_t""yes" 1>&6
7450
3965
else
7451
 
 echo "$as_me:$LINENO: result: no" >&5
7452
 
echo "${ECHO_T}no" >&6
 
3966
 echo "$ac_t""no" 1>&6
7453
3967
fi
7454
3968
 
7455
3969
######################################################################
7456
3970
#
7457
3971
# Look for various header files
7458
3972
#
7459
 
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7460
 
  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7461
 
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7462
 
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7463
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7464
 
fi
7465
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7466
 
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7467
 
else
7468
 
  # Is the header compilable?
7469
 
echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7470
 
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
7471
 
cat >conftest.$ac_ext <<_ACEOF
7472
 
/* confdefs.h.  */
7473
 
_ACEOF
7474
 
cat confdefs.h >>conftest.$ac_ext
7475
 
cat >>conftest.$ac_ext <<_ACEOF
7476
 
/* end confdefs.h.  */
7477
 
$ac_includes_default
7478
 
#include <sys/sysmacros.h>
7479
 
_ACEOF
7480
 
rm -f conftest.$ac_objext
7481
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482
 
  (eval $ac_compile) 2>conftest.er1
7483
 
  ac_status=$?
7484
 
  grep -v '^ *+' conftest.er1 >conftest.err
7485
 
  rm -f conftest.er1
7486
 
  cat conftest.err >&5
7487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488
 
  (exit $ac_status); } &&
7489
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7490
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491
 
  (eval $ac_try) 2>&5
7492
 
  ac_status=$?
7493
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494
 
  (exit $ac_status); }; } &&
7495
 
         { ac_try='test -s conftest.$ac_objext'
7496
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497
 
  (eval $ac_try) 2>&5
7498
 
  ac_status=$?
7499
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500
 
  (exit $ac_status); }; }; then
7501
 
  ac_header_compiler=yes
7502
 
else
7503
 
  echo "$as_me: failed program was:" >&5
7504
 
sed 's/^/| /' conftest.$ac_ext >&5
7505
 
 
7506
 
ac_header_compiler=no
7507
 
fi
7508
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7510
 
echo "${ECHO_T}$ac_header_compiler" >&6
7511
 
 
7512
 
# Is the header present?
7513
 
echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7514
 
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7515
 
cat >conftest.$ac_ext <<_ACEOF
7516
 
/* confdefs.h.  */
7517
 
_ACEOF
7518
 
cat confdefs.h >>conftest.$ac_ext
7519
 
cat >>conftest.$ac_ext <<_ACEOF
7520
 
/* end confdefs.h.  */
7521
 
#include <sys/sysmacros.h>
7522
 
_ACEOF
7523
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7524
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7525
 
  ac_status=$?
7526
 
  grep -v '^ *+' conftest.er1 >conftest.err
7527
 
  rm -f conftest.er1
7528
 
  cat conftest.err >&5
7529
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530
 
  (exit $ac_status); } >/dev/null; then
7531
 
  if test -s conftest.err; then
7532
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7533
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7534
 
  else
7535
 
    ac_cpp_err=
7536
 
  fi
7537
 
else
7538
 
  ac_cpp_err=yes
7539
 
fi
7540
 
if test -z "$ac_cpp_err"; then
7541
 
  ac_header_preproc=yes
7542
 
else
7543
 
  echo "$as_me: failed program was:" >&5
7544
 
sed 's/^/| /' conftest.$ac_ext >&5
7545
 
 
7546
 
  ac_header_preproc=no
7547
 
fi
7548
 
rm -f conftest.err conftest.$ac_ext
7549
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7550
 
echo "${ECHO_T}$ac_header_preproc" >&6
7551
 
 
7552
 
# So?  What about this header?
7553
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7554
 
  yes:no: )
7555
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7556
 
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7557
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7558
 
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7559
 
    ac_header_preproc=yes
7560
 
    ;;
7561
 
  no:yes:* )
7562
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7563
 
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7564
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7565
 
echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7566
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7567
 
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7568
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7569
 
echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7570
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7571
 
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7572
 
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7573
 
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7574
 
    (
7575
 
      cat <<\_ASBOX
7576
 
## ------------------------------------------ ##
7577
 
## Report this to the AC_PACKAGE_NAME lists.  ##
7578
 
## ------------------------------------------ ##
7579
 
_ASBOX
7580
 
    ) |
7581
 
      sed "s/^/$as_me: WARNING:     /" >&2
7582
 
    ;;
7583
 
esac
7584
 
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7585
 
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7586
 
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7587
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7588
 
else
7589
 
  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7590
 
fi
7591
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7592
 
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7593
 
 
7594
 
fi
7595
 
if test $ac_cv_header_sys_sysmacros_h = yes; then
7596
 
  cat >>confdefs.h <<\_ACEOF
 
3973
ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
 
3974
echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
 
3975
echo "configure:3976: checking for sys/sysmacros.h" >&5
 
3976
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
3977
  echo $ac_n "(cached) $ac_c" 1>&6
 
3978
else
 
3979
  cat > conftest.$ac_ext <<EOF
 
3980
#line 3981 "configure"
 
3981
#include "confdefs.h"
 
3982
#include <sys/sysmacros.h>
 
3983
EOF
 
3984
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
3985
{ (eval echo configure:3986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3986
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
3987
if test -z "$ac_err"; then
 
3988
  rm -rf conftest*
 
3989
  eval "ac_cv_header_$ac_safe=yes"
 
3990
else
 
3991
  echo "$ac_err" >&5
 
3992
  echo "configure: failed program was:" >&5
 
3993
  cat conftest.$ac_ext >&5
 
3994
  rm -rf conftest*
 
3995
  eval "ac_cv_header_$ac_safe=no"
 
3996
fi
 
3997
rm -f conftest*
 
3998
fi
 
3999
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4000
  echo "$ac_t""yes" 1>&6
 
4001
  cat >> confdefs.h <<\EOF
7597
4002
#define HAVE_SYSMACROS_H 1
7598
 
_ACEOF
7599
 
 
7600
 
fi
7601
 
 
7602
 
 
7603
 
if test "${ac_cv_header_stdlib_h+set}" = set; then
7604
 
  echo "$as_me:$LINENO: checking for stdlib.h" >&5
7605
 
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
7606
 
if test "${ac_cv_header_stdlib_h+set}" = set; then
7607
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7608
 
fi
7609
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7610
 
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
7611
 
else
7612
 
  # Is the header compilable?
7613
 
echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7614
 
echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
7615
 
cat >conftest.$ac_ext <<_ACEOF
7616
 
/* confdefs.h.  */
7617
 
_ACEOF
7618
 
cat confdefs.h >>conftest.$ac_ext
7619
 
cat >>conftest.$ac_ext <<_ACEOF
7620
 
/* end confdefs.h.  */
7621
 
$ac_includes_default
7622
 
#include <stdlib.h>
7623
 
_ACEOF
7624
 
rm -f conftest.$ac_objext
7625
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626
 
  (eval $ac_compile) 2>conftest.er1
7627
 
  ac_status=$?
7628
 
  grep -v '^ *+' conftest.er1 >conftest.err
7629
 
  rm -f conftest.er1
7630
 
  cat conftest.err >&5
7631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632
 
  (exit $ac_status); } &&
7633
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7634
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635
 
  (eval $ac_try) 2>&5
7636
 
  ac_status=$?
7637
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638
 
  (exit $ac_status); }; } &&
7639
 
         { ac_try='test -s conftest.$ac_objext'
7640
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641
 
  (eval $ac_try) 2>&5
7642
 
  ac_status=$?
7643
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644
 
  (exit $ac_status); }; }; then
7645
 
  ac_header_compiler=yes
7646
 
else
7647
 
  echo "$as_me: failed program was:" >&5
7648
 
sed 's/^/| /' conftest.$ac_ext >&5
7649
 
 
7650
 
ac_header_compiler=no
7651
 
fi
7652
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7654
 
echo "${ECHO_T}$ac_header_compiler" >&6
7655
 
 
7656
 
# Is the header present?
7657
 
echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7658
 
echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
7659
 
cat >conftest.$ac_ext <<_ACEOF
7660
 
/* confdefs.h.  */
7661
 
_ACEOF
7662
 
cat confdefs.h >>conftest.$ac_ext
7663
 
cat >>conftest.$ac_ext <<_ACEOF
7664
 
/* end confdefs.h.  */
7665
 
#include <stdlib.h>
7666
 
_ACEOF
7667
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7668
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7669
 
  ac_status=$?
7670
 
  grep -v '^ *+' conftest.er1 >conftest.err
7671
 
  rm -f conftest.er1
7672
 
  cat conftest.err >&5
7673
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674
 
  (exit $ac_status); } >/dev/null; then
7675
 
  if test -s conftest.err; then
7676
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7677
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7678
 
  else
7679
 
    ac_cpp_err=
7680
 
  fi
7681
 
else
7682
 
  ac_cpp_err=yes
7683
 
fi
7684
 
if test -z "$ac_cpp_err"; then
7685
 
  ac_header_preproc=yes
7686
 
else
7687
 
  echo "$as_me: failed program was:" >&5
7688
 
sed 's/^/| /' conftest.$ac_ext >&5
7689
 
 
7690
 
  ac_header_preproc=no
7691
 
fi
7692
 
rm -f conftest.err conftest.$ac_ext
7693
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7694
 
echo "${ECHO_T}$ac_header_preproc" >&6
7695
 
 
7696
 
# So?  What about this header?
7697
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7698
 
  yes:no: )
7699
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7700
 
echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7701
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
7702
 
echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
7703
 
    ac_header_preproc=yes
7704
 
    ;;
7705
 
  no:yes:* )
7706
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7707
 
echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7708
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h:     check for missing prerequisite headers?" >&5
7709
 
echo "$as_me: WARNING: stdlib.h:     check for missing prerequisite headers?" >&2;}
7710
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
7711
 
echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
7712
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&5
7713
 
echo "$as_me: WARNING: stdlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7714
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7715
 
echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7716
 
    { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
7717
 
echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
7718
 
    (
7719
 
      cat <<\_ASBOX
7720
 
## ------------------------------------------ ##
7721
 
## Report this to the AC_PACKAGE_NAME lists.  ##
7722
 
## ------------------------------------------ ##
7723
 
_ASBOX
7724
 
    ) |
7725
 
      sed "s/^/$as_me: WARNING:     /" >&2
7726
 
    ;;
7727
 
esac
7728
 
echo "$as_me:$LINENO: checking for stdlib.h" >&5
7729
 
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
7730
 
if test "${ac_cv_header_stdlib_h+set}" = set; then
7731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7732
 
else
7733
 
  ac_cv_header_stdlib_h=$ac_header_preproc
7734
 
fi
7735
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7736
 
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
7737
 
 
7738
 
fi
7739
 
if test $ac_cv_header_stdlib_h = yes; then
 
4003
EOF
 
4004
 
 
4005
else
 
4006
  echo "$ac_t""no" 1>&6
 
4007
fi
 
4008
 
 
4009
ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
 
4010
echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
 
4011
echo "configure:4012: checking for stdlib.h" >&5
 
4012
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4013
  echo $ac_n "(cached) $ac_c" 1>&6
 
4014
else
 
4015
  cat > conftest.$ac_ext <<EOF
 
4016
#line 4017 "configure"
 
4017
#include "confdefs.h"
 
4018
#include <stdlib.h>
 
4019
EOF
 
4020
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4021
{ (eval echo configure:4022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4022
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4023
if test -z "$ac_err"; then
 
4024
  rm -rf conftest*
 
4025
  eval "ac_cv_header_$ac_safe=yes"
 
4026
else
 
4027
  echo "$ac_err" >&5
 
4028
  echo "configure: failed program was:" >&5
 
4029
  cat conftest.$ac_ext >&5
 
4030
  rm -rf conftest*
 
4031
  eval "ac_cv_header_$ac_safe=no"
 
4032
fi
 
4033
rm -f conftest*
 
4034
fi
 
4035
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4036
  echo "$ac_t""yes" 1>&6
7740
4037
  :
7741
4038
else
7742
 
  cat >>confdefs.h <<\_ACEOF
 
4039
  echo "$ac_t""no" 1>&6
 
4040
cat >> confdefs.h <<\EOF
7743
4041
#define NO_STDLIB_H 1
7744
 
_ACEOF
7745
 
 
7746
 
fi
7747
 
 
7748
 
 
7749
 
if test "${ac_cv_header_inttypes_h+set}" = set; then
7750
 
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
7751
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7752
 
if test "${ac_cv_header_inttypes_h+set}" = set; then
7753
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7754
 
fi
7755
 
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
7756
 
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7757
 
else
7758
 
  # Is the header compilable?
7759
 
echo "$as_me:$LINENO: checking inttypes.h usability" >&5
7760
 
echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
7761
 
cat >conftest.$ac_ext <<_ACEOF
7762
 
/* confdefs.h.  */
7763
 
_ACEOF
7764
 
cat confdefs.h >>conftest.$ac_ext
7765
 
cat >>conftest.$ac_ext <<_ACEOF
7766
 
/* end confdefs.h.  */
7767
 
$ac_includes_default
7768
 
#include <inttypes.h>
7769
 
_ACEOF
7770
 
rm -f conftest.$ac_objext
7771
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772
 
  (eval $ac_compile) 2>conftest.er1
7773
 
  ac_status=$?
7774
 
  grep -v '^ *+' conftest.er1 >conftest.err
7775
 
  rm -f conftest.er1
7776
 
  cat conftest.err >&5
7777
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778
 
  (exit $ac_status); } &&
7779
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7780
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781
 
  (eval $ac_try) 2>&5
7782
 
  ac_status=$?
7783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784
 
  (exit $ac_status); }; } &&
7785
 
         { ac_try='test -s conftest.$ac_objext'
7786
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787
 
  (eval $ac_try) 2>&5
7788
 
  ac_status=$?
7789
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790
 
  (exit $ac_status); }; }; then
7791
 
  ac_header_compiler=yes
7792
 
else
7793
 
  echo "$as_me: failed program was:" >&5
7794
 
sed 's/^/| /' conftest.$ac_ext >&5
7795
 
 
7796
 
ac_header_compiler=no
7797
 
fi
7798
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800
 
echo "${ECHO_T}$ac_header_compiler" >&6
7801
 
 
7802
 
# Is the header present?
7803
 
echo "$as_me:$LINENO: checking inttypes.h presence" >&5
7804
 
echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
7805
 
cat >conftest.$ac_ext <<_ACEOF
7806
 
/* confdefs.h.  */
7807
 
_ACEOF
7808
 
cat confdefs.h >>conftest.$ac_ext
7809
 
cat >>conftest.$ac_ext <<_ACEOF
7810
 
/* end confdefs.h.  */
7811
 
#include <inttypes.h>
7812
 
_ACEOF
7813
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7814
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7815
 
  ac_status=$?
7816
 
  grep -v '^ *+' conftest.er1 >conftest.err
7817
 
  rm -f conftest.er1
7818
 
  cat conftest.err >&5
7819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820
 
  (exit $ac_status); } >/dev/null; then
7821
 
  if test -s conftest.err; then
7822
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7823
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7824
 
  else
7825
 
    ac_cpp_err=
7826
 
  fi
7827
 
else
7828
 
  ac_cpp_err=yes
7829
 
fi
7830
 
if test -z "$ac_cpp_err"; then
7831
 
  ac_header_preproc=yes
7832
 
else
7833
 
  echo "$as_me: failed program was:" >&5
7834
 
sed 's/^/| /' conftest.$ac_ext >&5
7835
 
 
7836
 
  ac_header_preproc=no
7837
 
fi
7838
 
rm -f conftest.err conftest.$ac_ext
7839
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7840
 
echo "${ECHO_T}$ac_header_preproc" >&6
7841
 
 
7842
 
# So?  What about this header?
7843
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7844
 
  yes:no: )
7845
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
7846
 
echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7847
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
7848
 
echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
7849
 
    ac_header_preproc=yes
7850
 
    ;;
7851
 
  no:yes:* )
7852
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
7853
 
echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
7854
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
7855
 
echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
7856
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
7857
 
echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
7858
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
7859
 
echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7860
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
7861
 
echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
7862
 
    { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
7863
 
echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
7864
 
    (
7865
 
      cat <<\_ASBOX
7866
 
## ------------------------------------------ ##
7867
 
## Report this to the AC_PACKAGE_NAME lists.  ##
7868
 
## ------------------------------------------ ##
7869
 
_ASBOX
7870
 
    ) |
7871
 
      sed "s/^/$as_me: WARNING:     /" >&2
7872
 
    ;;
7873
 
esac
7874
 
echo "$as_me:$LINENO: checking for inttypes.h" >&5
7875
 
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7876
 
if test "${ac_cv_header_inttypes_h+set}" = set; then
7877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7878
 
else
7879
 
  ac_cv_header_inttypes_h=$ac_header_preproc
7880
 
fi
7881
 
echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
7882
 
echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7883
 
 
7884
 
fi
7885
 
if test $ac_cv_header_inttypes_h = yes; then
7886
 
  cat >>confdefs.h <<\_ACEOF
 
4042
EOF
 
4043
 
 
4044
fi
 
4045
 
 
4046
ac_safe=`echo "inttypes.h" | sed 'y%./+-%__p_%'`
 
4047
echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
 
4048
echo "configure:4049: checking for inttypes.h" >&5
 
4049
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4050
  echo $ac_n "(cached) $ac_c" 1>&6
 
4051
else
 
4052
  cat > conftest.$ac_ext <<EOF
 
4053
#line 4054 "configure"
 
4054
#include "confdefs.h"
 
4055
#include <inttypes.h>
 
4056
EOF
 
4057
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4058
{ (eval echo configure:4059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4059
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4060
if test -z "$ac_err"; then
 
4061
  rm -rf conftest*
 
4062
  eval "ac_cv_header_$ac_safe=yes"
 
4063
else
 
4064
  echo "$ac_err" >&5
 
4065
  echo "configure: failed program was:" >&5
 
4066
  cat conftest.$ac_ext >&5
 
4067
  rm -rf conftest*
 
4068
  eval "ac_cv_header_$ac_safe=no"
 
4069
fi
 
4070
rm -f conftest*
 
4071
fi
 
4072
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4073
  echo "$ac_t""yes" 1>&6
 
4074
  cat >> confdefs.h <<\EOF
7887
4075
#define HAVE_INTTYPES_H 1
7888
 
_ACEOF
 
4076
EOF
7889
4077
 
 
4078
else
 
4079
  echo "$ac_t""no" 1>&6
7890
4080
fi
7891
4081
 
7892
4082
 
7893
 
 
7894
4083
# Oddly, some systems have stdarg but don't support prototypes
7895
4084
# Tcl avoids the whole issue by not using stdarg on UNIX at all!
7896
4085
 
7897
 
if test "${ac_cv_header_varargs_h+set}" = set; then
7898
 
  echo "$as_me:$LINENO: checking for varargs.h" >&5
7899
 
echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
7900
 
if test "${ac_cv_header_varargs_h+set}" = set; then
7901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7902
 
fi
7903
 
echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
7904
 
echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
7905
 
else
7906
 
  # Is the header compilable?
7907
 
echo "$as_me:$LINENO: checking varargs.h usability" >&5
7908
 
echo $ECHO_N "checking varargs.h usability... $ECHO_C" >&6
7909
 
cat >conftest.$ac_ext <<_ACEOF
7910
 
/* confdefs.h.  */
7911
 
_ACEOF
7912
 
cat confdefs.h >>conftest.$ac_ext
7913
 
cat >>conftest.$ac_ext <<_ACEOF
7914
 
/* end confdefs.h.  */
7915
 
$ac_includes_default
7916
 
#include <varargs.h>
7917
 
_ACEOF
7918
 
rm -f conftest.$ac_objext
7919
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920
 
  (eval $ac_compile) 2>conftest.er1
7921
 
  ac_status=$?
7922
 
  grep -v '^ *+' conftest.er1 >conftest.err
7923
 
  rm -f conftest.er1
7924
 
  cat conftest.err >&5
7925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926
 
  (exit $ac_status); } &&
7927
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7928
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929
 
  (eval $ac_try) 2>&5
7930
 
  ac_status=$?
7931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932
 
  (exit $ac_status); }; } &&
7933
 
         { ac_try='test -s conftest.$ac_objext'
7934
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935
 
  (eval $ac_try) 2>&5
7936
 
  ac_status=$?
7937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938
 
  (exit $ac_status); }; }; then
7939
 
  ac_header_compiler=yes
7940
 
else
7941
 
  echo "$as_me: failed program was:" >&5
7942
 
sed 's/^/| /' conftest.$ac_ext >&5
7943
 
 
7944
 
ac_header_compiler=no
7945
 
fi
7946
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7947
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7948
 
echo "${ECHO_T}$ac_header_compiler" >&6
7949
 
 
7950
 
# Is the header present?
7951
 
echo "$as_me:$LINENO: checking varargs.h presence" >&5
7952
 
echo $ECHO_N "checking varargs.h presence... $ECHO_C" >&6
7953
 
cat >conftest.$ac_ext <<_ACEOF
7954
 
/* confdefs.h.  */
7955
 
_ACEOF
7956
 
cat confdefs.h >>conftest.$ac_ext
7957
 
cat >>conftest.$ac_ext <<_ACEOF
7958
 
/* end confdefs.h.  */
7959
 
#include <varargs.h>
7960
 
_ACEOF
7961
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7962
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7963
 
  ac_status=$?
7964
 
  grep -v '^ *+' conftest.er1 >conftest.err
7965
 
  rm -f conftest.er1
7966
 
  cat conftest.err >&5
7967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
 
  (exit $ac_status); } >/dev/null; then
7969
 
  if test -s conftest.err; then
7970
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7971
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7972
 
  else
7973
 
    ac_cpp_err=
7974
 
  fi
7975
 
else
7976
 
  ac_cpp_err=yes
7977
 
fi
7978
 
if test -z "$ac_cpp_err"; then
7979
 
  ac_header_preproc=yes
7980
 
else
7981
 
  echo "$as_me: failed program was:" >&5
7982
 
sed 's/^/| /' conftest.$ac_ext >&5
7983
 
 
7984
 
  ac_header_preproc=no
7985
 
fi
7986
 
rm -f conftest.err conftest.$ac_ext
7987
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7988
 
echo "${ECHO_T}$ac_header_preproc" >&6
7989
 
 
7990
 
# So?  What about this header?
7991
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7992
 
  yes:no: )
7993
 
    { echo "$as_me:$LINENO: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7994
 
echo "$as_me: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7995
 
    { echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the compiler's result" >&5
7996
 
echo "$as_me: WARNING: varargs.h: proceeding with the compiler's result" >&2;}
7997
 
    ac_header_preproc=yes
7998
 
    ;;
7999
 
  no:yes:* )
8000
 
    { echo "$as_me:$LINENO: WARNING: varargs.h: present but cannot be compiled" >&5
8001
 
echo "$as_me: WARNING: varargs.h: present but cannot be compiled" >&2;}
8002
 
    { echo "$as_me:$LINENO: WARNING: varargs.h:     check for missing prerequisite headers?" >&5
8003
 
echo "$as_me: WARNING: varargs.h:     check for missing prerequisite headers?" >&2;}
8004
 
    { echo "$as_me:$LINENO: WARNING: varargs.h: see the Autoconf documentation" >&5
8005
 
echo "$as_me: WARNING: varargs.h: see the Autoconf documentation" >&2;}
8006
 
    { echo "$as_me:$LINENO: WARNING: varargs.h:     section \"Present But Cannot Be Compiled\"" >&5
8007
 
echo "$as_me: WARNING: varargs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8008
 
    { echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the preprocessor's result" >&5
8009
 
echo "$as_me: WARNING: varargs.h: proceeding with the preprocessor's result" >&2;}
8010
 
    { echo "$as_me:$LINENO: WARNING: varargs.h: in the future, the compiler will take precedence" >&5
8011
 
echo "$as_me: WARNING: varargs.h: in the future, the compiler will take precedence" >&2;}
8012
 
    (
8013
 
      cat <<\_ASBOX
8014
 
## ------------------------------------------ ##
8015
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8016
 
## ------------------------------------------ ##
8017
 
_ASBOX
8018
 
    ) |
8019
 
      sed "s/^/$as_me: WARNING:     /" >&2
8020
 
    ;;
8021
 
esac
8022
 
echo "$as_me:$LINENO: checking for varargs.h" >&5
8023
 
echo $ECHO_N "checking for varargs.h... $ECHO_C" >&6
8024
 
if test "${ac_cv_header_varargs_h+set}" = set; then
8025
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8026
 
else
8027
 
  ac_cv_header_varargs_h=$ac_header_preproc
8028
 
fi
8029
 
echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
8030
 
echo "${ECHO_T}$ac_cv_header_varargs_h" >&6
8031
 
 
8032
 
fi
8033
 
if test $ac_cv_header_varargs_h = yes; then
8034
 
  cat >>confdefs.h <<\_ACEOF
 
4086
ac_safe=`echo "varargs.h" | sed 'y%./+-%__p_%'`
 
4087
echo $ac_n "checking for varargs.h""... $ac_c" 1>&6
 
4088
echo "configure:4089: checking for varargs.h" >&5
 
4089
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4090
  echo $ac_n "(cached) $ac_c" 1>&6
 
4091
else
 
4092
  cat > conftest.$ac_ext <<EOF
 
4093
#line 4094 "configure"
 
4094
#include "confdefs.h"
 
4095
#include <varargs.h>
 
4096
EOF
 
4097
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4098
{ (eval echo configure:4099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4099
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4100
if test -z "$ac_err"; then
 
4101
  rm -rf conftest*
 
4102
  eval "ac_cv_header_$ac_safe=yes"
 
4103
else
 
4104
  echo "$ac_err" >&5
 
4105
  echo "configure: failed program was:" >&5
 
4106
  cat conftest.$ac_ext >&5
 
4107
  rm -rf conftest*
 
4108
  eval "ac_cv_header_$ac_safe=no"
 
4109
fi
 
4110
rm -f conftest*
 
4111
fi
 
4112
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4113
  echo "$ac_t""yes" 1>&6
 
4114
  cat >> confdefs.h <<\EOF
8035
4115
#define HAVE_VARARGS_H 1
8036
 
_ACEOF
8037
 
 
8038
 
fi
8039
 
 
8040
 
 
8041
 
if test "${ac_cv_header_unistd_h+set}" = set; then
8042
 
  echo "$as_me:$LINENO: checking for unistd.h" >&5
8043
 
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
8044
 
if test "${ac_cv_header_unistd_h+set}" = set; then
8045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8046
 
fi
8047
 
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8048
 
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
8049
 
else
8050
 
  # Is the header compilable?
8051
 
echo "$as_me:$LINENO: checking unistd.h usability" >&5
8052
 
echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
8053
 
cat >conftest.$ac_ext <<_ACEOF
8054
 
/* confdefs.h.  */
8055
 
_ACEOF
8056
 
cat confdefs.h >>conftest.$ac_ext
8057
 
cat >>conftest.$ac_ext <<_ACEOF
8058
 
/* end confdefs.h.  */
8059
 
$ac_includes_default
8060
 
#include <unistd.h>
8061
 
_ACEOF
8062
 
rm -f conftest.$ac_objext
8063
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8064
 
  (eval $ac_compile) 2>conftest.er1
8065
 
  ac_status=$?
8066
 
  grep -v '^ *+' conftest.er1 >conftest.err
8067
 
  rm -f conftest.er1
8068
 
  cat conftest.err >&5
8069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070
 
  (exit $ac_status); } &&
8071
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8072
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073
 
  (eval $ac_try) 2>&5
8074
 
  ac_status=$?
8075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076
 
  (exit $ac_status); }; } &&
8077
 
         { ac_try='test -s conftest.$ac_objext'
8078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079
 
  (eval $ac_try) 2>&5
8080
 
  ac_status=$?
8081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082
 
  (exit $ac_status); }; }; then
8083
 
  ac_header_compiler=yes
8084
 
else
8085
 
  echo "$as_me: failed program was:" >&5
8086
 
sed 's/^/| /' conftest.$ac_ext >&5
8087
 
 
8088
 
ac_header_compiler=no
8089
 
fi
8090
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8091
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8092
 
echo "${ECHO_T}$ac_header_compiler" >&6
8093
 
 
8094
 
# Is the header present?
8095
 
echo "$as_me:$LINENO: checking unistd.h presence" >&5
8096
 
echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
8097
 
cat >conftest.$ac_ext <<_ACEOF
8098
 
/* confdefs.h.  */
8099
 
_ACEOF
8100
 
cat confdefs.h >>conftest.$ac_ext
8101
 
cat >>conftest.$ac_ext <<_ACEOF
8102
 
/* end confdefs.h.  */
8103
 
#include <unistd.h>
8104
 
_ACEOF
8105
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8106
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8107
 
  ac_status=$?
8108
 
  grep -v '^ *+' conftest.er1 >conftest.err
8109
 
  rm -f conftest.er1
8110
 
  cat conftest.err >&5
8111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112
 
  (exit $ac_status); } >/dev/null; then
8113
 
  if test -s conftest.err; then
8114
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8115
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8116
 
  else
8117
 
    ac_cpp_err=
8118
 
  fi
8119
 
else
8120
 
  ac_cpp_err=yes
8121
 
fi
8122
 
if test -z "$ac_cpp_err"; then
8123
 
  ac_header_preproc=yes
8124
 
else
8125
 
  echo "$as_me: failed program was:" >&5
8126
 
sed 's/^/| /' conftest.$ac_ext >&5
8127
 
 
8128
 
  ac_header_preproc=no
8129
 
fi
8130
 
rm -f conftest.err conftest.$ac_ext
8131
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8132
 
echo "${ECHO_T}$ac_header_preproc" >&6
8133
 
 
8134
 
# So?  What about this header?
8135
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8136
 
  yes:no: )
8137
 
    { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
8138
 
echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8139
 
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
8140
 
echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
8141
 
    ac_header_preproc=yes
8142
 
    ;;
8143
 
  no:yes:* )
8144
 
    { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
8145
 
echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
8146
 
    { echo "$as_me:$LINENO: WARNING: unistd.h:     check for missing prerequisite headers?" >&5
8147
 
echo "$as_me: WARNING: unistd.h:     check for missing prerequisite headers?" >&2;}
8148
 
    { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
8149
 
echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
8150
 
    { echo "$as_me:$LINENO: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&5
8151
 
echo "$as_me: WARNING: unistd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8152
 
    { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
8153
 
echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
8154
 
    { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
8155
 
echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
8156
 
    (
8157
 
      cat <<\_ASBOX
8158
 
## ------------------------------------------ ##
8159
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8160
 
## ------------------------------------------ ##
8161
 
_ASBOX
8162
 
    ) |
8163
 
      sed "s/^/$as_me: WARNING:     /" >&2
8164
 
    ;;
8165
 
esac
8166
 
echo "$as_me:$LINENO: checking for unistd.h" >&5
8167
 
echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
8168
 
if test "${ac_cv_header_unistd_h+set}" = set; then
8169
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8170
 
else
8171
 
  ac_cv_header_unistd_h=$ac_header_preproc
8172
 
fi
8173
 
echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
8174
 
echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
8175
 
 
8176
 
fi
8177
 
if test $ac_cv_header_unistd_h = yes; then
8178
 
  cat >>confdefs.h <<\_ACEOF
 
4116
EOF
 
4117
 
 
4118
else
 
4119
  echo "$ac_t""no" 1>&6
 
4120
fi
 
4121
 
 
4122
ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
 
4123
echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
 
4124
echo "configure:4125: checking for unistd.h" >&5
 
4125
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4126
  echo $ac_n "(cached) $ac_c" 1>&6
 
4127
else
 
4128
  cat > conftest.$ac_ext <<EOF
 
4129
#line 4130 "configure"
 
4130
#include "confdefs.h"
 
4131
#include <unistd.h>
 
4132
EOF
 
4133
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4134
{ (eval echo configure:4135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4135
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4136
if test -z "$ac_err"; then
 
4137
  rm -rf conftest*
 
4138
  eval "ac_cv_header_$ac_safe=yes"
 
4139
else
 
4140
  echo "$ac_err" >&5
 
4141
  echo "configure: failed program was:" >&5
 
4142
  cat conftest.$ac_ext >&5
 
4143
  rm -rf conftest*
 
4144
  eval "ac_cv_header_$ac_safe=no"
 
4145
fi
 
4146
rm -f conftest*
 
4147
fi
 
4148
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4149
  echo "$ac_t""yes" 1>&6
 
4150
  cat >> confdefs.h <<\EOF
8179
4151
#define HAVE_UNISTD_H 1
8180
 
_ACEOF
 
4152
EOF
8181
4153
 
 
4154
else
 
4155
  echo "$ac_t""no" 1>&6
8182
4156
fi
8183
4157
 
8184
 
 
8185
4158
# If no stropts.h, then the svr4 implementation is broken.
8186
4159
# At least it is on my Debian "potato" system. - Rob Savoye
8187
 
if test "${ac_cv_header_sys_stropts_h+set}" = set; then
8188
 
  echo "$as_me:$LINENO: checking for sys/stropts.h" >&5
8189
 
echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6
8190
 
if test "${ac_cv_header_sys_stropts_h+set}" = set; then
8191
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8192
 
fi
8193
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5
8194
 
echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6
8195
 
else
8196
 
  # Is the header compilable?
8197
 
echo "$as_me:$LINENO: checking sys/stropts.h usability" >&5
8198
 
echo $ECHO_N "checking sys/stropts.h usability... $ECHO_C" >&6
8199
 
cat >conftest.$ac_ext <<_ACEOF
8200
 
/* confdefs.h.  */
8201
 
_ACEOF
8202
 
cat confdefs.h >>conftest.$ac_ext
8203
 
cat >>conftest.$ac_ext <<_ACEOF
8204
 
/* end confdefs.h.  */
8205
 
$ac_includes_default
8206
 
#include <sys/stropts.h>
8207
 
_ACEOF
8208
 
rm -f conftest.$ac_objext
8209
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210
 
  (eval $ac_compile) 2>conftest.er1
8211
 
  ac_status=$?
8212
 
  grep -v '^ *+' conftest.er1 >conftest.err
8213
 
  rm -f conftest.er1
8214
 
  cat conftest.err >&5
8215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
 
  (exit $ac_status); } &&
8217
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8218
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219
 
  (eval $ac_try) 2>&5
8220
 
  ac_status=$?
8221
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222
 
  (exit $ac_status); }; } &&
8223
 
         { ac_try='test -s conftest.$ac_objext'
8224
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225
 
  (eval $ac_try) 2>&5
8226
 
  ac_status=$?
8227
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228
 
  (exit $ac_status); }; }; then
8229
 
  ac_header_compiler=yes
8230
 
else
8231
 
  echo "$as_me: failed program was:" >&5
8232
 
sed 's/^/| /' conftest.$ac_ext >&5
8233
 
 
8234
 
ac_header_compiler=no
8235
 
fi
8236
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8238
 
echo "${ECHO_T}$ac_header_compiler" >&6
8239
 
 
8240
 
# Is the header present?
8241
 
echo "$as_me:$LINENO: checking sys/stropts.h presence" >&5
8242
 
echo $ECHO_N "checking sys/stropts.h presence... $ECHO_C" >&6
8243
 
cat >conftest.$ac_ext <<_ACEOF
8244
 
/* confdefs.h.  */
8245
 
_ACEOF
8246
 
cat confdefs.h >>conftest.$ac_ext
8247
 
cat >>conftest.$ac_ext <<_ACEOF
8248
 
/* end confdefs.h.  */
8249
 
#include <sys/stropts.h>
8250
 
_ACEOF
8251
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8252
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8253
 
  ac_status=$?
8254
 
  grep -v '^ *+' conftest.er1 >conftest.err
8255
 
  rm -f conftest.er1
8256
 
  cat conftest.err >&5
8257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258
 
  (exit $ac_status); } >/dev/null; then
8259
 
  if test -s conftest.err; then
8260
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8261
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8262
 
  else
8263
 
    ac_cpp_err=
8264
 
  fi
8265
 
else
8266
 
  ac_cpp_err=yes
8267
 
fi
8268
 
if test -z "$ac_cpp_err"; then
8269
 
  ac_header_preproc=yes
8270
 
else
8271
 
  echo "$as_me: failed program was:" >&5
8272
 
sed 's/^/| /' conftest.$ac_ext >&5
8273
 
 
8274
 
  ac_header_preproc=no
8275
 
fi
8276
 
rm -f conftest.err conftest.$ac_ext
8277
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8278
 
echo "${ECHO_T}$ac_header_preproc" >&6
8279
 
 
8280
 
# So?  What about this header?
8281
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8282
 
  yes:no: )
8283
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&5
8284
 
echo "$as_me: WARNING: sys/stropts.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8285
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the compiler's result" >&5
8286
 
echo "$as_me: WARNING: sys/stropts.h: proceeding with the compiler's result" >&2;}
8287
 
    ac_header_preproc=yes
8288
 
    ;;
8289
 
  no:yes:* )
8290
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h: present but cannot be compiled" >&5
8291
 
echo "$as_me: WARNING: sys/stropts.h: present but cannot be compiled" >&2;}
8292
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h:     check for missing prerequisite headers?" >&5
8293
 
echo "$as_me: WARNING: sys/stropts.h:     check for missing prerequisite headers?" >&2;}
8294
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h: see the Autoconf documentation" >&5
8295
 
echo "$as_me: WARNING: sys/stropts.h: see the Autoconf documentation" >&2;}
8296
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h:     section \"Present But Cannot Be Compiled\"" >&5
8297
 
echo "$as_me: WARNING: sys/stropts.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8298
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&5
8299
 
echo "$as_me: WARNING: sys/stropts.h: proceeding with the preprocessor's result" >&2;}
8300
 
    { echo "$as_me:$LINENO: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&5
8301
 
echo "$as_me: WARNING: sys/stropts.h: in the future, the compiler will take precedence" >&2;}
8302
 
    (
8303
 
      cat <<\_ASBOX
8304
 
## ------------------------------------------ ##
8305
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8306
 
## ------------------------------------------ ##
8307
 
_ASBOX
8308
 
    ) |
8309
 
      sed "s/^/$as_me: WARNING:     /" >&2
8310
 
    ;;
8311
 
esac
8312
 
echo "$as_me:$LINENO: checking for sys/stropts.h" >&5
8313
 
echo $ECHO_N "checking for sys/stropts.h... $ECHO_C" >&6
8314
 
if test "${ac_cv_header_sys_stropts_h+set}" = set; then
8315
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8316
 
else
8317
 
  ac_cv_header_sys_stropts_h=$ac_header_preproc
8318
 
fi
8319
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_stropts_h" >&5
8320
 
echo "${ECHO_T}$ac_cv_header_sys_stropts_h" >&6
8321
 
 
8322
 
fi
8323
 
if test $ac_cv_header_sys_stropts_h = yes; then
8324
 
  cat >>confdefs.h <<\_ACEOF
 
4160
ac_safe=`echo "sys/stropts.h" | sed 'y%./+-%__p_%'`
 
4161
echo $ac_n "checking for sys/stropts.h""... $ac_c" 1>&6
 
4162
echo "configure:4163: checking for sys/stropts.h" >&5
 
4163
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4164
  echo $ac_n "(cached) $ac_c" 1>&6
 
4165
else
 
4166
  cat > conftest.$ac_ext <<EOF
 
4167
#line 4168 "configure"
 
4168
#include "confdefs.h"
 
4169
#include <sys/stropts.h>
 
4170
EOF
 
4171
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4172
{ (eval echo configure:4173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4173
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4174
if test -z "$ac_err"; then
 
4175
  rm -rf conftest*
 
4176
  eval "ac_cv_header_$ac_safe=yes"
 
4177
else
 
4178
  echo "$ac_err" >&5
 
4179
  echo "configure: failed program was:" >&5
 
4180
  cat conftest.$ac_ext >&5
 
4181
  rm -rf conftest*
 
4182
  eval "ac_cv_header_$ac_safe=no"
 
4183
fi
 
4184
rm -f conftest*
 
4185
fi
 
4186
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4187
  echo "$ac_t""yes" 1>&6
 
4188
  cat >> confdefs.h <<\EOF
8325
4189
#define HAVE_STROPTS_H 1
8326
 
_ACEOF
8327
 
 
8328
 
else
8329
 
  svr4_ptys_broken=1
8330
 
fi
8331
 
 
8332
 
 
8333
 
if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
8334
 
  echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5
8335
 
echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6
8336
 
if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
8337
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8338
 
fi
8339
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5
8340
 
echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6
8341
 
else
8342
 
  # Is the header compilable?
8343
 
echo "$as_me:$LINENO: checking sys/sysconfig.h usability" >&5
8344
 
echo $ECHO_N "checking sys/sysconfig.h usability... $ECHO_C" >&6
8345
 
cat >conftest.$ac_ext <<_ACEOF
8346
 
/* confdefs.h.  */
8347
 
_ACEOF
8348
 
cat confdefs.h >>conftest.$ac_ext
8349
 
cat >>conftest.$ac_ext <<_ACEOF
8350
 
/* end confdefs.h.  */
8351
 
$ac_includes_default
8352
 
#include <sys/sysconfig.h>
8353
 
_ACEOF
8354
 
rm -f conftest.$ac_objext
8355
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8356
 
  (eval $ac_compile) 2>conftest.er1
8357
 
  ac_status=$?
8358
 
  grep -v '^ *+' conftest.er1 >conftest.err
8359
 
  rm -f conftest.er1
8360
 
  cat conftest.err >&5
8361
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362
 
  (exit $ac_status); } &&
8363
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8364
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365
 
  (eval $ac_try) 2>&5
8366
 
  ac_status=$?
8367
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368
 
  (exit $ac_status); }; } &&
8369
 
         { ac_try='test -s conftest.$ac_objext'
8370
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371
 
  (eval $ac_try) 2>&5
8372
 
  ac_status=$?
8373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374
 
  (exit $ac_status); }; }; then
8375
 
  ac_header_compiler=yes
8376
 
else
8377
 
  echo "$as_me: failed program was:" >&5
8378
 
sed 's/^/| /' conftest.$ac_ext >&5
8379
 
 
8380
 
ac_header_compiler=no
8381
 
fi
8382
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8383
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8384
 
echo "${ECHO_T}$ac_header_compiler" >&6
8385
 
 
8386
 
# Is the header present?
8387
 
echo "$as_me:$LINENO: checking sys/sysconfig.h presence" >&5
8388
 
echo $ECHO_N "checking sys/sysconfig.h presence... $ECHO_C" >&6
8389
 
cat >conftest.$ac_ext <<_ACEOF
8390
 
/* confdefs.h.  */
8391
 
_ACEOF
8392
 
cat confdefs.h >>conftest.$ac_ext
8393
 
cat >>conftest.$ac_ext <<_ACEOF
8394
 
/* end confdefs.h.  */
8395
 
#include <sys/sysconfig.h>
8396
 
_ACEOF
8397
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8398
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8399
 
  ac_status=$?
8400
 
  grep -v '^ *+' conftest.er1 >conftest.err
8401
 
  rm -f conftest.er1
8402
 
  cat conftest.err >&5
8403
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404
 
  (exit $ac_status); } >/dev/null; then
8405
 
  if test -s conftest.err; then
8406
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8407
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8408
 
  else
8409
 
    ac_cpp_err=
8410
 
  fi
8411
 
else
8412
 
  ac_cpp_err=yes
8413
 
fi
8414
 
if test -z "$ac_cpp_err"; then
8415
 
  ac_header_preproc=yes
8416
 
else
8417
 
  echo "$as_me: failed program was:" >&5
8418
 
sed 's/^/| /' conftest.$ac_ext >&5
8419
 
 
8420
 
  ac_header_preproc=no
8421
 
fi
8422
 
rm -f conftest.err conftest.$ac_ext
8423
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8424
 
echo "${ECHO_T}$ac_header_preproc" >&6
8425
 
 
8426
 
# So?  What about this header?
8427
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8428
 
  yes:no: )
8429
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
8430
 
echo "$as_me: WARNING: sys/sysconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8431
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&5
8432
 
echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the compiler's result" >&2;}
8433
 
    ac_header_preproc=yes
8434
 
    ;;
8435
 
  no:yes:* )
8436
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: present but cannot be compiled" >&5
8437
 
echo "$as_me: WARNING: sys/sysconfig.h: present but cannot be compiled" >&2;}
8438
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h:     check for missing prerequisite headers?" >&5
8439
 
echo "$as_me: WARNING: sys/sysconfig.h:     check for missing prerequisite headers?" >&2;}
8440
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&5
8441
 
echo "$as_me: WARNING: sys/sysconfig.h: see the Autoconf documentation" >&2;}
8442
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h:     section \"Present But Cannot Be Compiled\"" >&5
8443
 
echo "$as_me: WARNING: sys/sysconfig.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8444
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&5
8445
 
echo "$as_me: WARNING: sys/sysconfig.h: proceeding with the preprocessor's result" >&2;}
8446
 
    { echo "$as_me:$LINENO: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&5
8447
 
echo "$as_me: WARNING: sys/sysconfig.h: in the future, the compiler will take precedence" >&2;}
8448
 
    (
8449
 
      cat <<\_ASBOX
8450
 
## ------------------------------------------ ##
8451
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8452
 
## ------------------------------------------ ##
8453
 
_ASBOX
8454
 
    ) |
8455
 
      sed "s/^/$as_me: WARNING:     /" >&2
8456
 
    ;;
8457
 
esac
8458
 
echo "$as_me:$LINENO: checking for sys/sysconfig.h" >&5
8459
 
echo $ECHO_N "checking for sys/sysconfig.h... $ECHO_C" >&6
8460
 
if test "${ac_cv_header_sys_sysconfig_h+set}" = set; then
8461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8462
 
else
8463
 
  ac_cv_header_sys_sysconfig_h=$ac_header_preproc
8464
 
fi
8465
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysconfig_h" >&5
8466
 
echo "${ECHO_T}$ac_cv_header_sys_sysconfig_h" >&6
8467
 
 
8468
 
fi
8469
 
if test $ac_cv_header_sys_sysconfig_h = yes; then
8470
 
  cat >>confdefs.h <<\_ACEOF
 
4190
EOF
 
4191
 
 
4192
else
 
4193
  echo "$ac_t""no" 1>&6
 
4194
svr4_ptys_broken=1
 
4195
fi
 
4196
 
 
4197
ac_safe=`echo "sys/sysconfig.h" | sed 'y%./+-%__p_%'`
 
4198
echo $ac_n "checking for sys/sysconfig.h""... $ac_c" 1>&6
 
4199
echo "configure:4200: checking for sys/sysconfig.h" >&5
 
4200
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4201
  echo $ac_n "(cached) $ac_c" 1>&6
 
4202
else
 
4203
  cat > conftest.$ac_ext <<EOF
 
4204
#line 4205 "configure"
 
4205
#include "confdefs.h"
 
4206
#include <sys/sysconfig.h>
 
4207
EOF
 
4208
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4209
{ (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4210
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4211
if test -z "$ac_err"; then
 
4212
  rm -rf conftest*
 
4213
  eval "ac_cv_header_$ac_safe=yes"
 
4214
else
 
4215
  echo "$ac_err" >&5
 
4216
  echo "configure: failed program was:" >&5
 
4217
  cat conftest.$ac_ext >&5
 
4218
  rm -rf conftest*
 
4219
  eval "ac_cv_header_$ac_safe=no"
 
4220
fi
 
4221
rm -f conftest*
 
4222
fi
 
4223
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4224
  echo "$ac_t""yes" 1>&6
 
4225
  cat >> confdefs.h <<\EOF
8471
4226
#define HAVE_SYSCONF_H 1
8472
 
_ACEOF
8473
 
 
8474
 
fi
8475
 
 
8476
 
 
8477
 
if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
8478
 
  echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5
8479
 
echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6
8480
 
if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
8481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8482
 
fi
8483
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5
8484
 
echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6
8485
 
else
8486
 
  # Is the header compilable?
8487
 
echo "$as_me:$LINENO: checking sys/fcntl.h usability" >&5
8488
 
echo $ECHO_N "checking sys/fcntl.h usability... $ECHO_C" >&6
8489
 
cat >conftest.$ac_ext <<_ACEOF
8490
 
/* confdefs.h.  */
8491
 
_ACEOF
8492
 
cat confdefs.h >>conftest.$ac_ext
8493
 
cat >>conftest.$ac_ext <<_ACEOF
8494
 
/* end confdefs.h.  */
8495
 
$ac_includes_default
8496
 
#include <sys/fcntl.h>
8497
 
_ACEOF
8498
 
rm -f conftest.$ac_objext
8499
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500
 
  (eval $ac_compile) 2>conftest.er1
8501
 
  ac_status=$?
8502
 
  grep -v '^ *+' conftest.er1 >conftest.err
8503
 
  rm -f conftest.er1
8504
 
  cat conftest.err >&5
8505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506
 
  (exit $ac_status); } &&
8507
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509
 
  (eval $ac_try) 2>&5
8510
 
  ac_status=$?
8511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
 
  (exit $ac_status); }; } &&
8513
 
         { ac_try='test -s conftest.$ac_objext'
8514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515
 
  (eval $ac_try) 2>&5
8516
 
  ac_status=$?
8517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
 
  (exit $ac_status); }; }; then
8519
 
  ac_header_compiler=yes
8520
 
else
8521
 
  echo "$as_me: failed program was:" >&5
8522
 
sed 's/^/| /' conftest.$ac_ext >&5
8523
 
 
8524
 
ac_header_compiler=no
8525
 
fi
8526
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8527
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8528
 
echo "${ECHO_T}$ac_header_compiler" >&6
8529
 
 
8530
 
# Is the header present?
8531
 
echo "$as_me:$LINENO: checking sys/fcntl.h presence" >&5
8532
 
echo $ECHO_N "checking sys/fcntl.h presence... $ECHO_C" >&6
8533
 
cat >conftest.$ac_ext <<_ACEOF
8534
 
/* confdefs.h.  */
8535
 
_ACEOF
8536
 
cat confdefs.h >>conftest.$ac_ext
8537
 
cat >>conftest.$ac_ext <<_ACEOF
8538
 
/* end confdefs.h.  */
8539
 
#include <sys/fcntl.h>
8540
 
_ACEOF
8541
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8542
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8543
 
  ac_status=$?
8544
 
  grep -v '^ *+' conftest.er1 >conftest.err
8545
 
  rm -f conftest.er1
8546
 
  cat conftest.err >&5
8547
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548
 
  (exit $ac_status); } >/dev/null; then
8549
 
  if test -s conftest.err; then
8550
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8551
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8552
 
  else
8553
 
    ac_cpp_err=
8554
 
  fi
8555
 
else
8556
 
  ac_cpp_err=yes
8557
 
fi
8558
 
if test -z "$ac_cpp_err"; then
8559
 
  ac_header_preproc=yes
8560
 
else
8561
 
  echo "$as_me: failed program was:" >&5
8562
 
sed 's/^/| /' conftest.$ac_ext >&5
8563
 
 
8564
 
  ac_header_preproc=no
8565
 
fi
8566
 
rm -f conftest.err conftest.$ac_ext
8567
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8568
 
echo "${ECHO_T}$ac_header_preproc" >&6
8569
 
 
8570
 
# So?  What about this header?
8571
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8572
 
  yes:no: )
8573
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8574
 
echo "$as_me: WARNING: sys/fcntl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8575
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&5
8576
 
echo "$as_me: WARNING: sys/fcntl.h: proceeding with the compiler's result" >&2;}
8577
 
    ac_header_preproc=yes
8578
 
    ;;
8579
 
  no:yes:* )
8580
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: present but cannot be compiled" >&5
8581
 
echo "$as_me: WARNING: sys/fcntl.h: present but cannot be compiled" >&2;}
8582
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h:     check for missing prerequisite headers?" >&5
8583
 
echo "$as_me: WARNING: sys/fcntl.h:     check for missing prerequisite headers?" >&2;}
8584
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: see the Autoconf documentation" >&5
8585
 
echo "$as_me: WARNING: sys/fcntl.h: see the Autoconf documentation" >&2;}
8586
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h:     section \"Present But Cannot Be Compiled\"" >&5
8587
 
echo "$as_me: WARNING: sys/fcntl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8588
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&5
8589
 
echo "$as_me: WARNING: sys/fcntl.h: proceeding with the preprocessor's result" >&2;}
8590
 
    { echo "$as_me:$LINENO: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&5
8591
 
echo "$as_me: WARNING: sys/fcntl.h: in the future, the compiler will take precedence" >&2;}
8592
 
    (
8593
 
      cat <<\_ASBOX
8594
 
## ------------------------------------------ ##
8595
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8596
 
## ------------------------------------------ ##
8597
 
_ASBOX
8598
 
    ) |
8599
 
      sed "s/^/$as_me: WARNING:     /" >&2
8600
 
    ;;
8601
 
esac
8602
 
echo "$as_me:$LINENO: checking for sys/fcntl.h" >&5
8603
 
echo $ECHO_N "checking for sys/fcntl.h... $ECHO_C" >&6
8604
 
if test "${ac_cv_header_sys_fcntl_h+set}" = set; then
8605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8606
 
else
8607
 
  ac_cv_header_sys_fcntl_h=$ac_header_preproc
8608
 
fi
8609
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_fcntl_h" >&5
8610
 
echo "${ECHO_T}$ac_cv_header_sys_fcntl_h" >&6
8611
 
 
8612
 
fi
8613
 
if test $ac_cv_header_sys_fcntl_h = yes; then
8614
 
  cat >>confdefs.h <<\_ACEOF
 
4227
EOF
 
4228
 
 
4229
else
 
4230
  echo "$ac_t""no" 1>&6
 
4231
fi
 
4232
 
 
4233
ac_safe=`echo "sys/fcntl.h" | sed 'y%./+-%__p_%'`
 
4234
echo $ac_n "checking for sys/fcntl.h""... $ac_c" 1>&6
 
4235
echo "configure:4236: checking for sys/fcntl.h" >&5
 
4236
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4237
  echo $ac_n "(cached) $ac_c" 1>&6
 
4238
else
 
4239
  cat > conftest.$ac_ext <<EOF
 
4240
#line 4241 "configure"
 
4241
#include "confdefs.h"
 
4242
#include <sys/fcntl.h>
 
4243
EOF
 
4244
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4245
{ (eval echo configure:4246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4246
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4247
if test -z "$ac_err"; then
 
4248
  rm -rf conftest*
 
4249
  eval "ac_cv_header_$ac_safe=yes"
 
4250
else
 
4251
  echo "$ac_err" >&5
 
4252
  echo "configure: failed program was:" >&5
 
4253
  cat conftest.$ac_ext >&5
 
4254
  rm -rf conftest*
 
4255
  eval "ac_cv_header_$ac_safe=no"
 
4256
fi
 
4257
rm -f conftest*
 
4258
fi
 
4259
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4260
  echo "$ac_t""yes" 1>&6
 
4261
  cat >> confdefs.h <<\EOF
8615
4262
#define HAVE_SYS_FCNTL_H 1
8616
 
_ACEOF
8617
 
 
8618
 
fi
8619
 
 
8620
 
 
8621
 
if test "${ac_cv_header_sys_select_h+set}" = set; then
8622
 
  echo "$as_me:$LINENO: checking for sys/select.h" >&5
8623
 
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
8624
 
if test "${ac_cv_header_sys_select_h+set}" = set; then
8625
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8626
 
fi
8627
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8628
 
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
8629
 
else
8630
 
  # Is the header compilable?
8631
 
echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8632
 
echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
8633
 
cat >conftest.$ac_ext <<_ACEOF
8634
 
/* confdefs.h.  */
8635
 
_ACEOF
8636
 
cat confdefs.h >>conftest.$ac_ext
8637
 
cat >>conftest.$ac_ext <<_ACEOF
8638
 
/* end confdefs.h.  */
8639
 
$ac_includes_default
8640
 
#include <sys/select.h>
8641
 
_ACEOF
8642
 
rm -f conftest.$ac_objext
8643
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644
 
  (eval $ac_compile) 2>conftest.er1
8645
 
  ac_status=$?
8646
 
  grep -v '^ *+' conftest.er1 >conftest.err
8647
 
  rm -f conftest.er1
8648
 
  cat conftest.err >&5
8649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650
 
  (exit $ac_status); } &&
8651
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8652
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653
 
  (eval $ac_try) 2>&5
8654
 
  ac_status=$?
8655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656
 
  (exit $ac_status); }; } &&
8657
 
         { ac_try='test -s conftest.$ac_objext'
8658
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659
 
  (eval $ac_try) 2>&5
8660
 
  ac_status=$?
8661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662
 
  (exit $ac_status); }; }; then
8663
 
  ac_header_compiler=yes
8664
 
else
8665
 
  echo "$as_me: failed program was:" >&5
8666
 
sed 's/^/| /' conftest.$ac_ext >&5
8667
 
 
8668
 
ac_header_compiler=no
8669
 
fi
8670
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8671
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672
 
echo "${ECHO_T}$ac_header_compiler" >&6
8673
 
 
8674
 
# Is the header present?
8675
 
echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8676
 
echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
8677
 
cat >conftest.$ac_ext <<_ACEOF
8678
 
/* confdefs.h.  */
8679
 
_ACEOF
8680
 
cat confdefs.h >>conftest.$ac_ext
8681
 
cat >>conftest.$ac_ext <<_ACEOF
8682
 
/* end confdefs.h.  */
8683
 
#include <sys/select.h>
8684
 
_ACEOF
8685
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8686
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8687
 
  ac_status=$?
8688
 
  grep -v '^ *+' conftest.er1 >conftest.err
8689
 
  rm -f conftest.er1
8690
 
  cat conftest.err >&5
8691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692
 
  (exit $ac_status); } >/dev/null; then
8693
 
  if test -s conftest.err; then
8694
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8695
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8696
 
  else
8697
 
    ac_cpp_err=
8698
 
  fi
8699
 
else
8700
 
  ac_cpp_err=yes
8701
 
fi
8702
 
if test -z "$ac_cpp_err"; then
8703
 
  ac_header_preproc=yes
8704
 
else
8705
 
  echo "$as_me: failed program was:" >&5
8706
 
sed 's/^/| /' conftest.$ac_ext >&5
8707
 
 
8708
 
  ac_header_preproc=no
8709
 
fi
8710
 
rm -f conftest.err conftest.$ac_ext
8711
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8712
 
echo "${ECHO_T}$ac_header_preproc" >&6
8713
 
 
8714
 
# So?  What about this header?
8715
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8716
 
  yes:no: )
8717
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
8718
 
echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8719
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
8720
 
echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
8721
 
    ac_header_preproc=yes
8722
 
    ;;
8723
 
  no:yes:* )
8724
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
8725
 
echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
8726
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h:     check for missing prerequisite headers?" >&5
8727
 
echo "$as_me: WARNING: sys/select.h:     check for missing prerequisite headers?" >&2;}
8728
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
8729
 
echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
8730
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&5
8731
 
echo "$as_me: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8732
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
8733
 
echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
8734
 
    { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
8735
 
echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
8736
 
    (
8737
 
      cat <<\_ASBOX
8738
 
## ------------------------------------------ ##
8739
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8740
 
## ------------------------------------------ ##
8741
 
_ASBOX
8742
 
    ) |
8743
 
      sed "s/^/$as_me: WARNING:     /" >&2
8744
 
    ;;
8745
 
esac
8746
 
echo "$as_me:$LINENO: checking for sys/select.h" >&5
8747
 
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
8748
 
if test "${ac_cv_header_sys_select_h+set}" = set; then
8749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8750
 
else
8751
 
  ac_cv_header_sys_select_h=$ac_header_preproc
8752
 
fi
8753
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8754
 
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
8755
 
 
8756
 
fi
8757
 
if test $ac_cv_header_sys_select_h = yes; then
8758
 
  cat >>confdefs.h <<\_ACEOF
 
4263
EOF
 
4264
 
 
4265
else
 
4266
  echo "$ac_t""no" 1>&6
 
4267
fi
 
4268
 
 
4269
ac_safe=`echo "sys/select.h" | sed 'y%./+-%__p_%'`
 
4270
echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6
 
4271
echo "configure:4272: checking for sys/select.h" >&5
 
4272
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4273
  echo $ac_n "(cached) $ac_c" 1>&6
 
4274
else
 
4275
  cat > conftest.$ac_ext <<EOF
 
4276
#line 4277 "configure"
 
4277
#include "confdefs.h"
 
4278
#include <sys/select.h>
 
4279
EOF
 
4280
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4281
{ (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4282
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4283
if test -z "$ac_err"; then
 
4284
  rm -rf conftest*
 
4285
  eval "ac_cv_header_$ac_safe=yes"
 
4286
else
 
4287
  echo "$ac_err" >&5
 
4288
  echo "configure: failed program was:" >&5
 
4289
  cat conftest.$ac_ext >&5
 
4290
  rm -rf conftest*
 
4291
  eval "ac_cv_header_$ac_safe=no"
 
4292
fi
 
4293
rm -f conftest*
 
4294
fi
 
4295
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4296
  echo "$ac_t""yes" 1>&6
 
4297
  cat >> confdefs.h <<\EOF
8759
4298
#define HAVE_SYS_SELECT_H 1
8760
 
_ACEOF
8761
 
 
8762
 
fi
8763
 
 
8764
 
 
8765
 
if test "${ac_cv_header_sys_time_h+set}" = set; then
8766
 
  echo "$as_me:$LINENO: checking for sys/time.h" >&5
8767
 
echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
8768
 
if test "${ac_cv_header_sys_time_h+set}" = set; then
8769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8770
 
fi
8771
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8772
 
echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
8773
 
else
8774
 
  # Is the header compilable?
8775
 
echo "$as_me:$LINENO: checking sys/time.h usability" >&5
8776
 
echo $ECHO_N "checking sys/time.h usability... $ECHO_C" >&6
8777
 
cat >conftest.$ac_ext <<_ACEOF
8778
 
/* confdefs.h.  */
8779
 
_ACEOF
8780
 
cat confdefs.h >>conftest.$ac_ext
8781
 
cat >>conftest.$ac_ext <<_ACEOF
8782
 
/* end confdefs.h.  */
8783
 
$ac_includes_default
8784
 
#include <sys/time.h>
8785
 
_ACEOF
8786
 
rm -f conftest.$ac_objext
8787
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8788
 
  (eval $ac_compile) 2>conftest.er1
8789
 
  ac_status=$?
8790
 
  grep -v '^ *+' conftest.er1 >conftest.err
8791
 
  rm -f conftest.er1
8792
 
  cat conftest.err >&5
8793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794
 
  (exit $ac_status); } &&
8795
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8796
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797
 
  (eval $ac_try) 2>&5
8798
 
  ac_status=$?
8799
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800
 
  (exit $ac_status); }; } &&
8801
 
         { ac_try='test -s conftest.$ac_objext'
8802
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803
 
  (eval $ac_try) 2>&5
8804
 
  ac_status=$?
8805
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806
 
  (exit $ac_status); }; }; then
8807
 
  ac_header_compiler=yes
8808
 
else
8809
 
  echo "$as_me: failed program was:" >&5
8810
 
sed 's/^/| /' conftest.$ac_ext >&5
8811
 
 
8812
 
ac_header_compiler=no
8813
 
fi
8814
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8816
 
echo "${ECHO_T}$ac_header_compiler" >&6
8817
 
 
8818
 
# Is the header present?
8819
 
echo "$as_me:$LINENO: checking sys/time.h presence" >&5
8820
 
echo $ECHO_N "checking sys/time.h presence... $ECHO_C" >&6
8821
 
cat >conftest.$ac_ext <<_ACEOF
8822
 
/* confdefs.h.  */
8823
 
_ACEOF
8824
 
cat confdefs.h >>conftest.$ac_ext
8825
 
cat >>conftest.$ac_ext <<_ACEOF
8826
 
/* end confdefs.h.  */
8827
 
#include <sys/time.h>
8828
 
_ACEOF
8829
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8830
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8831
 
  ac_status=$?
8832
 
  grep -v '^ *+' conftest.er1 >conftest.err
8833
 
  rm -f conftest.er1
8834
 
  cat conftest.err >&5
8835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836
 
  (exit $ac_status); } >/dev/null; then
8837
 
  if test -s conftest.err; then
8838
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8839
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8840
 
  else
8841
 
    ac_cpp_err=
8842
 
  fi
8843
 
else
8844
 
  ac_cpp_err=yes
8845
 
fi
8846
 
if test -z "$ac_cpp_err"; then
8847
 
  ac_header_preproc=yes
8848
 
else
8849
 
  echo "$as_me: failed program was:" >&5
8850
 
sed 's/^/| /' conftest.$ac_ext >&5
8851
 
 
8852
 
  ac_header_preproc=no
8853
 
fi
8854
 
rm -f conftest.err conftest.$ac_ext
8855
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8856
 
echo "${ECHO_T}$ac_header_preproc" >&6
8857
 
 
8858
 
# So?  What about this header?
8859
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8860
 
  yes:no: )
8861
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&5
8862
 
echo "$as_me: WARNING: sys/time.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8863
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the compiler's result" >&5
8864
 
echo "$as_me: WARNING: sys/time.h: proceeding with the compiler's result" >&2;}
8865
 
    ac_header_preproc=yes
8866
 
    ;;
8867
 
  no:yes:* )
8868
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h: present but cannot be compiled" >&5
8869
 
echo "$as_me: WARNING: sys/time.h: present but cannot be compiled" >&2;}
8870
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h:     check for missing prerequisite headers?" >&5
8871
 
echo "$as_me: WARNING: sys/time.h:     check for missing prerequisite headers?" >&2;}
8872
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h: see the Autoconf documentation" >&5
8873
 
echo "$as_me: WARNING: sys/time.h: see the Autoconf documentation" >&2;}
8874
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h:     section \"Present But Cannot Be Compiled\"" >&5
8875
 
echo "$as_me: WARNING: sys/time.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8876
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h: proceeding with the preprocessor's result" >&5
8877
 
echo "$as_me: WARNING: sys/time.h: proceeding with the preprocessor's result" >&2;}
8878
 
    { echo "$as_me:$LINENO: WARNING: sys/time.h: in the future, the compiler will take precedence" >&5
8879
 
echo "$as_me: WARNING: sys/time.h: in the future, the compiler will take precedence" >&2;}
8880
 
    (
8881
 
      cat <<\_ASBOX
8882
 
## ------------------------------------------ ##
8883
 
## Report this to the AC_PACKAGE_NAME lists.  ##
8884
 
## ------------------------------------------ ##
8885
 
_ASBOX
8886
 
    ) |
8887
 
      sed "s/^/$as_me: WARNING:     /" >&2
8888
 
    ;;
8889
 
esac
8890
 
echo "$as_me:$LINENO: checking for sys/time.h" >&5
8891
 
echo $ECHO_N "checking for sys/time.h... $ECHO_C" >&6
8892
 
if test "${ac_cv_header_sys_time_h+set}" = set; then
8893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8894
 
else
8895
 
  ac_cv_header_sys_time_h=$ac_header_preproc
8896
 
fi
8897
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_time_h" >&5
8898
 
echo "${ECHO_T}$ac_cv_header_sys_time_h" >&6
8899
 
 
8900
 
fi
8901
 
if test $ac_cv_header_sys_time_h = yes; then
8902
 
  cat >>confdefs.h <<\_ACEOF
 
4299
EOF
 
4300
 
 
4301
else
 
4302
  echo "$ac_t""no" 1>&6
 
4303
fi
 
4304
 
 
4305
ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
 
4306
echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
 
4307
echo "configure:4308: checking for sys/time.h" >&5
 
4308
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4309
  echo $ac_n "(cached) $ac_c" 1>&6
 
4310
else
 
4311
  cat > conftest.$ac_ext <<EOF
 
4312
#line 4313 "configure"
 
4313
#include "confdefs.h"
 
4314
#include <sys/time.h>
 
4315
EOF
 
4316
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4317
{ (eval echo configure:4318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4318
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4319
if test -z "$ac_err"; then
 
4320
  rm -rf conftest*
 
4321
  eval "ac_cv_header_$ac_safe=yes"
 
4322
else
 
4323
  echo "$ac_err" >&5
 
4324
  echo "configure: failed program was:" >&5
 
4325
  cat conftest.$ac_ext >&5
 
4326
  rm -rf conftest*
 
4327
  eval "ac_cv_header_$ac_safe=no"
 
4328
fi
 
4329
rm -f conftest*
 
4330
fi
 
4331
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4332
  echo "$ac_t""yes" 1>&6
 
4333
  cat >> confdefs.h <<\EOF
8903
4334
#define HAVE_SYS_TIME_H 1
8904
 
_ACEOF
8905
 
 
8906
 
fi
8907
 
 
8908
 
 
8909
 
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
8910
 
  echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
8911
 
echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
8912
 
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
8913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8914
 
fi
8915
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
8916
 
echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
8917
 
else
8918
 
  # Is the header compilable?
8919
 
echo "$as_me:$LINENO: checking sys/ptem.h usability" >&5
8920
 
echo $ECHO_N "checking sys/ptem.h usability... $ECHO_C" >&6
8921
 
cat >conftest.$ac_ext <<_ACEOF
8922
 
/* confdefs.h.  */
8923
 
_ACEOF
8924
 
cat confdefs.h >>conftest.$ac_ext
8925
 
cat >>conftest.$ac_ext <<_ACEOF
8926
 
/* end confdefs.h.  */
8927
 
$ac_includes_default
8928
 
#include <sys/ptem.h>
8929
 
_ACEOF
8930
 
rm -f conftest.$ac_objext
8931
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932
 
  (eval $ac_compile) 2>conftest.er1
8933
 
  ac_status=$?
8934
 
  grep -v '^ *+' conftest.er1 >conftest.err
8935
 
  rm -f conftest.er1
8936
 
  cat conftest.err >&5
8937
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938
 
  (exit $ac_status); } &&
8939
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8940
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941
 
  (eval $ac_try) 2>&5
8942
 
  ac_status=$?
8943
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944
 
  (exit $ac_status); }; } &&
8945
 
         { ac_try='test -s conftest.$ac_objext'
8946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947
 
  (eval $ac_try) 2>&5
8948
 
  ac_status=$?
8949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950
 
  (exit $ac_status); }; }; then
8951
 
  ac_header_compiler=yes
8952
 
else
8953
 
  echo "$as_me: failed program was:" >&5
8954
 
sed 's/^/| /' conftest.$ac_ext >&5
8955
 
 
8956
 
ac_header_compiler=no
8957
 
fi
8958
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8959
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8960
 
echo "${ECHO_T}$ac_header_compiler" >&6
8961
 
 
8962
 
# Is the header present?
8963
 
echo "$as_me:$LINENO: checking sys/ptem.h presence" >&5
8964
 
echo $ECHO_N "checking sys/ptem.h presence... $ECHO_C" >&6
8965
 
cat >conftest.$ac_ext <<_ACEOF
8966
 
/* confdefs.h.  */
8967
 
_ACEOF
8968
 
cat confdefs.h >>conftest.$ac_ext
8969
 
cat >>conftest.$ac_ext <<_ACEOF
8970
 
/* end confdefs.h.  */
8971
 
#include <sys/ptem.h>
8972
 
_ACEOF
8973
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8974
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8975
 
  ac_status=$?
8976
 
  grep -v '^ *+' conftest.er1 >conftest.err
8977
 
  rm -f conftest.er1
8978
 
  cat conftest.err >&5
8979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980
 
  (exit $ac_status); } >/dev/null; then
8981
 
  if test -s conftest.err; then
8982
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8983
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8984
 
  else
8985
 
    ac_cpp_err=
8986
 
  fi
8987
 
else
8988
 
  ac_cpp_err=yes
8989
 
fi
8990
 
if test -z "$ac_cpp_err"; then
8991
 
  ac_header_preproc=yes
8992
 
else
8993
 
  echo "$as_me: failed program was:" >&5
8994
 
sed 's/^/| /' conftest.$ac_ext >&5
8995
 
 
8996
 
  ac_header_preproc=no
8997
 
fi
8998
 
rm -f conftest.err conftest.$ac_ext
8999
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9000
 
echo "${ECHO_T}$ac_header_preproc" >&6
9001
 
 
9002
 
# So?  What about this header?
9003
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9004
 
  yes:no: )
9005
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&5
9006
 
echo "$as_me: WARNING: sys/ptem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9007
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the compiler's result" >&5
9008
 
echo "$as_me: WARNING: sys/ptem.h: proceeding with the compiler's result" >&2;}
9009
 
    ac_header_preproc=yes
9010
 
    ;;
9011
 
  no:yes:* )
9012
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h: present but cannot be compiled" >&5
9013
 
echo "$as_me: WARNING: sys/ptem.h: present but cannot be compiled" >&2;}
9014
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h:     check for missing prerequisite headers?" >&5
9015
 
echo "$as_me: WARNING: sys/ptem.h:     check for missing prerequisite headers?" >&2;}
9016
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h: see the Autoconf documentation" >&5
9017
 
echo "$as_me: WARNING: sys/ptem.h: see the Autoconf documentation" >&2;}
9018
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h:     section \"Present But Cannot Be Compiled\"" >&5
9019
 
echo "$as_me: WARNING: sys/ptem.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9020
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&5
9021
 
echo "$as_me: WARNING: sys/ptem.h: proceeding with the preprocessor's result" >&2;}
9022
 
    { echo "$as_me:$LINENO: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&5
9023
 
echo "$as_me: WARNING: sys/ptem.h: in the future, the compiler will take precedence" >&2;}
9024
 
    (
9025
 
      cat <<\_ASBOX
9026
 
## ------------------------------------------ ##
9027
 
## Report this to the AC_PACKAGE_NAME lists.  ##
9028
 
## ------------------------------------------ ##
9029
 
_ASBOX
9030
 
    ) |
9031
 
      sed "s/^/$as_me: WARNING:     /" >&2
9032
 
    ;;
9033
 
esac
9034
 
echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
9035
 
echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
9036
 
if test "${ac_cv_header_sys_ptem_h+set}" = set; then
9037
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9038
 
else
9039
 
  ac_cv_header_sys_ptem_h=$ac_header_preproc
9040
 
fi
9041
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
9042
 
echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
9043
 
 
9044
 
fi
9045
 
if test $ac_cv_header_sys_ptem_h = yes; then
9046
 
  cat >>confdefs.h <<\_ACEOF
 
4335
EOF
 
4336
 
 
4337
else
 
4338
  echo "$ac_t""no" 1>&6
 
4339
fi
 
4340
 
 
4341
ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
 
4342
echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
 
4343
echo "configure:4344: checking for sys/ptem.h" >&5
 
4344
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4345
  echo $ac_n "(cached) $ac_c" 1>&6
 
4346
else
 
4347
  cat > conftest.$ac_ext <<EOF
 
4348
#line 4349 "configure"
 
4349
#include "confdefs.h"
 
4350
#include <sys/ptem.h>
 
4351
EOF
 
4352
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4353
{ (eval echo configure:4354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4354
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4355
if test -z "$ac_err"; then
 
4356
  rm -rf conftest*
 
4357
  eval "ac_cv_header_$ac_safe=yes"
 
4358
else
 
4359
  echo "$ac_err" >&5
 
4360
  echo "configure: failed program was:" >&5
 
4361
  cat conftest.$ac_ext >&5
 
4362
  rm -rf conftest*
 
4363
  eval "ac_cv_header_$ac_safe=no"
 
4364
fi
 
4365
rm -f conftest*
 
4366
fi
 
4367
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4368
  echo "$ac_t""yes" 1>&6
 
4369
  cat >> confdefs.h <<\EOF
9047
4370
#define HAVE_SYS_PTEM_H 1
9048
 
_ACEOF
9049
 
 
9050
 
fi
9051
 
 
9052
 
 
9053
 
if test "${ac_cv_header_sys_strredir_h+set}" = set; then
9054
 
  echo "$as_me:$LINENO: checking for sys/strredir.h" >&5
9055
 
echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6
9056
 
if test "${ac_cv_header_sys_strredir_h+set}" = set; then
9057
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9058
 
fi
9059
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5
9060
 
echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6
9061
 
else
9062
 
  # Is the header compilable?
9063
 
echo "$as_me:$LINENO: checking sys/strredir.h usability" >&5
9064
 
echo $ECHO_N "checking sys/strredir.h usability... $ECHO_C" >&6
9065
 
cat >conftest.$ac_ext <<_ACEOF
9066
 
/* confdefs.h.  */
9067
 
_ACEOF
9068
 
cat confdefs.h >>conftest.$ac_ext
9069
 
cat >>conftest.$ac_ext <<_ACEOF
9070
 
/* end confdefs.h.  */
9071
 
$ac_includes_default
9072
 
#include <sys/strredir.h>
9073
 
_ACEOF
9074
 
rm -f conftest.$ac_objext
9075
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076
 
  (eval $ac_compile) 2>conftest.er1
9077
 
  ac_status=$?
9078
 
  grep -v '^ *+' conftest.er1 >conftest.err
9079
 
  rm -f conftest.er1
9080
 
  cat conftest.err >&5
9081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082
 
  (exit $ac_status); } &&
9083
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9084
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085
 
  (eval $ac_try) 2>&5
9086
 
  ac_status=$?
9087
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088
 
  (exit $ac_status); }; } &&
9089
 
         { ac_try='test -s conftest.$ac_objext'
9090
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091
 
  (eval $ac_try) 2>&5
9092
 
  ac_status=$?
9093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094
 
  (exit $ac_status); }; }; then
9095
 
  ac_header_compiler=yes
9096
 
else
9097
 
  echo "$as_me: failed program was:" >&5
9098
 
sed 's/^/| /' conftest.$ac_ext >&5
9099
 
 
9100
 
ac_header_compiler=no
9101
 
fi
9102
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9103
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104
 
echo "${ECHO_T}$ac_header_compiler" >&6
9105
 
 
9106
 
# Is the header present?
9107
 
echo "$as_me:$LINENO: checking sys/strredir.h presence" >&5
9108
 
echo $ECHO_N "checking sys/strredir.h presence... $ECHO_C" >&6
9109
 
cat >conftest.$ac_ext <<_ACEOF
9110
 
/* confdefs.h.  */
9111
 
_ACEOF
9112
 
cat confdefs.h >>conftest.$ac_ext
9113
 
cat >>conftest.$ac_ext <<_ACEOF
9114
 
/* end confdefs.h.  */
9115
 
#include <sys/strredir.h>
9116
 
_ACEOF
9117
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119
 
  ac_status=$?
9120
 
  grep -v '^ *+' conftest.er1 >conftest.err
9121
 
  rm -f conftest.er1
9122
 
  cat conftest.err >&5
9123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124
 
  (exit $ac_status); } >/dev/null; then
9125
 
  if test -s conftest.err; then
9126
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9127
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9128
 
  else
9129
 
    ac_cpp_err=
9130
 
  fi
9131
 
else
9132
 
  ac_cpp_err=yes
9133
 
fi
9134
 
if test -z "$ac_cpp_err"; then
9135
 
  ac_header_preproc=yes
9136
 
else
9137
 
  echo "$as_me: failed program was:" >&5
9138
 
sed 's/^/| /' conftest.$ac_ext >&5
9139
 
 
9140
 
  ac_header_preproc=no
9141
 
fi
9142
 
rm -f conftest.err conftest.$ac_ext
9143
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9144
 
echo "${ECHO_T}$ac_header_preproc" >&6
9145
 
 
9146
 
# So?  What about this header?
9147
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148
 
  yes:no: )
9149
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&5
9150
 
echo "$as_me: WARNING: sys/strredir.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9151
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the compiler's result" >&5
9152
 
echo "$as_me: WARNING: sys/strredir.h: proceeding with the compiler's result" >&2;}
9153
 
    ac_header_preproc=yes
9154
 
    ;;
9155
 
  no:yes:* )
9156
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h: present but cannot be compiled" >&5
9157
 
echo "$as_me: WARNING: sys/strredir.h: present but cannot be compiled" >&2;}
9158
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h:     check for missing prerequisite headers?" >&5
9159
 
echo "$as_me: WARNING: sys/strredir.h:     check for missing prerequisite headers?" >&2;}
9160
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h: see the Autoconf documentation" >&5
9161
 
echo "$as_me: WARNING: sys/strredir.h: see the Autoconf documentation" >&2;}
9162
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h:     section \"Present But Cannot Be Compiled\"" >&5
9163
 
echo "$as_me: WARNING: sys/strredir.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9164
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&5
9165
 
echo "$as_me: WARNING: sys/strredir.h: proceeding with the preprocessor's result" >&2;}
9166
 
    { echo "$as_me:$LINENO: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&5
9167
 
echo "$as_me: WARNING: sys/strredir.h: in the future, the compiler will take precedence" >&2;}
9168
 
    (
9169
 
      cat <<\_ASBOX
9170
 
## ------------------------------------------ ##
9171
 
## Report this to the AC_PACKAGE_NAME lists.  ##
9172
 
## ------------------------------------------ ##
9173
 
_ASBOX
9174
 
    ) |
9175
 
      sed "s/^/$as_me: WARNING:     /" >&2
9176
 
    ;;
9177
 
esac
9178
 
echo "$as_me:$LINENO: checking for sys/strredir.h" >&5
9179
 
echo $ECHO_N "checking for sys/strredir.h... $ECHO_C" >&6
9180
 
if test "${ac_cv_header_sys_strredir_h+set}" = set; then
9181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9182
 
else
9183
 
  ac_cv_header_sys_strredir_h=$ac_header_preproc
9184
 
fi
9185
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strredir_h" >&5
9186
 
echo "${ECHO_T}$ac_cv_header_sys_strredir_h" >&6
9187
 
 
9188
 
fi
9189
 
if test $ac_cv_header_sys_strredir_h = yes; then
9190
 
  cat >>confdefs.h <<\_ACEOF
 
4371
EOF
 
4372
 
 
4373
else
 
4374
  echo "$ac_t""no" 1>&6
 
4375
fi
 
4376
 
 
4377
ac_safe=`echo "sys/strredir.h" | sed 'y%./+-%__p_%'`
 
4378
echo $ac_n "checking for sys/strredir.h""... $ac_c" 1>&6
 
4379
echo "configure:4380: checking for sys/strredir.h" >&5
 
4380
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4381
  echo $ac_n "(cached) $ac_c" 1>&6
 
4382
else
 
4383
  cat > conftest.$ac_ext <<EOF
 
4384
#line 4385 "configure"
 
4385
#include "confdefs.h"
 
4386
#include <sys/strredir.h>
 
4387
EOF
 
4388
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4389
{ (eval echo configure:4390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4390
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4391
if test -z "$ac_err"; then
 
4392
  rm -rf conftest*
 
4393
  eval "ac_cv_header_$ac_safe=yes"
 
4394
else
 
4395
  echo "$ac_err" >&5
 
4396
  echo "configure: failed program was:" >&5
 
4397
  cat conftest.$ac_ext >&5
 
4398
  rm -rf conftest*
 
4399
  eval "ac_cv_header_$ac_safe=no"
 
4400
fi
 
4401
rm -f conftest*
 
4402
fi
 
4403
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4404
  echo "$ac_t""yes" 1>&6
 
4405
  cat >> confdefs.h <<\EOF
9191
4406
#define HAVE_STRREDIR_H 1
9192
 
_ACEOF
9193
 
 
9194
 
fi
9195
 
 
9196
 
 
9197
 
if test "${ac_cv_header_sys_strpty_h+set}" = set; then
9198
 
  echo "$as_me:$LINENO: checking for sys/strpty.h" >&5
9199
 
echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6
9200
 
if test "${ac_cv_header_sys_strpty_h+set}" = set; then
9201
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9202
 
fi
9203
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5
9204
 
echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6
9205
 
else
9206
 
  # Is the header compilable?
9207
 
echo "$as_me:$LINENO: checking sys/strpty.h usability" >&5
9208
 
echo $ECHO_N "checking sys/strpty.h usability... $ECHO_C" >&6
9209
 
cat >conftest.$ac_ext <<_ACEOF
9210
 
/* confdefs.h.  */
9211
 
_ACEOF
9212
 
cat confdefs.h >>conftest.$ac_ext
9213
 
cat >>conftest.$ac_ext <<_ACEOF
9214
 
/* end confdefs.h.  */
9215
 
$ac_includes_default
9216
 
#include <sys/strpty.h>
9217
 
_ACEOF
9218
 
rm -f conftest.$ac_objext
9219
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9220
 
  (eval $ac_compile) 2>conftest.er1
9221
 
  ac_status=$?
9222
 
  grep -v '^ *+' conftest.er1 >conftest.err
9223
 
  rm -f conftest.er1
9224
 
  cat conftest.err >&5
9225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226
 
  (exit $ac_status); } &&
9227
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9228
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229
 
  (eval $ac_try) 2>&5
9230
 
  ac_status=$?
9231
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232
 
  (exit $ac_status); }; } &&
9233
 
         { ac_try='test -s conftest.$ac_objext'
9234
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235
 
  (eval $ac_try) 2>&5
9236
 
  ac_status=$?
9237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238
 
  (exit $ac_status); }; }; then
9239
 
  ac_header_compiler=yes
9240
 
else
9241
 
  echo "$as_me: failed program was:" >&5
9242
 
sed 's/^/| /' conftest.$ac_ext >&5
9243
 
 
9244
 
ac_header_compiler=no
9245
 
fi
9246
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9247
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248
 
echo "${ECHO_T}$ac_header_compiler" >&6
9249
 
 
9250
 
# Is the header present?
9251
 
echo "$as_me:$LINENO: checking sys/strpty.h presence" >&5
9252
 
echo $ECHO_N "checking sys/strpty.h presence... $ECHO_C" >&6
9253
 
cat >conftest.$ac_ext <<_ACEOF
9254
 
/* confdefs.h.  */
9255
 
_ACEOF
9256
 
cat confdefs.h >>conftest.$ac_ext
9257
 
cat >>conftest.$ac_ext <<_ACEOF
9258
 
/* end confdefs.h.  */
9259
 
#include <sys/strpty.h>
9260
 
_ACEOF
9261
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9262
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9263
 
  ac_status=$?
9264
 
  grep -v '^ *+' conftest.er1 >conftest.err
9265
 
  rm -f conftest.er1
9266
 
  cat conftest.err >&5
9267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268
 
  (exit $ac_status); } >/dev/null; then
9269
 
  if test -s conftest.err; then
9270
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9271
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9272
 
  else
9273
 
    ac_cpp_err=
9274
 
  fi
9275
 
else
9276
 
  ac_cpp_err=yes
9277
 
fi
9278
 
if test -z "$ac_cpp_err"; then
9279
 
  ac_header_preproc=yes
9280
 
else
9281
 
  echo "$as_me: failed program was:" >&5
9282
 
sed 's/^/| /' conftest.$ac_ext >&5
9283
 
 
9284
 
  ac_header_preproc=no
9285
 
fi
9286
 
rm -f conftest.err conftest.$ac_ext
9287
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288
 
echo "${ECHO_T}$ac_header_preproc" >&6
9289
 
 
9290
 
# So?  What about this header?
9291
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9292
 
  yes:no: )
9293
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&5
9294
 
echo "$as_me: WARNING: sys/strpty.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the compiler's result" >&5
9296
 
echo "$as_me: WARNING: sys/strpty.h: proceeding with the compiler's result" >&2;}
9297
 
    ac_header_preproc=yes
9298
 
    ;;
9299
 
  no:yes:* )
9300
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h: present but cannot be compiled" >&5
9301
 
echo "$as_me: WARNING: sys/strpty.h: present but cannot be compiled" >&2;}
9302
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h:     check for missing prerequisite headers?" >&5
9303
 
echo "$as_me: WARNING: sys/strpty.h:     check for missing prerequisite headers?" >&2;}
9304
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h: see the Autoconf documentation" >&5
9305
 
echo "$as_me: WARNING: sys/strpty.h: see the Autoconf documentation" >&2;}
9306
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h:     section \"Present But Cannot Be Compiled\"" >&5
9307
 
echo "$as_me: WARNING: sys/strpty.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9308
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&5
9309
 
echo "$as_me: WARNING: sys/strpty.h: proceeding with the preprocessor's result" >&2;}
9310
 
    { echo "$as_me:$LINENO: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&5
9311
 
echo "$as_me: WARNING: sys/strpty.h: in the future, the compiler will take precedence" >&2;}
9312
 
    (
9313
 
      cat <<\_ASBOX
9314
 
## ------------------------------------------ ##
9315
 
## Report this to the AC_PACKAGE_NAME lists.  ##
9316
 
## ------------------------------------------ ##
9317
 
_ASBOX
9318
 
    ) |
9319
 
      sed "s/^/$as_me: WARNING:     /" >&2
9320
 
    ;;
9321
 
esac
9322
 
echo "$as_me:$LINENO: checking for sys/strpty.h" >&5
9323
 
echo $ECHO_N "checking for sys/strpty.h... $ECHO_C" >&6
9324
 
if test "${ac_cv_header_sys_strpty_h+set}" = set; then
9325
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9326
 
else
9327
 
  ac_cv_header_sys_strpty_h=$ac_header_preproc
9328
 
fi
9329
 
echo "$as_me:$LINENO: result: $ac_cv_header_sys_strpty_h" >&5
9330
 
echo "${ECHO_T}$ac_cv_header_sys_strpty_h" >&6
9331
 
 
9332
 
fi
9333
 
if test $ac_cv_header_sys_strpty_h = yes; then
9334
 
  cat >>confdefs.h <<\_ACEOF
 
4407
EOF
 
4408
 
 
4409
else
 
4410
  echo "$ac_t""no" 1>&6
 
4411
fi
 
4412
 
 
4413
ac_safe=`echo "sys/strpty.h" | sed 'y%./+-%__p_%'`
 
4414
echo $ac_n "checking for sys/strpty.h""... $ac_c" 1>&6
 
4415
echo "configure:4416: checking for sys/strpty.h" >&5
 
4416
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4417
  echo $ac_n "(cached) $ac_c" 1>&6
 
4418
else
 
4419
  cat > conftest.$ac_ext <<EOF
 
4420
#line 4421 "configure"
 
4421
#include "confdefs.h"
 
4422
#include <sys/strpty.h>
 
4423
EOF
 
4424
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4425
{ (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4426
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4427
if test -z "$ac_err"; then
 
4428
  rm -rf conftest*
 
4429
  eval "ac_cv_header_$ac_safe=yes"
 
4430
else
 
4431
  echo "$ac_err" >&5
 
4432
  echo "configure: failed program was:" >&5
 
4433
  cat conftest.$ac_ext >&5
 
4434
  rm -rf conftest*
 
4435
  eval "ac_cv_header_$ac_safe=no"
 
4436
fi
 
4437
rm -f conftest*
 
4438
fi
 
4439
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4440
  echo "$ac_t""yes" 1>&6
 
4441
  cat >> confdefs.h <<\EOF
9335
4442
#define HAVE_STRPTY_H 1
9336
 
_ACEOF
 
4443
EOF
9337
4444
 
 
4445
else
 
4446
  echo "$ac_t""no" 1>&6
9338
4447
fi
9339
4448
 
9340
4449
 
9341
4450
 
9342
 
 
9343
 
echo "$as_me:$LINENO: checking for sys/bsdtypes.h" >&5
9344
 
echo $ECHO_N "checking for sys/bsdtypes.h... $ECHO_C" >&6
 
4451
echo $ac_n "checking for sys/bsdtypes.h""... $ac_c" 1>&6
 
4452
echo "configure:4453: checking for sys/bsdtypes.h" >&5
9345
4453
if test "ISC_${ISC}" = "ISC_1"   ;    then
9346
 
   echo "$as_me:$LINENO: result: yes" >&5
9347
 
echo "${ECHO_T}yes" >&6
 
4454
   echo "$ac_t""yes" 1>&6
9348
4455
   # if on ISC 1, we need <sys/bsdtypes.h> to get FD_SET macros
9349
 
 
9350
 
for ac_header in sys/bsdtypes.h
 
4456
   for ac_hdr in sys/bsdtypes.h
9351
4457
do
9352
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9355
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9358
 
fi
9359
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9360
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9361
 
else
9362
 
  # Is the header compilable?
9363
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9364
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9365
 
cat >conftest.$ac_ext <<_ACEOF
9366
 
/* confdefs.h.  */
9367
 
_ACEOF
9368
 
cat confdefs.h >>conftest.$ac_ext
9369
 
cat >>conftest.$ac_ext <<_ACEOF
9370
 
/* end confdefs.h.  */
9371
 
$ac_includes_default
9372
 
#include <$ac_header>
9373
 
_ACEOF
9374
 
rm -f conftest.$ac_objext
9375
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376
 
  (eval $ac_compile) 2>conftest.er1
9377
 
  ac_status=$?
9378
 
  grep -v '^ *+' conftest.er1 >conftest.err
9379
 
  rm -f conftest.er1
9380
 
  cat conftest.err >&5
9381
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382
 
  (exit $ac_status); } &&
9383
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9384
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385
 
  (eval $ac_try) 2>&5
9386
 
  ac_status=$?
9387
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388
 
  (exit $ac_status); }; } &&
9389
 
         { ac_try='test -s conftest.$ac_objext'
9390
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391
 
  (eval $ac_try) 2>&5
9392
 
  ac_status=$?
9393
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394
 
  (exit $ac_status); }; }; then
9395
 
  ac_header_compiler=yes
9396
 
else
9397
 
  echo "$as_me: failed program was:" >&5
9398
 
sed 's/^/| /' conftest.$ac_ext >&5
9399
 
 
9400
 
ac_header_compiler=no
9401
 
fi
9402
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9403
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9404
 
echo "${ECHO_T}$ac_header_compiler" >&6
9405
 
 
9406
 
# Is the header present?
9407
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9408
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9409
 
cat >conftest.$ac_ext <<_ACEOF
9410
 
/* confdefs.h.  */
9411
 
_ACEOF
9412
 
cat confdefs.h >>conftest.$ac_ext
9413
 
cat >>conftest.$ac_ext <<_ACEOF
9414
 
/* end confdefs.h.  */
9415
 
#include <$ac_header>
9416
 
_ACEOF
9417
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9418
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9419
 
  ac_status=$?
9420
 
  grep -v '^ *+' conftest.er1 >conftest.err
9421
 
  rm -f conftest.er1
9422
 
  cat conftest.err >&5
9423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424
 
  (exit $ac_status); } >/dev/null; then
9425
 
  if test -s conftest.err; then
9426
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9427
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9428
 
  else
9429
 
    ac_cpp_err=
9430
 
  fi
9431
 
else
9432
 
  ac_cpp_err=yes
9433
 
fi
9434
 
if test -z "$ac_cpp_err"; then
9435
 
  ac_header_preproc=yes
9436
 
else
9437
 
  echo "$as_me: failed program was:" >&5
9438
 
sed 's/^/| /' conftest.$ac_ext >&5
9439
 
 
9440
 
  ac_header_preproc=no
9441
 
fi
9442
 
rm -f conftest.err conftest.$ac_ext
9443
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444
 
echo "${ECHO_T}$ac_header_preproc" >&6
9445
 
 
9446
 
# So?  What about this header?
9447
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9448
 
  yes:no: )
9449
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9450
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9452
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9453
 
    ac_header_preproc=yes
9454
 
    ;;
9455
 
  no:yes:* )
9456
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9457
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9458
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9459
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9460
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9461
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9462
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9463
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9464
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9467
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9468
 
    (
9469
 
      cat <<\_ASBOX
9470
 
## ------------------------------------------ ##
9471
 
## Report this to the AC_PACKAGE_NAME lists.  ##
9472
 
## ------------------------------------------ ##
9473
 
_ASBOX
9474
 
    ) |
9475
 
      sed "s/^/$as_me: WARNING:     /" >&2
9476
 
    ;;
9477
 
esac
9478
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
9479
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9480
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9482
 
else
9483
 
  eval "$as_ac_Header=\$ac_header_preproc"
9484
 
fi
9485
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9486
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9487
 
 
9488
 
fi
9489
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9490
 
  cat >>confdefs.h <<_ACEOF
9491
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9492
 
_ACEOF
9493
 
 
9494
 
fi
9495
 
 
 
4458
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
4459
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
4460
echo "configure:4461: checking for $ac_hdr" >&5
 
4461
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
4462
  echo $ac_n "(cached) $ac_c" 1>&6
 
4463
else
 
4464
  cat > conftest.$ac_ext <<EOF
 
4465
#line 4466 "configure"
 
4466
#include "confdefs.h"
 
4467
#include <$ac_hdr>
 
4468
EOF
 
4469
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4470
{ (eval echo configure:4471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4471
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4472
if test -z "$ac_err"; then
 
4473
  rm -rf conftest*
 
4474
  eval "ac_cv_header_$ac_safe=yes"
 
4475
else
 
4476
  echo "$ac_err" >&5
 
4477
  echo "configure: failed program was:" >&5
 
4478
  cat conftest.$ac_ext >&5
 
4479
  rm -rf conftest*
 
4480
  eval "ac_cv_header_$ac_safe=no"
 
4481
fi
 
4482
rm -f conftest*
 
4483
fi
 
4484
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
4485
  echo "$ac_t""yes" 1>&6
 
4486
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
4487
  cat >> confdefs.h <<EOF
 
4488
#define $ac_tr_hdr 1
 
4489
EOF
 
4490
 
 
4491
else
 
4492
  echo "$ac_t""no" 1>&6
 
4493
fi
9496
4494
done
9497
4495
 
9498
4496
else
9499
 
   echo "$as_me:$LINENO: result: no" >&5
9500
 
echo "${ECHO_T}no" >&6
 
4497
   echo "$ac_t""no" 1>&6
9501
4498
fi
9502
4499
 
9503
4500
#
9504
4501
# Look for functions that may be missing
9505
4502
#
9506
 
echo "$as_me:$LINENO: checking for memmove" >&5
9507
 
echo $ECHO_N "checking for memmove... $ECHO_C" >&6
9508
 
if test "${ac_cv_func_memmove+set}" = set; then
9509
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4503
echo $ac_n "checking for memmove""... $ac_c" 1>&6
 
4504
echo "configure:4505: checking for memmove" >&5
 
4505
if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
 
4506
  echo $ac_n "(cached) $ac_c" 1>&6
9510
4507
else
9511
 
  cat >conftest.$ac_ext <<_ACEOF
9512
 
/* confdefs.h.  */
9513
 
_ACEOF
9514
 
cat confdefs.h >>conftest.$ac_ext
9515
 
cat >>conftest.$ac_ext <<_ACEOF
9516
 
/* end confdefs.h.  */
9517
 
/* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
9518
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9519
 
#define memmove innocuous_memmove
9520
 
 
 
4508
  cat > conftest.$ac_ext <<EOF
 
4509
#line 4510 "configure"
 
4510
#include "confdefs.h"
9521
4511
/* System header to define __stub macros and hopefully few prototypes,
9522
 
    which can conflict with char memmove (); below.
9523
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9524
 
    <limits.h> exists even on freestanding compilers.  */
9525
 
 
9526
 
#ifdef __STDC__
9527
 
# include <limits.h>
9528
 
#else
9529
 
# include <assert.h>
9530
 
#endif
9531
 
 
9532
 
#undef memmove
9533
 
 
 
4512
    which can conflict with char memmove(); below.  */
 
4513
#include <assert.h>
9534
4514
/* Override any gcc2 internal prototype to avoid an error.  */
9535
 
#ifdef __cplusplus
9536
 
extern "C"
9537
 
{
9538
 
#endif
9539
4515
/* We use char because int might match the return type of a gcc2
9540
 
   builtin and then its argument prototype would still apply.  */
9541
 
char memmove ();
 
4516
    builtin and then its argument prototype would still apply.  */
 
4517
char memmove();
 
4518
 
 
4519
int main() {
 
4520
 
9542
4521
/* The GNU C library defines this for functions which it implements
9543
4522
    to always fail with ENOSYS.  Some functions are actually named
9544
4523
    something starting with __ and the normal name is an alias.  */
9545
4524
#if defined (__stub_memmove) || defined (__stub___memmove)
9546
4525
choke me
9547
4526
#else
9548
 
char (*f) () = memmove;
9549
 
#endif
9550
 
#ifdef __cplusplus
9551
 
}
 
4527
memmove();
9552
4528
#endif
9553
4529
 
9554
 
int
9555
 
main ()
9556
 
{
9557
 
return f != memmove;
9558
 
  ;
9559
 
  return 0;
9560
 
}
9561
 
_ACEOF
9562
 
rm -f conftest.$ac_objext conftest$ac_exeext
9563
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564
 
  (eval $ac_link) 2>conftest.er1
9565
 
  ac_status=$?
9566
 
  grep -v '^ *+' conftest.er1 >conftest.err
9567
 
  rm -f conftest.er1
9568
 
  cat conftest.err >&5
9569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570
 
  (exit $ac_status); } &&
9571
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9572
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573
 
  (eval $ac_try) 2>&5
9574
 
  ac_status=$?
9575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576
 
  (exit $ac_status); }; } &&
9577
 
         { ac_try='test -s conftest$ac_exeext'
9578
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579
 
  (eval $ac_try) 2>&5
9580
 
  ac_status=$?
9581
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582
 
  (exit $ac_status); }; }; then
9583
 
  ac_cv_func_memmove=yes
 
4530
; return 0; }
 
4531
EOF
 
4532
if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4533
  rm -rf conftest*
 
4534
  eval "ac_cv_func_memmove=yes"
9584
4535
else
9585
 
  echo "$as_me: failed program was:" >&5
9586
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4536
  echo "configure: failed program was:" >&5
 
4537
  cat conftest.$ac_ext >&5
 
4538
  rm -rf conftest*
 
4539
  eval "ac_cv_func_memmove=no"
 
4540
fi
 
4541
rm -f conftest*
 
4542
fi
9587
4543
 
9588
 
ac_cv_func_memmove=no
9589
 
fi
9590
 
rm -f conftest.err conftest.$ac_objext \
9591
 
      conftest$ac_exeext conftest.$ac_ext
9592
 
fi
9593
 
echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
9594
 
echo "${ECHO_T}$ac_cv_func_memmove" >&6
9595
 
if test $ac_cv_func_memmove = yes; then
9596
 
  cat >>confdefs.h <<\_ACEOF
 
4544
if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
 
4545
  echo "$ac_t""yes" 1>&6
 
4546
  cat >> confdefs.h <<\EOF
9597
4547
#define HAVE_MEMMOVE 1
9598
 
_ACEOF
 
4548
EOF
9599
4549
 
 
4550
else
 
4551
  echo "$ac_t""no" 1>&6
9600
4552
fi
9601
4553
 
9602
 
echo "$as_me:$LINENO: checking for sysconf" >&5
9603
 
echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
9604
 
if test "${ac_cv_func_sysconf+set}" = set; then
9605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4554
echo $ac_n "checking for sysconf""... $ac_c" 1>&6
 
4555
echo "configure:4556: checking for sysconf" >&5
 
4556
if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
 
4557
  echo $ac_n "(cached) $ac_c" 1>&6
9606
4558
else
9607
 
  cat >conftest.$ac_ext <<_ACEOF
9608
 
/* confdefs.h.  */
9609
 
_ACEOF
9610
 
cat confdefs.h >>conftest.$ac_ext
9611
 
cat >>conftest.$ac_ext <<_ACEOF
9612
 
/* end confdefs.h.  */
9613
 
/* Define sysconf to an innocuous variant, in case <limits.h> declares sysconf.
9614
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9615
 
#define sysconf innocuous_sysconf
9616
 
 
 
4559
  cat > conftest.$ac_ext <<EOF
 
4560
#line 4561 "configure"
 
4561
#include "confdefs.h"
9617
4562
/* System header to define __stub macros and hopefully few prototypes,
9618
 
    which can conflict with char sysconf (); below.
9619
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620
 
    <limits.h> exists even on freestanding compilers.  */
9621
 
 
9622
 
#ifdef __STDC__
9623
 
# include <limits.h>
9624
 
#else
9625
 
# include <assert.h>
9626
 
#endif
9627
 
 
9628
 
#undef sysconf
9629
 
 
 
4563
    which can conflict with char sysconf(); below.  */
 
4564
#include <assert.h>
9630
4565
/* Override any gcc2 internal prototype to avoid an error.  */
9631
 
#ifdef __cplusplus
9632
 
extern "C"
9633
 
{
9634
 
#endif
9635
4566
/* We use char because int might match the return type of a gcc2
9636
 
   builtin and then its argument prototype would still apply.  */
9637
 
char sysconf ();
 
4567
    builtin and then its argument prototype would still apply.  */
 
4568
char sysconf();
 
4569
 
 
4570
int main() {
 
4571
 
9638
4572
/* The GNU C library defines this for functions which it implements
9639
4573
    to always fail with ENOSYS.  Some functions are actually named
9640
4574
    something starting with __ and the normal name is an alias.  */
9641
4575
#if defined (__stub_sysconf) || defined (__stub___sysconf)
9642
4576
choke me
9643
4577
#else
9644
 
char (*f) () = sysconf;
9645
 
#endif
9646
 
#ifdef __cplusplus
9647
 
}
 
4578
sysconf();
9648
4579
#endif
9649
4580
 
9650
 
int
9651
 
main ()
9652
 
{
9653
 
return f != sysconf;
9654
 
  ;
9655
 
  return 0;
9656
 
}
9657
 
_ACEOF
9658
 
rm -f conftest.$ac_objext conftest$ac_exeext
9659
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660
 
  (eval $ac_link) 2>conftest.er1
9661
 
  ac_status=$?
9662
 
  grep -v '^ *+' conftest.er1 >conftest.err
9663
 
  rm -f conftest.er1
9664
 
  cat conftest.err >&5
9665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
 
  (exit $ac_status); } &&
9667
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9668
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669
 
  (eval $ac_try) 2>&5
9670
 
  ac_status=$?
9671
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
 
  (exit $ac_status); }; } &&
9673
 
         { ac_try='test -s conftest$ac_exeext'
9674
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675
 
  (eval $ac_try) 2>&5
9676
 
  ac_status=$?
9677
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678
 
  (exit $ac_status); }; }; then
9679
 
  ac_cv_func_sysconf=yes
 
4581
; return 0; }
 
4582
EOF
 
4583
if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4584
  rm -rf conftest*
 
4585
  eval "ac_cv_func_sysconf=yes"
9680
4586
else
9681
 
  echo "$as_me: failed program was:" >&5
9682
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4587
  echo "configure: failed program was:" >&5
 
4588
  cat conftest.$ac_ext >&5
 
4589
  rm -rf conftest*
 
4590
  eval "ac_cv_func_sysconf=no"
 
4591
fi
 
4592
rm -f conftest*
 
4593
fi
9683
4594
 
9684
 
ac_cv_func_sysconf=no
9685
 
fi
9686
 
rm -f conftest.err conftest.$ac_objext \
9687
 
      conftest$ac_exeext conftest.$ac_ext
9688
 
fi
9689
 
echo "$as_me:$LINENO: result: $ac_cv_func_sysconf" >&5
9690
 
echo "${ECHO_T}$ac_cv_func_sysconf" >&6
9691
 
if test $ac_cv_func_sysconf = yes; then
9692
 
  cat >>confdefs.h <<\_ACEOF
 
4595
if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
 
4596
  echo "$ac_t""yes" 1>&6
 
4597
  cat >> confdefs.h <<\EOF
9693
4598
#define HAVE_SYSCONF 1
9694
 
_ACEOF
 
4599
EOF
9695
4600
 
 
4601
else
 
4602
  echo "$ac_t""no" 1>&6
9696
4603
fi
9697
4604
 
9698
 
echo "$as_me:$LINENO: checking for strftime" >&5
9699
 
echo $ECHO_N "checking for strftime... $ECHO_C" >&6
9700
 
if test "${ac_cv_func_strftime+set}" = set; then
9701
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4605
echo $ac_n "checking for strftime""... $ac_c" 1>&6
 
4606
echo "configure:4607: checking for strftime" >&5
 
4607
if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
 
4608
  echo $ac_n "(cached) $ac_c" 1>&6
9702
4609
else
9703
 
  cat >conftest.$ac_ext <<_ACEOF
9704
 
/* confdefs.h.  */
9705
 
_ACEOF
9706
 
cat confdefs.h >>conftest.$ac_ext
9707
 
cat >>conftest.$ac_ext <<_ACEOF
9708
 
/* end confdefs.h.  */
9709
 
/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
9710
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9711
 
#define strftime innocuous_strftime
9712
 
 
 
4610
  cat > conftest.$ac_ext <<EOF
 
4611
#line 4612 "configure"
 
4612
#include "confdefs.h"
9713
4613
/* System header to define __stub macros and hopefully few prototypes,
9714
 
    which can conflict with char strftime (); below.
9715
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716
 
    <limits.h> exists even on freestanding compilers.  */
9717
 
 
9718
 
#ifdef __STDC__
9719
 
# include <limits.h>
9720
 
#else
9721
 
# include <assert.h>
9722
 
#endif
9723
 
 
9724
 
#undef strftime
9725
 
 
 
4614
    which can conflict with char strftime(); below.  */
 
4615
#include <assert.h>
9726
4616
/* Override any gcc2 internal prototype to avoid an error.  */
9727
 
#ifdef __cplusplus
9728
 
extern "C"
9729
 
{
9730
 
#endif
9731
4617
/* We use char because int might match the return type of a gcc2
9732
 
   builtin and then its argument prototype would still apply.  */
9733
 
char strftime ();
 
4618
    builtin and then its argument prototype would still apply.  */
 
4619
char strftime();
 
4620
 
 
4621
int main() {
 
4622
 
9734
4623
/* The GNU C library defines this for functions which it implements
9735
4624
    to always fail with ENOSYS.  Some functions are actually named
9736
4625
    something starting with __ and the normal name is an alias.  */
9737
4626
#if defined (__stub_strftime) || defined (__stub___strftime)
9738
4627
choke me
9739
4628
#else
9740
 
char (*f) () = strftime;
9741
 
#endif
9742
 
#ifdef __cplusplus
9743
 
}
 
4629
strftime();
9744
4630
#endif
9745
4631
 
9746
 
int
9747
 
main ()
9748
 
{
9749
 
return f != strftime;
9750
 
  ;
9751
 
  return 0;
9752
 
}
9753
 
_ACEOF
9754
 
rm -f conftest.$ac_objext conftest$ac_exeext
9755
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756
 
  (eval $ac_link) 2>conftest.er1
9757
 
  ac_status=$?
9758
 
  grep -v '^ *+' conftest.er1 >conftest.err
9759
 
  rm -f conftest.er1
9760
 
  cat conftest.err >&5
9761
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762
 
  (exit $ac_status); } &&
9763
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9764
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765
 
  (eval $ac_try) 2>&5
9766
 
  ac_status=$?
9767
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768
 
  (exit $ac_status); }; } &&
9769
 
         { ac_try='test -s conftest$ac_exeext'
9770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771
 
  (eval $ac_try) 2>&5
9772
 
  ac_status=$?
9773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
 
  (exit $ac_status); }; }; then
9775
 
  ac_cv_func_strftime=yes
 
4632
; return 0; }
 
4633
EOF
 
4634
if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4635
  rm -rf conftest*
 
4636
  eval "ac_cv_func_strftime=yes"
9776
4637
else
9777
 
  echo "$as_me: failed program was:" >&5
9778
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4638
  echo "configure: failed program was:" >&5
 
4639
  cat conftest.$ac_ext >&5
 
4640
  rm -rf conftest*
 
4641
  eval "ac_cv_func_strftime=no"
 
4642
fi
 
4643
rm -f conftest*
 
4644
fi
9779
4645
 
9780
 
ac_cv_func_strftime=no
9781
 
fi
9782
 
rm -f conftest.err conftest.$ac_objext \
9783
 
      conftest$ac_exeext conftest.$ac_ext
9784
 
fi
9785
 
echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
9786
 
echo "${ECHO_T}$ac_cv_func_strftime" >&6
9787
 
if test $ac_cv_func_strftime = yes; then
9788
 
  cat >>confdefs.h <<\_ACEOF
 
4646
if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
 
4647
  echo "$ac_t""yes" 1>&6
 
4648
  cat >> confdefs.h <<\EOF
9789
4649
#define HAVE_STRFTIME 1
9790
 
_ACEOF
 
4650
EOF
9791
4651
 
 
4652
else
 
4653
  echo "$ac_t""no" 1>&6
9792
4654
fi
9793
4655
 
9794
 
echo "$as_me:$LINENO: checking for strchr" >&5
9795
 
echo $ECHO_N "checking for strchr... $ECHO_C" >&6
9796
 
if test "${ac_cv_func_strchr+set}" = set; then
9797
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4656
echo $ac_n "checking for strchr""... $ac_c" 1>&6
 
4657
echo "configure:4658: checking for strchr" >&5
 
4658
if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
 
4659
  echo $ac_n "(cached) $ac_c" 1>&6
9798
4660
else
9799
 
  cat >conftest.$ac_ext <<_ACEOF
9800
 
/* confdefs.h.  */
9801
 
_ACEOF
9802
 
cat confdefs.h >>conftest.$ac_ext
9803
 
cat >>conftest.$ac_ext <<_ACEOF
9804
 
/* end confdefs.h.  */
9805
 
/* Define strchr to an innocuous variant, in case <limits.h> declares strchr.
9806
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807
 
#define strchr innocuous_strchr
9808
 
 
 
4661
  cat > conftest.$ac_ext <<EOF
 
4662
#line 4663 "configure"
 
4663
#include "confdefs.h"
9809
4664
/* System header to define __stub macros and hopefully few prototypes,
9810
 
    which can conflict with char strchr (); below.
9811
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812
 
    <limits.h> exists even on freestanding compilers.  */
9813
 
 
9814
 
#ifdef __STDC__
9815
 
# include <limits.h>
9816
 
#else
9817
 
# include <assert.h>
9818
 
#endif
9819
 
 
9820
 
#undef strchr
9821
 
 
 
4665
    which can conflict with char strchr(); below.  */
 
4666
#include <assert.h>
9822
4667
/* Override any gcc2 internal prototype to avoid an error.  */
9823
 
#ifdef __cplusplus
9824
 
extern "C"
9825
 
{
9826
 
#endif
9827
4668
/* We use char because int might match the return type of a gcc2
9828
 
   builtin and then its argument prototype would still apply.  */
9829
 
char strchr ();
 
4669
    builtin and then its argument prototype would still apply.  */
 
4670
char strchr();
 
4671
 
 
4672
int main() {
 
4673
 
9830
4674
/* The GNU C library defines this for functions which it implements
9831
4675
    to always fail with ENOSYS.  Some functions are actually named
9832
4676
    something starting with __ and the normal name is an alias.  */
9833
4677
#if defined (__stub_strchr) || defined (__stub___strchr)
9834
4678
choke me
9835
4679
#else
9836
 
char (*f) () = strchr;
9837
 
#endif
9838
 
#ifdef __cplusplus
9839
 
}
 
4680
strchr();
9840
4681
#endif
9841
4682
 
9842
 
int
9843
 
main ()
9844
 
{
9845
 
return f != strchr;
9846
 
  ;
9847
 
  return 0;
9848
 
}
9849
 
_ACEOF
9850
 
rm -f conftest.$ac_objext conftest$ac_exeext
9851
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852
 
  (eval $ac_link) 2>conftest.er1
9853
 
  ac_status=$?
9854
 
  grep -v '^ *+' conftest.er1 >conftest.err
9855
 
  rm -f conftest.er1
9856
 
  cat conftest.err >&5
9857
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858
 
  (exit $ac_status); } &&
9859
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9860
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861
 
  (eval $ac_try) 2>&5
9862
 
  ac_status=$?
9863
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
 
  (exit $ac_status); }; } &&
9865
 
         { ac_try='test -s conftest$ac_exeext'
9866
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867
 
  (eval $ac_try) 2>&5
9868
 
  ac_status=$?
9869
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870
 
  (exit $ac_status); }; }; then
9871
 
  ac_cv_func_strchr=yes
 
4683
; return 0; }
 
4684
EOF
 
4685
if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4686
  rm -rf conftest*
 
4687
  eval "ac_cv_func_strchr=yes"
9872
4688
else
9873
 
  echo "$as_me: failed program was:" >&5
9874
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4689
  echo "configure: failed program was:" >&5
 
4690
  cat conftest.$ac_ext >&5
 
4691
  rm -rf conftest*
 
4692
  eval "ac_cv_func_strchr=no"
 
4693
fi
 
4694
rm -f conftest*
 
4695
fi
9875
4696
 
9876
 
ac_cv_func_strchr=no
9877
 
fi
9878
 
rm -f conftest.err conftest.$ac_objext \
9879
 
      conftest$ac_exeext conftest.$ac_ext
9880
 
fi
9881
 
echo "$as_me:$LINENO: result: $ac_cv_func_strchr" >&5
9882
 
echo "${ECHO_T}$ac_cv_func_strchr" >&6
9883
 
if test $ac_cv_func_strchr = yes; then
9884
 
  cat >>confdefs.h <<\_ACEOF
 
4697
if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
 
4698
  echo "$ac_t""yes" 1>&6
 
4699
  cat >> confdefs.h <<\EOF
9885
4700
#define HAVE_STRCHR 1
9886
 
_ACEOF
 
4701
EOF
9887
4702
 
 
4703
else
 
4704
  echo "$ac_t""no" 1>&6
9888
4705
fi
9889
4706
 
9890
 
echo "$as_me:$LINENO: checking for timezone" >&5
9891
 
echo $ECHO_N "checking for timezone... $ECHO_C" >&6
9892
 
if test "${ac_cv_func_timezone+set}" = set; then
9893
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4707
echo $ac_n "checking for timezone""... $ac_c" 1>&6
 
4708
echo "configure:4709: checking for timezone" >&5
 
4709
if eval "test \"`echo '$''{'ac_cv_func_timezone'+set}'`\" = set"; then
 
4710
  echo $ac_n "(cached) $ac_c" 1>&6
9894
4711
else
9895
 
  cat >conftest.$ac_ext <<_ACEOF
9896
 
/* confdefs.h.  */
9897
 
_ACEOF
9898
 
cat confdefs.h >>conftest.$ac_ext
9899
 
cat >>conftest.$ac_ext <<_ACEOF
9900
 
/* end confdefs.h.  */
9901
 
/* Define timezone to an innocuous variant, in case <limits.h> declares timezone.
9902
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9903
 
#define timezone innocuous_timezone
9904
 
 
 
4712
  cat > conftest.$ac_ext <<EOF
 
4713
#line 4714 "configure"
 
4714
#include "confdefs.h"
9905
4715
/* System header to define __stub macros and hopefully few prototypes,
9906
 
    which can conflict with char timezone (); below.
9907
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908
 
    <limits.h> exists even on freestanding compilers.  */
9909
 
 
9910
 
#ifdef __STDC__
9911
 
# include <limits.h>
9912
 
#else
9913
 
# include <assert.h>
9914
 
#endif
9915
 
 
9916
 
#undef timezone
9917
 
 
 
4716
    which can conflict with char timezone(); below.  */
 
4717
#include <assert.h>
9918
4718
/* Override any gcc2 internal prototype to avoid an error.  */
9919
 
#ifdef __cplusplus
9920
 
extern "C"
9921
 
{
9922
 
#endif
9923
4719
/* We use char because int might match the return type of a gcc2
9924
 
   builtin and then its argument prototype would still apply.  */
9925
 
char timezone ();
 
4720
    builtin and then its argument prototype would still apply.  */
 
4721
char timezone();
 
4722
 
 
4723
int main() {
 
4724
 
9926
4725
/* The GNU C library defines this for functions which it implements
9927
4726
    to always fail with ENOSYS.  Some functions are actually named
9928
4727
    something starting with __ and the normal name is an alias.  */
9929
4728
#if defined (__stub_timezone) || defined (__stub___timezone)
9930
4729
choke me
9931
4730
#else
9932
 
char (*f) () = timezone;
9933
 
#endif
9934
 
#ifdef __cplusplus
9935
 
}
 
4731
timezone();
9936
4732
#endif
9937
4733
 
9938
 
int
9939
 
main ()
9940
 
{
9941
 
return f != timezone;
9942
 
  ;
9943
 
  return 0;
9944
 
}
9945
 
_ACEOF
9946
 
rm -f conftest.$ac_objext conftest$ac_exeext
9947
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948
 
  (eval $ac_link) 2>conftest.er1
9949
 
  ac_status=$?
9950
 
  grep -v '^ *+' conftest.er1 >conftest.err
9951
 
  rm -f conftest.er1
9952
 
  cat conftest.err >&5
9953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954
 
  (exit $ac_status); } &&
9955
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9956
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957
 
  (eval $ac_try) 2>&5
9958
 
  ac_status=$?
9959
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960
 
  (exit $ac_status); }; } &&
9961
 
         { ac_try='test -s conftest$ac_exeext'
9962
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963
 
  (eval $ac_try) 2>&5
9964
 
  ac_status=$?
9965
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966
 
  (exit $ac_status); }; }; then
9967
 
  ac_cv_func_timezone=yes
 
4734
; return 0; }
 
4735
EOF
 
4736
if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4737
  rm -rf conftest*
 
4738
  eval "ac_cv_func_timezone=yes"
9968
4739
else
9969
 
  echo "$as_me: failed program was:" >&5
9970
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4740
  echo "configure: failed program was:" >&5
 
4741
  cat conftest.$ac_ext >&5
 
4742
  rm -rf conftest*
 
4743
  eval "ac_cv_func_timezone=no"
 
4744
fi
 
4745
rm -f conftest*
 
4746
fi
9971
4747
 
9972
 
ac_cv_func_timezone=no
9973
 
fi
9974
 
rm -f conftest.err conftest.$ac_objext \
9975
 
      conftest$ac_exeext conftest.$ac_ext
9976
 
fi
9977
 
echo "$as_me:$LINENO: result: $ac_cv_func_timezone" >&5
9978
 
echo "${ECHO_T}$ac_cv_func_timezone" >&6
9979
 
if test $ac_cv_func_timezone = yes; then
9980
 
  cat >>confdefs.h <<\_ACEOF
 
4748
if eval "test \"`echo '$ac_cv_func_'timezone`\" = yes"; then
 
4749
  echo "$ac_t""yes" 1>&6
 
4750
  cat >> confdefs.h <<\EOF
9981
4751
#define HAVE_TIMEZONE 1
9982
 
_ACEOF
 
4752
EOF
9983
4753
 
 
4754
else
 
4755
  echo "$ac_t""no" 1>&6
9984
4756
fi
9985
4757
 
9986
 
echo "$as_me:$LINENO: checking for siglongjmp" >&5
9987
 
echo $ECHO_N "checking for siglongjmp... $ECHO_C" >&6
9988
 
if test "${ac_cv_func_siglongjmp+set}" = set; then
9989
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4758
echo $ac_n "checking for siglongjmp""... $ac_c" 1>&6
 
4759
echo "configure:4760: checking for siglongjmp" >&5
 
4760
if eval "test \"`echo '$''{'ac_cv_func_siglongjmp'+set}'`\" = set"; then
 
4761
  echo $ac_n "(cached) $ac_c" 1>&6
9990
4762
else
9991
 
  cat >conftest.$ac_ext <<_ACEOF
9992
 
/* confdefs.h.  */
9993
 
_ACEOF
9994
 
cat confdefs.h >>conftest.$ac_ext
9995
 
cat >>conftest.$ac_ext <<_ACEOF
9996
 
/* end confdefs.h.  */
9997
 
/* Define siglongjmp to an innocuous variant, in case <limits.h> declares siglongjmp.
9998
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9999
 
#define siglongjmp innocuous_siglongjmp
10000
 
 
 
4763
  cat > conftest.$ac_ext <<EOF
 
4764
#line 4765 "configure"
 
4765
#include "confdefs.h"
10001
4766
/* System header to define __stub macros and hopefully few prototypes,
10002
 
    which can conflict with char siglongjmp (); below.
10003
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10004
 
    <limits.h> exists even on freestanding compilers.  */
10005
 
 
10006
 
#ifdef __STDC__
10007
 
# include <limits.h>
10008
 
#else
10009
 
# include <assert.h>
10010
 
#endif
10011
 
 
10012
 
#undef siglongjmp
10013
 
 
 
4767
    which can conflict with char siglongjmp(); below.  */
 
4768
#include <assert.h>
10014
4769
/* Override any gcc2 internal prototype to avoid an error.  */
10015
 
#ifdef __cplusplus
10016
 
extern "C"
10017
 
{
10018
 
#endif
10019
4770
/* We use char because int might match the return type of a gcc2
10020
 
   builtin and then its argument prototype would still apply.  */
10021
 
char siglongjmp ();
 
4771
    builtin and then its argument prototype would still apply.  */
 
4772
char siglongjmp();
 
4773
 
 
4774
int main() {
 
4775
 
10022
4776
/* The GNU C library defines this for functions which it implements
10023
4777
    to always fail with ENOSYS.  Some functions are actually named
10024
4778
    something starting with __ and the normal name is an alias.  */
10025
4779
#if defined (__stub_siglongjmp) || defined (__stub___siglongjmp)
10026
4780
choke me
10027
4781
#else
10028
 
char (*f) () = siglongjmp;
10029
 
#endif
10030
 
#ifdef __cplusplus
10031
 
}
 
4782
siglongjmp();
10032
4783
#endif
10033
4784
 
10034
 
int
10035
 
main ()
10036
 
{
10037
 
return f != siglongjmp;
10038
 
  ;
10039
 
  return 0;
10040
 
}
10041
 
_ACEOF
10042
 
rm -f conftest.$ac_objext conftest$ac_exeext
10043
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044
 
  (eval $ac_link) 2>conftest.er1
10045
 
  ac_status=$?
10046
 
  grep -v '^ *+' conftest.er1 >conftest.err
10047
 
  rm -f conftest.er1
10048
 
  cat conftest.err >&5
10049
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050
 
  (exit $ac_status); } &&
10051
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10052
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053
 
  (eval $ac_try) 2>&5
10054
 
  ac_status=$?
10055
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056
 
  (exit $ac_status); }; } &&
10057
 
         { ac_try='test -s conftest$ac_exeext'
10058
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059
 
  (eval $ac_try) 2>&5
10060
 
  ac_status=$?
10061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062
 
  (exit $ac_status); }; }; then
10063
 
  ac_cv_func_siglongjmp=yes
 
4785
; return 0; }
 
4786
EOF
 
4787
if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4788
  rm -rf conftest*
 
4789
  eval "ac_cv_func_siglongjmp=yes"
10064
4790
else
10065
 
  echo "$as_me: failed program was:" >&5
10066
 
sed 's/^/| /' conftest.$ac_ext >&5
 
4791
  echo "configure: failed program was:" >&5
 
4792
  cat conftest.$ac_ext >&5
 
4793
  rm -rf conftest*
 
4794
  eval "ac_cv_func_siglongjmp=no"
 
4795
fi
 
4796
rm -f conftest*
 
4797
fi
10067
4798
 
10068
 
ac_cv_func_siglongjmp=no
10069
 
fi
10070
 
rm -f conftest.err conftest.$ac_objext \
10071
 
      conftest$ac_exeext conftest.$ac_ext
10072
 
fi
10073
 
echo "$as_me:$LINENO: result: $ac_cv_func_siglongjmp" >&5
10074
 
echo "${ECHO_T}$ac_cv_func_siglongjmp" >&6
10075
 
if test $ac_cv_func_siglongjmp = yes; then
10076
 
  cat >>confdefs.h <<\_ACEOF
 
4799
if eval "test \"`echo '$ac_cv_func_'siglongjmp`\" = yes"; then
 
4800
  echo "$ac_t""yes" 1>&6
 
4801
  cat >> confdefs.h <<\EOF
10077
4802
#define HAVE_SIGLONGJMP 1
10078
 
_ACEOF
 
4803
EOF
10079
4804
 
 
4805
else
 
4806
  echo "$ac_t""no" 1>&6
10080
4807
fi
10081
4808
 
10082
4809
 
10083
4810
# dnl check for memcpy by hand
10084
4811
# because Unixware 2.0 handles it specially and refuses to compile
10085
4812
# autoconf's automatic test that is a call with no arguments
10086
 
echo "$as_me:$LINENO: checking for memcpy" >&5
10087
 
echo $ECHO_N "checking for memcpy... $ECHO_C" >&6
10088
 
cat >conftest.$ac_ext <<_ACEOF
10089
 
/* confdefs.h.  */
10090
 
_ACEOF
10091
 
cat confdefs.h >>conftest.$ac_ext
10092
 
cat >>conftest.$ac_ext <<_ACEOF
10093
 
/* end confdefs.h.  */
 
4813
echo $ac_n "checking for memcpy""... $ac_c" 1>&6
 
4814
echo "configure:4815: checking for memcpy" >&5
 
4815
cat > conftest.$ac_ext <<EOF
 
4816
#line 4817 "configure"
 
4817
#include "confdefs.h"
10094
4818
 
10095
 
int
10096
 
main ()
10097
 
{
 
4819
int main() {
10098
4820
 
10099
4821
char *s1, *s2;
10100
4822
memcpy(s1,s2,0);
10101
4823
 
10102
 
  ;
10103
 
  return 0;
10104
 
}
10105
 
_ACEOF
10106
 
rm -f conftest.$ac_objext conftest$ac_exeext
10107
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108
 
  (eval $ac_link) 2>conftest.er1
10109
 
  ac_status=$?
10110
 
  grep -v '^ *+' conftest.er1 >conftest.err
10111
 
  rm -f conftest.er1
10112
 
  cat conftest.err >&5
10113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114
 
  (exit $ac_status); } &&
10115
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10116
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117
 
  (eval $ac_try) 2>&5
10118
 
  ac_status=$?
10119
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120
 
  (exit $ac_status); }; } &&
10121
 
         { ac_try='test -s conftest$ac_exeext'
10122
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123
 
  (eval $ac_try) 2>&5
10124
 
  ac_status=$?
10125
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126
 
  (exit $ac_status); }; }; then
10127
 
  echo "$as_me:$LINENO: result: yes" >&5
10128
 
echo "${ECHO_T}yes" >&6
10129
 
        cat >>confdefs.h <<\_ACEOF
 
4824
; return 0; }
 
4825
EOF
 
4826
if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4827
  rm -rf conftest*
 
4828
  echo "$ac_t""yes" 1>&6
 
4829
        cat >> confdefs.h <<\EOF
10130
4830
#define HAVE_MEMCPY 1
10131
 
_ACEOF
10132
 
 
10133
 
 
 
4831
EOF
 
4832
 
 
4833
        
10134
4834
else
10135
 
  echo "$as_me: failed program was:" >&5
10136
 
sed 's/^/| /' conftest.$ac_ext >&5
10137
 
 
10138
 
echo "$as_me:$LINENO: result: no" >&5
10139
 
echo "${ECHO_T}no" >&6
 
4835
  echo "configure: failed program was:" >&5
 
4836
  cat conftest.$ac_ext >&5
 
4837
  rm -rf conftest*
 
4838
  echo "$ac_t""no" 1>&6
10140
4839
 
10141
4840
fi
10142
 
rm -f conftest.err conftest.$ac_objext \
10143
 
      conftest$ac_exeext conftest.$ac_ext
 
4841
rm -f conftest*
10144
4842
 
10145
4843
# Some systems only define WNOHANG if _POSIX_SOURCE is defined
10146
4844
# The following merely tests that sys/wait.h can be included
10147
4845
# and if so that WNOHANG is not defined.  The only place I've
10148
4846
# seen this is ISC.
10149
 
echo "$as_me:$LINENO: checking if WNOHANG requires _POSIX_SOURCE" >&5
10150
 
echo $ECHO_N "checking if WNOHANG requires _POSIX_SOURCE... $ECHO_C" >&6
 
4847
echo $ac_n "checking if WNOHANG requires _POSIX_SOURCE""... $ac_c" 1>&6
 
4848
echo "configure:4849: checking if WNOHANG requires _POSIX_SOURCE" >&5
10151
4849
if test "$cross_compiling" = yes; then
10152
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
10153
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
10154
 
   { (exit 1); exit 1; }; }
 
4850
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
10155
4851
 
10156
4852
else
10157
 
  cat >conftest.$ac_ext <<_ACEOF
10158
 
/* confdefs.h.  */
10159
 
_ACEOF
10160
 
cat confdefs.h >>conftest.$ac_ext
10161
 
cat >>conftest.$ac_ext <<_ACEOF
10162
 
/* end confdefs.h.  */
 
4853
  cat > conftest.$ac_ext <<EOF
 
4854
#line 4855 "configure"
 
4855
#include "confdefs.h"
10163
4856
 
10164
4857
#include <sys/wait.h>
10165
4858
main() {
10169
4862
        return 1;
10170
4863
#endif
10171
4864
}
10172
 
_ACEOF
10173
 
rm -f conftest$ac_exeext
10174
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175
 
  (eval $ac_link) 2>&5
10176
 
  ac_status=$?
10177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10179
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180
 
  (eval $ac_try) 2>&5
10181
 
  ac_status=$?
10182
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183
 
  (exit $ac_status); }; }; then
10184
 
  echo "$as_me:$LINENO: result: yes" >&5
10185
 
echo "${ECHO_T}yes" >&6
10186
 
        cat >>confdefs.h <<\_ACEOF
 
4865
EOF
 
4866
if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4867
then
 
4868
  echo "$ac_t""yes" 1>&6
 
4869
        cat >> confdefs.h <<\EOF
10187
4870
#define WNOHANG_REQUIRES_POSIX_SOURCE 1
10188
 
_ACEOF
 
4871
EOF
10189
4872
 
10190
4873
 
10191
4874
else
10192
 
  echo "$as_me: program exited with status $ac_status" >&5
10193
 
echo "$as_me: failed program was:" >&5
10194
 
sed 's/^/| /' conftest.$ac_ext >&5
10195
 
 
10196
 
( exit $ac_status )
10197
 
echo "$as_me:$LINENO: result: no" >&5
10198
 
echo "${ECHO_T}no" >&6
10199
 
 
10200
 
fi
10201
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10202
 
fi
10203
 
 
10204
 
echo "$as_me:$LINENO: checking if any value exists for WNOHANG" >&5
10205
 
echo $ECHO_N "checking if any value exists for WNOHANG... $ECHO_C" >&6
 
4875
  echo "configure: failed program was:" >&5
 
4876
  cat conftest.$ac_ext >&5
 
4877
  rm -fr conftest*
 
4878
  echo "$ac_t""no" 1>&6
 
4879
 
 
4880
fi
 
4881
rm -fr conftest*
 
4882
fi
 
4883
 
 
4884
 
 
4885
echo $ac_n "checking if any value exists for WNOHANG""... $ac_c" 1>&6
 
4886
echo "configure:4887: checking if any value exists for WNOHANG" >&5
10206
4887
rm -rf wnohang
10207
4888
if test "$cross_compiling" = yes; then
10208
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
10209
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
10210
 
   { (exit 1); exit 1; }; }
 
4889
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
10211
4890
 
10212
4891
else
10213
 
  cat >conftest.$ac_ext <<_ACEOF
10214
 
/* confdefs.h.  */
10215
 
_ACEOF
10216
 
cat confdefs.h >>conftest.$ac_ext
10217
 
cat >>conftest.$ac_ext <<_ACEOF
10218
 
/* end confdefs.h.  */
 
4892
  cat > conftest.$ac_ext <<EOF
 
4893
#line 4894 "configure"
 
4894
#include "confdefs.h"
10219
4895
 
10220
4896
#include <stdio.h>
10221
4897
#include <sys/wait.h>
10229
4905
        return 1;
10230
4906
#endif
10231
4907
}
10232
 
_ACEOF
10233
 
rm -f conftest$ac_exeext
10234
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235
 
  (eval $ac_link) 2>&5
10236
 
  ac_status=$?
10237
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10239
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240
 
  (eval $ac_try) 2>&5
10241
 
  ac_status=$?
10242
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243
 
  (exit $ac_status); }; }; then
10244
 
  echo "$as_me:$LINENO: result: yes" >&5
10245
 
echo "${ECHO_T}yes" >&6
10246
 
        cat >>confdefs.h <<_ACEOF
 
4908
EOF
 
4909
if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4910
then
 
4911
  echo "$ac_t""yes" 1>&6
 
4912
        cat >> confdefs.h <<EOF
10247
4913
#define WNOHANG_BACKUP_VALUE `cat wnohang`
10248
 
_ACEOF
 
4914
EOF
10249
4915
 
10250
4916
        rm -f wnohang
10251
4917
 
10252
4918
else
10253
 
  echo "$as_me: program exited with status $ac_status" >&5
10254
 
echo "$as_me: failed program was:" >&5
10255
 
sed 's/^/| /' conftest.$ac_ext >&5
10256
 
 
10257
 
( exit $ac_status )
10258
 
echo "$as_me:$LINENO: result: no" >&5
10259
 
echo "${ECHO_T}no" >&6
10260
 
        cat >>confdefs.h <<\_ACEOF
 
4919
  echo "configure: failed program was:" >&5
 
4920
  cat conftest.$ac_ext >&5
 
4921
  rm -fr conftest*
 
4922
  echo "$ac_t""no" 1>&6
 
4923
        cat >> confdefs.h <<\EOF
10261
4924
#define WNOHANG_BACKUP_VALUE 1
10262
 
_ACEOF
10263
 
 
10264
 
 
10265
 
fi
10266
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10267
 
fi
 
4925
EOF
 
4926
 
 
4927
 
 
4928
fi
 
4929
rm -fr conftest*
 
4930
fi
 
4931
 
10268
4932
 
10269
4933
#-----Stolen from Tcl's configure file-------------------------------
10270
4934
#       The check below checks whether <sys/wait.h> defines the type
10274
4938
#       the trick.
10275
4939
#--------------------------------------------------------------------
10276
4940
 
10277
 
echo "$as_me:$LINENO: checking union wait" >&5
10278
 
echo $ECHO_N "checking union wait... $ECHO_C" >&6
10279
 
cat >conftest.$ac_ext <<_ACEOF
10280
 
/* confdefs.h.  */
10281
 
_ACEOF
10282
 
cat confdefs.h >>conftest.$ac_ext
10283
 
cat >>conftest.$ac_ext <<_ACEOF
10284
 
/* end confdefs.h.  */
10285
 
#include <sys/types.h>
 
4941
echo $ac_n "checking union wait""... $ac_c" 1>&6
 
4942
echo "configure:4943: checking union wait" >&5
 
4943
cat > conftest.$ac_ext <<EOF
 
4944
#line 4945 "configure"
 
4945
#include "confdefs.h"
 
4946
#include <sys/types.h> 
10286
4947
#include <sys/wait.h>
10287
 
int
10288
 
main ()
10289
 
{
 
4948
int main() {
10290
4949
 
10291
4950
union wait x;
10292
4951
WIFEXITED(x);           /* Generates compiler error if WIFEXITED
10293
4952
                         * uses an int. */
10294
4953
 
10295
 
  ;
10296
 
  return 0;
10297
 
}
10298
 
_ACEOF
10299
 
rm -f conftest.$ac_objext conftest$ac_exeext
10300
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301
 
  (eval $ac_link) 2>conftest.er1
10302
 
  ac_status=$?
10303
 
  grep -v '^ *+' conftest.er1 >conftest.err
10304
 
  rm -f conftest.er1
10305
 
  cat conftest.err >&5
10306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307
 
  (exit $ac_status); } &&
10308
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10309
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310
 
  (eval $ac_try) 2>&5
10311
 
  ac_status=$?
10312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313
 
  (exit $ac_status); }; } &&
10314
 
         { ac_try='test -s conftest$ac_exeext'
10315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316
 
  (eval $ac_try) 2>&5
10317
 
  ac_status=$?
10318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319
 
  (exit $ac_status); }; }; then
 
4954
; return 0; }
 
4955
EOF
 
4956
if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4957
  rm -rf conftest*
10320
4958
  tcl_ok=yes
10321
4959
else
10322
 
  echo "$as_me: failed program was:" >&5
10323
 
sed 's/^/| /' conftest.$ac_ext >&5
10324
 
 
10325
 
tcl_ok=no
 
4960
  echo "configure: failed program was:" >&5
 
4961
  cat conftest.$ac_ext >&5
 
4962
  rm -rf conftest*
 
4963
  tcl_ok=no
10326
4964
fi
10327
 
rm -f conftest.err conftest.$ac_objext \
10328
 
      conftest$ac_exeext conftest.$ac_ext
10329
 
echo "$as_me:$LINENO: result: $tcl_ok" >&5
10330
 
echo "${ECHO_T}$tcl_ok" >&6
 
4965
rm -f conftest*
 
4966
echo "$ac_t""$tcl_ok" 1>&6
10331
4967
if test $tcl_ok = no; then
10332
 
    cat >>confdefs.h <<\_ACEOF
 
4968
    cat >> confdefs.h <<\EOF
10333
4969
#define NO_UNION_WAIT 1
10334
 
_ACEOF
 
4970
EOF
10335
4971
 
10336
4972
fi
10337
4973
 
10342
4978
#
10343
4979
 
10344
4980
# Check for the data type of the mask used in select().
10345
 
# This picks up HP braindamage which defines fd_set and then
 
4981
# This picks up HP braindamage which defines fd_set and then 
10346
4982
# proceeds to ignore it and use int.
10347
4983
# Pattern matching on int could be loosened.
10348
4984
# Can't use ac_header_egrep since that doesn't see prototypes with K&R cpp.
10349
 
echo "$as_me:$LINENO: checking mask type of select" >&5
10350
 
echo $ECHO_N "checking mask type of select... $ECHO_C" >&6
 
4985
echo $ac_n "checking mask type of select""... $ac_c" 1>&6
 
4986
echo "configure:4987: checking mask type of select" >&5
10351
4987
if egrep "select\(size_t, int" /usr/include/sys/time.h >/dev/null 2>&1; then
10352
 
  echo "$as_me:$LINENO: result: int" >&5
10353
 
echo "${ECHO_T}int" >&6
10354
 
  cat >>confdefs.h <<\_ACEOF
 
4988
  echo "$ac_t""int" 1>&6
 
4989
  cat >> confdefs.h <<\EOF
10355
4990
#define SELECT_MASK_TYPE int
10356
 
_ACEOF
 
4991
EOF
10357
4992
 
10358
4993
else
10359
 
  echo "$as_me:$LINENO: result: none" >&5
10360
 
echo "${ECHO_T}none" >&6
 
4994
  echo "$ac_t""none" 1>&6
10361
4995
fi
10362
4996
 
10363
4997
 
10364
4998
# FIXME: check if alarm exists
10365
 
echo "$as_me:$LINENO: checking if signals need to be re-armed" >&5
10366
 
echo $ECHO_N "checking if signals need to be re-armed... $ECHO_C" >&6
 
4999
echo $ac_n "checking if signals need to be re-armed""... $ac_c" 1>&6
 
5000
echo "configure:5001: checking if signals need to be re-armed" >&5
10367
5001
if test "$cross_compiling" = yes; then
10368
 
  { echo "$as_me:$LINENO: WARNING: Expect can't be cross compiled" >&5
10369
 
echo "$as_me: WARNING: Expect can't be cross compiled" >&2;}
 
5002
  echo "configure: warning: Expect can't be cross compiled" 1>&2
10370
5003
 
10371
5004
else
10372
 
  cat >conftest.$ac_ext <<_ACEOF
10373
 
/* confdefs.h.  */
10374
 
_ACEOF
10375
 
cat confdefs.h >>conftest.$ac_ext
10376
 
cat >>conftest.$ac_ext <<_ACEOF
10377
 
/* end confdefs.h.  */
 
5005
  cat > conftest.$ac_ext <<EOF
 
5006
#line 5007 "configure"
 
5007
#include "confdefs.h"
10378
5008
 
10379
5009
#include <signal.h>
10380
5010
#define RETSIGTYPE $retsigtype
10411
5041
                exit(signal_rearms);
10412
5042
        }
10413
5043
}
10414
 
_ACEOF
10415
 
rm -f conftest$ac_exeext
10416
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417
 
  (eval $ac_link) 2>&5
10418
 
  ac_status=$?
10419
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10421
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422
 
  (eval $ac_try) 2>&5
10423
 
  ac_status=$?
10424
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425
 
  (exit $ac_status); }; }; then
10426
 
  echo "$as_me:$LINENO: result: yes" >&5
10427
 
echo "${ECHO_T}yes" >&6
10428
 
        cat >>confdefs.h <<\_ACEOF
 
5044
EOF
 
5045
if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5046
then
 
5047
  echo "$ac_t""yes" 1>&6
 
5048
        cat >> confdefs.h <<\EOF
10429
5049
#define REARM_SIG 1
10430
 
_ACEOF
 
5050
EOF
10431
5051
 
10432
5052
 
10433
5053
else
10434
 
  echo "$as_me: program exited with status $ac_status" >&5
10435
 
echo "$as_me: failed program was:" >&5
10436
 
sed 's/^/| /' conftest.$ac_ext >&5
10437
 
 
10438
 
( exit $ac_status )
10439
 
echo "$as_me:$LINENO: result: no" >&5
10440
 
echo "${ECHO_T}no" >&6
10441
 
 
10442
 
fi
10443
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10444
 
fi
 
5054
  echo "configure: failed program was:" >&5
 
5055
  cat conftest.$ac_ext >&5
 
5056
  rm -fr conftest*
 
5057
  echo "$ac_t""no" 1>&6
 
5058
 
 
5059
fi
 
5060
rm -fr conftest*
 
5061
fi
 
5062
 
10445
5063
 
10446
5064
# HPUX7 has trouble with the big cat so split it
10447
 
# Owen Rees <rtor@ansa.co.uk> 29Mar93
 
5065
# Owen Rees <rtor@ansa.co.uk> 29Mar93 
10448
5066
SEDDEFS="${SEDDEFS}CONFEOF
10449
5067
cat >> conftest.sed <<CONFEOF
10450
5068
"
10454
5072
# I don't remember who has the first one, but Convex just added one
10455
5073
# so check for it.  Unfortunately, there is no header so the only
10456
5074
# reasonable way to make sure is to look it we are on a Convex.
10457
 
echo "$as_me:$LINENO: checking if on Convex" >&5
10458
 
echo $ECHO_N "checking if on Convex... $ECHO_C" >&6
 
5075
echo $ac_n "checking if on Convex""... $ac_c" 1>&6
 
5076
echo "configure:5077: checking if on Convex" >&5
10459
5077
convex=0
10460
5078
case "${host}" in
10461
5079
  c[12]-*-*)            convex=1;;
10462
5080
esac
10463
5081
 
10464
5082
if test $convex -eq 1 ; then
10465
 
  echo "$as_me:$LINENO: result: yes" >&5
10466
 
echo "${ECHO_T}yes" >&6
10467
 
  cat >>confdefs.h <<\_ACEOF
 
5083
  echo "$ac_t""yes" 1>&6
 
5084
  cat >> confdefs.h <<\EOF
10468
5085
#define CONVEX 1
10469
 
_ACEOF
 
5086
EOF
10470
5087
 
10471
5088
else
10472
 
  echo "$as_me:$LINENO: result: no" >&5
10473
 
echo "${ECHO_T}no" >&6
 
5089
  echo "$ac_t""no" 1>&6
10474
5090
fi
10475
5091
 
10476
5092
EXP_LDFLAGS="$LDFLAGS"
10477
5093
 
10478
 
echo "$as_me:$LINENO: checking if on NeXT" >&5
10479
 
echo $ECHO_N "checking if on NeXT... $ECHO_C" >&6
 
5094
echo $ac_n "checking if on NeXT""... $ac_c" 1>&6
 
5095
echo "configure:5096: checking if on NeXT" >&5
10480
5096
if test -r /NextApps ; then
10481
 
  echo "$as_me:$LINENO: result: yes" >&5
10482
 
echo "${ECHO_T}yes" >&6
 
5097
  echo "$ac_t""yes" 1>&6
10483
5098
  # "-m" flag suppresses complaints about multiple strtod
10484
5099
  EXP_LDFLAGS="$EXP_LDFLAGS -m"
10485
5100
else
10486
 
  echo "$as_me:$LINENO: result: no" >&5
10487
 
echo "${ECHO_T}no" >&6
 
5101
  echo "$ac_t""no" 1>&6
10488
5102
fi
10489
5103
 
10490
5104
 
10491
 
echo "$as_me:$LINENO: checking if on HP" >&5
10492
 
echo $ECHO_N "checking if on HP... $ECHO_C" >&6
 
5105
echo $ac_n "checking if on HP""... $ac_c" 1>&6
 
5106
echo "configure:5107: checking if on HP" >&5
10493
5107
if test "x`(uname) 2>/dev/null`" = xHP-UX; then
10494
 
  echo "$as_me:$LINENO: result: yes" >&5
10495
 
echo "${ECHO_T}yes" >&6
 
5108
  echo "$ac_t""yes" 1>&6
10496
5109
  hp=1
10497
5110
else
10498
 
  echo "$as_me:$LINENO: result: no" >&5
10499
 
echo "${ECHO_T}no" >&6
 
5111
  echo "$ac_t""no" 1>&6
10500
5112
  hp=0
10501
5113
fi
10502
5114
 
10503
 
echo "$as_me:$LINENO: checking sane default stty arguments" >&5
10504
 
echo $ECHO_N "checking sane default stty arguments... $ECHO_C" >&6
 
5115
echo $ac_n "checking sane default stty arguments""... $ac_c" 1>&6
 
5116
echo "configure:5117: checking sane default stty arguments" >&5
10505
5117
DEFAULT_STTY_ARGS="sane"
10506
5118
 
10507
5119
if test $mach -eq 1 ; then
10512
5124
        DEFAULT_STTY_ARGS="sane kill "
10513
5125
fi
10514
5126
 
10515
 
echo "$as_me:$LINENO: result: $DEFAULT_STTY_ARG" >&5
10516
 
echo "${ECHO_T}$DEFAULT_STTY_ARG" >&6
 
5127
echo "$ac_t""$DEFAULT_STTY_ARG" 1>&6
10517
5128
 
10518
5129
# Look for various features to determine what kind of pty
10519
5130
# we have. For some weird reason, ac_compile_check would not
10520
5131
# work, but ac_test_program does.
10521
5132
#
10522
 
echo "$as_me:$LINENO: checking for HP style pty allocation" >&5
10523
 
echo $ECHO_N "checking for HP style pty allocation... $ECHO_C" >&6
 
5133
echo $ac_n "checking for HP style pty allocation""... $ac_c" 1>&6
 
5134
echo "configure:5135: checking for HP style pty allocation" >&5
10524
5135
# following test fails on DECstations and other things that don't grok -c
10525
5136
# but that's ok, since they don't have PTYMs anyway
10526
5137
if test -r /dev/ptym/ptyp0 2>/dev/null ; then
10527
 
    echo "$as_me:$LINENO: result: yes" >&5
10528
 
echo "${ECHO_T}yes" >&6
10529
 
    cat >>confdefs.h <<\_ACEOF
 
5138
    echo "$ac_t""yes" 1>&6
 
5139
    cat >> confdefs.h <<\EOF
10530
5140
#define HAVE_PTYM 1
10531
 
_ACEOF
 
5141
EOF
10532
5142
 
10533
5143
else
10534
 
    echo "$as_me:$LINENO: result: no" >&5
10535
 
echo "${ECHO_T}no" >&6
 
5144
    echo "$ac_t""no" 1>&6
10536
5145
fi
10537
5146
 
10538
 
echo "$as_me:$LINENO: checking for HP style pty trapping" >&5
10539
 
echo $ECHO_N "checking for HP style pty trapping... $ECHO_C" >&6
10540
 
cat >conftest.$ac_ext <<_ACEOF
10541
 
/* confdefs.h.  */
10542
 
_ACEOF
10543
 
cat confdefs.h >>conftest.$ac_ext
10544
 
cat >>conftest.$ac_ext <<_ACEOF
10545
 
/* end confdefs.h.  */
 
5147
echo $ac_n "checking for HP style pty trapping""... $ac_c" 1>&6
 
5148
echo "configure:5149: checking for HP style pty trapping" >&5
 
5149
cat > conftest.$ac_ext <<EOF
 
5150
#line 5151 "configure"
 
5151
#include "confdefs.h"
10546
5152
#include <sys/ptyio.h>
10547
 
 
10548
 
_ACEOF
 
5153
EOF
10549
5154
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10550
 
  $EGREP "struct.*request_info" >/dev/null 2>&1; then
10551
 
  echo "$as_me:$LINENO: result: yes" >&5
10552
 
echo "${ECHO_T}yes" >&6
10553
 
        cat >>confdefs.h <<\_ACEOF
 
5155
  egrep "struct.*request_info" >/dev/null 2>&1; then
 
5156
  rm -rf conftest*
 
5157
  echo "$ac_t""yes" 1>&6
 
5158
        cat >> confdefs.h <<\EOF
10554
5159
#define HAVE_PTYTRAP 1
10555
 
_ACEOF
 
5160
EOF
10556
5161
 
10557
5162
 
10558
5163
else
10559
 
  echo "$as_me:$LINENO: result: no" >&5
10560
 
echo "${ECHO_T}no" >&6
 
5164
  rm -rf conftest*
 
5165
  echo "$ac_t""no" 1>&6
10561
5166
 
10562
5167
fi
10563
5168
rm -f conftest*
10564
5169
 
10565
5170
 
10566
 
echo "$as_me:$LINENO: checking for AIX new-style pty allocation" >&5
10567
 
echo $ECHO_N "checking for AIX new-style pty allocation... $ECHO_C" >&6
 
5171
echo $ac_n "checking for AIX new-style pty allocation""... $ac_c" 1>&6
 
5172
echo "configure:5173: checking for AIX new-style pty allocation" >&5
10568
5173
if test -r /dev/ptc -a -r /dev/pts ; then
10569
 
    echo "$as_me:$LINENO: result: yes" >&5
10570
 
echo "${ECHO_T}yes" >&6
10571
 
    cat >>confdefs.h <<\_ACEOF
 
5174
    echo "$ac_t""yes" 1>&6
 
5175
    cat >> confdefs.h <<\EOF
10572
5176
#define HAVE_PTC_PTS 1
10573
 
_ACEOF
 
5177
EOF
10574
5178
 
10575
5179
else
10576
 
    echo "$as_me:$LINENO: result: no" >&5
10577
 
echo "${ECHO_T}no" >&6
 
5180
    echo "$ac_t""no" 1>&6
10578
5181
fi
10579
5182
 
10580
 
echo "$as_me:$LINENO: checking for SGI old-style pty allocation" >&5
10581
 
echo $ECHO_N "checking for SGI old-style pty allocation... $ECHO_C" >&6
 
5183
echo $ac_n "checking for SGI old-style pty allocation""... $ac_c" 1>&6
 
5184
echo "configure:5185: checking for SGI old-style pty allocation" >&5
10582
5185
if test -r /dev/ptc -a ! -r /dev/pts ; then
10583
 
    echo "$as_me:$LINENO: result: yes" >&5
10584
 
echo "${ECHO_T}yes" >&6
10585
 
    cat >>confdefs.h <<\_ACEOF
 
5186
    echo "$ac_t""yes" 1>&6
 
5187
    cat >> confdefs.h <<\EOF
10586
5188
#define HAVE_PTC 1
10587
 
_ACEOF
 
5189
EOF
10588
5190
 
10589
5191
else
10590
 
    echo "$as_me:$LINENO: result: no" >&5
10591
 
echo "${ECHO_T}no" >&6
 
5192
    echo "$ac_t""no" 1>&6
10592
5193
fi
10593
5194
 
10594
5195
# On SCO OpenServer, two types of ptys are available: SVR4 streams and c-list.
10596
5197
# the SCO command to increase the number of ptys only configure c-list ones
10597
5198
# anyway.  So we chose these, which have a special numbering scheme.
10598
5199
#
10599
 
echo "$as_me:$LINENO: checking for SCO style pty allocation" >&5
10600
 
echo $ECHO_N "checking for SCO style pty allocation... $ECHO_C" >&6
 
5200
echo $ac_n "checking for SCO style pty allocation""... $ac_c" 1>&6
 
5201
echo "configure:5202: checking for SCO style pty allocation" >&5
10601
5202
sco_ptys=""
10602
5203
case "${host}" in
10603
5204
  *-sco3.2v[45]*)       sco_clist_ptys=1 svr4_ptys_broken=1;;
10604
5205
esac
10605
5206
 
10606
5207
if test x"${sco_clist_ptys}" != x"" ; then
10607
 
  echo "$as_me:$LINENO: result: yes" >&5
10608
 
echo "${ECHO_T}yes" >&6
10609
 
  cat >>confdefs.h <<\_ACEOF
 
5208
  echo "$ac_t""yes" 1>&6
 
5209
  cat >> confdefs.h <<\EOF
10610
5210
#define HAVE_SCO_CLIST_PTYS 1
10611
 
_ACEOF
 
5211
EOF
10612
5212
 
10613
5213
else
10614
 
  echo "$as_me:$LINENO: result: no" >&5
10615
 
echo "${ECHO_T}no" >&6
 
5214
  echo "$ac_t""no" 1>&6
10616
5215
fi
10617
5216
 
10618
 
echo "$as_me:$LINENO: checking for SVR4 style pty allocation" >&5
10619
 
echo $ECHO_N "checking for SVR4 style pty allocation... $ECHO_C" >&6
 
5217
echo $ac_n "checking for SVR4 style pty allocation""... $ac_c" 1>&6
 
5218
echo "configure:5219: checking for SVR4 style pty allocation" >&5
10620
5219
if test -r /dev/ptmx -a "x$svr4_ptys_broken" = x ; then
10621
 
  echo "$as_me:$LINENO: result: yes" >&5
10622
 
echo "${ECHO_T}yes" >&6
10623
 
  cat >>confdefs.h <<\_ACEOF
 
5220
  echo "$ac_t""yes" 1>&6
 
5221
  cat >> confdefs.h <<\EOF
10624
5222
#define HAVE_PTMX 1
10625
 
_ACEOF
 
5223
EOF
10626
5224
 
10627
5225
  # aargg. Some systems need libpt.a to use /dev/ptmx
10628
 
  echo "$as_me:$LINENO: checking for libpts=\"-lpt\" in -lpt" >&5
10629
 
echo $ECHO_N "checking for libpts=\"-lpt\" in -lpt... $ECHO_C" >&6
10630
 
if test "${ac_cv_lib_pt_libpts___lpt_+set}" = set; then
10631
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5226
  echo $ac_n "checking for libpts="-lpt" in -lpt""... $ac_c" 1>&6
 
5227
echo "configure:5228: checking for libpts="-lpt" in -lpt" >&5
 
5228
ac_lib_var=`echo pt'_'libpts="-lpt" | sed 'y%./+-%__p_%'`
 
5229
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
5230
  echo $ac_n "(cached) $ac_c" 1>&6
10632
5231
else
10633
 
  ac_check_lib_save_LIBS=$LIBS
 
5232
  ac_save_LIBS="$LIBS"
10634
5233
LIBS="-lpt  $LIBS"
10635
 
cat >conftest.$ac_ext <<_ACEOF
10636
 
/* confdefs.h.  */
10637
 
_ACEOF
10638
 
cat confdefs.h >>conftest.$ac_ext
10639
 
cat >>conftest.$ac_ext <<_ACEOF
10640
 
/* end confdefs.h.  */
10641
 
 
 
5234
cat > conftest.$ac_ext <<EOF
 
5235
#line 5236 "configure"
 
5236
#include "confdefs.h"
10642
5237
/* Override any gcc2 internal prototype to avoid an error.  */
10643
 
#ifdef __cplusplus
10644
 
extern "C"
10645
 
#endif
10646
5238
/* We use char because int might match the return type of a gcc2
10647
 
   builtin and then its argument prototype would still apply.  */
10648
 
char libpts="-lpt" ();
10649
 
int
10650
 
main ()
10651
 
{
10652
 
libpts="-lpt" ();
10653
 
  ;
10654
 
  return 0;
10655
 
}
10656
 
_ACEOF
10657
 
rm -f conftest.$ac_objext conftest$ac_exeext
10658
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659
 
  (eval $ac_link) 2>conftest.er1
10660
 
  ac_status=$?
10661
 
  grep -v '^ *+' conftest.er1 >conftest.err
10662
 
  rm -f conftest.er1
10663
 
  cat conftest.err >&5
10664
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665
 
  (exit $ac_status); } &&
10666
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10667
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668
 
  (eval $ac_try) 2>&5
10669
 
  ac_status=$?
10670
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671
 
  (exit $ac_status); }; } &&
10672
 
         { ac_try='test -s conftest$ac_exeext'
10673
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674
 
  (eval $ac_try) 2>&5
10675
 
  ac_status=$?
10676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677
 
  (exit $ac_status); }; }; then
10678
 
  ac_cv_lib_pt_libpts___lpt_=yes
 
5239
    builtin and then its argument prototype would still apply.  */
 
5240
char libpts="-lpt"();
 
5241
 
 
5242
int main() {
 
5243
libpts="-lpt"()
 
5244
; return 0; }
 
5245
EOF
 
5246
if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5247
  rm -rf conftest*
 
5248
  eval "ac_cv_lib_$ac_lib_var=yes"
10679
5249
else
10680
 
  echo "$as_me: failed program was:" >&5
10681
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5250
  echo "configure: failed program was:" >&5
 
5251
  cat conftest.$ac_ext >&5
 
5252
  rm -rf conftest*
 
5253
  eval "ac_cv_lib_$ac_lib_var=no"
 
5254
fi
 
5255
rm -f conftest*
 
5256
LIBS="$ac_save_LIBS"
10682
5257
 
10683
 
ac_cv_lib_pt_libpts___lpt_=no
10684
 
fi
10685
 
rm -f conftest.err conftest.$ac_objext \
10686
 
      conftest$ac_exeext conftest.$ac_ext
10687
 
LIBS=$ac_check_lib_save_LIBS
10688
 
fi
10689
 
echo "$as_me:$LINENO: result: $ac_cv_lib_pt_libpts___lpt_" >&5
10690
 
echo "${ECHO_T}$ac_cv_lib_pt_libpts___lpt_" >&6
10691
 
if test $ac_cv_lib_pt_libpts___lpt_ = yes; then
 
5258
fi
 
5259
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
5260
  echo "$ac_t""yes" 1>&6
10692
5261
  libpts=""
 
5262
else
 
5263
  echo "$ac_t""no" 1>&6
10693
5264
fi
10694
5265
 
10695
 
  echo "$as_me:$LINENO: checking for ptsname" >&5
10696
 
echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
10697
 
if test "${ac_cv_func_ptsname+set}" = set; then
10698
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5266
  echo $ac_n "checking for ptsname""... $ac_c" 1>&6
 
5267
echo "configure:5268: checking for ptsname" >&5
 
5268
if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
 
5269
  echo $ac_n "(cached) $ac_c" 1>&6
10699
5270
else
10700
 
  cat >conftest.$ac_ext <<_ACEOF
10701
 
/* confdefs.h.  */
10702
 
_ACEOF
10703
 
cat confdefs.h >>conftest.$ac_ext
10704
 
cat >>conftest.$ac_ext <<_ACEOF
10705
 
/* end confdefs.h.  */
10706
 
/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
10707
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10708
 
#define ptsname innocuous_ptsname
10709
 
 
 
5271
  cat > conftest.$ac_ext <<EOF
 
5272
#line 5273 "configure"
 
5273
#include "confdefs.h"
10710
5274
/* System header to define __stub macros and hopefully few prototypes,
10711
 
    which can conflict with char ptsname (); below.
10712
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713
 
    <limits.h> exists even on freestanding compilers.  */
10714
 
 
10715
 
#ifdef __STDC__
10716
 
# include <limits.h>
10717
 
#else
10718
 
# include <assert.h>
10719
 
#endif
10720
 
 
10721
 
#undef ptsname
10722
 
 
 
5275
    which can conflict with char ptsname(); below.  */
 
5276
#include <assert.h>
10723
5277
/* Override any gcc2 internal prototype to avoid an error.  */
10724
 
#ifdef __cplusplus
10725
 
extern "C"
10726
 
{
10727
 
#endif
10728
5278
/* We use char because int might match the return type of a gcc2
10729
 
   builtin and then its argument prototype would still apply.  */
10730
 
char ptsname ();
 
5279
    builtin and then its argument prototype would still apply.  */
 
5280
char ptsname();
 
5281
 
 
5282
int main() {
 
5283
 
10731
5284
/* The GNU C library defines this for functions which it implements
10732
5285
    to always fail with ENOSYS.  Some functions are actually named
10733
5286
    something starting with __ and the normal name is an alias.  */
10734
5287
#if defined (__stub_ptsname) || defined (__stub___ptsname)
10735
5288
choke me
10736
5289
#else
10737
 
char (*f) () = ptsname;
10738
 
#endif
10739
 
#ifdef __cplusplus
10740
 
}
 
5290
ptsname();
10741
5291
#endif
10742
5292
 
10743
 
int
10744
 
main ()
10745
 
{
10746
 
return f != ptsname;
10747
 
  ;
10748
 
  return 0;
10749
 
}
10750
 
_ACEOF
10751
 
rm -f conftest.$ac_objext conftest$ac_exeext
10752
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753
 
  (eval $ac_link) 2>conftest.er1
10754
 
  ac_status=$?
10755
 
  grep -v '^ *+' conftest.er1 >conftest.err
10756
 
  rm -f conftest.er1
10757
 
  cat conftest.err >&5
10758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759
 
  (exit $ac_status); } &&
10760
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10761
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762
 
  (eval $ac_try) 2>&5
10763
 
  ac_status=$?
10764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765
 
  (exit $ac_status); }; } &&
10766
 
         { ac_try='test -s conftest$ac_exeext'
10767
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768
 
  (eval $ac_try) 2>&5
10769
 
  ac_status=$?
10770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771
 
  (exit $ac_status); }; }; then
10772
 
  ac_cv_func_ptsname=yes
 
5293
; return 0; }
 
5294
EOF
 
5295
if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5296
  rm -rf conftest*
 
5297
  eval "ac_cv_func_ptsname=yes"
10773
5298
else
10774
 
  echo "$as_me: failed program was:" >&5
10775
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5299
  echo "configure: failed program was:" >&5
 
5300
  cat conftest.$ac_ext >&5
 
5301
  rm -rf conftest*
 
5302
  eval "ac_cv_func_ptsname=no"
 
5303
fi
 
5304
rm -f conftest*
 
5305
fi
10776
5306
 
10777
 
ac_cv_func_ptsname=no
10778
 
fi
10779
 
rm -f conftest.err conftest.$ac_objext \
10780
 
      conftest$ac_exeext conftest.$ac_ext
10781
 
fi
10782
 
echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
10783
 
echo "${ECHO_T}$ac_cv_func_ptsname" >&6
10784
 
if test $ac_cv_func_ptsname = yes; then
 
5307
if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
 
5308
  echo "$ac_t""yes" 1>&6
10785
5309
  :
10786
5310
else
10787
 
  LIBS="${LIBS} $libpts"
 
5311
  echo "$ac_t""no" 1>&6
 
5312
LIBS="${LIBS} $libpts"
10788
5313
fi
10789
5314
 
10790
5315
  # I've never seen Tcl or Tk include -lpt so don't bother with explicit test
10791
 
  echo "$as_me:$LINENO: checking for ptsname" >&5
10792
 
echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
10793
 
if test "${ac_cv_func_ptsname+set}" = set; then
10794
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10795
 
else
10796
 
  cat >conftest.$ac_ext <<_ACEOF
10797
 
/* confdefs.h.  */
10798
 
_ACEOF
10799
 
cat confdefs.h >>conftest.$ac_ext
10800
 
cat >>conftest.$ac_ext <<_ACEOF
10801
 
/* end confdefs.h.  */
10802
 
/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
10803
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10804
 
#define ptsname innocuous_ptsname
10805
 
 
10806
 
/* System header to define __stub macros and hopefully few prototypes,
10807
 
    which can conflict with char ptsname (); below.
10808
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809
 
    <limits.h> exists even on freestanding compilers.  */
10810
 
 
10811
 
#ifdef __STDC__
10812
 
# include <limits.h>
10813
 
#else
10814
 
# include <assert.h>
10815
 
#endif
10816
 
 
10817
 
#undef ptsname
10818
 
 
10819
 
/* Override any gcc2 internal prototype to avoid an error.  */
10820
 
#ifdef __cplusplus
10821
 
extern "C"
10822
 
{
10823
 
#endif
10824
 
/* We use char because int might match the return type of a gcc2
10825
 
   builtin and then its argument prototype would still apply.  */
10826
 
char ptsname ();
10827
 
/* The GNU C library defines this for functions which it implements
10828
 
    to always fail with ENOSYS.  Some functions are actually named
10829
 
    something starting with __ and the normal name is an alias.  */
10830
 
#if defined (__stub_ptsname) || defined (__stub___ptsname)
10831
 
choke me
10832
 
#else
10833
 
char (*f) () = ptsname;
10834
 
#endif
10835
 
#ifdef __cplusplus
10836
 
}
10837
 
#endif
10838
 
 
10839
 
int
10840
 
main ()
10841
 
{
10842
 
return f != ptsname;
10843
 
  ;
10844
 
  return 0;
10845
 
}
10846
 
_ACEOF
10847
 
rm -f conftest.$ac_objext conftest$ac_exeext
10848
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849
 
  (eval $ac_link) 2>conftest.er1
10850
 
  ac_status=$?
10851
 
  grep -v '^ *+' conftest.er1 >conftest.err
10852
 
  rm -f conftest.er1
10853
 
  cat conftest.err >&5
10854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855
 
  (exit $ac_status); } &&
10856
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10857
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858
 
  (eval $ac_try) 2>&5
10859
 
  ac_status=$?
10860
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861
 
  (exit $ac_status); }; } &&
10862
 
         { ac_try='test -s conftest$ac_exeext'
10863
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864
 
  (eval $ac_try) 2>&5
10865
 
  ac_status=$?
10866
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867
 
  (exit $ac_status); }; }; then
10868
 
  ac_cv_func_ptsname=yes
10869
 
else
10870
 
  echo "$as_me: failed program was:" >&5
10871
 
sed 's/^/| /' conftest.$ac_ext >&5
10872
 
 
10873
 
ac_cv_func_ptsname=no
10874
 
fi
10875
 
rm -f conftest.err conftest.$ac_objext \
10876
 
      conftest$ac_exeext conftest.$ac_ext
10877
 
fi
10878
 
echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
10879
 
echo "${ECHO_T}$ac_cv_func_ptsname" >&6
10880
 
if test $ac_cv_func_ptsname = yes; then
10881
 
  :
10882
 
else
10883
 
  EXP_AND_TCL_LIBS="${EXP_AND_TCL_LIBS} $libpts"
10884
 
fi
10885
 
 
10886
 
  echo "$as_me:$LINENO: checking for ptsname" >&5
10887
 
echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
10888
 
if test "${ac_cv_func_ptsname+set}" = set; then
10889
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10890
 
else
10891
 
  cat >conftest.$ac_ext <<_ACEOF
10892
 
/* confdefs.h.  */
10893
 
_ACEOF
10894
 
cat confdefs.h >>conftest.$ac_ext
10895
 
cat >>conftest.$ac_ext <<_ACEOF
10896
 
/* end confdefs.h.  */
10897
 
/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
10898
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10899
 
#define ptsname innocuous_ptsname
10900
 
 
10901
 
/* System header to define __stub macros and hopefully few prototypes,
10902
 
    which can conflict with char ptsname (); below.
10903
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10904
 
    <limits.h> exists even on freestanding compilers.  */
10905
 
 
10906
 
#ifdef __STDC__
10907
 
# include <limits.h>
10908
 
#else
10909
 
# include <assert.h>
10910
 
#endif
10911
 
 
10912
 
#undef ptsname
10913
 
 
10914
 
/* Override any gcc2 internal prototype to avoid an error.  */
10915
 
#ifdef __cplusplus
10916
 
extern "C"
10917
 
{
10918
 
#endif
10919
 
/* We use char because int might match the return type of a gcc2
10920
 
   builtin and then its argument prototype would still apply.  */
10921
 
char ptsname ();
10922
 
/* The GNU C library defines this for functions which it implements
10923
 
    to always fail with ENOSYS.  Some functions are actually named
10924
 
    something starting with __ and the normal name is an alias.  */
10925
 
#if defined (__stub_ptsname) || defined (__stub___ptsname)
10926
 
choke me
10927
 
#else
10928
 
char (*f) () = ptsname;
10929
 
#endif
10930
 
#ifdef __cplusplus
10931
 
}
10932
 
#endif
10933
 
 
10934
 
int
10935
 
main ()
10936
 
{
10937
 
return f != ptsname;
10938
 
  ;
10939
 
  return 0;
10940
 
}
10941
 
_ACEOF
10942
 
rm -f conftest.$ac_objext conftest$ac_exeext
10943
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944
 
  (eval $ac_link) 2>conftest.er1
10945
 
  ac_status=$?
10946
 
  grep -v '^ *+' conftest.er1 >conftest.err
10947
 
  rm -f conftest.er1
10948
 
  cat conftest.err >&5
10949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950
 
  (exit $ac_status); } &&
10951
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953
 
  (eval $ac_try) 2>&5
10954
 
  ac_status=$?
10955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956
 
  (exit $ac_status); }; } &&
10957
 
         { ac_try='test -s conftest$ac_exeext'
10958
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959
 
  (eval $ac_try) 2>&5
10960
 
  ac_status=$?
10961
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962
 
  (exit $ac_status); }; }; then
10963
 
  ac_cv_func_ptsname=yes
10964
 
else
10965
 
  echo "$as_me: failed program was:" >&5
10966
 
sed 's/^/| /' conftest.$ac_ext >&5
10967
 
 
10968
 
ac_cv_func_ptsname=no
10969
 
fi
10970
 
rm -f conftest.err conftest.$ac_objext \
10971
 
      conftest$ac_exeext conftest.$ac_ext
10972
 
fi
10973
 
echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
10974
 
echo "${ECHO_T}$ac_cv_func_ptsname" >&6
10975
 
if test $ac_cv_func_ptsname = yes; then
10976
 
  :
10977
 
else
10978
 
  EXP_AND_TK_LIBS="${EXP_AND_TK_LIBS} $libpts"
10979
 
fi
10980
 
 
10981
 
else
10982
 
  echo "$as_me:$LINENO: result: no" >&5
10983
 
echo "${ECHO_T}no" >&6
 
5316
  echo $ac_n "checking for ptsname""... $ac_c" 1>&6
 
5317
echo "configure:5318: checking for ptsname" >&5
 
5318
if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
 
5319
  echo $ac_n "(cached) $ac_c" 1>&6
 
5320
else
 
5321
  cat > conftest.$ac_ext <<EOF
 
5322
#line 5323 "configure"
 
5323
#include "confdefs.h"
 
5324
/* System header to define __stub macros and hopefully few prototypes,
 
5325
    which can conflict with char ptsname(); below.  */
 
5326
#include <assert.h>
 
5327
/* Override any gcc2 internal prototype to avoid an error.  */
 
5328
/* We use char because int might match the return type of a gcc2
 
5329
    builtin and then its argument prototype would still apply.  */
 
5330
char ptsname();
 
5331
 
 
5332
int main() {
 
5333
 
 
5334
/* The GNU C library defines this for functions which it implements
 
5335
    to always fail with ENOSYS.  Some functions are actually named
 
5336
    something starting with __ and the normal name is an alias.  */
 
5337
#if defined (__stub_ptsname) || defined (__stub___ptsname)
 
5338
choke me
 
5339
#else
 
5340
ptsname();
 
5341
#endif
 
5342
 
 
5343
; return 0; }
 
5344
EOF
 
5345
if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5346
  rm -rf conftest*
 
5347
  eval "ac_cv_func_ptsname=yes"
 
5348
else
 
5349
  echo "configure: failed program was:" >&5
 
5350
  cat conftest.$ac_ext >&5
 
5351
  rm -rf conftest*
 
5352
  eval "ac_cv_func_ptsname=no"
 
5353
fi
 
5354
rm -f conftest*
 
5355
fi
 
5356
 
 
5357
if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
 
5358
  echo "$ac_t""yes" 1>&6
 
5359
  :
 
5360
else
 
5361
  echo "$ac_t""no" 1>&6
 
5362
EXP_AND_TCL_LIBS="${EXP_AND_TCL_LIBS} $libpts"
 
5363
fi
 
5364
 
 
5365
  echo $ac_n "checking for ptsname""... $ac_c" 1>&6
 
5366
echo "configure:5367: checking for ptsname" >&5
 
5367
if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
 
5368
  echo $ac_n "(cached) $ac_c" 1>&6
 
5369
else
 
5370
  cat > conftest.$ac_ext <<EOF
 
5371
#line 5372 "configure"
 
5372
#include "confdefs.h"
 
5373
/* System header to define __stub macros and hopefully few prototypes,
 
5374
    which can conflict with char ptsname(); below.  */
 
5375
#include <assert.h>
 
5376
/* Override any gcc2 internal prototype to avoid an error.  */
 
5377
/* We use char because int might match the return type of a gcc2
 
5378
    builtin and then its argument prototype would still apply.  */
 
5379
char ptsname();
 
5380
 
 
5381
int main() {
 
5382
 
 
5383
/* The GNU C library defines this for functions which it implements
 
5384
    to always fail with ENOSYS.  Some functions are actually named
 
5385
    something starting with __ and the normal name is an alias.  */
 
5386
#if defined (__stub_ptsname) || defined (__stub___ptsname)
 
5387
choke me
 
5388
#else
 
5389
ptsname();
 
5390
#endif
 
5391
 
 
5392
; return 0; }
 
5393
EOF
 
5394
if { (eval echo configure:5395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5395
  rm -rf conftest*
 
5396
  eval "ac_cv_func_ptsname=yes"
 
5397
else
 
5398
  echo "configure: failed program was:" >&5
 
5399
  cat conftest.$ac_ext >&5
 
5400
  rm -rf conftest*
 
5401
  eval "ac_cv_func_ptsname=no"
 
5402
fi
 
5403
rm -f conftest*
 
5404
fi
 
5405
 
 
5406
if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
 
5407
  echo "$ac_t""yes" 1>&6
 
5408
  :
 
5409
else
 
5410
  echo "$ac_t""no" 1>&6
 
5411
EXP_AND_TK_LIBS="${EXP_AND_TK_LIBS} $libpts"
 
5412
fi
 
5413
 
 
5414
else
 
5415
  echo "$ac_t""no" 1>&6
10984
5416
fi
10985
5417
 
10986
5418
# In OSF/1 case, SVR4 are somewhat different.
10987
5419
# Gregory Depp <depp@osf.org> 17Aug93
10988
 
echo "$as_me:$LINENO: checking for OSF/1 style pty allocation" >&5
10989
 
echo $ECHO_N "checking for OSF/1 style pty allocation... $ECHO_C" >&6
 
5420
echo $ac_n "checking for OSF/1 style pty allocation""... $ac_c" 1>&6
 
5421
echo "configure:5422: checking for OSF/1 style pty allocation" >&5
10990
5422
if test -r /dev/ptmx_bsd ; then
10991
 
    cat >>confdefs.h <<\_ACEOF
 
5423
    cat >> confdefs.h <<\EOF
10992
5424
#define HAVE_PTMX_BSD 1
10993
 
_ACEOF
 
5425
EOF
10994
5426
 
10995
 
    echo "$as_me:$LINENO: result: yes" >&5
10996
 
echo "${ECHO_T}yes" >&6
 
5427
    echo "$ac_t""yes" 1>&6
10997
5428
else
10998
 
    echo "$as_me:$LINENO: result: no" >&5
10999
 
echo "${ECHO_T}no" >&6
 
5429
    echo "$ac_t""no" 1>&6
11000
5430
fi
11001
5431
 
11002
5432
tcgetattr=0
11003
5433
tcsetattr=0
11004
 
echo "$as_me:$LINENO: checking for tcgetattr" >&5
11005
 
echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
11006
 
if test "${ac_cv_func_tcgetattr+set}" = set; then
11007
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5434
echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
 
5435
echo "configure:5436: checking for tcgetattr" >&5
 
5436
if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
 
5437
  echo $ac_n "(cached) $ac_c" 1>&6
11008
5438
else
11009
 
  cat >conftest.$ac_ext <<_ACEOF
11010
 
/* confdefs.h.  */
11011
 
_ACEOF
11012
 
cat confdefs.h >>conftest.$ac_ext
11013
 
cat >>conftest.$ac_ext <<_ACEOF
11014
 
/* end confdefs.h.  */
11015
 
/* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr.
11016
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11017
 
#define tcgetattr innocuous_tcgetattr
11018
 
 
 
5439
  cat > conftest.$ac_ext <<EOF
 
5440
#line 5441 "configure"
 
5441
#include "confdefs.h"
11019
5442
/* System header to define __stub macros and hopefully few prototypes,
11020
 
    which can conflict with char tcgetattr (); below.
11021
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022
 
    <limits.h> exists even on freestanding compilers.  */
11023
 
 
11024
 
#ifdef __STDC__
11025
 
# include <limits.h>
11026
 
#else
11027
 
# include <assert.h>
11028
 
#endif
11029
 
 
11030
 
#undef tcgetattr
11031
 
 
 
5443
    which can conflict with char tcgetattr(); below.  */
 
5444
#include <assert.h>
11032
5445
/* Override any gcc2 internal prototype to avoid an error.  */
11033
 
#ifdef __cplusplus
11034
 
extern "C"
11035
 
{
11036
 
#endif
11037
5446
/* We use char because int might match the return type of a gcc2
11038
 
   builtin and then its argument prototype would still apply.  */
11039
 
char tcgetattr ();
 
5447
    builtin and then its argument prototype would still apply.  */
 
5448
char tcgetattr();
 
5449
 
 
5450
int main() {
 
5451
 
11040
5452
/* The GNU C library defines this for functions which it implements
11041
5453
    to always fail with ENOSYS.  Some functions are actually named
11042
5454
    something starting with __ and the normal name is an alias.  */
11043
5455
#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
11044
5456
choke me
11045
5457
#else
11046
 
char (*f) () = tcgetattr;
11047
 
#endif
11048
 
#ifdef __cplusplus
11049
 
}
 
5458
tcgetattr();
11050
5459
#endif
11051
5460
 
11052
 
int
11053
 
main ()
11054
 
{
11055
 
return f != tcgetattr;
11056
 
  ;
11057
 
  return 0;
11058
 
}
11059
 
_ACEOF
11060
 
rm -f conftest.$ac_objext conftest$ac_exeext
11061
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062
 
  (eval $ac_link) 2>conftest.er1
11063
 
  ac_status=$?
11064
 
  grep -v '^ *+' conftest.er1 >conftest.err
11065
 
  rm -f conftest.er1
11066
 
  cat conftest.err >&5
11067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068
 
  (exit $ac_status); } &&
11069
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11070
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071
 
  (eval $ac_try) 2>&5
11072
 
  ac_status=$?
11073
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074
 
  (exit $ac_status); }; } &&
11075
 
         { ac_try='test -s conftest$ac_exeext'
11076
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077
 
  (eval $ac_try) 2>&5
11078
 
  ac_status=$?
11079
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080
 
  (exit $ac_status); }; }; then
11081
 
  ac_cv_func_tcgetattr=yes
 
5461
; return 0; }
 
5462
EOF
 
5463
if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5464
  rm -rf conftest*
 
5465
  eval "ac_cv_func_tcgetattr=yes"
11082
5466
else
11083
 
  echo "$as_me: failed program was:" >&5
11084
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5467
  echo "configure: failed program was:" >&5
 
5468
  cat conftest.$ac_ext >&5
 
5469
  rm -rf conftest*
 
5470
  eval "ac_cv_func_tcgetattr=no"
 
5471
fi
 
5472
rm -f conftest*
 
5473
fi
11085
5474
 
11086
 
ac_cv_func_tcgetattr=no
11087
 
fi
11088
 
rm -f conftest.err conftest.$ac_objext \
11089
 
      conftest$ac_exeext conftest.$ac_ext
11090
 
fi
11091
 
echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
11092
 
echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6
11093
 
if test $ac_cv_func_tcgetattr = yes; then
 
5475
if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
 
5476
  echo "$ac_t""yes" 1>&6
11094
5477
  tcgetattr=1
 
5478
else
 
5479
  echo "$ac_t""no" 1>&6
11095
5480
fi
11096
5481
 
11097
 
echo "$as_me:$LINENO: checking for tcsetattr" >&5
11098
 
echo $ECHO_N "checking for tcsetattr... $ECHO_C" >&6
11099
 
if test "${ac_cv_func_tcsetattr+set}" = set; then
11100
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5482
echo $ac_n "checking for tcsetattr""... $ac_c" 1>&6
 
5483
echo "configure:5484: checking for tcsetattr" >&5
 
5484
if eval "test \"`echo '$''{'ac_cv_func_tcsetattr'+set}'`\" = set"; then
 
5485
  echo $ac_n "(cached) $ac_c" 1>&6
11101
5486
else
11102
 
  cat >conftest.$ac_ext <<_ACEOF
11103
 
/* confdefs.h.  */
11104
 
_ACEOF
11105
 
cat confdefs.h >>conftest.$ac_ext
11106
 
cat >>conftest.$ac_ext <<_ACEOF
11107
 
/* end confdefs.h.  */
11108
 
/* Define tcsetattr to an innocuous variant, in case <limits.h> declares tcsetattr.
11109
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11110
 
#define tcsetattr innocuous_tcsetattr
11111
 
 
 
5487
  cat > conftest.$ac_ext <<EOF
 
5488
#line 5489 "configure"
 
5489
#include "confdefs.h"
11112
5490
/* System header to define __stub macros and hopefully few prototypes,
11113
 
    which can conflict with char tcsetattr (); below.
11114
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115
 
    <limits.h> exists even on freestanding compilers.  */
11116
 
 
11117
 
#ifdef __STDC__
11118
 
# include <limits.h>
11119
 
#else
11120
 
# include <assert.h>
11121
 
#endif
11122
 
 
11123
 
#undef tcsetattr
11124
 
 
 
5491
    which can conflict with char tcsetattr(); below.  */
 
5492
#include <assert.h>
11125
5493
/* Override any gcc2 internal prototype to avoid an error.  */
11126
 
#ifdef __cplusplus
11127
 
extern "C"
11128
 
{
11129
 
#endif
11130
5494
/* We use char because int might match the return type of a gcc2
11131
 
   builtin and then its argument prototype would still apply.  */
11132
 
char tcsetattr ();
 
5495
    builtin and then its argument prototype would still apply.  */
 
5496
char tcsetattr();
 
5497
 
 
5498
int main() {
 
5499
 
11133
5500
/* The GNU C library defines this for functions which it implements
11134
5501
    to always fail with ENOSYS.  Some functions are actually named
11135
5502
    something starting with __ and the normal name is an alias.  */
11136
5503
#if defined (__stub_tcsetattr) || defined (__stub___tcsetattr)
11137
5504
choke me
11138
5505
#else
11139
 
char (*f) () = tcsetattr;
11140
 
#endif
11141
 
#ifdef __cplusplus
11142
 
}
 
5506
tcsetattr();
11143
5507
#endif
11144
5508
 
11145
 
int
11146
 
main ()
11147
 
{
11148
 
return f != tcsetattr;
11149
 
  ;
11150
 
  return 0;
11151
 
}
11152
 
_ACEOF
11153
 
rm -f conftest.$ac_objext conftest$ac_exeext
11154
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155
 
  (eval $ac_link) 2>conftest.er1
11156
 
  ac_status=$?
11157
 
  grep -v '^ *+' conftest.er1 >conftest.err
11158
 
  rm -f conftest.er1
11159
 
  cat conftest.err >&5
11160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161
 
  (exit $ac_status); } &&
11162
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164
 
  (eval $ac_try) 2>&5
11165
 
  ac_status=$?
11166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167
 
  (exit $ac_status); }; } &&
11168
 
         { ac_try='test -s conftest$ac_exeext'
11169
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170
 
  (eval $ac_try) 2>&5
11171
 
  ac_status=$?
11172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173
 
  (exit $ac_status); }; }; then
11174
 
  ac_cv_func_tcsetattr=yes
 
5509
; return 0; }
 
5510
EOF
 
5511
if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5512
  rm -rf conftest*
 
5513
  eval "ac_cv_func_tcsetattr=yes"
11175
5514
else
11176
 
  echo "$as_me: failed program was:" >&5
11177
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5515
  echo "configure: failed program was:" >&5
 
5516
  cat conftest.$ac_ext >&5
 
5517
  rm -rf conftest*
 
5518
  eval "ac_cv_func_tcsetattr=no"
 
5519
fi
 
5520
rm -f conftest*
 
5521
fi
11178
5522
 
11179
 
ac_cv_func_tcsetattr=no
11180
 
fi
11181
 
rm -f conftest.err conftest.$ac_objext \
11182
 
      conftest$ac_exeext conftest.$ac_ext
11183
 
fi
11184
 
echo "$as_me:$LINENO: result: $ac_cv_func_tcsetattr" >&5
11185
 
echo "${ECHO_T}$ac_cv_func_tcsetattr" >&6
11186
 
if test $ac_cv_func_tcsetattr = yes; then
 
5523
if eval "test \"`echo '$ac_cv_func_'tcsetattr`\" = yes"; then
 
5524
  echo "$ac_t""yes" 1>&6
11187
5525
  tcsetattr=1
 
5526
else
 
5527
  echo "$ac_t""no" 1>&6
11188
5528
fi
11189
5529
 
11190
5530
if test $tcgetattr -eq 1 -a $tcsetattr -eq 1 ; then
11191
 
    cat >>confdefs.h <<\_ACEOF
 
5531
    cat >> confdefs.h <<\EOF
11192
5532
#define HAVE_TCSETATTR 1
11193
 
_ACEOF
 
5533
EOF
11194
5534
 
11195
 
    cat >>confdefs.h <<\_ACEOF
 
5535
    cat >> confdefs.h <<\EOF
11196
5536
#define POSIX 1
11197
 
_ACEOF
 
5537
EOF
11198
5538
 
11199
5539
fi
11200
5540
 
11201
5541
# first check for the pure bsd
11202
 
echo "$as_me:$LINENO: checking for struct sgttyb" >&5
11203
 
echo $ECHO_N "checking for struct sgttyb... $ECHO_C" >&6
 
5542
echo $ac_n "checking for struct sgttyb""... $ac_c" 1>&6
 
5543
echo "configure:5544: checking for struct sgttyb" >&5
11204
5544
if test "$cross_compiling" = yes; then
11205
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11206
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11207
 
   { (exit 1); exit 1; }; }
 
5545
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
11208
5546
 
11209
5547
else
11210
 
  cat >conftest.$ac_ext <<_ACEOF
11211
 
/* confdefs.h.  */
11212
 
_ACEOF
11213
 
cat confdefs.h >>conftest.$ac_ext
11214
 
cat >>conftest.$ac_ext <<_ACEOF
11215
 
/* end confdefs.h.  */
 
5548
  cat > conftest.$ac_ext <<EOF
 
5549
#line 5550 "configure"
 
5550
#include "confdefs.h"
11216
5551
 
11217
5552
#include <sgtty.h>
11218
5553
main()
11220
5555
  struct sgttyb tmp;
11221
5556
  exit(0);
11222
5557
}
11223
 
_ACEOF
11224
 
rm -f conftest$ac_exeext
11225
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226
 
  (eval $ac_link) 2>&5
11227
 
  ac_status=$?
11228
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11230
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231
 
  (eval $ac_try) 2>&5
11232
 
  ac_status=$?
11233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234
 
  (exit $ac_status); }; }; then
11235
 
  echo "$as_me:$LINENO: result: yes" >&5
11236
 
echo "${ECHO_T}yes" >&6
11237
 
        cat >>confdefs.h <<\_ACEOF
 
5558
EOF
 
5559
if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5560
then
 
5561
  echo "$ac_t""yes" 1>&6
 
5562
        cat >> confdefs.h <<\EOF
11238
5563
#define HAVE_SGTTYB 1
11239
 
_ACEOF
 
5564
EOF
11240
5565
 
11241
5566
        PTY_TYPE=sgttyb
11242
5567
 
11243
5568
else
11244
 
  echo "$as_me: program exited with status $ac_status" >&5
11245
 
echo "$as_me: failed program was:" >&5
11246
 
sed 's/^/| /' conftest.$ac_ext >&5
11247
 
 
11248
 
( exit $ac_status )
11249
 
echo "$as_me:$LINENO: result: no" >&5
11250
 
echo "${ECHO_T}no" >&6
11251
 
 
11252
 
fi
11253
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11254
 
fi
 
5569
  echo "configure: failed program was:" >&5
 
5570
  cat conftest.$ac_ext >&5
 
5571
  rm -fr conftest*
 
5572
  echo "$ac_t""no" 1>&6
 
5573
 
 
5574
fi
 
5575
rm -fr conftest*
 
5576
fi
 
5577
 
11255
5578
 
11256
5579
# mach systems have include files for unimplemented features
11257
5580
# so avoid doing following test on those systems
11261
5584
  # note that if we detect termio.h (only), we still set PTY_TYPE=termios
11262
5585
  # since that just controls which of pty_XXXX.c file is use and
11263
5586
  # pty_termios.c is set up to handle pty_termio.
11264
 
  echo "$as_me:$LINENO: checking for struct termio" >&5
11265
 
echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
 
5587
  echo $ac_n "checking for struct termio""... $ac_c" 1>&6
 
5588
echo "configure:5589: checking for struct termio" >&5
11266
5589
  if test "$cross_compiling" = yes; then
11267
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11268
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11269
 
   { (exit 1); exit 1; }; }
 
5590
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
11270
5591
 
11271
5592
else
11272
 
  cat >conftest.$ac_ext <<_ACEOF
11273
 
/* confdefs.h.  */
11274
 
_ACEOF
11275
 
cat confdefs.h >>conftest.$ac_ext
11276
 
cat >>conftest.$ac_ext <<_ACEOF
11277
 
/* end confdefs.h.  */
 
5593
  cat > conftest.$ac_ext <<EOF
 
5594
#line 5595 "configure"
 
5595
#include "confdefs.h"
11278
5596
#include <termio.h>
11279
5597
  main()
11280
5598
  {
11281
5599
    struct termio tmp;
11282
5600
    exit(0);
11283
5601
  }
11284
 
_ACEOF
11285
 
rm -f conftest$ac_exeext
11286
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287
 
  (eval $ac_link) 2>&5
11288
 
  ac_status=$?
11289
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11291
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292
 
  (eval $ac_try) 2>&5
11293
 
  ac_status=$?
11294
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295
 
  (exit $ac_status); }; }; then
11296
 
  cat >>confdefs.h <<\_ACEOF
 
5602
EOF
 
5603
if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5604
then
 
5605
  cat >> confdefs.h <<\EOF
11297
5606
#define HAVE_TERMIO 1
11298
 
_ACEOF
 
5607
EOF
11299
5608
 
11300
5609
        PTY_TYPE=termios
11301
 
        echo "$as_me:$LINENO: result: yes" >&5
11302
 
echo "${ECHO_T}yes" >&6
 
5610
        echo "$ac_t""yes" 1>&6
11303
5611
 
11304
5612
else
11305
 
  echo "$as_me: program exited with status $ac_status" >&5
11306
 
echo "$as_me: failed program was:" >&5
11307
 
sed 's/^/| /' conftest.$ac_ext >&5
11308
 
 
11309
 
( exit $ac_status )
11310
 
echo "$as_me:$LINENO: result: no" >&5
11311
 
echo "${ECHO_T}no" >&6
11312
 
 
11313
 
fi
11314
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11315
 
fi
 
5613
  echo "configure: failed program was:" >&5
 
5614
  cat conftest.$ac_ext >&5
 
5615
  rm -fr conftest*
 
5616
  echo "$ac_t""no" 1>&6
 
5617
 
 
5618
fi
 
5619
rm -fr conftest*
 
5620
fi
 
5621
 
11316
5622
 
11317
5623
  # now check for the new style ttys (not yet posix)
11318
 
  echo "$as_me:$LINENO: checking for struct termios" >&5
11319
 
echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
 
5624
  echo $ac_n "checking for struct termios""... $ac_c" 1>&6
 
5625
echo "configure:5626: checking for struct termios" >&5
11320
5626
  if test "$cross_compiling" = yes; then
11321
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11322
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11323
 
   { (exit 1); exit 1; }; }
11324
 
 
 
5627
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
 
5628
  
11325
5629
else
11326
 
  cat >conftest.$ac_ext <<_ACEOF
11327
 
/* confdefs.h.  */
11328
 
_ACEOF
11329
 
cat confdefs.h >>conftest.$ac_ext
11330
 
cat >>conftest.$ac_ext <<_ACEOF
11331
 
/* end confdefs.h.  */
 
5630
  cat > conftest.$ac_ext <<EOF
 
5631
#line 5632 "configure"
 
5632
#include "confdefs.h"
11332
5633
 
11333
5634
  /* including termios.h on Solaris 5.6 fails unless inttypes.h included */
11334
5635
#  ifdef HAVE_INTTYPES_H
11340
5641
    struct termios tmp;
11341
5642
    exit(0);
11342
5643
  }
11343
 
_ACEOF
11344
 
rm -f conftest$ac_exeext
11345
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346
 
  (eval $ac_link) 2>&5
11347
 
  ac_status=$?
11348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11350
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351
 
  (eval $ac_try) 2>&5
11352
 
  ac_status=$?
11353
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354
 
  (exit $ac_status); }; }; then
11355
 
  cat >>confdefs.h <<\_ACEOF
 
5644
EOF
 
5645
if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5646
then
 
5647
  cat >> confdefs.h <<\EOF
11356
5648
#define HAVE_TERMIOS 1
11357
 
_ACEOF
 
5649
EOF
11358
5650
 
11359
5651
        PTY_TYPE=termios
11360
 
        echo "$as_me:$LINENO: result: yes" >&5
11361
 
echo "${ECHO_T}yes" >&6
11362
 
 
 
5652
        echo "$ac_t""yes" 1>&6
 
5653
  
11363
5654
else
11364
 
  echo "$as_me: program exited with status $ac_status" >&5
11365
 
echo "$as_me: failed program was:" >&5
11366
 
sed 's/^/| /' conftest.$ac_ext >&5
11367
 
 
11368
 
( exit $ac_status )
11369
 
echo "$as_me:$LINENO: result: no" >&5
11370
 
echo "${ECHO_T}no" >&6
11371
 
 
11372
 
fi
11373
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11374
 
fi
11375
 
fi
11376
 
 
11377
 
echo "$as_me:$LINENO: checking if TCGETS or TCGETA in termios.h" >&5
11378
 
echo $ECHO_N "checking if TCGETS or TCGETA in termios.h... $ECHO_C" >&6
 
5655
  echo "configure: failed program was:" >&5
 
5656
  cat conftest.$ac_ext >&5
 
5657
  rm -fr conftest*
 
5658
  echo "$ac_t""no" 1>&6
 
5659
  
 
5660
fi
 
5661
rm -fr conftest*
 
5662
fi
 
5663
 
 
5664
fi
 
5665
 
 
5666
echo $ac_n "checking if TCGETS or TCGETA in termios.h""... $ac_c" 1>&6
 
5667
echo "configure:5668: checking if TCGETS or TCGETA in termios.h" >&5
11379
5668
if test "$cross_compiling" = yes; then
11380
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11381
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11382
 
   { (exit 1); exit 1; }; }
 
5669
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
11383
5670
 
11384
5671
else
11385
 
  cat >conftest.$ac_ext <<_ACEOF
11386
 
/* confdefs.h.  */
11387
 
_ACEOF
11388
 
cat confdefs.h >>conftest.$ac_ext
11389
 
cat >>conftest.$ac_ext <<_ACEOF
11390
 
/* end confdefs.h.  */
 
5672
  cat > conftest.$ac_ext <<EOF
 
5673
#line 5674 "configure"
 
5674
#include "confdefs.h"
11391
5675
 
11392
5676
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
11393
5677
#ifdef HAVE_INTTYPES_H
11401
5685
        return 1;
11402
5686
#endif
11403
5687
}
11404
 
_ACEOF
11405
 
rm -f conftest$ac_exeext
11406
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11407
 
  (eval $ac_link) 2>&5
11408
 
  ac_status=$?
11409
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11411
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412
 
  (eval $ac_try) 2>&5
11413
 
  ac_status=$?
11414
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415
 
  (exit $ac_status); }; }; then
11416
 
  cat >>confdefs.h <<\_ACEOF
 
5688
EOF
 
5689
if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5690
then
 
5691
  cat >> confdefs.h <<\EOF
11417
5692
#define HAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H 1
11418
 
_ACEOF
 
5693
EOF
11419
5694
 
11420
 
        echo "$as_me:$LINENO: result: yes" >&5
11421
 
echo "${ECHO_T}yes" >&6
 
5695
        echo "$ac_t""yes" 1>&6
11422
5696
 
11423
5697
else
11424
 
  echo "$as_me: program exited with status $ac_status" >&5
11425
 
echo "$as_me: failed program was:" >&5
11426
 
sed 's/^/| /' conftest.$ac_ext >&5
11427
 
 
11428
 
( exit $ac_status )
11429
 
echo "$as_me:$LINENO: result: no" >&5
11430
 
echo "${ECHO_T}no" >&6
11431
 
 
11432
 
fi
11433
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11434
 
fi
11435
 
 
11436
 
echo "$as_me:$LINENO: checking if TIOCGWINSZ in termios.h" >&5
11437
 
echo $ECHO_N "checking if TIOCGWINSZ in termios.h... $ECHO_C" >&6
 
5698
  echo "configure: failed program was:" >&5
 
5699
  cat conftest.$ac_ext >&5
 
5700
  rm -fr conftest*
 
5701
  echo "$ac_t""no" 1>&6
 
5702
 
 
5703
fi
 
5704
rm -fr conftest*
 
5705
fi
 
5706
 
 
5707
 
 
5708
echo $ac_n "checking if TIOCGWINSZ in termios.h""... $ac_c" 1>&6
 
5709
echo "configure:5710: checking if TIOCGWINSZ in termios.h" >&5
11438
5710
if test "$cross_compiling" = yes; then
11439
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11440
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11441
 
   { (exit 1); exit 1; }; }
 
5711
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
11442
5712
 
11443
5713
else
11444
 
  cat >conftest.$ac_ext <<_ACEOF
11445
 
/* confdefs.h.  */
11446
 
_ACEOF
11447
 
cat confdefs.h >>conftest.$ac_ext
11448
 
cat >>conftest.$ac_ext <<_ACEOF
11449
 
/* end confdefs.h.  */
 
5714
  cat > conftest.$ac_ext <<EOF
 
5715
#line 5716 "configure"
 
5716
#include "confdefs.h"
11450
5717
 
11451
5718
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
11452
5719
#ifdef HAVE_INTTYPES_H
11460
5727
        return 1;
11461
5728
#endif
11462
5729
}
11463
 
_ACEOF
11464
 
rm -f conftest$ac_exeext
11465
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11466
 
  (eval $ac_link) 2>&5
11467
 
  ac_status=$?
11468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11470
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471
 
  (eval $ac_try) 2>&5
11472
 
  ac_status=$?
11473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474
 
  (exit $ac_status); }; }; then
11475
 
  cat >>confdefs.h <<\_ACEOF
 
5730
EOF
 
5731
if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5732
then
 
5733
  cat >> confdefs.h <<\EOF
11476
5734
#define HAVE_TIOCGWINSZ_IN_TERMIOS_H 1
11477
 
_ACEOF
 
5735
EOF
11478
5736
 
11479
 
        echo "$as_me:$LINENO: result: yes" >&5
11480
 
echo "${ECHO_T}yes" >&6
 
5737
        echo "$ac_t""yes" 1>&6
11481
5738
 
11482
5739
else
11483
 
  echo "$as_me: program exited with status $ac_status" >&5
11484
 
echo "$as_me: failed program was:" >&5
11485
 
sed 's/^/| /' conftest.$ac_ext >&5
11486
 
 
11487
 
( exit $ac_status )
11488
 
echo "$as_me:$LINENO: result: no" >&5
11489
 
echo "${ECHO_T}no" >&6
11490
 
 
11491
 
fi
11492
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11493
 
fi
 
5740
  echo "configure: failed program was:" >&5
 
5741
  cat conftest.$ac_ext >&5
 
5742
  rm -fr conftest*
 
5743
  echo "$ac_t""no" 1>&6
 
5744
 
 
5745
fi
 
5746
rm -fr conftest*
 
5747
fi
 
5748
 
11494
5749
 
11495
5750
# finally check for Cray style ttys
11496
 
echo "$as_me:$LINENO: checking for Cray-style ptys" >&5
11497
 
echo $ECHO_N "checking for Cray-style ptys... $ECHO_C" >&6
 
5751
echo $ac_n "checking for Cray-style ptys""... $ac_c" 1>&6
 
5752
echo "configure:5753: checking for Cray-style ptys" >&5
11498
5753
SETUID=":"
11499
5754
if test "$cross_compiling" = yes; then
11500
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
11501
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
11502
 
   { (exit 1); exit 1; }; }
 
5755
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
11503
5756
 
11504
5757
else
11505
 
  cat >conftest.$ac_ext <<_ACEOF
11506
 
/* confdefs.h.  */
11507
 
_ACEOF
11508
 
cat confdefs.h >>conftest.$ac_ext
11509
 
cat >>conftest.$ac_ext <<_ACEOF
11510
 
/* end confdefs.h.  */
 
5758
  cat > conftest.$ac_ext <<EOF
 
5759
#line 5760 "configure"
 
5760
#include "confdefs.h"
11511
5761
 
11512
5762
main(){
11513
5763
#ifdef CRAY
11517
5767
#endif
11518
5768
}
11519
5769
 
11520
 
_ACEOF
11521
 
rm -f conftest$ac_exeext
11522
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523
 
  (eval $ac_link) 2>&5
11524
 
  ac_status=$?
11525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528
 
  (eval $ac_try) 2>&5
11529
 
  ac_status=$?
11530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531
 
  (exit $ac_status); }; }; then
 
5770
EOF
 
5771
if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5772
then
11532
5773
  PTY_TYPE=unicos
11533
5774
        SETUID="chmod u+s"
11534
 
        echo "$as_me:$LINENO: result: yes" >&5
11535
 
echo "${ECHO_T}yes" >&6
 
5775
        echo "$ac_t""yes" 1>&6
11536
5776
 
11537
5777
else
11538
 
  echo "$as_me: program exited with status $ac_status" >&5
11539
 
echo "$as_me: failed program was:" >&5
11540
 
sed 's/^/| /' conftest.$ac_ext >&5
11541
 
 
11542
 
( exit $ac_status )
11543
 
echo "$as_me:$LINENO: result: no" >&5
11544
 
echo "${ECHO_T}no" >&6
11545
 
 
11546
 
fi
11547
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11548
 
fi
 
5778
  echo "configure: failed program was:" >&5
 
5779
  cat conftest.$ac_ext >&5
 
5780
  rm -fr conftest*
 
5781
  echo "$ac_t""no" 1>&6
 
5782
 
 
5783
fi
 
5784
rm -fr conftest*
 
5785
fi
 
5786
 
11549
5787
 
11550
5788
#
11551
5789
# Check for select and/or poll. If both exist, we prefer select.
11554
5792
select=0
11555
5793
poll=0
11556
5794
unset ac_cv_func_select
11557
 
echo "$as_me:$LINENO: checking for select" >&5
11558
 
echo $ECHO_N "checking for select... $ECHO_C" >&6
11559
 
if test "${ac_cv_func_select+set}" = set; then
11560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5795
echo $ac_n "checking for select""... $ac_c" 1>&6
 
5796
echo "configure:5797: checking for select" >&5
 
5797
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
 
5798
  echo $ac_n "(cached) $ac_c" 1>&6
11561
5799
else
11562
 
  cat >conftest.$ac_ext <<_ACEOF
11563
 
/* confdefs.h.  */
11564
 
_ACEOF
11565
 
cat confdefs.h >>conftest.$ac_ext
11566
 
cat >>conftest.$ac_ext <<_ACEOF
11567
 
/* end confdefs.h.  */
11568
 
/* Define select to an innocuous variant, in case <limits.h> declares select.
11569
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11570
 
#define select innocuous_select
11571
 
 
 
5800
  cat > conftest.$ac_ext <<EOF
 
5801
#line 5802 "configure"
 
5802
#include "confdefs.h"
11572
5803
/* System header to define __stub macros and hopefully few prototypes,
11573
 
    which can conflict with char select (); below.
11574
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11575
 
    <limits.h> exists even on freestanding compilers.  */
11576
 
 
11577
 
#ifdef __STDC__
11578
 
# include <limits.h>
11579
 
#else
11580
 
# include <assert.h>
11581
 
#endif
11582
 
 
11583
 
#undef select
11584
 
 
 
5804
    which can conflict with char select(); below.  */
 
5805
#include <assert.h>
11585
5806
/* Override any gcc2 internal prototype to avoid an error.  */
11586
 
#ifdef __cplusplus
11587
 
extern "C"
11588
 
{
11589
 
#endif
11590
5807
/* We use char because int might match the return type of a gcc2
11591
 
   builtin and then its argument prototype would still apply.  */
11592
 
char select ();
 
5808
    builtin and then its argument prototype would still apply.  */
 
5809
char select();
 
5810
 
 
5811
int main() {
 
5812
 
11593
5813
/* The GNU C library defines this for functions which it implements
11594
5814
    to always fail with ENOSYS.  Some functions are actually named
11595
5815
    something starting with __ and the normal name is an alias.  */
11596
5816
#if defined (__stub_select) || defined (__stub___select)
11597
5817
choke me
11598
5818
#else
11599
 
char (*f) () = select;
11600
 
#endif
11601
 
#ifdef __cplusplus
11602
 
}
 
5819
select();
11603
5820
#endif
11604
5821
 
11605
 
int
11606
 
main ()
11607
 
{
11608
 
return f != select;
11609
 
  ;
11610
 
  return 0;
11611
 
}
11612
 
_ACEOF
11613
 
rm -f conftest.$ac_objext conftest$ac_exeext
11614
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11615
 
  (eval $ac_link) 2>conftest.er1
11616
 
  ac_status=$?
11617
 
  grep -v '^ *+' conftest.er1 >conftest.err
11618
 
  rm -f conftest.er1
11619
 
  cat conftest.err >&5
11620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621
 
  (exit $ac_status); } &&
11622
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11623
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624
 
  (eval $ac_try) 2>&5
11625
 
  ac_status=$?
11626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627
 
  (exit $ac_status); }; } &&
11628
 
         { ac_try='test -s conftest$ac_exeext'
11629
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630
 
  (eval $ac_try) 2>&5
11631
 
  ac_status=$?
11632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633
 
  (exit $ac_status); }; }; then
11634
 
  ac_cv_func_select=yes
 
5822
; return 0; }
 
5823
EOF
 
5824
if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5825
  rm -rf conftest*
 
5826
  eval "ac_cv_func_select=yes"
11635
5827
else
11636
 
  echo "$as_me: failed program was:" >&5
11637
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5828
  echo "configure: failed program was:" >&5
 
5829
  cat conftest.$ac_ext >&5
 
5830
  rm -rf conftest*
 
5831
  eval "ac_cv_func_select=no"
 
5832
fi
 
5833
rm -f conftest*
 
5834
fi
11638
5835
 
11639
 
ac_cv_func_select=no
11640
 
fi
11641
 
rm -f conftest.err conftest.$ac_objext \
11642
 
      conftest$ac_exeext conftest.$ac_ext
11643
 
fi
11644
 
echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
11645
 
echo "${ECHO_T}$ac_cv_func_select" >&6
11646
 
if test $ac_cv_func_select = yes; then
 
5836
if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
 
5837
  echo "$ac_t""yes" 1>&6
11647
5838
  select=1
 
5839
else
 
5840
  echo "$ac_t""no" 1>&6
11648
5841
fi
11649
5842
 
11650
 
echo "$as_me:$LINENO: checking for poll" >&5
11651
 
echo $ECHO_N "checking for poll... $ECHO_C" >&6
11652
 
if test "${ac_cv_func_poll+set}" = set; then
11653
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5843
echo $ac_n "checking for poll""... $ac_c" 1>&6
 
5844
echo "configure:5845: checking for poll" >&5
 
5845
if eval "test \"`echo '$''{'ac_cv_func_poll'+set}'`\" = set"; then
 
5846
  echo $ac_n "(cached) $ac_c" 1>&6
11654
5847
else
11655
 
  cat >conftest.$ac_ext <<_ACEOF
11656
 
/* confdefs.h.  */
11657
 
_ACEOF
11658
 
cat confdefs.h >>conftest.$ac_ext
11659
 
cat >>conftest.$ac_ext <<_ACEOF
11660
 
/* end confdefs.h.  */
11661
 
/* Define poll to an innocuous variant, in case <limits.h> declares poll.
11662
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11663
 
#define poll innocuous_poll
11664
 
 
 
5848
  cat > conftest.$ac_ext <<EOF
 
5849
#line 5850 "configure"
 
5850
#include "confdefs.h"
11665
5851
/* System header to define __stub macros and hopefully few prototypes,
11666
 
    which can conflict with char poll (); below.
11667
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11668
 
    <limits.h> exists even on freestanding compilers.  */
11669
 
 
11670
 
#ifdef __STDC__
11671
 
# include <limits.h>
11672
 
#else
11673
 
# include <assert.h>
11674
 
#endif
11675
 
 
11676
 
#undef poll
11677
 
 
 
5852
    which can conflict with char poll(); below.  */
 
5853
#include <assert.h>
11678
5854
/* Override any gcc2 internal prototype to avoid an error.  */
11679
 
#ifdef __cplusplus
11680
 
extern "C"
11681
 
{
11682
 
#endif
11683
5855
/* We use char because int might match the return type of a gcc2
11684
 
   builtin and then its argument prototype would still apply.  */
11685
 
char poll ();
 
5856
    builtin and then its argument prototype would still apply.  */
 
5857
char poll();
 
5858
 
 
5859
int main() {
 
5860
 
11686
5861
/* The GNU C library defines this for functions which it implements
11687
5862
    to always fail with ENOSYS.  Some functions are actually named
11688
5863
    something starting with __ and the normal name is an alias.  */
11689
5864
#if defined (__stub_poll) || defined (__stub___poll)
11690
5865
choke me
11691
5866
#else
11692
 
char (*f) () = poll;
11693
 
#endif
11694
 
#ifdef __cplusplus
11695
 
}
 
5867
poll();
11696
5868
#endif
11697
5869
 
11698
 
int
11699
 
main ()
11700
 
{
11701
 
return f != poll;
11702
 
  ;
11703
 
  return 0;
11704
 
}
11705
 
_ACEOF
11706
 
rm -f conftest.$ac_objext conftest$ac_exeext
11707
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708
 
  (eval $ac_link) 2>conftest.er1
11709
 
  ac_status=$?
11710
 
  grep -v '^ *+' conftest.er1 >conftest.err
11711
 
  rm -f conftest.er1
11712
 
  cat conftest.err >&5
11713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714
 
  (exit $ac_status); } &&
11715
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11716
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717
 
  (eval $ac_try) 2>&5
11718
 
  ac_status=$?
11719
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720
 
  (exit $ac_status); }; } &&
11721
 
         { ac_try='test -s conftest$ac_exeext'
11722
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723
 
  (eval $ac_try) 2>&5
11724
 
  ac_status=$?
11725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726
 
  (exit $ac_status); }; }; then
11727
 
  ac_cv_func_poll=yes
 
5870
; return 0; }
 
5871
EOF
 
5872
if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5873
  rm -rf conftest*
 
5874
  eval "ac_cv_func_poll=yes"
11728
5875
else
11729
 
  echo "$as_me: failed program was:" >&5
11730
 
sed 's/^/| /' conftest.$ac_ext >&5
 
5876
  echo "configure: failed program was:" >&5
 
5877
  cat conftest.$ac_ext >&5
 
5878
  rm -rf conftest*
 
5879
  eval "ac_cv_func_poll=no"
 
5880
fi
 
5881
rm -f conftest*
 
5882
fi
11731
5883
 
11732
 
ac_cv_func_poll=no
11733
 
fi
11734
 
rm -f conftest.err conftest.$ac_objext \
11735
 
      conftest$ac_exeext conftest.$ac_ext
11736
 
fi
11737
 
echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
11738
 
echo "${ECHO_T}$ac_cv_func_poll" >&6
11739
 
if test $ac_cv_func_poll = yes; then
 
5884
if eval "test \"`echo '$ac_cv_func_'poll`\" = yes"; then
 
5885
  echo "$ac_t""yes" 1>&6
11740
5886
  poll=1
 
5887
else
 
5888
  echo "$ac_t""no" 1>&6
11741
5889
fi
11742
5890
 
11743
 
echo "$as_me:$LINENO: checking event handling" >&5
11744
 
echo $ECHO_N "checking event handling... $ECHO_C" >&6
 
5891
echo $ac_n "checking event handling""... $ac_c" 1>&6
 
5892
echo "configure:5893: checking event handling" >&5
11745
5893
if test $select -eq 1 ; then
11746
5894
  EVENT_TYPE=select
11747
5895
  EVENT_ABLE=event
11748
 
  echo "$as_me:$LINENO: result: via select" >&5
11749
 
echo "${ECHO_T}via select" >&6
 
5896
  echo "$ac_t""via select" 1>&6
11750
5897
elif test $poll -eq 1 ; then
11751
5898
  EVENT_TYPE=poll
11752
5899
  EVENT_ABLE=event
11753
 
  echo "$as_me:$LINENO: result: via poll" >&5
11754
 
echo "${ECHO_T}via poll" >&6
 
5900
  echo "$ac_t""via poll" 1>&6
11755
5901
else
11756
5902
  EVENT_TYPE=simple
11757
5903
  EVENT_ABLE=noevent
11758
 
  echo "$as_me:$LINENO: result: none" >&5
11759
 
echo "${ECHO_T}none" >&6
11760
 
  cat >>confdefs.h <<\_ACEOF
 
5904
  echo "$ac_t""none" 1>&6
 
5905
  cat >> confdefs.h <<\EOF
11761
5906
#define SIMPLE_EVENT 1
11762
 
_ACEOF
 
5907
EOF
11763
5908
 
11764
5909
fi
11765
5910
 
11766
 
 
11767
5911
for ac_func in _getpty
11768
5912
do
11769
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11770
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
11771
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11772
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
11773
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5913
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
5914
echo "configure:5915: checking for $ac_func" >&5
 
5915
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
5916
  echo $ac_n "(cached) $ac_c" 1>&6
11774
5917
else
11775
 
  cat >conftest.$ac_ext <<_ACEOF
11776
 
/* confdefs.h.  */
11777
 
_ACEOF
11778
 
cat confdefs.h >>conftest.$ac_ext
11779
 
cat >>conftest.$ac_ext <<_ACEOF
11780
 
/* end confdefs.h.  */
11781
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11782
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11783
 
#define $ac_func innocuous_$ac_func
11784
 
 
 
5918
  cat > conftest.$ac_ext <<EOF
 
5919
#line 5920 "configure"
 
5920
#include "confdefs.h"
11785
5921
/* System header to define __stub macros and hopefully few prototypes,
11786
 
    which can conflict with char $ac_func (); below.
11787
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788
 
    <limits.h> exists even on freestanding compilers.  */
11789
 
 
11790
 
#ifdef __STDC__
11791
 
# include <limits.h>
11792
 
#else
11793
 
# include <assert.h>
11794
 
#endif
11795
 
 
11796
 
#undef $ac_func
11797
 
 
 
5922
    which can conflict with char $ac_func(); below.  */
 
5923
#include <assert.h>
11798
5924
/* Override any gcc2 internal prototype to avoid an error.  */
11799
 
#ifdef __cplusplus
11800
 
extern "C"
11801
 
{
11802
 
#endif
11803
5925
/* We use char because int might match the return type of a gcc2
11804
 
   builtin and then its argument prototype would still apply.  */
11805
 
char $ac_func ();
 
5926
    builtin and then its argument prototype would still apply.  */
 
5927
char $ac_func();
 
5928
 
 
5929
int main() {
 
5930
 
11806
5931
/* The GNU C library defines this for functions which it implements
11807
5932
    to always fail with ENOSYS.  Some functions are actually named
11808
5933
    something starting with __ and the normal name is an alias.  */
11809
5934
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11810
5935
choke me
11811
5936
#else
11812
 
char (*f) () = $ac_func;
11813
 
#endif
11814
 
#ifdef __cplusplus
11815
 
}
11816
 
#endif
11817
 
 
11818
 
int
11819
 
main ()
11820
 
{
11821
 
return f != $ac_func;
11822
 
  ;
11823
 
  return 0;
11824
 
}
11825
 
_ACEOF
11826
 
rm -f conftest.$ac_objext conftest$ac_exeext
11827
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828
 
  (eval $ac_link) 2>conftest.er1
11829
 
  ac_status=$?
11830
 
  grep -v '^ *+' conftest.er1 >conftest.err
11831
 
  rm -f conftest.er1
11832
 
  cat conftest.err >&5
11833
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834
 
  (exit $ac_status); } &&
11835
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11836
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837
 
  (eval $ac_try) 2>&5
11838
 
  ac_status=$?
11839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840
 
  (exit $ac_status); }; } &&
11841
 
         { ac_try='test -s conftest$ac_exeext'
11842
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843
 
  (eval $ac_try) 2>&5
11844
 
  ac_status=$?
11845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846
 
  (exit $ac_status); }; }; then
11847
 
  eval "$as_ac_var=yes"
11848
 
else
11849
 
  echo "$as_me: failed program was:" >&5
11850
 
sed 's/^/| /' conftest.$ac_ext >&5
11851
 
 
11852
 
eval "$as_ac_var=no"
11853
 
fi
11854
 
rm -f conftest.err conftest.$ac_objext \
11855
 
      conftest$ac_exeext conftest.$ac_ext
11856
 
fi
11857
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11858
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11859
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11860
 
  cat >>confdefs.h <<_ACEOF
11861
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11862
 
_ACEOF
11863
 
 
 
5937
$ac_func();
 
5938
#endif
 
5939
 
 
5940
; return 0; }
 
5941
EOF
 
5942
if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5943
  rm -rf conftest*
 
5944
  eval "ac_cv_func_$ac_func=yes"
 
5945
else
 
5946
  echo "configure: failed program was:" >&5
 
5947
  cat conftest.$ac_ext >&5
 
5948
  rm -rf conftest*
 
5949
  eval "ac_cv_func_$ac_func=no"
 
5950
fi
 
5951
rm -f conftest*
 
5952
fi
 
5953
 
 
5954
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
5955
  echo "$ac_t""yes" 1>&6
 
5956
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
5957
  cat >> confdefs.h <<EOF
 
5958
#define $ac_tr_func 1
 
5959
EOF
 
5960
 
 
5961
else
 
5962
  echo "$ac_t""no" 1>&6
11864
5963
fi
11865
5964
done
11866
5965
 
11867
 
 
11868
5966
for ac_func in getpty
11869
5967
do
11870
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11871
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
11872
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11873
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
11874
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5968
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
5969
echo "configure:5970: checking for $ac_func" >&5
 
5970
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
 
5971
  echo $ac_n "(cached) $ac_c" 1>&6
11875
5972
else
11876
 
  cat >conftest.$ac_ext <<_ACEOF
11877
 
/* confdefs.h.  */
11878
 
_ACEOF
11879
 
cat confdefs.h >>conftest.$ac_ext
11880
 
cat >>conftest.$ac_ext <<_ACEOF
11881
 
/* end confdefs.h.  */
11882
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11883
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11884
 
#define $ac_func innocuous_$ac_func
11885
 
 
 
5973
  cat > conftest.$ac_ext <<EOF
 
5974
#line 5975 "configure"
 
5975
#include "confdefs.h"
11886
5976
/* System header to define __stub macros and hopefully few prototypes,
11887
 
    which can conflict with char $ac_func (); below.
11888
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889
 
    <limits.h> exists even on freestanding compilers.  */
11890
 
 
11891
 
#ifdef __STDC__
11892
 
# include <limits.h>
11893
 
#else
11894
 
# include <assert.h>
11895
 
#endif
11896
 
 
11897
 
#undef $ac_func
11898
 
 
 
5977
    which can conflict with char $ac_func(); below.  */
 
5978
#include <assert.h>
11899
5979
/* Override any gcc2 internal prototype to avoid an error.  */
11900
 
#ifdef __cplusplus
11901
 
extern "C"
11902
 
{
11903
 
#endif
11904
5980
/* We use char because int might match the return type of a gcc2
11905
 
   builtin and then its argument prototype would still apply.  */
11906
 
char $ac_func ();
 
5981
    builtin and then its argument prototype would still apply.  */
 
5982
char $ac_func();
 
5983
 
 
5984
int main() {
 
5985
 
11907
5986
/* The GNU C library defines this for functions which it implements
11908
5987
    to always fail with ENOSYS.  Some functions are actually named
11909
5988
    something starting with __ and the normal name is an alias.  */
11910
5989
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11911
5990
choke me
11912
5991
#else
11913
 
char (*f) () = $ac_func;
11914
 
#endif
11915
 
#ifdef __cplusplus
11916
 
}
11917
 
#endif
11918
 
 
11919
 
int
11920
 
main ()
11921
 
{
11922
 
return f != $ac_func;
11923
 
  ;
11924
 
  return 0;
11925
 
}
11926
 
_ACEOF
11927
 
rm -f conftest.$ac_objext conftest$ac_exeext
11928
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929
 
  (eval $ac_link) 2>conftest.er1
11930
 
  ac_status=$?
11931
 
  grep -v '^ *+' conftest.er1 >conftest.err
11932
 
  rm -f conftest.er1
11933
 
  cat conftest.err >&5
11934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935
 
  (exit $ac_status); } &&
11936
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11937
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938
 
  (eval $ac_try) 2>&5
11939
 
  ac_status=$?
11940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941
 
  (exit $ac_status); }; } &&
11942
 
         { ac_try='test -s conftest$ac_exeext'
11943
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944
 
  (eval $ac_try) 2>&5
11945
 
  ac_status=$?
11946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947
 
  (exit $ac_status); }; }; then
11948
 
  eval "$as_ac_var=yes"
11949
 
else
11950
 
  echo "$as_me: failed program was:" >&5
11951
 
sed 's/^/| /' conftest.$ac_ext >&5
11952
 
 
11953
 
eval "$as_ac_var=no"
11954
 
fi
11955
 
rm -f conftest.err conftest.$ac_objext \
11956
 
      conftest$ac_exeext conftest.$ac_ext
11957
 
fi
11958
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11959
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11960
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11961
 
  cat >>confdefs.h <<_ACEOF
11962
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11963
 
_ACEOF
11964
 
 
 
5992
$ac_func();
 
5993
#endif
 
5994
 
 
5995
; return 0; }
 
5996
EOF
 
5997
if { (eval echo configure:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5998
  rm -rf conftest*
 
5999
  eval "ac_cv_func_$ac_func=yes"
 
6000
else
 
6001
  echo "configure: failed program was:" >&5
 
6002
  cat conftest.$ac_ext >&5
 
6003
  rm -rf conftest*
 
6004
  eval "ac_cv_func_$ac_func=no"
 
6005
fi
 
6006
rm -f conftest*
 
6007
fi
 
6008
 
 
6009
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
 
6010
  echo "$ac_t""yes" 1>&6
 
6011
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
6012
  cat >> confdefs.h <<EOF
 
6013
#define $ac_tr_func 1
 
6014
EOF
 
6015
 
 
6016
else
 
6017
  echo "$ac_t""no" 1>&6
11965
6018
fi
11966
6019
done
11967
6020
 
11968
6021
 
11969
6022
# following test sets SETPGRP_VOID if setpgrp takes 0 args, else takes 2
11970
 
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
11971
 
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
11972
 
if test "${ac_cv_func_setpgrp_void+set}" = set; then
11973
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6023
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
 
6024
echo "configure:6025: checking whether setpgrp takes no argument" >&5
 
6025
if eval "test \"`echo '$''{'ac_cv_func_setpgrp_void'+set}'`\" = set"; then
 
6026
  echo $ac_n "(cached) $ac_c" 1>&6
11974
6027
else
11975
6028
  if test "$cross_compiling" = yes; then
11976
 
  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
11977
 
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
11978
 
   { (exit 1); exit 1; }; }
 
6029
  { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
11979
6030
else
11980
 
  cat >conftest.$ac_ext <<_ACEOF
11981
 
/* confdefs.h.  */
11982
 
_ACEOF
11983
 
cat confdefs.h >>conftest.$ac_ext
11984
 
cat >>conftest.$ac_ext <<_ACEOF
11985
 
/* end confdefs.h.  */
11986
 
#if HAVE_UNISTD_H
11987
 
# include <unistd.h>
 
6031
  cat > conftest.$ac_ext <<EOF
 
6032
#line 6033 "configure"
 
6033
#include "confdefs.h"
 
6034
 
 
6035
#ifdef HAVE_UNISTD_H
 
6036
#include <unistd.h>
11988
6037
#endif
11989
6038
 
11990
 
int
11991
 
main ()
 
6039
/*
 
6040
 * If this system has a BSD-style setpgrp, which takes arguments, exit
 
6041
 * successfully.
 
6042
 */
 
6043
main()
11992
6044
{
11993
 
/* If this system has a BSD-style setpgrp which takes arguments,
11994
 
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11995
 
  exit successfully. */
11996
 
  exit (setpgrp (1,1) == -1 ? 0 : 1);
11997
 
  ;
11998
 
  return 0;
 
6045
    if (setpgrp(1,1) == -1)
 
6046
        exit(0);
 
6047
    else
 
6048
        exit(1);
11999
6049
}
12000
 
_ACEOF
12001
 
rm -f conftest$ac_exeext
12002
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12003
 
  (eval $ac_link) 2>&5
12004
 
  ac_status=$?
12005
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12007
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008
 
  (eval $ac_try) 2>&5
12009
 
  ac_status=$?
12010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011
 
  (exit $ac_status); }; }; then
 
6050
 
 
6051
EOF
 
6052
if { (eval echo configure:6053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
6053
then
12012
6054
  ac_cv_func_setpgrp_void=no
12013
6055
else
12014
 
  echo "$as_me: program exited with status $ac_status" >&5
12015
 
echo "$as_me: failed program was:" >&5
12016
 
sed 's/^/| /' conftest.$ac_ext >&5
12017
 
 
12018
 
( exit $ac_status )
12019
 
ac_cv_func_setpgrp_void=yes
12020
 
fi
12021
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12022
 
fi
12023
 
fi
12024
 
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12025
 
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
 
6056
  echo "configure: failed program was:" >&5
 
6057
  cat conftest.$ac_ext >&5
 
6058
  rm -fr conftest*
 
6059
  ac_cv_func_setpgrp_void=yes
 
6060
fi
 
6061
rm -fr conftest*
 
6062
fi
 
6063
 
 
6064
 
 
6065
fi
 
6066
 
 
6067
echo "$ac_t""$ac_cv_func_setpgrp_void" 1>&6
12026
6068
if test $ac_cv_func_setpgrp_void = yes; then
12027
 
 
12028
 
cat >>confdefs.h <<\_ACEOF
 
6069
  cat >> confdefs.h <<\EOF
12029
6070
#define SETPGRP_VOID 1
12030
 
_ACEOF
 
6071
EOF
12031
6072
 
12032
6073
fi
12033
6074
 
12035
6076
#
12036
6077
# check for timezones
12037
6078
#
12038
 
echo "$as_me:$LINENO: checking for SV-style timezone" >&5
12039
 
echo $ECHO_N "checking for SV-style timezone... $ECHO_C" >&6
 
6079
echo $ac_n "checking for SV-style timezone""... $ac_c" 1>&6
 
6080
echo "configure:6081: checking for SV-style timezone" >&5
12040
6081
if test "$cross_compiling" = yes; then
12041
 
  { { echo "$as_me:$LINENO: error: Expect can't be cross compiled" >&5
12042
 
echo "$as_me: error: Expect can't be cross compiled" >&2;}
12043
 
   { (exit 1); exit 1; }; }
 
6082
  { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; }
12044
6083
 
12045
6084
else
12046
 
  cat >conftest.$ac_ext <<_ACEOF
12047
 
/* confdefs.h.  */
12048
 
_ACEOF
12049
 
cat confdefs.h >>conftest.$ac_ext
12050
 
cat >>conftest.$ac_ext <<_ACEOF
12051
 
/* end confdefs.h.  */
 
6085
  cat > conftest.$ac_ext <<EOF
 
6086
#line 6087 "configure"
 
6087
#include "confdefs.h"
12052
6088
 
12053
6089
extern char *tzname[2];
12054
6090
extern int daylight;
12059
6095
 
12060
6096
  exit(0);
12061
6097
}
12062
 
_ACEOF
12063
 
rm -f conftest$ac_exeext
12064
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065
 
  (eval $ac_link) 2>&5
12066
 
  ac_status=$?
12067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12069
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070
 
  (eval $ac_try) 2>&5
12071
 
  ac_status=$?
12072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073
 
  (exit $ac_status); }; }; then
12074
 
  cat >>confdefs.h <<\_ACEOF
 
6098
EOF
 
6099
if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
6100
then
 
6101
  cat >> confdefs.h <<\EOF
12075
6102
#define HAVE_SV_TIMEZONE 1
12076
 
_ACEOF
 
6103
EOF
12077
6104
 
12078
 
        echo "$as_me:$LINENO: result: yes" >&5
12079
 
echo "${ECHO_T}yes" >&6
 
6105
        echo "$ac_t""yes" 1>&6
12080
6106
else
12081
 
  echo "$as_me: program exited with status $ac_status" >&5
12082
 
echo "$as_me: failed program was:" >&5
12083
 
sed 's/^/| /' conftest.$ac_ext >&5
12084
 
 
12085
 
( exit $ac_status )
12086
 
echo "$as_me:$LINENO: result: no" >&5
12087
 
echo "${ECHO_T}no" >&6
12088
 
 
12089
 
fi
12090
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12091
 
fi
 
6107
  echo "configure: failed program was:" >&5
 
6108
  cat conftest.$ac_ext >&5
 
6109
  rm -fr conftest*
 
6110
  echo "$ac_t""no" 1>&6
 
6111
 
 
6112
fi
 
6113
rm -fr conftest*
 
6114
fi
 
6115
 
12092
6116
 
12093
6117
# only look for Tk stuff if we have X11 and user doesn't say not to
12094
 
 
12095
6118
# Check whether --with-x or --without-x was given.
12096
6119
if test "${with_x+set}" = set; then
12097
6120
  withval="$with_x"
12098
 
 
 
6121
  :
12099
6122
else
12100
6123
  with_x=yes
12101
 
fi;
 
6124
fi
 
6125
 
12102
6126
if test "$with_x" = "no"; then
12103
6127
   no_tk=true
12104
6128
else
12105
 
 
 
6129
   
12106
6130
#
12107
6131
# Ok, lets find the tk source trees so we can use the headers
12108
6132
# If the directory (presumably symlink) named "tk" exists, use that one
12117
6141
# the alternative search directory is involked by --with-tkinclude
12118
6142
#
12119
6143
#no_tk=true
12120
 
echo "$as_me:$LINENO: checking for Tk private headers" >&5
12121
 
echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
12122
 
 
 
6144
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
 
6145
echo "configure:6146: checking for Tk private headers" >&5
12123
6146
# Check whether --with-tkinclude or --without-tkinclude was given.
12124
6147
if test "${with_tkinclude+set}" = set; then
12125
6148
  withval="$with_tkinclude"
12126
6149
  with_tkinclude=${withval}
12127
 
fi;
12128
 
if test "${ac_cv_c_tkh+set}" = set; then
12129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6150
fi
 
6151
 
 
6152
if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
 
6153
  echo $ac_n "(cached) $ac_c" 1>&6
12130
6154
else
12131
 
 
 
6155
  
12132
6156
# first check to see if --with-tkinclude was specified
12133
6157
if test x"${with_tkinclude}" != x ; then
12134
6158
  if test -f ${with_tkinclude}/tk.h ; then
12136
6160
  elif test -f ${with_tkinclude}/generic/tk.h ; then
12137
6161
    ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
12138
6162
  else
12139
 
    { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
12140
 
echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
12141
 
   { (exit 1); exit 1; }; }
 
6163
    { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
12142
6164
  fi
12143
6165
fi
12144
6166
 
12189
6211
fi
12190
6212
# see if one is installed
12191
6213
if test x"${ac_cv_c_tkh}" = x ; then
12192
 
   if test "${ac_cv_header_tk_h+set}" = set; then
12193
 
  echo "$as_me:$LINENO: checking for tk.h" >&5
12194
 
echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
12195
 
if test "${ac_cv_header_tk_h+set}" = set; then
12196
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12197
 
fi
12198
 
echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
12199
 
echo "${ECHO_T}$ac_cv_header_tk_h" >&6
12200
 
else
12201
 
  # Is the header compilable?
12202
 
echo "$as_me:$LINENO: checking tk.h usability" >&5
12203
 
echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
12204
 
cat >conftest.$ac_ext <<_ACEOF
12205
 
/* confdefs.h.  */
12206
 
_ACEOF
12207
 
cat confdefs.h >>conftest.$ac_ext
12208
 
cat >>conftest.$ac_ext <<_ACEOF
12209
 
/* end confdefs.h.  */
12210
 
$ac_includes_default
12211
 
#include <tk.h>
12212
 
_ACEOF
12213
 
rm -f conftest.$ac_objext
12214
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215
 
  (eval $ac_compile) 2>conftest.er1
12216
 
  ac_status=$?
12217
 
  grep -v '^ *+' conftest.er1 >conftest.err
12218
 
  rm -f conftest.er1
12219
 
  cat conftest.err >&5
12220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221
 
  (exit $ac_status); } &&
12222
 
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12223
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224
 
  (eval $ac_try) 2>&5
12225
 
  ac_status=$?
12226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227
 
  (exit $ac_status); }; } &&
12228
 
         { ac_try='test -s conftest.$ac_objext'
12229
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230
 
  (eval $ac_try) 2>&5
12231
 
  ac_status=$?
12232
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233
 
  (exit $ac_status); }; }; then
12234
 
  ac_header_compiler=yes
12235
 
else
12236
 
  echo "$as_me: failed program was:" >&5
12237
 
sed 's/^/| /' conftest.$ac_ext >&5
12238
 
 
12239
 
ac_header_compiler=no
12240
 
fi
12241
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12242
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12243
 
echo "${ECHO_T}$ac_header_compiler" >&6
12244
 
 
12245
 
# Is the header present?
12246
 
echo "$as_me:$LINENO: checking tk.h presence" >&5
12247
 
echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
12248
 
cat >conftest.$ac_ext <<_ACEOF
12249
 
/* confdefs.h.  */
12250
 
_ACEOF
12251
 
cat confdefs.h >>conftest.$ac_ext
12252
 
cat >>conftest.$ac_ext <<_ACEOF
12253
 
/* end confdefs.h.  */
12254
 
#include <tk.h>
12255
 
_ACEOF
12256
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12257
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12258
 
  ac_status=$?
12259
 
  grep -v '^ *+' conftest.er1 >conftest.err
12260
 
  rm -f conftest.er1
12261
 
  cat conftest.err >&5
12262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263
 
  (exit $ac_status); } >/dev/null; then
12264
 
  if test -s conftest.err; then
12265
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12266
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12267
 
  else
12268
 
    ac_cpp_err=
12269
 
  fi
12270
 
else
12271
 
  ac_cpp_err=yes
12272
 
fi
12273
 
if test -z "$ac_cpp_err"; then
12274
 
  ac_header_preproc=yes
12275
 
else
12276
 
  echo "$as_me: failed program was:" >&5
12277
 
sed 's/^/| /' conftest.$ac_ext >&5
12278
 
 
12279
 
  ac_header_preproc=no
12280
 
fi
12281
 
rm -f conftest.err conftest.$ac_ext
12282
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12283
 
echo "${ECHO_T}$ac_header_preproc" >&6
12284
 
 
12285
 
# So?  What about this header?
12286
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12287
 
  yes:no: )
12288
 
    { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
12289
 
echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12290
 
    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
12291
 
echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
12292
 
    ac_header_preproc=yes
12293
 
    ;;
12294
 
  no:yes:* )
12295
 
    { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
12296
 
echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
12297
 
    { echo "$as_me:$LINENO: WARNING: tk.h:     check for missing prerequisite headers?" >&5
12298
 
echo "$as_me: WARNING: tk.h:     check for missing prerequisite headers?" >&2;}
12299
 
    { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
12300
 
echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
12301
 
    { echo "$as_me:$LINENO: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&5
12302
 
echo "$as_me: WARNING: tk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12303
 
    { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
12304
 
echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
12305
 
    { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
12306
 
echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
12307
 
    (
12308
 
      cat <<\_ASBOX
12309
 
## ------------------------------------------ ##
12310
 
## Report this to the AC_PACKAGE_NAME lists.  ##
12311
 
## ------------------------------------------ ##
12312
 
_ASBOX
12313
 
    ) |
12314
 
      sed "s/^/$as_me: WARNING:     /" >&2
12315
 
    ;;
12316
 
esac
12317
 
echo "$as_me:$LINENO: checking for tk.h" >&5
12318
 
echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
12319
 
if test "${ac_cv_header_tk_h+set}" = set; then
12320
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12321
 
else
12322
 
  ac_cv_header_tk_h=$ac_header_preproc
12323
 
fi
12324
 
echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
12325
 
echo "${ECHO_T}$ac_cv_header_tk_h" >&6
12326
 
 
12327
 
fi
12328
 
if test $ac_cv_header_tk_h = yes; then
 
6214
   ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
 
6215
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
 
6216
echo "configure:6217: checking for tk.h" >&5
 
6217
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
6218
  echo $ac_n "(cached) $ac_c" 1>&6
 
6219
else
 
6220
  cat > conftest.$ac_ext <<EOF
 
6221
#line 6222 "configure"
 
6222
#include "confdefs.h"
 
6223
#include <tk.h>
 
6224
EOF
 
6225
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
6226
{ (eval echo configure:6227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6227
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
6228
if test -z "$ac_err"; then
 
6229
  rm -rf conftest*
 
6230
  eval "ac_cv_header_$ac_safe=yes"
 
6231
else
 
6232
  echo "$ac_err" >&5
 
6233
  echo "configure: failed program was:" >&5
 
6234
  cat conftest.$ac_ext >&5
 
6235
  rm -rf conftest*
 
6236
  eval "ac_cv_header_$ac_safe=no"
 
6237
fi
 
6238
rm -f conftest*
 
6239
fi
 
6240
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
6241
  echo "$ac_t""yes" 1>&6
12329
6242
  ac_cv_c_tkh=installed
12330
6243
else
12331
 
  ac_cv_c_tkh=""
 
6244
  echo "$ac_t""no" 1>&6
 
6245
ac_cv_c_tkh=""
12332
6246
fi
12333
 
 
12334
6247
 
12335
6248
fi
12336
6249
 
12339
6252
if test x"${ac_cv_c_tkh}" != x ; then
12340
6253
#  no_tk=""
12341
6254
  if test x"${ac_cv_c_tkh}" = x"installed" ; then
12342
 
    echo "$as_me:$LINENO: result: is installed" >&5
12343
 
echo "${ECHO_T}is installed" >&6
 
6255
    echo "$ac_t""is installed" 1>&6
12344
6256
    TKHDIRDASHI=""
12345
6257
  else
12346
 
    echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
12347
 
echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
 
6258
    echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
12348
6259
    # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
12349
6260
    TKHDIRDASHI="-I${ac_cv_c_tkh}"
12350
6261
  fi
12351
6262
else
12352
6263
  TKHDIRDASHI="# no Tk directory found"
12353
 
  { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
12354
 
echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
 
6264
  echo "configure: warning: Can't find Tk private headers" 1>&2
12355
6265
  no_tk=true
12356
6266
fi
12357
6267
 
12366
6276
  X_PROGS_INSTALLED=expectk_installed
12367
6277
else
12368
6278
  X_PROGS="# no X support on this system"
12369
 
  { echo "$as_me:$LINENO: WARNING: No X based programs will be built" >&5
12370
 
echo "$as_me: WARNING: No X based programs will be built" >&2;}
 
6279
  echo "configure: warning: No X based programs will be built" 1>&2
12371
6280
  echo "        WARNING: Can't find Tk headers or library.  You can still"
12372
6281
  echo "        build expect, but not expectk.  See Expect's README for"
12373
6282
  echo "        information on how to obtain Tk.  If Tk is installed, see"
12383
6292
  disable_dl=$enableval
12384
6293
else
12385
6294
  disable_dl=no
12386
 
fi;
 
6295
fi
 
6296
 
12387
6297
 
12388
6298
# Check whether --enable-gcc or --disable-gcc was given.
12389
6299
if test "${enable_gcc+set}" = set; then
12391
6301
  enable_gcc=$enableval
12392
6302
else
12393
6303
  enable_gcc=no
12394
 
fi;
 
6304
fi
 
6305
 
12395
6306
 
12396
6307
# Following comment stolen from Tcl's configure.in:
12397
6308
#   Note:  in the following variable, it's important to use the absolute
12410
6321
 
12411
6322
# also remove dots on systems that don't support filenames > 14
12412
6323
# (are there systems which support shared libs and restrict filename lengths!?)
12413
 
echo "$as_me:$LINENO: checking for long file names" >&5
12414
 
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
12415
 
if test "${ac_cv_sys_long_file_names+set}" = set; then
12416
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6324
echo $ac_n "checking for long file names""... $ac_c" 1>&6
 
6325
echo "configure:6326: checking for long file names" >&5
 
6326
if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
 
6327
  echo $ac_n "(cached) $ac_c" 1>&6
12417
6328
else
12418
6329
  ac_cv_sys_long_file_names=yes
12419
6330
# Test for long file names in all the places we know might matter:
12427
6338
#      /var/tmp         likewise
12428
6339
#      /usr/tmp         likewise
12429
6340
if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
12430
 
  ac_tmpdirs=$TMPDIR
 
6341
  ac_tmpdirs="$TMPDIR"
12431
6342
else
12432
6343
  ac_tmpdirs='/tmp /var/tmp /usr/tmp'
12433
6344
fi
12434
6345
for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
12435
6346
  test -d $ac_dir || continue
12436
6347
  test -w $ac_dir || continue # It is less confusing to not echo anything here.
12437
 
  ac_xdir=$ac_dir/cf$$
12438
 
  (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
12439
 
  ac_tf1=$ac_xdir/conftest9012345
12440
 
  ac_tf2=$ac_xdir/conftest9012346
12441
 
  (echo 1 >$ac_tf1) 2>/dev/null
12442
 
  (echo 2 >$ac_tf2) 2>/dev/null
12443
 
  ac_val=`cat $ac_tf1 2>/dev/null`
12444
 
  if test ! -f $ac_tf1 || test "$ac_val" != 1; then
 
6348
  (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
 
6349
  (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
 
6350
  val=`cat $ac_dir/conftest9012345 2>/dev/null`
 
6351
  if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
12445
6352
    ac_cv_sys_long_file_names=no
12446
 
    rm -rf $ac_xdir 2>/dev/null
 
6353
    rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
12447
6354
    break
12448
6355
  fi
12449
 
  rm -rf $ac_xdir 2>/dev/null
 
6356
  rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
12450
6357
done
12451
6358
fi
12452
 
echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
12453
 
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
 
6359
 
 
6360
echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
12454
6361
if test $ac_cv_sys_long_file_names = yes; then
12455
 
 
12456
 
cat >>confdefs.h <<\_ACEOF
 
6362
  cat >> confdefs.h <<\EOF
12457
6363
#define HAVE_LONG_FILE_NAMES 1
12458
 
_ACEOF
 
6364
EOF
12459
6365
 
12460
6366
fi
12461
6367
 
12472
6378
# TCL_DBGX, or you'll run into problems if you build Tcl with symbols
12473
6379
# and expect without (and vice versa?)
12474
6380
 
12475
 
echo "$as_me:$LINENO: checking for type of library to build" >&5
12476
 
echo $ECHO_N "checking for type of library to build... $ECHO_C" >&6
 
6381
echo $ac_n "checking for type of library to build""... $ac_c" 1>&6
 
6382
echo "configure:6383: checking for type of library to build" >&5
12477
6383
if test "$enable_shared" = "yes" && test "x${TCL_SHLIB_SUFFIX}" != "x" ; then
12478
6384
  EXP_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
12479
6385
  eval "EXP_SHARED_LIB_FILE=libexpect${TCL_SHARED_LIB_SUFFIX}"
12480
6386
  EXP_LIB_FILE=$EXP_SHARED_LIB_FILE
12481
6387
  EXP_LIB_FILES="$EXP_SHARED_LIB_FILE $EXP_UNSHARED_LIB_FILE"
12482
 
  echo "$as_me:$LINENO: result: both shared and unshared" >&5
12483
 
echo "${ECHO_T}both shared and unshared" >&6
 
6388
  echo "$ac_t""both shared and unshared" 1>&6
12484
6389
else
12485
6390
  EXP_SHLIB_CFLAGS=
12486
6391
  EXP_SHARED_LIB_FILE="reconfigure_Tcl_for_shared_library"
12487
6392
  EXP_LIB_FILE=$EXP_UNSHARED_LIB_FILE
12488
6393
  EXP_LIB_FILES="$EXP_UNSHARED_LIB_FILE"
12489
 
  echo "$as_me:$LINENO: result: unshared" >&5
12490
 
echo "${ECHO_T}unshared" >&6
 
6394
  echo "$ac_t""unshared" 1>&6
12491
6395
fi
12492
6396
 
12493
6397
# Sigh - Tcl defines SHLIB_LD_LIBS to be either empty or ${LIBS} and
12494
6398
# LIBS is intended to be expanded by Make.  But since we're too close
12495
6399
# to hitting config's max symbols, pack everything together here and
12496
 
# do test ourselves.  Ugh.
 
6400
# do test ourselves.  Ugh.  
12497
6401
#
12498
6402
if test "x$TCL_SHLIB_LD_LIBS" = "x" ; then
12499
6403
        EXP_SHLIB_LD_LIBS="$LIBS"
12500
6404
else
12501
6405
        # seems a little strange to build in Tcl's build-lib, but
12502
6406
        # that's what Tk does.
12503
 
        if test "$enable_stubs" = "yes"; then
12504
 
          EXP_SHLIB_LD_LIBS="$TCL_BUILD_STUB_LIB_SPEC $TCL_DL_LIBS $LIBS $LIBS -lc"
12505
 
        else
12506
 
          EXP_SHLIB_LD_LIBS="$TCL_BUILD_LIB_SPEC $TCL_DL_LIBS $LIBS -lc"
12507
 
        fi
 
6407
        EXP_SHLIB_LD_LIBS="$TCL_BUILD_LIB_SPEC $TCL_DL_LIBS $LIBS -lc"
12508
6408
fi
12509
6409
 
12510
6410
#--------------------------------------------------------------------
12590
6490
 
12591
6491
 
12592
6492
 
12593
 
                    ac_config_files="$ac_config_files Makefile pkgIndex"
12594
 
          ac_config_commands="$ac_config_commands default"
 
6493
trap '' 1 2 15
12595
6494
 
 
6495
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12596
6496
 
12597
6497
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12598
6498
# Let make expand exec_prefix.
12599
6499
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12600
6500
 
12601
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12602
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12603
 
# trailing colons and then remove the whole line if VPATH becomes empty
12604
 
# (actually we leave an empty line to preserve line numbers).
 
6501
# Any assignment to VPATH causes Sun make to only execute
 
6502
# the first set of double-colon rules, so remove it if not needed.
 
6503
# If there is a colon in the path, we need to keep it.
12605
6504
if test "x$srcdir" = x.; then
12606
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12607
 
s/:*\$(srcdir):*/:/;
12608
 
s/:*\${srcdir}:*/:/;
12609
 
s/:*@srcdir@:*/:/;
12610
 
s/^\([^=]*=[     ]*\):*/\1/;
12611
 
s/:*$//;
12612
 
s/^[^=]*=[       ]*$//;
12613
 
}'
 
6505
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
12614
6506
fi
12615
6507
 
 
6508
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
6509
 
12616
6510
DEFS=-DHAVE_CONFIG_H
12617
6511
 
12618
 
ac_libobjs=
12619
 
ac_ltlibobjs=
12620
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12621
 
  # 1. Remove the extension, and $U if already installed.
12622
 
  ac_i=`echo "$ac_i" |
12623
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12624
 
  # 2. Add them.
12625
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12626
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12627
 
done
12628
 
LIBOBJS=$ac_libobjs
12629
 
 
12630
 
LTLIBOBJS=$ac_ltlibobjs
12631
 
 
12632
 
 
12633
 
 
 
6512
# Without the "./", some shells look in PATH for config.status.
12634
6513
: ${CONFIG_STATUS=./config.status}
12635
 
ac_clean_files_save=$ac_clean_files
12636
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12637
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12638
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12639
 
cat >$CONFIG_STATUS <<_ACEOF
12640
 
#! $SHELL
12641
 
# Generated by $as_me.
 
6514
 
 
6515
echo creating $CONFIG_STATUS
 
6516
rm -f $CONFIG_STATUS
 
6517
cat > $CONFIG_STATUS <<EOF
 
6518
#! /bin/sh
 
6519
# Generated automatically by configure.
12642
6520
# Run this file to recreate the current configuration.
 
6521
# This directory was configured as follows,
 
6522
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
6523
#
 
6524
# $0 $ac_configure_args
 
6525
#
12643
6526
# Compiler output produced by configure, useful for debugging
12644
 
# configure, is in config.log if it exists.
12645
 
 
12646
 
debug=false
12647
 
ac_cs_recheck=false
12648
 
ac_cs_silent=false
12649
 
SHELL=\${CONFIG_SHELL-$SHELL}
12650
 
_ACEOF
12651
 
 
12652
 
cat >>$CONFIG_STATUS <<\_ACEOF
12653
 
## --------------------- ##
12654
 
## M4sh Initialization.  ##
12655
 
## --------------------- ##
12656
 
 
12657
 
# Be Bourne compatible
12658
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12659
 
  emulate sh
12660
 
  NULLCMD=:
12661
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12662
 
  # is contrary to our usage.  Disable this feature.
12663
 
  alias -g '${1+"$@"}'='"$@"'
12664
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12665
 
  set -o posix
12666
 
fi
12667
 
DUALCASE=1; export DUALCASE # for MKS sh
12668
 
 
12669
 
# Support unset when possible.
12670
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12671
 
  as_unset=unset
12672
 
else
12673
 
  as_unset=false
12674
 
fi
12675
 
 
12676
 
 
12677
 
# Work around bugs in pre-3.0 UWIN ksh.
12678
 
$as_unset ENV MAIL MAILPATH
12679
 
PS1='$ '
12680
 
PS2='> '
12681
 
PS4='+ '
12682
 
 
12683
 
# NLS nuisances.
12684
 
for as_var in \
12685
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12686
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12687
 
  LC_TELEPHONE LC_TIME
12688
 
do
12689
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12690
 
    eval $as_var=C; export $as_var
12691
 
  else
12692
 
    $as_unset $as_var
12693
 
  fi
12694
 
done
12695
 
 
12696
 
# Required to use basename.
12697
 
if expr a : '\(a\)' >/dev/null 2>&1; then
12698
 
  as_expr=expr
12699
 
else
12700
 
  as_expr=false
12701
 
fi
12702
 
 
12703
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12704
 
  as_basename=basename
12705
 
else
12706
 
  as_basename=false
12707
 
fi
12708
 
 
12709
 
 
12710
 
# Name of the executable.
12711
 
as_me=`$as_basename "$0" ||
12712
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12713
 
         X"$0" : 'X\(//\)$' \| \
12714
 
         X"$0" : 'X\(/\)$' \| \
12715
 
         .     : '\(.\)' 2>/dev/null ||
12716
 
echo X/"$0" |
12717
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12718
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
12719
 
          /^X\/\(\/\).*/{ s//\1/; q; }
12720
 
          s/.*/./; q'`
12721
 
 
12722
 
 
12723
 
# PATH needs CR, and LINENO needs CR and PATH.
12724
 
# Avoid depending upon Character Ranges.
12725
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12726
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12727
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12728
 
as_cr_digits='0123456789'
12729
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
12730
 
 
12731
 
# The user is always right.
12732
 
if test "${PATH_SEPARATOR+set}" != set; then
12733
 
  echo "#! /bin/sh" >conf$$.sh
12734
 
  echo  "exit 0"   >>conf$$.sh
12735
 
  chmod +x conf$$.sh
12736
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12737
 
    PATH_SEPARATOR=';'
12738
 
  else
12739
 
    PATH_SEPARATOR=:
12740
 
  fi
12741
 
  rm -f conf$$.sh
12742
 
fi
12743
 
 
12744
 
 
12745
 
  as_lineno_1=$LINENO
12746
 
  as_lineno_2=$LINENO
12747
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12748
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12749
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12750
 
  # Find who we are.  Look in the path if we contain no path at all
12751
 
  # relative or not.
12752
 
  case $0 in
12753
 
    *[\\/]* ) as_myself=$0 ;;
12754
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755
 
for as_dir in $PATH
12756
 
do
12757
 
  IFS=$as_save_IFS
12758
 
  test -z "$as_dir" && as_dir=.
12759
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12760
 
done
12761
 
 
12762
 
       ;;
12763
 
  esac
12764
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
12765
 
  # in which case we are not to be found in the path.
12766
 
  if test "x$as_myself" = x; then
12767
 
    as_myself=$0
12768
 
  fi
12769
 
  if test ! -f "$as_myself"; then
12770
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12771
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12772
 
   { (exit 1); exit 1; }; }
12773
 
  fi
12774
 
  case $CONFIG_SHELL in
12775
 
  '')
12776
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12778
 
do
12779
 
  IFS=$as_save_IFS
12780
 
  test -z "$as_dir" && as_dir=.
12781
 
  for as_base in sh bash ksh sh5; do
12782
 
         case $as_dir in
12783
 
         /*)
12784
 
           if ("$as_dir/$as_base" -c '
12785
 
  as_lineno_1=$LINENO
12786
 
  as_lineno_2=$LINENO
12787
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12788
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12789
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12790
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12791
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12792
 
             CONFIG_SHELL=$as_dir/$as_base
12793
 
             export CONFIG_SHELL
12794
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12795
 
           fi;;
12796
 
         esac
12797
 
       done
12798
 
done
12799
 
;;
12800
 
  esac
12801
 
 
12802
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12803
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
12804
 
  # line-number line before each line; the second 'sed' does the real
12805
 
  # work.  The second script uses 'N' to pair each line-number line
12806
 
  # with the numbered line, and appends trailing '-' during
12807
 
  # substitution so that $LINENO is not a special case at line end.
12808
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12809
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12810
 
  sed '=' <$as_myself |
12811
 
    sed '
12812
 
      N
12813
 
      s,$,-,
12814
 
      : loop
12815
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12816
 
      t loop
12817
 
      s,-$,,
12818
 
      s,^['$as_cr_digits']*\n,,
12819
 
    ' >$as_me.lineno &&
12820
 
  chmod +x $as_me.lineno ||
12821
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12822
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12823
 
   { (exit 1); exit 1; }; }
12824
 
 
12825
 
  # Don't try to exec as it changes $[0], causing all sort of problems
12826
 
  # (the dirname of $[0] is not the place where we might find the
12827
 
  # original and so on.  Autoconf is especially sensible to this).
12828
 
  . ./$as_me.lineno
12829
 
  # Exit status is that of the last command.
12830
 
  exit
12831
 
}
12832
 
 
12833
 
 
12834
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12835
 
  *c*,-n*) ECHO_N= ECHO_C='
12836
 
' ECHO_T='      ' ;;
12837
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12838
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12839
 
esac
12840
 
 
12841
 
if expr a : '\(a\)' >/dev/null 2>&1; then
12842
 
  as_expr=expr
12843
 
else
12844
 
  as_expr=false
12845
 
fi
12846
 
 
12847
 
rm -f conf$$ conf$$.exe conf$$.file
12848
 
echo >conf$$.file
12849
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
12850
 
  # We could just check for DJGPP; but this test a) works b) is more generic
12851
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12852
 
  if test -f conf$$.exe; then
12853
 
    # Don't use ln at all; we don't have any links
12854
 
    as_ln_s='cp -p'
12855
 
  else
12856
 
    as_ln_s='ln -s'
12857
 
  fi
12858
 
elif ln conf$$.file conf$$ 2>/dev/null; then
12859
 
  as_ln_s=ln
12860
 
else
12861
 
  as_ln_s='cp -p'
12862
 
fi
12863
 
rm -f conf$$ conf$$.exe conf$$.file
12864
 
 
12865
 
if mkdir -p . 2>/dev/null; then
12866
 
  as_mkdir_p=:
12867
 
else
12868
 
  test -d ./-p && rmdir ./-p
12869
 
  as_mkdir_p=false
12870
 
fi
12871
 
 
12872
 
as_executable_p="test -f"
12873
 
 
12874
 
# Sed expression to map a string onto a valid CPP name.
12875
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12876
 
 
12877
 
# Sed expression to map a string onto a valid variable name.
12878
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12879
 
 
12880
 
 
12881
 
# IFS
12882
 
# We need space, tab and new line, in precisely that order.
12883
 
as_nl='
12884
 
'
12885
 
IFS="   $as_nl"
12886
 
 
12887
 
# CDPATH.
12888
 
$as_unset CDPATH
12889
 
 
12890
 
exec 6>&1
12891
 
 
12892
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12893
 
# report actual input values of CONFIG_FILES etc. instead of their
12894
 
# values after options handling.  Logging --version etc. is OK.
12895
 
exec 5>>config.log
12896
 
{
12897
 
  echo
12898
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12899
 
## Running $as_me. ##
12900
 
_ASBOX
12901
 
} >&5
12902
 
cat >&5 <<_CSEOF
12903
 
 
12904
 
This file was extended by $as_me, which was
12905
 
generated by GNU Autoconf 2.59.  Invocation command line was
12906
 
 
12907
 
  CONFIG_FILES    = $CONFIG_FILES
12908
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
12909
 
  CONFIG_LINKS    = $CONFIG_LINKS
12910
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12911
 
  $ $0 $@
12912
 
 
12913
 
_CSEOF
12914
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12915
 
echo >&5
12916
 
_ACEOF
12917
 
 
12918
 
# Files that config.status was made for.
12919
 
if test -n "$ac_config_files"; then
12920
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12921
 
fi
12922
 
 
12923
 
if test -n "$ac_config_headers"; then
12924
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12925
 
fi
12926
 
 
12927
 
if test -n "$ac_config_links"; then
12928
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12929
 
fi
12930
 
 
12931
 
if test -n "$ac_config_commands"; then
12932
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12933
 
fi
12934
 
 
12935
 
cat >>$CONFIG_STATUS <<\_ACEOF
12936
 
 
12937
 
ac_cs_usage="\
12938
 
\`$as_me' instantiates files from templates according to the
12939
 
current configuration.
12940
 
 
12941
 
Usage: $0 [OPTIONS] [FILE]...
12942
 
 
12943
 
  -h, --help       print this help, then exit
12944
 
  -V, --version    print version number, then exit
12945
 
  -q, --quiet      do not print progress messages
12946
 
  -d, --debug      don't remove temporary files
12947
 
      --recheck    update $as_me by reconfiguring in the same conditions
12948
 
  --file=FILE[:TEMPLATE]
12949
 
                   instantiate the configuration file FILE
12950
 
  --header=FILE[:TEMPLATE]
12951
 
                   instantiate the configuration header FILE
12952
 
 
12953
 
Configuration files:
12954
 
$config_files
12955
 
 
12956
 
Configuration headers:
12957
 
$config_headers
12958
 
 
12959
 
Configuration commands:
12960
 
$config_commands
12961
 
 
12962
 
Report bugs to <bug-autoconf@gnu.org>."
12963
 
_ACEOF
12964
 
 
12965
 
cat >>$CONFIG_STATUS <<_ACEOF
12966
 
ac_cs_version="\\
12967
 
config.status
12968
 
configured by $0, generated by GNU Autoconf 2.59,
12969
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12970
 
 
12971
 
Copyright (C) 2003 Free Software Foundation, Inc.
12972
 
This config.status script is free software; the Free Software Foundation
12973
 
gives unlimited permission to copy, distribute and modify it."
12974
 
srcdir=$srcdir
12975
 
INSTALL="$INSTALL"
12976
 
_ACEOF
12977
 
 
12978
 
cat >>$CONFIG_STATUS <<\_ACEOF
12979
 
# If no file are specified by the user, then we need to provide default
12980
 
# value.  By we need to know if files were specified by the user.
12981
 
ac_need_defaults=:
12982
 
while test $# != 0
12983
 
do
12984
 
  case $1 in
12985
 
  --*=*)
12986
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12987
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12988
 
    ac_shift=:
12989
 
    ;;
12990
 
  -*)
12991
 
    ac_option=$1
12992
 
    ac_optarg=$2
12993
 
    ac_shift=shift
12994
 
    ;;
12995
 
  *) # This is not an option, so the user has probably given explicit
12996
 
     # arguments.
12997
 
     ac_option=$1
12998
 
     ac_need_defaults=false;;
12999
 
  esac
13000
 
 
13001
 
  case $ac_option in
13002
 
  # Handling of the options.
13003
 
_ACEOF
13004
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
6527
# configure, is in ./config.log if it exists.
 
6528
 
 
6529
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
6530
for ac_option
 
6531
do
 
6532
  case "\$ac_option" in
13005
6533
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13006
 
    ac_cs_recheck=: ;;
13007
 
  --version | --vers* | -V )
13008
 
    echo "$ac_cs_version"; exit 0 ;;
13009
 
  --he | --h)
13010
 
    # Conflict between --help and --header
13011
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
13012
 
Try \`$0 --help' for more information." >&5
13013
 
echo "$as_me: error: ambiguous option: $1
13014
 
Try \`$0 --help' for more information." >&2;}
13015
 
   { (exit 1); exit 1; }; };;
13016
 
  --help | --hel | -h )
13017
 
    echo "$ac_cs_usage"; exit 0 ;;
13018
 
  --debug | --d* | -d )
13019
 
    debug=: ;;
13020
 
  --file | --fil | --fi | --f )
13021
 
    $ac_shift
13022
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13023
 
    ac_need_defaults=false;;
13024
 
  --header | --heade | --head | --hea )
13025
 
    $ac_shift
13026
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13027
 
    ac_need_defaults=false;;
13028
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13029
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13030
 
    ac_cs_silent=: ;;
13031
 
 
13032
 
  # This is an error.
13033
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13034
 
Try \`$0 --help' for more information." >&5
13035
 
echo "$as_me: error: unrecognized option: $1
13036
 
Try \`$0 --help' for more information." >&2;}
13037
 
   { (exit 1); exit 1; }; } ;;
13038
 
 
13039
 
  *) ac_config_targets="$ac_config_targets $1" ;;
13040
 
 
13041
 
  esac
13042
 
  shift
13043
 
done
13044
 
 
13045
 
ac_configure_extra_args=
13046
 
 
13047
 
if $ac_cs_silent; then
13048
 
  exec 6>/dev/null
13049
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13050
 
fi
13051
 
 
13052
 
_ACEOF
13053
 
cat >>$CONFIG_STATUS <<_ACEOF
13054
 
if \$ac_cs_recheck; then
13055
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13056
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13057
 
fi
13058
 
 
13059
 
_ACEOF
13060
 
 
13061
 
 
13062
 
 
13063
 
 
13064
 
 
13065
 
cat >>$CONFIG_STATUS <<\_ACEOF
13066
 
for ac_config_target in $ac_config_targets
13067
 
do
13068
 
  case "$ac_config_target" in
13069
 
  # Handling of arguments.
13070
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13071
 
  "pkgIndex" ) CONFIG_FILES="$CONFIG_FILES pkgIndex" ;;
13072
 
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13073
 
  "expect_cf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expect_cf.h" ;;
13074
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13075
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13076
 
   { (exit 1); exit 1; }; };;
13077
 
  esac
13078
 
done
13079
 
 
13080
 
# If the user did not use the arguments to specify the items to instantiate,
13081
 
# then the envvar interface is used.  Set only those that are not.
13082
 
# We use the long form for the default assignment because of an extremely
13083
 
# bizarre bug on SunOS 4.1.3.
13084
 
if $ac_need_defaults; then
13085
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13086
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13087
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13088
 
fi
13089
 
 
13090
 
# Have a temporary directory for convenience.  Make it in the build tree
13091
 
# simply because there is no reason to put it here, and in addition,
13092
 
# creating and moving files from /tmp can sometimes cause problems.
13093
 
# Create a temporary directory, and hook for its removal unless debugging.
13094
 
$debug ||
13095
 
{
13096
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13097
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13098
 
}
13099
 
 
13100
 
# Create a (secure) tmp directory for tmp files.
13101
 
 
13102
 
{
13103
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13104
 
  test -n "$tmp" && test -d "$tmp"
13105
 
}  ||
13106
 
{
13107
 
  tmp=./confstat$$-$RANDOM
13108
 
  (umask 077 && mkdir $tmp)
13109
 
} ||
13110
 
{
13111
 
   echo "$me: cannot create a temporary directory in ." >&2
13112
 
   { (exit 1); exit 1; }
13113
 
}
13114
 
 
13115
 
_ACEOF
13116
 
 
13117
 
cat >>$CONFIG_STATUS <<_ACEOF
13118
 
 
13119
 
#
13120
 
# CONFIG_FILES section.
13121
 
#
13122
 
 
13123
 
# No need to generate the scripts if there are no CONFIG_FILES.
13124
 
# This happens for instance when ./config.status config.h
13125
 
if test -n "\$CONFIG_FILES"; then
13126
 
  # Protect against being on the right side of a sed subst in config.status.
13127
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13128
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13129
 
s,@SHELL@,$SHELL,;t t
13130
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13131
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13132
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13133
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13134
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13135
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13136
 
s,@exec_prefix@,$exec_prefix,;t t
13137
 
s,@prefix@,$prefix,;t t
13138
 
s,@program_transform_name@,$program_transform_name,;t t
13139
 
s,@bindir@,$bindir,;t t
13140
 
s,@sbindir@,$sbindir,;t t
13141
 
s,@libexecdir@,$libexecdir,;t t
13142
 
s,@datadir@,$datadir,;t t
13143
 
s,@sysconfdir@,$sysconfdir,;t t
13144
 
s,@sharedstatedir@,$sharedstatedir,;t t
13145
 
s,@localstatedir@,$localstatedir,;t t
13146
 
s,@libdir@,$libdir,;t t
13147
 
s,@includedir@,$includedir,;t t
13148
 
s,@oldincludedir@,$oldincludedir,;t t
13149
 
s,@infodir@,$infodir,;t t
13150
 
s,@mandir@,$mandir,;t t
13151
 
s,@build_alias@,$build_alias,;t t
13152
 
s,@host_alias@,$host_alias,;t t
13153
 
s,@target_alias@,$target_alias,;t t
13154
 
s,@DEFS@,$DEFS,;t t
13155
 
s,@ECHO_C@,$ECHO_C,;t t
13156
 
s,@ECHO_N@,$ECHO_N,;t t
13157
 
s,@ECHO_T@,$ECHO_T,;t t
13158
 
s,@LIBS@,$LIBS,;t t
13159
 
s,@found@,$found,;t t
13160
 
s,@build@,$build,;t t
13161
 
s,@build_cpu@,$build_cpu,;t t
13162
 
s,@build_vendor@,$build_vendor,;t t
13163
 
s,@build_os@,$build_os,;t t
13164
 
s,@host@,$host,;t t
13165
 
s,@host_cpu@,$host_cpu,;t t
13166
 
s,@host_vendor@,$host_vendor,;t t
13167
 
s,@host_os@,$host_os,;t t
13168
 
s,@target@,$target,;t t
13169
 
s,@target_cpu@,$target_cpu,;t t
13170
 
s,@target_vendor@,$target_vendor,;t t
13171
 
s,@target_os@,$target_os,;t t
13172
 
s,@CC@,$CC,;t t
13173
 
s,@CFLAGS@,$CFLAGS,;t t
13174
 
s,@LDFLAGS@,$LDFLAGS,;t t
13175
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
13176
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
13177
 
s,@EXEEXT@,$EXEEXT,;t t
13178
 
s,@OBJEXT@,$OBJEXT,;t t
13179
 
s,@TCL_DEFS@,$TCL_DEFS,;t t
13180
 
s,@TCL_DELETEME@,$TCL_DELETEME,;t t
13181
 
s,@TCL_DBGX@,$TCL_DBGX,;t t
13182
 
s,@TCL_EXEC_PREFIX@,$TCL_EXEC_PREFIX,;t t
13183
 
s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
13184
 
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
13185
 
s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
13186
 
s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
13187
 
s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
13188
 
s,@TCL_SHARED_LIB_SUFFIX@,$TCL_SHARED_LIB_SUFFIX,;t t
13189
 
s,@TK_VERSION@,$TK_VERSION,;t t
13190
 
s,@TK_DEFS@,$TK_DEFS,;t t
13191
 
s,@TK_DBGX@,$TK_DBGX,;t t
13192
 
s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
13193
 
s,@TK_XLIBSW@,$TK_XLIBSW,;t t
13194
 
s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
13195
 
s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
13196
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13197
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13198
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13199
 
s,@RANLIB@,$RANLIB,;t t
13200
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13201
 
s,@subdirs@,$subdirs,;t t
13202
 
s,@CPP@,$CPP,;t t
13203
 
s,@EGREP@,$EGREP,;t t
13204
 
s,@TCLHDIR@,$TCLHDIR,;t t
13205
 
s,@TCLHDIRDASHI@,$TCLHDIRDASHI,;t t
13206
 
s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
13207
 
s,@TKHDIRDASHI@,$TKHDIRDASHI,;t t
13208
 
s,@EXP_MAJOR_VERSION@,$EXP_MAJOR_VERSION,;t t
13209
 
s,@EXP_MINOR_VERSION@,$EXP_MINOR_VERSION,;t t
13210
 
s,@EXP_MICRO_VERSION@,$EXP_MICRO_VERSION,;t t
13211
 
s,@EXP_VERSION_FULL@,$EXP_VERSION_FULL,;t t
13212
 
s,@EXP_VERSION@,$EXP_VERSION,;t t
13213
 
s,@EXP_CONFIG_SHELL@,$EXP_CONFIG_SHELL,;t t
13214
 
s,@EXP_SHARED_LIB_FILE@,$EXP_SHARED_LIB_FILE,;t t
13215
 
s,@EXP_UNSHARED_LIB_FILE@,$EXP_UNSHARED_LIB_FILE,;t t
13216
 
s,@EXP_SHLIB_CFLAGS@,$EXP_SHLIB_CFLAGS,;t t
13217
 
s,@EXP_LIB_FILE@,$EXP_LIB_FILE,;t t
13218
 
s,@EXP_LIB_FILES@,$EXP_LIB_FILES,;t t
13219
 
s,@EXP_BUILD_LIB_SPEC@,$EXP_BUILD_LIB_SPEC,;t t
13220
 
s,@EXP_LIB_SPEC@,$EXP_LIB_SPEC,;t t
13221
 
s,@EXP_CFLAGS@,$EXP_CFLAGS,;t t
13222
 
s,@EXP_LDFLAGS@,$EXP_LDFLAGS,;t t
13223
 
s,@EXP_LD_SEARCH_FLAGS@,$EXP_LD_SEARCH_FLAGS,;t t
13224
 
s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
13225
 
s,@EXP_AND_TCL_LIBS@,$EXP_AND_TCL_LIBS,;t t
13226
 
s,@EXP_AND_TK_LIBS@,$EXP_AND_TK_LIBS,;t t
13227
 
s,@EXP_SHLIB_LD_LIBS@,$EXP_SHLIB_LD_LIBS,;t t
13228
 
s,@X_PROGS@,$X_PROGS,;t t
13229
 
s,@PTY_TYPE@,$PTY_TYPE,;t t
13230
 
s,@EVENT_TYPE@,$EVENT_TYPE,;t t
13231
 
s,@EVENT_ABLE@,$EVENT_ABLE,;t t
13232
 
s,@SETUID@,$SETUID,;t t
13233
 
s,@UNSHARED_RANLIB@,$UNSHARED_RANLIB,;t t
13234
 
s,@DEFAULT_STTY_ARGS@,$DEFAULT_STTY_ARGS,;t t
13235
 
s,@STTY_BIN@,$STTY_BIN,;t t
13236
 
s,@LIBOBJS@,$LIBOBJS,;t t
13237
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
6534
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
6535
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
6536
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
6537
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
6538
    exit 0 ;;
 
6539
  -help | --help | --hel | --he | --h)
 
6540
    echo "\$ac_cs_usage"; exit 0 ;;
 
6541
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
6542
  esac
 
6543
done
 
6544
 
 
6545
ac_given_srcdir=$srcdir
 
6546
ac_given_INSTALL="$INSTALL"
 
6547
 
 
6548
trap 'rm -fr `echo "Makefile \
 
6549
        pkgIndex expect_cf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
6550
EOF
 
6551
cat >> $CONFIG_STATUS <<EOF
 
6552
 
 
6553
# Protect against being on the right side of a sed subst in config.status.
 
6554
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
6555
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
6556
$ac_vpsub
 
6557
$extrasub
 
6558
s%@SHELL@%$SHELL%g
 
6559
s%@CFLAGS@%$CFLAGS%g
 
6560
s%@CPPFLAGS@%$CPPFLAGS%g
 
6561
s%@CXXFLAGS@%$CXXFLAGS%g
 
6562
s%@FFLAGS@%$FFLAGS%g
 
6563
s%@DEFS@%$DEFS%g
 
6564
s%@LDFLAGS@%$LDFLAGS%g
 
6565
s%@LIBS@%$LIBS%g
 
6566
s%@exec_prefix@%$exec_prefix%g
 
6567
s%@prefix@%$prefix%g
 
6568
s%@program_transform_name@%$program_transform_name%g
 
6569
s%@bindir@%$bindir%g
 
6570
s%@sbindir@%$sbindir%g
 
6571
s%@libexecdir@%$libexecdir%g
 
6572
s%@datadir@%$datadir%g
 
6573
s%@sysconfdir@%$sysconfdir%g
 
6574
s%@sharedstatedir@%$sharedstatedir%g
 
6575
s%@localstatedir@%$localstatedir%g
 
6576
s%@libdir@%$libdir%g
 
6577
s%@includedir@%$includedir%g
 
6578
s%@oldincludedir@%$oldincludedir%g
 
6579
s%@infodir@%$infodir%g
 
6580
s%@mandir@%$mandir%g
 
6581
s%@found@%$found%g
 
6582
s%@host@%$host%g
 
6583
s%@host_alias@%$host_alias%g
 
6584
s%@host_cpu@%$host_cpu%g
 
6585
s%@host_vendor@%$host_vendor%g
 
6586
s%@host_os@%$host_os%g
 
6587
s%@target@%$target%g
 
6588
s%@target_alias@%$target_alias%g
 
6589
s%@target_cpu@%$target_cpu%g
 
6590
s%@target_vendor@%$target_vendor%g
 
6591
s%@target_os@%$target_os%g
 
6592
s%@build@%$build%g
 
6593
s%@build_alias@%$build_alias%g
 
6594
s%@build_cpu@%$build_cpu%g
 
6595
s%@build_vendor@%$build_vendor%g
 
6596
s%@build_os@%$build_os%g
 
6597
s%@CC@%$CC%g
 
6598
s%@TCL_DEFS@%$TCL_DEFS%g
 
6599
s%@TCL_DELETEME@%$TCL_DELETEME%g
 
6600
s%@TCL_DBGX@%$TCL_DBGX%g
 
6601
s%@TCL_EXEC_PREFIX@%$TCL_EXEC_PREFIX%g
 
6602
s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
 
6603
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
 
6604
s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
 
6605
s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
 
6606
s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
 
6607
s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
 
6608
s%@TK_VERSION@%$TK_VERSION%g
 
6609
s%@TK_DEFS@%$TK_DEFS%g
 
6610
s%@TK_DBGX@%$TK_DBGX%g
 
6611
s%@TK_XINCLUDES@%$TK_XINCLUDES%g
 
6612
s%@TK_XLIBSW@%$TK_XLIBSW%g
 
6613
s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
 
6614
s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
 
6615
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
6616
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
6617
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
6618
s%@RANLIB@%$RANLIB%g
 
6619
s%@subdirs@%$subdirs%g
 
6620
s%@CPP@%$CPP%g
 
6621
s%@TCLHDIR@%$TCLHDIR%g
 
6622
s%@TCLHDIRDASHI@%$TCLHDIRDASHI%g
 
6623
s%@TCL_LIBRARY@%$TCL_LIBRARY%g
 
6624
s%@TKHDIRDASHI@%$TKHDIRDASHI%g
 
6625
s%@EXP_MAJOR_VERSION@%$EXP_MAJOR_VERSION%g
 
6626
s%@EXP_MINOR_VERSION@%$EXP_MINOR_VERSION%g
 
6627
s%@EXP_MICRO_VERSION@%$EXP_MICRO_VERSION%g
 
6628
s%@EXP_VERSION_FULL@%$EXP_VERSION_FULL%g
 
6629
s%@EXP_VERSION@%$EXP_VERSION%g
 
6630
s%@EXP_CONFIG_SHELL@%$EXP_CONFIG_SHELL%g
 
6631
s%@EXP_SHARED_LIB_FILE@%$EXP_SHARED_LIB_FILE%g
 
6632
s%@EXP_UNSHARED_LIB_FILE@%$EXP_UNSHARED_LIB_FILE%g
 
6633
s%@EXP_SHLIB_CFLAGS@%$EXP_SHLIB_CFLAGS%g
 
6634
s%@EXP_LIB_FILE@%$EXP_LIB_FILE%g
 
6635
s%@EXP_LIB_FILES@%$EXP_LIB_FILES%g
 
6636
s%@EXP_BUILD_LIB_SPEC@%$EXP_BUILD_LIB_SPEC%g
 
6637
s%@EXP_LIB_SPEC@%$EXP_LIB_SPEC%g
 
6638
s%@EXP_CFLAGS@%$EXP_CFLAGS%g
 
6639
s%@EXP_LDFLAGS@%$EXP_LDFLAGS%g
 
6640
s%@EXP_LD_SEARCH_FLAGS@%$EXP_LD_SEARCH_FLAGS%g
 
6641
s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
 
6642
s%@EXP_AND_TCL_LIBS@%$EXP_AND_TCL_LIBS%g
 
6643
s%@EXP_AND_TK_LIBS@%$EXP_AND_TK_LIBS%g
 
6644
s%@EXP_SHLIB_LD_LIBS@%$EXP_SHLIB_LD_LIBS%g
 
6645
s%@X_PROGS@%$X_PROGS%g
 
6646
s%@PTY_TYPE@%$PTY_TYPE%g
 
6647
s%@EVENT_TYPE@%$EVENT_TYPE%g
 
6648
s%@EVENT_ABLE@%$EVENT_ABLE%g
 
6649
s%@SETUID@%$SETUID%g
 
6650
s%@UNSHARED_RANLIB@%$UNSHARED_RANLIB%g
 
6651
s%@DEFAULT_STTY_ARGS@%$DEFAULT_STTY_ARGS%g
 
6652
s%@STTY_BIN@%$STTY_BIN%g
 
6653
 
13238
6654
CEOF
13239
 
 
13240
 
_ACEOF
13241
 
 
13242
 
  cat >>$CONFIG_STATUS <<\_ACEOF
13243
 
  # Split the substitutions into bite-sized pieces for seds with
13244
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
13245
 
  ac_max_sed_lines=48
13246
 
  ac_sed_frag=1 # Number of current file.
13247
 
  ac_beg=1 # First line for current file.
13248
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
13249
 
  ac_more_lines=:
13250
 
  ac_sed_cmds=
13251
 
  while $ac_more_lines; do
13252
 
    if test $ac_beg -gt 1; then
13253
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13254
 
    else
13255
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13256
 
    fi
13257
 
    if test ! -s $tmp/subs.frag; then
13258
 
      ac_more_lines=false
13259
 
    else
13260
 
      # The purpose of the label and of the branching condition is to
13261
 
      # speed up the sed processing (if there are no `@' at all, there
13262
 
      # is no need to browse any of the substitutions).
13263
 
      # These are the two extra sed commands mentioned above.
13264
 
      (echo ':t
13265
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13266
 
      if test -z "$ac_sed_cmds"; then
13267
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13268
 
      else
13269
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13270
 
      fi
13271
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
13272
 
      ac_beg=$ac_end
13273
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
13274
 
    fi
13275
 
  done
13276
 
  if test -z "$ac_sed_cmds"; then
13277
 
    ac_sed_cmds=cat
13278
 
  fi
13279
 
fi # test -n "$CONFIG_FILES"
13280
 
 
13281
 
_ACEOF
13282
 
cat >>$CONFIG_STATUS <<\_ACEOF
13283
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
6655
EOF
 
6656
 
 
6657
cat >> $CONFIG_STATUS <<\EOF
 
6658
 
 
6659
# Split the substitutions into bite-sized pieces for seds with
 
6660
# small command number limits, like on Digital OSF/1 and HP-UX.
 
6661
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
6662
ac_file=1 # Number of current file.
 
6663
ac_beg=1 # First line for current file.
 
6664
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
6665
ac_more_lines=:
 
6666
ac_sed_cmds=""
 
6667
while $ac_more_lines; do
 
6668
  if test $ac_beg -gt 1; then
 
6669
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
6670
  else
 
6671
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
6672
  fi
 
6673
  if test ! -s conftest.s$ac_file; then
 
6674
    ac_more_lines=false
 
6675
    rm -f conftest.s$ac_file
 
6676
  else
 
6677
    if test -z "$ac_sed_cmds"; then
 
6678
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
6679
    else
 
6680
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
6681
    fi
 
6682
    ac_file=`expr $ac_file + 1`
 
6683
    ac_beg=$ac_end
 
6684
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
6685
  fi
 
6686
done
 
6687
if test -z "$ac_sed_cmds"; then
 
6688
  ac_sed_cmds=cat
 
6689
fi
 
6690
EOF
 
6691
 
 
6692
cat >> $CONFIG_STATUS <<EOF
 
6693
 
 
6694
CONFIG_FILES=\${CONFIG_FILES-"Makefile \
 
6695
        pkgIndex"}
 
6696
EOF
 
6697
cat >> $CONFIG_STATUS <<\EOF
 
6698
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13284
6699
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13285
 
  case $ac_file in
13286
 
  - | *:- | *:-:* ) # input from stdin
13287
 
        cat >$tmp/stdin
13288
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13289
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13290
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13291
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13292
 
  * )   ac_file_in=$ac_file.in ;;
 
6700
  case "$ac_file" in
 
6701
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
6702
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
6703
  *) ac_file_in="${ac_file}.in" ;;
13293
6704
  esac
13294
6705
 
13295
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13296
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13297
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
13299
 
         X"$ac_file" : 'X\(//\)$' \| \
13300
 
         X"$ac_file" : 'X\(/\)' \| \
13301
 
         .     : '\(.\)' 2>/dev/null ||
13302
 
echo X"$ac_file" |
13303
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13304
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13305
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13306
 
          /^X\(\/\).*/{ s//\1/; q; }
13307
 
          s/.*/./; q'`
13308
 
  { if $as_mkdir_p; then
13309
 
    mkdir -p "$ac_dir"
 
6706
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
6707
 
 
6708
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
6709
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
6710
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
6711
    # The file is in a subdirectory.
 
6712
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
6713
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
6714
    # A "../" for each directory in $ac_dir_suffix.
 
6715
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13310
6716
  else
13311
 
    as_dir="$ac_dir"
13312
 
    as_dirs=
13313
 
    while test ! -d "$as_dir"; do
13314
 
      as_dirs="$as_dir $as_dirs"
13315
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13316
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13317
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13318
 
         X"$as_dir" : 'X\(//\)$' \| \
13319
 
         X"$as_dir" : 'X\(/\)' \| \
13320
 
         .     : '\(.\)' 2>/dev/null ||
13321
 
echo X"$as_dir" |
13322
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13323
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13324
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13325
 
          /^X\(\/\).*/{ s//\1/; q; }
13326
 
          s/.*/./; q'`
13327
 
    done
13328
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13329
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13330
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13331
 
   { (exit 1); exit 1; }; }; }
13332
 
 
13333
 
  ac_builddir=.
13334
 
 
13335
 
if test "$ac_dir" != .; then
13336
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13337
 
  # A "../" for each directory in $ac_dir_suffix.
13338
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13339
 
else
13340
 
  ac_dir_suffix= ac_top_builddir=
13341
 
fi
13342
 
 
13343
 
case $srcdir in
13344
 
  .)  # No --srcdir option.  We are building in place.
13345
 
    ac_srcdir=.
13346
 
    if test -z "$ac_top_builddir"; then
13347
 
       ac_top_srcdir=.
13348
 
    else
13349
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13350
 
    fi ;;
13351
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
13352
 
    ac_srcdir=$srcdir$ac_dir_suffix;
13353
 
    ac_top_srcdir=$srcdir ;;
 
6717
    ac_dir_suffix= ac_dots=
 
6718
  fi
 
6719
 
 
6720
  case "$ac_given_srcdir" in
 
6721
  .)  srcdir=.
 
6722
      if test -z "$ac_dots"; then top_srcdir=.
 
6723
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
6724
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13354
6725
  *) # Relative path.
13355
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13356
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13357
 
esac
13358
 
 
13359
 
# Do not use `cd foo && pwd` to compute absolute paths, because
13360
 
# the directories may not exist.
13361
 
case `pwd` in
13362
 
.) ac_abs_builddir="$ac_dir";;
13363
 
*)
13364
 
  case "$ac_dir" in
13365
 
  .) ac_abs_builddir=`pwd`;;
13366
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13367
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13368
 
  esac;;
13369
 
esac
13370
 
case $ac_abs_builddir in
13371
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13372
 
*)
13373
 
  case ${ac_top_builddir}. in
13374
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13375
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13376
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13377
 
  esac;;
13378
 
esac
13379
 
case $ac_abs_builddir in
13380
 
.) ac_abs_srcdir=$ac_srcdir;;
13381
 
*)
13382
 
  case $ac_srcdir in
13383
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
13384
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13385
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13386
 
  esac;;
13387
 
esac
13388
 
case $ac_abs_builddir in
13389
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13390
 
*)
13391
 
  case $ac_top_srcdir in
13392
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13393
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13394
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13395
 
  esac;;
13396
 
esac
13397
 
 
13398
 
 
13399
 
  case $INSTALL in
13400
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13401
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13402
 
  esac
13403
 
 
13404
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13405
 
  # use $as_me), people would be surprised to read:
13406
 
  #    /* config.h.  Generated by config.status.  */
13407
 
  if test x"$ac_file" = x-; then
13408
 
    configure_input=
13409
 
  else
13410
 
    configure_input="$ac_file.  "
13411
 
  fi
13412
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
13413
 
                                     sed 's,.*/,,'` by configure."
13414
 
 
13415
 
  # First look for the input files in the build tree, otherwise in the
13416
 
  # src tree.
13417
 
  ac_file_inputs=`IFS=:
13418
 
    for f in $ac_file_in; do
13419
 
      case $f in
13420
 
      -) echo $tmp/stdin ;;
13421
 
      [\\/$]*)
13422
 
         # Absolute (can't be DOS-style, as IFS=:)
13423
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13424
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13425
 
   { (exit 1); exit 1; }; }
13426
 
         echo "$f";;
13427
 
      *) # Relative
13428
 
         if test -f "$f"; then
13429
 
           # Build tree
13430
 
           echo "$f"
13431
 
         elif test -f "$srcdir/$f"; then
13432
 
           # Source tree
13433
 
           echo "$srcdir/$f"
13434
 
         else
13435
 
           # /dev/null tree
13436
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13437
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13438
 
   { (exit 1); exit 1; }; }
13439
 
         fi;;
13440
 
      esac
13441
 
    done` || { (exit 1); exit 1; }
13442
 
 
13443
 
  if test x"$ac_file" != x-; then
13444
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
13445
 
echo "$as_me: creating $ac_file" >&6;}
13446
 
    rm -f "$ac_file"
13447
 
  fi
13448
 
_ACEOF
13449
 
cat >>$CONFIG_STATUS <<_ACEOF
13450
 
  sed "$ac_vpsub
13451
 
$extrasub
13452
 
_ACEOF
13453
 
cat >>$CONFIG_STATUS <<\_ACEOF
13454
 
:t
13455
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13456
 
s,@configure_input@,$configure_input,;t t
13457
 
s,@srcdir@,$ac_srcdir,;t t
13458
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
13459
 
s,@top_srcdir@,$ac_top_srcdir,;t t
13460
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13461
 
s,@builddir@,$ac_builddir,;t t
13462
 
s,@abs_builddir@,$ac_abs_builddir,;t t
13463
 
s,@top_builddir@,$ac_top_builddir,;t t
13464
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13465
 
s,@INSTALL@,$ac_INSTALL,;t t
13466
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13467
 
  rm -f $tmp/stdin
13468
 
  if test x"$ac_file" != x-; then
13469
 
    mv $tmp/out $ac_file
13470
 
  else
13471
 
    cat $tmp/out
13472
 
    rm -f $tmp/out
13473
 
  fi
13474
 
 
13475
 
done
13476
 
_ACEOF
13477
 
cat >>$CONFIG_STATUS <<\_ACEOF
13478
 
 
13479
 
#
13480
 
# CONFIG_HEADER section.
13481
 
#
 
6726
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
6727
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
6728
  esac
 
6729
 
 
6730
  case "$ac_given_INSTALL" in
 
6731
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
6732
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
6733
  esac
 
6734
 
 
6735
  echo creating "$ac_file"
 
6736
  rm -f "$ac_file"
 
6737
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
6738
  case "$ac_file" in
 
6739
  *Makefile*) ac_comsub="1i\\
 
6740
# $configure_input" ;;
 
6741
  *) ac_comsub= ;;
 
6742
  esac
 
6743
 
 
6744
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6745
  sed -e "$ac_comsub
 
6746
s%@configure_input@%$configure_input%g
 
6747
s%@srcdir@%$srcdir%g
 
6748
s%@top_srcdir@%$top_srcdir%g
 
6749
s%@INSTALL@%$INSTALL%g
 
6750
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
6751
fi; done
 
6752
rm -f conftest.s*
13482
6753
 
13483
6754
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13484
6755
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13485
6756
#
13486
6757
# ac_d sets the value in "#define NAME VALUE" lines.
13487
 
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13488
 
ac_dB='[         ].*$,\1#\2'
13489
 
ac_dC=' '
13490
 
ac_dD=',;t'
13491
 
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13492
 
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13493
 
ac_uB='$,\1#\2define\3'
 
6758
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
6759
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
6760
ac_dC='\3'
 
6761
ac_dD='%g'
 
6762
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
6763
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6764
ac_uB='\([      ]\)%\1#\2define\3'
13494
6765
ac_uC=' '
13495
 
ac_uD=',;t'
 
6766
ac_uD='\4%g'
 
6767
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
6768
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6769
ac_eB='$%\1#\2define\3'
 
6770
ac_eC=' '
 
6771
ac_eD='%g'
13496
6772
 
13497
 
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
6773
if test "${CONFIG_HEADERS+set}" != set; then
 
6774
EOF
 
6775
cat >> $CONFIG_STATUS <<EOF
 
6776
  CONFIG_HEADERS="expect_cf.h"
 
6777
EOF
 
6778
cat >> $CONFIG_STATUS <<\EOF
 
6779
fi
 
6780
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13498
6781
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13499
 
  case $ac_file in
13500
 
  - | *:- | *:-:* ) # input from stdin
13501
 
        cat >$tmp/stdin
13502
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13503
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13504
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13505
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13506
 
  * )   ac_file_in=$ac_file.in ;;
 
6782
  case "$ac_file" in
 
6783
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
6784
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
6785
  *) ac_file_in="${ac_file}.in" ;;
13507
6786
  esac
13508
6787
 
13509
 
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13510
 
echo "$as_me: creating $ac_file" >&6;}
13511
 
 
13512
 
  # First look for the input files in the build tree, otherwise in the
13513
 
  # src tree.
13514
 
  ac_file_inputs=`IFS=:
13515
 
    for f in $ac_file_in; do
13516
 
      case $f in
13517
 
      -) echo $tmp/stdin ;;
13518
 
      [\\/$]*)
13519
 
         # Absolute (can't be DOS-style, as IFS=:)
13520
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13521
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13522
 
   { (exit 1); exit 1; }; }
13523
 
         # Do quote $f, to prevent DOS paths from being IFS'd.
13524
 
         echo "$f";;
13525
 
      *) # Relative
13526
 
         if test -f "$f"; then
13527
 
           # Build tree
13528
 
           echo "$f"
13529
 
         elif test -f "$srcdir/$f"; then
13530
 
           # Source tree
13531
 
           echo "$srcdir/$f"
13532
 
         else
13533
 
           # /dev/null tree
13534
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13535
 
echo "$as_me: error: cannot find input file: $f" >&2;}
13536
 
   { (exit 1); exit 1; }; }
13537
 
         fi;;
13538
 
      esac
13539
 
    done` || { (exit 1); exit 1; }
13540
 
  # Remove the trailing spaces.
13541
 
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13542
 
 
13543
 
_ACEOF
13544
 
 
13545
 
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13546
 
# `conftest.undefs', that substitutes the proper values into
13547
 
# config.h.in to produce config.h.  The first handles `#define'
13548
 
# templates, and the second `#undef' templates.
13549
 
# And first: Protect against being on the right side of a sed subst in
13550
 
# config.status.  Protect against being in an unquoted here document
13551
 
# in config.status.
13552
 
rm -f conftest.defines conftest.undefs
13553
 
# Using a here document instead of a string reduces the quoting nightmare.
13554
 
# Putting comments in sed scripts is not portable.
13555
 
#
13556
 
# `end' is used to avoid that the second main sed command (meant for
13557
 
# 0-ary CPP macros) applies to n-ary macro definitions.
13558
 
# See the Autoconf documentation for `clear'.
13559
 
cat >confdef2sed.sed <<\_ACEOF
13560
 
s/[\\&,]/\\&/g
13561
 
s,[\\$`],\\&,g
13562
 
t clear
13563
 
: clear
13564
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13565
 
t end
13566
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13567
 
: end
13568
 
_ACEOF
13569
 
# If some macros were called several times there might be several times
13570
 
# the same #defines, which is useless.  Nevertheless, we may not want to
13571
 
# sort them, since we want the *last* AC-DEFINE to be honored.
13572
 
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13573
 
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13574
 
rm -f confdef2sed.sed
 
6788
  echo creating $ac_file
 
6789
 
 
6790
  rm -f conftest.frag conftest.in conftest.out
 
6791
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6792
  cat $ac_file_inputs > conftest.in
 
6793
 
 
6794
EOF
 
6795
 
 
6796
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
6797
# the proper values into config.h.in to produce config.h.  And first:
 
6798
# Protect against being on the right side of a sed subst in config.status.
 
6799
# Protect against being in an unquoted here document in config.status.
 
6800
rm -f conftest.vals
 
6801
cat > conftest.hdr <<\EOF
 
6802
s/[\\&%]/\\&/g
 
6803
s%[\\$`]%\\&%g
 
6804
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
6805
s%ac_d%ac_u%gp
 
6806
s%ac_u%ac_e%gp
 
6807
EOF
 
6808
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
6809
rm -f conftest.hdr
13575
6810
 
13576
6811
# This sed command replaces #undef with comments.  This is necessary, for
13577
6812
# example, in the case of _POSIX_SOURCE, which is predefined and required
13578
6813
# on some systems where configure will not decide to define it.
13579
 
cat >>conftest.undefs <<\_ACEOF
13580
 
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13581
 
_ACEOF
13582
 
 
13583
 
# Break up conftest.defines because some shells have a limit on the size
13584
 
# of here documents, and old seds have small limits too (100 cmds).
13585
 
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13586
 
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13587
 
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13588
 
echo '  :' >>$CONFIG_STATUS
13589
 
rm -f conftest.tail
13590
 
while grep . conftest.defines >/dev/null
13591
 
do
13592
 
  # Write a limited-size here document to $tmp/defines.sed.
13593
 
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13594
 
  # Speed up: don't consider the non `#define' lines.
13595
 
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13596
 
  # Work around the forget-to-reset-the-flag bug.
13597
 
  echo 't clr' >>$CONFIG_STATUS
13598
 
  echo ': clr' >>$CONFIG_STATUS
13599
 
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13600
 
  echo 'CEOF
13601
 
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13602
 
  rm -f $tmp/in
13603
 
  mv $tmp/out $tmp/in
13604
 
' >>$CONFIG_STATUS
13605
 
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13606
 
  rm -f conftest.defines
13607
 
  mv conftest.tail conftest.defines
13608
 
done
13609
 
rm -f conftest.defines
13610
 
echo '  fi # grep' >>$CONFIG_STATUS
13611
 
echo >>$CONFIG_STATUS
13612
 
 
13613
 
# Break up conftest.undefs because some shells have a limit on the size
13614
 
# of here documents, and old seds have small limits too (100 cmds).
13615
 
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13616
 
rm -f conftest.tail
13617
 
while grep . conftest.undefs >/dev/null
13618
 
do
13619
 
  # Write a limited-size here document to $tmp/undefs.sed.
13620
 
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13621
 
  # Speed up: don't consider the non `#undef'
13622
 
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13623
 
  # Work around the forget-to-reset-the-flag bug.
13624
 
  echo 't clr' >>$CONFIG_STATUS
13625
 
  echo ': clr' >>$CONFIG_STATUS
13626
 
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13627
 
  echo 'CEOF
13628
 
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13629
 
  rm -f $tmp/in
13630
 
  mv $tmp/out $tmp/in
13631
 
' >>$CONFIG_STATUS
13632
 
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13633
 
  rm -f conftest.undefs
13634
 
  mv conftest.tail conftest.undefs
13635
 
done
13636
 
rm -f conftest.undefs
13637
 
 
13638
 
cat >>$CONFIG_STATUS <<\_ACEOF
13639
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13640
 
  # use $as_me), people would be surprised to read:
13641
 
  #    /* config.h.  Generated by config.status.  */
13642
 
  if test x"$ac_file" = x-; then
13643
 
    echo "/* Generated by configure.  */" >$tmp/config.h
13644
 
  else
13645
 
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13646
 
  fi
13647
 
  cat $tmp/in >>$tmp/config.h
13648
 
  rm -f $tmp/in
13649
 
  if test x"$ac_file" != x-; then
13650
 
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13651
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13652
 
echo "$as_me: $ac_file is unchanged" >&6;}
13653
 
    else
13654
 
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13655
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13656
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
13657
 
         X"$ac_file" : 'X\(//\)$' \| \
13658
 
         X"$ac_file" : 'X\(/\)' \| \
13659
 
         .     : '\(.\)' 2>/dev/null ||
13660
 
echo X"$ac_file" |
13661
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13662
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13663
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13664
 
          /^X\(\/\).*/{ s//\1/; q; }
13665
 
          s/.*/./; q'`
13666
 
      { if $as_mkdir_p; then
13667
 
    mkdir -p "$ac_dir"
13668
 
  else
13669
 
    as_dir="$ac_dir"
13670
 
    as_dirs=
13671
 
    while test ! -d "$as_dir"; do
13672
 
      as_dirs="$as_dir $as_dirs"
13673
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13674
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13676
 
         X"$as_dir" : 'X\(//\)$' \| \
13677
 
         X"$as_dir" : 'X\(/\)' \| \
13678
 
         .     : '\(.\)' 2>/dev/null ||
13679
 
echo X"$as_dir" |
13680
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13681
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13682
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13683
 
          /^X\(\/\).*/{ s//\1/; q; }
13684
 
          s/.*/./; q'`
13685
 
    done
13686
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13687
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13688
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13689
 
   { (exit 1); exit 1; }; }; }
13690
 
 
13691
 
      rm -f $ac_file
13692
 
      mv $tmp/config.h $ac_file
 
6814
cat >> conftest.vals <<\EOF
 
6815
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
6816
EOF
 
6817
 
 
6818
# Break up conftest.vals because some shells have a limit on
 
6819
# the size of here documents, and old seds have small limits too.
 
6820
 
 
6821
rm -f conftest.tail
 
6822
while :
 
6823
do
 
6824
  ac_lines=`grep -c . conftest.vals`
 
6825
  # grep -c gives empty output for an empty file on some AIX systems.
 
6826
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
6827
  # Write a limited-size here document to conftest.frag.
 
6828
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
6829
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
6830
  echo 'CEOF
 
6831
  sed -f conftest.frag conftest.in > conftest.out
 
6832
  rm -f conftest.in
 
6833
  mv conftest.out conftest.in
 
6834
' >> $CONFIG_STATUS
 
6835
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
6836
  rm -f conftest.vals
 
6837
  mv conftest.tail conftest.vals
 
6838
done
 
6839
rm -f conftest.vals
 
6840
 
 
6841
cat >> $CONFIG_STATUS <<\EOF
 
6842
  rm -f conftest.frag conftest.h
 
6843
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
6844
  cat conftest.in >> conftest.h
 
6845
  rm -f conftest.in
 
6846
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
6847
    echo "$ac_file is unchanged"
 
6848
    rm -f conftest.h
 
6849
  else
 
6850
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
6851
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
6852
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
6853
      # The file is in a subdirectory.
 
6854
      test ! -d "$ac_dir" && mkdir "$ac_dir"
13693
6855
    fi
13694
 
  else
13695
 
    cat $tmp/config.h
13696
 
    rm -f $tmp/config.h
 
6856
    rm -f $ac_file
 
6857
    mv conftest.h $ac_file
13697
6858
  fi
13698
 
done
13699
 
_ACEOF
13700
 
cat >>$CONFIG_STATUS <<\_ACEOF
13701
 
 
13702
 
#
13703
 
# CONFIG_COMMANDS section.
13704
 
#
13705
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13706
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13707
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13708
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13709
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13710
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
13711
 
         X"$ac_dest" : 'X\(//\)$' \| \
13712
 
         X"$ac_dest" : 'X\(/\)' \| \
13713
 
         .     : '\(.\)' 2>/dev/null ||
13714
 
echo X"$ac_dest" |
13715
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13716
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13717
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13718
 
          /^X\(\/\).*/{ s//\1/; q; }
13719
 
          s/.*/./; q'`
13720
 
  { if $as_mkdir_p; then
13721
 
    mkdir -p "$ac_dir"
13722
 
  else
13723
 
    as_dir="$ac_dir"
13724
 
    as_dirs=
13725
 
    while test ! -d "$as_dir"; do
13726
 
      as_dirs="$as_dir $as_dirs"
13727
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13728
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13729
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13730
 
         X"$as_dir" : 'X\(//\)$' \| \
13731
 
         X"$as_dir" : 'X\(/\)' \| \
13732
 
         .     : '\(.\)' 2>/dev/null ||
13733
 
echo X"$as_dir" |
13734
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13735
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13736
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13737
 
          /^X\(\/\).*/{ s//\1/; q; }
13738
 
          s/.*/./; q'`
13739
 
    done
13740
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13741
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13742
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13743
 
   { (exit 1); exit 1; }; }; }
13744
 
 
13745
 
  ac_builddir=.
13746
 
 
13747
 
if test "$ac_dir" != .; then
13748
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13749
 
  # A "../" for each directory in $ac_dir_suffix.
13750
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13751
 
else
13752
 
  ac_dir_suffix= ac_top_builddir=
13753
 
fi
13754
 
 
13755
 
case $srcdir in
13756
 
  .)  # No --srcdir option.  We are building in place.
13757
 
    ac_srcdir=.
13758
 
    if test -z "$ac_top_builddir"; then
13759
 
       ac_top_srcdir=.
13760
 
    else
13761
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13762
 
    fi ;;
13763
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
13764
 
    ac_srcdir=$srcdir$ac_dir_suffix;
13765
 
    ac_top_srcdir=$srcdir ;;
13766
 
  *) # Relative path.
13767
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13768
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13769
 
esac
13770
 
 
13771
 
# Do not use `cd foo && pwd` to compute absolute paths, because
13772
 
# the directories may not exist.
13773
 
case `pwd` in
13774
 
.) ac_abs_builddir="$ac_dir";;
13775
 
*)
13776
 
  case "$ac_dir" in
13777
 
  .) ac_abs_builddir=`pwd`;;
13778
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13779
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13780
 
  esac;;
13781
 
esac
13782
 
case $ac_abs_builddir in
13783
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13784
 
*)
13785
 
  case ${ac_top_builddir}. in
13786
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13787
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13788
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13789
 
  esac;;
13790
 
esac
13791
 
case $ac_abs_builddir in
13792
 
.) ac_abs_srcdir=$ac_srcdir;;
13793
 
*)
13794
 
  case $ac_srcdir in
13795
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
13796
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13797
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13798
 
  esac;;
13799
 
esac
13800
 
case $ac_abs_builddir in
13801
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13802
 
*)
13803
 
  case $ac_top_srcdir in
13804
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13805
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13806
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13807
 
  esac;;
13808
 
esac
13809
 
 
13810
 
 
13811
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13812
 
echo "$as_me: executing $ac_dest commands" >&6;}
13813
 
  case $ac_dest in
13814
 
    default ) chmod +x ${srcdir}/install-sh ${srcdir}/mkinstalldirs ;;
13815
 
  esac
13816
 
done
13817
 
_ACEOF
13818
 
 
13819
 
cat >>$CONFIG_STATUS <<\_ACEOF
13820
 
 
13821
 
{ (exit 0); exit 0; }
13822
 
_ACEOF
 
6859
fi; done
 
6860
 
 
6861
EOF
 
6862
cat >> $CONFIG_STATUS <<EOF
 
6863
 
 
6864
EOF
 
6865
cat >> $CONFIG_STATUS <<\EOF
 
6866
chmod +x ${srcdir}/install-sh ${srcdir}/mkinstalldirs
 
6867
exit 0
 
6868
EOF
13823
6869
chmod +x $CONFIG_STATUS
13824
 
ac_clean_files=$ac_clean_files_save
13825
 
 
13826
 
 
13827
 
# configure is writing to config.log, and then calls config.status.
13828
 
# config.status does its own redirection, appending to config.log.
13829
 
# Unfortunately, on DOS this fails, as config.log is still kept open
13830
 
# by configure, so config.status won't be able to write to it; its
13831
 
# output is simply discarded.  So we exec the FD to /dev/null,
13832
 
# effectively closing config.log, so it can be properly (re)opened and
13833
 
# appended to by config.status.  When coming back to configure, we
13834
 
# need to make the FD available again.
13835
 
if test "$no_create" != yes; then
13836
 
  ac_cs_success=:
13837
 
  ac_config_status_args=
13838
 
  test "$silent" = yes &&
13839
 
    ac_config_status_args="$ac_config_status_args --quiet"
13840
 
  exec 5>/dev/null
13841
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13842
 
  exec 5>>config.log
13843
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13844
 
  # would make configure fail if this is the last instruction.
13845
 
  $ac_cs_success || { (exit 1); exit 1; }
13846
 
fi
13847
 
 
13848
 
#
13849
 
# CONFIG_SUBDIRS section.
13850
 
#
 
6870
rm -fr confdefs* $ac_clean_files
 
6871
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
6872
 
13851
6873
if test "$no_recursion" != yes; then
13852
6874
 
13853
6875
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13858
6880
      ac_prev=
13859
6881
      continue
13860
6882
    fi
13861
 
    case $ac_arg in
 
6883
    case "$ac_arg" in
13862
6884
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13863
6885
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13864
6886
      ac_prev=cache_file ;;
13865
6887
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13866
 
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13867
 
    | --c=*)
13868
 
      ;;
13869
 
    --config-cache | -C)
 
6888
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13870
6889
      ;;
13871
6890
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13872
6891
      ac_prev=srcdir ;;
13873
6892
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13874
6893
      ;;
13875
 
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13876
 
      ac_prev=prefix ;;
13877
 
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13878
 
      ;;
13879
6894
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13880
6895
    esac
13881
6896
  done
13882
6897
 
13883
 
  # Always prepend --prefix to ensure using the same prefix
13884
 
  # in subdir configurations.
13885
 
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
13886
 
 
13887
 
  ac_popdir=`pwd`
13888
 
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
6898
  for ac_config_dir in testsuite; do
13889
6899
 
13890
6900
    # Do not complain, so a configure script can configure whichever
13891
6901
    # parts of a large source tree are present.
13892
 
    test -d $srcdir/$ac_dir || continue
13893
 
 
13894
 
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13895
 
echo "$as_me: configuring in $ac_dir" >&6;}
13896
 
    { if $as_mkdir_p; then
13897
 
    mkdir -p "$ac_dir"
13898
 
  else
13899
 
    as_dir="$ac_dir"
13900
 
    as_dirs=
13901
 
    while test ! -d "$as_dir"; do
13902
 
      as_dirs="$as_dir $as_dirs"
13903
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13904
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13905
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13906
 
         X"$as_dir" : 'X\(//\)$' \| \
13907
 
         X"$as_dir" : 'X\(/\)' \| \
13908
 
         .     : '\(.\)' 2>/dev/null ||
13909
 
echo X"$as_dir" |
13910
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13911
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13912
 
          /^X\(\/\/\)$/{ s//\1/; q; }
13913
 
          /^X\(\/\).*/{ s//\1/; q; }
13914
 
          s/.*/./; q'`
13915
 
    done
13916
 
    test ! -n "$as_dirs" || mkdir $as_dirs
13917
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13918
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13919
 
   { (exit 1); exit 1; }; }; }
13920
 
 
13921
 
    ac_builddir=.
13922
 
 
13923
 
if test "$ac_dir" != .; then
13924
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13925
 
  # A "../" for each directory in $ac_dir_suffix.
13926
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13927
 
else
13928
 
  ac_dir_suffix= ac_top_builddir=
13929
 
fi
13930
 
 
13931
 
case $srcdir in
13932
 
  .)  # No --srcdir option.  We are building in place.
13933
 
    ac_srcdir=.
13934
 
    if test -z "$ac_top_builddir"; then
13935
 
       ac_top_srcdir=.
13936
 
    else
13937
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13938
 
    fi ;;
13939
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
13940
 
    ac_srcdir=$srcdir$ac_dir_suffix;
13941
 
    ac_top_srcdir=$srcdir ;;
13942
 
  *) # Relative path.
13943
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13944
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13945
 
esac
13946
 
 
13947
 
# Do not use `cd foo && pwd` to compute absolute paths, because
13948
 
# the directories may not exist.
13949
 
case `pwd` in
13950
 
.) ac_abs_builddir="$ac_dir";;
13951
 
*)
13952
 
  case "$ac_dir" in
13953
 
  .) ac_abs_builddir=`pwd`;;
13954
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13955
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13956
 
  esac;;
13957
 
esac
13958
 
case $ac_abs_builddir in
13959
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13960
 
*)
13961
 
  case ${ac_top_builddir}. in
13962
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13963
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13964
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13965
 
  esac;;
13966
 
esac
13967
 
case $ac_abs_builddir in
13968
 
.) ac_abs_srcdir=$ac_srcdir;;
13969
 
*)
13970
 
  case $ac_srcdir in
13971
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
13972
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13973
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13974
 
  esac;;
13975
 
esac
13976
 
case $ac_abs_builddir in
13977
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13978
 
*)
13979
 
  case $ac_top_srcdir in
13980
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13981
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13982
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13983
 
  esac;;
13984
 
esac
13985
 
 
13986
 
 
13987
 
    cd $ac_dir
 
6902
    if test ! -d $srcdir/$ac_config_dir; then
 
6903
      continue
 
6904
    fi
 
6905
 
 
6906
    echo configuring in $ac_config_dir
 
6907
 
 
6908
    case "$srcdir" in
 
6909
    .) ;;
 
6910
    *)
 
6911
      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
 
6912
      else
 
6913
        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
 
6914
      fi
 
6915
      ;;
 
6916
    esac
 
6917
 
 
6918
    ac_popdir=`pwd`
 
6919
    cd $ac_config_dir
 
6920
 
 
6921
      # A "../" for each directory in /$ac_config_dir.
 
6922
      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
 
6923
 
 
6924
    case "$srcdir" in
 
6925
    .) # No --srcdir option.  We are building in place.
 
6926
      ac_sub_srcdir=$srcdir ;;
 
6927
    /*) # Absolute path.
 
6928
      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
 
6929
    *) # Relative path.
 
6930
      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
 
6931
    esac
13988
6932
 
13989
6933
    # Check for guested configure; otherwise get Cygnus style configure.
13990
 
    if test -f $ac_srcdir/configure.gnu; then
13991
 
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
13992
 
    elif test -f $ac_srcdir/configure; then
13993
 
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
13994
 
    elif test -f $ac_srcdir/configure.in; then
 
6934
    if test -f $ac_sub_srcdir/configure; then
 
6935
      ac_sub_configure=$ac_sub_srcdir/configure
 
6936
    elif test -f $ac_sub_srcdir/configure.in; then
13995
6937
      ac_sub_configure=$ac_configure
13996
6938
    else
13997
 
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13998
 
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
6939
      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13999
6940
      ac_sub_configure=
14000
6941
    fi
14001
6942
 
14002
6943
    # The recursion is here.
14003
6944
    if test -n "$ac_sub_configure"; then
 
6945
 
14004
6946
      # Make the cache file name correct relative to the subdirectory.
14005
 
      case $cache_file in
14006
 
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
6947
      case "$cache_file" in
 
6948
      /*) ac_sub_cache_file=$cache_file ;;
14007
6949
      *) # Relative path.
14008
 
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
 
6950
        ac_sub_cache_file="$ac_dots$cache_file" ;;
14009
6951
      esac
 
6952
  case "$ac_given_INSTALL" in
 
6953
        [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
6954
        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
6955
        esac
14010
6956
 
14011
 
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14012
 
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
6957
      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
14013
6958
      # The eval makes quoting arguments work.
14014
 
      eval $ac_sub_configure $ac_sub_configure_args \
14015
 
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
14016
 
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
14017
 
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
14018
 
   { (exit 1); exit 1; }; }
 
6959
      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
 
6960
      then :
 
6961
      else
 
6962
        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
 
6963
      fi
14019
6964
    fi
14020
6965
 
14021
 
    cd "$ac_popdir"
 
6966
    cd $ac_popdir
14022
6967
  done
14023
6968
fi
14024
6969