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