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