Revert "Sync readline/ to version 7.0 alpha"
[deliverable/binutils-gdb.git] / readline / examples / rlfe / configure
CommitLineData
b585a9fa
EZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5836a818 3# Generated by GNU Autoconf 2.63.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5836a818 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b585a9fa
EZ
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
5836a818
PP
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
b585a9fa 12
81ecdfbb
RW
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
5836a818 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
b585a9fa
EZ
16 emulate sh
17 NULLCMD=:
81ecdfbb 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b585a9fa
EZ
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
21 setopt NO_GLOB_SUBST
22else
5836a818
PP
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
81ecdfbb 25esac
5836a818 26
b585a9fa 27fi
b585a9fa 28
81ecdfbb 29
5836a818
PP
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
81ecdfbb
RW
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5836a818 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
81ecdfbb
RW
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
b585a9fa 50else
81ecdfbb
RW
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
5836a818 58 case $arg in
81ecdfbb
RW
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b585a9fa
EZ
79fi
80
5836a818
PP
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
b585a9fa 88
81ecdfbb
RW
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
5836a818 97case $0 in
81ecdfbb
RW
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
5836a818
PP
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
81ecdfbb
RW
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5836a818 117 { (exit 1); exit 1; }
81ecdfbb
RW
118fi
119
5836a818
PP
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
81ecdfbb 123done
b585a9fa
EZ
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
81ecdfbb
RW
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
5836a818
PP
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
81ecdfbb 169# CDPATH.
5836a818
PP
170$as_unset CDPATH
171
81ecdfbb
RW
172
173if test "x$CONFIG_SHELL" = x; then
5836a818
PP
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
81ecdfbb 176else
5836a818 177 as_have_required=no
81ecdfbb 178fi
5836a818
PP
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
81ecdfbb
RW
196
197exitcode=0
5836a818
PP
198if as_func_success; then
199 :
cc88a640 200else
5836a818
PP
201 exitcode=1
202 echo as_func_success failed.
cc88a640
JK
203fi
204
5836a818
PP
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
cc88a640 212else
5836a818
PP
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81ecdfbb 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b585a9fa 242do
81ecdfbb
RW
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
5836a818 245 case $as_dir in
81ecdfbb
RW
246 /*)
247 for as_base in sh bash ksh sh5; do
5836a818 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
81ecdfbb
RW
249 done;;
250 esac
81ecdfbb 251done
81ecdfbb
RW
252IFS=$as_save_IFS
253
254
5836a818
PP
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
cc88a640 270
cc88a640 271fi
5836a818
PP
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
cc88a640
JK
292fi
293
5836a818
PP
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
4a11f206 310}
cc88a640 311
5836a818
PP
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
cc88a640 319
5836a818
PP
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
cc88a640 324
5836a818
PP
325if as_func_ret_success; then
326 :
b585a9fa 327else
5836a818
PP
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
4a11f206 339else
5836a818
PP
340 exitcode=1
341 echo positional parameters were not saved.
342fi
b585a9fa 343
5836a818 344test $exitcode = 0) || { (exit 1); exit 1; }
cc88a640 345
5836a818
PP
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
4a11f206 351
5836a818
PP
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
b585a9fa 404else
5836a818
PP
405 exitcode=1
406 echo as_func_success failed.
b585a9fa
EZ
407fi
408
5836a818
PP
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
4a11f206 416else
5836a818
PP
417 exitcode=1
418 echo as_func_ret_success failed.
cc88a640
JK
419fi
420
5836a818
PP
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
81ecdfbb 428else
5836a818
PP
429 exitcode=1
430 echo positional parameters were not saved.
81ecdfbb 431fi
b585a9fa 432
5836a818
PP
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
b585a9fa 440
b585a9fa 441
b585a9fa 442
5836a818
PP
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
81ecdfbb
RW
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
b585a9fa 462 sed '
81ecdfbb
RW
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
b585a9fa 467 N
81ecdfbb
RW
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b585a9fa 470 t loop
81ecdfbb 471 s/-\n.*//
b585a9fa 472 ' >$as_me.lineno &&
81ecdfbb 473 chmod +x "$as_me.lineno" ||
5836a818
PP
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
b585a9fa
EZ
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
b585a9fa
EZ
481 # Exit status is that of the last command.
482 exit
483}
484
5836a818
PP
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
81ecdfbb 492ECHO_C= ECHO_N= ECHO_T=
5836a818 493case `echo -n x` in
81ecdfbb 494-n*)
5836a818 495 case `echo 'x\c'` in
81ecdfbb 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5836a818 497 *) ECHO_C='\c';;
81ecdfbb
RW
498 esac;;
499*)
500 ECHO_N='-n';;
b585a9fa 501esac
5836a818
PP
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
cc88a640
JK
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
81ecdfbb 511 rm -f conf$$.dir/conf$$.file
b585a9fa 512else
81ecdfbb
RW
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
b585a9fa 515fi
81ecdfbb
RW
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
b585a9fa 518 as_ln_s='ln -s'
81ecdfbb
RW
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
b585a9fa 529 fi
b585a9fa
EZ
530else
531 as_ln_s='cp -p'
532fi
81ecdfbb
RW
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
b585a9fa
EZ
535
536if mkdir -p . 2>/dev/null; then
5836a818 537 as_mkdir_p=:
b585a9fa
EZ
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
81ecdfbb
RW
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
5836a818 556 case $1 in
81ecdfbb
RW
557 -*)set "./$1";;
558 esac;
5836a818 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
81ecdfbb
RW
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
b585a9fa
EZ
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
5836a818 573
81ecdfbb 574exec 7<&0 </dev/null 6>&1
b585a9fa
EZ
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
b585a9fa
EZ
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
81ecdfbb 585ac_clean_files=
b585a9fa 586ac_config_libobj_dir=.
81ecdfbb 587LIBOBJS=
b585a9fa
EZ
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
5836a818 592SHELL=${CONFIG_SHELL-/bin/sh}
b585a9fa
EZ
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="rlfe.c"
cc88a640
JK
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616# include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
81ecdfbb
RW
638ac_subst_vars='LTLIBOBJS
639LIBOBJS
640XTERMPATH
641WRITEPATH
642AWK
643EGREP
644GREP
645CPP
646OBJEXT
647EXEEXT
648ac_ct_CC
649CPPFLAGS
650LDFLAGS
651CFLAGS
652CC
653VERSION
654target_alias
655host_alias
656build_alias
657LIBS
658ECHO_T
659ECHO_N
660ECHO_C
661DEFS
662mandir
663localedir
664libdir
665psdir
666pdfdir
667dvidir
668htmldir
669infodir
670docdir
671oldincludedir
672includedir
673localstatedir
674sharedstatedir
675sysconfdir
676datadir
677datarootdir
678libexecdir
679sbindir
680bindir
681program_transform_name
682prefix
683exec_prefix
81ecdfbb
RW
684PACKAGE_BUGREPORT
685PACKAGE_STRING
686PACKAGE_VERSION
687PACKAGE_TARNAME
688PACKAGE_NAME
689PATH_SEPARATOR
690SHELL'
b585a9fa 691ac_subst_files=''
81ecdfbb
RW
692ac_user_opts='
693enable_option_checking
694with_pty_mode
695with_pty_group
696'
697 ac_precious_vars='build_alias
698host_alias
699target_alias
700CC
701CFLAGS
702LDFLAGS
703LIBS
704CPPFLAGS
705CPP'
706
b585a9fa
EZ
707
708# Initialize some variables set by options.
709ac_init_help=
710ac_init_version=false
81ecdfbb
RW
711ac_unrecognized_opts=
712ac_unrecognized_sep=
b585a9fa
EZ
713# The variables have the same names as the options, with
714# dashes changed to underlines.
715cache_file=/dev/null
716exec_prefix=NONE
717no_create=
718no_recursion=
719prefix=NONE
720program_prefix=NONE
721program_suffix=NONE
722program_transform_name=s,x,x,
723silent=
724site=
725srcdir=
726verbose=
727x_includes=NONE
728x_libraries=NONE
729
730# Installation directory options.
731# These are left unexpanded so users can "make install exec_prefix=/foo"
732# and all the variables that are supposed to be based on exec_prefix
733# by default will actually change.
734# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 735# (The list follows the same order as the GNU Coding Standards.)
b585a9fa
EZ
736bindir='${exec_prefix}/bin'
737sbindir='${exec_prefix}/sbin'
738libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
739datarootdir='${prefix}/share'
740datadir='${datarootdir}'
b585a9fa
EZ
741sysconfdir='${prefix}/etc'
742sharedstatedir='${prefix}/com'
743localstatedir='${prefix}/var'
b585a9fa
EZ
744includedir='${prefix}/include'
745oldincludedir='/usr/include'
81ecdfbb
RW
746docdir='${datarootdir}/doc/${PACKAGE}'
747infodir='${datarootdir}/info'
748htmldir='${docdir}'
749dvidir='${docdir}'
750pdfdir='${docdir}'
751psdir='${docdir}'
752libdir='${exec_prefix}/lib'
753localedir='${datarootdir}/locale'
754mandir='${datarootdir}/man'
b585a9fa
EZ
755
756ac_prev=
81ecdfbb 757ac_dashdash=
b585a9fa
EZ
758for ac_option
759do
760 # If the previous option needs an argument, assign it.
761 if test -n "$ac_prev"; then
81ecdfbb 762 eval $ac_prev=\$ac_option
b585a9fa
EZ
763 ac_prev=
764 continue
765 fi
766
81ecdfbb
RW
767 case $ac_option in
768 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
769 *) ac_optarg=yes ;;
770 esac
b585a9fa
EZ
771
772 # Accept the important Cygnus configure options, so we can diagnose typos.
773
81ecdfbb
RW
774 case $ac_dashdash$ac_option in
775 --)
776 ac_dashdash=yes ;;
b585a9fa
EZ
777
778 -bindir | --bindir | --bindi | --bind | --bin | --bi)
779 ac_prev=bindir ;;
780 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
781 bindir=$ac_optarg ;;
782
783 -build | --build | --buil | --bui | --bu)
784 ac_prev=build_alias ;;
785 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786 build_alias=$ac_optarg ;;
787
788 -cache-file | --cache-file | --cache-fil | --cache-fi \
789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790 ac_prev=cache_file ;;
791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793 cache_file=$ac_optarg ;;
794
795 --config-cache | -C)
796 cache_file=config.cache ;;
797
81ecdfbb 798 -datadir | --datadir | --datadi | --datad)
b585a9fa 799 ac_prev=datadir ;;
81ecdfbb 800 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b585a9fa
EZ
801 datadir=$ac_optarg ;;
802
81ecdfbb
RW
803 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804 | --dataroo | --dataro | --datar)
805 ac_prev=datarootdir ;;
806 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808 datarootdir=$ac_optarg ;;
809
b585a9fa 810 -disable-* | --disable-*)
81ecdfbb 811 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b585a9fa 812 # Reject names that are not valid shell variable names.
81ecdfbb 813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5836a818
PP
814 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
815 { (exit 1); exit 1; }; }
81ecdfbb
RW
816 ac_useropt_orig=$ac_useropt
817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
818 case $ac_user_opts in
819 *"
820"enable_$ac_useropt"
821"*) ;;
822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
823 ac_unrecognized_sep=', ';;
824 esac
825 eval enable_$ac_useropt=no ;;
826
827 -docdir | --docdir | --docdi | --doc | --do)
828 ac_prev=docdir ;;
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
830 docdir=$ac_optarg ;;
831
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 ac_prev=dvidir ;;
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
835 dvidir=$ac_optarg ;;
b585a9fa
EZ
836
837 -enable-* | --enable-*)
81ecdfbb 838 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b585a9fa 839 # Reject names that are not valid shell variable names.
81ecdfbb 840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5836a818
PP
841 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
842 { (exit 1); exit 1; }; }
81ecdfbb
RW
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847"enable_$ac_useropt"
848"*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
b585a9fa 851 esac
81ecdfbb 852 eval enable_$ac_useropt=\$ac_optarg ;;
b585a9fa
EZ
853
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
862
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
865 with_gas=yes ;;
866
867 -help | --help | --hel | --he | -h)
868 ac_init_help=long ;;
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
873
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
878
81ecdfbb
RW
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 ac_prev=htmldir ;;
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 | --ht=*)
883 htmldir=$ac_optarg ;;
884
b585a9fa
EZ
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
891
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 ac_prev=infodir ;;
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
896
897 -libdir | --libdir | --libdi | --libd)
898 ac_prev=libdir ;;
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 libdir=$ac_optarg ;;
901
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
908
81ecdfbb
RW
909 -localedir | --localedir | --localedi | --localed | --locale)
910 ac_prev=localedir ;;
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
913
b585a9fa 914 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 915 | --localstate | --localstat | --localsta | --localst | --locals)
b585a9fa
EZ
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b585a9fa
EZ
919 localstatedir=$ac_optarg ;;
920
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 ac_prev=mandir ;;
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924 mandir=$ac_optarg ;;
925
926 -nfp | --nfp | --nf)
927 # Obsolete; use --without-fp.
928 with_fp=no ;;
929
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
932 no_create=yes ;;
933
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 no_recursion=yes ;;
937
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
946
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 ac_prev=prefix ;;
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 prefix=$ac_optarg ;;
951
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
958
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
965
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
982
81ecdfbb
RW
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 ac_prev=pdfdir ;;
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 pdfdir=$ac_optarg ;;
987
988 -psdir | --psdir | --psdi | --psd | --ps)
989 ac_prev=psdir ;;
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 psdir=$ac_optarg ;;
992
b585a9fa
EZ
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
995 silent=yes ;;
996
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 ac_prev=sbindir ;;
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 | --sbi=* | --sb=*)
1001 sbindir=$ac_optarg ;;
1002
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1006 | --sha | --sh)
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 | --sha=* | --sh=*)
1012 sharedstatedir=$ac_optarg ;;
1013
1014 -site | --site | --sit)
1015 ac_prev=site ;;
1016 -site=* | --site=* | --sit=*)
1017 site=$ac_optarg ;;
1018
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 ac_prev=srcdir ;;
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1023
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1030
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1035
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 verbose=yes ;;
1038
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1041
1042 -with-* | --with-*)
81ecdfbb 1043 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b585a9fa 1044 # Reject names that are not valid shell variable names.
81ecdfbb 1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5836a818
PP
1046 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1047 { (exit 1); exit 1; }; }
81ecdfbb
RW
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"with_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
b585a9fa 1056 esac
81ecdfbb 1057 eval with_$ac_useropt=\$ac_optarg ;;
b585a9fa
EZ
1058
1059 -without-* | --without-*)
81ecdfbb 1060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b585a9fa 1061 # Reject names that are not valid shell variable names.
81ecdfbb 1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5836a818
PP
1063 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1064 { (exit 1); exit 1; }; }
81ecdfbb
RW
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069"with_$ac_useropt"
1070"*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval with_$ac_useropt=no ;;
b585a9fa
EZ
1075
1076 --x)
1077 # Obsolete; use --with-x.
1078 with_x=yes ;;
1079
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081 | --x-incl | --x-inc | --x-in | --x-i)
1082 ac_prev=x_includes ;;
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085 x_includes=$ac_optarg ;;
1086
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089 ac_prev=x_libraries ;;
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092 x_libraries=$ac_optarg ;;
1093
5836a818
PP
1094 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1095Try \`$0 --help' for more information." >&2
1096 { (exit 1); exit 1; }; }
b585a9fa
EZ
1097 ;;
1098
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
5836a818
PP
1102 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1103 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1104 { (exit 1); exit 1; }; }
81ecdfbb 1105 eval $ac_envvar=\$ac_optarg
b585a9fa
EZ
1106 export $ac_envvar ;;
1107
1108 *)
1109 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1110 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b585a9fa 1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1112 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b585a9fa
EZ
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1114 ;;
1115
1116 esac
1117done
1118
1119if test -n "$ac_prev"; then
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5836a818
PP
1121 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1122 { (exit 1); exit 1; }; }
b585a9fa
EZ
1123fi
1124
81ecdfbb
RW
1125if test -n "$ac_unrecognized_opts"; then
1126 case $enable_option_checking in
1127 no) ;;
5836a818
PP
1128 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1129 { (exit 1); exit 1; }; } ;;
81ecdfbb 1130 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b585a9fa 1131 esac
81ecdfbb 1132fi
b585a9fa 1133
81ecdfbb
RW
1134# Check all directory arguments for consistency.
1135for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
b585a9fa 1139do
81ecdfbb
RW
1140 eval ac_val=\$$ac_var
1141 # Remove trailing slashes.
1142 case $ac_val in
1143 */ )
1144 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1145 eval $ac_var=\$ac_val;;
1146 esac
1147 # Be sure to have absolute directory names.
b585a9fa 1148 case $ac_val in
81ecdfbb
RW
1149 [\\/$]* | ?:[\\/]* ) continue;;
1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
b585a9fa 1151 esac
5836a818
PP
1152 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1153 { (exit 1); exit 1; }; }
b585a9fa
EZ
1154done
1155
1156# There might be people who depend on the old broken behavior: `$host'
1157# used to hold the argument of --host etc.
1158# FIXME: To remove some day.
1159build=$build_alias
1160host=$host_alias
1161target=$target_alias
1162
1163# FIXME: To remove some day.
1164if test "x$host_alias" != x; then
1165 if test "x$build_alias" = x; then
1166 cross_compiling=maybe
81ecdfbb 1167 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b585a9fa
EZ
1168 If a cross compiler is detected then cross compile mode will be used." >&2
1169 elif test "x$build_alias" != "x$host_alias"; then
1170 cross_compiling=yes
1171 fi
1172fi
1173
1174ac_tool_prefix=
1175test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176
1177test "$silent" = yes && exec 6>/dev/null
1178
1179
81ecdfbb
RW
1180ac_pwd=`pwd` && test -n "$ac_pwd" &&
1181ac_ls_di=`ls -di .` &&
1182ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5836a818
PP
1183 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1184 { (exit 1); exit 1; }; }
81ecdfbb 1185test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5836a818
PP
1186 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1187 { (exit 1); exit 1; }; }
81ecdfbb
RW
1188
1189
b585a9fa
EZ
1190# Find the source files, if location was not specified.
1191if test -z "$srcdir"; then
1192 ac_srcdir_defaulted=yes
81ecdfbb
RW
1193 # Try the directory containing this script, then the parent directory.
1194 ac_confdir=`$as_dirname -- "$as_myself" ||
1195$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196 X"$as_myself" : 'X\(//\)[^/]' \| \
1197 X"$as_myself" : 'X\(//\)$' \| \
1198 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199$as_echo X"$as_myself" |
1200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\/\)[^/].*/{
1205 s//\1/
1206 q
1207 }
1208 /^X\(\/\/\)$/{
1209 s//\1/
1210 q
1211 }
1212 /^X\(\/\).*/{
1213 s//\1/
1214 q
1215 }
1216 s/.*/./; q'`
b585a9fa 1217 srcdir=$ac_confdir
81ecdfbb 1218 if test ! -r "$srcdir/$ac_unique_file"; then
b585a9fa
EZ
1219 srcdir=..
1220 fi
1221else
1222 ac_srcdir_defaulted=no
1223fi
81ecdfbb
RW
1224if test ! -r "$srcdir/$ac_unique_file"; then
1225 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5836a818
PP
1226 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1227 { (exit 1); exit 1; }; }
81ecdfbb
RW
1228fi
1229ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1230ac_abs_confdir=`(
5836a818
PP
1231 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1232 { (exit 1); exit 1; }; }
81ecdfbb
RW
1233 pwd)`
1234# When building in place, set srcdir=.
1235if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 srcdir=.
1237fi
1238# Remove unnecessary trailing slashes from srcdir.
1239# Double slashes in file names in object file debugging info
1240# mess up M-x gdb in Emacs.
1241case $srcdir in
1242*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243esac
1244for ac_var in $ac_precious_vars; do
1245 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1246 eval ac_env_${ac_var}_value=\$${ac_var}
1247 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1249done
b585a9fa
EZ
1250
1251#
1252# Report the --help message.
1253#
1254if test "$ac_init_help" = "long"; then
1255 # Omit some internal or obsolete options to make the list less imposing.
1256 # This message is too long to be a string in the A/UX 3.1 sh.
1257 cat <<_ACEOF
1258\`configure' configures this package to adapt to many kinds of systems.
1259
1260Usage: $0 [OPTION]... [VAR=VALUE]...
1261
1262To assign environment variables (e.g., CC, CFLAGS...), specify them as
1263VAR=VALUE. See below for descriptions of some of the useful variables.
1264
1265Defaults for the options are specified in brackets.
1266
1267Configuration:
1268 -h, --help display this help and exit
1269 --help=short display options specific to this package
1270 --help=recursive display the short help of all the included packages
1271 -V, --version display version information and exit
1272 -q, --quiet, --silent do not print \`checking...' messages
1273 --cache-file=FILE cache test results in FILE [disabled]
1274 -C, --config-cache alias for \`--cache-file=config.cache'
1275 -n, --no-create do not create output files
1276 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277
b585a9fa
EZ
1278Installation directories:
1279 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1280 [$ac_default_prefix]
b585a9fa 1281 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1282 [PREFIX]
b585a9fa
EZ
1283
1284By default, \`make install' will install all the files in
1285\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1286an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1287for instance \`--prefix=\$HOME'.
1288
1289For better control, use the options below.
1290
1291Fine tuning of the installation directories:
81ecdfbb
RW
1292 --bindir=DIR user executables [EPREFIX/bin]
1293 --sbindir=DIR system admin executables [EPREFIX/sbin]
1294 --libexecdir=DIR program executables [EPREFIX/libexec]
1295 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1296 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1297 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
b585a9fa
EZ
1311_ACEOF
1312
1313 cat <<\_ACEOF
1314_ACEOF
1315fi
1316
1317if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321Optional Packages:
1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1324 --with-pty-mode=mode default mode for ptys
1325 --with-pty-group=group default group for ptys
1326
1327Some influential environment variables:
1328 CC C compiler command
1329 CFLAGS C compiler flags
1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1331 nonstandard directory <lib dir>
81ecdfbb
RW
1332 LIBS libraries to pass to the linker, e.g. -l<library>
1333 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1334 you have headers in a nonstandard directory <include dir>
b585a9fa
EZ
1335 CPP C preprocessor
1336
1337Use these variables to override the choices made by `configure' or to help
1338it to find libraries and programs with nonstandard names/locations.
1339
1340_ACEOF
81ecdfbb 1341ac_status=$?
b585a9fa
EZ
1342fi
1343
1344if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
b585a9fa 1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1347 test -d "$ac_dir" ||
1348 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1349 continue
b585a9fa
EZ
1350 ac_builddir=.
1351
81ecdfbb
RW
1352case "$ac_dir" in
1353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354*)
1355 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1356 # A ".." for each directory in $ac_dir_suffix.
1357 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1358 case $ac_top_builddir_sub in
1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 esac ;;
1362esac
1363ac_abs_top_builddir=$ac_pwd
1364ac_abs_builddir=$ac_pwd$ac_dir_suffix
1365# for backward compatibility:
1366ac_top_builddir=$ac_top_build_prefix
b585a9fa
EZ
1367
1368case $srcdir in
81ecdfbb 1369 .) # We are building in place.
b585a9fa 1370 ac_srcdir=.
81ecdfbb
RW
1371 ac_top_srcdir=$ac_top_builddir_sub
1372 ac_abs_top_srcdir=$ac_pwd ;;
1373 [\\/]* | ?:[\\/]* ) # Absolute name.
b585a9fa 1374 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1375 ac_top_srcdir=$srcdir
1376 ac_abs_top_srcdir=$srcdir ;;
1377 *) # Relative name.
1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1379 ac_top_srcdir=$ac_top_build_prefix$srcdir
1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b585a9fa 1381esac
81ecdfbb
RW
1382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383
1384 cd "$ac_dir" || { ac_status=$?; continue; }
1385 # Check for guested configure.
1386 if test -f "$ac_srcdir/configure.gnu"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1389 elif test -f "$ac_srcdir/configure"; then
1390 echo &&
1391 $SHELL "$ac_srcdir/configure" --help=recursive
b585a9fa 1392 else
81ecdfbb
RW
1393 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1394 fi || ac_status=$?
1395 cd "$ac_pwd" || { ac_status=$?; break; }
b585a9fa
EZ
1396 done
1397fi
1398
81ecdfbb 1399test -n "$ac_init_help" && exit $ac_status
b585a9fa
EZ
1400if $ac_init_version; then
1401 cat <<\_ACEOF
81ecdfbb 1402configure
5836a818 1403generated by GNU Autoconf 2.63
b585a9fa 1404
5836a818
PP
1405Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
b585a9fa
EZ
1407This configure script is free software; the Free Software Foundation
1408gives unlimited permission to copy, distribute and modify it.
1409_ACEOF
81ecdfbb 1410 exit
b585a9fa 1411fi
81ecdfbb
RW
1412cat >config.log <<_ACEOF
1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
1416It was created by $as_me, which was
5836a818 1417generated by GNU Autoconf 2.63. Invocation command line was
81ecdfbb
RW
1418
1419 $ $0 $@
1420
1421_ACEOF
1422exec 5>>config.log
1423{
1424cat <<_ASUNAME
1425## --------- ##
1426## Platform. ##
1427## --------- ##
1428
1429hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433uname -v = `(uname -v) 2>/dev/null || echo unknown`
1434
1435/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1436/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1437
1438/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1439/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1440/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1441/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1442/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1443/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1444/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1445
1446_ASUNAME
1447
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
5836a818
PP
1453 $as_echo "PATH: $as_dir"
1454done
81ecdfbb
RW
1455IFS=$as_save_IFS
1456
1457} >&5
1458
1459cat >&5 <<_ACEOF
1460
1461
1462## ----------- ##
1463## Core tests. ##
1464## ----------- ##
1465
1466_ACEOF
b585a9fa
EZ
1467
1468
1469# Keep a trace of the command line.
1470# Strip out --no-create and --no-recursion so they do not pile up.
1471# Strip out --silent because we don't want to record it for future runs.
1472# Also quote any args containing shell meta-characters.
1473# Make two passes to allow for proper duplicate-argument suppression.
1474ac_configure_args=
1475ac_configure_args0=
1476ac_configure_args1=
b585a9fa
EZ
1477ac_must_keep_next=false
1478for ac_pass in 1 2
1479do
1480 for ac_arg
1481 do
1482 case $ac_arg in
1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485 | -silent | --silent | --silen | --sile | --sil)
1486 continue ;;
81ecdfbb
RW
1487 *\'*)
1488 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b585a9fa
EZ
1489 esac
1490 case $ac_pass in
5836a818 1491 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
b585a9fa 1492 2)
5836a818 1493 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
b585a9fa
EZ
1494 if test $ac_must_keep_next = true; then
1495 ac_must_keep_next=false # Got value, back to normal.
1496 else
1497 case $ac_arg in
1498 *=* | --config-cache | -C | -disable-* | --disable-* \
1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1501 | -with-* | --with-* | -without-* | --without-* | --x)
1502 case "$ac_configure_args0 " in
1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1504 esac
1505 ;;
1506 -* ) ac_must_keep_next=true ;;
1507 esac
1508 fi
5836a818 1509 ac_configure_args="$ac_configure_args '$ac_arg'"
b585a9fa
EZ
1510 ;;
1511 esac
1512 done
1513done
5836a818
PP
1514$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1515$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
b585a9fa
EZ
1516
1517# When interrupted or exit'd, cleanup temporary files, and complete
1518# config.log. We remove comments because anyway the quotes in there
1519# would cause problems or look ugly.
81ecdfbb
RW
1520# WARNING: Use '\'' to represent an apostrophe within the trap.
1521# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b585a9fa
EZ
1522trap 'exit_status=$?
1523 # Save into config.log some information that might help in debugging.
1524 {
1525 echo
1526
1527 cat <<\_ASBOX
1528## ---------------- ##
1529## Cache variables. ##
1530## ---------------- ##
1531_ASBOX
1532 echo
1533 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1534(
1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1536 eval ac_val=\$$ac_var
1537 case $ac_val in #(
1538 *${as_nl}*)
1539 case $ac_var in #(
5836a818 1540 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
81ecdfbb
RW
1541$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1542 esac
1543 case $ac_var in #(
1544 _ | IFS | as_nl) ;; #(
1545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5836a818 1546 *) $as_unset $ac_var ;;
81ecdfbb
RW
1547 esac ;;
1548 esac
1549 done
b585a9fa 1550 (set) 2>&1 |
81ecdfbb
RW
1551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1552 *${as_nl}ac_space=\ *)
b585a9fa 1553 sed -n \
81ecdfbb
RW
1554 "s/'\''/'\''\\\\'\'''\''/g;
1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1556 ;; #(
b585a9fa 1557 *)
81ecdfbb 1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b585a9fa 1559 ;;
81ecdfbb
RW
1560 esac |
1561 sort
1562)
b585a9fa
EZ
1563 echo
1564
1565 cat <<\_ASBOX
1566## ----------------- ##
1567## Output variables. ##
1568## ----------------- ##
1569_ASBOX
1570 echo
1571 for ac_var in $ac_subst_vars
1572 do
81ecdfbb
RW
1573 eval ac_val=\$$ac_var
1574 case $ac_val in
1575 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 esac
1577 $as_echo "$ac_var='\''$ac_val'\''"
b585a9fa
EZ
1578 done | sort
1579 echo
1580
1581 if test -n "$ac_subst_files"; then
1582 cat <<\_ASBOX
81ecdfbb
RW
1583## ------------------- ##
1584## File substitutions. ##
1585## ------------------- ##
b585a9fa
EZ
1586_ASBOX
1587 echo
1588 for ac_var in $ac_subst_files
1589 do
81ecdfbb
RW
1590 eval ac_val=\$$ac_var
1591 case $ac_val in
1592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 esac
1594 $as_echo "$ac_var='\''$ac_val'\''"
b585a9fa
EZ
1595 done | sort
1596 echo
1597 fi
1598
1599 if test -s confdefs.h; then
1600 cat <<\_ASBOX
1601## ----------- ##
1602## confdefs.h. ##
1603## ----------- ##
1604_ASBOX
1605 echo
81ecdfbb 1606 cat confdefs.h
b585a9fa
EZ
1607 echo
1608 fi
1609 test "$ac_signal" != 0 &&
81ecdfbb
RW
1610 $as_echo "$as_me: caught signal $ac_signal"
1611 $as_echo "$as_me: exit $exit_status"
b585a9fa 1612 } >&5
81ecdfbb
RW
1613 rm -f core *.core core.conftest.* &&
1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b585a9fa 1615 exit $exit_status
81ecdfbb 1616' 0
b585a9fa 1617for ac_signal in 1 2 13 15; do
5836a818 1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
b585a9fa
EZ
1619done
1620ac_signal=0
1621
1622# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1623rm -f -r conftest* confdefs.h
1624
b585a9fa
EZ
1625# Predefined preprocessor variables.
1626
1627cat >>confdefs.h <<_ACEOF
1628#define PACKAGE_NAME "$PACKAGE_NAME"
1629_ACEOF
1630
5836a818 1631
b585a9fa
EZ
1632cat >>confdefs.h <<_ACEOF
1633#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1634_ACEOF
1635
5836a818 1636
b585a9fa
EZ
1637cat >>confdefs.h <<_ACEOF
1638#define PACKAGE_VERSION "$PACKAGE_VERSION"
1639_ACEOF
1640
5836a818 1641
b585a9fa
EZ
1642cat >>confdefs.h <<_ACEOF
1643#define PACKAGE_STRING "$PACKAGE_STRING"
1644_ACEOF
1645
81ecdfbb 1646
4a11f206 1647cat >>confdefs.h <<_ACEOF
5836a818 1648#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4a11f206
PP
1649_ACEOF
1650
b585a9fa
EZ
1651
1652# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1653# Prefer an explicitly selected file to automatically selected ones.
1654ac_site_file1=NONE
1655ac_site_file2=NONE
1656if test -n "$CONFIG_SITE"; then
1657 ac_site_file1=$CONFIG_SITE
1658elif test "x$prefix" != xNONE; then
1659 ac_site_file1=$prefix/share/config.site
1660 ac_site_file2=$prefix/etc/config.site
1661else
1662 ac_site_file1=$ac_default_prefix/share/config.site
1663 ac_site_file2=$ac_default_prefix/etc/config.site
b585a9fa 1664fi
81ecdfbb
RW
1665for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1666do
1667 test "x$ac_site_file" = xNONE && continue
b585a9fa 1668 if test -r "$ac_site_file"; then
5836a818 1669 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
81ecdfbb 1670$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b585a9fa
EZ
1671 sed 's/^/| /' "$ac_site_file" >&5
1672 . "$ac_site_file"
1673 fi
1674done
1675
1676if test -r "$cache_file"; then
1677 # Some versions of bash will fail to source /dev/null (special
1678 # files actually), so we avoid doing that.
1679 if test -f "$cache_file"; then
5836a818 1680 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
81ecdfbb 1681$as_echo "$as_me: loading cache $cache_file" >&6;}
b585a9fa 1682 case $cache_file in
81ecdfbb
RW
1683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1684 *) . "./$cache_file";;
b585a9fa
EZ
1685 esac
1686 fi
1687else
5836a818 1688 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
81ecdfbb 1689$as_echo "$as_me: creating cache $cache_file" >&6;}
b585a9fa
EZ
1690 >$cache_file
1691fi
1692
1693# Check that the precious variables saved in the cache have kept the same
1694# value.
1695ac_cache_corrupted=false
81ecdfbb 1696for ac_var in $ac_precious_vars; do
b585a9fa
EZ
1697 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1698 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
1699 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1700 eval ac_new_val=\$ac_env_${ac_var}_value
b585a9fa
EZ
1701 case $ac_old_set,$ac_new_set in
1702 set,)
5836a818 1703 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
81ecdfbb 1704$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b585a9fa
EZ
1705 ac_cache_corrupted=: ;;
1706 ,set)
5836a818 1707 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
81ecdfbb 1708$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b585a9fa
EZ
1709 ac_cache_corrupted=: ;;
1710 ,);;
1711 *)
1712 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
1713 # differences in whitespace do not lead to failure.
1714 ac_old_val_w=`echo x $ac_old_val`
1715 ac_new_val_w=`echo x $ac_new_val`
1716 if test "$ac_old_val_w" != "$ac_new_val_w"; then
5836a818 1717 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
81ecdfbb
RW
1718$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1719 ac_cache_corrupted=:
1720 else
5836a818 1721 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
81ecdfbb
RW
1722$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1723 eval $ac_var=\$ac_old_val
1724 fi
5836a818 1725 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
81ecdfbb 1726$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
5836a818 1727 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
81ecdfbb 1728$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b585a9fa
EZ
1729 fi;;
1730 esac
1731 # Pass precious variables to config.status.
1732 if test "$ac_new_set" = set; then
1733 case $ac_new_val in
81ecdfbb 1734 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b585a9fa
EZ
1735 *) ac_arg=$ac_var=$ac_new_val ;;
1736 esac
1737 case " $ac_configure_args " in
1738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5836a818 1739 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
b585a9fa
EZ
1740 esac
1741 fi
1742done
1743if $ac_cache_corrupted; then
5836a818 1744 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 1745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818 1746 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
81ecdfbb 1747$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
5836a818
PP
1748 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1749$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1750 { (exit 1); exit 1; }; }
b585a9fa 1751fi
5836a818
PP
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
b585a9fa
EZ
1768
1769ac_ext=c
1770ac_cpp='$CPP $CPPFLAGS'
1771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1773ac_compiler_gnu=$ac_cv_c_compiler_gnu
1774
1775
81ecdfbb 1776ac_config_headers="$ac_config_headers config.h"
b585a9fa
EZ
1777
1778VERSION=0.4
1779
1780
1781
1782old_CFLAGS="$CFLAGS"
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790set dummy ${ac_tool_prefix}gcc; ac_word=$2
5836a818 1791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 1792$as_echo_n "checking for $ac_word... " >&6; }
5836a818 1793if test "${ac_cv_prog_CC+set}" = set; then
81ecdfbb 1794 $as_echo_n "(cached) " >&6
b585a9fa
EZ
1795else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
5836a818 1804 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 1806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5836a818 1807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
1808 break 2
1809 fi
1810done
5836a818 1811done
81ecdfbb 1812IFS=$as_save_IFS
b585a9fa
EZ
1813
1814fi
1815fi
1816CC=$ac_cv_prog_CC
1817if test -n "$CC"; then
5836a818 1818 { $as_echo "$as_me:$LINENO: result: $CC" >&5
81ecdfbb 1819$as_echo "$CC" >&6; }
b585a9fa 1820else
5836a818 1821 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 1822$as_echo "no" >&6; }
b585a9fa
EZ
1823fi
1824
81ecdfbb 1825
b585a9fa
EZ
1826fi
1827if test -z "$ac_cv_prog_CC"; then
1828 ac_ct_CC=$CC
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830set dummy gcc; ac_word=$2
5836a818 1831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 1832$as_echo_n "checking for $ac_word... " >&6; }
5836a818 1833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
81ecdfbb 1834 $as_echo_n "(cached) " >&6
b585a9fa
EZ
1835else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
5836a818 1844 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 1846 ac_cv_prog_ac_ct_CC="gcc"
5836a818 1847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
1848 break 2
1849 fi
1850done
5836a818 1851done
81ecdfbb 1852IFS=$as_save_IFS
b585a9fa
EZ
1853
1854fi
1855fi
1856ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857if test -n "$ac_ct_CC"; then
5836a818 1858 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
81ecdfbb 1859$as_echo "$ac_ct_CC" >&6; }
b585a9fa 1860else
5836a818 1861 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 1862$as_echo "no" >&6; }
b585a9fa
EZ
1863fi
1864
81ecdfbb
RW
1865 if test "x$ac_ct_CC" = x; then
1866 CC=""
1867 else
1868 case $cross_compiling:$ac_tool_warned in
1869yes:)
5836a818 1870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
81ecdfbb
RW
1871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1872ac_tool_warned=yes ;;
1873esac
1874 CC=$ac_ct_CC
1875 fi
b585a9fa
EZ
1876else
1877 CC="$ac_cv_prog_CC"
1878fi
1879
1880if test -z "$CC"; then
81ecdfbb
RW
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b585a9fa 1883set dummy ${ac_tool_prefix}cc; ac_word=$2
5836a818 1884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 1885$as_echo_n "checking for $ac_word... " >&6; }
5836a818 1886if test "${ac_cv_prog_CC+set}" = set; then
81ecdfbb 1887 $as_echo_n "(cached) " >&6
b585a9fa
EZ
1888else
1889 if test -n "$CC"; then
1890 ac_cv_prog_CC="$CC" # Let the user override the test.
1891else
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
5836a818 1897 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 1898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 1899 ac_cv_prog_CC="${ac_tool_prefix}cc"
5836a818 1900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
1901 break 2
1902 fi
1903done
5836a818 1904done
81ecdfbb 1905IFS=$as_save_IFS
b585a9fa
EZ
1906
1907fi
1908fi
1909CC=$ac_cv_prog_CC
1910if test -n "$CC"; then
5836a818 1911 { $as_echo "$as_me:$LINENO: result: $CC" >&5
81ecdfbb 1912$as_echo "$CC" >&6; }
b585a9fa 1913else
5836a818 1914 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 1915$as_echo "no" >&6; }
b585a9fa
EZ
1916fi
1917
b585a9fa 1918
81ecdfbb 1919 fi
b585a9fa
EZ
1920fi
1921if test -z "$CC"; then
1922 # Extract the first word of "cc", so it can be a program name with args.
1923set dummy cc; ac_word=$2
5836a818 1924{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 1925$as_echo_n "checking for $ac_word... " >&6; }
5836a818 1926if test "${ac_cv_prog_CC+set}" = set; then
81ecdfbb 1927 $as_echo_n "(cached) " >&6
b585a9fa
EZ
1928else
1929 if test -n "$CC"; then
1930 ac_cv_prog_CC="$CC" # Let the user override the test.
1931else
1932 ac_prog_rejected=no
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
5836a818 1938 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 1939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa
EZ
1940 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1941 ac_prog_rejected=yes
1942 continue
1943 fi
1944 ac_cv_prog_CC="cc"
5836a818 1945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
1946 break 2
1947 fi
1948done
5836a818 1949done
81ecdfbb 1950IFS=$as_save_IFS
b585a9fa
EZ
1951
1952if test $ac_prog_rejected = yes; then
1953 # We found a bogon in the path, so make sure we never use it.
1954 set dummy $ac_cv_prog_CC
1955 shift
1956 if test $# != 0; then
1957 # We chose a different compiler from the bogus one.
1958 # However, it has the same basename, so the bogon will be chosen
1959 # first if we set CC to just the basename; use the full file name.
1960 shift
1961 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1962 fi
1963fi
1964fi
1965fi
1966CC=$ac_cv_prog_CC
1967if test -n "$CC"; then
5836a818 1968 { $as_echo "$as_me:$LINENO: result: $CC" >&5
81ecdfbb 1969$as_echo "$CC" >&6; }
b585a9fa 1970else
5836a818 1971 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 1972$as_echo "no" >&6; }
b585a9fa
EZ
1973fi
1974
81ecdfbb 1975
b585a9fa
EZ
1976fi
1977if test -z "$CC"; then
1978 if test -n "$ac_tool_prefix"; then
81ecdfbb 1979 for ac_prog in cl.exe
b585a9fa
EZ
1980 do
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5836a818 1983{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 1984$as_echo_n "checking for $ac_word... " >&6; }
5836a818 1985if test "${ac_cv_prog_CC+set}" = set; then
81ecdfbb 1986 $as_echo_n "(cached) " >&6
b585a9fa
EZ
1987else
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1990else
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
5836a818 1996 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 1998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5836a818 1999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2000 break 2
2001 fi
2002done
5836a818 2003done
81ecdfbb 2004IFS=$as_save_IFS
b585a9fa
EZ
2005
2006fi
2007fi
2008CC=$ac_cv_prog_CC
2009if test -n "$CC"; then
5836a818 2010 { $as_echo "$as_me:$LINENO: result: $CC" >&5
81ecdfbb 2011$as_echo "$CC" >&6; }
b585a9fa 2012else
5836a818 2013 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 2014$as_echo "no" >&6; }
b585a9fa
EZ
2015fi
2016
81ecdfbb 2017
b585a9fa
EZ
2018 test -n "$CC" && break
2019 done
2020fi
2021if test -z "$CC"; then
2022 ac_ct_CC=$CC
81ecdfbb 2023 for ac_prog in cl.exe
b585a9fa
EZ
2024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
5836a818 2027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 2028$as_echo_n "checking for $ac_word... " >&6; }
5836a818 2029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
81ecdfbb 2030 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2031else
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
5836a818 2040 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 2042 ac_cv_prog_ac_ct_CC="$ac_prog"
5836a818 2043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
2044 break 2
2045 fi
2046done
5836a818 2047done
81ecdfbb 2048IFS=$as_save_IFS
b585a9fa
EZ
2049
2050fi
2051fi
2052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
5836a818 2054 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
81ecdfbb 2055$as_echo "$ac_ct_CC" >&6; }
b585a9fa 2056else
5836a818 2057 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 2058$as_echo "no" >&6; }
b585a9fa
EZ
2059fi
2060
81ecdfbb 2061
b585a9fa
EZ
2062 test -n "$ac_ct_CC" && break
2063done
2064
81ecdfbb
RW
2065 if test "x$ac_ct_CC" = x; then
2066 CC=""
2067 else
2068 case $cross_compiling:$ac_tool_warned in
2069yes:)
5836a818 2070{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
81ecdfbb
RW
2071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2072ac_tool_warned=yes ;;
2073esac
2074 CC=$ac_ct_CC
2075 fi
b585a9fa
EZ
2076fi
2077
2078fi
2079
2080
5836a818 2081test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 2082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
2083{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084See \`config.log' for more details." >&5
2085$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2086See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2088
2089# Provide some information about the compiler.
5836a818 2090$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
81ecdfbb
RW
2091set X $ac_compile
2092ac_compiler=$2
5836a818 2093{ (ac_try="$ac_compiler --version >&5"
81ecdfbb
RW
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
5836a818
PP
2098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2099$as_echo "$ac_try_echo") >&5
2100 (eval "$ac_compiler --version >&5") 2>&5
b585a9fa 2101 ac_status=$?
5836a818
PP
2102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104{ (ac_try="$ac_compiler -v >&5"
2105case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108esac
2109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2110$as_echo "$ac_try_echo") >&5
2111 (eval "$ac_compiler -v >&5") 2>&5
2112 ac_status=$?
2113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115{ (ac_try="$ac_compiler -V >&5"
2116case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119esac
2120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2121$as_echo "$ac_try_echo") >&5
2122 (eval "$ac_compiler -V >&5") 2>&5
2123 ac_status=$?
2124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
b585a9fa 2126
5836a818
PP
2127cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h. */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
b585a9fa 2132/* end confdefs.h. */
5836a818 2133
b585a9fa
EZ
2134int
2135main ()
2136{
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142ac_clean_files_save=$ac_clean_files
5836a818 2143ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b585a9fa
EZ
2144# Try to create an executable without -o first, disregard a.out.
2145# It will help us diagnose broken compilers, and finding out an intuition
2146# of exeext.
5836a818 2147{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
81ecdfbb
RW
2148$as_echo_n "checking for C compiler default output file name... " >&6; }
2149ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150
2151# The possible output files:
2152ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2153
2154ac_rmfiles=
2155for ac_file in $ac_files
2156do
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2159 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2160 esac
2161done
2162rm -f $ac_rmfiles
2163
5836a818 2164if { (ac_try="$ac_link_default"
81ecdfbb
RW
2165case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168esac
5836a818
PP
2169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2170$as_echo "$ac_try_echo") >&5
81ecdfbb 2171 (eval "$ac_link_default") 2>&5
b585a9fa 2172 ac_status=$?
5836a818
PP
2173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
81ecdfbb
RW
2175 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177# in a Makefile. We should not override ac_cv_exeext if it was cached,
2178# so that the user can short-circuit this test for compilers unknown to
2179# Autoconf.
2180for ac_file in $ac_files ''
b585a9fa
EZ
2181do
2182 test -f "$ac_file" || continue
2183 case $ac_file in
81ecdfbb 2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b585a9fa
EZ
2185 ;;
2186 [ab].out )
2187 # We found the default executable, but exeext='' is most
2188 # certainly right.
2189 break;;
2190 *.* )
5836a818 2191 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
81ecdfbb
RW
2192 then :; else
2193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 fi
2195 # We set ac_cv_exeext here because the later test for it is not
2196 # safe: cross compilers may not add the suffix if given an `-o'
2197 # argument, so we may need to know it at that point already.
2198 # Even if this section looks crufty: it has the advantage of
2199 # actually working.
b585a9fa
EZ
2200 break;;
2201 * )
2202 break;;
2203 esac
2204done
81ecdfbb
RW
2205test "$ac_cv_exeext" = no && ac_cv_exeext=
2206
b585a9fa 2207else
81ecdfbb
RW
2208 ac_file=''
2209fi
5836a818
PP
2210
2211{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
81ecdfbb 2212$as_echo "$ac_file" >&6; }
5836a818 2213if test -z "$ac_file"; then
81ecdfbb 2214 $as_echo "$as_me: failed program was:" >&5
b585a9fa
EZ
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
5836a818 2217{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
2219{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2220See \`config.log' for more details." >&5
2221$as_echo "$as_me: error: C compiler cannot create executables
2222See \`config.log' for more details." >&2;}
2223 { (exit 77); exit 77; }; }; }
b585a9fa 2224fi
5836a818 2225
b585a9fa 2226ac_exeext=$ac_cv_exeext
b585a9fa 2227
81ecdfbb 2228# Check that the compiler produces executables we can run. If not, either
b585a9fa 2229# the compiler is broken, or we cross compile.
5836a818 2230{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
81ecdfbb 2231$as_echo_n "checking whether the C compiler works... " >&6; }
5836a818 2232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
b585a9fa
EZ
2233# If not cross compiling, check that we can run a simple program.
2234if test "$cross_compiling" != yes; then
2235 if { ac_try='./$ac_file'
5836a818 2236 { (case "(($ac_try" in
81ecdfbb
RW
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239esac
5836a818
PP
2240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2241$as_echo "$ac_try_echo") >&5
81ecdfbb 2242 (eval "$ac_try") 2>&5
b585a9fa 2243 ac_status=$?
5836a818
PP
2244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
b585a9fa
EZ
2246 cross_compiling=no
2247 else
2248 if test "$cross_compiling" = maybe; then
2249 cross_compiling=yes
2250 else
5836a818 2251 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
2253{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2254If you meant to cross compile, use \`--host'.
2255See \`config.log' for more details." >&5
2256$as_echo "$as_me: error: cannot run C compiled programs.
b585a9fa 2257If you meant to cross compile, use \`--host'.
5836a818
PP
2258See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2260 fi
2261 fi
2262fi
5836a818 2263{ $as_echo "$as_me:$LINENO: result: yes" >&5
81ecdfbb 2264$as_echo "yes" >&6; }
b585a9fa 2265
5836a818 2266rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b585a9fa 2267ac_clean_files=$ac_clean_files_save
81ecdfbb 2268# Check that the compiler produces executables we can run. If not, either
b585a9fa 2269# the compiler is broken, or we cross compile.
5836a818 2270{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
81ecdfbb 2271$as_echo_n "checking whether we are cross compiling... " >&6; }
5836a818 2272{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
81ecdfbb
RW
2273$as_echo "$cross_compiling" >&6; }
2274
5836a818 2275{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
81ecdfbb 2276$as_echo_n "checking for suffix of executables... " >&6; }
5836a818 2277if { (ac_try="$ac_link"
81ecdfbb
RW
2278case "(($ac_try" in
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2281esac
5836a818
PP
2282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2283$as_echo "$ac_try_echo") >&5
81ecdfbb 2284 (eval "$ac_link") 2>&5
b585a9fa 2285 ac_status=$?
5836a818
PP
2286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
b585a9fa
EZ
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290# work properly (i.e., refer to `conftest.exe'), while it won't with
2291# `rm'.
2292for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2294 case $ac_file in
81ecdfbb 2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b585a9fa 2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b585a9fa
EZ
2297 break;;
2298 * ) break;;
2299 esac
2300done
2301else
5836a818 2302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
2304{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&5
2306$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&2;}
2308 { (exit 1); exit 1; }; }; }
b585a9fa 2309fi
5836a818 2310
b585a9fa 2311rm -f conftest$ac_cv_exeext
5836a818 2312{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
81ecdfbb 2313$as_echo "$ac_cv_exeext" >&6; }
b585a9fa
EZ
2314
2315rm -f conftest.$ac_ext
2316EXEEXT=$ac_cv_exeext
2317ac_exeext=$EXEEXT
5836a818 2318{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
81ecdfbb 2319$as_echo_n "checking for suffix of object files... " >&6; }
5836a818 2320if test "${ac_cv_objext+set}" = set; then
81ecdfbb 2321 $as_echo_n "(cached) " >&6
b585a9fa 2322else
5836a818
PP
2323 cat >conftest.$ac_ext <<_ACEOF
2324/* confdefs.h. */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2328/* end confdefs.h. */
2329
2330int
2331main ()
2332{
2333
2334 ;
2335 return 0;
2336}
2337_ACEOF
2338rm -f conftest.o conftest.obj
5836a818 2339if { (ac_try="$ac_compile"
81ecdfbb
RW
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
5836a818
PP
2344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2345$as_echo "$ac_try_echo") >&5
81ecdfbb 2346 (eval "$ac_compile") 2>&5
b585a9fa 2347 ac_status=$?
5836a818
PP
2348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
81ecdfbb
RW
2350 for ac_file in conftest.o conftest.obj conftest.*; do
2351 test -f "$ac_file" || continue;
b585a9fa 2352 case $ac_file in
81ecdfbb 2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b585a9fa
EZ
2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2355 break;;
2356 esac
2357done
2358else
81ecdfbb 2359 $as_echo "$as_me: failed program was:" >&5
b585a9fa
EZ
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
5836a818 2362{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 2363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
2364{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365See \`config.log' for more details." >&5
2366$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }; }
b585a9fa 2369fi
5836a818 2370
b585a9fa
EZ
2371rm -f conftest.$ac_cv_objext conftest.$ac_ext
2372fi
5836a818 2373{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
81ecdfbb 2374$as_echo "$ac_cv_objext" >&6; }
b585a9fa
EZ
2375OBJEXT=$ac_cv_objext
2376ac_objext=$OBJEXT
5836a818 2377{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
81ecdfbb 2378$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5836a818 2379if test "${ac_cv_c_compiler_gnu+set}" = set; then
81ecdfbb 2380 $as_echo_n "(cached) " >&6
b585a9fa 2381else
5836a818
PP
2382 cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2387/* end confdefs.h. */
2388
2389int
2390main ()
2391{
2392#ifndef __GNUC__
2393 choke me
2394#endif
2395
2396 ;
2397 return 0;
2398}
2399_ACEOF
5836a818
PP
2400rm -f conftest.$ac_objext
2401if { (ac_try="$ac_compile"
2402case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405esac
2406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2407$as_echo "$ac_try_echo") >&5
2408 (eval "$ac_compile") 2>conftest.er1
2409 ac_status=$?
2410 grep -v '^ *+' conftest.er1 >conftest.err
2411 rm -f conftest.er1
2412 cat conftest.err >&5
2413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); } && {
2415 test -z "$ac_c_werror_flag" ||
2416 test ! -s conftest.err
2417 } && test -s conftest.$ac_objext; then
b585a9fa
EZ
2418 ac_compiler_gnu=yes
2419else
5836a818
PP
2420 $as_echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 ac_compiler_gnu=no
b585a9fa 2424fi
5836a818 2425
81ecdfbb 2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa
EZ
2427ac_cv_c_compiler_gnu=$ac_compiler_gnu
2428
2429fi
5836a818 2430{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
81ecdfbb
RW
2431$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2432if test $ac_compiler_gnu = yes; then
2433 GCC=yes
2434else
2435 GCC=
2436fi
b585a9fa
EZ
2437ac_test_CFLAGS=${CFLAGS+set}
2438ac_save_CFLAGS=$CFLAGS
5836a818 2439{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
81ecdfbb 2440$as_echo_n "checking whether $CC accepts -g... " >&6; }
5836a818 2441if test "${ac_cv_prog_cc_g+set}" = set; then
81ecdfbb 2442 $as_echo_n "(cached) " >&6
b585a9fa 2443else
81ecdfbb
RW
2444 ac_save_c_werror_flag=$ac_c_werror_flag
2445 ac_c_werror_flag=yes
2446 ac_cv_prog_cc_g=no
2447 CFLAGS="-g"
5836a818
PP
2448 cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h. */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2453/* end confdefs.h. */
2454
2455int
2456main ()
2457{
2458
2459 ;
2460 return 0;
2461}
2462_ACEOF
5836a818
PP
2463rm -f conftest.$ac_objext
2464if { (ac_try="$ac_compile"
2465case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468esac
2469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2470$as_echo "$ac_try_echo") >&5
2471 (eval "$ac_compile") 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } && {
2478 test -z "$ac_c_werror_flag" ||
2479 test ! -s conftest.err
2480 } && test -s conftest.$ac_objext; then
b585a9fa
EZ
2481 ac_cv_prog_cc_g=yes
2482else
5836a818
PP
2483 $as_echo "$as_me: failed program was:" >&5
2484sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 CFLAGS=""
2487 cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h. */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
81ecdfbb
RW
2492/* end confdefs.h. */
2493
2494int
2495main ()
2496{
2497
2498 ;
2499 return 0;
2500}
2501_ACEOF
5836a818
PP
2502rm -f conftest.$ac_objext
2503if { (ac_try="$ac_compile"
2504case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509$as_echo "$ac_try_echo") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } && {
2517 test -z "$ac_c_werror_flag" ||
2518 test ! -s conftest.err
2519 } && test -s conftest.$ac_objext; then
2520 :
4a11f206 2521else
5836a818
PP
2522 $as_echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 ac_c_werror_flag=$ac_save_c_werror_flag
81ecdfbb 2526 CFLAGS="-g"
5836a818
PP
2527 cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
81ecdfbb
RW
2532/* end confdefs.h. */
2533
2534int
2535main ()
2536{
b585a9fa 2537
81ecdfbb
RW
2538 ;
2539 return 0;
2540}
2541_ACEOF
5836a818
PP
2542rm -f conftest.$ac_objext
2543if { (ac_try="$ac_compile"
2544case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2549$as_echo "$ac_try_echo") >&5
2550 (eval "$ac_compile") 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } && {
2557 test -z "$ac_c_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest.$ac_objext; then
81ecdfbb 2560 ac_cv_prog_cc_g=yes
5836a818
PP
2561else
2562 $as_echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565
81ecdfbb 2566fi
5836a818 2567
81ecdfbb 2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa 2569fi
5836a818 2570
81ecdfbb 2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa 2572fi
5836a818 2573
81ecdfbb
RW
2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 ac_c_werror_flag=$ac_save_c_werror_flag
2576fi
5836a818 2577{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
81ecdfbb 2578$as_echo "$ac_cv_prog_cc_g" >&6; }
b585a9fa
EZ
2579if test "$ac_test_CFLAGS" = set; then
2580 CFLAGS=$ac_save_CFLAGS
2581elif test $ac_cv_prog_cc_g = yes; then
2582 if test "$GCC" = yes; then
2583 CFLAGS="-g -O2"
2584 else
2585 CFLAGS="-g"
2586 fi
2587else
2588 if test "$GCC" = yes; then
2589 CFLAGS="-O2"
2590 else
2591 CFLAGS=
2592 fi
2593fi
5836a818 2594{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
81ecdfbb 2595$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5836a818 2596if test "${ac_cv_prog_cc_c89+set}" = set; then
81ecdfbb 2597 $as_echo_n "(cached) " >&6
b585a9fa 2598else
81ecdfbb 2599 ac_cv_prog_cc_c89=no
b585a9fa 2600ac_save_CC=$CC
5836a818
PP
2601cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2606/* end confdefs.h. */
2607#include <stdarg.h>
2608#include <stdio.h>
2609#include <sys/types.h>
2610#include <sys/stat.h>
2611/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2612struct buf { int x; };
2613FILE * (*rcsopen) (struct buf *, struct stat *, int);
2614static char *e (p, i)
2615 char **p;
2616 int i;
2617{
2618 return p[i];
2619}
2620static char *f (char * (*g) (char **, int), char **p, ...)
2621{
2622 char *s;
2623 va_list v;
2624 va_start (v,p);
2625 s = g (p, va_arg (v,int));
2626 va_end (v);
2627 return s;
2628}
2629
2630/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2631 function prototypes and stuff, but not '\xHH' hex character constants.
2632 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 2633 as 'x'. The following induces an error, until -std is added to get
b585a9fa
EZ
2634 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2635 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 2636 that's true only with -std. */
b585a9fa
EZ
2637int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2638
81ecdfbb
RW
2639/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2640 inside strings and character constants. */
2641#define FOO(x) 'x'
2642int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2643
b585a9fa
EZ
2644int test (int i, double x);
2645struct s1 {int (*f) (int a);};
2646struct s2 {int (*f) (double a);};
2647int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2648int argc;
2649char **argv;
2650int
2651main ()
2652{
2653return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2654 ;
2655 return 0;
2656}
2657_ACEOF
81ecdfbb
RW
2658for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b585a9fa
EZ
2660do
2661 CC="$ac_save_CC $ac_arg"
5836a818
PP
2662 rm -f conftest.$ac_objext
2663if { (ac_try="$ac_compile"
2664case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667esac
2668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669$as_echo "$ac_try_echo") >&5
2670 (eval "$ac_compile") 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } && {
2677 test -z "$ac_c_werror_flag" ||
2678 test ! -s conftest.err
2679 } && test -s conftest.$ac_objext; then
cc88a640 2680 ac_cv_prog_cc_c89=$ac_arg
5836a818
PP
2681else
2682 $as_echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685
b585a9fa 2686fi
5836a818 2687
81ecdfbb
RW
2688rm -f core conftest.err conftest.$ac_objext
2689 test "x$ac_cv_prog_cc_c89" != "xno" && break
b585a9fa 2690done
81ecdfbb 2691rm -f conftest.$ac_ext
b585a9fa
EZ
2692CC=$ac_save_CC
2693
2694fi
81ecdfbb
RW
2695# AC_CACHE_VAL
2696case "x$ac_cv_prog_cc_c89" in
2697 x)
5836a818 2698 { $as_echo "$as_me:$LINENO: result: none needed" >&5
81ecdfbb
RW
2699$as_echo "none needed" >&6; } ;;
2700 xno)
5836a818 2701 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
81ecdfbb 2702$as_echo "unsupported" >&6; } ;;
b585a9fa 2703 *)
81ecdfbb 2704 CC="$CC $ac_cv_prog_cc_c89"
5836a818 2705 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
81ecdfbb 2706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b585a9fa
EZ
2707esac
2708
b585a9fa 2709
b585a9fa
EZ
2710ac_ext=c
2711ac_cpp='$CPP $CPPFLAGS'
2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715
2716ac_ext=c
2717ac_cpp='$CPP $CPPFLAGS'
2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836a818 2721{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
81ecdfbb 2722$as_echo_n "checking how to run the C preprocessor... " >&6; }
b585a9fa
EZ
2723# On Suns, sometimes $CPP names a directory.
2724if test -n "$CPP" && test -d "$CPP"; then
2725 CPP=
2726fi
2727if test -z "$CPP"; then
5836a818 2728 if test "${ac_cv_prog_CPP+set}" = set; then
81ecdfbb 2729 $as_echo_n "(cached) " >&6
b585a9fa
EZ
2730else
2731 # Double quotes because CPP needs to be expanded
2732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2733 do
2734 ac_preproc_ok=false
2735for ac_c_preproc_warn_flag in '' yes
2736do
2737 # Use a header file that comes with gcc, so configuring glibc
2738 # with a fresh cross-compiler works.
2739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2740 # <limits.h> exists even on freestanding compilers.
2741 # On the NeXT, cc -E runs the code through the compiler's parser,
2742 # not just through cpp. "Syntax error" is here to catch this case.
5836a818
PP
2743 cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2748/* end confdefs.h. */
2749#ifdef __STDC__
2750# include <limits.h>
2751#else
2752# include <assert.h>
2753#endif
2754 Syntax error
2755_ACEOF
5836a818
PP
2756if { (ac_try="$ac_cpp conftest.$ac_ext"
2757case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2762$as_echo "$ac_try_echo") >&5
2763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2764 ac_status=$?
2765 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } >/dev/null && {
2770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2771 test ! -s conftest.err
2772 }; then
2773 :
4a11f206 2774else
5836a818
PP
2775 $as_echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
b585a9fa
EZ
2778 # Broken: fails on valid input.
2779continue
2780fi
5836a818 2781
b585a9fa
EZ
2782rm -f conftest.err conftest.$ac_ext
2783
81ecdfbb 2784 # OK, works on sane cases. Now check whether nonexistent headers
b585a9fa 2785 # can be detected and how.
5836a818
PP
2786 cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2791/* end confdefs.h. */
2792#include <ac_nonexistent.h>
2793_ACEOF
5836a818
PP
2794if { (ac_try="$ac_cpp conftest.$ac_ext"
2795case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2800$as_echo "$ac_try_echo") >&5
2801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null && {
2808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2809 test ! -s conftest.err
2810 }; then
b585a9fa
EZ
2811 # Broken: success on invalid input.
2812continue
2813else
5836a818
PP
2814 $as_echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
b585a9fa
EZ
2817 # Passes both tests.
2818ac_preproc_ok=:
2819break
2820fi
5836a818 2821
b585a9fa
EZ
2822rm -f conftest.err conftest.$ac_ext
2823
2824done
2825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2826rm -f conftest.err conftest.$ac_ext
5836a818 2827if $ac_preproc_ok; then
b585a9fa
EZ
2828 break
2829fi
2830
2831 done
2832 ac_cv_prog_CPP=$CPP
2833
2834fi
2835 CPP=$ac_cv_prog_CPP
2836else
2837 ac_cv_prog_CPP=$CPP
2838fi
5836a818 2839{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
81ecdfbb 2840$as_echo "$CPP" >&6; }
b585a9fa
EZ
2841ac_preproc_ok=false
2842for ac_c_preproc_warn_flag in '' yes
2843do
2844 # Use a header file that comes with gcc, so configuring glibc
2845 # with a fresh cross-compiler works.
2846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2847 # <limits.h> exists even on freestanding compilers.
2848 # On the NeXT, cc -E runs the code through the compiler's parser,
2849 # not just through cpp. "Syntax error" is here to catch this case.
5836a818
PP
2850 cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h. */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2855/* end confdefs.h. */
2856#ifdef __STDC__
2857# include <limits.h>
2858#else
2859# include <assert.h>
2860#endif
2861 Syntax error
2862_ACEOF
5836a818
PP
2863if { (ac_try="$ac_cpp conftest.$ac_ext"
2864case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867esac
2868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2869$as_echo "$ac_try_echo") >&5
2870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } >/dev/null && {
2877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2878 test ! -s conftest.err
2879 }; then
2880 :
4a11f206 2881else
5836a818
PP
2882 $as_echo "$as_me: failed program was:" >&5
2883sed 's/^/| /' conftest.$ac_ext >&5
2884
b585a9fa
EZ
2885 # Broken: fails on valid input.
2886continue
2887fi
5836a818 2888
b585a9fa
EZ
2889rm -f conftest.err conftest.$ac_ext
2890
81ecdfbb 2891 # OK, works on sane cases. Now check whether nonexistent headers
b585a9fa 2892 # can be detected and how.
5836a818
PP
2893 cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h. */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
2898/* end confdefs.h. */
2899#include <ac_nonexistent.h>
2900_ACEOF
5836a818
PP
2901if { (ac_try="$ac_cpp conftest.$ac_ext"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2907$as_echo "$ac_try_echo") >&5
2908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } >/dev/null && {
2915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 }; then
b585a9fa
EZ
2918 # Broken: success on invalid input.
2919continue
2920else
5836a818
PP
2921 $as_echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
b585a9fa
EZ
2924 # Passes both tests.
2925ac_preproc_ok=:
2926break
2927fi
5836a818 2928
b585a9fa
EZ
2929rm -f conftest.err conftest.$ac_ext
2930
2931done
2932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2933rm -f conftest.err conftest.$ac_ext
5836a818
PP
2934if $ac_preproc_ok; then
2935 :
b585a9fa 2936else
5836a818 2937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
2939{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2940See \`config.log' for more details." >&5
2941$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2942See \`config.log' for more details." >&2;}
2943 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
2944fi
2945
2946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951
2952
2953
5836a818 2954{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
81ecdfbb 2955$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5836a818 2956if test "${ac_cv_path_GREP+set}" = set; then
81ecdfbb 2957 $as_echo_n "(cached) " >&6
b585a9fa 2958else
81ecdfbb
RW
2959 if test -z "$GREP"; then
2960 ac_path_GREP_found=false
2961 # Loop through the user's path and test for each of PROGNAME-LIST
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2964do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
5836a818 2967 for ac_prog in grep ggrep; do
81ecdfbb
RW
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2970 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2971# Check for GNU ac_path_GREP and select it if it is found.
2972 # Check for GNU $ac_path_GREP
2973case `"$ac_path_GREP" --version 2>&1` in
2974*GNU*)
2975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2976*)
2977 ac_count=0
2978 $as_echo_n 0123456789 >"conftest.in"
2979 while :
2980 do
2981 cat "conftest.in" "conftest.in" >"conftest.tmp"
2982 mv "conftest.tmp" "conftest.in"
2983 cp "conftest.in" "conftest.nl"
2984 $as_echo 'GREP' >> "conftest.nl"
2985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5836a818 2987 ac_count=`expr $ac_count + 1`
81ecdfbb
RW
2988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2989 # Best one so far, save it but keep looking for a better one
2990 ac_cv_path_GREP="$ac_path_GREP"
2991 ac_path_GREP_max=$ac_count
2992 fi
2993 # 10*(2^10) chars as input seems more than enough
2994 test $ac_count -gt 10 && break
2995 done
2996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2997esac
2998
2999 $ac_path_GREP_found && break 3
3000 done
3001 done
5836a818 3002done
81ecdfbb
RW
3003IFS=$as_save_IFS
3004 if test -z "$ac_cv_path_GREP"; then
5836a818
PP
3005 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3006$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3007 { (exit 1); exit 1; }; }
81ecdfbb
RW
3008 fi
3009else
3010 ac_cv_path_GREP=$GREP
3011fi
3012
3013fi
5836a818 3014{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
81ecdfbb
RW
3015$as_echo "$ac_cv_path_GREP" >&6; }
3016 GREP="$ac_cv_path_GREP"
3017
3018
5836a818 3019{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
81ecdfbb 3020$as_echo_n "checking for egrep... " >&6; }
5836a818 3021if test "${ac_cv_path_EGREP+set}" = set; then
81ecdfbb
RW
3022 $as_echo_n "(cached) " >&6
3023else
3024 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3025 then ac_cv_path_EGREP="$GREP -E"
3026 else
3027 if test -z "$EGREP"; then
3028 ac_path_EGREP_found=false
3029 # Loop through the user's path and test for each of PROGNAME-LIST
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3032do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
5836a818 3035 for ac_prog in egrep; do
81ecdfbb
RW
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3038 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3039# Check for GNU ac_path_EGREP and select it if it is found.
3040 # Check for GNU $ac_path_EGREP
3041case `"$ac_path_EGREP" --version 2>&1` in
3042*GNU*)
3043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3044*)
3045 ac_count=0
3046 $as_echo_n 0123456789 >"conftest.in"
3047 while :
3048 do
3049 cat "conftest.in" "conftest.in" >"conftest.tmp"
3050 mv "conftest.tmp" "conftest.in"
3051 cp "conftest.in" "conftest.nl"
3052 $as_echo 'EGREP' >> "conftest.nl"
3053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5836a818 3055 ac_count=`expr $ac_count + 1`
81ecdfbb
RW
3056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3057 # Best one so far, save it but keep looking for a better one
3058 ac_cv_path_EGREP="$ac_path_EGREP"
3059 ac_path_EGREP_max=$ac_count
b585a9fa 3060 fi
81ecdfbb
RW
3061 # 10*(2^10) chars as input seems more than enough
3062 test $ac_count -gt 10 && break
3063 done
3064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3065esac
3066
3067 $ac_path_EGREP_found && break 3
3068 done
3069 done
5836a818 3070done
81ecdfbb
RW
3071IFS=$as_save_IFS
3072 if test -z "$ac_cv_path_EGREP"; then
5836a818
PP
3073 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3074$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3075 { (exit 1); exit 1; }; }
81ecdfbb
RW
3076 fi
3077else
3078 ac_cv_path_EGREP=$EGREP
3079fi
3080
3081 fi
b585a9fa 3082fi
5836a818 3083{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
81ecdfbb
RW
3084$as_echo "$ac_cv_path_EGREP" >&6; }
3085 EGREP="$ac_cv_path_EGREP"
b585a9fa
EZ
3086
3087
3088if test $ac_cv_c_compiler_gnu = yes; then
5836a818 3089 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
81ecdfbb 3090$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5836a818 3091if test "${ac_cv_prog_gcc_traditional+set}" = set; then
81ecdfbb 3092 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3093else
3094 ac_pattern="Autoconf.*'x'"
5836a818
PP
3095 cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h. */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3100/* end confdefs.h. */
3101#include <sgtty.h>
3102Autoconf TIOCGETP
3103_ACEOF
3104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836a818 3105 $EGREP "$ac_pattern" >/dev/null 2>&1; then
b585a9fa
EZ
3106 ac_cv_prog_gcc_traditional=yes
3107else
3108 ac_cv_prog_gcc_traditional=no
3109fi
3110rm -f conftest*
3111
3112
3113 if test $ac_cv_prog_gcc_traditional = no; then
5836a818
PP
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3119/* end confdefs.h. */
3120#include <termio.h>
3121Autoconf TCGETA
3122_ACEOF
3123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836a818 3124 $EGREP "$ac_pattern" >/dev/null 2>&1; then
b585a9fa
EZ
3125 ac_cv_prog_gcc_traditional=yes
3126fi
3127rm -f conftest*
3128
3129 fi
3130fi
5836a818 3131{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
81ecdfbb 3132$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
b585a9fa
EZ
3133 if test $ac_cv_prog_gcc_traditional = yes; then
3134 CC="$CC -traditional"
3135 fi
3136fi
3137
5836a818 3138{ $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
81ecdfbb 3139$as_echo_n "checking for library containing strerror... " >&6; }
5836a818 3140if test "${ac_cv_search_strerror+set}" = set; then
81ecdfbb 3141 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3142else
3143 ac_func_search_save_LIBS=$LIBS
5836a818
PP
3144cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3149/* end confdefs.h. */
3150
81ecdfbb
RW
3151/* Override any GCC internal prototype to avoid an error.
3152 Use char because int might match the return type of a GCC
3153 builtin and then its argument prototype would still apply. */
b585a9fa
EZ
3154#ifdef __cplusplus
3155extern "C"
3156#endif
b585a9fa
EZ
3157char strerror ();
3158int
3159main ()
3160{
81ecdfbb 3161return strerror ();
b585a9fa
EZ
3162 ;
3163 return 0;
3164}
3165_ACEOF
81ecdfbb
RW
3166for ac_lib in '' cposix; do
3167 if test -z "$ac_lib"; then
3168 ac_res="none required"
3169 else
3170 ac_res=-l$ac_lib
b585a9fa 3171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb 3172 fi
5836a818
PP
3173 rm -f conftest.$ac_objext conftest$ac_exeext
3174if { (ac_try="$ac_link"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180$as_echo "$ac_try_echo") >&5
3181 (eval "$ac_link") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest$ac_exeext && {
3191 test "$cross_compiling" = yes ||
3192 $as_test_x conftest$ac_exeext
3193 }; then
81ecdfbb 3194 ac_cv_search_strerror=$ac_res
5836a818
PP
3195else
3196 $as_echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199
81ecdfbb 3200fi
5836a818
PP
3201
3202rm -rf conftest.dSYM
3203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3204 conftest$ac_exeext
3205 if test "${ac_cv_search_strerror+set}" = set; then
81ecdfbb
RW
3206 break
3207fi
3208done
5836a818
PP
3209if test "${ac_cv_search_strerror+set}" = set; then
3210 :
b585a9fa 3211else
81ecdfbb 3212 ac_cv_search_strerror=no
b585a9fa 3213fi
81ecdfbb 3214rm conftest.$ac_ext
b585a9fa
EZ
3215LIBS=$ac_func_search_save_LIBS
3216fi
5836a818 3217{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
81ecdfbb
RW
3218$as_echo "$ac_cv_search_strerror" >&6; }
3219ac_res=$ac_cv_search_strerror
5836a818 3220if test "$ac_res" != no; then
81ecdfbb 3221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
b585a9fa
EZ
3222
3223fi
3224
3225
5836a818
PP
3226if test "$cross_compiling" = yes; then
3227 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
3229{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3230See \`config.log' for more details." >&5
3231$as_echo "$as_me: error: cannot run test program while cross compiling
3232See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }; }
3234else
3235 cat >conftest.$ac_ext <<_ACEOF
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3240/* end confdefs.h. */
3241main(){exit(0);}
3242_ACEOF
5836a818
PP
3243rm -f conftest$ac_exeext
3244if { (ac_try="$ac_link"
3245case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248esac
3249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3250$as_echo "$ac_try_echo") >&5
3251 (eval "$ac_link") 2>&5
3252 ac_status=$?
3253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260$as_echo "$ac_try_echo") >&5
3261 (eval "$ac_try") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 :
4a11f206 3266else
5836a818
PP
3267 $as_echo "$as_me: program exited with status $ac_status" >&5
3268$as_echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271( exit $ac_status )
b585a9fa
EZ
3272
3273if test $CC != cc ; then
3274echo "Your $CC failed - restarting with CC=cc" 1>&6
3275
3276echo "" 1>&6
3277
3278CC=cc
3279export CC
3280exec $0 $configure_args
3281fi
3282
3283fi
5836a818
PP
3284rm -rf conftest.dSYM
3285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b585a9fa
EZ
3286fi
3287
81ecdfbb 3288
5836a818
PP
3289
3290if test "$cross_compiling" = yes; then
3291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
3293{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3294See \`config.log' for more details." >&5
3295$as_echo "$as_me: error: cannot run test program while cross compiling
3296See \`config.log' for more details." >&2;}
3297 { (exit 1); exit 1; }; }; }
3298else
3299 cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3304/* end confdefs.h. */
3305main(){exit(0);}
3306_ACEOF
5836a818
PP
3307rm -f conftest$ac_exeext
3308if { (ac_try="$ac_link"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3314$as_echo "$ac_try_echo") >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324$as_echo "$ac_try_echo") >&5
3325 (eval "$ac_try") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 :
4a11f206 3330else
5836a818
PP
3331 $as_echo "$as_me: program exited with status $ac_status" >&5
3332$as_echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335( exit $ac_status )
3336exec 5>&2
b585a9fa
EZ
3337eval $ac_link
3338echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
3339
3340echo "$ac_compile" 1>&6
3341
5836a818
PP
3342{ { $as_echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
3343$as_echo "$as_me: error: Can't run the compiler - sorry" >&2;}
3344 { (exit 1); exit 1; }; }
b585a9fa 3345fi
5836a818
PP
3346rm -rf conftest.dSYM
3347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b585a9fa
EZ
3348fi
3349
81ecdfbb 3350
5836a818
PP
3351
3352if test "$cross_compiling" = yes; then
3353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
3355{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3356See \`config.log' for more details." >&5
3357$as_echo "$as_me: error: cannot run test program while cross compiling
3358See \`config.log' for more details." >&2;}
3359 { (exit 1); exit 1; }; }; }
3360else
3361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3366/* end confdefs.h. */
3367
3368main()
3369{
3370 int __something_strange_();
3371 __something_strange_(0);
3372}
3373
3374_ACEOF
5836a818
PP
3375rm -f conftest$ac_exeext
3376if { (ac_try="$ac_link"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392$as_echo "$ac_try_echo") >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; }; then
3397 { { $as_echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
3398$as_echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
3399 { (exit 1); exit 1; }; }
3400else
3401 $as_echo "$as_me: program exited with status $ac_status" >&5
3402$as_echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
b585a9fa 3405fi
5836a818
PP
3406rm -rf conftest.dSYM
3407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b585a9fa
EZ
3408fi
3409
81ecdfbb 3410
5836a818 3411
b585a9fa
EZ
3412for ac_prog in gawk mawk nawk awk
3413do
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415set dummy $ac_prog; ac_word=$2
5836a818 3416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 3417$as_echo_n "checking for $ac_word... " >&6; }
5836a818 3418if test "${ac_cv_prog_AWK+set}" = set; then
81ecdfbb 3419 $as_echo_n "(cached) " >&6
b585a9fa
EZ
3420else
3421 if test -n "$AWK"; then
3422 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
5836a818 3429 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 3431 ac_cv_prog_AWK="$ac_prog"
5836a818 3432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
3433 break 2
3434 fi
3435done
5836a818 3436done
81ecdfbb 3437IFS=$as_save_IFS
b585a9fa
EZ
3438
3439fi
3440fi
3441AWK=$ac_cv_prog_AWK
3442if test -n "$AWK"; then
5836a818 3443 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
81ecdfbb 3444$as_echo "$AWK" >&6; }
b585a9fa 3445else
5836a818 3446 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 3447$as_echo "no" >&6; }
b585a9fa
EZ
3448fi
3449
81ecdfbb 3450
b585a9fa
EZ
3451 test -n "$AWK" && break
3452done
3453
3454
3455if test -f etc/toolcheck; then
5836a818 3456{ $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
81ecdfbb 3457$as_echo "$as_me: checking for buggy tools..." >&6;}
b585a9fa
EZ
3458sh etc/toolcheck 1>&6
3459fi
3460
3461
5836a818 3462{ $as_echo "$as_me:$LINENO: checking for System V..." >&5
81ecdfbb 3463$as_echo "$as_me: checking for System V..." >&6;}
5836a818
PP
3464cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3469/* end confdefs.h. */
3470#include <sys/types.h>
3471#include <signal.h>
3472#include <fcntl.h>
3473int
3474main ()
3475{
3476int x = SIGCHLD | FNDELAY;
3477 ;
3478 return 0;
3479}
3480_ACEOF
5836a818
PP
3481rm -f conftest.$ac_objext
3482if { (ac_try="$ac_compile"
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
3487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3488$as_echo "$ac_try_echo") >&5
3489 (eval "$ac_compile") 2>conftest.er1
3490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest.$ac_objext; then
3499 :
4a11f206 3500else
5836a818
PP
3501 $as_echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 cat >>confdefs.h <<\_ACEOF
3505#define SYSV 1
3506_ACEOF
b585a9fa
EZ
3507
3508fi
5836a818 3509
81ecdfbb 3510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b585a9fa 3511
5836a818 3512{ $as_echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
81ecdfbb 3513$as_echo "$as_me: checking for Solaris 2.x..." >&6;}
5836a818
PP
3514cat >conftest.$ac_ext <<_ACEOF
3515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3519/* end confdefs.h. */
3520#if defined(SVR4) && defined(sun)
3521 yes
3522#endif
3523
3524_ACEOF
3525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836a818 3526 $EGREP "yes" >/dev/null 2>&1; then
b585a9fa
EZ
3527 LIBS="$LIBS -lsocket -lnsl -lkstat"
3528fi
3529rm -f conftest*
3530
3531
4a11f206 3532
5836a818 3533{ $as_echo "$as_me:$LINENO: checking select..." >&5
4a11f206 3534$as_echo "$as_me: checking select..." >&6;}
5836a818
PP
3535cat >conftest.$ac_ext <<_ACEOF
3536/* confdefs.h. */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545select(0, 0, 0, 0, 0);
3546 ;
3547 return 0;
3548}
3549_ACEOF
5836a818
PP
3550rm -f conftest.$ac_objext conftest$ac_exeext
3551if { (ac_try="$ac_link"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557$as_echo "$ac_try_echo") >&5
3558 (eval "$ac_link") 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest$ac_exeext && {
3568 test "$cross_compiling" = yes ||
3569 $as_test_x conftest$ac_exeext
3570 }; then
3571 :
4a11f206 3572else
5836a818
PP
3573 $as_echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 LIBS="$LIBS -lnet -lnsl"
3577{ $as_echo "$as_me:$LINENO: checking select with $LIBS..." >&5
4a11f206 3578$as_echo "$as_me: checking select with $LIBS..." >&6;}
5836a818
PP
3579cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
4a11f206 3584/* end confdefs.h. */
cc88a640 3585
4a11f206
PP
3586int
3587main ()
3588{
3589select(0, 0, 0, 0, 0);
3590 ;
3591 return 0;
3592}
3593_ACEOF
5836a818
PP
3594rm -f conftest.$ac_objext conftest$ac_exeext
3595if { (ac_try="$ac_link"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601$as_echo "$ac_try_echo") >&5
3602 (eval "$ac_link") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && {
3609 test -z "$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 } && test -s conftest$ac_exeext && {
3612 test "$cross_compiling" = yes ||
3613 $as_test_x conftest$ac_exeext
3614 }; then
3615 :
4a11f206 3616else
5836a818
PP
3617 $as_echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 { { $as_echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
3621$as_echo "$as_me: error: !!! no select - no screen" >&2;}
3622 { (exit 1); exit 1; }; }
b585a9fa 3623fi
5836a818
PP
3624
3625rm -rf conftest.dSYM
3626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3627 conftest$ac_exeext conftest.$ac_ext
b585a9fa 3628
4a11f206 3629fi
cc88a640 3630
5836a818
PP
3631rm -rf conftest.dSYM
3632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3633 conftest$ac_exeext conftest.$ac_ext
3634
3635{ $as_echo "$as_me:$LINENO: checking select return value..." >&5
81ecdfbb 3636$as_echo "$as_me: checking select return value..." >&6;}
5836a818
PP
3637if test "$cross_compiling" = yes; then
3638 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 3639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
3640{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3641See \`config.log' for more details." >&5
3642$as_echo "$as_me: error: cannot run test program while cross compiling
3643See \`config.log' for more details." >&2;}
3644 { (exit 1); exit 1; }; }; }
3645else
3646 cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3651/* end confdefs.h. */
3652
3653#include <sys/types.h>
3654#include <sys/stat.h>
3655#include <fcntl.h>
3656
3657char *nam = "/tmp/conftest$$";
3658
3659#ifdef NAMEDPIPE
3660
3661#ifndef O_NONBLOCK
3662#define O_NONBLOCK O_NDELAY
3663#endif
3664#ifndef S_IFIFO
3665#define S_IFIFO 0010000
3666#endif
3667
3668
3669main()
3670{
3671#ifdef FD_SET
3672 fd_set f;
3673#else
3674 int f;
3675#endif
3676
3677#ifdef __FreeBSD__
3678/* From Andrew A. Chernov (ache@astral.msk.su):
3679 * opening RDWR fifo fails in BSD 4.4, but select return values are
3680 * right.
3681 */
3682 exit(0);
3683#endif
3684 (void)alarm(5);
3685#ifdef POSIX
3686 if (mkfifo(nam, 0777))
3687#else
3688 if (mknod(nam, S_IFIFO|0777, 0))
3689#endif
3690 exit(1);
3691 close(0);
3692 if (open(nam, O_RDWR | O_NONBLOCK))
3693 exit(1);
3694 if (write(0, "TEST", 4) == -1)
3695 exit(1);
3696
3697#else
3698
3699#include <sys/types.h>
3700#include <sys/socket.h>
3701#include <sys/un.h>
3702
3703main()
3704{
3705 int s1, s2, l;
3706 struct sockaddr_un a;
3707#ifdef FD_SET
3708 fd_set f;
3709#else
3710 int f;
3711#endif
3712
3713 (void)alarm(5);
3714 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3715 exit(1);
3716 a.sun_family = AF_UNIX;
3717 strcpy(a.sun_path, nam);
3718 (void) unlink(nam);
3719 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3720 exit(1);
3721 if (listen(s1, 2))
3722 exit(1);
3723 if (fork() == 0)
3724 {
3725 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3726 kill(getppid(), 3);
3727 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3728 if (write(s2, "HELLO", 5) == -1)
3729 kill(getppid(), 3);
3730 exit(0);
3731 }
3732 l = sizeof(a);
3733 close(0);
3734 if (accept(s1, (struct sockaddr *)&a, &l))
3735 exit(1);
3736#endif
3737
3738
3739#ifdef FD_SET
3740 FD_SET(0, &f);
3741#else
3742 f = 1;
3743#endif
3744 if (select(1, &f, 0, 0, 0) == -1)
3745 exit(1);
3746 if (select(1, &f, &f, 0, 0) != 2)
3747 exit(1);
3748 exit(0);
3749}
3750
3751_ACEOF
5836a818
PP
3752rm -f conftest$ac_exeext
3753if { (ac_try="$ac_link"
3754case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3759$as_echo "$ac_try_echo") >&5
3760 (eval "$ac_link") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3764 { (case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3769$as_echo "$ac_try_echo") >&5
3770 (eval "$ac_try") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
b585a9fa
EZ
3774 echo "- select is ok" 1>&6
3775
3776else
5836a818
PP
3777 $as_echo "$as_me: program exited with status $ac_status" >&5
3778$as_echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781( exit $ac_status )
3782echo "- select can't count" 1>&6
3783 cat >>confdefs.h <<\_ACEOF
3784#define SELECT_BROKEN 1
3785_ACEOF
b585a9fa
EZ
3786
3787fi
5836a818
PP
3788rm -rf conftest.dSYM
3789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b585a9fa
EZ
3790fi
3791
81ecdfbb 3792
5836a818
PP
3793
3794{ $as_echo "$as_me:$LINENO: checking for tgetent..." >&5
81ecdfbb 3795$as_echo "$as_me: checking for tgetent..." >&6;}
5836a818
PP
3796cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3801/* end confdefs.h. */
3802
3803int
3804main ()
3805{
3806tgetent((char *)0, (char *)0);
3807 ;
3808 return 0;
3809}
3810_ACEOF
5836a818
PP
3811rm -f conftest.$ac_objext conftest$ac_exeext
3812if { (ac_try="$ac_link"
3813case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3818$as_echo "$ac_try_echo") >&5
3819 (eval "$ac_link") 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && {
3826 test -z "$ac_c_werror_flag" ||
3827 test ! -s conftest.err
3828 } && test -s conftest$ac_exeext && {
3829 test "$cross_compiling" = yes ||
3830 $as_test_x conftest$ac_exeext
3831 }; then
3832 :
4a11f206 3833else
5836a818
PP
3834 $as_echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 olibs="$LIBS"
b585a9fa 3838LIBS="-lcurses $olibs"
5836a818 3839{ $as_echo "$as_me:$LINENO: checking libcurses..." >&5
81ecdfbb 3840$as_echo "$as_me: checking libcurses..." >&6;}
5836a818
PP
3841cat >conftest.$ac_ext <<_ACEOF
3842/* confdefs.h. */
3843_ACEOF
3844cat confdefs.h >>conftest.$ac_ext
3845cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852#ifdef __hpux
3853__sorry_hpux_libcurses_is_totally_broken_in_10_10();
3854#else
3855tgetent((char *)0, (char *)0);
3856#endif
3857
3858 ;
3859 return 0;
3860}
3861_ACEOF
5836a818
PP
3862rm -f conftest.$ac_objext conftest$ac_exeext
3863if { (ac_try="$ac_link"
3864case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869$as_echo "$ac_try_echo") >&5
3870 (eval "$ac_link") 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && {
3877 test -z "$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 } && test -s conftest$ac_exeext && {
3880 test "$cross_compiling" = yes ||
3881 $as_test_x conftest$ac_exeext
3882 }; then
3883 :
4a11f206 3884else
5836a818
PP
3885 $as_echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 LIBS="-ltermcap $olibs"
3889{ $as_echo "$as_me:$LINENO: checking libtermcap..." >&5
81ecdfbb 3890$as_echo "$as_me: checking libtermcap..." >&6;}
5836a818
PP
3891cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3896/* end confdefs.h. */
3897
3898int
3899main ()
3900{
3901tgetent((char *)0, (char *)0);
3902 ;
3903 return 0;
3904}
3905_ACEOF
5836a818
PP
3906rm -f conftest.$ac_objext conftest$ac_exeext
3907if { (ac_try="$ac_link"
3908case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911esac
3912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913$as_echo "$ac_try_echo") >&5
3914 (eval "$ac_link") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest$ac_exeext && {
3924 test "$cross_compiling" = yes ||
3925 $as_test_x conftest$ac_exeext
3926 }; then
3927 :
4a11f206 3928else
5836a818
PP
3929 $as_echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 LIBS="-ltermlib $olibs"
3933{ $as_echo "$as_me:$LINENO: checking libtermlib..." >&5
81ecdfbb 3934$as_echo "$as_me: checking libtermlib..." >&6;}
5836a818
PP
3935cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3940/* end confdefs.h. */
3941
3942int
3943main ()
3944{
3945tgetent((char *)0, (char *)0);
3946 ;
3947 return 0;
3948}
3949_ACEOF
5836a818
PP
3950rm -f conftest.$ac_objext conftest$ac_exeext
3951if { (ac_try="$ac_link"
3952case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3957$as_echo "$ac_try_echo") >&5
3958 (eval "$ac_link") 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest$ac_exeext && {
3968 test "$cross_compiling" = yes ||
3969 $as_test_x conftest$ac_exeext
3970 }; then
3971 :
4a11f206 3972else
5836a818
PP
3973 $as_echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 LIBS="-lncurses $olibs"
3977{ $as_echo "$as_me:$LINENO: checking libncurses..." >&5
81ecdfbb 3978$as_echo "$as_me: checking libncurses..." >&6;}
5836a818
PP
3979cat >conftest.$ac_ext <<_ACEOF
3980/* confdefs.h. */
3981_ACEOF
3982cat confdefs.h >>conftest.$ac_ext
3983cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
3984/* end confdefs.h. */
3985
3986int
3987main ()
3988{
3989tgetent((char *)0, (char *)0);
3990 ;
3991 return 0;
3992}
3993_ACEOF
5836a818
PP
3994rm -f conftest.$ac_objext conftest$ac_exeext
3995if { (ac_try="$ac_link"
3996case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999esac
4000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001$as_echo "$ac_try_echo") >&5
4002 (eval "$ac_link") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest$ac_exeext && {
4012 test "$cross_compiling" = yes ||
4013 $as_test_x conftest$ac_exeext
4014 }; then
4015 :
4a11f206 4016else
5836a818
PP
4017 $as_echo "$as_me: failed program was:" >&5
4018sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 { { $as_echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
4021$as_echo "$as_me: error: !!! no tgetent - no screen" >&2;}
4022 { (exit 1); exit 1; }; }
b585a9fa 4023fi
5836a818
PP
4024
4025rm -rf conftest.dSYM
4026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4027 conftest$ac_exeext conftest.$ac_ext
b585a9fa 4028fi
5836a818
PP
4029
4030rm -rf conftest.dSYM
4031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4032 conftest$ac_exeext conftest.$ac_ext
b585a9fa 4033fi
5836a818
PP
4034
4035rm -rf conftest.dSYM
4036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4037 conftest$ac_exeext conftest.$ac_ext
b585a9fa 4038fi
5836a818
PP
4039
4040rm -rf conftest.dSYM
4041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4042 conftest$ac_exeext conftest.$ac_ext
b585a9fa 4043fi
b585a9fa 4044
5836a818
PP
4045rm -rf conftest.dSYM
4046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4047 conftest$ac_exeext conftest.$ac_ext
4048
4049if test "$cross_compiling" = yes; then
4050 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 4051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
4052{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4053See \`config.log' for more details." >&5
4054$as_echo "$as_me: error: cannot run test program while cross compiling
4055See \`config.log' for more details." >&2;}
4056 { (exit 1); exit 1; }; }; }
4057else
4058 cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4063/* end confdefs.h. */
4064
4065main()
4066{
4067 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
4068}
4069_ACEOF
5836a818
PP
4070rm -f conftest$ac_exeext
4071if { (ac_try="$ac_link"
4072case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4077$as_echo "$ac_try_echo") >&5
4078 (eval "$ac_link") 2>&5
4079 ac_status=$?
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4087$as_echo "$ac_try_echo") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
b585a9fa
EZ
4092 echo "- you use the termcap database" 1>&6
4093
4094else
5836a818
PP
4095 $as_echo "$as_me: program exited with status $ac_status" >&5
4096$as_echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099( exit $ac_status )
4100echo "- you use the terminfo database" 1>&6
4101 cat >>confdefs.h <<\_ACEOF
4102#define TERMINFO 1
4103_ACEOF
b585a9fa
EZ
4104
4105fi
5836a818
PP
4106rm -rf conftest.dSYM
4107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b585a9fa 4108fi
81ecdfbb 4109
5836a818
PP
4110
4111{ $as_echo "$as_me:$LINENO: checking ospeed..." >&5
81ecdfbb 4112$as_echo "$as_me: checking ospeed..." >&6;}
5836a818
PP
4113cat >conftest.$ac_ext <<_ACEOF
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4118/* end confdefs.h. */
4119extern short ospeed;
4120int
4121main ()
4122{
5836a818
PP
4123ospeed=5;
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext conftest$ac_exeext
4129if { (ac_try="$ac_link"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135$as_echo "$ac_try_echo") >&5
4136 (eval "$ac_link") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest$ac_exeext && {
4146 test "$cross_compiling" = yes ||
4147 $as_test_x conftest$ac_exeext
4148 }; then
4149 :
4150else
4151 $as_echo "$as_me: failed program was:" >&5
4152sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 cat >>confdefs.h <<\_ACEOF
4155#define NEED_OSPEED 1
4156_ACEOF
4157
4158fi
4159
4160rm -rf conftest.dSYM
4161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4162 conftest$ac_exeext conftest.$ac_ext
4163
4164{ $as_echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
4165$as_echo "$as_me: checking for /dev/ptc..." >&6;}
4166if test -r /dev/ptc; then
4167cat >>confdefs.h <<\_ACEOF
4168#define HAVE_DEV_PTC 1
4169_ACEOF
4170
4171fi
4172
4173{ $as_echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
4174$as_echo "$as_me: checking for SVR4 ptys..." >&6;}
4175sysvr4ptys=
4176if test -c /dev/ptmx ; then
4177cat >conftest.$ac_ext <<_ACEOF
4178/* confdefs.h. */
4179_ACEOF
4180cat confdefs.h >>conftest.$ac_ext
4181cat >>conftest.$ac_ext <<_ACEOF
4182/* end confdefs.h. */
4183
4184int
4185main ()
4186{
4187ptsname(0);grantpt(0);unlockpt(0);
4188 ;
4189 return 0;
4190}
4191_ACEOF
4192rm -f conftest.$ac_objext conftest$ac_exeext
4193if { (ac_try="$ac_link"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4199$as_echo "$ac_try_echo") >&5
4200 (eval "$ac_link") 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } && {
4207 test -z "$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4209 } && test -s conftest$ac_exeext && {
4210 test "$cross_compiling" = yes ||
4211 $as_test_x conftest$ac_exeext
4212 }; then
4213 cat >>confdefs.h <<\_ACEOF
4214#define HAVE_SVR4_PTYS 1
4215_ACEOF
4216
4217sysvr4ptys=1
4218else
4219 $as_echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222
4223fi
4224
4225rm -rf conftest.dSYM
4226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4227 conftest$ac_exeext conftest.$ac_ext
4228fi
4229
4230
4231for ac_func in getpt
4232do
4233as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4234{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4235$as_echo_n "checking for $ac_func... " >&6; }
4236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4237 $as_echo_n "(cached) " >&6
4238else
4239 cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h. */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h. */
4245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4247#define $ac_func innocuous_$ac_func
4248
4249/* System header to define __stub macros and hopefully few prototypes,
4250 which can conflict with char $ac_func (); below.
4251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 <limits.h> exists even on freestanding compilers. */
4253
4254#ifdef __STDC__
4255# include <limits.h>
4256#else
4257# include <assert.h>
4258#endif
4259
4260#undef $ac_func
4261
4262/* Override any GCC internal prototype to avoid an error.
4263 Use char because int might match the return type of a GCC
4264 builtin and then its argument prototype would still apply. */
4265#ifdef __cplusplus
4266extern "C"
4267#endif
4268char $ac_func ();
4269/* The GNU C library defines this for functions which it implements
4270 to always fail with ENOSYS. Some functions are actually named
4271 something starting with __ and the normal name is an alias. */
4272#if defined __stub_$ac_func || defined __stub___$ac_func
4273choke me
4274#endif
4275
4276int
4277main ()
4278{
4279return $ac_func ();
cc88a640
JK
4280 ;
4281 return 0;
4282}
4283_ACEOF
5836a818
PP
4284rm -f conftest.$ac_objext conftest$ac_exeext
4285if { (ac_try="$ac_link"
4286case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4291$as_echo "$ac_try_echo") >&5
4292 (eval "$ac_link") 2>conftest.er1
4293 ac_status=$?
4294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
4297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && {
4299 test -z "$ac_c_werror_flag" ||
4300 test ! -s conftest.err
4301 } && test -s conftest$ac_exeext && {
4302 test "$cross_compiling" = yes ||
4303 $as_test_x conftest$ac_exeext
4304 }; then
4305 eval "$as_ac_var=yes"
cc88a640 4306else
5836a818
PP
4307 $as_echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
cc88a640 4309
5836a818 4310 eval "$as_ac_var=no"
cc88a640
JK
4311fi
4312
5836a818
PP
4313rm -rf conftest.dSYM
4314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4315 conftest$ac_exeext conftest.$ac_ext
4316fi
4317ac_res=`eval 'as_val=${'$as_ac_var'}
4318 $as_echo "$as_val"'`
4319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4320$as_echo "$ac_res" >&6; }
4321as_val=`eval 'as_val=${'$as_ac_var'}
4322 $as_echo "$as_val"'`
4323 if test "x$as_val" = x""yes; then
4324 cat >>confdefs.h <<_ACEOF
4325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4326_ACEOF
b585a9fa
EZ
4327
4328fi
5836a818 4329done
cc88a640 4330
5836a818
PP
4331
4332if test -z "$sysvr4ptys"; then
4333
4334for ac_func in openpty
4335do
4336as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4337{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4338$as_echo_n "checking for $ac_func... " >&6; }
4339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4340 $as_echo_n "(cached) " >&6
4341else
4342 cat >conftest.$ac_ext <<_ACEOF
4343/* confdefs.h. */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
cc88a640 4347/* end confdefs.h. */
5836a818
PP
4348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4350#define $ac_func innocuous_$ac_func
4351
4352/* System header to define __stub macros and hopefully few prototypes,
4353 which can conflict with char $ac_func (); below.
4354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4355 <limits.h> exists even on freestanding compilers. */
4356
4357#ifdef __STDC__
4358# include <limits.h>
4359#else
4360# include <assert.h>
4361#endif
4362
4363#undef $ac_func
4364
4365/* Override any GCC internal prototype to avoid an error.
4366 Use char because int might match the return type of a GCC
4367 builtin and then its argument prototype would still apply. */
4368#ifdef __cplusplus
4369extern "C"
4370#endif
4371char $ac_func ();
4372/* The GNU C library defines this for functions which it implements
4373 to always fail with ENOSYS. Some functions are actually named
4374 something starting with __ and the normal name is an alias. */
4375#if defined __stub_$ac_func || defined __stub___$ac_func
4376choke me
4377#endif
cc88a640
JK
4378
4379int
4380main ()
4381{
5836a818 4382return $ac_func ();
cc88a640
JK
4383 ;
4384 return 0;
4385}
4386_ACEOF
5836a818
PP
4387rm -f conftest.$ac_objext conftest$ac_exeext
4388if { (ac_try="$ac_link"
4389case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394$as_echo "$ac_try_echo") >&5
4395 (eval "$ac_link") 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest$ac_exeext && {
4405 test "$cross_compiling" = yes ||
4406 $as_test_x conftest$ac_exeext
4407 }; then
4408 eval "$as_ac_var=yes"
4409else
4410 $as_echo "$as_me: failed program was:" >&5
4411sed 's/^/| /' conftest.$ac_ext >&5
cc88a640 4412
5836a818 4413 eval "$as_ac_var=no"
cc88a640
JK
4414fi
4415
5836a818
PP
4416rm -rf conftest.dSYM
4417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4418 conftest$ac_exeext conftest.$ac_ext
cc88a640 4419fi
5836a818
PP
4420ac_res=`eval 'as_val=${'$as_ac_var'}
4421 $as_echo "$as_val"'`
4422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4423$as_echo "$ac_res" >&6; }
4424as_val=`eval 'as_val=${'$as_ac_var'}
4425 $as_echo "$as_val"'`
4426 if test "x$as_val" = x""yes; then
b585a9fa 4427 cat >>confdefs.h <<_ACEOF
5836a818 4428#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b585a9fa
EZ
4429_ACEOF
4430
4431else
5836a818 4432 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
81ecdfbb 4433$as_echo_n "checking for openpty in -lutil... " >&6; }
5836a818 4434if test "${ac_cv_lib_util_openpty+set}" = set; then
81ecdfbb 4435 $as_echo_n "(cached) " >&6
b585a9fa
EZ
4436else
4437 ac_check_lib_save_LIBS=$LIBS
4438LIBS="-lutil $LIBS"
5836a818
PP
4439cat >conftest.$ac_ext <<_ACEOF
4440/* confdefs.h. */
4441_ACEOF
4442cat confdefs.h >>conftest.$ac_ext
4443cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4444/* end confdefs.h. */
4445
81ecdfbb
RW
4446/* Override any GCC internal prototype to avoid an error.
4447 Use char because int might match the return type of a GCC
4448 builtin and then its argument prototype would still apply. */
b585a9fa
EZ
4449#ifdef __cplusplus
4450extern "C"
4451#endif
b585a9fa
EZ
4452char openpty ();
4453int
4454main ()
4455{
81ecdfbb 4456return openpty ();
b585a9fa
EZ
4457 ;
4458 return 0;
4459}
4460_ACEOF
5836a818
PP
4461rm -f conftest.$ac_objext conftest$ac_exeext
4462if { (ac_try="$ac_link"
4463case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466esac
4467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468$as_echo "$ac_try_echo") >&5
4469 (eval "$ac_link") 2>conftest.er1
4470 ac_status=$?
4471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest$ac_exeext && {
4479 test "$cross_compiling" = yes ||
4480 $as_test_x conftest$ac_exeext
4481 }; then
b585a9fa
EZ
4482 ac_cv_lib_util_openpty=yes
4483else
5836a818
PP
4484 $as_echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 ac_cv_lib_util_openpty=no
b585a9fa 4488fi
5836a818
PP
4489
4490rm -rf conftest.dSYM
4491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4492 conftest$ac_exeext conftest.$ac_ext
b585a9fa
EZ
4493LIBS=$ac_check_lib_save_LIBS
4494fi
5836a818 4495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
81ecdfbb 4496$as_echo "$ac_cv_lib_util_openpty" >&6; }
5836a818
PP
4497if test "x$ac_cv_lib_util_openpty" = x""yes; then
4498 cat >>confdefs.h <<\_ACEOF
4499#define HAVE_OPENPTY 1
4500_ACEOF
b585a9fa
EZ
4501 LIBS="$LIBS -lutil"
4502fi
4503
4504fi
4505done
4506
4507fi
4508
5836a818 4509{ $as_echo "$as_me:$LINENO: checking for ptyranges..." >&5
81ecdfbb 4510$as_echo "$as_me: checking for ptyranges..." >&6;}
b585a9fa
EZ
4511if test -d /dev/ptym ; then
4512pdir='/dev/ptym'
4513else
4514pdir='/dev'
4515fi
5836a818
PP
4516cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4521/* end confdefs.h. */
4522#ifdef M_UNIX
4523 yes;
4524#endif
4525
4526_ACEOF
4527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836a818 4528 $EGREP "yes" >/dev/null 2>&1; then
b585a9fa
EZ
4529 ptys=`echo /dev/ptyp??`
4530else
4531 ptys=`echo $pdir/pty??`
4532fi
4533rm -f conftest*
4534
4535if test "$ptys" != "$pdir/pty??" ; then
4536p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
4537p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
4538cat >>confdefs.h <<_ACEOF
4539#define PTYRANGE0 "$p0"
4540_ACEOF
4541
4542cat >>confdefs.h <<_ACEOF
4543#define PTYRANGE1 "$p1"
4544_ACEOF
4545
4546fi
4547
4548
81ecdfbb 4549# Check whether --with-pty-mode was given.
5836a818 4550if test "${with_pty_mode+set}" = set; then
81ecdfbb
RW
4551 withval=$with_pty_mode; ptymode="${withval}"
4552fi
4553
4554
4555# Check whether --with-pty-group was given.
5836a818 4556if test "${with_pty_group+set}" = set; then
81ecdfbb
RW
4557 withval=$with_pty_group; ptygrp="${withval}"
4558fi
b585a9fa 4559
b585a9fa
EZ
4560test -n "$ptymode" || ptymode=0620
4561if test -n "$ptygrp" ; then
4562cat >>confdefs.h <<_ACEOF
4563#define PTYMODE $ptymode
4564_ACEOF
4565
4566cat >>confdefs.h <<_ACEOF
4567#define PTYGROUP $ptygrp
4568_ACEOF
4569
4570else
4571
5836a818 4572{ $as_echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
81ecdfbb 4573$as_echo "$as_me: checking default tty permissions/group..." >&6;}
b585a9fa 4574rm -f conftest_grp
5836a818
PP
4575if test "$cross_compiling" = yes; then
4576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 4577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
4578{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4579See \`config.log' for more details." >&5
4580$as_echo "$as_me: error: cannot run test program while cross compiling
4581See \`config.log' for more details." >&2;}
4582 { (exit 1); exit 1; }; }; }
4583else
4584 cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4589/* end confdefs.h. */
4590
4591#include <sys/types.h>
4592#include <sys/stat.h>
4593#include <stdio.h>
4594main()
4595{
4596 struct stat sb;
4597 char *x,*ttyname();
4598 int om, m;
4599 FILE *fp;
4600
4601 if (!(x = ttyname(0))) exit(1);
4602 if (stat(x, &sb)) exit(1);
4603 om = sb.st_mode;
4604 if (om & 002) exit(0);
4605 m = system("mesg y");
4606 if (m == -1 || m == 127) exit(1);
4607 if (stat(x, &sb)) exit(1);
4608 m = sb.st_mode;
4609 if (chmod(x, om)) exit(1);
4610 if (m & 002) exit(0);
4611 if (sb.st_gid == getgid()) exit(1);
4612 if (!(fp=fopen("conftest_grp", "w")))
4613 exit(1);
4614 fprintf(fp, "%d\n", sb.st_gid);
4615 fclose(fp);
4616 exit(0);
4617}
4618
4619_ACEOF
5836a818
PP
4620rm -f conftest$ac_exeext
4621if { (ac_try="$ac_link"
4622case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625esac
4626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627$as_echo "$ac_try_echo") >&5
4628 (eval "$ac_link") 2>&5
4629 ac_status=$?
4630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4637$as_echo "$ac_try_echo") >&5
4638 (eval "$ac_try") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
b585a9fa
EZ
4642
4643 if test -f conftest_grp; then
4644 ptygrp=`cat conftest_grp`
4645 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4646
4647 cat >>confdefs.h <<_ACEOF
4648#define PTYMODE $ptymode
4649_ACEOF
4650
4651 cat >>confdefs.h <<_ACEOF
4652#define PTYGROUP $ptygrp
4653_ACEOF
4654
4655 else
4656 echo "- ptys are world accessable" 1>&6
4657
4658 fi
4659
4660else
5836a818
PP
4661 $as_echo "$as_me: program exited with status $ac_status" >&5
4662$as_echo "$as_me: failed program was:" >&5
4663sed 's/^/| /' conftest.$ac_ext >&5
4664
4665( exit $ac_status )
b585a9fa
EZ
4666
4667 WRITEPATH=''
4668 XTERMPATH=''
4669 # Extract the first word of "write", so it can be a program name with args.
4670set dummy write; ac_word=$2
5836a818 4671{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 4672$as_echo_n "checking for $ac_word... " >&6; }
5836a818 4673if test "${ac_cv_path_WRITEPATH+set}" = set; then
81ecdfbb 4674 $as_echo_n "(cached) " >&6
b585a9fa
EZ
4675else
4676 case $WRITEPATH in
4677 [\\/]* | ?:[\\/]*)
4678 ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
4679 ;;
4680 *)
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
5836a818 4686 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 4688 ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
5836a818 4689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
4690 break 2
4691 fi
4692done
5836a818 4693done
81ecdfbb 4694IFS=$as_save_IFS
b585a9fa
EZ
4695
4696 ;;
4697esac
4698fi
4699WRITEPATH=$ac_cv_path_WRITEPATH
b585a9fa 4700if test -n "$WRITEPATH"; then
5836a818 4701 { $as_echo "$as_me:$LINENO: result: $WRITEPATH" >&5
81ecdfbb 4702$as_echo "$WRITEPATH" >&6; }
b585a9fa 4703else
5836a818 4704 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 4705$as_echo "no" >&6; }
b585a9fa
EZ
4706fi
4707
81ecdfbb 4708
b585a9fa
EZ
4709 # Extract the first word of "xterm", so it can be a program name with args.
4710set dummy xterm; ac_word=$2
5836a818 4711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
81ecdfbb 4712$as_echo_n "checking for $ac_word... " >&6; }
5836a818 4713if test "${ac_cv_path_XTERMPATH+set}" = set; then
81ecdfbb 4714 $as_echo_n "(cached) " >&6
b585a9fa
EZ
4715else
4716 case $XTERMPATH in
4717 [\\/]* | ?:[\\/]*)
4718 ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
4719 ;;
4720 *)
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722for as_dir in $PATH
4723do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
5836a818 4726 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b585a9fa 4728 ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
5836a818 4729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
b585a9fa
EZ
4730 break 2
4731 fi
4732done
5836a818 4733done
81ecdfbb 4734IFS=$as_save_IFS
b585a9fa
EZ
4735
4736 ;;
4737esac
4738fi
4739XTERMPATH=$ac_cv_path_XTERMPATH
b585a9fa 4740if test -n "$XTERMPATH"; then
5836a818 4741 { $as_echo "$as_me:$LINENO: result: $XTERMPATH" >&5
81ecdfbb 4742$as_echo "$XTERMPATH" >&6; }
b585a9fa 4743else
5836a818 4744 { $as_echo "$as_me:$LINENO: result: no" >&5
81ecdfbb 4745$as_echo "no" >&6; }
b585a9fa
EZ
4746fi
4747
81ecdfbb 4748
b585a9fa
EZ
4749 found=
4750 if test -n "$WRITEPATH$XTERMPATH"; then
4751 findfollow=
4752 lsfollow=
4753 found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
4754 if test -n "$found"; then
4755 findfollow=-follow
4756 lsfollow=L
4757 fi
4758 if test -n "$XTERMPATH"; then
4759 ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4760 if test tty != "$ptygrpn"; then
4761 XTERMPATH=
4762 fi
4763 fi
4764 fi
4765 if test -n "$WRITEPATH$XTERMPATH"; then
4766 found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4767 if test -n "$found"; then
4768 ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4769 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4770
4771 cat >>confdefs.h <<_ACEOF
4772#define PTYMODE $ptymode
4773_ACEOF
4774
4775 cat >>confdefs.h <<_ACEOF
4776#define PTYGROUP $ptygrp
4777_ACEOF
4778
4779 else
4780 echo "- ptys are world accessable" 1>&6
4781
4782 fi
4783 else
4784 echo "- can't determine - assume ptys are world accessable" 1>&6
4785
4786 fi
4787
4788
4789fi
5836a818
PP
4790rm -rf conftest.dSYM
4791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b585a9fa 4792fi
81ecdfbb 4793
5836a818 4794
b585a9fa
EZ
4795rm -f conftest_grp
4796fi
4797
4798if test -n "$posix" ; then
4799
4800echo "assuming posix signal definition" 1>&6
4801
5836a818
PP
4802cat >>confdefs.h <<\_ACEOF
4803#define SIGVOID 1
4804_ACEOF
b585a9fa
EZ
4805
4806
4807else
4808
5836a818 4809{ $as_echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
81ecdfbb 4810$as_echo "$as_me: checking return type of signal handlers..." >&6;}
5836a818
PP
4811cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4816/* end confdefs.h. */
4817#include <sys/types.h>
4818#include <signal.h>
4819#ifdef signal
4820#undef signal
4821#endif
4822extern void (*signal ()) ();
4823int
4824main ()
4825{
4826int i;
4827 ;
4828 return 0;
4829}
4830_ACEOF
5836a818
PP
4831rm -f conftest.$ac_objext
4832if { (ac_try="$ac_compile"
4833case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836esac
4837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4838$as_echo "$ac_try_echo") >&5
4839 (eval "$ac_compile") 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest.$ac_objext; then
4849 cat >>confdefs.h <<\_ACEOF
4850#define SIGVOID 1
4851_ACEOF
4852
4853else
4854 $as_echo "$as_me: failed program was:" >&5
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
b585a9fa
EZ
4857
4858fi
5836a818 4859
81ecdfbb 4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836a818 4861{ $as_echo "$as_me:$LINENO: checking sigset..." >&5
81ecdfbb 4862$as_echo "$as_me: checking sigset..." >&6;}
5836a818
PP
4863cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4868/* end confdefs.h. */
4869
4870#include <sys/types.h>
4871#include <signal.h>
4872
4873int
4874main ()
4875{
4876
4877#ifdef SIGVOID
4878sigset(0, (void (*)())0);
4879#else
4880sigset(0, (int (*)())0);
4881#endif
4882
4883 ;
4884 return 0;
4885}
4886_ACEOF
5836a818
PP
4887rm -f conftest.$ac_objext conftest$ac_exeext
4888if { (ac_try="$ac_link"
4889case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892esac
4893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4894$as_echo "$ac_try_echo") >&5
4895 (eval "$ac_link") 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && {
4902 test -z "$ac_c_werror_flag" ||
4903 test ! -s conftest.err
4904 } && test -s conftest$ac_exeext && {
4905 test "$cross_compiling" = yes ||
4906 $as_test_x conftest$ac_exeext
4907 }; then
4908 cat >>confdefs.h <<\_ACEOF
4909#define USESIGSET 1
4910_ACEOF
4911
4912else
4913 $as_echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
b585a9fa
EZ
4916
4917fi
5836a818
PP
4918
4919rm -rf conftest.dSYM
4920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4921 conftest$ac_exeext conftest.$ac_ext
4922{ $as_echo "$as_me:$LINENO: checking signal implementation..." >&5
81ecdfbb 4923$as_echo "$as_me: checking signal implementation..." >&6;}
5836a818
PP
4924if test "$cross_compiling" = yes; then
4925 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
81ecdfbb 4926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5836a818
PP
4927{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4928See \`config.log' for more details." >&5
4929$as_echo "$as_me: error: cannot run test program while cross compiling
4930See \`config.log' for more details." >&2;}
4931 { (exit 1); exit 1; }; }; }
4932else
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
b585a9fa
EZ
4938/* end confdefs.h. */
4939
4940#include <sys/types.h>
4941#include <signal.h>
4942
cc88a640
JK
4943#ifndef SIGCLD
4944#define SIGCLD SIGCHLD
4945#endif
4946#ifdef USESIGSET
4947#define signal sigset
4948#endif
4949
4950int got;
4951
4952#ifdef SIGVOID
4953void
4954#endif
4955hand()
4956{
4957 got++;
4958}
4959
4960main()
4961{
4962 /* on hpux we use sigvec to get bsd signals */
4963#ifdef __hpux
4964 (void)signal(SIGCLD, hand);
4965 kill(getpid(), SIGCLD);
4966 kill(getpid(), SIGCLD);
4967 if (got < 2)
4968 exit(1);
4969#endif
4970 exit(0);
4971}
4972
4973_ACEOF
5836a818
PP
4974rm -f conftest$ac_exeext
4975if { (ac_try="$ac_link"
4976case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979esac
4980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4981$as_echo "$ac_try_echo") >&5
4982 (eval "$ac_link") 2>&5
4983 ac_status=$?
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4986 { (case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989esac
4990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991$as_echo "$ac_try_echo") >&5
4992 (eval "$ac_try") 2>&5
4993 ac_status=$?
4994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 :
4a11f206 4997else
5836a818
PP
4998 $as_echo "$as_me: program exited with status $ac_status" >&5
4999$as_echo "$as_me: failed program was:" >&5
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
5002( exit $ac_status )
5003cat >>confdefs.h <<\_ACEOF
5004#define SYSVSIGS 1
5005_ACEOF
cc88a640
JK
5006
5007fi
5836a818
PP
5008rm -rf conftest.dSYM
5009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cc88a640
JK
5010fi
5011
5012
5836a818 5013
cc88a640
JK
5014fi
5015
5836a818 5016{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
cc88a640 5017$as_echo_n "checking for ANSI C header files... " >&6; }
5836a818 5018if test "${ac_cv_header_stdc+set}" = set; then
cc88a640
JK
5019 $as_echo_n "(cached) " >&6
5020else
5836a818
PP
5021 cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
cc88a640
JK
5026/* end confdefs.h. */
5027#include <stdlib.h>
5028#include <stdarg.h>
5029#include <string.h>
5030#include <float.h>
5031
5032int
5033main ()
5034{
5035
5036 ;
5037 return 0;
5038}
5039_ACEOF
5836a818
PP
5040rm -f conftest.$ac_objext
5041if { (ac_try="$ac_compile"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047$as_echo "$ac_try_echo") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
cc88a640
JK
5058 ac_cv_header_stdc=yes
5059else
5836a818
PP
5060 $as_echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_cv_header_stdc=no
cc88a640 5064fi
5836a818 5065
cc88a640
JK
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067
5068if test $ac_cv_header_stdc = yes; then
5069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5836a818
PP
5070 cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
cc88a640
JK
5075/* end confdefs.h. */
5076#include <string.h>
5077
5078_ACEOF
5079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836a818
PP
5080 $EGREP "memchr" >/dev/null 2>&1; then
5081 :
cc88a640
JK
5082else
5083 ac_cv_header_stdc=no
5084fi
5085rm -f conftest*
5086
5087fi
5088
5089if test $ac_cv_header_stdc = yes; then
5090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5836a818
PP
5091 cat >conftest.$ac_ext <<_ACEOF
5092/* confdefs.h. */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
cc88a640
JK
5096/* end confdefs.h. */
5097#include <stdlib.h>
5098
5099_ACEOF
5100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836a818
PP
5101 $EGREP "free" >/dev/null 2>&1; then
5102 :
cc88a640
JK
5103else
5104 ac_cv_header_stdc=no
5105fi
5106rm -f conftest*
5107
5108fi
5109
5110if test $ac_cv_header_stdc = yes; then
5111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5836a818 5112 if test "$cross_compiling" = yes; then
cc88a640
JK
5113 :
5114else
5836a818
PP
5115 cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
cc88a640
JK
5120/* end confdefs.h. */
5121#include <ctype.h>
5122#include <stdlib.h>
5123#if ((' ' & 0x0FF) == 0x020)
5124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5126#else
5127# define ISLOWER(c) \
5128 (('a' <= (c) && (c) <= 'i') \
5129 || ('j' <= (c) && (c) <= 'r') \
5130 || ('s' <= (c) && (c) <= 'z'))
5131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5132#endif
5133
5134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5135int
5136main ()
5137{
5138 int i;
5139 for (i = 0; i < 256; i++)
5140 if (XOR (islower (i), ISLOWER (i))
5141 || toupper (i) != TOUPPER (i))
5142 return 2;
5143 return 0;
5144}
5145_ACEOF
5836a818
PP
5146rm -f conftest$ac_exeext
5147if { (ac_try="$ac_link"
5148case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151esac
5152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5153$as_echo "$ac_try_echo") >&5
5154 (eval "$ac_link") 2>&5
5155 ac_status=$?
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5158 { (case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161esac
5162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163$as_echo "$ac_try_echo") >&5
5164 (eval "$ac_try") 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 :
cc88a640 5169else
5836a818
PP
5170 $as_echo "$as_me: program exited with status $ac_status" >&5
5171$as_echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174( exit $ac_status )
5175ac_cv_header_stdc=no
5176fi
5177rm -rf conftest.dSYM
5178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5179fi
5180
5181
5182fi
4a11f206 5183fi
5836a818
PP
5184{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5185$as_echo "$ac_cv_header_stdc" >&6; }
5186if test $ac_cv_header_stdc = yes; then
5187
5188cat >>confdefs.h <<\_ACEOF
5189#define STDC_HEADERS 1
5190_ACEOF
5191
4a11f206 5192fi
cc88a640 5193
5836a818
PP
5194# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5205 inttypes.h stdint.h unistd.h
5206do
5207as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5209$as_echo_n "checking for $ac_header... " >&6; }
5210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5211 $as_echo_n "(cached) " >&6
5212else
5213 cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219$ac_includes_default
5220
5221#include <$ac_header>
5222_ACEOF
5223rm -f conftest.$ac_objext
5224if { (ac_try="$ac_compile"
5225case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228esac
5229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5230$as_echo "$ac_try_echo") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 eval "$as_ac_Header=yes"
5242else
5243 $as_echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 eval "$as_ac_Header=no"
cc88a640
JK
5247fi
5248
5836a818 5249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cc88a640 5250fi
5836a818
PP
5251ac_res=`eval 'as_val=${'$as_ac_Header'}
5252 $as_echo "$as_val"'`
5253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5254$as_echo "$ac_res" >&6; }
5255as_val=`eval 'as_val=${'$as_ac_Header'}
5256 $as_echo "$as_val"'`
5257 if test "x$as_val" = x""yes; then
cc88a640
JK
5258 cat >>confdefs.h <<_ACEOF
5259#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5260_ACEOF
5261
5262fi
5263
5264done
b585a9fa 5265
b585a9fa 5266
5836a818
PP
5267
5268
5269for ac_header in sys/stropts.h sys/wait.h
5270do
5271as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5273 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5274$as_echo_n "checking for $ac_header... " >&6; }
5275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5276 $as_echo_n "(cached) " >&6
5277fi
5278ac_res=`eval 'as_val=${'$as_ac_Header'}
5279 $as_echo "$as_val"'`
5280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5281$as_echo "$ac_res" >&6; }
5282else
5283 # Is the header compilable?
5284{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5285$as_echo_n "checking $ac_header usability... " >&6; }
5286cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292$ac_includes_default
5293#include <$ac_header>
5294_ACEOF
5295rm -f conftest.$ac_objext
5296if { (ac_try="$ac_compile"
5297case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300esac
5301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5302$as_echo "$ac_try_echo") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest.$ac_objext; then
5313 ac_header_compiler=yes
5314else
5315 $as_echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_header_compiler=no
5319fi
5320
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5323$as_echo "$ac_header_compiler" >&6; }
5324
5325# Is the header present?
5326{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5327$as_echo_n "checking $ac_header presence... " >&6; }
5328cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334#include <$ac_header>
cc88a640 5335_ACEOF
5836a818
PP
5336if { (ac_try="$ac_cpp conftest.$ac_ext"
5337case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340esac
5341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5342$as_echo "$ac_try_echo") >&5
5343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null && {
5350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5351 test ! -s conftest.err
5352 }; then
5353 ac_header_preproc=yes
5354else
5355 $as_echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
b585a9fa 5357
5836a818 5358 ac_header_preproc=no
b585a9fa 5359fi
cc88a640 5360
5836a818
PP
5361rm -f conftest.err conftest.$ac_ext
5362{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5363$as_echo "$ac_header_preproc" >&6; }
5364
5365# So? What about this header?
5366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5367 yes:no: )
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5369$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5371$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5372 ac_header_preproc=yes
5373 ;;
5374 no:yes:* )
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5376$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5378$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5380$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5382$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5384$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5386$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5387
5388 ;;
5389esac
5390{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5391$as_echo_n "checking for $ac_header... " >&6; }
5392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5393 $as_echo_n "(cached) " >&6
5394else
5395 eval "$as_ac_Header=\$ac_header_preproc"
5396fi
5397ac_res=`eval 'as_val=${'$as_ac_Header'}
5398 $as_echo "$as_val"'`
5399 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5400$as_echo "$ac_res" >&6; }
b585a9fa 5401
5836a818
PP
5402fi
5403as_val=`eval 'as_val=${'$as_ac_Header'}
5404 $as_echo "$as_val"'`
5405 if test "x$as_val" = x""yes; then
cc88a640 5406 cat >>confdefs.h <<_ACEOF
5836a818 5407#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
cc88a640 5408_ACEOF
81ecdfbb 5409
b585a9fa
EZ
5410fi
5411
cc88a640
JK
5412done
5413
5414
81ecdfbb
RW
5415ac_config_files="$ac_config_files Makefile"
5416
b585a9fa
EZ
5417cat >confcache <<\_ACEOF
5418# This file is a shell script that caches the results of configure
5419# tests run on this system so they can be shared between configure
5420# scripts and configure runs, see configure's option --config-cache.
5421# It is not useful on other systems. If it contains results you don't
5422# want to keep, you may remove or edit it.
5423#
5424# config.status only pays attention to the cache file if you give it
5425# the --recheck option to rerun configure.
5426#
5427# `ac_cv_env_foo' variables (set or unset) will be overridden when
5428# loading this file, other *unset* `ac_cv_foo' will be assigned the
5429# following values.
5430
5431_ACEOF
5432
5433# The following way of writing the cache mishandles newlines in values,
5434# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5435# So, we kill variables containing newlines.
b585a9fa
EZ
5436# Ultrix sh set writes to stderr and can't be redirected directly,
5437# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5438(
5439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5440 eval ac_val=\$$ac_var
5441 case $ac_val in #(
5442 *${as_nl}*)
5443 case $ac_var in #(
5836a818 5444 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
81ecdfbb
RW
5445$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5446 esac
5447 case $ac_var in #(
5448 _ | IFS | as_nl) ;; #(
5449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5836a818 5450 *) $as_unset $ac_var ;;
81ecdfbb
RW
5451 esac ;;
5452 esac
5453 done
5454
b585a9fa 5455 (set) 2>&1 |
81ecdfbb
RW
5456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5457 *${as_nl}ac_space=\ *)
5836a818
PP
5458 # `set' does not quote correctly, so add quotes (double-quote
5459 # substitution turns \\\\ into \\, and sed turns \\ into \).
b585a9fa
EZ
5460 sed -n \
5461 "s/'/'\\\\''/g;
5462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5463 ;; #(
b585a9fa
EZ
5464 *)
5465 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b585a9fa 5467 ;;
81ecdfbb
RW
5468 esac |
5469 sort
5470) |
b585a9fa 5471 sed '
81ecdfbb 5472 /^ac_cv_env_/b end
b585a9fa 5473 t clear
81ecdfbb 5474 :clear
b585a9fa
EZ
5475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5476 t end
81ecdfbb
RW
5477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5478 :end' >>confcache
5479if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5480 if test -w "$cache_file"; then
5481 test "x$cache_file" != "x/dev/null" &&
5836a818 5482 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
81ecdfbb 5483$as_echo "$as_me: updating cache $cache_file" >&6;}
b585a9fa
EZ
5484 cat confcache >$cache_file
5485 else
5836a818 5486 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
81ecdfbb 5487$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b585a9fa
EZ
5488 fi
5489fi
5490rm -f confcache
5491
5492test "x$prefix" = xNONE && prefix=$ac_default_prefix
5493# Let make expand exec_prefix.
5494test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5495
b585a9fa
EZ
5496DEFS=-DHAVE_CONFIG_H
5497
5498ac_libobjs=
5499ac_ltlibobjs=
5500for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5501 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
5502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5505 # will be set to the directory where LIBOBJS objects are built.
5836a818
PP
5506 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5507 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
b585a9fa
EZ
5508done
5509LIBOBJS=$ac_libobjs
5510
5511LTLIBOBJS=$ac_ltlibobjs
5512
5513
5514
5515: ${CONFIG_STATUS=./config.status}
81ecdfbb 5516ac_write_fail=0
b585a9fa
EZ
5517ac_clean_files_save=$ac_clean_files
5518ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5836a818 5519{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
81ecdfbb 5520$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5836a818 5521cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b585a9fa
EZ
5522#! $SHELL
5523# Generated by $as_me.
5524# Run this file to recreate the current configuration.
5525# Compiler output produced by configure, useful for debugging
5526# configure, is in config.log if it exists.
5527
5528debug=false
5529ac_cs_recheck=false
5530ac_cs_silent=false
4a11f206 5531SHELL=\${CONFIG_SHELL-$SHELL}
5836a818
PP
5532_ACEOF
5533
5534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5535## --------------------- ##
5536## M4sh Initialization. ##
5537## --------------------- ##
81ecdfbb
RW
5538
5539# Be more Bourne compatible
5540DUALCASE=1; export DUALCASE # for MKS sh
5836a818 5541if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
b585a9fa
EZ
5542 emulate sh
5543 NULLCMD=:
81ecdfbb 5544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b585a9fa
EZ
5545 # is contrary to our usage. Disable this feature.
5546 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
5547 setopt NO_GLOB_SUBST
5548else
5836a818
PP
5549 case `(set -o) 2>/dev/null` in
5550 *posix*) set -o posix ;;
81ecdfbb 5551esac
5836a818 5552
b585a9fa 5553fi
b585a9fa 5554
81ecdfbb 5555
5836a818
PP
5556
5557
5558# PATH needs CR
5559# Avoid depending upon Character Ranges.
5560as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5561as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5562as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5563as_cr_digits='0123456789'
5564as_cr_alnum=$as_cr_Letters$as_cr_digits
5565
81ecdfbb
RW
5566as_nl='
5567'
5568export as_nl
5569# Printing a long string crashes Solaris 7 /usr/bin/printf.
5570as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5571as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5572as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5836a818 5573if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
81ecdfbb
RW
5574 as_echo='printf %s\n'
5575 as_echo_n='printf %s'
b585a9fa 5576else
81ecdfbb
RW
5577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5578 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5579 as_echo_n='/usr/ucb/echo -n'
5580 else
5581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5582 as_echo_n_body='eval
5583 arg=$1;
5836a818 5584 case $arg in
81ecdfbb
RW
5585 *"$as_nl"*)
5586 expr "X$arg" : "X\\(.*\\)$as_nl";
5587 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5588 esac;
5589 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5590 '
5591 export as_echo_n_body
5592 as_echo_n='sh -c $as_echo_n_body as_echo'
5593 fi
5594 export as_echo_body
5595 as_echo='sh -c $as_echo_body as_echo'
5596fi
5597
5598# The user is always right.
5599if test "${PATH_SEPARATOR+set}" != set; then
5600 PATH_SEPARATOR=:
5601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5602 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5603 PATH_SEPARATOR=';'
5604 }
b585a9fa
EZ
5605fi
5606
5836a818
PP
5607# Support unset when possible.
5608if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5609 as_unset=unset
5610else
5611 as_unset=false
5612fi
5613
b585a9fa 5614
81ecdfbb
RW
5615# IFS
5616# We need space, tab and new line, in precisely that order. Quoting is
5617# there to prevent editors from complaining about space-tab.
5618# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5619# splitting by setting IFS to empty value.)
5620IFS=" "" $as_nl"
5621
5622# Find who we are. Look in the path if we contain no directory separator.
5836a818 5623case $0 in
81ecdfbb
RW
5624 *[\\/]* ) as_myself=$0 ;;
5625 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5836a818
PP
5630 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5631done
81ecdfbb
RW
5632IFS=$as_save_IFS
5633
5634 ;;
5635esac
5636# We did not find ourselves, most probably we were run as `sh COMMAND'
5637# in which case we are not to be found in the path.
5638if test "x$as_myself" = x; then
5639 as_myself=$0
5640fi
5641if test ! -f "$as_myself"; then
5642 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5836a818 5643 { (exit 1); exit 1; }
81ecdfbb
RW
5644fi
5645
5836a818
PP
5646# Work around bugs in pre-3.0 UWIN ksh.
5647for as_var in ENV MAIL MAILPATH
5648do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
81ecdfbb 5649done
b585a9fa
EZ
5650PS1='$ '
5651PS2='> '
5652PS4='+ '
5653
5654# NLS nuisances.
81ecdfbb
RW
5655LC_ALL=C
5656export LC_ALL
5657LANGUAGE=C
5658export LANGUAGE
5659
5836a818 5660# Required to use basename.
81ecdfbb
RW
5661if expr a : '\(a\)' >/dev/null 2>&1 &&
5662 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b585a9fa
EZ
5663 as_expr=expr
5664else
5665 as_expr=false
5666fi
5667
81ecdfbb 5668if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b585a9fa
EZ
5669 as_basename=basename
5670else
5671 as_basename=false
5672fi
5673
5674
5836a818 5675# Name of the executable.
81ecdfbb 5676as_me=`$as_basename -- "$0" ||
b585a9fa
EZ
5677$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5678 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
5679 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5680$as_echo X/"$0" |
5681 sed '/^.*\/\([^/][^/]*\)\/*$/{
5682 s//\1/
5683 q
5684 }
5685 /^X\/\(\/\/\)$/{
5686 s//\1/
5687 q
5688 }
5689 /^X\/\(\/\).*/{
5690 s//\1/
5691 q
5692 }
5693 s/.*/./; q'`
b585a9fa 5694
5836a818
PP
5695# CDPATH.
5696$as_unset CDPATH
5697
5698
5699
5700 as_lineno_1=$LINENO
5701 as_lineno_2=$LINENO
5702 test "x$as_lineno_1" != "x$as_lineno_2" &&
5703 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5704
5705 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5706 # uniformly replaced by the line number. The first 'sed' inserts a
5707 # line-number line after each line using $LINENO; the second 'sed'
5708 # does the real work. The second script uses 'N' to pair each
5709 # line-number line with the line containing $LINENO, and appends
5710 # trailing '-' during substitution so that $LINENO is not a special
5711 # case at line end.
5712 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5713 # scripts with optimization help from Paolo Bonzini. Blame Lee
5714 # E. McMahon (1931-1989) for sed's syntax. :-)
5715 sed -n '
5716 p
5717 /[$]LINENO/=
5718 ' <$as_myself |
5719 sed '
5720 s/[$]LINENO.*/&-/
5721 t lineno
5722 b
5723 :lineno
5724 N
5725 :loop
5726 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5727 t loop
5728 s/-\n.*//
5729 ' >$as_me.lineno &&
5730 chmod +x "$as_me.lineno" ||
5731 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5732 { (exit 1); exit 1; }; }
5733
5734 # Don't try to exec as it changes $[0], causing all sort of problems
5735 # (the dirname of $[0] is not the place where we might find the
5736 # original and so on. Autoconf is especially sensitive to this).
5737 . "./$as_me.lineno"
5738 # Exit status is that of the last command.
5739 exit
5740}
5741
5742
5743if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5744 as_dirname=dirname
5745else
5746 as_dirname=false
5747fi
b585a9fa 5748
81ecdfbb 5749ECHO_C= ECHO_N= ECHO_T=
5836a818 5750case `echo -n x` in
81ecdfbb 5751-n*)
5836a818 5752 case `echo 'x\c'` in
81ecdfbb 5753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5836a818 5754 *) ECHO_C='\c';;
81ecdfbb
RW
5755 esac;;
5756*)
5757 ECHO_N='-n';;
b585a9fa 5758esac
5836a818
PP
5759if expr a : '\(a\)' >/dev/null 2>&1 &&
5760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5761 as_expr=expr
5762else
5763 as_expr=false
5764fi
b585a9fa 5765
81ecdfbb
RW
5766rm -f conf$$ conf$$.exe conf$$.file
5767if test -d conf$$.dir; then
5768 rm -f conf$$.dir/conf$$.file
b585a9fa 5769else
81ecdfbb
RW
5770 rm -f conf$$.dir
5771 mkdir conf$$.dir 2>/dev/null
b585a9fa 5772fi
81ecdfbb
RW
5773if (echo >conf$$.file) 2>/dev/null; then
5774 if ln -s conf$$.file conf$$ 2>/dev/null; then
b585a9fa 5775 as_ln_s='ln -s'
81ecdfbb
RW
5776 # ... but there are two gotchas:
5777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5779 # In both cases, we have to default to `cp -p'.
5780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5781 as_ln_s='cp -p'
5782 elif ln conf$$.file conf$$ 2>/dev/null; then
5783 as_ln_s=ln
5784 else
5785 as_ln_s='cp -p'
b585a9fa 5786 fi
b585a9fa
EZ
5787else
5788 as_ln_s='cp -p'
5789fi
81ecdfbb
RW
5790rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5791rmdir conf$$.dir 2>/dev/null
5792
b585a9fa 5793if mkdir -p . 2>/dev/null; then
5836a818 5794 as_mkdir_p=:
b585a9fa
EZ
5795else
5796 test -d ./-p && rmdir ./-p
5797 as_mkdir_p=false
5798fi
5799
81ecdfbb
RW
5800if test -x / >/dev/null 2>&1; then
5801 as_test_x='test -x'
5802else
5803 if ls -dL / >/dev/null 2>&1; then
5804 as_ls_L_option=L
5805 else
5806 as_ls_L_option=
5807 fi
5808 as_test_x='
5809 eval sh -c '\''
5810 if test -d "$1"; then
5811 test -d "$1/.";
5812 else
5836a818 5813 case $1 in
81ecdfbb
RW
5814 -*)set "./$1";;
5815 esac;
5836a818 5816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
81ecdfbb
RW
5817 ???[sx]*):;;*)false;;esac;fi
5818 '\'' sh
5819 '
5820fi
5821as_executable_p=$as_test_x
b585a9fa
EZ
5822
5823# Sed expression to map a string onto a valid CPP name.
5824as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5825
5826# Sed expression to map a string onto a valid variable name.
5827as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5828
5829
b585a9fa 5830exec 6>&1
81ecdfbb 5831
5836a818 5832# Save the log message, to keep $[0] and so on meaningful, and to
b585a9fa 5833# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
5834# values after options handling.
5835ac_log="
b585a9fa 5836This file was extended by $as_me, which was
5836a818 5837generated by GNU Autoconf 2.63. Invocation command line was
b585a9fa
EZ
5838
5839 CONFIG_FILES = $CONFIG_FILES
5840 CONFIG_HEADERS = $CONFIG_HEADERS
5841 CONFIG_LINKS = $CONFIG_LINKS
5842 CONFIG_COMMANDS = $CONFIG_COMMANDS
5843 $ $0 $@
5844
81ecdfbb
RW
5845on `(hostname || uname -n) 2>/dev/null | sed 1q`
5846"
5847
b585a9fa
EZ
5848_ACEOF
5849
81ecdfbb
RW
5850case $ac_config_files in *"
5851"*) set x $ac_config_files; shift; ac_config_files=$*;;
5852esac
b585a9fa 5853
81ecdfbb
RW
5854case $ac_config_headers in *"
5855"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5856esac
b585a9fa 5857
b585a9fa 5858
81ecdfbb
RW
5859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5860# Files that config.status was made for.
5861config_files="$ac_config_files"
5862config_headers="$ac_config_headers"
b585a9fa 5863
81ecdfbb 5864_ACEOF
b585a9fa 5865
81ecdfbb 5866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b585a9fa 5867ac_cs_usage="\
5836a818
PP
5868\`$as_me' instantiates files from templates according to the
5869current configuration.
b585a9fa 5870
5836a818 5871Usage: $0 [OPTION]... [FILE]...
b585a9fa
EZ
5872
5873 -h, --help print this help, then exit
81ecdfbb
RW
5874 -V, --version print version number and configuration settings, then exit
5875 -q, --quiet, --silent
5876 do not print progress messages
b585a9fa
EZ
5877 -d, --debug don't remove temporary files
5878 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
5879 --file=FILE[:TEMPLATE]
5880 instantiate the configuration file FILE
5881 --header=FILE[:TEMPLATE]
5882 instantiate the configuration header FILE
b585a9fa
EZ
5883
5884Configuration files:
5885$config_files
5886
5887Configuration headers:
5888$config_headers
5889
5836a818 5890Report bugs to <bug-autoconf@gnu.org>."
b585a9fa 5891
81ecdfbb
RW
5892_ACEOF
5893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b585a9fa
EZ
5894ac_cs_version="\\
5895config.status
5836a818 5896configured by $0, generated by GNU Autoconf 2.63,
81ecdfbb 5897 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b585a9fa 5898
5836a818 5899Copyright (C) 2008 Free Software Foundation, Inc.
b585a9fa
EZ
5900This config.status script is free software; the Free Software Foundation
5901gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
5902
5903ac_pwd='$ac_pwd'
5904srcdir='$srcdir'
5905AWK='$AWK'
5906test -n "\$AWK" || AWK=awk
b585a9fa
EZ
5907_ACEOF
5908
81ecdfbb
RW
5909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5910# The default lists apply if the user does not specify any file.
b585a9fa
EZ
5911ac_need_defaults=:
5912while test $# != 0
5913do
5914 case $1 in
5915 --*=*)
81ecdfbb
RW
5916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5917 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b585a9fa
EZ
5918 ac_shift=:
5919 ;;
81ecdfbb 5920 *)
b585a9fa
EZ
5921 ac_option=$1
5922 ac_optarg=$2
5923 ac_shift=shift
5924 ;;
b585a9fa
EZ
5925 esac
5926
5927 case $ac_option in
5928 # Handling of the options.
b585a9fa
EZ
5929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5930 ac_cs_recheck=: ;;
81ecdfbb
RW
5931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5932 $as_echo "$ac_cs_version"; exit ;;
5933 --debug | --debu | --deb | --de | --d | -d )
b585a9fa
EZ
5934 debug=: ;;
5935 --file | --fil | --fi | --f )
5936 $ac_shift
81ecdfbb
RW
5937 case $ac_optarg in
5938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5939 esac
5836a818 5940 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
b585a9fa
EZ
5941 ac_need_defaults=false;;
5942 --header | --heade | --head | --hea )
5943 $ac_shift
81ecdfbb
RW
5944 case $ac_optarg in
5945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5946 esac
5836a818 5947 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
b585a9fa 5948 ac_need_defaults=false;;
81ecdfbb
RW
5949 --he | --h)
5950 # Conflict between --help and --header
5836a818
PP
5951 { $as_echo "$as_me: error: ambiguous option: $1
5952Try \`$0 --help' for more information." >&2
5953 { (exit 1); exit 1; }; };;
81ecdfbb
RW
5954 --help | --hel | -h )
5955 $as_echo "$ac_cs_usage"; exit ;;
b585a9fa
EZ
5956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5957 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5958 ac_cs_silent=: ;;
5959
5960 # This is an error.
5836a818
PP
5961 -*) { $as_echo "$as_me: error: unrecognized option: $1
5962Try \`$0 --help' for more information." >&2
5963 { (exit 1); exit 1; }; } ;;
b585a9fa 5964
5836a818 5965 *) ac_config_targets="$ac_config_targets $1"
81ecdfbb 5966 ac_need_defaults=false ;;
b585a9fa
EZ
5967
5968 esac
5969 shift
5970done
5971
5972ac_configure_extra_args=
5973
5974if $ac_cs_silent; then
5975 exec 6>/dev/null
5976 ac_configure_extra_args="$ac_configure_extra_args --silent"
5977fi
5978
5979_ACEOF
81ecdfbb 5980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b585a9fa 5981if \$ac_cs_recheck; then
81ecdfbb
RW
5982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5983 shift
5984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5985 CONFIG_SHELL='$SHELL'
5986 export CONFIG_SHELL
5987 exec "\$@"
b585a9fa
EZ
5988fi
5989
5990_ACEOF
81ecdfbb
RW
5991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5992exec 5>>config.log
5993{
5994 echo
5995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5996## Running $as_me. ##
5997_ASBOX
5998 $as_echo "$ac_log"
5999} >&5
b585a9fa 6000
81ecdfbb
RW
6001_ACEOF
6002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6003_ACEOF
b585a9fa 6004
81ecdfbb 6005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b585a9fa 6006
81ecdfbb 6007# Handling of arguments.
b585a9fa
EZ
6008for ac_config_target in $ac_config_targets
6009do
81ecdfbb
RW
6010 case $ac_config_target in
6011 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6012 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6013
5836a818
PP
6014 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6015$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6016 { (exit 1); exit 1; }; };;
b585a9fa
EZ
6017 esac
6018done
6019
81ecdfbb 6020
b585a9fa
EZ
6021# If the user did not use the arguments to specify the items to instantiate,
6022# then the envvar interface is used. Set only those that are not.
6023# We use the long form for the default assignment because of an extremely
6024# bizarre bug on SunOS 4.1.3.
6025if $ac_need_defaults; then
6026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6028fi
6029
6030# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6031# simply because there is no reason against having it here, and in addition,
b585a9fa 6032# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6033# Hook for its removal unless debugging.
6034# Note that there is a small window in which the directory will not be cleaned:
6035# after its creation but before its name has been assigned to `$tmp'.
b585a9fa
EZ
6036$debug ||
6037{
81ecdfbb
RW
6038 tmp=
6039 trap 'exit_status=$?
6040 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6041' 0
5836a818 6042 trap '{ (exit 1); exit 1; }' 1 2 13 15
b585a9fa 6043}
b585a9fa
EZ
6044# Create a (secure) tmp directory for tmp files.
6045
6046{
81ecdfbb 6047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b585a9fa
EZ
6048 test -n "$tmp" && test -d "$tmp"
6049} ||
6050{
81ecdfbb
RW
6051 tmp=./conf$$-$RANDOM
6052 (umask 077 && mkdir "$tmp")
5836a818
PP
6053} ||
6054{
6055 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6056 { (exit 1); exit 1; }
6057}
81ecdfbb
RW
6058
6059# Set up the scripts for CONFIG_FILES section.
6060# No need to generate them if there are no CONFIG_FILES.
6061# This happens for instance with `./config.status config.h'.
6062if test -n "$CONFIG_FILES"; then
6063
6064
5836a818 6065ac_cr='\r'
81ecdfbb
RW
6066ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6067if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5836a818 6068 ac_cs_awk_cr='\\r'
81ecdfbb
RW
6069else
6070 ac_cs_awk_cr=$ac_cr
6071fi
6072
6073echo 'BEGIN {' >"$tmp/subs1.awk" &&
6074_ACEOF
6075
6076
6077{
6078 echo "cat >conf$$subs.awk <<_ACEOF" &&
6079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6080 echo "_ACEOF"
6081} >conf$$subs.sh ||
5836a818
PP
6082 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6083$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6084 { (exit 1); exit 1; }; }
81ecdfbb
RW
6085ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6086ac_delim='%!_!# '
6087for ac_last_try in false false false false false :; do
6088 . ./conf$$subs.sh ||
5836a818
PP
6089 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6090$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6091 { (exit 1); exit 1; }; }
81ecdfbb
RW
6092
6093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6094 if test $ac_delim_n = $ac_delim_num; then
6095 break
6096 elif $ac_last_try; then
5836a818
PP
6097 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6098$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6099 { (exit 1); exit 1; }; }
81ecdfbb
RW
6100 else
6101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6102 fi
6103done
6104rm -f conf$$subs.sh
6105
6106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6107cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6108_ACEOF
6109sed -n '
6110h
6111s/^/S["/; s/!.*/"]=/
6112p
6113g
6114s/^[^!]*!//
6115:repl
6116t repl
6117s/'"$ac_delim"'$//
6118t delim
6119:nl
6120h
6121s/\(.\{148\}\).*/\1/
6122t more1
6123s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6124p
6125n
6126b repl
6127:more1
6128s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6129p
6130g
6131s/.\{148\}//
6132t nl
6133:delim
6134h
6135s/\(.\{148\}\).*/\1/
6136t more2
6137s/["\\]/\\&/g; s/^/"/; s/$/"/
6138p
6139b
6140:more2
6141s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6142p
6143g
6144s/.\{148\}//
6145t delim
6146' <conf$$subs.awk | sed '
6147/^[^""]/{
6148 N
6149 s/\n//
6150}
6151' >>$CONFIG_STATUS || ac_write_fail=1
6152rm -f conf$$subs.awk
6153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6154_ACAWK
6155cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6156 for (key in S) S_is_set[key] = 1
6157 FS = "\a"
6158
6159}
b585a9fa 6160{
81ecdfbb
RW
6161 line = $ 0
6162 nfields = split(line, field, "@")
6163 substed = 0
6164 len = length(field[1])
6165 for (i = 2; i < nfields; i++) {
6166 key = field[i]
6167 keylen = length(key)
6168 if (S_is_set[key]) {
6169 value = S[key]
6170 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6171 len += length(value) + length(field[++i])
6172 substed = 1
6173 } else
6174 len += 1 + keylen
6175 }
6176
6177 print line
b585a9fa
EZ
6178}
6179
81ecdfbb
RW
6180_ACAWK
6181_ACEOF
6182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6183if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6184 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6185else
6186 cat
6187fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5836a818
PP
6188 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6189$as_echo "$as_me: error: could not setup config files machinery" >&2;}
6190 { (exit 1); exit 1; }; }
b585a9fa
EZ
6191_ACEOF
6192
81ecdfbb
RW
6193# VPATH may cause trouble with some makes, so we remove $(srcdir),
6194# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6195# trailing colons and then remove the whole line if VPATH becomes empty
6196# (actually we leave an empty line to preserve line numbers).
6197if test "x$srcdir" = x.; then
6198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6199s/:*\$(srcdir):*/:/
6200s/:*\${srcdir}:*/:/
6201s/:*@srcdir@:*/:/
6202s/^\([^=]*=[ ]*\):*/\1/
6203s/:*$//
6204s/^[^=]*=[ ]*$//
6205}'
6206fi
b585a9fa 6207
81ecdfbb
RW
6208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6209fi # test -n "$CONFIG_FILES"
b585a9fa 6210
81ecdfbb
RW
6211# Set up the scripts for CONFIG_HEADERS section.
6212# No need to generate them if there are no CONFIG_HEADERS.
6213# This happens for instance with `./config.status Makefile'.
6214if test -n "$CONFIG_HEADERS"; then
6215cat >"$tmp/defines.awk" <<\_ACAWK ||
6216BEGIN {
6217_ACEOF
6218
6219# Transform confdefs.h into an awk script `defines.awk', embedded as
6220# here-document in config.status, that substitutes the proper values into
6221# config.h.in to produce config.h.
6222
6223# Create a delimiter string that does not exist in confdefs.h, to ease
6224# handling of long lines.
6225ac_delim='%!_!# '
6226for ac_last_try in false false :; do
6227 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6228 if test -z "$ac_t"; then
6229 break
6230 elif $ac_last_try; then
5836a818
PP
6231 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6232$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6233 { (exit 1); exit 1; }; }
81ecdfbb
RW
6234 else
6235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6236 fi
6237done
b585a9fa 6238
81ecdfbb
RW
6239# For the awk script, D is an array of macro values keyed by name,
6240# likewise P contains macro parameters if any. Preserve backslash
6241# newline sequences.
6242
6243ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6244sed -n '
6245s/.\{148\}/&'"$ac_delim"'/g
6246t rset
6247:rset
6248s/^[ ]*#[ ]*define[ ][ ]*/ /
6249t def
6250d
6251:def
6252s/\\$//
6253t bsnl
6254s/["\\]/\\&/g
6255s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6256D["\1"]=" \3"/p
6257s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6258d
6259:bsnl
6260s/["\\]/\\&/g
6261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6262D["\1"]=" \3\\\\\\n"\\/p
6263t cont
6264s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6265t cont
6266d
6267:cont
6268n
6269s/.\{148\}/&'"$ac_delim"'/g
6270t clear
6271:clear
6272s/\\$//
6273t bsnlc
6274s/["\\]/\\&/g; s/^/"/; s/$/"/p
6275d
6276:bsnlc
6277s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6278b cont
6279' <confdefs.h | sed '
6280s/'"$ac_delim"'/"\\\
6281"/g' >>$CONFIG_STATUS || ac_write_fail=1
6282
6283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6284 for (key in D) D_is_set[key] = 1
6285 FS = "\a"
6286}
6287/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6288 line = \$ 0
6289 split(line, arg, " ")
6290 if (arg[1] == "#") {
6291 defundef = arg[2]
6292 mac1 = arg[3]
6293 } else {
6294 defundef = substr(arg[1], 2)
6295 mac1 = arg[2]
6296 }
6297 split(mac1, mac2, "(") #)
6298 macro = mac2[1]
6299 prefix = substr(line, 1, index(line, defundef) - 1)
6300 if (D_is_set[macro]) {
6301 # Preserve the white space surrounding the "#".
6302 print prefix "define", macro P[macro] D[macro]
6303 next
6304 } else {
6305 # Replace #undef with comments. This is necessary, for example,
6306 # in the case of _POSIX_SOURCE, which is predefined and required
6307 # on some systems where configure will not decide to define it.
6308 if (defundef == "undef") {
6309 print "/*", prefix defundef, macro, "*/"
6310 next
6311 }
6312 }
6313}
6314{ print }
6315_ACAWK
b585a9fa 6316_ACEOF
81ecdfbb 6317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5836a818
PP
6318 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6319$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6320 { (exit 1); exit 1; }; }
81ecdfbb 6321fi # test -n "$CONFIG_HEADERS"
b585a9fa 6322
81ecdfbb
RW
6323
6324eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6325shift
6326for ac_tag
6327do
6328 case $ac_tag in
6329 :[FHLC]) ac_mode=$ac_tag; continue;;
6330 esac
6331 case $ac_mode$ac_tag in
6332 :[FHL]*:*);;
5836a818
PP
6333 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6334$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6335 { (exit 1); exit 1; }; };;
81ecdfbb
RW
6336 :[FH]-) ac_tag=-:-;;
6337 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6338 esac
6339 ac_save_IFS=$IFS
6340 IFS=:
6341 set x $ac_tag
6342 IFS=$ac_save_IFS
6343 shift
6344 ac_file=$1
6345 shift
6346
6347 case $ac_mode in
6348 :L) ac_source=$1;;
6349 :[FH])
6350 ac_file_inputs=
6351 for ac_f
6352 do
6353 case $ac_f in
6354 -) ac_f="$tmp/stdin";;
6355 *) # Look for the file first in the build tree, then in the source tree
6356 # (if the path is not absolute). The absolute path cannot be DOS-style,
6357 # because $ac_f cannot contain `:'.
6358 test -f "$ac_f" ||
6359 case $ac_f in
6360 [\\/$]*) false;;
6361 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6362 esac ||
5836a818
PP
6363 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6364$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6365 { (exit 1); exit 1; }; };;
81ecdfbb
RW
6366 esac
6367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5836a818 6368 ac_file_inputs="$ac_file_inputs '$ac_f'"
81ecdfbb
RW
6369 done
6370
6371 # Let's still pretend it is `configure' which instantiates (i.e., don't
6372 # use $as_me), people would be surprised to read:
6373 # /* config.h. Generated by config.status. */
6374 configure_input='Generated from '`
6375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6376 `' by configure.'
6377 if test x"$ac_file" != x-; then
6378 configure_input="$ac_file. $configure_input"
5836a818 6379 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
81ecdfbb 6380$as_echo "$as_me: creating $ac_file" >&6;}
b585a9fa 6381 fi
81ecdfbb
RW
6382 # Neutralize special characters interpreted by sed in replacement strings.
6383 case $configure_input in #(
6384 *\&* | *\|* | *\\* )
6385 ac_sed_conf_input=`$as_echo "$configure_input" |
6386 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6387 *) ac_sed_conf_input=$configure_input;;
6388 esac
b585a9fa 6389
81ecdfbb
RW
6390 case $ac_tag in
6391 *:-:* | *:-) cat >"$tmp/stdin" \
5836a818
PP
6392 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6393$as_echo "$as_me: error: could not create $ac_file" >&2;}
6394 { (exit 1); exit 1; }; } ;;
81ecdfbb
RW
6395 esac
6396 ;;
b585a9fa
EZ
6397 esac
6398
81ecdfbb 6399 ac_dir=`$as_dirname -- "$ac_file" ||
b585a9fa
EZ
6400$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6401 X"$ac_file" : 'X\(//\)[^/]' \| \
6402 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6404$as_echo X"$ac_file" |
6405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6406 s//\1/
6407 q
6408 }
6409 /^X\(\/\/\)[^/].*/{
6410 s//\1/
6411 q
6412 }
6413 /^X\(\/\/\)$/{
6414 s//\1/
6415 q
6416 }
6417 /^X\(\/\).*/{
6418 s//\1/
6419 q
6420 }
6421 s/.*/./; q'`
5836a818
PP
6422 { as_dir="$ac_dir"
6423 case $as_dir in #(
6424 -*) as_dir=./$as_dir;;
6425 esac
6426 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6427 as_dirs=
6428 while :; do
6429 case $as_dir in #(
6430 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6431 *) as_qdir=$as_dir;;
6432 esac
6433 as_dirs="'$as_qdir' $as_dirs"
6434 as_dir=`$as_dirname -- "$as_dir" ||
6435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6436 X"$as_dir" : 'X\(//\)[^/]' \| \
6437 X"$as_dir" : 'X\(//\)$' \| \
6438 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6439$as_echo X"$as_dir" |
6440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6441 s//\1/
6442 q
6443 }
6444 /^X\(\/\/\)[^/].*/{
6445 s//\1/
6446 q
6447 }
6448 /^X\(\/\/\)$/{
6449 s//\1/
6450 q
6451 }
6452 /^X\(\/\).*/{
6453 s//\1/
6454 q
6455 }
6456 s/.*/./; q'`
6457 test -d "$as_dir" && break
6458 done
6459 test -z "$as_dirs" || eval "mkdir $as_dirs"
6460 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6461$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6462 { (exit 1); exit 1; }; }; }
b585a9fa
EZ
6463 ac_builddir=.
6464
81ecdfbb
RW
6465case "$ac_dir" in
6466.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6467*)
6468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6469 # A ".." for each directory in $ac_dir_suffix.
6470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6471 case $ac_top_builddir_sub in
6472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6474 esac ;;
6475esac
6476ac_abs_top_builddir=$ac_pwd
6477ac_abs_builddir=$ac_pwd$ac_dir_suffix
6478# for backward compatibility:
6479ac_top_builddir=$ac_top_build_prefix
b585a9fa
EZ
6480
6481case $srcdir in
81ecdfbb 6482 .) # We are building in place.
b585a9fa 6483 ac_srcdir=.
81ecdfbb
RW
6484 ac_top_srcdir=$ac_top_builddir_sub
6485 ac_abs_top_srcdir=$ac_pwd ;;
6486 [\\/]* | ?:[\\/]* ) # Absolute name.
b585a9fa 6487 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
6488 ac_top_srcdir=$srcdir
6489 ac_abs_top_srcdir=$srcdir ;;
6490 *) # Relative name.
6491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6492 ac_top_srcdir=$ac_top_build_prefix$srcdir
6493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b585a9fa 6494esac
81ecdfbb 6495ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b585a9fa 6496
b585a9fa 6497
81ecdfbb
RW
6498 case $ac_mode in
6499 :F)
6500 #
6501 # CONFIG_FILE
6502 #
b585a9fa 6503
81ecdfbb 6504_ACEOF
b585a9fa 6505
81ecdfbb
RW
6506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6507# If the template does not know about datarootdir, expand it.
6508# FIXME: This hack should be removed a few years after 2.60.
6509ac_datarootdir_hack=; ac_datarootdir_seen=
5836a818 6510
81ecdfbb
RW
6511ac_sed_dataroot='
6512/datarootdir/ {
6513 p
6514 q
6515}
6516/@datadir@/p
6517/@docdir@/p
6518/@infodir@/p
6519/@localedir@/p
5836a818
PP
6520/@mandir@/p
6521'
81ecdfbb
RW
6522case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6523*datarootdir*) ac_datarootdir_seen=yes;;
6524*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5836a818 6525 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
81ecdfbb
RW
6526$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6527_ACEOF
6528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6529 ac_datarootdir_hack='
6530 s&@datadir@&$datadir&g
6531 s&@docdir@&$docdir&g
6532 s&@infodir@&$infodir&g
6533 s&@localedir@&$localedir&g
6534 s&@mandir@&$mandir&g
5836a818 6535 s&\\\${datarootdir}&$datarootdir&g' ;;
81ecdfbb 6536esac
b585a9fa 6537_ACEOF
81ecdfbb
RW
6538
6539# Neutralize VPATH when `$srcdir' = `.'.
6540# Shell code in configure.ac might set extrasub.
6541# FIXME: do we really want to maintain this feature?
6542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6543ac_sed_extra="$ac_vpsub
b585a9fa
EZ
6544$extrasub
6545_ACEOF
81ecdfbb 6546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b585a9fa
EZ
6547:t
6548/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
6549s|@configure_input@|$ac_sed_conf_input|;t t
6550s&@top_builddir@&$ac_top_builddir_sub&;t t
6551s&@top_build_prefix@&$ac_top_build_prefix&;t t
6552s&@srcdir@&$ac_srcdir&;t t
6553s&@abs_srcdir@&$ac_abs_srcdir&;t t
6554s&@top_srcdir@&$ac_top_srcdir&;t t
6555s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6556s&@builddir@&$ac_builddir&;t t
6557s&@abs_builddir@&$ac_abs_builddir&;t t
6558s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6559$ac_datarootdir_hack
6560"
6561eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5836a818
PP
6562 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6563$as_echo "$as_me: error: could not create $ac_file" >&2;}
6564 { (exit 1); exit 1; }; }
81ecdfbb
RW
6565
6566test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6567 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5836a818 6569 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
81ecdfbb
RW
6570which seems to be undefined. Please make sure it is defined." >&5
6571$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6572which seems to be undefined. Please make sure it is defined." >&2;}
6573
6574 rm -f "$tmp/stdin"
6575 case $ac_file in
6576 -) cat "$tmp/out" && rm -f "$tmp/out";;
6577 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6578 esac \
5836a818
PP
6579 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6580$as_echo "$as_me: error: could not create $ac_file" >&2;}
6581 { (exit 1); exit 1; }; }
81ecdfbb
RW
6582 ;;
6583 :H)
6584 #
6585 # CONFIG_HEADER
6586 #
b585a9fa 6587 if test x"$ac_file" != x-; then
81ecdfbb
RW
6588 {
6589 $as_echo "/* $configure_input */" \
6590 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6591 } >"$tmp/config.h" \
5836a818
PP
6592 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6593$as_echo "$as_me: error: could not create $ac_file" >&2;}
6594 { (exit 1); exit 1; }; }
81ecdfbb 6595 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5836a818 6596 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
81ecdfbb
RW
6597$as_echo "$as_me: $ac_file is unchanged" >&6;}
6598 else
6599 rm -f "$ac_file"
6600 mv "$tmp/config.h" "$ac_file" \
5836a818
PP
6601 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6602$as_echo "$as_me: error: could not create $ac_file" >&2;}
6603 { (exit 1); exit 1; }; }
81ecdfbb 6604 fi
b585a9fa 6605 else
81ecdfbb
RW
6606 $as_echo "/* $configure_input */" \
6607 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5836a818
PP
6608 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6609$as_echo "$as_me: error: could not create -" >&2;}
6610 { (exit 1); exit 1; }; }
b585a9fa 6611 fi
81ecdfbb 6612 ;;
b585a9fa 6613
b585a9fa 6614
b585a9fa
EZ
6615 esac
6616
81ecdfbb 6617done # for ac_tag
b585a9fa 6618
b585a9fa 6619
5836a818 6620{ (exit 0); exit 0; }
b585a9fa 6621_ACEOF
5836a818 6622chmod +x $CONFIG_STATUS
b585a9fa
EZ
6623ac_clean_files=$ac_clean_files_save
6624
81ecdfbb 6625test $ac_write_fail = 0 ||
5836a818
PP
6626 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6627$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6628 { (exit 1); exit 1; }; }
81ecdfbb 6629
b585a9fa
EZ
6630
6631# configure is writing to config.log, and then calls config.status.
6632# config.status does its own redirection, appending to config.log.
6633# Unfortunately, on DOS this fails, as config.log is still kept open
6634# by configure, so config.status won't be able to write to it; its
6635# output is simply discarded. So we exec the FD to /dev/null,
6636# effectively closing config.log, so it can be properly (re)opened and
6637# appended to by config.status. When coming back to configure, we
6638# need to make the FD available again.
6639if test "$no_create" != yes; then
6640 ac_cs_success=:
6641 ac_config_status_args=
6642 test "$silent" = yes &&
6643 ac_config_status_args="$ac_config_status_args --quiet"
6644 exec 5>/dev/null
6645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6646 exec 5>>config.log
6647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6648 # would make configure fail if this is the last instruction.
5836a818 6649 $ac_cs_success || { (exit 1); exit 1; }
81ecdfbb
RW
6650fi
6651if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5836a818 6652 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
81ecdfbb 6653$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b585a9fa
EZ
6654fi
6655
This page took 0.753299 seconds and 4 git commands to generate.