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