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