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