Fixup readline and sim including of override.m4
[deliverable/binutils-gdb.git] / readline / examples / rlfe / configure
CommitLineData
b585a9fa
EZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="rlfe.c"
275ac_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 VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
276ac_subst_files=''
d6416cdc 277ac_pwd=`pwd`
b585a9fa
EZ
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_env_CC_set=${CC+set}
718ac_env_CC_value=$CC
719ac_cv_env_CC_set=${CC+set}
720ac_cv_env_CC_value=$CC
721ac_env_CFLAGS_set=${CFLAGS+set}
722ac_env_CFLAGS_value=$CFLAGS
723ac_cv_env_CFLAGS_set=${CFLAGS+set}
724ac_cv_env_CFLAGS_value=$CFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733ac_env_CPP_set=${CPP+set}
734ac_env_CPP_value=$CPP
735ac_cv_env_CPP_set=${CPP+set}
736ac_cv_env_CPP_value=$CPP
737
738#
739# Report the --help message.
740#
741if test "$ac_init_help" = "long"; then
742 # Omit some internal or obsolete options to make the list less imposing.
743 # This message is too long to be a string in the A/UX 3.1 sh.
744 cat <<_ACEOF
745\`configure' configures this package to adapt to many kinds of systems.
746
747Usage: $0 [OPTION]... [VAR=VALUE]...
748
749To assign environment variables (e.g., CC, CFLAGS...), specify them as
750VAR=VALUE. See below for descriptions of some of the useful variables.
751
752Defaults for the options are specified in brackets.
753
754Configuration:
755 -h, --help display this help and exit
756 --help=short display options specific to this package
757 --help=recursive display the short help of all the included packages
758 -V, --version display version information and exit
759 -q, --quiet, --silent do not print \`checking...' messages
760 --cache-file=FILE cache test results in FILE [disabled]
761 -C, --config-cache alias for \`--cache-file=config.cache'
762 -n, --no-create do not create output files
763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764
765_ACEOF
766
767 cat <<_ACEOF
768Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
770 [$ac_default_prefix]
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
772 [PREFIX]
773
774By default, \`make install' will install all the files in
775\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
776an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777for instance \`--prefix=\$HOME'.
778
779For better control, use the options below.
780
781Fine tuning of the installation directories:
782 --bindir=DIR user executables [EPREFIX/bin]
783 --sbindir=DIR system admin executables [EPREFIX/sbin]
784 --libexecdir=DIR program executables [EPREFIX/libexec]
785 --datadir=DIR read-only architecture-independent data [PREFIX/share]
786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
789 --libdir=DIR object code libraries [EPREFIX/lib]
790 --includedir=DIR C header files [PREFIX/include]
791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
792 --infodir=DIR info documentation [PREFIX/info]
793 --mandir=DIR man documentation [PREFIX/man]
794_ACEOF
795
796 cat <<\_ACEOF
797_ACEOF
798fi
799
800if test -n "$ac_init_help"; then
801
802 cat <<\_ACEOF
803
804Optional Packages:
805 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
806 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
807 --with-pty-mode=mode default mode for ptys
808 --with-pty-group=group default group for ptys
809
810Some influential environment variables:
811 CC C compiler command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
814 nonstandard directory <lib dir>
815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
816 headers in a nonstandard directory <include dir>
817 CPP C preprocessor
818
819Use these variables to override the choices made by `configure' or to help
820it to find libraries and programs with nonstandard names/locations.
821
822_ACEOF
823fi
824
825if test "$ac_init_help" = "recursive"; then
826 # If there are subdirs, report their specific --help.
827 ac_popdir=`pwd`
828 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
829 test -d $ac_dir || continue
830 ac_builddir=.
831
832if test "$ac_dir" != .; then
833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
834 # A "../" for each directory in $ac_dir_suffix.
835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
836else
837 ac_dir_suffix= ac_top_builddir=
838fi
839
840case $srcdir in
841 .) # No --srcdir option. We are building in place.
842 ac_srcdir=.
843 if test -z "$ac_top_builddir"; then
844 ac_top_srcdir=.
845 else
846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
847 fi ;;
848 [\\/]* | ?:[\\/]* ) # Absolute path.
849 ac_srcdir=$srcdir$ac_dir_suffix;
850 ac_top_srcdir=$srcdir ;;
851 *) # Relative path.
852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
854esac
855
856# Do not use `cd foo && pwd` to compute absolute paths, because
857# the directories may not exist.
858case `pwd` in
859.) ac_abs_builddir="$ac_dir";;
860*)
861 case "$ac_dir" in
862 .) ac_abs_builddir=`pwd`;;
863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
864 *) ac_abs_builddir=`pwd`/"$ac_dir";;
865 esac;;
866esac
867case $ac_abs_builddir in
868.) ac_abs_top_builddir=${ac_top_builddir}.;;
869*)
870 case ${ac_top_builddir}. in
871 .) ac_abs_top_builddir=$ac_abs_builddir;;
872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
874 esac;;
875esac
876case $ac_abs_builddir in
877.) ac_abs_srcdir=$ac_srcdir;;
878*)
879 case $ac_srcdir in
880 .) ac_abs_srcdir=$ac_abs_builddir;;
881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
883 esac;;
884esac
885case $ac_abs_builddir in
886.) ac_abs_top_srcdir=$ac_top_srcdir;;
887*)
888 case $ac_top_srcdir in
889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
892 esac;;
893esac
894
895 cd $ac_dir
896 # Check for guested configure; otherwise get Cygnus style configure.
897 if test -f $ac_srcdir/configure.gnu; then
898 echo
899 $SHELL $ac_srcdir/configure.gnu --help=recursive
900 elif test -f $ac_srcdir/configure; then
901 echo
902 $SHELL $ac_srcdir/configure --help=recursive
903 elif test -f $ac_srcdir/configure.ac ||
904 test -f $ac_srcdir/configure.in; then
905 echo
906 $ac_configure --help
907 else
908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
909 fi
910 cd $ac_popdir
911 done
912fi
913
914test -n "$ac_init_help" && exit 0
915if $ac_init_version; then
916 cat <<\_ACEOF
917
918Copyright (C) 2003 Free Software Foundation, Inc.
919This configure script is free software; the Free Software Foundation
920gives unlimited permission to copy, distribute and modify it.
921_ACEOF
922 exit 0
923fi
924exec 5>config.log
925cat >&5 <<_ACEOF
926This file contains any messages produced by compilers while
927running configure, to aid debugging if configure makes a mistake.
928
929It was created by $as_me, which was
930generated by GNU Autoconf 2.59. Invocation command line was
931
932 $ $0 $@
933
934_ACEOF
935{
936cat <<_ASUNAME
937## --------- ##
938## Platform. ##
939## --------- ##
940
941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
942uname -m = `(uname -m) 2>/dev/null || echo unknown`
943uname -r = `(uname -r) 2>/dev/null || echo unknown`
944uname -s = `(uname -s) 2>/dev/null || echo unknown`
945uname -v = `(uname -v) 2>/dev/null || echo unknown`
946
947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
948/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
949
950/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
951/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
953hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
954/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
955/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
956/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
957
958_ASUNAME
959
960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961for as_dir in $PATH
962do
963 IFS=$as_save_IFS
964 test -z "$as_dir" && as_dir=.
965 echo "PATH: $as_dir"
966done
967
968} >&5
969
970cat >&5 <<_ACEOF
971
972
973## ----------- ##
974## Core tests. ##
975## ----------- ##
976
977_ACEOF
978
979
980# Keep a trace of the command line.
981# Strip out --no-create and --no-recursion so they do not pile up.
982# Strip out --silent because we don't want to record it for future runs.
983# Also quote any args containing shell meta-characters.
984# Make two passes to allow for proper duplicate-argument suppression.
985ac_configure_args=
986ac_configure_args0=
987ac_configure_args1=
988ac_sep=
989ac_must_keep_next=false
990for ac_pass in 1 2
991do
992 for ac_arg
993 do
994 case $ac_arg in
995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
998 continue ;;
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1001 esac
1002 case $ac_pass in
1003 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1004 2)
1005 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1006 if test $ac_must_keep_next = true; then
1007 ac_must_keep_next=false # Got value, back to normal.
1008 else
1009 case $ac_arg in
1010 *=* | --config-cache | -C | -disable-* | --disable-* \
1011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1013 | -with-* | --with-* | -without-* | --without-* | --x)
1014 case "$ac_configure_args0 " in
1015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1016 esac
1017 ;;
1018 -* ) ac_must_keep_next=true ;;
1019 esac
1020 fi
1021 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1022 # Get rid of the leading space.
1023 ac_sep=" "
1024 ;;
1025 esac
1026 done
1027done
1028$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1029$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1030
1031# When interrupted or exit'd, cleanup temporary files, and complete
1032# config.log. We remove comments because anyway the quotes in there
1033# would cause problems or look ugly.
1034# WARNING: Be sure not to use single quotes in there, as some shells,
1035# such as our DU 5.0 friend, will then `close' the trap.
1036trap 'exit_status=$?
1037 # Save into config.log some information that might help in debugging.
1038 {
1039 echo
1040
1041 cat <<\_ASBOX
1042## ---------------- ##
1043## Cache variables. ##
1044## ---------------- ##
1045_ASBOX
1046 echo
1047 # The following way of writing the cache mishandles newlines in values,
1048{
1049 (set) 2>&1 |
1050 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1051 *ac_space=\ *)
1052 sed -n \
1053 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1055 ;;
1056 *)
1057 sed -n \
1058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1059 ;;
1060 esac;
1061}
1062 echo
1063
1064 cat <<\_ASBOX
1065## ----------------- ##
1066## Output variables. ##
1067## ----------------- ##
1068_ASBOX
1069 echo
1070 for ac_var in $ac_subst_vars
1071 do
1072 eval ac_val=$`echo $ac_var`
1073 echo "$ac_var='"'"'$ac_val'"'"'"
1074 done | sort
1075 echo
1076
1077 if test -n "$ac_subst_files"; then
1078 cat <<\_ASBOX
1079## ------------- ##
1080## Output files. ##
1081## ------------- ##
1082_ASBOX
1083 echo
1084 for ac_var in $ac_subst_files
1085 do
1086 eval ac_val=$`echo $ac_var`
1087 echo "$ac_var='"'"'$ac_val'"'"'"
1088 done | sort
1089 echo
1090 fi
1091
1092 if test -s confdefs.h; then
1093 cat <<\_ASBOX
1094## ----------- ##
1095## confdefs.h. ##
1096## ----------- ##
1097_ASBOX
1098 echo
1099 sed "/^$/d" confdefs.h | sort
1100 echo
1101 fi
1102 test "$ac_signal" != 0 &&
1103 echo "$as_me: caught signal $ac_signal"
1104 echo "$as_me: exit $exit_status"
1105 } >&5
1106 rm -f core *.core &&
1107 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1108 exit $exit_status
1109 ' 0
1110for ac_signal in 1 2 13 15; do
1111 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1112done
1113ac_signal=0
1114
1115# confdefs.h avoids OS command line length limits that DEFS can exceed.
1116rm -rf conftest* confdefs.h
1117# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1118echo >confdefs.h
1119
1120# Predefined preprocessor variables.
1121
1122cat >>confdefs.h <<_ACEOF
1123#define PACKAGE_NAME "$PACKAGE_NAME"
1124_ACEOF
1125
1126
1127cat >>confdefs.h <<_ACEOF
1128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1129_ACEOF
1130
1131
1132cat >>confdefs.h <<_ACEOF
1133#define PACKAGE_VERSION "$PACKAGE_VERSION"
1134_ACEOF
1135
1136
1137cat >>confdefs.h <<_ACEOF
1138#define PACKAGE_STRING "$PACKAGE_STRING"
1139_ACEOF
1140
1141
1142cat >>confdefs.h <<_ACEOF
1143#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1144_ACEOF
1145
1146
1147# Let the site file select an alternate cache file if it wants to.
1148# Prefer explicitly selected file to automatically selected ones.
1149if test -z "$CONFIG_SITE"; then
1150 if test "x$prefix" != xNONE; then
1151 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1152 else
1153 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1154 fi
1155fi
1156for ac_site_file in $CONFIG_SITE; do
1157 if test -r "$ac_site_file"; then
1158 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1159echo "$as_me: loading site script $ac_site_file" >&6;}
1160 sed 's/^/| /' "$ac_site_file" >&5
1161 . "$ac_site_file"
1162 fi
1163done
1164
1165if test -r "$cache_file"; then
1166 # Some versions of bash will fail to source /dev/null (special
1167 # files actually), so we avoid doing that.
1168 if test -f "$cache_file"; then
1169 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1170echo "$as_me: loading cache $cache_file" >&6;}
1171 case $cache_file in
1172 [\\/]* | ?:[\\/]* ) . $cache_file;;
1173 *) . ./$cache_file;;
1174 esac
1175 fi
1176else
1177 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1178echo "$as_me: creating cache $cache_file" >&6;}
1179 >$cache_file
1180fi
1181
1182# Check that the precious variables saved in the cache have kept the same
1183# value.
1184ac_cache_corrupted=false
1185for ac_var in `(set) 2>&1 |
1186 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1188 eval ac_new_set=\$ac_env_${ac_var}_set
1189 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1190 eval ac_new_val="\$ac_env_${ac_var}_value"
1191 case $ac_old_set,$ac_new_set in
1192 set,)
1193 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1194echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1195 ac_cache_corrupted=: ;;
1196 ,set)
1197 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1198echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1199 ac_cache_corrupted=: ;;
1200 ,);;
1201 *)
1202 if test "x$ac_old_val" != "x$ac_new_val"; then
d6416cdc
RW
1203 # differences in whitespace do not lead to failure.
1204 ac_old_val_w=`echo x $ac_old_val`
1205 ac_new_val_w=`echo x $ac_new_val`
1206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1207 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
b585a9fa 1208echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
d6416cdc
RW
1209 ac_cache_corrupted=:
1210 else
1211 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1212echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1213 eval $ac_var=\$ac_old_val
1214 fi
1215 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1216echo "$as_me: former value: \`$ac_old_val'" >&2;}
1217 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1218echo "$as_me: current value: \`$ac_new_val'" >&2;}
b585a9fa
EZ
1219 fi;;
1220 esac
1221 # Pass precious variables to config.status.
1222 if test "$ac_new_set" = set; then
1223 case $ac_new_val in
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1226 *) ac_arg=$ac_var=$ac_new_val ;;
1227 esac
1228 case " $ac_configure_args " in
1229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1230 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1231 esac
1232 fi
1233done
1234if $ac_cache_corrupted; then
d6416cdc
RW
1235 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1236echo "$as_me: error: in \`$ac_pwd':" >&2;}
b585a9fa
EZ
1237 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1238echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1239 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1240echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1241 { (exit 1); exit 1; }; }
1242fi
1243
1244ac_ext=c
1245ac_cpp='$CPP $CPPFLAGS'
1246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1248ac_compiler_gnu=$ac_cv_c_compiler_gnu
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
d6416cdc
RW
1266
1267
1268
b585a9fa
EZ
1269
1270
1271 ac_config_headers="$ac_config_headers config.h"
1272
1273VERSION=0.4
1274
1275
1276
1277old_CFLAGS="$CFLAGS"
1278ac_ext=c
1279ac_cpp='$CPP $CPPFLAGS'
1280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283if test -n "$ac_tool_prefix"; then
1284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1285set dummy ${ac_tool_prefix}gcc; ac_word=$2
1286echo "$as_me:$LINENO: checking for $ac_word" >&5
1287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288if test "${ac_cv_prog_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290else
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC="$CC" # Let the user override the test.
1293else
1294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1295for as_dir in $PATH
1296do
1297 IFS=$as_save_IFS
1298 test -z "$as_dir" && as_dir=.
1299 for ac_exec_ext in '' $ac_executable_extensions; do
1300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1303 break 2
1304 fi
1305done
1306done
1307
1308fi
1309fi
1310CC=$ac_cv_prog_CC
1311if test -n "$CC"; then
1312 echo "$as_me:$LINENO: result: $CC" >&5
1313echo "${ECHO_T}$CC" >&6
1314else
1315 echo "$as_me:$LINENO: result: no" >&5
1316echo "${ECHO_T}no" >&6
1317fi
1318
1319fi
1320if test -z "$ac_cv_prog_CC"; then
1321 ac_ct_CC=$CC
1322 # Extract the first word of "gcc", so it can be a program name with args.
1323set dummy gcc; ac_word=$2
1324echo "$as_me:$LINENO: checking for $ac_word" >&5
1325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328else
1329 if test -n "$ac_ct_CC"; then
1330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1331else
1332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333for as_dir in $PATH
1334do
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_ac_ct_CC="gcc"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 break 2
1342 fi
1343done
1344done
1345
1346fi
1347fi
1348ac_ct_CC=$ac_cv_prog_ac_ct_CC
1349if test -n "$ac_ct_CC"; then
1350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1351echo "${ECHO_T}$ac_ct_CC" >&6
1352else
1353 echo "$as_me:$LINENO: result: no" >&5
1354echo "${ECHO_T}no" >&6
1355fi
1356
1357 CC=$ac_ct_CC
1358else
1359 CC="$ac_cv_prog_CC"
1360fi
1361
1362if test -z "$CC"; then
1363 if test -n "$ac_tool_prefix"; then
1364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1365set dummy ${ac_tool_prefix}cc; ac_word=$2
1366echo "$as_me:$LINENO: checking for $ac_word" >&5
1367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368if test "${ac_cv_prog_CC+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370else
1371 if test -n "$CC"; then
1372 ac_cv_prog_CC="$CC" # Let the user override the test.
1373else
1374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375for as_dir in $PATH
1376do
1377 IFS=$as_save_IFS
1378 test -z "$as_dir" && as_dir=.
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381 ac_cv_prog_CC="${ac_tool_prefix}cc"
1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 break 2
1384 fi
1385done
1386done
1387
1388fi
1389fi
1390CC=$ac_cv_prog_CC
1391if test -n "$CC"; then
1392 echo "$as_me:$LINENO: result: $CC" >&5
1393echo "${ECHO_T}$CC" >&6
1394else
1395 echo "$as_me:$LINENO: result: no" >&5
1396echo "${ECHO_T}no" >&6
1397fi
1398
1399fi
1400if test -z "$ac_cv_prog_CC"; then
1401 ac_ct_CC=$CC
1402 # Extract the first word of "cc", so it can be a program name with args.
1403set dummy cc; ac_word=$2
1404echo "$as_me:$LINENO: checking for $ac_word" >&5
1405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 if test -n "$ac_ct_CC"; then
1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1411else
1412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413for as_dir in $PATH
1414do
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_ac_ct_CC="cc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1421 break 2
1422 fi
1423done
1424done
1425
1426fi
1427fi
1428ac_ct_CC=$ac_cv_prog_ac_ct_CC
1429if test -n "$ac_ct_CC"; then
1430 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1431echo "${ECHO_T}$ac_ct_CC" >&6
1432else
1433 echo "$as_me:$LINENO: result: no" >&5
1434echo "${ECHO_T}no" >&6
1435fi
1436
1437 CC=$ac_ct_CC
1438else
1439 CC="$ac_cv_prog_CC"
1440fi
1441
1442fi
1443if test -z "$CC"; then
1444 # Extract the first word of "cc", so it can be a program name with args.
1445set dummy cc; ac_word=$2
1446echo "$as_me:$LINENO: checking for $ac_word" >&5
1447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448if test "${ac_cv_prog_CC+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1450else
1451 if test -n "$CC"; then
1452 ac_cv_prog_CC="$CC" # Let the user override the test.
1453else
1454 ac_prog_rejected=no
1455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456for as_dir in $PATH
1457do
1458 IFS=$as_save_IFS
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1463 ac_prog_rejected=yes
1464 continue
1465 fi
1466 ac_cv_prog_CC="cc"
1467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 break 2
1469 fi
1470done
1471done
1472
1473if test $ac_prog_rejected = yes; then
1474 # We found a bogon in the path, so make sure we never use it.
1475 set dummy $ac_cv_prog_CC
1476 shift
1477 if test $# != 0; then
1478 # We chose a different compiler from the bogus one.
1479 # However, it has the same basename, so the bogon will be chosen
1480 # first if we set CC to just the basename; use the full file name.
1481 shift
1482 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1483 fi
1484fi
1485fi
1486fi
1487CC=$ac_cv_prog_CC
1488if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490echo "${ECHO_T}$CC" >&6
1491else
1492 echo "$as_me:$LINENO: result: no" >&5
1493echo "${ECHO_T}no" >&6
1494fi
1495
1496fi
1497if test -z "$CC"; then
1498 if test -n "$ac_tool_prefix"; then
1499 for ac_prog in cl
1500 do
1501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1503echo "$as_me:$LINENO: checking for $ac_word" >&5
1504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505if test "${ac_cv_prog_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 if test -n "$CC"; then
1509 ac_cv_prog_CC="$CC" # Let the user override the test.
1510else
1511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512for as_dir in $PATH
1513do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 break 2
1521 fi
1522done
1523done
1524
1525fi
1526fi
1527CC=$ac_cv_prog_CC
1528if test -n "$CC"; then
1529 echo "$as_me:$LINENO: result: $CC" >&5
1530echo "${ECHO_T}$CC" >&6
1531else
1532 echo "$as_me:$LINENO: result: no" >&5
1533echo "${ECHO_T}no" >&6
1534fi
1535
1536 test -n "$CC" && break
1537 done
1538fi
1539if test -z "$CC"; then
1540 ac_ct_CC=$CC
1541 for ac_prog in cl
1542do
1543 # Extract the first word of "$ac_prog", so it can be a program name with args.
1544set dummy $ac_prog; ac_word=$2
1545echo "$as_me:$LINENO: checking for $ac_word" >&5
1546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550 if test -n "$ac_ct_CC"; then
1551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1552else
1553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_ac_ct_CC="$ac_prog"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1563 fi
1564done
1565done
1566
1567fi
1568fi
1569ac_ct_CC=$ac_cv_prog_ac_ct_CC
1570if test -n "$ac_ct_CC"; then
1571 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1572echo "${ECHO_T}$ac_ct_CC" >&6
1573else
1574 echo "$as_me:$LINENO: result: no" >&5
1575echo "${ECHO_T}no" >&6
1576fi
1577
1578 test -n "$ac_ct_CC" && break
1579done
1580
1581 CC=$ac_ct_CC
1582fi
1583
1584fi
1585
1586
d6416cdc
RW
1587test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1588echo "$as_me: error: in \`$ac_pwd':" >&2;}
1589{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
b585a9fa
EZ
1590See \`config.log' for more details." >&5
1591echo "$as_me: error: no acceptable C compiler found in \$PATH
1592See \`config.log' for more details." >&2;}
d6416cdc 1593 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
1594
1595# Provide some information about the compiler.
1596echo "$as_me:$LINENO:" \
1597 "checking for C compiler version" >&5
1598ac_compiler=`set X $ac_compile; echo $2`
1599{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1600 (eval $ac_compiler --version </dev/null >&5) 2>&5
1601 ac_status=$?
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }
1604{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1605 (eval $ac_compiler -v </dev/null >&5) 2>&5
1606 ac_status=$?
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }
1609{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1610 (eval $ac_compiler -V </dev/null >&5) 2>&5
1611 ac_status=$?
1612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613 (exit $ac_status); }
1614
1615cat >conftest.$ac_ext <<_ACEOF
1616/* confdefs.h. */
1617_ACEOF
1618cat confdefs.h >>conftest.$ac_ext
1619cat >>conftest.$ac_ext <<_ACEOF
1620/* end confdefs.h. */
1621
1622int
1623main ()
1624{
1625
1626 ;
1627 return 0;
1628}
1629_ACEOF
1630ac_clean_files_save=$ac_clean_files
1631ac_clean_files="$ac_clean_files a.out a.exe b.out"
1632# Try to create an executable without -o first, disregard a.out.
1633# It will help us diagnose broken compilers, and finding out an intuition
1634# of exeext.
1635echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1636echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1637ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1638if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1639 (eval $ac_link_default) 2>&5
1640 ac_status=$?
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }; then
1643 # Find the output, starting from the most likely. This scheme is
1644# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1645# resort.
1646
1647# Be careful to initialize this variable, since it used to be cached.
1648# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1649ac_cv_exeext=
1650# b.out is created by i960 compilers.
1651for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1652do
1653 test -f "$ac_file" || continue
1654 case $ac_file in
1655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1656 ;;
1657 conftest.$ac_ext )
1658 # This is the source file.
1659 ;;
1660 [ab].out )
1661 # We found the default executable, but exeext='' is most
1662 # certainly right.
1663 break;;
1664 *.* )
1665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1666 # FIXME: I believe we export ac_cv_exeext for Libtool,
1667 # but it would be cool to find out if it's true. Does anybody
1668 # maintain Libtool? --akim.
1669 export ac_cv_exeext
1670 break;;
1671 * )
1672 break;;
1673 esac
1674done
1675else
1676 echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
d6416cdc
RW
1679{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1680echo "$as_me: error: in \`$ac_pwd':" >&2;}
b585a9fa
EZ
1681{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1682See \`config.log' for more details." >&5
1683echo "$as_me: error: C compiler cannot create executables
1684See \`config.log' for more details." >&2;}
d6416cdc 1685 { (exit 77); exit 77; }; }; }
b585a9fa
EZ
1686fi
1687
1688ac_exeext=$ac_cv_exeext
1689echo "$as_me:$LINENO: result: $ac_file" >&5
1690echo "${ECHO_T}$ac_file" >&6
1691
1692# Check the compiler produces executables we can run. If not, either
1693# the compiler is broken, or we cross compile.
1694echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1695echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1696# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1697# If not cross compiling, check that we can run a simple program.
1698if test "$cross_compiling" != yes; then
1699 if { ac_try='./$ac_file'
1700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1701 (eval $ac_try) 2>&5
1702 ac_status=$?
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }; }; then
1705 cross_compiling=no
1706 else
1707 if test "$cross_compiling" = maybe; then
1708 cross_compiling=yes
1709 else
d6416cdc
RW
1710 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1711echo "$as_me: error: in \`$ac_pwd':" >&2;}
1712{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
b585a9fa
EZ
1713If you meant to cross compile, use \`--host'.
1714See \`config.log' for more details." >&5
1715echo "$as_me: error: cannot run C compiled programs.
1716If you meant to cross compile, use \`--host'.
1717See \`config.log' for more details." >&2;}
d6416cdc 1718 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
1719 fi
1720 fi
1721fi
1722echo "$as_me:$LINENO: result: yes" >&5
1723echo "${ECHO_T}yes" >&6
1724
1725rm -f a.out a.exe conftest$ac_cv_exeext b.out
1726ac_clean_files=$ac_clean_files_save
1727# Check the compiler produces executables we can run. If not, either
1728# the compiler is broken, or we cross compile.
1729echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1730echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1731echo "$as_me:$LINENO: result: $cross_compiling" >&5
1732echo "${ECHO_T}$cross_compiling" >&6
1733
1734echo "$as_me:$LINENO: checking for suffix of executables" >&5
1735echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1737 (eval $ac_link) 2>&5
1738 ac_status=$?
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1742# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1743# work properly (i.e., refer to `conftest.exe'), while it won't with
1744# `rm'.
1745for ac_file in conftest.exe conftest conftest.*; do
1746 test -f "$ac_file" || continue
1747 case $ac_file in
1748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1750 export ac_cv_exeext
1751 break;;
1752 * ) break;;
1753 esac
1754done
1755else
d6416cdc
RW
1756 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1757echo "$as_me: error: in \`$ac_pwd':" >&2;}
1758{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
b585a9fa
EZ
1759See \`config.log' for more details." >&5
1760echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1761See \`config.log' for more details." >&2;}
d6416cdc 1762 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
1763fi
1764
1765rm -f conftest$ac_cv_exeext
1766echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1767echo "${ECHO_T}$ac_cv_exeext" >&6
1768
1769rm -f conftest.$ac_ext
1770EXEEXT=$ac_cv_exeext
1771ac_exeext=$EXEEXT
1772echo "$as_me:$LINENO: checking for suffix of object files" >&5
1773echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1774if test "${ac_cv_objext+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 cat >conftest.$ac_ext <<_ACEOF
1778/* confdefs.h. */
1779_ACEOF
1780cat confdefs.h >>conftest.$ac_ext
1781cat >>conftest.$ac_ext <<_ACEOF
1782/* end confdefs.h. */
1783
1784int
1785main ()
1786{
1787
1788 ;
1789 return 0;
1790}
1791_ACEOF
1792rm -f conftest.o conftest.obj
1793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1794 (eval $ac_compile) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1799 case $ac_file in
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1802 break;;
1803 esac
1804done
1805else
1806 echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
d6416cdc
RW
1809{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1810echo "$as_me: error: in \`$ac_pwd':" >&2;}
b585a9fa
EZ
1811{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1812See \`config.log' for more details." >&5
1813echo "$as_me: error: cannot compute suffix of object files: cannot compile
1814See \`config.log' for more details." >&2;}
d6416cdc 1815 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
1816fi
1817
1818rm -f conftest.$ac_cv_objext conftest.$ac_ext
1819fi
1820echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1821echo "${ECHO_T}$ac_cv_objext" >&6
1822OBJEXT=$ac_cv_objext
1823ac_objext=$OBJEXT
1824echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1825echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1826if test "${ac_cv_c_compiler_gnu+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1828else
1829 cat >conftest.$ac_ext <<_ACEOF
1830/* confdefs.h. */
1831_ACEOF
1832cat confdefs.h >>conftest.$ac_ext
1833cat >>conftest.$ac_ext <<_ACEOF
1834/* end confdefs.h. */
1835
1836int
1837main ()
1838{
1839#ifndef __GNUC__
1840 choke me
1841#endif
1842
1843 ;
1844 return 0;
1845}
1846_ACEOF
1847rm -f conftest.$ac_objext
1848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>conftest.er1
1850 ac_status=$?
1851 grep -v '^ *+' conftest.er1 >conftest.err
1852 rm -f conftest.er1
1853 cat conftest.err >&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); } &&
1856 { ac_try='test -z "$ac_c_werror_flag"
1857 || test ! -s conftest.err'
1858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1859 (eval $ac_try) 2>&5
1860 ac_status=$?
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; } &&
1863 { ac_try='test -s conftest.$ac_objext'
1864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1865 (eval $ac_try) 2>&5
1866 ac_status=$?
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; }; then
1869 ac_compiler_gnu=yes
1870else
1871 echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874ac_compiler_gnu=no
1875fi
1876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1877ac_cv_c_compiler_gnu=$ac_compiler_gnu
1878
1879fi
1880echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1881echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1882GCC=`test $ac_compiler_gnu = yes && echo yes`
1883ac_test_CFLAGS=${CFLAGS+set}
1884ac_save_CFLAGS=$CFLAGS
1885CFLAGS="-g"
1886echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1887echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1888if test "${ac_cv_prog_cc_g+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891 cat >conftest.$ac_ext <<_ACEOF
1892/* confdefs.h. */
1893_ACEOF
1894cat confdefs.h >>conftest.$ac_ext
1895cat >>conftest.$ac_ext <<_ACEOF
1896/* end confdefs.h. */
1897
1898int
1899main ()
1900{
1901
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906rm -f conftest.$ac_objext
1907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>conftest.er1
1909 ac_status=$?
1910 grep -v '^ *+' conftest.er1 >conftest.err
1911 rm -f conftest.er1
1912 cat conftest.err >&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try='test -z "$ac_c_werror_flag"
1916 || test ! -s conftest.err'
1917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1918 (eval $ac_try) 2>&5
1919 ac_status=$?
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; } &&
1922 { ac_try='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1924 (eval $ac_try) 2>&5
1925 ac_status=$?
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1928 ac_cv_prog_cc_g=yes
1929else
1930 echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933ac_cv_prog_cc_g=no
1934fi
1935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1939if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS=$ac_save_CFLAGS
1941elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1943 CFLAGS="-g -O2"
1944 else
1945 CFLAGS="-g"
1946 fi
1947else
1948 if test "$GCC" = yes; then
1949 CFLAGS="-O2"
1950 else
1951 CFLAGS=
1952 fi
1953fi
1954echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1955echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1956if test "${ac_cv_prog_cc_stdc+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959 ac_cv_prog_cc_stdc=no
1960ac_save_CC=$CC
1961cat >conftest.$ac_ext <<_ACEOF
1962/* confdefs.h. */
1963_ACEOF
1964cat confdefs.h >>conftest.$ac_ext
1965cat >>conftest.$ac_ext <<_ACEOF
1966/* end confdefs.h. */
1967#include <stdarg.h>
1968#include <stdio.h>
1969#include <sys/types.h>
1970#include <sys/stat.h>
1971/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1972struct buf { int x; };
1973FILE * (*rcsopen) (struct buf *, struct stat *, int);
1974static char *e (p, i)
1975 char **p;
1976 int i;
1977{
1978 return p[i];
1979}
1980static char *f (char * (*g) (char **, int), char **p, ...)
1981{
1982 char *s;
1983 va_list v;
1984 va_start (v,p);
1985 s = g (p, va_arg (v,int));
1986 va_end (v);
1987 return s;
1988}
1989
1990/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1991 function prototypes and stuff, but not '\xHH' hex character constants.
1992 These don't provoke an error unfortunately, instead are silently treated
1993 as 'x'. The following induces an error, until -std1 is added to get
1994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1995 array size at least. It's necessary to write '\x00'==0 to get something
1996 that's true only with -std1. */
1997int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1998
1999int test (int i, double x);
2000struct s1 {int (*f) (int a);};
2001struct s2 {int (*f) (double a);};
2002int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2003int argc;
2004char **argv;
2005int
2006main ()
2007{
2008return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013# Don't try gcc -ansi; that turns off useful extensions and
2014# breaks some systems' header files.
2015# AIX -qlanglvl=ansi
2016# Ultrix and OSF/1 -std1
2017# HP-UX 10.20 and later -Ae
2018# HP-UX older versions -Aa -D_HPUX_SOURCE
2019# SVR4 -Xc -D__EXTENSIONS__
2020for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2021do
2022 CC="$ac_save_CC $ac_arg"
2023 rm -f conftest.$ac_objext
2024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2026 ac_status=$?
2027 grep -v '^ *+' conftest.er1 >conftest.err
2028 rm -f conftest.er1
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_cv_prog_cc_stdc=$ac_arg
2046break
2047else
2048 echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051fi
2052rm -f conftest.err conftest.$ac_objext
2053done
2054rm -f conftest.$ac_ext conftest.$ac_objext
2055CC=$ac_save_CC
2056
2057fi
2058
2059case "x$ac_cv_prog_cc_stdc" in
2060 x|xno)
2061 echo "$as_me:$LINENO: result: none needed" >&5
2062echo "${ECHO_T}none needed" >&6 ;;
2063 *)
2064 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2065echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2066 CC="$CC $ac_cv_prog_cc_stdc" ;;
2067esac
2068
2069# Some people use a C++ compiler to compile C. Since we use `exit',
2070# in C++ we need to declare it. In case someone uses the same compiler
2071# for both compiling C and C++ we need to have the C++ compiler decide
2072# the declaration of exit, since it's the most demanding environment.
2073cat >conftest.$ac_ext <<_ACEOF
2074#ifndef __cplusplus
2075 choke me
2076#endif
2077_ACEOF
2078rm -f conftest.$ac_objext
2079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2081 ac_status=$?
2082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 for ac_declaration in \
2101 '' \
2102 'extern "C" void std::exit (int) throw (); using std::exit;' \
2103 'extern "C" void std::exit (int); using std::exit;' \
2104 'extern "C" void exit (int) throw ();' \
2105 'extern "C" void exit (int);' \
2106 'void exit (int);'
2107do
2108 cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h. */
2114$ac_declaration
2115#include <stdlib.h>
2116int
2117main ()
2118{
2119exit (42);
2120 ;
2121 return 0;
2122}
2123_ACEOF
2124rm -f conftest.$ac_objext
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>conftest.er1
2127 ac_status=$?
2128 grep -v '^ *+' conftest.er1 >conftest.err
2129 rm -f conftest.er1
2130 cat conftest.err >&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
2133 { ac_try='test -z "$ac_c_werror_flag"
2134 || test ! -s conftest.err'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 (eval $ac_try) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; } &&
2140 { ac_try='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142 (eval $ac_try) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2146 :
2147else
2148 echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151continue
2152fi
2153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2154 cat >conftest.$ac_ext <<_ACEOF
2155/* confdefs.h. */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h. */
2160$ac_declaration
2161int
2162main ()
2163{
2164exit (42);
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 break
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196fi
2197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198done
2199rm -f conftest*
2200if test -n "$ac_declaration"; then
2201 echo '#ifdef __cplusplus' >>confdefs.h
2202 echo $ac_declaration >>confdefs.h
2203 echo '#endif' >>confdefs.h
2204fi
2205
2206else
2207 echo "$as_me: failed program was:" >&5
2208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210fi
2211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2212ac_ext=c
2213ac_cpp='$CPP $CPPFLAGS'
2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218ac_ext=c
2219ac_cpp='$CPP $CPPFLAGS'
2220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2224echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2225# On Suns, sometimes $CPP names a directory.
2226if test -n "$CPP" && test -d "$CPP"; then
2227 CPP=
2228fi
2229if test -z "$CPP"; then
2230 if test "${ac_cv_prog_CPP+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 # Double quotes because CPP needs to be expanded
2234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2235 do
2236 ac_preproc_ok=false
2237for ac_c_preproc_warn_flag in '' yes
2238do
2239 # Use a header file that comes with gcc, so configuring glibc
2240 # with a fresh cross-compiler works.
2241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2242 # <limits.h> exists even on freestanding compilers.
2243 # On the NeXT, cc -E runs the code through the compiler's parser,
2244 # not just through cpp. "Syntax error" is here to catch this case.
2245 cat >conftest.$ac_ext <<_ACEOF
2246/* confdefs.h. */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h. */
2251#ifdef __STDC__
2252# include <limits.h>
2253#else
2254# include <assert.h>
2255#endif
2256 Syntax error
2257_ACEOF
2258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev/null; then
2266 if test -s conftest.err; then
2267 ac_cpp_err=$ac_c_preproc_warn_flag
2268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2269 else
2270 ac_cpp_err=
2271 fi
2272else
2273 ac_cpp_err=yes
2274fi
2275if test -z "$ac_cpp_err"; then
2276 :
2277else
2278 echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281 # Broken: fails on valid input.
2282continue
2283fi
2284rm -f conftest.err conftest.$ac_ext
2285
2286 # OK, works on sane cases. Now check whether non-existent headers
2287 # can be detected and how.
2288 cat >conftest.$ac_ext <<_ACEOF
2289/* confdefs.h. */
2290_ACEOF
2291cat confdefs.h >>conftest.$ac_ext
2292cat >>conftest.$ac_ext <<_ACEOF
2293/* end confdefs.h. */
2294#include <ac_nonexistent.h>
2295_ACEOF
2296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } >/dev/null; then
2304 if test -s conftest.err; then
2305 ac_cpp_err=$ac_c_preproc_warn_flag
2306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2307 else
2308 ac_cpp_err=
2309 fi
2310else
2311 ac_cpp_err=yes
2312fi
2313if test -z "$ac_cpp_err"; then
2314 # Broken: success on invalid input.
2315continue
2316else
2317 echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 # Passes both tests.
2321ac_preproc_ok=:
2322break
2323fi
2324rm -f conftest.err conftest.$ac_ext
2325
2326done
2327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2328rm -f conftest.err conftest.$ac_ext
2329if $ac_preproc_ok; then
2330 break
2331fi
2332
2333 done
2334 ac_cv_prog_CPP=$CPP
2335
2336fi
2337 CPP=$ac_cv_prog_CPP
2338else
2339 ac_cv_prog_CPP=$CPP
2340fi
2341echo "$as_me:$LINENO: result: $CPP" >&5
2342echo "${ECHO_T}$CPP" >&6
2343ac_preproc_ok=false
2344for ac_c_preproc_warn_flag in '' yes
2345do
2346 # Use a header file that comes with gcc, so configuring glibc
2347 # with a fresh cross-compiler works.
2348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2349 # <limits.h> exists even on freestanding compilers.
2350 # On the NeXT, cc -E runs the code through the compiler's parser,
2351 # not just through cpp. "Syntax error" is here to catch this case.
2352 cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h. */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h. */
2358#ifdef __STDC__
2359# include <limits.h>
2360#else
2361# include <assert.h>
2362#endif
2363 Syntax error
2364_ACEOF
2365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } >/dev/null; then
2373 if test -s conftest.err; then
2374 ac_cpp_err=$ac_c_preproc_warn_flag
2375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2376 else
2377 ac_cpp_err=
2378 fi
2379else
2380 ac_cpp_err=yes
2381fi
2382if test -z "$ac_cpp_err"; then
2383 :
2384else
2385 echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 # Broken: fails on valid input.
2389continue
2390fi
2391rm -f conftest.err conftest.$ac_ext
2392
2393 # OK, works on sane cases. Now check whether non-existent headers
2394 # can be detected and how.
2395 cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h. */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h. */
2401#include <ac_nonexistent.h>
2402_ACEOF
2403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } >/dev/null; then
2411 if test -s conftest.err; then
2412 ac_cpp_err=$ac_c_preproc_warn_flag
2413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2414 else
2415 ac_cpp_err=
2416 fi
2417else
2418 ac_cpp_err=yes
2419fi
2420if test -z "$ac_cpp_err"; then
2421 # Broken: success on invalid input.
2422continue
2423else
2424 echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 # Passes both tests.
2428ac_preproc_ok=:
2429break
2430fi
2431rm -f conftest.err conftest.$ac_ext
2432
2433done
2434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2435rm -f conftest.err conftest.$ac_ext
2436if $ac_preproc_ok; then
2437 :
2438else
d6416cdc
RW
2439 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2440echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
b585a9fa
EZ
2442See \`config.log' for more details." >&5
2443echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2444See \`config.log' for more details." >&2;}
d6416cdc 2445 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2446fi
2447
2448ac_ext=c
2449ac_cpp='$CPP $CPPFLAGS'
2450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453
2454
2455
2456echo "$as_me:$LINENO: checking for egrep" >&5
2457echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2458if test "${ac_cv_prog_egrep+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460else
2461 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2462 then ac_cv_prog_egrep='grep -E'
2463 else ac_cv_prog_egrep='egrep'
2464 fi
2465fi
2466echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2467echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2468 EGREP=$ac_cv_prog_egrep
2469
2470
2471if test $ac_cv_c_compiler_gnu = yes; then
2472 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2473echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2474if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 ac_pattern="Autoconf.*'x'"
2478 cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h. */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h. */
2484#include <sgtty.h>
2485Autoconf TIOCGETP
2486_ACEOF
2487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2488 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2489 ac_cv_prog_gcc_traditional=yes
2490else
2491 ac_cv_prog_gcc_traditional=no
2492fi
2493rm -f conftest*
2494
2495
2496 if test $ac_cv_prog_gcc_traditional = no; then
2497 cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h. */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h. */
2503#include <termio.h>
2504Autoconf TCGETA
2505_ACEOF
2506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2507 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2508 ac_cv_prog_gcc_traditional=yes
2509fi
2510rm -f conftest*
2511
2512 fi
2513fi
2514echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2515echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2516 if test $ac_cv_prog_gcc_traditional = yes; then
2517 CC="$CC -traditional"
2518 fi
2519fi
2520
2521echo "$as_me:$LINENO: checking for library containing strerror" >&5
2522echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2523if test "${ac_cv_search_strerror+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526 ac_func_search_save_LIBS=$LIBS
2527ac_cv_search_strerror=no
2528cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h. */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h. */
2534
2535/* Override any gcc2 internal prototype to avoid an error. */
2536#ifdef __cplusplus
2537extern "C"
2538#endif
2539/* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2541char strerror ();
2542int
2543main ()
2544{
2545strerror ();
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550rm -f conftest.$ac_objext conftest$ac_exeext
2551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2552 (eval $ac_link) 2>conftest.er1
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest$ac_exeext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_cv_search_strerror="none required"
2573else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext \
2579 conftest$ac_exeext conftest.$ac_ext
2580if test "$ac_cv_search_strerror" = no; then
2581 for ac_lib in cposix; do
2582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2583 cat >conftest.$ac_ext <<_ACEOF
2584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
2589
2590/* Override any gcc2 internal prototype to avoid an error. */
2591#ifdef __cplusplus
2592extern "C"
2593#endif
2594/* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2596char strerror ();
2597int
2598main ()
2599{
2600strerror ();
2601 ;
2602 return 0;
2603}
2604_ACEOF
2605rm -f conftest.$ac_objext conftest$ac_exeext
2606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607 (eval $ac_link) 2>conftest.er1
2608 ac_status=$?
2609 grep -v '^ *+' conftest.er1 >conftest.err
2610 rm -f conftest.er1
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest$ac_exeext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_search_strerror="-l$ac_lib"
2628break
2629else
2630 echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633fi
2634rm -f conftest.err conftest.$ac_objext \
2635 conftest$ac_exeext conftest.$ac_ext
2636 done
2637fi
2638LIBS=$ac_func_search_save_LIBS
2639fi
2640echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2641echo "${ECHO_T}$ac_cv_search_strerror" >&6
2642if test "$ac_cv_search_strerror" != no; then
2643 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2644
2645fi
2646
2647
2648if test "$cross_compiling" = yes; then
d6416cdc
RW
2649 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2650echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
2652See \`config.log' for more details." >&5
2653echo "$as_me: error: cannot run test program while cross compiling
2654See \`config.log' for more details." >&2;}
d6416cdc 2655 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2656else
2657 cat >conftest.$ac_ext <<_ACEOF
2658/* confdefs.h. */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h. */
2663main(){exit(0);}
2664_ACEOF
2665rm -f conftest$ac_exeext
2666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 :
2677else
2678 echo "$as_me: program exited with status $ac_status" >&5
2679echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682( exit $ac_status )
2683
2684if test $CC != cc ; then
2685echo "Your $CC failed - restarting with CC=cc" 1>&6
2686
2687echo "" 1>&6
2688
2689CC=cc
2690export CC
2691exec $0 $configure_args
2692fi
2693
2694fi
2695rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2696fi
2697
2698if test "$cross_compiling" = yes; then
d6416cdc
RW
2699 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2700echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
2702See \`config.log' for more details." >&5
2703echo "$as_me: error: cannot run test program while cross compiling
2704See \`config.log' for more details." >&2;}
d6416cdc 2705 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2706else
2707 cat >conftest.$ac_ext <<_ACEOF
2708/* confdefs.h. */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h. */
2713main(){exit(0);}
2714_ACEOF
2715rm -f conftest$ac_exeext
2716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2717 (eval $ac_link) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 :
2727else
2728 echo "$as_me: program exited with status $ac_status" >&5
2729echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732( exit $ac_status )
2733exec 5>&2
2734eval $ac_link
2735echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
2736
2737echo "$ac_compile" 1>&6
2738
2739{ { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
2740echo "$as_me: error: Can't run the compiler - sorry" >&2;}
2741 { (exit 1); exit 1; }; }
2742fi
2743rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2744fi
2745
2746if test "$cross_compiling" = yes; then
d6416cdc
RW
2747 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2748echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
2750See \`config.log' for more details." >&5
2751echo "$as_me: error: cannot run test program while cross compiling
2752See \`config.log' for more details." >&2;}
d6416cdc 2753 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2754else
2755 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761
2762main()
2763{
2764 int __something_strange_();
2765 __something_strange_(0);
2766}
2767
2768_ACEOF
2769rm -f conftest$ac_exeext
2770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2771 (eval $ac_link) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
2781echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
2782 { (exit 1); exit 1; }; }
2783else
2784 echo "$as_me: program exited with status $ac_status" >&5
2785echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788fi
2789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2790fi
2791
2792for ac_prog in gawk mawk nawk awk
2793do
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795set dummy $ac_prog; ac_word=$2
2796echo "$as_me:$LINENO: checking for $ac_word" >&5
2797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798if test "${ac_cv_prog_AWK+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801 if test -n "$AWK"; then
2802 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2803else
2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805for as_dir in $PATH
2806do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_AWK="$ac_prog"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815done
2816done
2817
2818fi
2819fi
2820AWK=$ac_cv_prog_AWK
2821if test -n "$AWK"; then
2822 echo "$as_me:$LINENO: result: $AWK" >&5
2823echo "${ECHO_T}$AWK" >&6
2824else
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
2827fi
2828
2829 test -n "$AWK" && break
2830done
2831
2832
2833if test -f etc/toolcheck; then
2834{ echo "$as_me:$LINENO: checking for buggy tools..." >&5
2835echo "$as_me: checking for buggy tools..." >&6;}
2836sh etc/toolcheck 1>&6
2837fi
2838
2839
2840{ echo "$as_me:$LINENO: checking for System V..." >&5
2841echo "$as_me: checking for System V..." >&6;}
2842cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h. */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h. */
2848#include <sys/types.h>
2849#include <signal.h>
2850#include <fcntl.h>
2851int
2852main ()
2853{
2854int x = SIGCHLD | FNDELAY;
2855 ;
2856 return 0;
2857}
2858_ACEOF
2859rm -f conftest.$ac_objext
2860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_c_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2881 :
2882else
2883 echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886cat >>confdefs.h <<\_ACEOF
2887#define SYSV 1
2888_ACEOF
2889
2890fi
2891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892
2893{ echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
2894echo "$as_me: checking for Solaris 2.x..." >&6;}
2895cat >conftest.$ac_ext <<_ACEOF
2896/* confdefs.h. */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h. */
2901#if defined(SVR4) && defined(sun)
2902 yes
2903#endif
2904
2905_ACEOF
2906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2907 $EGREP "yes" >/dev/null 2>&1; then
2908 LIBS="$LIBS -lsocket -lnsl -lkstat"
2909fi
2910rm -f conftest*
2911
2912
2913
2914{ echo "$as_me:$LINENO: checking select..." >&5
2915echo "$as_me: checking select..." >&6;}
2916cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h. */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h. */
2922
2923int
2924main ()
2925{
2926select(0, 0, 0, 0, 0);
2927 ;
2928 return 0;
2929}
2930_ACEOF
2931rm -f conftest.$ac_objext conftest$ac_exeext
2932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -z "$ac_c_werror_flag"
2941 || test ! -s conftest.err'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; } &&
2947 { ac_try='test -s conftest$ac_exeext'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949 (eval $ac_try) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 :
2954else
2955 echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958LIBS="$LIBS -lnet -lnsl"
2959{ echo "$as_me:$LINENO: checking select with $LIBS..." >&5
2960echo "$as_me: checking select with $LIBS..." >&6;}
2961cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971select(0, 0, 0, 0, 0);
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext conftest$ac_exeext
2977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_c_werror_flag"
2986 || test ! -s conftest.err'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; } &&
2992 { ac_try='test -s conftest$ac_exeext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2998 :
2999else
3000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003{ { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
3004echo "$as_me: error: !!! no select - no screen" >&2;}
3005 { (exit 1); exit 1; }; }
3006fi
3007rm -f conftest.err conftest.$ac_objext \
3008 conftest$ac_exeext conftest.$ac_ext
3009
3010fi
3011rm -f conftest.err conftest.$ac_objext \
3012 conftest$ac_exeext conftest.$ac_ext
3013
3014{ echo "$as_me:$LINENO: checking select return value..." >&5
3015echo "$as_me: checking select return value..." >&6;}
3016if test "$cross_compiling" = yes; then
d6416cdc
RW
3017 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3018echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
3020See \`config.log' for more details." >&5
3021echo "$as_me: error: cannot run test program while cross compiling
3022See \`config.log' for more details." >&2;}
d6416cdc 3023 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031
3032#include <sys/types.h>
3033#include <sys/stat.h>
3034#include <fcntl.h>
3035
3036char *nam = "/tmp/conftest$$";
3037
3038#ifdef NAMEDPIPE
3039
3040#ifndef O_NONBLOCK
3041#define O_NONBLOCK O_NDELAY
3042#endif
3043#ifndef S_IFIFO
3044#define S_IFIFO 0010000
3045#endif
3046
3047
3048main()
3049{
3050#ifdef FD_SET
3051 fd_set f;
3052#else
3053 int f;
3054#endif
3055
3056#ifdef __FreeBSD__
3057/* From Andrew A. Chernov (ache@astral.msk.su):
3058 * opening RDWR fifo fails in BSD 4.4, but select return values are
3059 * right.
3060 */
3061 exit(0);
3062#endif
3063 (void)alarm(5);
3064#ifdef POSIX
3065 if (mkfifo(nam, 0777))
3066#else
3067 if (mknod(nam, S_IFIFO|0777, 0))
3068#endif
3069 exit(1);
3070 close(0);
3071 if (open(nam, O_RDWR | O_NONBLOCK))
3072 exit(1);
3073 if (write(0, "TEST", 4) == -1)
3074 exit(1);
3075
3076#else
3077
3078#include <sys/types.h>
3079#include <sys/socket.h>
3080#include <sys/un.h>
3081
3082main()
3083{
3084 int s1, s2, l;
3085 struct sockaddr_un a;
3086#ifdef FD_SET
3087 fd_set f;
3088#else
3089 int f;
3090#endif
3091
3092 (void)alarm(5);
3093 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3094 exit(1);
3095 a.sun_family = AF_UNIX;
3096 strcpy(a.sun_path, nam);
3097 (void) unlink(nam);
3098 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3099 exit(1);
3100 if (listen(s1, 2))
3101 exit(1);
3102 if (fork() == 0)
3103 {
3104 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3105 kill(getppid(), 3);
3106 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3107 if (write(s2, "HELLO", 5) == -1)
3108 kill(getppid(), 3);
3109 exit(0);
3110 }
3111 l = sizeof(a);
3112 close(0);
3113 if (accept(s1, (struct sockaddr *)&a, &l))
3114 exit(1);
3115#endif
3116
3117
3118#ifdef FD_SET
3119 FD_SET(0, &f);
3120#else
3121 f = 1;
3122#endif
3123 if (select(1, &f, 0, 0, 0) == -1)
3124 exit(1);
3125 if (select(1, &f, &f, 0, 0) != 2)
3126 exit(1);
3127 exit(0);
3128}
3129
3130_ACEOF
3131rm -f conftest$ac_exeext
3132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133 (eval $ac_link) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 echo "- select is ok" 1>&6
3143
3144else
3145 echo "$as_me: program exited with status $ac_status" >&5
3146echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149( exit $ac_status )
3150echo "- select can't count" 1>&6
3151 cat >>confdefs.h <<\_ACEOF
3152#define SELECT_BROKEN 1
3153_ACEOF
3154
3155fi
3156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157fi
3158
3159{ echo "$as_me:$LINENO: checking for tgetent..." >&5
3160echo "$as_me: checking for tgetent..." >&6;}
3161cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171tgetent((char *)0, (char *)0);
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext conftest$ac_exeext
3177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178 (eval $ac_link) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_c_werror_flag"
3186 || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest$ac_exeext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 :
3199else
3200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203olibs="$LIBS"
3204LIBS="-lcurses $olibs"
3205{ echo "$as_me:$LINENO: checking libcurses..." >&5
3206echo "$as_me: checking libcurses..." >&6;}
3207cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h. */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h. */
3213
3214int
3215main ()
3216{
3217
3218#ifdef __hpux
3219__sorry_hpux_libcurses_is_totally_broken_in_10_10();
3220#else
3221tgetent((char *)0, (char *)0);
3222#endif
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext conftest$ac_exeext
3229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230 (eval $ac_link) 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 :
3251else
3252 echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255LIBS="-ltermcap $olibs"
3256{ echo "$as_me:$LINENO: checking libtermcap..." >&5
3257echo "$as_me: checking libtermcap..." >&6;}
3258cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268tgetent((char *)0, (char *)0);
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext conftest$ac_exeext
3274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275 (eval $ac_link) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest$ac_exeext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 :
3296else
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300LIBS="-ltermlib $olibs"
3301{ echo "$as_me:$LINENO: checking libtermlib..." >&5
3302echo "$as_me: checking libtermlib..." >&6;}
3303cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313tgetent((char *)0, (char *)0);
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext conftest$ac_exeext
3319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3320 (eval $ac_link) 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_c_werror_flag"
3328 || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest$ac_exeext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3340 :
3341else
3342 echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345LIBS="-lncurses $olibs"
3346{ echo "$as_me:$LINENO: checking libncurses..." >&5
3347echo "$as_me: checking libncurses..." >&6;}
3348cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354
3355int
3356main ()
3357{
3358tgetent((char *)0, (char *)0);
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363rm -f conftest.$ac_objext conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest$ac_exeext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 :
3386else
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390{ { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
3391echo "$as_me: error: !!! no tgetent - no screen" >&2;}
3392 { (exit 1); exit 1; }; }
3393fi
3394rm -f conftest.err conftest.$ac_objext \
3395 conftest$ac_exeext conftest.$ac_ext
3396fi
3397rm -f conftest.err conftest.$ac_objext \
3398 conftest$ac_exeext conftest.$ac_ext
3399fi
3400rm -f conftest.err conftest.$ac_objext \
3401 conftest$ac_exeext conftest.$ac_ext
3402fi
3403rm -f conftest.err conftest.$ac_objext \
3404 conftest$ac_exeext conftest.$ac_ext
3405fi
3406rm -f conftest.err conftest.$ac_objext \
3407 conftest$ac_exeext conftest.$ac_ext
3408
3409if test "$cross_compiling" = yes; then
d6416cdc
RW
3410 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3411echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
3413See \`config.log' for more details." >&5
3414echo "$as_me: error: cannot run test program while cross compiling
3415See \`config.log' for more details." >&2;}
d6416cdc 3416 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
3417else
3418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424
3425main()
3426{
3427 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
3428}
3429_ACEOF
3430rm -f conftest$ac_exeext
3431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3432 (eval $ac_link) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3441 echo "- you use the termcap database" 1>&6
3442
3443else
3444 echo "$as_me: program exited with status $ac_status" >&5
3445echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448( exit $ac_status )
3449echo "- you use the terminfo database" 1>&6
3450 cat >>confdefs.h <<\_ACEOF
3451#define TERMINFO 1
3452_ACEOF
3453
3454fi
3455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3456fi
3457{ echo "$as_me:$LINENO: checking ospeed..." >&5
3458echo "$as_me: checking ospeed..." >&6;}
3459cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465extern short ospeed;
3466int
3467main ()
3468{
3469ospeed=5;
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext conftest$ac_exeext
3475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476 (eval $ac_link) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest$ac_exeext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 :
3497else
3498 echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501cat >>confdefs.h <<\_ACEOF
3502#define NEED_OSPEED 1
3503_ACEOF
3504
3505fi
3506rm -f conftest.err conftest.$ac_objext \
3507 conftest$ac_exeext conftest.$ac_ext
3508
3509{ echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
3510echo "$as_me: checking for /dev/ptc..." >&6;}
3511if test -r /dev/ptc; then
3512cat >>confdefs.h <<\_ACEOF
3513#define HAVE_DEV_PTC 1
3514_ACEOF
3515
3516fi
3517
3518{ echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
3519echo "$as_me: checking for SVR4 ptys..." >&6;}
3520sysvr4ptys=
3521if test -c /dev/ptmx ; then
3522cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h. */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532ptsname(0);grantpt(0);unlockpt(0);
3533 ;
3534 return 0;
3535}
3536_ACEOF
3537rm -f conftest.$ac_objext conftest$ac_exeext
3538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest$ac_exeext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 cat >>confdefs.h <<\_ACEOF
3560#define HAVE_SVR4_PTYS 1
3561_ACEOF
3562
3563sysvr4ptys=1
3564else
3565 echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568fi
3569rm -f conftest.err conftest.$ac_objext \
3570 conftest$ac_exeext conftest.$ac_ext
3571fi
3572
3573
3574for ac_func in getpt
3575do
3576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3577echo "$as_me:$LINENO: checking for $ac_func" >&5
3578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3579if eval "test \"\${$as_ac_var+set}\" = set"; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h. */
3588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3590#define $ac_func innocuous_$ac_func
3591
3592/* System header to define __stub macros and hopefully few prototypes,
3593 which can conflict with char $ac_func (); below.
3594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 <limits.h> exists even on freestanding compilers. */
3596
3597#ifdef __STDC__
3598# include <limits.h>
3599#else
3600# include <assert.h>
3601#endif
3602
3603#undef $ac_func
3604
3605/* Override any gcc2 internal prototype to avoid an error. */
3606#ifdef __cplusplus
3607extern "C"
3608{
3609#endif
3610/* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3612char $ac_func ();
3613/* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617choke me
3618#else
3619char (*f) () = $ac_func;
3620#endif
3621#ifdef __cplusplus
3622}
3623#endif
3624
3625int
3626main ()
3627{
3628return f != $ac_func;
3629 ;
3630 return 0;
3631}
3632_ACEOF
3633rm -f conftest.$ac_objext conftest$ac_exeext
3634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635 (eval $ac_link) 2>conftest.er1
3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -z "$ac_c_werror_flag"
3643 || test ! -s conftest.err'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; } &&
3649 { ac_try='test -s conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 eval "$as_ac_var=yes"
3656else
3657 echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660eval "$as_ac_var=no"
3661fi
3662rm -f conftest.err conftest.$ac_objext \
3663 conftest$ac_exeext conftest.$ac_ext
3664fi
3665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3666echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3667if test `eval echo '${'$as_ac_var'}'` = yes; then
3668 cat >>confdefs.h <<_ACEOF
3669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3670_ACEOF
3671
3672fi
3673done
3674
3675
3676if test -z "$sysvr4ptys"; then
3677
3678for ac_func in openpty
3679do
3680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3681echo "$as_me:$LINENO: checking for $ac_func" >&5
3682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3683if eval "test \"\${$as_ac_var+set}\" = set"; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686 cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
3692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3694#define $ac_func innocuous_$ac_func
3695
3696/* System header to define __stub macros and hopefully few prototypes,
3697 which can conflict with char $ac_func (); below.
3698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 <limits.h> exists even on freestanding compilers. */
3700
3701#ifdef __STDC__
3702# include <limits.h>
3703#else
3704# include <assert.h>
3705#endif
3706
3707#undef $ac_func
3708
3709/* Override any gcc2 internal prototype to avoid an error. */
3710#ifdef __cplusplus
3711extern "C"
3712{
3713#endif
3714/* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3716char $ac_func ();
3717/* The GNU C library defines this for functions which it implements
3718 to always fail with ENOSYS. Some functions are actually named
3719 something starting with __ and the normal name is an alias. */
3720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3721choke me
3722#else
3723char (*f) () = $ac_func;
3724#endif
3725#ifdef __cplusplus
3726}
3727#endif
3728
3729int
3730main ()
3731{
3732return f != $ac_func;
3733 ;
3734 return 0;
3735}
3736_ACEOF
3737rm -f conftest.$ac_objext conftest$ac_exeext
3738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>conftest.er1
3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 eval "$as_ac_var=yes"
3760else
3761 echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764eval "$as_ac_var=no"
3765fi
3766rm -f conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768fi
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3771if test `eval echo '${'$as_ac_var'}'` = yes; then
3772 cat >>confdefs.h <<_ACEOF
3773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3774_ACEOF
3775
3776else
3777 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
3778echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
3779if test "${ac_cv_lib_util_openpty+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 ac_check_lib_save_LIBS=$LIBS
3783LIBS="-lutil $LIBS"
3784cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790
3791/* Override any gcc2 internal prototype to avoid an error. */
3792#ifdef __cplusplus
3793extern "C"
3794#endif
3795/* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3797char openpty ();
3798int
3799main ()
3800{
3801openpty ();
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806rm -f conftest.$ac_objext conftest$ac_exeext
3807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808 (eval $ac_link) 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest$ac_exeext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_lib_util_openpty=yes
3829else
3830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833ac_cv_lib_util_openpty=no
3834fi
3835rm -f conftest.err conftest.$ac_objext \
3836 conftest$ac_exeext conftest.$ac_ext
3837LIBS=$ac_check_lib_save_LIBS
3838fi
3839echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
3840echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
3841if test $ac_cv_lib_util_openpty = yes; then
3842 cat >>confdefs.h <<\_ACEOF
3843#define HAVE_OPENPTY 1
3844_ACEOF
3845 LIBS="$LIBS -lutil"
3846fi
3847
3848fi
3849done
3850
3851fi
3852
3853{ echo "$as_me:$LINENO: checking for ptyranges..." >&5
3854echo "$as_me: checking for ptyranges..." >&6;}
3855if test -d /dev/ptym ; then
3856pdir='/dev/ptym'
3857else
3858pdir='/dev'
3859fi
3860cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
3866#ifdef M_UNIX
3867 yes;
3868#endif
3869
3870_ACEOF
3871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872 $EGREP "yes" >/dev/null 2>&1; then
3873 ptys=`echo /dev/ptyp??`
3874else
3875 ptys=`echo $pdir/pty??`
3876fi
3877rm -f conftest*
3878
3879if test "$ptys" != "$pdir/pty??" ; then
3880p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
3881p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
3882cat >>confdefs.h <<_ACEOF
3883#define PTYRANGE0 "$p0"
3884_ACEOF
3885
3886cat >>confdefs.h <<_ACEOF
3887#define PTYRANGE1 "$p1"
3888_ACEOF
3889
3890fi
3891
3892
3893# Check whether --with-pty-mode or --without-pty-mode was given.
3894if test "${with_pty_mode+set}" = set; then
3895 withval="$with_pty_mode"
3896 ptymode="${withval}"
3897fi;
3898
3899# Check whether --with-pty-group or --without-pty-group was given.
3900if test "${with_pty_group+set}" = set; then
3901 withval="$with_pty_group"
3902 ptygrp="${withval}"
3903fi;
3904test -n "$ptymode" || ptymode=0620
3905if test -n "$ptygrp" ; then
3906cat >>confdefs.h <<_ACEOF
3907#define PTYMODE $ptymode
3908_ACEOF
3909
3910cat >>confdefs.h <<_ACEOF
3911#define PTYGROUP $ptygrp
3912_ACEOF
3913
3914else
3915
3916{ echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
3917echo "$as_me: checking default tty permissions/group..." >&6;}
3918rm -f conftest_grp
3919if test "$cross_compiling" = yes; then
d6416cdc
RW
3920 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3921echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
3923See \`config.log' for more details." >&5
3924echo "$as_me: error: cannot run test program while cross compiling
3925See \`config.log' for more details." >&2;}
d6416cdc 3926 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
3927else
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934
3935#include <sys/types.h>
3936#include <sys/stat.h>
3937#include <stdio.h>
3938main()
3939{
3940 struct stat sb;
3941 char *x,*ttyname();
3942 int om, m;
3943 FILE *fp;
3944
3945 if (!(x = ttyname(0))) exit(1);
3946 if (stat(x, &sb)) exit(1);
3947 om = sb.st_mode;
3948 if (om & 002) exit(0);
3949 m = system("mesg y");
3950 if (m == -1 || m == 127) exit(1);
3951 if (stat(x, &sb)) exit(1);
3952 m = sb.st_mode;
3953 if (chmod(x, om)) exit(1);
3954 if (m & 002) exit(0);
3955 if (sb.st_gid == getgid()) exit(1);
3956 if (!(fp=fopen("conftest_grp", "w")))
3957 exit(1);
3958 fprintf(fp, "%d\n", sb.st_gid);
3959 fclose(fp);
3960 exit(0);
3961}
3962
3963_ACEOF
3964rm -f conftest$ac_exeext
3965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971 (eval $ac_try) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3975
3976 if test -f conftest_grp; then
3977 ptygrp=`cat conftest_grp`
3978 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
3979
3980 cat >>confdefs.h <<_ACEOF
3981#define PTYMODE $ptymode
3982_ACEOF
3983
3984 cat >>confdefs.h <<_ACEOF
3985#define PTYGROUP $ptygrp
3986_ACEOF
3987
3988 else
3989 echo "- ptys are world accessable" 1>&6
3990
3991 fi
3992
3993else
3994 echo "$as_me: program exited with status $ac_status" >&5
3995echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998( exit $ac_status )
3999
4000 WRITEPATH=''
4001 XTERMPATH=''
4002 # Extract the first word of "write", so it can be a program name with args.
4003set dummy write; ac_word=$2
4004echo "$as_me:$LINENO: checking for $ac_word" >&5
4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006if test "${ac_cv_path_WRITEPATH+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009 case $WRITEPATH in
4010 [\\/]* | ?:[\\/]*)
4011 ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
4012 ;;
4013 *)
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025done
4026done
4027
4028 ;;
4029esac
4030fi
4031WRITEPATH=$ac_cv_path_WRITEPATH
4032
4033if test -n "$WRITEPATH"; then
4034 echo "$as_me:$LINENO: result: $WRITEPATH" >&5
4035echo "${ECHO_T}$WRITEPATH" >&6
4036else
4037 echo "$as_me:$LINENO: result: no" >&5
4038echo "${ECHO_T}no" >&6
4039fi
4040
4041 # Extract the first word of "xterm", so it can be a program name with args.
4042set dummy xterm; ac_word=$2
4043echo "$as_me:$LINENO: checking for $ac_word" >&5
4044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045if test "${ac_cv_path_XTERMPATH+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048 case $XTERMPATH in
4049 [\\/]* | ?:[\\/]*)
4050 ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
4051 ;;
4052 *)
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054for as_dir in $PATH
4055do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064done
4065done
4066
4067 ;;
4068esac
4069fi
4070XTERMPATH=$ac_cv_path_XTERMPATH
4071
4072if test -n "$XTERMPATH"; then
4073 echo "$as_me:$LINENO: result: $XTERMPATH" >&5
4074echo "${ECHO_T}$XTERMPATH" >&6
4075else
4076 echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078fi
4079
4080 found=
4081 if test -n "$WRITEPATH$XTERMPATH"; then
4082 findfollow=
4083 lsfollow=
4084 found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
4085 if test -n "$found"; then
4086 findfollow=-follow
4087 lsfollow=L
4088 fi
4089 if test -n "$XTERMPATH"; then
4090 ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4091 if test tty != "$ptygrpn"; then
4092 XTERMPATH=
4093 fi
4094 fi
4095 fi
4096 if test -n "$WRITEPATH$XTERMPATH"; then
4097 found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4098 if test -n "$found"; then
4099 ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4100 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4101
4102 cat >>confdefs.h <<_ACEOF
4103#define PTYMODE $ptymode
4104_ACEOF
4105
4106 cat >>confdefs.h <<_ACEOF
4107#define PTYGROUP $ptygrp
4108_ACEOF
4109
4110 else
4111 echo "- ptys are world accessable" 1>&6
4112
4113 fi
4114 else
4115 echo "- can't determine - assume ptys are world accessable" 1>&6
4116
4117 fi
4118
4119
4120fi
4121rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4122fi
4123rm -f conftest_grp
4124fi
4125
4126if test -n "$posix" ; then
4127
4128echo "assuming posix signal definition" 1>&6
4129
4130cat >>confdefs.h <<\_ACEOF
4131#define SIGVOID 1
4132_ACEOF
4133
4134
4135else
4136
4137{ echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
4138echo "$as_me: checking return type of signal handlers..." >&6;}
4139cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h. */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h. */
4145#include <sys/types.h>
4146#include <signal.h>
4147#ifdef signal
4148#undef signal
4149#endif
4150extern void (*signal ()) ();
4151int
4152main ()
4153{
4154int i;
4155 ;
4156 return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext
4160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag"
4169 || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 cat >>confdefs.h <<\_ACEOF
4182#define SIGVOID 1
4183_ACEOF
4184
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
4189fi
4190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4191{ echo "$as_me:$LINENO: checking sigset..." >&5
4192echo "$as_me: checking sigset..." >&6;}
4193cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199
4200#include <sys/types.h>
4201#include <signal.h>
4202
4203int
4204main ()
4205{
4206
4207#ifdef SIGVOID
4208sigset(0, (void (*)())0);
4209#else
4210sigset(0, (int (*)())0);
4211#endif
4212
4213 ;
4214 return 0;
4215}
4216_ACEOF
4217rm -f conftest.$ac_objext conftest$ac_exeext
4218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 cat >>confdefs.h <<\_ACEOF
4240#define USESIGSET 1
4241_ACEOF
4242
4243else
4244 echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247fi
4248rm -f conftest.err conftest.$ac_objext \
4249 conftest$ac_exeext conftest.$ac_ext
4250{ echo "$as_me:$LINENO: checking signal implementation..." >&5
4251echo "$as_me: checking signal implementation..." >&6;}
4252if test "$cross_compiling" = yes; then
d6416cdc
RW
4253 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4254echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
b585a9fa
EZ
4256See \`config.log' for more details." >&5
4257echo "$as_me: error: cannot run test program while cross compiling
4258See \`config.log' for more details." >&2;}
d6416cdc 4259 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
4260else
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267
4268#include <sys/types.h>
4269#include <signal.h>
4270
4271#ifndef SIGCLD
4272#define SIGCLD SIGCHLD
4273#endif
4274#ifdef USESIGSET
4275#define signal sigset
4276#endif
4277
4278int got;
4279
4280#ifdef SIGVOID
4281void
4282#endif
4283hand()
4284{
4285 got++;
4286}
4287
4288main()
4289{
4290 /* on hpux we use sigvec to get bsd signals */
4291#ifdef __hpux
4292 (void)signal(SIGCLD, hand);
4293 kill(getpid(), SIGCLD);
4294 kill(getpid(), SIGCLD);
4295 if (got < 2)
4296 exit(1);
4297#endif
4298 exit(0);
4299}
4300
4301_ACEOF
4302rm -f conftest$ac_exeext
4303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 :
4314else
4315 echo "$as_me: program exited with status $ac_status" >&5
4316echo "$as_me: failed program was:" >&5
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
4319( exit $ac_status )
4320cat >>confdefs.h <<\_ACEOF
4321#define SYSVSIGS 1
4322_ACEOF
4323
4324fi
4325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4326fi
4327
4328fi
4329
4330 ac_config_files="$ac_config_files Makefile"
4331cat >confcache <<\_ACEOF
4332# This file is a shell script that caches the results of configure
4333# tests run on this system so they can be shared between configure
4334# scripts and configure runs, see configure's option --config-cache.
4335# It is not useful on other systems. If it contains results you don't
4336# want to keep, you may remove or edit it.
4337#
4338# config.status only pays attention to the cache file if you give it
4339# the --recheck option to rerun configure.
4340#
4341# `ac_cv_env_foo' variables (set or unset) will be overridden when
4342# loading this file, other *unset* `ac_cv_foo' will be assigned the
4343# following values.
4344
4345_ACEOF
4346
4347# The following way of writing the cache mishandles newlines in values,
4348# but we know of no workaround that is simple, portable, and efficient.
4349# So, don't put newlines in cache variables' values.
4350# Ultrix sh set writes to stderr and can't be redirected directly,
4351# and sets the high bit in the cache file unless we assign to the vars.
4352{
4353 (set) 2>&1 |
4354 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4355 *ac_space=\ *)
4356 # `set' does not quote correctly, so add quotes (double-quote
4357 # substitution turns \\\\ into \\, and sed turns \\ into \).
4358 sed -n \
4359 "s/'/'\\\\''/g;
4360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4361 ;;
4362 *)
4363 # `set' quotes correctly as required by POSIX, so do not add quotes.
4364 sed -n \
4365 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4366 ;;
4367 esac;
4368} |
4369 sed '
4370 t clear
4371 : clear
4372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4373 t end
4374 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4375 : end' >>confcache
4376if diff $cache_file confcache >/dev/null 2>&1; then :; else
4377 if test -w $cache_file; then
4378 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4379 cat confcache >$cache_file
4380 else
4381 echo "not updating unwritable cache $cache_file"
4382 fi
4383fi
4384rm -f confcache
4385
4386test "x$prefix" = xNONE && prefix=$ac_default_prefix
4387# Let make expand exec_prefix.
4388test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4389
4390# VPATH may cause trouble with some makes, so we remove $(srcdir),
4391# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4392# trailing colons and then remove the whole line if VPATH becomes empty
4393# (actually we leave an empty line to preserve line numbers).
4394if test "x$srcdir" = x.; then
4395 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4396s/:*\$(srcdir):*/:/;
4397s/:*\${srcdir}:*/:/;
4398s/:*@srcdir@:*/:/;
4399s/^\([^=]*=[ ]*\):*/\1/;
4400s/:*$//;
4401s/^[^=]*=[ ]*$//;
4402}'
4403fi
4404
4405DEFS=-DHAVE_CONFIG_H
4406
4407ac_libobjs=
4408ac_ltlibobjs=
4409for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4410 # 1. Remove the extension, and $U if already installed.
4411 ac_i=`echo "$ac_i" |
4412 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4413 # 2. Add them.
4414 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4415 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4416done
4417LIBOBJS=$ac_libobjs
4418
4419LTLIBOBJS=$ac_ltlibobjs
4420
4421
4422
4423: ${CONFIG_STATUS=./config.status}
4424ac_clean_files_save=$ac_clean_files
4425ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4426{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4427echo "$as_me: creating $CONFIG_STATUS" >&6;}
4428cat >$CONFIG_STATUS <<_ACEOF
4429#! $SHELL
4430# Generated by $as_me.
4431# Run this file to recreate the current configuration.
4432# Compiler output produced by configure, useful for debugging
4433# configure, is in config.log if it exists.
4434
4435debug=false
4436ac_cs_recheck=false
4437ac_cs_silent=false
4438SHELL=\${CONFIG_SHELL-$SHELL}
4439_ACEOF
4440
4441cat >>$CONFIG_STATUS <<\_ACEOF
4442## --------------------- ##
4443## M4sh Initialization. ##
4444## --------------------- ##
4445
4446# Be Bourne compatible
4447if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4448 emulate sh
4449 NULLCMD=:
4450 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4451 # is contrary to our usage. Disable this feature.
4452 alias -g '${1+"$@"}'='"$@"'
4453elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4454 set -o posix
4455fi
4456DUALCASE=1; export DUALCASE # for MKS sh
4457
4458# Support unset when possible.
4459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4460 as_unset=unset
4461else
4462 as_unset=false
4463fi
4464
4465
4466# Work around bugs in pre-3.0 UWIN ksh.
4467$as_unset ENV MAIL MAILPATH
4468PS1='$ '
4469PS2='> '
4470PS4='+ '
4471
4472# NLS nuisances.
4473for as_var in \
4474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4476 LC_TELEPHONE LC_TIME
4477do
4478 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4479 eval $as_var=C; export $as_var
4480 else
4481 $as_unset $as_var
4482 fi
4483done
4484
4485# Required to use basename.
4486if expr a : '\(a\)' >/dev/null 2>&1; then
4487 as_expr=expr
4488else
4489 as_expr=false
4490fi
4491
4492if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4493 as_basename=basename
4494else
4495 as_basename=false
4496fi
4497
4498
4499# Name of the executable.
4500as_me=`$as_basename "$0" ||
4501$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4502 X"$0" : 'X\(//\)$' \| \
4503 X"$0" : 'X\(/\)$' \| \
4504 . : '\(.\)' 2>/dev/null ||
4505echo X/"$0" |
4506 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4507 /^X\/\(\/\/\)$/{ s//\1/; q; }
4508 /^X\/\(\/\).*/{ s//\1/; q; }
4509 s/.*/./; q'`
4510
4511
4512# PATH needs CR, and LINENO needs CR and PATH.
4513# Avoid depending upon Character Ranges.
4514as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4516as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4517as_cr_digits='0123456789'
4518as_cr_alnum=$as_cr_Letters$as_cr_digits
4519
4520# The user is always right.
4521if test "${PATH_SEPARATOR+set}" != set; then
4522 echo "#! /bin/sh" >conf$$.sh
4523 echo "exit 0" >>conf$$.sh
4524 chmod +x conf$$.sh
4525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4526 PATH_SEPARATOR=';'
4527 else
4528 PATH_SEPARATOR=:
4529 fi
4530 rm -f conf$$.sh
4531fi
4532
4533
4534 as_lineno_1=$LINENO
4535 as_lineno_2=$LINENO
4536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4537 test "x$as_lineno_1" != "x$as_lineno_2" &&
4538 test "x$as_lineno_3" = "x$as_lineno_2" || {
4539 # Find who we are. Look in the path if we contain no path at all
4540 # relative or not.
4541 case $0 in
4542 *[\\/]* ) as_myself=$0 ;;
4543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4549done
4550
4551 ;;
4552 esac
4553 # We did not find ourselves, most probably we were run as `sh COMMAND'
4554 # in which case we are not to be found in the path.
4555 if test "x$as_myself" = x; then
4556 as_myself=$0
4557 fi
4558 if test ! -f "$as_myself"; then
4559 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4560echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4561 { (exit 1); exit 1; }; }
4562 fi
4563 case $CONFIG_SHELL in
4564 '')
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for as_base in sh bash ksh sh5; do
4571 case $as_dir in
4572 /*)
4573 if ("$as_dir/$as_base" -c '
4574 as_lineno_1=$LINENO
4575 as_lineno_2=$LINENO
4576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4577 test "x$as_lineno_1" != "x$as_lineno_2" &&
4578 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4579 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4580 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4581 CONFIG_SHELL=$as_dir/$as_base
4582 export CONFIG_SHELL
4583 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4584 fi;;
4585 esac
4586 done
4587done
4588;;
4589 esac
4590
4591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4592 # uniformly replaced by the line number. The first 'sed' inserts a
4593 # line-number line before each line; the second 'sed' does the real
4594 # work. The second script uses 'N' to pair each line-number line
4595 # with the numbered line, and appends trailing '-' during
4596 # substitution so that $LINENO is not a special case at line end.
4597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4599 sed '=' <$as_myself |
4600 sed '
4601 N
4602 s,$,-,
4603 : loop
4604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4605 t loop
4606 s,-$,,
4607 s,^['$as_cr_digits']*\n,,
4608 ' >$as_me.lineno &&
4609 chmod +x $as_me.lineno ||
4610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4611echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4612 { (exit 1); exit 1; }; }
4613
4614 # Don't try to exec as it changes $[0], causing all sort of problems
4615 # (the dirname of $[0] is not the place where we might find the
4616 # original and so on. Autoconf is especially sensible to this).
4617 . ./$as_me.lineno
4618 # Exit status is that of the last command.
4619 exit
4620}
4621
4622
4623case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4624 *c*,-n*) ECHO_N= ECHO_C='
4625' ECHO_T=' ' ;;
4626 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4627 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4628esac
4629
4630if expr a : '\(a\)' >/dev/null 2>&1; then
4631 as_expr=expr
4632else
4633 as_expr=false
4634fi
4635
4636rm -f conf$$ conf$$.exe conf$$.file
4637echo >conf$$.file
4638if ln -s conf$$.file conf$$ 2>/dev/null; then
4639 # We could just check for DJGPP; but this test a) works b) is more generic
4640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4641 if test -f conf$$.exe; then
4642 # Don't use ln at all; we don't have any links
4643 as_ln_s='cp -p'
4644 else
4645 as_ln_s='ln -s'
4646 fi
4647elif ln conf$$.file conf$$ 2>/dev/null; then
4648 as_ln_s=ln
4649else
4650 as_ln_s='cp -p'
4651fi
4652rm -f conf$$ conf$$.exe conf$$.file
4653
4654if mkdir -p . 2>/dev/null; then
4655 as_mkdir_p=:
4656else
4657 test -d ./-p && rmdir ./-p
4658 as_mkdir_p=false
4659fi
4660
4661as_executable_p="test -f"
4662
4663# Sed expression to map a string onto a valid CPP name.
4664as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4665
4666# Sed expression to map a string onto a valid variable name.
4667as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4668
4669
4670# IFS
4671# We need space, tab and new line, in precisely that order.
4672as_nl='
4673'
4674IFS=" $as_nl"
4675
4676# CDPATH.
4677$as_unset CDPATH
4678
4679exec 6>&1
4680
4681# Open the log real soon, to keep \$[0] and so on meaningful, and to
4682# report actual input values of CONFIG_FILES etc. instead of their
4683# values after options handling. Logging --version etc. is OK.
4684exec 5>>config.log
4685{
4686 echo
4687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4688## Running $as_me. ##
4689_ASBOX
4690} >&5
4691cat >&5 <<_CSEOF
4692
4693This file was extended by $as_me, which was
4694generated by GNU Autoconf 2.59. Invocation command line was
4695
4696 CONFIG_FILES = $CONFIG_FILES
4697 CONFIG_HEADERS = $CONFIG_HEADERS
4698 CONFIG_LINKS = $CONFIG_LINKS
4699 CONFIG_COMMANDS = $CONFIG_COMMANDS
4700 $ $0 $@
4701
4702_CSEOF
4703echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4704echo >&5
4705_ACEOF
4706
4707# Files that config.status was made for.
4708if test -n "$ac_config_files"; then
4709 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4710fi
4711
4712if test -n "$ac_config_headers"; then
4713 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4714fi
4715
4716if test -n "$ac_config_links"; then
4717 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4718fi
4719
4720if test -n "$ac_config_commands"; then
4721 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4722fi
4723
4724cat >>$CONFIG_STATUS <<\_ACEOF
4725
4726ac_cs_usage="\
4727\`$as_me' instantiates files from templates according to the
4728current configuration.
4729
4730Usage: $0 [OPTIONS] [FILE]...
4731
4732 -h, --help print this help, then exit
4733 -V, --version print version number, then exit
4734 -q, --quiet do not print progress messages
4735 -d, --debug don't remove temporary files
4736 --recheck update $as_me by reconfiguring in the same conditions
4737 --file=FILE[:TEMPLATE]
4738 instantiate the configuration file FILE
4739 --header=FILE[:TEMPLATE]
4740 instantiate the configuration header FILE
4741
4742Configuration files:
4743$config_files
4744
4745Configuration headers:
4746$config_headers
4747
4748Report bugs to <bug-autoconf@gnu.org>."
4749_ACEOF
4750
4751cat >>$CONFIG_STATUS <<_ACEOF
4752ac_cs_version="\\
4753config.status
4754configured by $0, generated by GNU Autoconf 2.59,
4755 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4756
4757Copyright (C) 2003 Free Software Foundation, Inc.
4758This config.status script is free software; the Free Software Foundation
4759gives unlimited permission to copy, distribute and modify it."
4760srcdir=$srcdir
4761_ACEOF
4762
4763cat >>$CONFIG_STATUS <<\_ACEOF
4764# If no file are specified by the user, then we need to provide default
4765# value. By we need to know if files were specified by the user.
4766ac_need_defaults=:
4767while test $# != 0
4768do
4769 case $1 in
4770 --*=*)
4771 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4772 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4773 ac_shift=:
4774 ;;
4775 -*)
4776 ac_option=$1
4777 ac_optarg=$2
4778 ac_shift=shift
4779 ;;
4780 *) # This is not an option, so the user has probably given explicit
4781 # arguments.
4782 ac_option=$1
4783 ac_need_defaults=false;;
4784 esac
4785
4786 case $ac_option in
4787 # Handling of the options.
4788_ACEOF
4789cat >>$CONFIG_STATUS <<\_ACEOF
4790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4791 ac_cs_recheck=: ;;
4792 --version | --vers* | -V )
4793 echo "$ac_cs_version"; exit 0 ;;
4794 --he | --h)
4795 # Conflict between --help and --header
4796 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4797Try \`$0 --help' for more information." >&5
4798echo "$as_me: error: ambiguous option: $1
4799Try \`$0 --help' for more information." >&2;}
4800 { (exit 1); exit 1; }; };;
4801 --help | --hel | -h )
4802 echo "$ac_cs_usage"; exit 0 ;;
4803 --debug | --d* | -d )
4804 debug=: ;;
4805 --file | --fil | --fi | --f )
4806 $ac_shift
4807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4808 ac_need_defaults=false;;
4809 --header | --heade | --head | --hea )
4810 $ac_shift
4811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4812 ac_need_defaults=false;;
4813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4815 ac_cs_silent=: ;;
4816
4817 # This is an error.
4818 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4819Try \`$0 --help' for more information." >&5
4820echo "$as_me: error: unrecognized option: $1
4821Try \`$0 --help' for more information." >&2;}
4822 { (exit 1); exit 1; }; } ;;
4823
4824 *) ac_config_targets="$ac_config_targets $1" ;;
4825
4826 esac
4827 shift
4828done
4829
4830ac_configure_extra_args=
4831
4832if $ac_cs_silent; then
4833 exec 6>/dev/null
4834 ac_configure_extra_args="$ac_configure_extra_args --silent"
4835fi
4836
4837_ACEOF
4838cat >>$CONFIG_STATUS <<_ACEOF
4839if \$ac_cs_recheck; then
4840 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4841 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4842fi
4843
4844_ACEOF
4845
4846
4847
4848
4849
4850cat >>$CONFIG_STATUS <<\_ACEOF
4851for ac_config_target in $ac_config_targets
4852do
4853 case "$ac_config_target" in
4854 # Handling of arguments.
4855 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4856 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4858echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4859 { (exit 1); exit 1; }; };;
4860 esac
4861done
4862
4863# If the user did not use the arguments to specify the items to instantiate,
4864# then the envvar interface is used. Set only those that are not.
4865# We use the long form for the default assignment because of an extremely
4866# bizarre bug on SunOS 4.1.3.
4867if $ac_need_defaults; then
4868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4870fi
4871
4872# Have a temporary directory for convenience. Make it in the build tree
4873# simply because there is no reason to put it here, and in addition,
4874# creating and moving files from /tmp can sometimes cause problems.
4875# Create a temporary directory, and hook for its removal unless debugging.
4876$debug ||
4877{
4878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4879 trap '{ (exit 1); exit 1; }' 1 2 13 15
4880}
4881
4882# Create a (secure) tmp directory for tmp files.
4883
4884{
4885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4886 test -n "$tmp" && test -d "$tmp"
4887} ||
4888{
4889 tmp=./confstat$$-$RANDOM
4890 (umask 077 && mkdir $tmp)
4891} ||
4892{
4893 echo "$me: cannot create a temporary directory in ." >&2
4894 { (exit 1); exit 1; }
4895}
4896
4897_ACEOF
4898
4899cat >>$CONFIG_STATUS <<_ACEOF
4900
4901#
4902# CONFIG_FILES section.
4903#
4904
4905# No need to generate the scripts if there are no CONFIG_FILES.
4906# This happens for instance when ./config.status config.h
4907if test -n "\$CONFIG_FILES"; then
4908 # Protect against being on the right side of a sed subst in config.status.
4909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4911s,@SHELL@,$SHELL,;t t
4912s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4913s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4914s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4915s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4916s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4917s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4918s,@exec_prefix@,$exec_prefix,;t t
4919s,@prefix@,$prefix,;t t
4920s,@program_transform_name@,$program_transform_name,;t t
4921s,@bindir@,$bindir,;t t
4922s,@sbindir@,$sbindir,;t t
4923s,@libexecdir@,$libexecdir,;t t
4924s,@datadir@,$datadir,;t t
4925s,@sysconfdir@,$sysconfdir,;t t
4926s,@sharedstatedir@,$sharedstatedir,;t t
4927s,@localstatedir@,$localstatedir,;t t
4928s,@libdir@,$libdir,;t t
4929s,@includedir@,$includedir,;t t
4930s,@oldincludedir@,$oldincludedir,;t t
4931s,@infodir@,$infodir,;t t
4932s,@mandir@,$mandir,;t t
4933s,@build_alias@,$build_alias,;t t
4934s,@host_alias@,$host_alias,;t t
4935s,@target_alias@,$target_alias,;t t
4936s,@DEFS@,$DEFS,;t t
4937s,@ECHO_C@,$ECHO_C,;t t
4938s,@ECHO_N@,$ECHO_N,;t t
4939s,@ECHO_T@,$ECHO_T,;t t
4940s,@LIBS@,$LIBS,;t t
4941s,@VERSION@,$VERSION,;t t
4942s,@CC@,$CC,;t t
4943s,@CFLAGS@,$CFLAGS,;t t
4944s,@LDFLAGS@,$LDFLAGS,;t t
4945s,@CPPFLAGS@,$CPPFLAGS,;t t
4946s,@ac_ct_CC@,$ac_ct_CC,;t t
4947s,@EXEEXT@,$EXEEXT,;t t
4948s,@OBJEXT@,$OBJEXT,;t t
4949s,@CPP@,$CPP,;t t
4950s,@EGREP@,$EGREP,;t t
4951s,@AWK@,$AWK,;t t
4952s,@WRITEPATH@,$WRITEPATH,;t t
4953s,@XTERMPATH@,$XTERMPATH,;t t
4954s,@LIBOBJS@,$LIBOBJS,;t t
4955s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4956CEOF
4957
4958_ACEOF
4959
4960 cat >>$CONFIG_STATUS <<\_ACEOF
4961 # Split the substitutions into bite-sized pieces for seds with
4962 # small command number limits, like on Digital OSF/1 and HP-UX.
4963 ac_max_sed_lines=48
4964 ac_sed_frag=1 # Number of current file.
4965 ac_beg=1 # First line for current file.
4966 ac_end=$ac_max_sed_lines # Line after last line for current file.
4967 ac_more_lines=:
4968 ac_sed_cmds=
4969 while $ac_more_lines; do
4970 if test $ac_beg -gt 1; then
4971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4972 else
4973 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4974 fi
4975 if test ! -s $tmp/subs.frag; then
4976 ac_more_lines=false
4977 else
4978 # The purpose of the label and of the branching condition is to
4979 # speed up the sed processing (if there are no `@' at all, there
4980 # is no need to browse any of the substitutions).
4981 # These are the two extra sed commands mentioned above.
4982 (echo ':t
4983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4984 if test -z "$ac_sed_cmds"; then
4985 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4986 else
4987 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4988 fi
4989 ac_sed_frag=`expr $ac_sed_frag + 1`
4990 ac_beg=$ac_end
4991 ac_end=`expr $ac_end + $ac_max_sed_lines`
4992 fi
4993 done
4994 if test -z "$ac_sed_cmds"; then
4995 ac_sed_cmds=cat
4996 fi
4997fi # test -n "$CONFIG_FILES"
4998
4999_ACEOF
5000cat >>$CONFIG_STATUS <<\_ACEOF
5001for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5003 case $ac_file in
5004 - | *:- | *:-:* ) # input from stdin
5005 cat >$tmp/stdin
5006 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5007 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5008 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5010 * ) ac_file_in=$ac_file.in ;;
5011 esac
5012
5013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5014 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5016 X"$ac_file" : 'X\(//\)[^/]' \| \
5017 X"$ac_file" : 'X\(//\)$' \| \
5018 X"$ac_file" : 'X\(/\)' \| \
5019 . : '\(.\)' 2>/dev/null ||
5020echo X"$ac_file" |
5021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5023 /^X\(\/\/\)$/{ s//\1/; q; }
5024 /^X\(\/\).*/{ s//\1/; q; }
5025 s/.*/./; q'`
5026 { if $as_mkdir_p; then
5027 mkdir -p "$ac_dir"
5028 else
5029 as_dir="$ac_dir"
5030 as_dirs=
5031 while test ! -d "$as_dir"; do
5032 as_dirs="$as_dir $as_dirs"
5033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5035 X"$as_dir" : 'X\(//\)[^/]' \| \
5036 X"$as_dir" : 'X\(//\)$' \| \
5037 X"$as_dir" : 'X\(/\)' \| \
5038 . : '\(.\)' 2>/dev/null ||
5039echo X"$as_dir" |
5040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5042 /^X\(\/\/\)$/{ s//\1/; q; }
5043 /^X\(\/\).*/{ s//\1/; q; }
5044 s/.*/./; q'`
5045 done
5046 test ! -n "$as_dirs" || mkdir $as_dirs
5047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5048echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5049 { (exit 1); exit 1; }; }; }
5050
5051 ac_builddir=.
5052
5053if test "$ac_dir" != .; then
5054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5055 # A "../" for each directory in $ac_dir_suffix.
5056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5057else
5058 ac_dir_suffix= ac_top_builddir=
5059fi
5060
5061case $srcdir in
5062 .) # No --srcdir option. We are building in place.
5063 ac_srcdir=.
5064 if test -z "$ac_top_builddir"; then
5065 ac_top_srcdir=.
5066 else
5067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5068 fi ;;
5069 [\\/]* | ?:[\\/]* ) # Absolute path.
5070 ac_srcdir=$srcdir$ac_dir_suffix;
5071 ac_top_srcdir=$srcdir ;;
5072 *) # Relative path.
5073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5075esac
5076
5077# Do not use `cd foo && pwd` to compute absolute paths, because
5078# the directories may not exist.
5079case `pwd` in
5080.) ac_abs_builddir="$ac_dir";;
5081*)
5082 case "$ac_dir" in
5083 .) ac_abs_builddir=`pwd`;;
5084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5086 esac;;
5087esac
5088case $ac_abs_builddir in
5089.) ac_abs_top_builddir=${ac_top_builddir}.;;
5090*)
5091 case ${ac_top_builddir}. in
5092 .) ac_abs_top_builddir=$ac_abs_builddir;;
5093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5095 esac;;
5096esac
5097case $ac_abs_builddir in
5098.) ac_abs_srcdir=$ac_srcdir;;
5099*)
5100 case $ac_srcdir in
5101 .) ac_abs_srcdir=$ac_abs_builddir;;
5102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5104 esac;;
5105esac
5106case $ac_abs_builddir in
5107.) ac_abs_top_srcdir=$ac_top_srcdir;;
5108*)
5109 case $ac_top_srcdir in
5110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5113 esac;;
5114esac
5115
5116
5117
5118 if test x"$ac_file" != x-; then
5119 { echo "$as_me:$LINENO: creating $ac_file" >&5
5120echo "$as_me: creating $ac_file" >&6;}
5121 rm -f "$ac_file"
5122 fi
5123 # Let's still pretend it is `configure' which instantiates (i.e., don't
5124 # use $as_me), people would be surprised to read:
5125 # /* config.h. Generated by config.status. */
5126 if test x"$ac_file" = x-; then
5127 configure_input=
5128 else
5129 configure_input="$ac_file. "
5130 fi
5131 configure_input=$configure_input"Generated from `echo $ac_file_in |
5132 sed 's,.*/,,'` by configure."
5133
5134 # First look for the input files in the build tree, otherwise in the
5135 # src tree.
5136 ac_file_inputs=`IFS=:
5137 for f in $ac_file_in; do
5138 case $f in
5139 -) echo $tmp/stdin ;;
5140 [\\/$]*)
5141 # Absolute (can't be DOS-style, as IFS=:)
5142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5143echo "$as_me: error: cannot find input file: $f" >&2;}
5144 { (exit 1); exit 1; }; }
5145 echo "$f";;
5146 *) # Relative
5147 if test -f "$f"; then
5148 # Build tree
5149 echo "$f"
5150 elif test -f "$srcdir/$f"; then
5151 # Source tree
5152 echo "$srcdir/$f"
5153 else
5154 # /dev/null tree
5155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5156echo "$as_me: error: cannot find input file: $f" >&2;}
5157 { (exit 1); exit 1; }; }
5158 fi;;
5159 esac
5160 done` || { (exit 1); exit 1; }
5161_ACEOF
5162cat >>$CONFIG_STATUS <<_ACEOF
5163 sed "$ac_vpsub
5164$extrasub
5165_ACEOF
5166cat >>$CONFIG_STATUS <<\_ACEOF
5167:t
5168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5169s,@configure_input@,$configure_input,;t t
5170s,@srcdir@,$ac_srcdir,;t t
5171s,@abs_srcdir@,$ac_abs_srcdir,;t t
5172s,@top_srcdir@,$ac_top_srcdir,;t t
5173s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5174s,@builddir@,$ac_builddir,;t t
5175s,@abs_builddir@,$ac_abs_builddir,;t t
5176s,@top_builddir@,$ac_top_builddir,;t t
5177s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5178" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5179 rm -f $tmp/stdin
5180 if test x"$ac_file" != x-; then
5181 mv $tmp/out $ac_file
5182 else
5183 cat $tmp/out
5184 rm -f $tmp/out
5185 fi
5186
5187done
5188_ACEOF
5189cat >>$CONFIG_STATUS <<\_ACEOF
5190
5191#
5192# CONFIG_HEADER section.
5193#
5194
5195# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5196# NAME is the cpp macro being defined and VALUE is the value it is being given.
5197#
5198# ac_d sets the value in "#define NAME VALUE" lines.
5199ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5200ac_dB='[ ].*$,\1#\2'
5201ac_dC=' '
5202ac_dD=',;t'
5203# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5204ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5205ac_uB='$,\1#\2define\3'
5206ac_uC=' '
5207ac_uD=',;t'
5208
5209for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5211 case $ac_file in
5212 - | *:- | *:-:* ) # input from stdin
5213 cat >$tmp/stdin
5214 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5216 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5218 * ) ac_file_in=$ac_file.in ;;
5219 esac
5220
5221 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5222echo "$as_me: creating $ac_file" >&6;}
5223
5224 # First look for the input files in the build tree, otherwise in the
5225 # src tree.
5226 ac_file_inputs=`IFS=:
5227 for f in $ac_file_in; do
5228 case $f in
5229 -) echo $tmp/stdin ;;
5230 [\\/$]*)
5231 # Absolute (can't be DOS-style, as IFS=:)
5232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5233echo "$as_me: error: cannot find input file: $f" >&2;}
5234 { (exit 1); exit 1; }; }
5235 # Do quote $f, to prevent DOS paths from being IFS'd.
5236 echo "$f";;
5237 *) # Relative
5238 if test -f "$f"; then
5239 # Build tree
5240 echo "$f"
5241 elif test -f "$srcdir/$f"; then
5242 # Source tree
5243 echo "$srcdir/$f"
5244 else
5245 # /dev/null tree
5246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5247echo "$as_me: error: cannot find input file: $f" >&2;}
5248 { (exit 1); exit 1; }; }
5249 fi;;
5250 esac
5251 done` || { (exit 1); exit 1; }
5252 # Remove the trailing spaces.
5253 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5254
5255_ACEOF
5256
5257# Transform confdefs.h into two sed scripts, `conftest.defines' and
5258# `conftest.undefs', that substitutes the proper values into
5259# config.h.in to produce config.h. The first handles `#define'
5260# templates, and the second `#undef' templates.
5261# And first: Protect against being on the right side of a sed subst in
5262# config.status. Protect against being in an unquoted here document
5263# in config.status.
5264rm -f conftest.defines conftest.undefs
5265# Using a here document instead of a string reduces the quoting nightmare.
5266# Putting comments in sed scripts is not portable.
5267#
5268# `end' is used to avoid that the second main sed command (meant for
5269# 0-ary CPP macros) applies to n-ary macro definitions.
5270# See the Autoconf documentation for `clear'.
5271cat >confdef2sed.sed <<\_ACEOF
5272s/[\\&,]/\\&/g
5273s,[\\$`],\\&,g
5274t clear
5275: clear
5276s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5277t end
5278s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5279: end
5280_ACEOF
5281# If some macros were called several times there might be several times
5282# the same #defines, which is useless. Nevertheless, we may not want to
5283# sort them, since we want the *last* AC-DEFINE to be honored.
5284uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5285sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5286rm -f confdef2sed.sed
5287
5288# This sed command replaces #undef with comments. This is necessary, for
5289# example, in the case of _POSIX_SOURCE, which is predefined and required
5290# on some systems where configure will not decide to define it.
5291cat >>conftest.undefs <<\_ACEOF
5292s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5293_ACEOF
5294
5295# Break up conftest.defines because some shells have a limit on the size
5296# of here documents, and old seds have small limits too (100 cmds).
5297echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5298echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5299echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5300echo ' :' >>$CONFIG_STATUS
5301rm -f conftest.tail
5302while grep . conftest.defines >/dev/null
5303do
5304 # Write a limited-size here document to $tmp/defines.sed.
5305 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5306 # Speed up: don't consider the non `#define' lines.
5307 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5308 # Work around the forget-to-reset-the-flag bug.
5309 echo 't clr' >>$CONFIG_STATUS
5310 echo ': clr' >>$CONFIG_STATUS
5311 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5312 echo 'CEOF
5313 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5314 rm -f $tmp/in
5315 mv $tmp/out $tmp/in
5316' >>$CONFIG_STATUS
5317 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5318 rm -f conftest.defines
5319 mv conftest.tail conftest.defines
5320done
5321rm -f conftest.defines
5322echo ' fi # grep' >>$CONFIG_STATUS
5323echo >>$CONFIG_STATUS
5324
5325# Break up conftest.undefs because some shells have a limit on the size
5326# of here documents, and old seds have small limits too (100 cmds).
5327echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5328rm -f conftest.tail
5329while grep . conftest.undefs >/dev/null
5330do
5331 # Write a limited-size here document to $tmp/undefs.sed.
5332 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5333 # Speed up: don't consider the non `#undef'
5334 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5335 # Work around the forget-to-reset-the-flag bug.
5336 echo 't clr' >>$CONFIG_STATUS
5337 echo ': clr' >>$CONFIG_STATUS
5338 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5339 echo 'CEOF
5340 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5341 rm -f $tmp/in
5342 mv $tmp/out $tmp/in
5343' >>$CONFIG_STATUS
5344 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5345 rm -f conftest.undefs
5346 mv conftest.tail conftest.undefs
5347done
5348rm -f conftest.undefs
5349
5350cat >>$CONFIG_STATUS <<\_ACEOF
5351 # Let's still pretend it is `configure' which instantiates (i.e., don't
5352 # use $as_me), people would be surprised to read:
5353 # /* config.h. Generated by config.status. */
5354 if test x"$ac_file" = x-; then
5355 echo "/* Generated by configure. */" >$tmp/config.h
5356 else
5357 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5358 fi
5359 cat $tmp/in >>$tmp/config.h
5360 rm -f $tmp/in
5361 if test x"$ac_file" != x-; then
5362 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5363 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5364echo "$as_me: $ac_file is unchanged" >&6;}
5365 else
5366 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5367$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5368 X"$ac_file" : 'X\(//\)[^/]' \| \
5369 X"$ac_file" : 'X\(//\)$' \| \
5370 X"$ac_file" : 'X\(/\)' \| \
5371 . : '\(.\)' 2>/dev/null ||
5372echo X"$ac_file" |
5373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5375 /^X\(\/\/\)$/{ s//\1/; q; }
5376 /^X\(\/\).*/{ s//\1/; q; }
5377 s/.*/./; q'`
5378 { if $as_mkdir_p; then
5379 mkdir -p "$ac_dir"
5380 else
5381 as_dir="$ac_dir"
5382 as_dirs=
5383 while test ! -d "$as_dir"; do
5384 as_dirs="$as_dir $as_dirs"
5385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5387 X"$as_dir" : 'X\(//\)[^/]' \| \
5388 X"$as_dir" : 'X\(//\)$' \| \
5389 X"$as_dir" : 'X\(/\)' \| \
5390 . : '\(.\)' 2>/dev/null ||
5391echo X"$as_dir" |
5392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5394 /^X\(\/\/\)$/{ s//\1/; q; }
5395 /^X\(\/\).*/{ s//\1/; q; }
5396 s/.*/./; q'`
5397 done
5398 test ! -n "$as_dirs" || mkdir $as_dirs
5399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5400echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5401 { (exit 1); exit 1; }; }; }
5402
5403 rm -f $ac_file
5404 mv $tmp/config.h $ac_file
5405 fi
5406 else
5407 cat $tmp/config.h
5408 rm -f $tmp/config.h
5409 fi
5410done
5411_ACEOF
5412
5413cat >>$CONFIG_STATUS <<\_ACEOF
5414
5415{ (exit 0); exit 0; }
5416_ACEOF
5417chmod +x $CONFIG_STATUS
5418ac_clean_files=$ac_clean_files_save
5419
5420
5421# configure is writing to config.log, and then calls config.status.
5422# config.status does its own redirection, appending to config.log.
5423# Unfortunately, on DOS this fails, as config.log is still kept open
5424# by configure, so config.status won't be able to write to it; its
5425# output is simply discarded. So we exec the FD to /dev/null,
5426# effectively closing config.log, so it can be properly (re)opened and
5427# appended to by config.status. When coming back to configure, we
5428# need to make the FD available again.
5429if test "$no_create" != yes; then
5430 ac_cs_success=:
5431 ac_config_status_args=
5432 test "$silent" = yes &&
5433 ac_config_status_args="$ac_config_status_args --quiet"
5434 exec 5>/dev/null
5435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5436 exec 5>>config.log
5437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5438 # would make configure fail if this is the last instruction.
5439 $ac_cs_success || { (exit 1); exit 1; }
5440fi
5441
This page took 0.406019 seconds and 4 git commands to generate.