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