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