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