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