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