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