fold-const.c (fold_binary_loc): Fix copy-and-pasto.
[gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
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 :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
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
31 fi
32
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'
50 else
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 }
79 fi
80
81
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.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 SED
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
716 ALL
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
746 AR
747 NM
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
760 LN
761 LN_S
762 AWK
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
795 CPP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
801 CXX
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
808 CC
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_sysroot
900 with_specs
901 with_pkgversion
902 with_bugurl
903 enable_languages
904 with_multilib_list
905 enable_rpath
906 with_libiconv_prefix
907 enable_sjlj_exceptions
908 enable_secureplt
909 enable_leading_mingw64_underscores
910 enable_cld
911 enable_frame_pointer
912 enable_win32_registry
913 enable_static
914 with_pic
915 enable_fast_install
916 enable_libtool_lock
917 enable_ld
918 enable_gold
919 with_plugin_ld
920 enable_gnu_indirect_function
921 enable_initfini_array
922 enable_comdat
923 enable_fix_cortex_a53_835769
924 with_glibc_version
925 enable_gnu_unique_object
926 enable_linker_build_id
927 with_long_double_128
928 with_gc
929 with_system_zlib
930 enable_maintainer_mode
931 enable_link_mutex
932 enable_version_specific_runtime_libs
933 enable_plugin
934 enable_host_shared
935 enable_libquadmath_support
936 with_linker_hash_style
937 '
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CXX
947 CXXFLAGS
948 CCC
949 CPP
950 CXXCPP
951 GMPLIBS
952 GMPINC
953 ISLLIBS
954 ISLINC
955 CLOOGLIBS
956 CLOOGINC'
957
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1086
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=\$ac_optarg ;;
1102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
1164 | --localstate | --localstat | --localsta | --localst | --locals)
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316 "with_$ac_useropt"
1317 "*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
1322
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1326
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1333
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1340
1341 -*) as_fn_error "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information."
1343 ;;
1344
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1351 esac
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1354
1355 *)
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361 ;;
1362
1363 esac
1364 done
1365
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error "missing argument to $ac_option"
1369 fi
1370
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 esac
1377 fi
1378
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1384 do
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
1393 case $ac_val in
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1396 esac
1397 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1398 done
1399
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1403 build=$build_alias
1404 host=$host_alias
1405 target=$target_alias
1406
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1414 cross_compiling=yes
1415 fi
1416 fi
1417
1418 ac_tool_prefix=
1419 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421 test "$silent" = yes && exec 6>/dev/null
1422
1423
1424 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di=`ls -di .` &&
1426 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error "working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error "pwd does not report name of working directory"
1430
1431
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)[^/].*/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\/\)$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\).*/{
1455 s//\1/
1456 q
1457 }
1458 s/.*/./; q'`
1459 srcdir=$ac_confdir
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 srcdir=..
1462 fi
1463 else
1464 ac_srcdir_defaulted=no
1465 fi
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469 fi
1470 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1473 pwd)`
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 srcdir=.
1477 fi
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1481 case $srcdir in
1482 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 esac
1484 for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 done
1490
1491 #
1492 # Report the --help message.
1493 #
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1497 cat <<_ACEOF
1498 \`configure' configures this package to adapt to many kinds of systems.
1499
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1501
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1504
1505 Defaults for the options are specified in brackets.
1506
1507 Configuration:
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 [PREFIX]
1523
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1528
1529 For better control, use the options below.
1530
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1551 _ACEOF
1552
1553 cat <<\_ACEOF
1554
1555 Program names:
1556 --program-prefix=PREFIX prepend PREFIX to installed program names
1557 --program-suffix=SUFFIX append SUFFIX to installed program names
1558 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1559
1560 System types:
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 --target=TARGET configure for building compilers for TARGET [HOST]
1564 _ACEOF
1565 fi
1566
1567 if test -n "$ac_init_help"; then
1568
1569 cat <<\_ACEOF
1570
1571 Optional Features:
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-generated-files-in-srcdir
1576 put copies of generated files in source dir intended
1577 for creating source tarballs for users without
1578 texinfo bison or flex
1579 --disable-largefile omit support for large files
1580 --disable-build-format-warnings
1581 don't use -Wformat while building GCC
1582 --enable-werror-always enable -Werror despite compiler version
1583 --enable-checking[=LIST]
1584 enable expensive run-time checks. With LIST, enable
1585 only specific categories of checks. Categories are:
1586 yes,no,all,none,release. Flags are:
1587 assert,df,fold,gc,gcac,gimple,misc,
1588 rtlflag,rtl,runtime,tree,valgrind,types
1589 --enable-coverage[=LEVEL]
1590 enable compiler's code coverage collection. Use to
1591 measure compiler performance and locate unused parts
1592 of the compiler. With LEVEL, specify optimization.
1593 Values are opt, noopt, default is noopt
1594 --enable-gather-detailed-mem-stats
1595 enable detailed memory allocation stats gathering
1596 --enable-valgrind-annotations
1597 enable valgrind runtime interaction
1598 --enable-multilib enable library support for multiple ABIs
1599 --enable-multiarch enable support for multiarch paths
1600 --enable-__cxa_atexit enable __cxa_atexit for C++
1601 --enable-decimal-float={no,yes,bid,dpd}
1602 enable decimal float extension to C. Selecting 'bid'
1603 or 'dpd' choses which decimal floating point format
1604 to use
1605 --enable-fixed-point enable fixed-point arithmetic extension to C
1606 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1607 package
1608 --enable-tls enable or disable generation of tls code overriding
1609 the assembler check for tls support
1610 --enable-objc-gc enable the use of Boehm's garbage collector with the
1611 GNU Objective-C runtime
1612 --disable-shared don't provide a shared libgcc
1613 --enable-languages=LIST specify which front-ends to build
1614 --disable-rpath do not hardcode runtime library paths
1615 --enable-sjlj-exceptions
1616 arrange to use setjmp/longjmp exception handling
1617 --enable-secureplt enable -msecure-plt by default for PowerPC
1618 --enable-leading-mingw64-underscores
1619 enable leading underscores on 64 bit mingw targets
1620 --enable-cld enable -mcld by default for 32bit x86
1621 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1622 x86
1623 --disable-win32-registry
1624 disable lookup of installation paths in the Registry
1625 on Windows hosts
1626 --enable-win32-registry enable registry lookup (default)
1627 --enable-win32-registry=KEY
1628 use KEY instead of GCC version as the last portion
1629 of the registry key
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1636 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1637 --enable-gnu-indirect-function
1638 enable the use of the @gnu_indirect_function to
1639 glibc systems
1640 --enable-initfini-array use .init_array/.fini_array sections
1641 --enable-comdat enable COMDAT group support
1642
1643 --enable-fix-cortex-a53-835769
1644 enable workaround for AArch64 Cortex-A53 erratum
1645 835769 by default
1646 --disable-fix-cortex-a53-835769
1647 disable workaround for AArch64 Cortex-A53 erratum
1648 835769 by default
1649
1650 --enable-gnu-unique-object
1651 enable the use of the @gnu_unique_object ELF
1652 extension on glibc systems
1653 --enable-linker-build-id
1654 compiler will always pass --build-id to linker
1655 --enable-maintainer-mode
1656 enable make rules and dependencies not useful (and
1657 sometimes confusing) to the casual installer
1658 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1659 thrashing on the build machine
1660 --enable-version-specific-runtime-libs
1661 specify that runtime libraries should be installed
1662 in a compiler-specific directory
1663 --enable-plugin enable plugin support
1664 --enable-host-shared build host code as shared libraries
1665 --disable-libquadmath-support
1666 disable libquadmath support for Fortran
1667
1668 Optional Packages:
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-build-libsubdir=DIR Directory where to find libraries for build system
1672 --with-local-prefix=DIR specifies directory to put local include
1673 --with-gxx-include-dir=DIR
1674 specifies directory to put g++ header files
1675 --with-cpp-install-dir=DIR
1676 install the user visible C preprocessor in DIR
1677 (relative to PREFIX) as well as PREFIX/bin
1678 --with-gnu-ld arrange to work with GNU ld
1679 --with-ld arrange to use the specified ld (full pathname)
1680 --with-demangler-in-ld try to use demangler in GNU ld
1681 --with-gnu-as arrange to work with GNU as
1682 --with-as arrange to use the specified as (full pathname)
1683 --with-stabs arrange to use stabs instead of host debug format
1684 --with-dwarf2 force the default debug format to be DWARF 2
1685 --with-native-system-header-dir=dir
1686 use dir as the directory to look for standard
1687 system header files in. Defaults to /usr/include.
1688 --with-build-sysroot=sysroot
1689 use sysroot as the system root during the build
1690 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1691 --with-specs=SPECS add SPECS to driver command-line processing
1692 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1693 --with-bugurl=URL Direct users to URL to report a bug
1694 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1695 --with-gnu-ld assume the C compiler uses GNU ld default=no
1696 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1697 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1698 --with-pic try to use only PIC/non-PIC objects [default=use
1699 both]
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701 --with-plugin-ld=[ARG] specify the plugin linker
1702 --with-glibc-version=M.N
1703 assume GCC used with glibc version M.N or later
1704 --with-long-double-128 use 128-bit long double by default
1705 --with-gc={page,zone} this option is not supported anymore. It used to
1706 choose the garbage collection mechanism to use with
1707 the compiler
1708 --with-system-zlib use installed libz
1709 --with-linker-hash-style={sysv,gnu,both}
1710 specify the linker hash style
1711
1712 Some influential environment variables:
1713 CC C compiler command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1716 nonstandard directory <lib dir>
1717 LIBS libraries to pass to the linker, e.g. -l<library>
1718 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1719 you have headers in a nonstandard directory <include dir>
1720 CXX C++ compiler command
1721 CXXFLAGS C++ compiler flags
1722 CPP C preprocessor
1723 CXXCPP C++ preprocessor
1724 GMPLIBS How to link GMP
1725 GMPINC How to find GMP include files
1726 ISLLIBS How to link ISL
1727 ISLINC How to find ISL include files
1728 CLOOGLIBS How to link CLOOG
1729 CLOOGINC How to find CLOOG include files
1730
1731 Use these variables to override the choices made by `configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1733
1734 Report bugs to the package provider.
1735 _ACEOF
1736 ac_status=$?
1737 fi
1738
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744 continue
1745 ac_builddir=.
1746
1747 case "$ac_dir" in
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *)
1750 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756 esac ;;
1757 esac
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1762
1763 case $srcdir in
1764 .) # We are building in place.
1765 ac_srcdir=.
1766 ac_top_srcdir=$ac_top_builddir_sub
1767 ac_abs_top_srcdir=$ac_pwd ;;
1768 [\\/]* | ?:[\\/]* ) # Absolute name.
1769 ac_srcdir=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir=$srcdir
1771 ac_abs_top_srcdir=$srcdir ;;
1772 *) # Relative name.
1773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776 esac
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1778
1779 cd "$ac_dir" || { ac_status=$?; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1787 else
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789 fi || ac_status=$?
1790 cd "$ac_pwd" || { ac_status=$?; break; }
1791 done
1792 fi
1793
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1796 cat <<\_ACEOF
1797 configure
1798 generated by GNU Autoconf 2.64
1799
1800 Copyright (C) 2009 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1803 _ACEOF
1804 exit
1805 fi
1806
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1810
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_c_try_compile
1848
1849 # ac_fn_cxx_try_compile LINENO
1850 # ----------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_compile ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_cxx_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.$ac_objext; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1884
1885 } # ac_fn_cxx_try_compile
1886
1887 # ac_fn_c_try_cpp LINENO
1888 # ----------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_cpp ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_cpp conftest.$ac_ext"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } >/dev/null && {
1909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1921
1922 } # ac_fn_c_try_cpp
1923
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1928 # accordingly.
1929 ac_fn_c_check_header_mongrel ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 else
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1952 else
1953 ac_header_compiler=no
1954 fi
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1958
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1968 else
1969 ac_header_preproc=no
1970 fi
1971 rm -f conftest.err conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1974
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1977 yes:no: )
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982 ;;
1983 no:yes:* )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1994 ;;
1995 esac
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 eval "$3=\$ac_header_compiler"
2002 fi
2003 eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 fi
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009 } # ac_fn_c_check_header_mongrel
2010
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2015 ac_fn_c_try_run ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>&5
2026 ac_status=$?
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029 { { case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_try") 2>&5
2036 ac_status=$?
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; }; }; then :
2039 ac_retval=0
2040 else
2041 $as_echo "$as_me: program exited with status $ac_status" >&5
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045 ac_retval=$ac_status
2046 fi
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 return $ac_retval
2050
2051 } # ac_fn_c_try_run
2052
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 #include <$2>
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$3=yes"
2072 else
2073 eval "$3=no"
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
2082 } # ac_fn_c_check_header_compile
2083
2084 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085 # --------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2088 # computed
2089 ac_fn_c_compute_int ()
2090 {
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 int
2098 main ()
2099 {
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2101 test_array [0] = 0
2102
2103 ;
2104 return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_lo=0 ac_mid=0
2109 while :; do
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 $4
2113 int
2114 main ()
2115 {
2116 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2117 test_array [0] = 0
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 ac_hi=$ac_mid; break
2125 else
2126 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2127 if test $ac_lo -le $ac_mid; then
2128 ac_lo= ac_hi=
2129 break
2130 fi
2131 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 done
2135 else
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $4
2139 int
2140 main ()
2141 {
2142 static int test_array [1 - 2 * !(($2) < 0)];
2143 test_array [0] = 0
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=-1 ac_mid=-1
2151 while :; do
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2159 test_array [0] = 0
2160
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=$ac_mid; break
2167 else
2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169 if test $ac_mid -le $ac_hi; then
2170 ac_lo= ac_hi=
2171 break
2172 fi
2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 else
2178 ac_lo= ac_hi=
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 # Binary search between lo and hi bounds.
2184 while test "x$ac_lo" != "x$ac_hi"; do
2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 $4
2189 int
2190 main ()
2191 {
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2193 test_array [0] = 0
2194
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 ac_hi=$ac_mid
2201 else
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 done
2206 case $ac_lo in #((
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2208 '') ac_retval=1 ;;
2209 esac
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 $4
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2216 #include <stdio.h>
2217 #include <stdlib.h>
2218 int
2219 main ()
2220 {
2221
2222 FILE *f = fopen ("conftest.val", "w");
2223 if (! f)
2224 return 1;
2225 if (($2) < 0)
2226 {
2227 long int i = longval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%ld", i);
2231 }
2232 else
2233 {
2234 unsigned long int i = ulongval ();
2235 if (i != ($2))
2236 return 1;
2237 fprintf (f, "%lu", i);
2238 }
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2242
2243 ;
2244 return 0;
2245 }
2246 _ACEOF
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2249 else
2250 ac_retval=1
2251 fi
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2254 rm -f conftest.val
2255
2256 fi
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 return $ac_retval
2259
2260 } # ac_fn_c_compute_int
2261
2262 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2263 # -------------------------------------------
2264 # Tests whether TYPE exists after having included INCLUDES, setting cache
2265 # variable VAR accordingly.
2266 ac_fn_c_check_type ()
2267 {
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 eval "$3=no"
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 $4
2278 int
2279 main ()
2280 {
2281 if (sizeof ($2))
2282 return 0;
2283 ;
2284 return 0;
2285 }
2286 _ACEOF
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 $4
2291 int
2292 main ()
2293 {
2294 if (sizeof (($2)))
2295 return 0;
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301
2302 else
2303 eval "$3=yes"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 fi
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313
2314 } # ac_fn_c_check_type
2315
2316 # ac_fn_c_find_intX_t LINENO BITS VAR
2317 # -----------------------------------
2318 # Finds a signed integer type with width BITS, setting cache variable VAR
2319 # accordingly.
2320 ac_fn_c_find_intX_t ()
2321 {
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2324 $as_echo_n "checking for int$2_t... " >&6; }
2325 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 eval "$3=no"
2329 for ac_type in int$2_t 'int' 'long int' \
2330 'long long int' 'short int' 'signed char'; do
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 $ac_includes_default
2334 int
2335 main ()
2336 {
2337 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2338 test_array [0] = 0
2339
2340 ;
2341 return 0;
2342 }
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347 $ac_includes_default
2348 int
2349 main ()
2350 {
2351 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2352 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2353 test_array [0] = 0
2354
2355 ;
2356 return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360
2361 else
2362 case $ac_type in #(
2363 int$2_t) :
2364 eval "$3=yes" ;; #(
2365 *) :
2366 eval "$3=\$ac_type" ;;
2367 esac
2368 fi
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 eval as_val=\$$3
2373 if test "x$as_val" = x""no; then :
2374
2375 else
2376 break
2377 fi
2378 done
2379 fi
2380 eval ac_res=\$$3
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384
2385 } # ac_fn_c_find_intX_t
2386
2387 # ac_fn_c_try_link LINENO
2388 # -----------------------
2389 # Try to link conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_link ()
2391 {
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { { ac_try="$ac_link"
2395 case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_link") 2>conftest.err
2402 ac_status=$?
2403 if test -s conftest.err; then
2404 grep -v '^ *+' conftest.err >conftest.er1
2405 cat conftest.er1 >&5
2406 mv -f conftest.er1 conftest.err
2407 fi
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest$ac_exeext && {
2413 test "$cross_compiling" = yes ||
2414 $as_test_x conftest$ac_exeext
2415 }; then :
2416 ac_retval=0
2417 else
2418 $as_echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421 ac_retval=1
2422 fi
2423 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2424 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2425 # interfere with the next link command; also delete a directory that is
2426 # left behind by Apple's compiler. We do this before executing the actions.
2427 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429 return $ac_retval
2430
2431 } # ac_fn_c_try_link
2432
2433 # ac_fn_c_find_uintX_t LINENO BITS VAR
2434 # ------------------------------------
2435 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2436 # accordingly.
2437 ac_fn_c_find_uintX_t ()
2438 {
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2441 $as_echo_n "checking for uint$2_t... " >&6; }
2442 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 eval "$3=no"
2446 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2447 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2450 $ac_includes_default
2451 int
2452 main ()
2453 {
2454 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2455 test_array [0] = 0
2456
2457 ;
2458 return 0;
2459 }
2460 _ACEOF
2461 if ac_fn_c_try_compile "$LINENO"; then :
2462 case $ac_type in #(
2463 uint$2_t) :
2464 eval "$3=yes" ;; #(
2465 *) :
2466 eval "$3=\$ac_type" ;;
2467 esac
2468 fi
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 eval as_val=\$$3
2471 if test "x$as_val" = x""no; then :
2472
2473 else
2474 break
2475 fi
2476 done
2477 fi
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2482
2483 } # ac_fn_c_find_uintX_t
2484
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc ()
2489 {
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 #include <$2>
2499 _ACEOF
2500 if ac_fn_c_try_cpp "$LINENO"; then :
2501 eval "$3=yes"
2502 else
2503 eval "$3=no"
2504 fi
2505 rm -f conftest.err conftest.$ac_ext
2506 fi
2507 eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512 } # ac_fn_c_check_header_preproc
2513
2514 # ac_fn_cxx_try_cpp LINENO
2515 # ------------------------
2516 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517 ac_fn_cxx_try_cpp ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 if { { ac_try="$ac_cpp conftest.$ac_ext"
2521 case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524 esac
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2528 ac_status=$?
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2533 fi
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2538 }; then :
2539 ac_retval=0
2540 else
2541 $as_echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545 fi
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 return $ac_retval
2548
2549 } # ac_fn_cxx_try_cpp
2550
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2555 {
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2570 fi
2571 rm -f conftest.err conftest.$ac_ext
2572 fi
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577
2578 } # ac_fn_cxx_check_header_preproc
2579
2580 # ac_fn_c_check_func LINENO FUNC VAR
2581 # ----------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_c_check_func ()
2584 {
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2596
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2601
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2607
2608 #undef $2
2609
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2623
2624 int
2625 main ()
2626 {
2627 return $2 ();
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632 if ac_fn_c_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2639 fi
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644
2645 } # ac_fn_c_check_func
2646
2647 # ac_fn_cxx_try_link LINENO
2648 # -------------------------
2649 # Try to link conftest.$ac_ext, and return whether this succeeded.
2650 ac_fn_cxx_try_link ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 rm -f conftest.$ac_objext conftest$ac_exeext
2654 if { { ac_try="$ac_link"
2655 case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658 esac
2659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2660 $as_echo "$ac_try_echo"; } >&5
2661 (eval "$ac_link") 2>conftest.err
2662 ac_status=$?
2663 if test -s conftest.err; then
2664 grep -v '^ *+' conftest.err >conftest.er1
2665 cat conftest.er1 >&5
2666 mv -f conftest.er1 conftest.err
2667 fi
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; } && {
2670 test -z "$ac_cxx_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest$ac_exeext && {
2673 test "$cross_compiling" = yes ||
2674 $as_test_x conftest$ac_exeext
2675 }; then :
2676 ac_retval=0
2677 else
2678 $as_echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 ac_retval=1
2682 fi
2683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2685 # interfere with the next link command; also delete a directory that is
2686 # left behind by Apple's compiler. We do this before executing the actions.
2687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 return $ac_retval
2690
2691 } # ac_fn_cxx_try_link
2692 cat >config.log <<_ACEOF
2693 This file contains any messages produced by compilers while
2694 running configure, to aid debugging if configure makes a mistake.
2695
2696 It was created by $as_me, which was
2697 generated by GNU Autoconf 2.64. Invocation command line was
2698
2699 $ $0 $@
2700
2701 _ACEOF
2702 exec 5>>config.log
2703 {
2704 cat <<_ASUNAME
2705 ## --------- ##
2706 ## Platform. ##
2707 ## --------- ##
2708
2709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2714
2715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2716 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2717
2718 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2719 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2721 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2722 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2723 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2724 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2725
2726 _ASUNAME
2727
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 $as_echo "PATH: $as_dir"
2734 done
2735 IFS=$as_save_IFS
2736
2737 } >&5
2738
2739 cat >&5 <<_ACEOF
2740
2741
2742 ## ----------- ##
2743 ## Core tests. ##
2744 ## ----------- ##
2745
2746 _ACEOF
2747
2748
2749 # Keep a trace of the command line.
2750 # Strip out --no-create and --no-recursion so they do not pile up.
2751 # Strip out --silent because we don't want to record it for future runs.
2752 # Also quote any args containing shell meta-characters.
2753 # Make two passes to allow for proper duplicate-argument suppression.
2754 ac_configure_args=
2755 ac_configure_args0=
2756 ac_configure_args1=
2757 ac_must_keep_next=false
2758 for ac_pass in 1 2
2759 do
2760 for ac_arg
2761 do
2762 case $ac_arg in
2763 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2764 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2765 | -silent | --silent | --silen | --sile | --sil)
2766 continue ;;
2767 *\'*)
2768 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2769 esac
2770 case $ac_pass in
2771 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2772 2)
2773 as_fn_append ac_configure_args1 " '$ac_arg'"
2774 if test $ac_must_keep_next = true; then
2775 ac_must_keep_next=false # Got value, back to normal.
2776 else
2777 case $ac_arg in
2778 *=* | --config-cache | -C | -disable-* | --disable-* \
2779 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2780 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2781 | -with-* | --with-* | -without-* | --without-* | --x)
2782 case "$ac_configure_args0 " in
2783 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2784 esac
2785 ;;
2786 -* ) ac_must_keep_next=true ;;
2787 esac
2788 fi
2789 as_fn_append ac_configure_args " '$ac_arg'"
2790 ;;
2791 esac
2792 done
2793 done
2794 { ac_configure_args0=; unset ac_configure_args0;}
2795 { ac_configure_args1=; unset ac_configure_args1;}
2796
2797 # When interrupted or exit'd, cleanup temporary files, and complete
2798 # config.log. We remove comments because anyway the quotes in there
2799 # would cause problems or look ugly.
2800 # WARNING: Use '\'' to represent an apostrophe within the trap.
2801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2802 trap 'exit_status=$?
2803 # Save into config.log some information that might help in debugging.
2804 {
2805 echo
2806
2807 cat <<\_ASBOX
2808 ## ---------------- ##
2809 ## Cache variables. ##
2810 ## ---------------- ##
2811 _ASBOX
2812 echo
2813 # The following way of writing the cache mishandles newlines in values,
2814 (
2815 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2816 eval ac_val=\$$ac_var
2817 case $ac_val in #(
2818 *${as_nl}*)
2819 case $ac_var in #(
2820 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2821 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2822 esac
2823 case $ac_var in #(
2824 _ | IFS | as_nl) ;; #(
2825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2826 *) { eval $ac_var=; unset $ac_var;} ;;
2827 esac ;;
2828 esac
2829 done
2830 (set) 2>&1 |
2831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2832 *${as_nl}ac_space=\ *)
2833 sed -n \
2834 "s/'\''/'\''\\\\'\'''\''/g;
2835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2836 ;; #(
2837 *)
2838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2839 ;;
2840 esac |
2841 sort
2842 )
2843 echo
2844
2845 cat <<\_ASBOX
2846 ## ----------------- ##
2847 ## Output variables. ##
2848 ## ----------------- ##
2849 _ASBOX
2850 echo
2851 for ac_var in $ac_subst_vars
2852 do
2853 eval ac_val=\$$ac_var
2854 case $ac_val in
2855 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2856 esac
2857 $as_echo "$ac_var='\''$ac_val'\''"
2858 done | sort
2859 echo
2860
2861 if test -n "$ac_subst_files"; then
2862 cat <<\_ASBOX
2863 ## ------------------- ##
2864 ## File substitutions. ##
2865 ## ------------------- ##
2866 _ASBOX
2867 echo
2868 for ac_var in $ac_subst_files
2869 do
2870 eval ac_val=\$$ac_var
2871 case $ac_val in
2872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2873 esac
2874 $as_echo "$ac_var='\''$ac_val'\''"
2875 done | sort
2876 echo
2877 fi
2878
2879 if test -s confdefs.h; then
2880 cat <<\_ASBOX
2881 ## ----------- ##
2882 ## confdefs.h. ##
2883 ## ----------- ##
2884 _ASBOX
2885 echo
2886 cat confdefs.h
2887 echo
2888 fi
2889 test "$ac_signal" != 0 &&
2890 $as_echo "$as_me: caught signal $ac_signal"
2891 $as_echo "$as_me: exit $exit_status"
2892 } >&5
2893 rm -f core *.core core.conftest.* &&
2894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2895 exit $exit_status
2896 ' 0
2897 for ac_signal in 1 2 13 15; do
2898 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2899 done
2900 ac_signal=0
2901
2902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2903 rm -f -r conftest* confdefs.h
2904
2905 $as_echo "/* confdefs.h */" > confdefs.h
2906
2907 # Predefined preprocessor variables.
2908
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_NAME "$PACKAGE_NAME"
2911 _ACEOF
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2915 _ACEOF
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2919 _ACEOF
2920
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_STRING "$PACKAGE_STRING"
2923 _ACEOF
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2927 _ACEOF
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_URL "$PACKAGE_URL"
2931 _ACEOF
2932
2933
2934 # Let the site file select an alternate cache file if it wants to.
2935 # Prefer an explicitly selected file to automatically selected ones.
2936 ac_site_file1=NONE
2937 ac_site_file2=NONE
2938 if test -n "$CONFIG_SITE"; then
2939 ac_site_file1=$CONFIG_SITE
2940 elif test "x$prefix" != xNONE; then
2941 ac_site_file1=$prefix/share/config.site
2942 ac_site_file2=$prefix/etc/config.site
2943 else
2944 ac_site_file1=$ac_default_prefix/share/config.site
2945 ac_site_file2=$ac_default_prefix/etc/config.site
2946 fi
2947 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2948 do
2949 test "x$ac_site_file" = xNONE && continue
2950 if test -r "$ac_site_file"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2952 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2953 sed 's/^/| /' "$ac_site_file" >&5
2954 . "$ac_site_file"
2955 fi
2956 done
2957
2958 if test -r "$cache_file"; then
2959 # Some versions of bash will fail to source /dev/null (special
2960 # files actually), so we avoid doing that.
2961 if test -f "$cache_file"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2963 $as_echo "$as_me: loading cache $cache_file" >&6;}
2964 case $cache_file in
2965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2966 *) . "./$cache_file";;
2967 esac
2968 fi
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2971 $as_echo "$as_me: creating cache $cache_file" >&6;}
2972 >$cache_file
2973 fi
2974
2975 # Check that the precious variables saved in the cache have kept the same
2976 # value.
2977 ac_cache_corrupted=false
2978 for ac_var in $ac_precious_vars; do
2979 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2980 eval ac_new_set=\$ac_env_${ac_var}_set
2981 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2982 eval ac_new_val=\$ac_env_${ac_var}_value
2983 case $ac_old_set,$ac_new_set in
2984 set,)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2987 ac_cache_corrupted=: ;;
2988 ,set)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2992 ,);;
2993 *)
2994 if test "x$ac_old_val" != "x$ac_new_val"; then
2995 # differences in whitespace do not lead to failure.
2996 ac_old_val_w=`echo x $ac_old_val`
2997 ac_new_val_w=`echo x $ac_new_val`
2998 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3000 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3001 ac_cache_corrupted=:
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3004 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3005 eval $ac_var=\$ac_old_val
3006 fi
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3008 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3010 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3011 fi;;
3012 esac
3013 # Pass precious variables to config.status.
3014 if test "$ac_new_set" = set; then
3015 case $ac_new_val in
3016 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3017 *) ac_arg=$ac_var=$ac_new_val ;;
3018 esac
3019 case " $ac_configure_args " in
3020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3021 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3022 esac
3023 fi
3024 done
3025 if $ac_cache_corrupted; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3029 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3030 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3031 fi
3032 ## -------------------- ##
3033 ## Main body of script. ##
3034 ## -------------------- ##
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
3042
3043
3044
3045
3046
3047 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3048
3049
3050 gcc_version=`cat $srcdir/BASE-VER`
3051
3052 # Determine the host, build, and target systems
3053 ac_aux_dir=
3054 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3055 for ac_t in install-sh install.sh shtool; do
3056 if test -f "$ac_dir/$ac_t"; then
3057 ac_aux_dir=$ac_dir
3058 ac_install_sh="$ac_aux_dir/$ac_t -c"
3059 break 2
3060 fi
3061 done
3062 done
3063 if test -z "$ac_aux_dir"; then
3064 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3065 fi
3066
3067 # These three variables are undocumented and unsupported,
3068 # and are intended to be withdrawn in a future Autoconf release.
3069 # They can cause serious problems if a builder's source tree is in a directory
3070 # whose full name contains unusual characters.
3071 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3072 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3073 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3074
3075
3076 # Make sure we can run config.sub.
3077 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3078 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3079
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3081 $as_echo_n "checking build system type... " >&6; }
3082 if test "${ac_cv_build+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 ac_build_alias=$build_alias
3086 test "x$ac_build_alias" = x &&
3087 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3088 test "x$ac_build_alias" = x &&
3089 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3090 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3091 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3092
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3095 $as_echo "$ac_cv_build" >&6; }
3096 case $ac_cv_build in
3097 *-*-*) ;;
3098 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3099 esac
3100 build=$ac_cv_build
3101 ac_save_IFS=$IFS; IFS='-'
3102 set x $ac_cv_build
3103 shift
3104 build_cpu=$1
3105 build_vendor=$2
3106 shift; shift
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3109 build_os=$*
3110 IFS=$ac_save_IFS
3111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3112
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3115 $as_echo_n "checking host system type... " >&6; }
3116 if test "${ac_cv_host+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test "x$host_alias" = x; then
3120 ac_cv_host=$ac_cv_build
3121 else
3122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3124 fi
3125
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3128 $as_echo "$ac_cv_host" >&6; }
3129 case $ac_cv_host in
3130 *-*-*) ;;
3131 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3132 esac
3133 host=$ac_cv_host
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_host
3136 shift
3137 host_cpu=$1
3138 host_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 host_os=$*
3143 IFS=$ac_save_IFS
3144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3145
3146
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3148 $as_echo_n "checking target system type... " >&6; }
3149 if test "${ac_cv_target+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test "x$target_alias" = x; then
3153 ac_cv_target=$ac_cv_host
3154 else
3155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3156 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3157 fi
3158
3159 fi
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3161 $as_echo "$ac_cv_target" >&6; }
3162 case $ac_cv_target in
3163 *-*-*) ;;
3164 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3165 esac
3166 target=$ac_cv_target
3167 ac_save_IFS=$IFS; IFS='-'
3168 set x $ac_cv_target
3169 shift
3170 target_cpu=$1
3171 target_vendor=$2
3172 shift; shift
3173 # Remember, the first character of IFS is used to create $*,
3174 # except with old shells:
3175 target_os=$*
3176 IFS=$ac_save_IFS
3177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3178
3179
3180 # The aliases save the names the user supplied, while $host etc.
3181 # will get canonicalized.
3182 test -n "$target_alias" &&
3183 test "$program_prefix$program_suffix$program_transform_name" = \
3184 NONENONEs,x,x, &&
3185 program_prefix=${target_alias}-
3186
3187 # Determine the noncanonical target name, for directory use.
3188 case ${build_alias} in
3189 "") build_noncanonical=${build} ;;
3190 *) build_noncanonical=${build_alias} ;;
3191 esac
3192
3193 case ${host_alias} in
3194 "") host_noncanonical=${build_noncanonical} ;;
3195 *) host_noncanonical=${host_alias} ;;
3196 esac
3197
3198 case ${target_alias} in
3199 "") target_noncanonical=${host_noncanonical} ;;
3200 *) target_noncanonical=${target_alias} ;;
3201 esac
3202
3203
3204
3205
3206 # Determine the target- and build-specific subdirectories
3207
3208 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3209 # have matching libraries, they should use host libraries: Makefile.tpl
3210 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3211 # However, they still use the build modules, because the corresponding
3212 # host modules (e.g. bison) are only built for the host when bootstrap
3213 # finishes. So:
3214 # - build_subdir is where we find build modules, and never changes.
3215 # - build_libsubdir is where we find build libraries, and can be overridden.
3216
3217 # Prefix 'build-' so this never conflicts with target_subdir.
3218 build_subdir="build-${build_noncanonical}"
3219
3220 # Check whether --with-build-libsubdir was given.
3221 if test "${with_build_libsubdir+set}" = set; then :
3222 withval=$with_build_libsubdir; build_libsubdir="$withval"
3223 else
3224 build_libsubdir="$build_subdir"
3225 fi
3226
3227 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3228 if ( test $srcdir = . && test -d gcc ) \
3229 || test -d $srcdir/../host-${host_noncanonical}; then
3230 host_subdir="host-${host_noncanonical}"
3231 else
3232 host_subdir=.
3233 fi
3234 # No prefix.
3235 target_subdir=${target_noncanonical}
3236
3237
3238 # Set program_transform_name
3239 test "$program_prefix" != NONE &&
3240 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3241 # Use a double $ so make ignores it.
3242 test "$program_suffix" != NONE &&
3243 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3244 # Double any \ or $.
3245 # By default was `s,x,x', remove it if useless.
3246 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3247 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3248
3249
3250 # Check for bogus environment variables.
3251 # Test if LIBRARY_PATH contains the notation for the current directory
3252 # since this would lead to problems installing/building glibc.
3253 # LIBRARY_PATH contains the current directory if one of the following
3254 # is true:
3255 # - one of the terminals (":" and ";") is the first or last sign
3256 # - two terminals occur directly after each other
3257 # - the path contains an element with a dot in it
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3259 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3260 case ${LIBRARY_PATH} in
3261 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3262 library_path_setting="contains current directory"
3263 ;;
3264 *)
3265 library_path_setting="ok"
3266 ;;
3267 esac
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3269 $as_echo "$library_path_setting" >&6; }
3270 if test "$library_path_setting" != "ok"; then
3271 as_fn_error "
3272 *** LIBRARY_PATH shouldn't contain the current directory when
3273 *** building gcc. Please change the environment variable
3274 *** and run configure again." "$LINENO" 5
3275 fi
3276
3277 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3278 # since this would lead to problems installing/building glibc.
3279 # GCC_EXEC_PREFIX contains the current directory if one of the following
3280 # is true:
3281 # - one of the terminals (":" and ";") is the first or last sign
3282 # - two terminals occur directly after each other
3283 # - the path contains an element with a dot in it
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3285 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3286 case ${GCC_EXEC_PREFIX} in
3287 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3288 gcc_exec_prefix_setting="contains current directory"
3289 ;;
3290 *)
3291 gcc_exec_prefix_setting="ok"
3292 ;;
3293 esac
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3295 $as_echo "$gcc_exec_prefix_setting" >&6; }
3296 if test "$gcc_exec_prefix_setting" != "ok"; then
3297 as_fn_error "
3298 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3299 *** building gcc. Please change the environment variable
3300 *** and run configure again." "$LINENO" 5
3301 fi
3302
3303 # -----------
3304 # Directories
3305 # -----------
3306
3307 # Specify the local prefix
3308 local_prefix=
3309
3310 # Check whether --with-local-prefix was given.
3311 if test "${with_local_prefix+set}" = set; then :
3312 withval=$with_local_prefix; case "${withval}" in
3313 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3314 no) ;;
3315 *) local_prefix=$with_local_prefix ;;
3316 esac
3317 fi
3318
3319
3320 # Default local prefix if it is empty
3321 if test x$local_prefix = x; then
3322 local_prefix=/usr/local
3323 fi
3324
3325 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3326 # passed in by the toplevel make and thus we'd get different behavior
3327 # depending on where we built the sources.
3328 gcc_gxx_include_dir=
3329 # Specify the g++ header file directory
3330
3331 # Check whether --with-gxx-include-dir was given.
3332 if test "${with_gxx_include_dir+set}" = set; then :
3333 withval=$with_gxx_include_dir; case "${withval}" in
3334 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3335 no) ;;
3336 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3337 esac
3338 fi
3339
3340
3341 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3342 if test x${gcc_gxx_include_dir} = x; then
3343 if test x${enable_version_specific_runtime_libs} = xyes; then
3344 gcc_gxx_include_dir='${libsubdir}/include/c++'
3345 else
3346 libstdcxx_incdir='include/c++/$(version)'
3347 if test x$host != x$target; then
3348 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3349 fi
3350 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3351 fi
3352 fi
3353
3354 gcc_gxx_include_dir_add_sysroot=0
3355 if test "${with_sysroot+set}" = set; then
3356 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3357 if test "${gcc_gxx_without_sysroot}"; then
3358 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3359 gcc_gxx_include_dir_add_sysroot=1
3360 fi
3361 fi
3362
3363
3364 # Check whether --with-cpp_install_dir was given.
3365 if test "${with_cpp_install_dir+set}" = set; then :
3366 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3367 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3368 elif test x$withval != xno; then
3369 cpp_install_dir=$withval
3370 fi
3371 fi
3372
3373
3374 # We would like to our source tree to be readonly. However when releases or
3375 # pre-releases are generated, the flex/bison generated files as well as the
3376 # various formats of manuals need to be included along with the rest of the
3377 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3378 # just that.
3379
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3381 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3382 # Check whether --enable-generated-files-in-srcdir was given.
3383 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3384 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3385 else
3386 generated_files_in_srcdir=no
3387 fi
3388
3389
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3391 $as_echo "$generated_files_in_srcdir" >&6; }
3392
3393 if test "$generated_files_in_srcdir" = "yes"; then
3394 GENINSRC=''
3395 else
3396 GENINSRC='#'
3397 fi
3398
3399
3400 # -------------------
3401 # Find default linker
3402 # -------------------
3403
3404 # With GNU ld
3405
3406 # Check whether --with-gnu-ld was given.
3407 if test "${with_gnu_ld+set}" = set; then :
3408 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3409 else
3410 gnu_ld_flag=no
3411 fi
3412
3413
3414 # With pre-defined ld
3415
3416 # Check whether --with-ld was given.
3417 if test "${with_ld+set}" = set; then :
3418 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3419 fi
3420
3421 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3422 if test ! -x "$DEFAULT_LINKER"; then
3423 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3424 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3425 gnu_ld_flag=yes
3426 fi
3427
3428 cat >>confdefs.h <<_ACEOF
3429 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3430 _ACEOF
3431
3432 fi
3433
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3435 $as_echo_n "checking whether a default linker was specified... " >&6; }
3436 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3437 if test x"$gnu_ld_flag" = x"no"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3439 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3442 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3443 fi
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449 # With demangler in GNU ld
3450
3451 # Check whether --with-demangler-in-ld was given.
3452 if test "${with_demangler_in_ld+set}" = set; then :
3453 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3454 else
3455 demangler_in_ld=yes
3456 fi
3457
3458
3459 # ----------------------
3460 # Find default assembler
3461 # ----------------------
3462
3463 # With GNU as
3464
3465 # Check whether --with-gnu-as was given.
3466 if test "${with_gnu_as+set}" = set; then :
3467 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3468 else
3469 gas_flag=no
3470 fi
3471
3472
3473
3474 # Check whether --with-as was given.
3475 if test "${with_as+set}" = set; then :
3476 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3477 fi
3478
3479 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3480 if test ! -x "$DEFAULT_ASSEMBLER"; then
3481 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3482 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3483 gas_flag=yes
3484 fi
3485
3486 cat >>confdefs.h <<_ACEOF
3487 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3488 _ACEOF
3489
3490 fi
3491
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3493 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3494 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3495 if test x"$gas_flag" = x"no"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3497 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3500 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3501 fi
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507 # ---------------
3508 # Find C compiler
3509 # ---------------
3510
3511 # If a non-executable a.out is present (e.g. created by GNU as above even if
3512 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3513 # file, even when creating an executable, so an execution test fails.
3514 # Remove possible default executable files to avoid this.
3515 #
3516 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3517 # Autoconf includes it.
3518 rm -f a.out a.exe b.out
3519
3520 # Find the native compiler
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 if test -n "$ac_tool_prefix"; then
3527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_CC+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3558 else
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564 fi
3565 if test -z "$ac_cv_prog_CC"; then
3566 ac_ct_CC=$CC
3567 # Extract the first word of "gcc", so it can be a program name with args.
3568 set dummy gcc; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_ac_ct_CC="gcc"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595 if test -n "$ac_ct_CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597 $as_echo "$ac_ct_CC" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603 if test "x$ac_ct_CC" = x; then
3604 CC=""
3605 else
3606 case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612 CC=$ac_ct_CC
3613 fi
3614 else
3615 CC="$ac_cv_prog_CC"
3616 fi
3617
3618 if test -z "$CC"; then
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3621 set dummy ${ac_tool_prefix}cc; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_CC="${ac_tool_prefix}cc"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 fi
3658 fi
3659 if test -z "$CC"; then
3660 # Extract the first word of "cc", so it can be a program name with args.
3661 set dummy cc; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_CC+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669 else
3670 ac_prog_rejected=no
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3679 ac_prog_rejected=yes
3680 continue
3681 fi
3682 ac_cv_prog_CC="cc"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 if test $ac_prog_rejected = yes; then
3691 # We found a bogon in the path, so make sure we never use it.
3692 set dummy $ac_cv_prog_CC
3693 shift
3694 if test $# != 0; then
3695 # We chose a different compiler from the bogus one.
3696 # However, it has the same basename, so the bogon will be chosen
3697 # first if we set CC to just the basename; use the full file name.
3698 shift
3699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3700 fi
3701 fi
3702 fi
3703 fi
3704 CC=$ac_cv_prog_CC
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3712
3713
3714 fi
3715 if test -z "$CC"; then
3716 if test -n "$ac_tool_prefix"; then
3717 for ac_prog in cl.exe
3718 do
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740 done
3741 done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 CC=$ac_cv_prog_CC
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756 test -n "$CC" && break
3757 done
3758 fi
3759 if test -z "$CC"; then
3760 ac_ct_CC=$CC
3761 for ac_prog in cl.exe
3762 do
3763 # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy $ac_prog; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780 ac_cv_prog_ac_ct_CC="$ac_prog"
3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 $as_echo "$ac_ct_CC" >&6; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 fi
3798
3799
3800 test -n "$ac_ct_CC" && break
3801 done
3802
3803 if test "x$ac_ct_CC" = x; then
3804 CC=""
3805 else
3806 case $cross_compiling:$ac_tool_warned in
3807 yes:)
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810 ac_tool_warned=yes ;;
3811 esac
3812 CC=$ac_ct_CC
3813 fi
3814 fi
3815
3816 fi
3817
3818
3819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error "no acceptable C compiler found in \$PATH
3822 See \`config.log' for more details." "$LINENO" 5; }
3823
3824 # Provide some information about the compiler.
3825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3826 set X $ac_compile
3827 ac_compiler=$2
3828 for ac_option in --version -v -V -qversion; do
3829 { { ac_try="$ac_compiler $ac_option >&5"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3837 ac_status=$?
3838 if test -s conftest.err; then
3839 sed '10a\
3840 ... rest of stderr output deleted ...
3841 10q' conftest.err >conftest.er1
3842 cat conftest.er1 >&5
3843 rm -f conftest.er1 conftest.err
3844 fi
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }
3847 done
3848
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851
3852 int
3853 main ()
3854 {
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 ac_clean_files_save=$ac_clean_files
3861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3862 # Try to create an executable without -o first, disregard a.out.
3863 # It will help us diagnose broken compilers, and finding out an intuition
3864 # of exeext.
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3866 $as_echo_n "checking for C compiler default output file name... " >&6; }
3867 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3868
3869 # The possible output files:
3870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3871
3872 ac_rmfiles=
3873 for ac_file in $ac_files
3874 do
3875 case $ac_file in
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3878 esac
3879 done
3880 rm -f $ac_rmfiles
3881
3882 if { { ac_try="$ac_link_default"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_link_default") 2>&5
3890 ac_status=$?
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3896 # so that the user can short-circuit this test for compilers unknown to
3897 # Autoconf.
3898 for ac_file in $ac_files ''
3899 do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3903 ;;
3904 [ab].out )
3905 # We found the default executable, but exeext='' is most
3906 # certainly right.
3907 break;;
3908 *.* )
3909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3910 then :; else
3911 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912 fi
3913 # We set ac_cv_exeext here because the later test for it is not
3914 # safe: cross compilers may not add the suffix if given an `-o'
3915 # argument, so we may need to know it at that point already.
3916 # Even if this section looks crufty: it has the advantage of
3917 # actually working.
3918 break;;
3919 * )
3920 break;;
3921 esac
3922 done
3923 test "$ac_cv_exeext" = no && ac_cv_exeext=
3924
3925 else
3926 ac_file=''
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3929 $as_echo "$ac_file" >&6; }
3930 if test -z "$ac_file"; then :
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 { as_fn_set_status 77
3937 as_fn_error "C compiler cannot create executables
3938 See \`config.log' for more details." "$LINENO" 5; }; }
3939 fi
3940 ac_exeext=$ac_cv_exeext
3941
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3945 $as_echo_n "checking whether the C compiler works... " >&6; }
3946 # If not cross compiling, check that we can run a simple program.
3947 if test "$cross_compiling" != yes; then
3948 if { ac_try='./$ac_file'
3949 { { case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3959 cross_compiling=no
3960 else
3961 if test "$cross_compiling" = maybe; then
3962 cross_compiling=yes
3963 else
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error "cannot run C compiled programs.
3967 If you meant to cross compile, use \`--host'.
3968 See \`config.log' for more details." "$LINENO" 5; }
3969 fi
3970 fi
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3974
3975 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3976 ac_clean_files=$ac_clean_files_save
3977 # Check that the compiler produces executables we can run. If not, either
3978 # the compiler is broken, or we cross compile.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3980 $as_echo_n "checking whether we are cross compiling... " >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982 $as_echo "$cross_compiling" >&6; }
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3985 $as_echo_n "checking for suffix of executables... " >&6; }
3986 if { { ac_try="$ac_link"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link") 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3999 # work properly (i.e., refer to `conftest.exe'), while it won't with
4000 # `rm'.
4001 for ac_file in conftest.exe conftest conftest.*; do
4002 test -f "$ac_file" || continue
4003 case $ac_file in
4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 break;;
4007 * ) break;;
4008 esac
4009 done
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error "cannot compute suffix of executables: cannot compile and link
4014 See \`config.log' for more details." "$LINENO" 5; }
4015 fi
4016 rm -f conftest$ac_cv_exeext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4018 $as_echo "$ac_cv_exeext" >&6; }
4019
4020 rm -f conftest.$ac_ext
4021 EXEEXT=$ac_cv_exeext
4022 ac_exeext=$EXEEXT
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4024 $as_echo_n "checking for suffix of object files... " >&6; }
4025 if test "${ac_cv_objext+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.o conftest.obj
4040 if { { ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_compile") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
4051 for ac_file in conftest.o conftest.obj conftest.*; do
4052 test -f "$ac_file" || continue;
4053 case $ac_file in
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4056 break;;
4057 esac
4058 done
4059 else
4060 $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error "cannot compute suffix of object files: cannot compile
4066 See \`config.log' for more details." "$LINENO" 5; }
4067 fi
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4071 $as_echo "$ac_cv_objext" >&6; }
4072 OBJEXT=$ac_cv_objext
4073 ac_objext=$OBJEXT
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4075 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4076 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081
4082 int
4083 main ()
4084 {
4085 #ifndef __GNUC__
4086 choke me
4087 #endif
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_compiler_gnu=yes
4095 else
4096 ac_compiler_gnu=no
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104 if test $ac_compiler_gnu = yes; then
4105 GCC=yes
4106 else
4107 GCC=
4108 fi
4109 ac_test_CFLAGS=${CFLAGS+set}
4110 ac_save_CFLAGS=$CFLAGS
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4112 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4113 if test "${ac_cv_prog_cc_g+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4118 ac_cv_prog_cc_g=no
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main ()
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_prog_cc_g=yes
4133 else
4134 CFLAGS=""
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137
4138 int
4139 main ()
4140 {
4141
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147
4148 else
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main ()
4156 {
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_g=yes
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 fi
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_c_werror_flag=$ac_save_c_werror_flag
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4173 $as_echo "$ac_cv_prog_cc_g" >&6; }
4174 if test "$ac_test_CFLAGS" = set; then
4175 CFLAGS=$ac_save_CFLAGS
4176 elif test $ac_cv_prog_cc_g = yes; then
4177 if test "$GCC" = yes; then
4178 CFLAGS="-g -O2"
4179 else
4180 CFLAGS="-g"
4181 fi
4182 else
4183 if test "$GCC" = yes; then
4184 CFLAGS="-O2"
4185 else
4186 CFLAGS=
4187 fi
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4191 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 ac_cv_prog_cc_c89=no
4195 ac_save_CC=$CC
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <stdarg.h>
4199 #include <stdio.h>
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4206 char **p;
4207 int i;
4208 {
4209 return p[i];
4210 }
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4212 {
4213 char *s;
4214 va_list v;
4215 va_start (v,p);
4216 s = g (p, va_arg (v,int));
4217 va_end (v);
4218 return s;
4219 }
4220
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4229
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4232 #define FOO(x) 'x'
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4234
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4239 int argc;
4240 char **argv;
4241 int
4242 main ()
4243 {
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4245 ;
4246 return 0;
4247 }
4248 _ACEOF
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_prog_cc_c89=$ac_arg
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext
4257 test "x$ac_cv_prog_cc_c89" != "xno" && break
4258 done
4259 rm -f conftest.$ac_ext
4260 CC=$ac_save_CC
4261
4262 fi
4263 # AC_CACHE_VAL
4264 case "x$ac_cv_prog_cc_c89" in
4265 x)
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4267 $as_echo "none needed" >&6; } ;;
4268 xno)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 $as_echo "unsupported" >&6; } ;;
4271 *)
4272 CC="$CC $ac_cv_prog_cc_c89"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4275 esac
4276 if test "x$ac_cv_prog_cc_c89" != xno; then :
4277
4278 fi
4279
4280 ac_ext=c
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286 ac_ext=cpp
4287 ac_cpp='$CXXCPP $CPPFLAGS'
4288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4291 if test -z "$CXX"; then
4292 if test -n "$CCC"; then
4293 CXX=$CCC
4294 else
4295 if test -n "$ac_tool_prefix"; then
4296 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4297 do
4298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if test "${ac_cv_prog_CXX+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if test -n "$CXX"; then
4306 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 break 2
4318 fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4322
4323 fi
4324 fi
4325 CXX=$ac_cv_prog_CXX
4326 if test -n "$CXX"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4328 $as_echo "$CXX" >&6; }
4329 else
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332 fi
4333
4334
4335 test -n "$CXX" && break
4336 done
4337 fi
4338 if test -z "$CXX"; then
4339 ac_ct_CXX=$CXX
4340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4341 do
4342 # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$ac_ct_CXX"; then
4350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CXX="$ac_prog"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367 fi
4368 fi
4369 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4370 if test -n "$ac_ct_CXX"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4372 $as_echo "$ac_ct_CXX" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378
4379 test -n "$ac_ct_CXX" && break
4380 done
4381
4382 if test "x$ac_ct_CXX" = x; then
4383 CXX="g++"
4384 else
4385 case $cross_compiling:$ac_tool_warned in
4386 yes:)
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389 ac_tool_warned=yes ;;
4390 esac
4391 CXX=$ac_ct_CXX
4392 fi
4393 fi
4394
4395 fi
4396 fi
4397 # Provide some information about the compiler.
4398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4399 set X $ac_compile
4400 ac_compiler=$2
4401 for ac_option in --version -v -V -qversion; do
4402 { { ac_try="$ac_compiler $ac_option >&5"
4403 case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4410 ac_status=$?
4411 if test -s conftest.err; then
4412 sed '10a\
4413 ... rest of stderr output deleted ...
4414 10q' conftest.err >conftest.er1
4415 cat conftest.er1 >&5
4416 rm -f conftest.er1 conftest.err
4417 fi
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }
4420 done
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4423 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429
4430 int
4431 main ()
4432 {
4433 #ifndef __GNUC__
4434 choke me
4435 #endif
4436
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_cxx_try_compile "$LINENO"; then :
4442 ac_compiler_gnu=yes
4443 else
4444 ac_compiler_gnu=no
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4448
4449 fi
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4451 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4452 if test $ac_compiler_gnu = yes; then
4453 GXX=yes
4454 else
4455 GXX=
4456 fi
4457 ac_test_CXXFLAGS=${CXXFLAGS+set}
4458 ac_save_CXXFLAGS=$CXXFLAGS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4460 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4461 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4465 ac_cxx_werror_flag=yes
4466 ac_cv_prog_cxx_g=no
4467 CXXFLAGS="-g"
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470
4471 int
4472 main ()
4473 {
4474
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_cxx_try_compile "$LINENO"; then :
4480 ac_cv_prog_cxx_g=yes
4481 else
4482 CXXFLAGS=""
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main ()
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 if ac_fn_cxx_try_compile "$LINENO"; then :
4495
4496 else
4497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4498 CXXFLAGS="-g"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501
4502 int
4503 main ()
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_cxx_try_compile "$LINENO"; then :
4511 ac_cv_prog_cxx_g=yes
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 fi
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4521 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4522 if test "$ac_test_CXXFLAGS" = set; then
4523 CXXFLAGS=$ac_save_CXXFLAGS
4524 elif test $ac_cv_prog_cxx_g = yes; then
4525 if test "$GXX" = yes; then
4526 CXXFLAGS="-g -O2"
4527 else
4528 CXXFLAGS="-g"
4529 fi
4530 else
4531 if test "$GXX" = yes; then
4532 CXXFLAGS="-O2"
4533 else
4534 CXXFLAGS=
4535 fi
4536 fi
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542
4543
4544
4545
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4548 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$GNATBIND"; then
4555 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568 done
4569 done
4570 IFS=$as_save_IFS
4571
4572 fi
4573 fi
4574 GNATBIND=$ac_cv_prog_GNATBIND
4575 if test -n "$GNATBIND"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4577 $as_echo "$GNATBIND" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584 fi
4585 if test -z "$ac_cv_prog_GNATBIND"; then
4586 ac_ct_GNATBIND=$GNATBIND
4587 # Extract the first word of "gnatbind", so it can be a program name with args.
4588 set dummy gnatbind; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$ac_ct_GNATBIND"; then
4595 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 fi
4613 fi
4614 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4615 if test -n "$ac_ct_GNATBIND"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4617 $as_echo "$ac_ct_GNATBIND" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623 if test "x$ac_ct_GNATBIND" = x; then
4624 GNATBIND="no"
4625 else
4626 case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632 GNATBIND=$ac_ct_GNATBIND
4633 fi
4634 else
4635 GNATBIND="$ac_cv_prog_GNATBIND"
4636 fi
4637
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$GNATMAKE"; then
4647 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 GNATMAKE=$ac_cv_prog_GNATMAKE
4667 if test -n "$GNATMAKE"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4669 $as_echo "$GNATMAKE" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675
4676 fi
4677 if test -z "$ac_cv_prog_GNATMAKE"; then
4678 ac_ct_GNATMAKE=$GNATMAKE
4679 # Extract the first word of "gnatmake", so it can be a program name with args.
4680 set dummy gnatmake; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$ac_ct_GNATMAKE"; then
4687 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4707 if test -n "$ac_ct_GNATMAKE"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4709 $as_echo "$ac_ct_GNATMAKE" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715 if test "x$ac_ct_GNATMAKE" = x; then
4716 GNATMAKE="no"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 GNATMAKE=$ac_ct_GNATMAKE
4725 fi
4726 else
4727 GNATMAKE="$ac_cv_prog_GNATMAKE"
4728 fi
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4731 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4732 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 cat >conftest.adb <<EOF
4736 procedure conftest is begin null; end conftest;
4737 EOF
4738 acx_cv_cc_gcc_supports_ada=no
4739 # There is a bug in old released versions of GCC which causes the
4740 # driver to exit successfully when the appropriate language module
4741 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4742 # Therefore we must check for the error message as well as an
4743 # unsuccessful exit.
4744 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4745 # given a .adb file, but produce no object file. So we must check
4746 # if an object file was really produced to guard against this.
4747 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4748 if test x"$errors" = x && test -f conftest.$ac_objext; then
4749 acx_cv_cc_gcc_supports_ada=yes
4750 fi
4751 rm -f conftest.*
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4754 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4755
4756 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4757 have_gnat=yes
4758 else
4759 have_gnat=no
4760 fi
4761
4762
4763 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4764 # optimizations to be activated explicitly by the toplevel.
4765 case "$CC" in
4766 */prev-gcc/xgcc*) ;;
4767 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4768 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4769 esac
4770
4771
4772
4773 # Determine PICFLAG for target gnatlib.
4774
4775
4776
4777
4778 case "${target}" in
4779 # PIC is the default on some targets or must not be used.
4780 *-*-darwin*)
4781 # PIC is the default on this platform
4782 # Common symbols not allowed in MH_DYLIB files
4783 PICFLAG_FOR_TARGET=-fno-common
4784 ;;
4785 alpha*-dec-osf5*)
4786 # PIC is the default.
4787 ;;
4788 hppa*64*-*-hpux*)
4789 # PIC is the default for 64-bit PA HP-UX.
4790 ;;
4791 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4792 ;;
4793 i[34567]86-*-mingw* | x86_64-*-mingw*)
4794 ;;
4795 i[34567]86-*-interix[3-9]*)
4796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4797 # Instead, we relocate shared libraries at runtime.
4798 ;;
4799 i[34567]86-*-nto-qnx*)
4800 # QNX uses GNU C++, but need to define -shared option too, otherwise
4801 # it will coredump.
4802 PICFLAG_FOR_TARGET='-fPIC -shared'
4803 ;;
4804 i[34567]86-pc-msdosdjgpp*)
4805 # DJGPP does not support shared libraries at all.
4806 ;;
4807 ia64*-*-hpux*)
4808 # On IA64 HP-UX, PIC is the default but the pic flag
4809 # sets the default TLS model and affects inlining.
4810 PICFLAG_FOR_TARGET=-fPIC
4811 ;;
4812 mips-sgi-irix6*)
4813 # PIC is the default.
4814 ;;
4815 rs6000-ibm-aix* | powerpc-ibm-aix*)
4816 # All AIX code is PIC.
4817 ;;
4818
4819 # Some targets support both -fPIC and -fpic, but prefer the latter.
4820 # FIXME: Why?
4821 i[34567]86-*-* | x86_64-*-*)
4822 PICFLAG_FOR_TARGET=-fpic
4823 ;;
4824 # FIXME: Override -fPIC default in libgcc only?
4825 sh-*-linux* | sh[2346lbe]*-*-linux*)
4826 PICFLAG_FOR_TARGET=-fpic
4827 ;;
4828 # FIXME: Simplify to sh*-*-netbsd*?
4829 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4830 sh64-*-netbsd* | sh64l*-*-netbsd*)
4831 PICFLAG_FOR_TARGET=-fpic
4832 ;;
4833 # Default to -fPIC unless specified otherwise.
4834 *)
4835 PICFLAG_FOR_TARGET=-fPIC
4836 ;;
4837 esac
4838
4839 # If the user explicitly uses -fpic/-fPIC, keep that.
4840 case "${CFLAGS_FOR_TARGET}" in
4841 *-fpic*)
4842 PICFLAG_FOR_TARGET=-fpic
4843 ;;
4844 *-fPIC*)
4845 PICFLAG_FOR_TARGET=-fPIC
4846 ;;
4847 esac
4848
4849
4850
4851 # -------------------------
4852 # Check C compiler features
4853 # -------------------------
4854
4855
4856 ac_ext=c
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4863 # On Suns, sometimes $CPP names a directory.
4864 if test -n "$CPP" && test -d "$CPP"; then
4865 CPP=
4866 fi
4867 if test -z "$CPP"; then
4868 if test "${ac_cv_prog_CPP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 # Double quotes because CPP needs to be expanded
4872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4873 do
4874 ac_preproc_ok=false
4875 for ac_c_preproc_warn_flag in '' yes
4876 do
4877 # Use a header file that comes with gcc, so configuring glibc
4878 # with a fresh cross-compiler works.
4879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880 # <limits.h> exists even on freestanding compilers.
4881 # On the NeXT, cc -E runs the code through the compiler's parser,
4882 # not just through cpp. "Syntax error" is here to catch this case.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #ifdef __STDC__
4886 # include <limits.h>
4887 #else
4888 # include <assert.h>
4889 #endif
4890 Syntax error
4891 _ACEOF
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893
4894 else
4895 # Broken: fails on valid input.
4896 continue
4897 fi
4898 rm -f conftest.err conftest.$ac_ext
4899
4900 # OK, works on sane cases. Now check whether nonexistent headers
4901 # can be detected and how.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <ac_nonexistent.h>
4905 _ACEOF
4906 if ac_fn_c_try_cpp "$LINENO"; then :
4907 # Broken: success on invalid input.
4908 continue
4909 else
4910 # Passes both tests.
4911 ac_preproc_ok=:
4912 break
4913 fi
4914 rm -f conftest.err conftest.$ac_ext
4915
4916 done
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.$ac_ext
4919 if $ac_preproc_ok; then :
4920 break
4921 fi
4922
4923 done
4924 ac_cv_prog_CPP=$CPP
4925
4926 fi
4927 CPP=$ac_cv_prog_CPP
4928 else
4929 ac_cv_prog_CPP=$CPP
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4932 $as_echo "$CPP" >&6; }
4933 ac_preproc_ok=false
4934 for ac_c_preproc_warn_flag in '' yes
4935 do
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #ifdef __STDC__
4945 # include <limits.h>
4946 #else
4947 # include <assert.h>
4948 #endif
4949 Syntax error
4950 _ACEOF
4951 if ac_fn_c_try_cpp "$LINENO"; then :
4952
4953 else
4954 # Broken: fails on valid input.
4955 continue
4956 fi
4957 rm -f conftest.err conftest.$ac_ext
4958
4959 # OK, works on sane cases. Now check whether nonexistent headers
4960 # can be detected and how.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4964 _ACEOF
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4966 # Broken: success on invalid input.
4967 continue
4968 else
4969 # Passes both tests.
4970 ac_preproc_ok=:
4971 break
4972 fi
4973 rm -f conftest.err conftest.$ac_ext
4974
4975 done
4976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4977 rm -f conftest.err conftest.$ac_ext
4978 if $ac_preproc_ok; then :
4979
4980 else
4981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4984 See \`config.log' for more details." "$LINENO" 5; }
4985 fi
4986
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4996 if test "${ac_cv_path_GREP+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -z "$GREP"; then
5000 ac_path_GREP_found=false
5001 # Loop through the user's path and test for each of PROGNAME-LIST
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5004 do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_prog in grep ggrep; do
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5011 # Check for GNU ac_path_GREP and select it if it is found.
5012 # Check for GNU $ac_path_GREP
5013 case `"$ac_path_GREP" --version 2>&1` in
5014 *GNU*)
5015 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5016 *)
5017 ac_count=0
5018 $as_echo_n 0123456789 >"conftest.in"
5019 while :
5020 do
5021 cat "conftest.in" "conftest.in" >"conftest.tmp"
5022 mv "conftest.tmp" "conftest.in"
5023 cp "conftest.in" "conftest.nl"
5024 $as_echo 'GREP' >> "conftest.nl"
5025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5027 as_fn_arith $ac_count + 1 && ac_count=$as_val
5028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5029 # Best one so far, save it but keep looking for a better one
5030 ac_cv_path_GREP="$ac_path_GREP"
5031 ac_path_GREP_max=$ac_count
5032 fi
5033 # 10*(2^10) chars as input seems more than enough
5034 test $ac_count -gt 10 && break
5035 done
5036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5037 esac
5038
5039 $ac_path_GREP_found && break 3
5040 done
5041 done
5042 done
5043 IFS=$as_save_IFS
5044 if test -z "$ac_cv_path_GREP"; then
5045 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5046 fi
5047 else
5048 ac_cv_path_GREP=$GREP
5049 fi
5050
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5053 $as_echo "$ac_cv_path_GREP" >&6; }
5054 GREP="$ac_cv_path_GREP"
5055
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5058 $as_echo_n "checking for egrep... " >&6; }
5059 if test "${ac_cv_path_EGREP+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5063 then ac_cv_path_EGREP="$GREP -E"
5064 else
5065 if test -z "$EGREP"; then
5066 ac_path_EGREP_found=false
5067 # Loop through the user's path and test for each of PROGNAME-LIST
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5070 do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_prog in egrep; do
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5077 # Check for GNU ac_path_EGREP and select it if it is found.
5078 # Check for GNU $ac_path_EGREP
5079 case `"$ac_path_EGREP" --version 2>&1` in
5080 *GNU*)
5081 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5082 *)
5083 ac_count=0
5084 $as_echo_n 0123456789 >"conftest.in"
5085 while :
5086 do
5087 cat "conftest.in" "conftest.in" >"conftest.tmp"
5088 mv "conftest.tmp" "conftest.in"
5089 cp "conftest.in" "conftest.nl"
5090 $as_echo 'EGREP' >> "conftest.nl"
5091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5092 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5093 as_fn_arith $ac_count + 1 && ac_count=$as_val
5094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5095 # Best one so far, save it but keep looking for a better one
5096 ac_cv_path_EGREP="$ac_path_EGREP"
5097 ac_path_EGREP_max=$ac_count
5098 fi
5099 # 10*(2^10) chars as input seems more than enough
5100 test $ac_count -gt 10 && break
5101 done
5102 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5103 esac
5104
5105 $ac_path_EGREP_found && break 3
5106 done
5107 done
5108 done
5109 IFS=$as_save_IFS
5110 if test -z "$ac_cv_path_EGREP"; then
5111 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5112 fi
5113 else
5114 ac_cv_path_EGREP=$EGREP
5115 fi
5116
5117 fi
5118 fi
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5120 $as_echo "$ac_cv_path_EGREP" >&6; }
5121 EGREP="$ac_cv_path_EGREP"
5122
5123
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5125 $as_echo_n "checking for ANSI C header files... " >&6; }
5126 if test "${ac_cv_header_stdc+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 #include <stdlib.h>
5132 #include <stdarg.h>
5133 #include <string.h>
5134 #include <float.h>
5135
5136 int
5137 main ()
5138 {
5139
5140 ;
5141 return 0;
5142 }
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 ac_cv_header_stdc=yes
5146 else
5147 ac_cv_header_stdc=no
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150
5151 if test $ac_cv_header_stdc = yes; then
5152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <string.h>
5156
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "memchr" >/dev/null 2>&1; then :
5160
5161 else
5162 ac_cv_header_stdc=no
5163 fi
5164 rm -f conftest*
5165
5166 fi
5167
5168 if test $ac_cv_header_stdc = yes; then
5169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <stdlib.h>
5173
5174 _ACEOF
5175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5176 $EGREP "free" >/dev/null 2>&1; then :
5177
5178 else
5179 ac_cv_header_stdc=no
5180 fi
5181 rm -f conftest*
5182
5183 fi
5184
5185 if test $ac_cv_header_stdc = yes; then
5186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187 if test "$cross_compiling" = yes; then :
5188 :
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <ctype.h>
5193 #include <stdlib.h>
5194 #if ((' ' & 0x0FF) == 0x020)
5195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5197 #else
5198 # define ISLOWER(c) \
5199 (('a' <= (c) && (c) <= 'i') \
5200 || ('j' <= (c) && (c) <= 'r') \
5201 || ('s' <= (c) && (c) <= 'z'))
5202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5203 #endif
5204
5205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5206 int
5207 main ()
5208 {
5209 int i;
5210 for (i = 0; i < 256; i++)
5211 if (XOR (islower (i), ISLOWER (i))
5212 || toupper (i) != TOUPPER (i))
5213 return 2;
5214 return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_run "$LINENO"; then :
5218
5219 else
5220 ac_cv_header_stdc=no
5221 fi
5222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5223 conftest.$ac_objext conftest.beam conftest.$ac_ext
5224 fi
5225
5226 fi
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5229 $as_echo "$ac_cv_header_stdc" >&6; }
5230 if test $ac_cv_header_stdc = yes; then
5231
5232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5233
5234 fi
5235
5236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5238 inttypes.h stdint.h unistd.h
5239 do :
5240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5242 "
5243 eval as_val=\$$as_ac_Header
5244 if test "x$as_val" = x""yes; then :
5245 cat >>confdefs.h <<_ACEOF
5246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5247 _ACEOF
5248
5249 fi
5250
5251 done
5252
5253
5254
5255 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5256 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5257 MINIX=yes
5258 else
5259 MINIX=
5260 fi
5261
5262
5263 if test "$MINIX" = yes; then
5264
5265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5266
5267
5268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5269
5270
5271 $as_echo "#define _MINIX 1" >>confdefs.h
5272
5273 fi
5274
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5278 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283
5284 # define __EXTENSIONS__ 1
5285 $ac_includes_default
5286 int
5287 main ()
5288 {
5289
5290 ;
5291 return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295 ac_cv_safe_to_define___extensions__=yes
5296 else
5297 ac_cv_safe_to_define___extensions__=no
5298 fi
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5303 test $ac_cv_safe_to_define___extensions__ = yes &&
5304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5305
5306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5307
5308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5309
5310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5311
5312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5313
5314
5315 ac_ext=c
5316 ac_cpp='$CPP $CPPFLAGS'
5317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5322 # On Suns, sometimes $CPP names a directory.
5323 if test -n "$CPP" && test -d "$CPP"; then
5324 CPP=
5325 fi
5326 if test -z "$CPP"; then
5327 if test "${ac_cv_prog_CPP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 # Double quotes because CPP needs to be expanded
5331 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5332 do
5333 ac_preproc_ok=false
5334 for ac_c_preproc_warn_flag in '' yes
5335 do
5336 # Use a header file that comes with gcc, so configuring glibc
5337 # with a fresh cross-compiler works.
5338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5339 # <limits.h> exists even on freestanding compilers.
5340 # On the NeXT, cc -E runs the code through the compiler's parser,
5341 # not just through cpp. "Syntax error" is here to catch this case.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #ifdef __STDC__
5345 # include <limits.h>
5346 #else
5347 # include <assert.h>
5348 #endif
5349 Syntax error
5350 _ACEOF
5351 if ac_fn_c_try_cpp "$LINENO"; then :
5352
5353 else
5354 # Broken: fails on valid input.
5355 continue
5356 fi
5357 rm -f conftest.err conftest.$ac_ext
5358
5359 # OK, works on sane cases. Now check whether nonexistent headers
5360 # can be detected and how.
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <ac_nonexistent.h>
5364 _ACEOF
5365 if ac_fn_c_try_cpp "$LINENO"; then :
5366 # Broken: success on invalid input.
5367 continue
5368 else
5369 # Passes both tests.
5370 ac_preproc_ok=:
5371 break
5372 fi
5373 rm -f conftest.err conftest.$ac_ext
5374
5375 done
5376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377 rm -f conftest.err conftest.$ac_ext
5378 if $ac_preproc_ok; then :
5379 break
5380 fi
5381
5382 done
5383 ac_cv_prog_CPP=$CPP
5384
5385 fi
5386 CPP=$ac_cv_prog_CPP
5387 else
5388 ac_cv_prog_CPP=$CPP
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5391 $as_echo "$CPP" >&6; }
5392 ac_preproc_ok=false
5393 for ac_c_preproc_warn_flag in '' yes
5394 do
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #ifdef __STDC__
5404 # include <limits.h>
5405 #else
5406 # include <assert.h>
5407 #endif
5408 Syntax error
5409 _ACEOF
5410 if ac_fn_c_try_cpp "$LINENO"; then :
5411
5412 else
5413 # Broken: fails on valid input.
5414 continue
5415 fi
5416 rm -f conftest.err conftest.$ac_ext
5417
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5425 # Broken: success on invalid input.
5426 continue
5427 else
5428 # Passes both tests.
5429 ac_preproc_ok=:
5430 break
5431 fi
5432 rm -f conftest.err conftest.$ac_ext
5433
5434 done
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.err conftest.$ac_ext
5437 if $ac_preproc_ok; then :
5438
5439 else
5440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5442 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5443 See \`config.log' for more details." "$LINENO" 5; }
5444 fi
5445
5446 ac_ext=c
5447 ac_cpp='$CPP $CPPFLAGS'
5448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5453 $as_echo_n "checking for inline... " >&6; }
5454 if test "${ac_cv_c_inline+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 ac_cv_c_inline=no
5458 for ac_kw in inline __inline__ __inline; do
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #ifndef __cplusplus
5462 typedef int foo_t;
5463 static $ac_kw foo_t static_foo () {return 0; }
5464 $ac_kw foo_t foo () {return 0; }
5465 #endif
5466
5467 _ACEOF
5468 if ac_fn_c_try_compile "$LINENO"; then :
5469 ac_cv_c_inline=$ac_kw
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 test "$ac_cv_c_inline" != no && break
5473 done
5474
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5477 $as_echo "$ac_cv_c_inline" >&6; }
5478
5479 case $ac_cv_c_inline in
5480 inline | yes) ;;
5481 *)
5482 case $ac_cv_c_inline in
5483 no) ac_val=;;
5484 *) ac_val=$ac_cv_c_inline;;
5485 esac
5486 cat >>confdefs.h <<_ACEOF
5487 #ifndef __cplusplus
5488 #define inline $ac_val
5489 #endif
5490 _ACEOF
5491 ;;
5492 esac
5493
5494
5495 # Check whether --enable-largefile was given.
5496 if test "${enable_largefile+set}" = set; then :
5497 enableval=$enable_largefile;
5498 fi
5499
5500 if test "$enable_largefile" != no; then
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5503 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5504 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 ac_cv_sys_largefile_CC=no
5508 if test "$GCC" != yes; then
5509 ac_save_CC=$CC
5510 while :; do
5511 # IRIX 6.2 and later do not support large files by default,
5512 # so use the C compiler's -n32 option if that helps.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <sys/types.h>
5516 /* Check that off_t can represent 2**63 - 1 correctly.
5517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5518 since some C++ compilers masquerading as C compilers
5519 incorrectly reject 9223372036854775807. */
5520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5522 && LARGE_OFF_T % 2147483647 == 1)
5523 ? 1 : -1];
5524 int
5525 main ()
5526 {
5527
5528 ;
5529 return 0;
5530 }
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 break
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext
5536 CC="$CC -n32"
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 ac_cv_sys_largefile_CC=' -n32'; break
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext
5541 break
5542 done
5543 CC=$ac_save_CC
5544 rm -f conftest.$ac_ext
5545 fi
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5548 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5549 if test "$ac_cv_sys_largefile_CC" != no; then
5550 CC=$CC$ac_cv_sys_largefile_CC
5551 fi
5552
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5554 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 while :; do
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <sys/types.h>
5562 /* Check that off_t can represent 2**63 - 1 correctly.
5563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5564 since some C++ compilers masquerading as C compilers
5565 incorrectly reject 9223372036854775807. */
5566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5568 && LARGE_OFF_T % 2147483647 == 1)
5569 ? 1 : -1];
5570 int
5571 main ()
5572 {
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 ac_cv_sys_file_offset_bits=no; break
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #define _FILE_OFFSET_BITS 64
5585 #include <sys/types.h>
5586 /* Check that off_t can represent 2**63 - 1 correctly.
5587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5588 since some C++ compilers masquerading as C compilers
5589 incorrectly reject 9223372036854775807. */
5590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5592 && LARGE_OFF_T % 2147483647 == 1)
5593 ? 1 : -1];
5594 int
5595 main ()
5596 {
5597
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 if ac_fn_c_try_compile "$LINENO"; then :
5603 ac_cv_sys_file_offset_bits=64; break
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 ac_cv_sys_file_offset_bits=unknown
5607 break
5608 done
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5611 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5612 case $ac_cv_sys_file_offset_bits in #(
5613 no | unknown) ;;
5614 *)
5615 cat >>confdefs.h <<_ACEOF
5616 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5617 _ACEOF
5618 ;;
5619 esac
5620 rm -rf conftest*
5621 if test $ac_cv_sys_file_offset_bits = unknown; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5623 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5624 if test "${ac_cv_sys_large_files+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 while :; do
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5638 ? 1 : -1];
5639 int
5640 main ()
5641 {
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_sys_large_files=no; break
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #define _LARGE_FILES 1
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5662 ? 1 : -1];
5663 int
5664 main ()
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 ac_cv_sys_large_files=1; break
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_cv_sys_large_files=unknown
5676 break
5677 done
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5680 $as_echo "$ac_cv_sys_large_files" >&6; }
5681 case $ac_cv_sys_large_files in #(
5682 no | unknown) ;;
5683 *)
5684 cat >>confdefs.h <<_ACEOF
5685 #define _LARGE_FILES $ac_cv_sys_large_files
5686 _ACEOF
5687 ;;
5688 esac
5689 rm -rf conftest*
5690 fi
5691 fi
5692
5693
5694 # sizeof(char) is 1 by definition.
5695 # The cast to long int works around a bug in the HP C Compiler
5696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5698 # This bug is HP SR number 8606223364.
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5700 $as_echo_n "checking size of void *... " >&6; }
5701 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5705
5706 else
5707 if test "$ac_cv_type_void_p" = yes; then
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5710 { as_fn_set_status 77
5711 as_fn_error "cannot compute sizeof (void *)
5712 See \`config.log' for more details." "$LINENO" 5; }; }
5713 else
5714 ac_cv_sizeof_void_p=0
5715 fi
5716 fi
5717
5718 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5720 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5721
5722
5723
5724 cat >>confdefs.h <<_ACEOF
5725 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5726 _ACEOF
5727
5728
5729 # The cast to long int works around a bug in the HP C Compiler
5730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5732 # This bug is HP SR number 8606223364.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5734 $as_echo_n "checking size of short... " >&6; }
5735 if test "${ac_cv_sizeof_short+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5739
5740 else
5741 if test "$ac_cv_type_short" = yes; then
5742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5744 { as_fn_set_status 77
5745 as_fn_error "cannot compute sizeof (short)
5746 See \`config.log' for more details." "$LINENO" 5; }; }
5747 else
5748 ac_cv_sizeof_short=0
5749 fi
5750 fi
5751
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5754 $as_echo "$ac_cv_sizeof_short" >&6; }
5755
5756
5757
5758 cat >>confdefs.h <<_ACEOF
5759 #define SIZEOF_SHORT $ac_cv_sizeof_short
5760 _ACEOF
5761
5762
5763 # The cast to long int works around a bug in the HP C Compiler
5764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5766 # This bug is HP SR number 8606223364.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5768 $as_echo_n "checking size of int... " >&6; }
5769 if test "${ac_cv_sizeof_int+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5773
5774 else
5775 if test "$ac_cv_type_int" = yes; then
5776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5778 { as_fn_set_status 77
5779 as_fn_error "cannot compute sizeof (int)
5780 See \`config.log' for more details." "$LINENO" 5; }; }
5781 else
5782 ac_cv_sizeof_int=0
5783 fi
5784 fi
5785
5786 fi
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5788 $as_echo "$ac_cv_sizeof_int" >&6; }
5789
5790
5791
5792 cat >>confdefs.h <<_ACEOF
5793 #define SIZEOF_INT $ac_cv_sizeof_int
5794 _ACEOF
5795
5796
5797 # The cast to long int works around a bug in the HP C Compiler
5798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5800 # This bug is HP SR number 8606223364.
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5802 $as_echo_n "checking size of long... " >&6; }
5803 if test "${ac_cv_sizeof_long+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5807
5808 else
5809 if test "$ac_cv_type_long" = yes; then
5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5812 { as_fn_set_status 77
5813 as_fn_error "cannot compute sizeof (long)
5814 See \`config.log' for more details." "$LINENO" 5; }; }
5815 else
5816 ac_cv_sizeof_long=0
5817 fi
5818 fi
5819
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5822 $as_echo "$ac_cv_sizeof_long" >&6; }
5823
5824
5825
5826 cat >>confdefs.h <<_ACEOF
5827 #define SIZEOF_LONG $ac_cv_sizeof_long
5828 _ACEOF
5829
5830
5831 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5832 if test "x$ac_cv_type_long_long" = x""yes; then :
5833
5834 cat >>confdefs.h <<_ACEOF
5835 #define HAVE_LONG_LONG 1
5836 _ACEOF
5837
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5843 $as_echo_n "checking size of long long... " >&6; }
5844 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5848
5849 else
5850 if test "$ac_cv_type_long_long" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status 77
5854 as_fn_error "cannot compute sizeof (long long)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5856 else
5857 ac_cv_sizeof_long_long=0
5858 fi
5859 fi
5860
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5863 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5864
5865
5866
5867 cat >>confdefs.h <<_ACEOF
5868 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5869 _ACEOF
5870
5871
5872 fi
5873
5874 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5875 case $ac_cv_c_int8_t in #(
5876 no|yes) ;; #(
5877 *)
5878
5879 cat >>confdefs.h <<_ACEOF
5880 #define int8_t $ac_cv_c_int8_t
5881 _ACEOF
5882 ;;
5883 esac
5884
5885 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5886 case $ac_cv_c_int16_t in #(
5887 no|yes) ;; #(
5888 *)
5889
5890 cat >>confdefs.h <<_ACEOF
5891 #define int16_t $ac_cv_c_int16_t
5892 _ACEOF
5893 ;;
5894 esac
5895
5896 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5897 case $ac_cv_c_int32_t in #(
5898 no|yes) ;; #(
5899 *)
5900
5901 cat >>confdefs.h <<_ACEOF
5902 #define int32_t $ac_cv_c_int32_t
5903 _ACEOF
5904 ;;
5905 esac
5906
5907 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5908 case $ac_cv_c_int64_t in #(
5909 no|yes) ;; #(
5910 *)
5911
5912 cat >>confdefs.h <<_ACEOF
5913 #define int64_t $ac_cv_c_int64_t
5914 _ACEOF
5915 ;;
5916 esac
5917
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5920 $as_echo_n "checking for long long int... " >&6; }
5921 if test "${ac_cv_type_long_long_int+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926
5927 /* For now, do not test the preprocessor; as of 2007 there are too many
5928 implementations with broken preprocessors. Perhaps this can
5929 be revisited in 2012. In the meantime, code should not expect
5930 #if to work with literals wider than 32 bits. */
5931 /* Test literals. */
5932 long long int ll = 9223372036854775807ll;
5933 long long int nll = -9223372036854775807LL;
5934 unsigned long long int ull = 18446744073709551615ULL;
5935 /* Test constant expressions. */
5936 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5937 ? 1 : -1)];
5938 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5939 ? 1 : -1)];
5940 int i = 63;
5941 int
5942 main ()
5943 {
5944 /* Test availability of runtime routines for shift and division. */
5945 long long int llmax = 9223372036854775807ll;
5946 unsigned long long int ullmax = 18446744073709551615ull;
5947 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5948 | (llmax / ll) | (llmax % ll)
5949 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5950 | (ullmax / ull) | (ullmax % ull));
5951 ;
5952 return 0;
5953 }
5954
5955 _ACEOF
5956 if ac_fn_c_try_link "$LINENO"; then :
5957 if test "$cross_compiling" = yes; then :
5958 ac_cv_type_long_long_int=yes
5959 else
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 #include <limits.h>
5963 #ifndef LLONG_MAX
5964 # define HALF \
5965 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5966 # define LLONG_MAX (HALF - 1 + HALF)
5967 #endif
5968 int
5969 main ()
5970 {
5971 long long int n = 1;
5972 int i;
5973 for (i = 0; ; i++)
5974 {
5975 long long int m = n << i;
5976 if (m >> i != n)
5977 return 1;
5978 if (LLONG_MAX / 2 < m)
5979 break;
5980 }
5981 return 0;
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 if ac_fn_c_try_run "$LINENO"; then :
5987 ac_cv_type_long_long_int=yes
5988 else
5989 ac_cv_type_long_long_int=no
5990 fi
5991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5992 conftest.$ac_objext conftest.beam conftest.$ac_ext
5993 fi
5994
5995 else
5996 ac_cv_type_long_long_int=no
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext \
5999 conftest$ac_exeext conftest.$ac_ext
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6002 $as_echo "$ac_cv_type_long_long_int" >&6; }
6003 if test $ac_cv_type_long_long_int = yes; then
6004
6005 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6006
6007 fi
6008
6009
6010
6011 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6012 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6013
6014 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6015
6016 else
6017 test $ac_cv_type_long_long_int = yes \
6018 && ac_type='long long int' \
6019 || ac_type='long int'
6020
6021 cat >>confdefs.h <<_ACEOF
6022 #define intmax_t $ac_type
6023 _ACEOF
6024
6025 fi
6026
6027
6028
6029 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6030 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6031
6032 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6033
6034 else
6035 for ac_type in 'int' 'long int' 'long long int'; do
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 $ac_includes_default
6039 int
6040 main ()
6041 {
6042 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6043 test_array [0] = 0
6044
6045 ;
6046 return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050
6051 cat >>confdefs.h <<_ACEOF
6052 #define intptr_t $ac_type
6053 _ACEOF
6054
6055 ac_type=
6056 fi
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 test -z "$ac_type" && break
6059 done
6060 fi
6061
6062
6063 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6064 case $ac_cv_c_uint8_t in #(
6065 no|yes) ;; #(
6066 *)
6067
6068 $as_echo "#define _UINT8_T 1" >>confdefs.h
6069
6070
6071 cat >>confdefs.h <<_ACEOF
6072 #define uint8_t $ac_cv_c_uint8_t
6073 _ACEOF
6074 ;;
6075 esac
6076
6077 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6078 case $ac_cv_c_uint16_t in #(
6079 no|yes) ;; #(
6080 *)
6081
6082
6083 cat >>confdefs.h <<_ACEOF
6084 #define uint16_t $ac_cv_c_uint16_t
6085 _ACEOF
6086 ;;
6087 esac
6088
6089 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6090 case $ac_cv_c_uint32_t in #(
6091 no|yes) ;; #(
6092 *)
6093
6094 $as_echo "#define _UINT32_T 1" >>confdefs.h
6095
6096
6097 cat >>confdefs.h <<_ACEOF
6098 #define uint32_t $ac_cv_c_uint32_t
6099 _ACEOF
6100 ;;
6101 esac
6102
6103 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6104 case $ac_cv_c_uint64_t in #(
6105 no|yes) ;; #(
6106 *)
6107
6108 $as_echo "#define _UINT64_T 1" >>confdefs.h
6109
6110
6111 cat >>confdefs.h <<_ACEOF
6112 #define uint64_t $ac_cv_c_uint64_t
6113 _ACEOF
6114 ;;
6115 esac
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6119 $as_echo_n "checking for unsigned long long int... " >&6; }
6120 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125
6126 /* For now, do not test the preprocessor; as of 2007 there are too many
6127 implementations with broken preprocessors. Perhaps this can
6128 be revisited in 2012. In the meantime, code should not expect
6129 #if to work with literals wider than 32 bits. */
6130 /* Test literals. */
6131 long long int ll = 9223372036854775807ll;
6132 long long int nll = -9223372036854775807LL;
6133 unsigned long long int ull = 18446744073709551615ULL;
6134 /* Test constant expressions. */
6135 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6136 ? 1 : -1)];
6137 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6138 ? 1 : -1)];
6139 int i = 63;
6140 int
6141 main ()
6142 {
6143 /* Test availability of runtime routines for shift and division. */
6144 long long int llmax = 9223372036854775807ll;
6145 unsigned long long int ullmax = 18446744073709551615ull;
6146 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6147 | (llmax / ll) | (llmax % ll)
6148 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6149 | (ullmax / ull) | (ullmax % ull));
6150 ;
6151 return 0;
6152 }
6153
6154 _ACEOF
6155 if ac_fn_c_try_link "$LINENO"; then :
6156 ac_cv_type_unsigned_long_long_int=yes
6157 else
6158 ac_cv_type_unsigned_long_long_int=no
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext \
6161 conftest$ac_exeext conftest.$ac_ext
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6164 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6165 if test $ac_cv_type_unsigned_long_long_int = yes; then
6166
6167 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6168
6169 fi
6170
6171
6172
6173 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6175
6176 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6177
6178 else
6179 test $ac_cv_type_unsigned_long_long_int = yes \
6180 && ac_type='unsigned long long int' \
6181 || ac_type='unsigned long int'
6182
6183 cat >>confdefs.h <<_ACEOF
6184 #define uintmax_t $ac_type
6185 _ACEOF
6186
6187 fi
6188
6189
6190
6191 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6192 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6193
6194 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6195
6196 else
6197 for ac_type in 'unsigned int' 'unsigned long int' \
6198 'unsigned long long int'; do
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 $ac_includes_default
6202 int
6203 main ()
6204 {
6205 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6206 test_array [0] = 0
6207
6208 ;
6209 return 0;
6210 }
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213
6214 cat >>confdefs.h <<_ACEOF
6215 #define uintptr_t $ac_type
6216 _ACEOF
6217
6218 ac_type=
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 test -z "$ac_type" && break
6222 done
6223 fi
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6239 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6240 fi
6241
6242 # check what underlying integer type int64_t uses
6243 ac_ext=cpp
6244 ac_cpp='$CXXCPP $CPPFLAGS'
6245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6248
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6251 $as_echo_n "checking for int64_t underlying type... " >&6; }
6252 if test "${ac_cv_int64_t_type+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258
6259 #ifdef HAVE_STDINT_H
6260 #include <stdint.h>
6261 #endif
6262 template <typename T> struct X { };
6263 template <>
6264 struct X<long> { typedef long t; };
6265
6266 int
6267 main ()
6268 {
6269 X<int64_t>::t x;
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_cxx_try_compile "$LINENO"; then :
6275 ac_cv_int64_t_type=long
6276 else
6277 ac_cv_int64_t_type="long long"
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6282 $as_echo "$ac_cv_int64_t_type" >&6; }
6283 if test "$ac_cv_int64_t_type" = "long"; then
6284
6285 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6286
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290
6291 #ifdef HAVE_STDINT_H
6292 #include <stdint.h>
6293 #endif
6294 template <typename T> struct X { };
6295 template <>
6296 struct X<long long> { typedef long long t; };
6297
6298 int
6299 main ()
6300 {
6301 X<int64_t>::t x;
6302 ;
6303 return 0;
6304 }
6305 _ACEOF
6306 if ac_fn_cxx_try_compile "$LINENO"; then :
6307
6308 else
6309 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 ac_ext=c
6314 ac_cpp='$CPP $CPPFLAGS'
6315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6318
6319
6320
6321
6322
6323 # ---------------------
6324 # Warnings and checking
6325 # ---------------------
6326
6327 # Check $CC warning features (if it's GCC).
6328 # We want to use -pedantic, but we don't want warnings about
6329 # * 'long long'
6330 # * variadic macros
6331 # * overlong strings
6332 # * C++11 narrowing conversions in { }
6333 # So, we only use -pedantic if we can disable those warnings.
6334
6335 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6336 # Check whether --enable-build-format-warnings was given.
6337 if test "${enable_build_format_warnings+set}" = set; then :
6338 enableval=$enable_build_format_warnings;
6339 else
6340 enable_build_format_warnings=yes
6341 fi
6342
6343 if test $enable_build_format_warnings = no; then :
6344 wf_opt=-Wno-format
6345 else
6346 wf_opt=
6347 fi
6348 loose_warn=
6349 save_CFLAGS="$CFLAGS"
6350 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6351 # Do the check with the no- prefix removed since gcc silently
6352 # accepts any -Wno-* option on purpose
6353 case $real_option in
6354 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6355 *) option=$real_option ;;
6356 esac
6357 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6360 $as_echo_n "checking whether $CC supports $option... " >&6; }
6361 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 CFLAGS="$option"
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367
6368 int
6369 main ()
6370 {
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 eval "$as_acx_Woption=yes"
6378 else
6379 eval "$as_acx_Woption=no"
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382
6383 fi
6384 eval ac_res=\$$as_acx_Woption
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6386 $as_echo "$ac_res" >&6; }
6387 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6388 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6389 fi
6390 done
6391 CFLAGS="$save_CFLAGS"
6392
6393 c_loose_warn=
6394 save_CFLAGS="$CFLAGS"
6395 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6396 # Do the check with the no- prefix removed since gcc silently
6397 # accepts any -Wno-* option on purpose
6398 case $real_option in
6399 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6400 *) option=$real_option ;;
6401 esac
6402 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6405 $as_echo_n "checking whether $CC supports $option... " >&6; }
6406 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 CFLAGS="$option"
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412
6413 int
6414 main ()
6415 {
6416
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422 eval "$as_acx_Woption=yes"
6423 else
6424 eval "$as_acx_Woption=no"
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427
6428 fi
6429 eval ac_res=\$$as_acx_Woption
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431 $as_echo "$ac_res" >&6; }
6432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6433 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6434 fi
6435 done
6436 CFLAGS="$save_CFLAGS"
6437
6438 strict_warn=
6439 save_CFLAGS="$CFLAGS"
6440 for real_option in -Wmissing-format-attribute; do
6441 # Do the check with the no- prefix removed since gcc silently
6442 # accepts any -Wno-* option on purpose
6443 case $real_option in
6444 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6445 *) option=$real_option ;;
6446 esac
6447 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6450 $as_echo_n "checking whether $CC supports $option... " >&6; }
6451 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 CFLAGS="$option"
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457
6458 int
6459 main ()
6460 {
6461
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 eval "$as_acx_Woption=yes"
6468 else
6469 eval "$as_acx_Woption=no"
6470 fi
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472
6473 fi
6474 eval ac_res=\$$as_acx_Woption
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6476 $as_echo "$ac_res" >&6; }
6477 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6478 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6479 fi
6480 done
6481 CFLAGS="$save_CFLAGS"
6482
6483 save_CFLAGS="$CFLAGS"
6484 for real_option in -Woverloaded-virtual; do
6485 # Do the check with the no- prefix removed since gcc silently
6486 # accepts any -Wno-* option on purpose
6487 case $real_option in
6488 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6489 *) option=$real_option ;;
6490 esac
6491 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6494 $as_echo_n "checking whether $CC supports $option... " >&6; }
6495 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 CFLAGS="$option"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 eval "$as_acx_Woption=yes"
6512 else
6513 eval "$as_acx_Woption=no"
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516
6517 fi
6518 eval ac_res=\$$as_acx_Woption
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6521 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6522 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6523 fi
6524 done
6525 CFLAGS="$save_CFLAGS"
6526
6527 c_strict_warn=
6528 save_CFLAGS="$CFLAGS"
6529 for real_option in -Wold-style-definition -Wc++-compat; do
6530 # Do the check with the no- prefix removed since gcc silently
6531 # accepts any -Wno-* option on purpose
6532 case $real_option in
6533 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6534 *) option=$real_option ;;
6535 esac
6536 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6537
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6539 $as_echo_n "checking whether $CC supports $option... " >&6; }
6540 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 CFLAGS="$option"
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 eval "$as_acx_Woption=yes"
6557 else
6558 eval "$as_acx_Woption=no"
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561
6562 fi
6563 eval ac_res=\$$as_acx_Woption
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6565 $as_echo "$ac_res" >&6; }
6566 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6567 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6568 fi
6569 done
6570 CFLAGS="$save_CFLAGS"
6571
6572 # Do the check with the no- prefix removed from the warning options
6573 # since gcc silently accepts any -Wno-* option on purpose
6574 if test "$GCC" = yes; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6576 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6577 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 save_CFLAGS="$CFLAGS"
6581 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584
6585 int
6586 main ()
6587 {
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 if ac_fn_c_try_compile "$LINENO"; then :
6594 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6595 else
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6597 fi
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 CFLAGS="$save_CFLAGS"
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6602 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6603 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6604 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6605 fi
6606
6607 fi
6608
6609 # Check whether --enable-werror-always was given.
6610 if test "${enable_werror_always+set}" = set; then :
6611 enableval=$enable_werror_always;
6612 else
6613 enable_werror_always=no
6614 fi
6615
6616 if test $enable_werror_always = yes; then :
6617 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6618 fi
6619
6620
6621
6622 # The above macros do nothing if the compiler is not GCC. However, the
6623 # Makefile has more goo to add other flags, so these variables are used
6624 # to enable warnings only for GCC.
6625 warn_cflags=
6626 warn_cxxflags=
6627 if test "x$GCC" = "xyes"; then
6628 warn_cflags='$(GCC_WARN_CFLAGS)'
6629 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6630 fi
6631
6632
6633
6634 # Disable exceptions and RTTI if building with g++
6635 noexception_flags=
6636 save_CFLAGS="$CFLAGS"
6637 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6638 # Do the check with the no- prefix removed since gcc silently
6639 # accepts any -Wno-* option on purpose
6640 case $real_option in
6641 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6642 *) option=$real_option ;;
6643 esac
6644 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6645
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6647 $as_echo_n "checking whether $CC supports $option... " >&6; }
6648 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 CFLAGS="$option"
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654
6655 int
6656 main ()
6657 {
6658
6659 ;
6660 return 0;
6661 }
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"; then :
6664 eval "$as_acx_Woption=yes"
6665 else
6666 eval "$as_acx_Woption=no"
6667 fi
6668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6669
6670 fi
6671 eval ac_res=\$$as_acx_Woption
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6673 $as_echo "$ac_res" >&6; }
6674 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6675 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6676 fi
6677 done
6678 CFLAGS="$save_CFLAGS"
6679
6680
6681 # Enable expensive internal checks
6682 is_release=
6683 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6684 is_release=yes
6685 fi
6686
6687 # Check whether --enable-checking was given.
6688 if test "${enable_checking+set}" = set; then :
6689 enableval=$enable_checking; ac_checking_flags="${enableval}"
6690 else
6691
6692 # Determine the default checks.
6693 if test x$is_release = x ; then
6694 ac_checking_flags=yes
6695 else
6696 ac_checking_flags=release
6697 fi
6698 fi
6699
6700 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6701 for check in release $ac_checking_flags
6702 do
6703 case $check in
6704 # these set all the flags to specific states
6705 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6706 ac_fold_checking= ; ac_gc_checking=1 ;
6707 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6708 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6709 ac_tree_checking=1 ; ac_valgrind_checking= ;
6710 ac_types_checking=1 ;;
6711 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6712 ac_fold_checking= ; ac_gc_checking= ;
6713 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6714 ac_rtlflag_checking= ; ac_runtime_checking= ;
6715 ac_tree_checking= ; ac_valgrind_checking= ;
6716 ac_types_checking= ;;
6717 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6718 ac_fold_checking=1 ; ac_gc_checking=1 ;
6719 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6720 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6721 ac_tree_checking=1 ; ac_valgrind_checking= ;
6722 ac_types_checking=1 ;;
6723 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6724 ac_fold_checking= ; ac_gc_checking= ;
6725 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6726 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6727 ac_tree_checking= ; ac_valgrind_checking= ;
6728 ac_types_checking= ;;
6729 # these enable particular checks
6730 assert) ac_assert_checking=1 ;;
6731 df) ac_df_checking=1 ;;
6732 fold) ac_fold_checking=1 ;;
6733 gc) ac_gc_checking=1 ;;
6734 gcac) ac_gc_always_collect=1 ;;
6735 gimple) ac_gimple_checking=1 ;;
6736 misc) ac_checking=1 ;;
6737 rtl) ac_rtl_checking=1 ;;
6738 rtlflag) ac_rtlflag_checking=1 ;;
6739 runtime) ac_runtime_checking=1 ;;
6740 tree) ac_tree_checking=1 ;;
6741 types) ac_types_checking=1 ;;
6742 valgrind) ac_valgrind_checking=1 ;;
6743 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6744 esac
6745 done
6746 IFS="$ac_save_IFS"
6747
6748 nocommon_flag=""
6749 if test x$ac_checking != x ; then
6750
6751 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6752
6753 nocommon_flag=-fno-common
6754 fi
6755
6756 if test x$ac_df_checking != x ; then
6757
6758 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6759
6760 fi
6761 if test x$ac_assert_checking != x ; then
6762
6763 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6764
6765 fi
6766 if test x$ac_gimple_checking != x ; then
6767
6768 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6769
6770 fi
6771
6772 if test x$ac_runtime_checking != x ; then
6773
6774 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6775
6776 fi
6777 if test x$ac_tree_checking != x ; then
6778
6779 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6780
6781 TREEBROWSER=tree-browser.o
6782 TREECHECKING=yes
6783 fi
6784 if test x$ac_types_checking != x ; then
6785
6786 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6787
6788 fi
6789
6790
6791 if test x$ac_rtl_checking != x ; then
6792
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6794
6795 fi
6796 if test x$ac_rtlflag_checking != x ; then
6797
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6799
6800 fi
6801 if test x$ac_gc_checking != x ; then
6802
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6804
6805 fi
6806 if test x$ac_gc_always_collect != x ; then
6807
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6809
6810 fi
6811 if test x$ac_fold_checking != x ; then
6812
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6814
6815 fi
6816 valgrind_path_defines=
6817 valgrind_command=
6818
6819 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6821 have_valgrind_h=yes
6822 else
6823 have_valgrind_h=no
6824 fi
6825
6826
6827
6828 # It is certainly possible that there's valgrind but no valgrind.h.
6829 # GCC relies on making annotations so we must have both.
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6831 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <valgrind/memcheck.h>
6835 #ifndef VALGRIND_DISCARD
6836 #error VALGRIND_DISCARD not defined
6837 #endif
6838 _ACEOF
6839 if ac_fn_c_try_cpp "$LINENO"; then :
6840 gcc_cv_header_valgrind_memcheck_h=yes
6841 else
6842 gcc_cv_header_valgrind_memcheck_h=no
6843 fi
6844 rm -f conftest.err conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6846 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6848 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <memcheck.h>
6852 #ifndef VALGRIND_DISCARD
6853 #error VALGRIND_DISCARD not defined
6854 #endif
6855 _ACEOF
6856 if ac_fn_c_try_cpp "$LINENO"; then :
6857 gcc_cv_header_memcheck_h=yes
6858 else
6859 gcc_cv_header_memcheck_h=no
6860 fi
6861 rm -f conftest.err conftest.$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6863 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6864 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6865
6866 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6867
6868 fi
6869 if test $gcc_cv_header_memcheck_h = yes; then
6870
6871 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6872
6873 fi
6874
6875 if test x$ac_valgrind_checking != x ; then
6876
6877 # Prepare PATH_SEPARATOR.
6878 # The user is always right.
6879 if test "${PATH_SEPARATOR+set}" != set; then
6880 echo "#! /bin/sh" >conf$$.sh
6881 echo "exit 0" >>conf$$.sh
6882 chmod +x conf$$.sh
6883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6884 PATH_SEPARATOR=';'
6885 else
6886 PATH_SEPARATOR=:
6887 fi
6888 rm -f conf$$.sh
6889 fi
6890
6891 # Find out how to test for executable files. Don't use a zero-byte file,
6892 # as systems may use methods other than mode bits to determine executability.
6893 cat >conf$$.file <<_ASEOF
6894 #! /bin/sh
6895 exit 0
6896 _ASEOF
6897 chmod +x conf$$.file
6898 if test -x conf$$.file >/dev/null 2>&1; then
6899 ac_executable_p="test -x"
6900 else
6901 ac_executable_p="test -f"
6902 fi
6903 rm -f conf$$.file
6904
6905 # Extract the first word of "valgrind", so it can be a program name with args.
6906 set dummy valgrind; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 case "$valgrind_path" in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6918 for ac_dir in $PATH; do
6919 IFS="$ac_save_IFS"
6920 test -z "$ac_dir" && ac_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6923 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6924 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6925 break 2
6926 fi
6927 fi
6928 done
6929 done
6930 IFS="$ac_save_IFS"
6931 ;;
6932 esac
6933 fi
6934 valgrind_path="$ac_cv_path_valgrind_path"
6935 if test -n "$valgrind_path"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6937 $as_echo "$valgrind_path" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943 if test "x$valgrind_path" = "x" \
6944 || (test $have_valgrind_h = no \
6945 && test $gcc_cv_header_memcheck_h = no \
6946 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6947 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6948 fi
6949 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6950 valgrind_command="$valgrind_path -q"
6951
6952 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6953
6954 fi
6955
6956
6957
6958 # Enable code coverage collection
6959 # Check whether --enable-coverage was given.
6960 if test "${enable_coverage+set}" = set; then :
6961 enableval=$enable_coverage; case "${enableval}" in
6962 yes|noopt)
6963 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6964 ;;
6965 opt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6967 ;;
6968 no)
6969 # a.k.a. --disable-coverage
6970 coverage_flags=""
6971 ;;
6972 *)
6973 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6974 ;;
6975 esac
6976 else
6977 coverage_flags=""
6978 fi
6979
6980
6981
6982 # Check whether --enable-gather-detailed-mem-stats was given.
6983 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6984 enableval=$enable_gather_detailed_mem_stats;
6985 else
6986 enable_gather_detailed_mem_stats=no
6987 fi
6988
6989 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6990
6991 cat >>confdefs.h <<_ACEOF
6992 #define GATHER_STATISTICS $gather_stats
6993 _ACEOF
6994
6995
6996 # Check whether --enable-valgrind-annotations was given.
6997 if test "${enable_valgrind_annotations+set}" = set; then :
6998 enableval=$enable_valgrind_annotations;
6999 else
7000 enable_valgrind_annotations=no
7001 fi
7002
7003 if test x$enable_valgrind_annotations != xno \
7004 || test x$ac_valgrind_checking != x; then
7005 if (test $have_valgrind_h = no \
7006 && test $gcc_cv_header_memcheck_h = no \
7007 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7008 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7009 fi
7010
7011 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7012
7013 fi
7014
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7018
7019 # With stabs
7020
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval=$with_stabs; stabs="$with_stabs"
7024 else
7025 stabs=no
7026 fi
7027
7028
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval=$enable_multilib;
7033 else
7034 enable_multilib=yes
7035 fi
7036
7037
7038
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto) enable_multiarch=$enableval;;
7044 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7045 esac
7046 else
7047 enable_multiarch=auto
7048 fi
7049
7050 if test x${enable_multiarch} = xauto; then
7051 if test x${with_native_system_header_dir} != x; then
7052 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7053 enable_multiarch=no
7054 fi
7055 if test x$host != x$target && test "x$with_sysroot" = x; then
7056 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7057 enable_multiarch=no
7058 fi
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7062
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7065
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7067
7068
7069
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval=$enable___cxa_atexit;
7074 fi
7075
7076
7077 # Enable C extension for decimal float if target supports it.
7078
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7084 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7086 esac
7087
7088 else
7089
7090 case $target in
7091 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7092 i?86*-*-gnu* | \
7093 i?86*-*-mingw* | x86_64*-*-mingw* | \
7094 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7095 enable_decimal_float=yes
7096 ;;
7097 *)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float=no
7101 ;;
7102 esac
7103
7104 fi
7105
7106
7107 # x86's use BID format instead of DPD
7108 case x$enable_decimal_float in
7109 xyes)
7110 case $target in
7111 i?86*-*-* | x86_64*-*-*)
7112 enable_decimal_float=bid
7113 ;;
7114 *)
7115 enable_decimal_float=dpd
7116 ;;
7117 esac
7118 default_decimal_float=$enable_decimal_float
7119 ;;
7120 xno)
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float=dpd
7124 ;;
7125 esac
7126
7127
7128
7129
7130 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7131
7132 cat >>confdefs.h <<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7134 _ACEOF
7135
7136
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float=$default_decimal_float
7139
7140 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7141
7142 cat >>confdefs.h <<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7144 _ACEOF
7145
7146
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval=$enable_fixed_point;
7151 else
7152
7153 case $target in
7154 arm*)
7155 enable_fixed_point=yes
7156 ;;
7157
7158 mips*-*-*)
7159 enable_fixed_point=yes
7160 ;;
7161 *)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point=no
7165 ;;
7166 esac
7167
7168 fi
7169
7170
7171
7172 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7173
7174 cat >>confdefs.h <<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7176 _ACEOF
7177
7178
7179 # Enable threads
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval=$enable_threads;
7185 else
7186 enable_threads=''
7187 fi
7188
7189
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval=$enable_tls;
7193 case $enable_tls in
7194 yes | no) ;;
7195 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7197 esac
7198
7199 else
7200 enable_tls=''
7201 fi
7202
7203
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7207 objc_boehm_gc=''
7208 else
7209 objc_boehm_gc=1
7210 fi
7211 else
7212 objc_boehm_gc=''
7213 fi
7214
7215
7216
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7220 else
7221 dwarf2=no
7222 fi
7223
7224
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval=$enable_shared;
7228 case $enable_shared in
7229 yes | no) ;;
7230 *)
7231 enable_shared=no
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7233 for pkg in $enableval; do
7234 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7235 enable_shared=yes
7236 fi
7237 done
7238 IFS="$ac_save_ifs"
7239 ;;
7240 esac
7241
7242 else
7243 enable_shared=yes
7244 fi
7245
7246
7247
7248
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* | [A-Za-z]:[\\/]*) ;;
7255 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7256 esac
7257 configured_native_system_header_dir="${withval}"
7258
7259 else
7260 configured_native_system_header_dir=
7261 fi
7262
7263
7264
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval=$with_build_sysroot; if test x"$withval" != x ; then
7268 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7269 fi
7270 else
7271 SYSROOT_CFLAGS_FOR_TARGET=
7272 fi
7273
7274
7275
7276 if test "x$prefix" = xNONE; then
7277 test_prefix=/usr/local
7278 else
7279 test_prefix=$prefix
7280 fi
7281 if test "x$exec_prefix" = xNONE; then
7282 test_exec_prefix=$test_prefix
7283 else
7284 test_exec_prefix=$exec_prefix
7285 fi
7286
7287
7288 # Check whether --with-sysroot was given.
7289 if test "${with_sysroot+set}" = set; then :
7290 withval=$with_sysroot;
7291 case ${with_sysroot} in
7292 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7293 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7294 esac
7295
7296 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7297 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7298
7299 case ${TARGET_SYSTEM_ROOT} in
7300 "${test_prefix}"|"${test_prefix}/"*|\
7301 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7302 '${prefix}'|'${prefix}/'*|\
7303 '${exec_prefix}'|'${exec_prefix}/'*)
7304 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7305 TARGET_SYSTEM_ROOT_DEFINE="$t"
7306 ;;
7307 esac
7308
7309 else
7310
7311 TARGET_SYSTEM_ROOT=
7312 TARGET_SYSTEM_ROOT_DEFINE=
7313 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7314
7315 fi
7316
7317
7318
7319
7320
7321
7322 # Check whether --with-specs was given.
7323 if test "${with_specs+set}" = set; then :
7324 withval=$with_specs; CONFIGURE_SPECS=$withval
7325 else
7326 CONFIGURE_SPECS=
7327
7328 fi
7329
7330
7331
7332
7333
7334 # Check whether --with-pkgversion was given.
7335 if test "${with_pkgversion+set}" = set; then :
7336 withval=$with_pkgversion; case "$withval" in
7337 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7338 no) PKGVERSION= ;;
7339 *) PKGVERSION="($withval) " ;;
7340 esac
7341 else
7342 PKGVERSION="(GCC) "
7343
7344 fi
7345
7346
7347
7348
7349
7350 # Check whether --with-bugurl was given.
7351 if test "${with_bugurl+set}" = set; then :
7352 withval=$with_bugurl; case "$withval" in
7353 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7354 no) BUGURL=
7355 ;;
7356 *) BUGURL="$withval"
7357 ;;
7358 esac
7359 else
7360 BUGURL="http://gcc.gnu.org/bugs.html"
7361
7362 fi
7363
7364 case ${BUGURL} in
7365 "")
7366 REPORT_BUGS_TO=
7367 REPORT_BUGS_TEXI=
7368 ;;
7369 *)
7370 REPORT_BUGS_TO="<$BUGURL>"
7371 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7372 ;;
7373 esac;
7374
7375
7376
7377
7378 # Sanity check enable_languages in case someone does not run the toplevel
7379 # configure # script.
7380 # Check whether --enable-languages was given.
7381 if test "${enable_languages+set}" = set; then :
7382 enableval=$enable_languages; case ,${enable_languages}, in
7383 ,,|,yes,)
7384 # go safe -- we cannot be much sure without the toplevel
7385 # configure's
7386 # analysis of which target libs are present and usable
7387 enable_languages=c
7388 ;;
7389 *,all,*)
7390 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7391 ;;
7392 *,c,*)
7393 ;;
7394 *)
7395 enable_languages=c,${enable_languages}
7396 ;;
7397 esac
7398 else
7399 enable_languages=c
7400 fi
7401
7402
7403
7404 # Check whether --with-multilib-list was given.
7405 if test "${with_multilib_list+set}" = set; then :
7406 withval=$with_multilib_list; :
7407 else
7408 with_multilib_list=default
7409 fi
7410
7411
7412 # -------------------------
7413 # Checks for other programs
7414 # -------------------------
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7417 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7418 set x ${MAKE-make}
7419 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7420 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 cat >conftest.make <<\_ACEOF
7424 SHELL = /bin/sh
7425 all:
7426 @echo '@@@%%%=$(MAKE)=@@@%%%'
7427 _ACEOF
7428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7430 *@@@%%%=?*=@@@%%%*)
7431 eval ac_cv_prog_make_${ac_make}_set=yes;;
7432 *)
7433 eval ac_cv_prog_make_${ac_make}_set=no;;
7434 esac
7435 rm -f conftest.make
7436 fi
7437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7439 $as_echo "yes" >&6; }
7440 SET_MAKE=
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 SET_MAKE="MAKE=${MAKE-make}"
7445 fi
7446
7447
7448 # Find some useful tools
7449 for ac_prog in gawk mawk nawk awk
7450 do
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_AWK+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7457 else
7458 if test -n "$AWK"; then
7459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7460 else
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_AWK="$ac_prog"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472 done
7473 done
7474 IFS=$as_save_IFS
7475
7476 fi
7477 fi
7478 AWK=$ac_cv_prog_AWK
7479 if test -n "$AWK"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7481 $as_echo "$AWK" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487
7488 test -n "$AWK" && break
7489 done
7490
7491 # We need awk to create options.c and options.h.
7492 # Bail out if it's missing.
7493 case ${AWK} in
7494 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7495 esac
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7498 $as_echo_n "checking whether ln -s works... " >&6; }
7499 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 rm -f conftestdata_t
7503 echo >conftestdata_f
7504 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7505 then
7506 gcc_cv_prog_LN_S="ln -s"
7507 else
7508 if ln conftestdata_f conftestdata_t 2>/dev/null
7509 then
7510 gcc_cv_prog_LN_S=ln
7511 else
7512 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7513 then
7514 gcc_cv_prog_LN_S="cp -p"
7515 else
7516 gcc_cv_prog_LN_S=cp
7517 fi
7518 fi
7519 fi
7520 rm -f conftestdata_f conftestdata_t
7521
7522 fi
7523 LN_S="$gcc_cv_prog_LN_S"
7524 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7526 $as_echo "yes" >&6; }
7527 else
7528 if test "$gcc_cv_prog_LN_S" = "ln"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7530 $as_echo "no, using ln" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7533 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7534 fi
7535 fi
7536
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7538 $as_echo_n "checking whether ln works... " >&6; }
7539 if test "${acx_cv_prog_LN+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 rm -f conftestdata_t
7543 echo >conftestdata_f
7544 if ln conftestdata_f conftestdata_t 2>/dev/null
7545 then
7546 acx_cv_prog_LN=ln
7547 else
7548 acx_cv_prog_LN=no
7549 fi
7550 rm -f conftestdata_f conftestdata_t
7551
7552 fi
7553 if test $acx_cv_prog_LN = no; then
7554 LN="$LN_S"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7556 $as_echo "no, using $LN" >&6; }
7557 else
7558 LN="$acx_cv_prog_LN"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560 $as_echo "yes" >&6; }
7561 fi
7562
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$RANLIB"; then
7572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 RANLIB=$ac_cv_prog_RANLIB
7592 if test -n "$RANLIB"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7594 $as_echo "$RANLIB" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600
7601 fi
7602 if test -z "$ac_cv_prog_RANLIB"; then
7603 ac_ct_RANLIB=$RANLIB
7604 # Extract the first word of "ranlib", so it can be a program name with args.
7605 set dummy ranlib; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$ac_ct_RANLIB"; then
7612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_ac_ct_RANLIB="ranlib"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7632 if test -n "$ac_ct_RANLIB"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7634 $as_echo "$ac_ct_RANLIB" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640 if test "x$ac_ct_RANLIB" = x; then
7641 RANLIB=":"
7642 else
7643 case $cross_compiling:$ac_tool_warned in
7644 yes:)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7648 esac
7649 RANLIB=$ac_ct_RANLIB
7650 fi
7651 else
7652 RANLIB="$ac_cv_prog_RANLIB"
7653 fi
7654
7655 ranlib_flags=""
7656
7657
7658 # Find a good install program. We prefer a C program (faster),
7659 # so one script is as good as another. But avoid the broken or
7660 # incompatible versions:
7661 # SysV /etc/install, /usr/sbin/install
7662 # SunOS /usr/etc/install
7663 # IRIX /sbin/install
7664 # AIX /bin/install
7665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7667 # ./install, which can be erroneously created by make from ./install.sh.
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7669 $as_echo_n "checking for a BSD compatible install... " >&6; }
7670 if test -z "$INSTALL"; then
7671 if test "${ac_cv_path_install+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7675 for ac_dir in $PATH; do
7676 # Account for people who put trailing slashes in PATH elements.
7677 case "$ac_dir/" in
7678 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7679 *)
7680 # OSF1 and SCO ODT 3.0 have their own names for install.
7681 for ac_prog in ginstall scoinst install; do
7682 if test -f $ac_dir/$ac_prog; then
7683 if test $ac_prog = install &&
7684 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7685 # AIX install. It has an incompatible calling convention.
7686 # OSF/1 installbsd also uses dspmsg, but is usable.
7687 :
7688 else
7689 ac_cv_path_install="$ac_dir/$ac_prog -c"
7690 break 2
7691 fi
7692 fi
7693 done
7694 ;;
7695 esac
7696 done
7697 IFS="$ac_save_IFS"
7698
7699 fi
7700 if test "${ac_cv_path_install+set}" = set; then
7701 INSTALL="$ac_cv_path_install"
7702 else
7703 # As a last resort, use the slow shell script. We don't cache a
7704 # path for INSTALL within a source directory, because that will
7705 # break other packages using the cache if that directory is
7706 # removed, or if the path is relative.
7707 INSTALL="$ac_install_sh"
7708 fi
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7711 $as_echo "$INSTALL" >&6; }
7712
7713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7714 # It thinks the first close brace ends the variable substitution.
7715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7716
7717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7718
7719
7720 # See if cmp has --ignore-initial.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7722 $as_echo_n "checking for cmp's capabilities... " >&6; }
7723 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 echo abfoo >t1
7727 echo cdfoo >t2
7728 gcc_cv_prog_cmp_skip=slowcompare
7729 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7730 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7731 :
7732 else
7733 gcc_cv_prog_cmp_skip=gnucompare
7734 fi
7735 fi
7736 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7737 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7738 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7739 :
7740 else
7741 gcc_cv_prog_cmp_skip=fastcompare
7742 fi
7743 fi
7744 fi
7745 rm t1 t2
7746
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7749 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7750 make_compare_target=$gcc_cv_prog_cmp_skip
7751
7752
7753
7754 # See if we have the mktemp command.
7755 # Extract the first word of "mktemp", so it can be a program name with args.
7756 set dummy mktemp; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$have_mktemp_command"; then
7763 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_have_mktemp_command="yes"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7781 fi
7782 fi
7783 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7784 if test -n "$have_mktemp_command"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7786 $as_echo "$have_mktemp_command" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791
7792
7793
7794 # See if makeinfo has been installed and is modern enough
7795 # that we can use it.
7796
7797 # Extract the first word of "makeinfo", so it can be a program name with args.
7798 set dummy makeinfo; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$MAKEINFO"; then
7805 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_MAKEINFO="makeinfo"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 MAKEINFO=$ac_cv_prog_MAKEINFO
7825 if test -n "$MAKEINFO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7827 $as_echo "$MAKEINFO" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 if test -n "$MAKEINFO"; then
7835 # Found it, now check the version.
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7837 $as_echo_n "checking for modern makeinfo... " >&6; }
7838 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7842 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7843
7844 case $ac_prog_version in
7845 '') gcc_cv_prog_makeinfo_modern=no;;
7846 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7847 *) gcc_cv_prog_makeinfo_modern=no;;
7848 esac
7849
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7852 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7853 else
7854 gcc_cv_prog_makeinfo_modern=no
7855 fi
7856 if test $gcc_cv_prog_makeinfo_modern = no; then
7857 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7858 fi
7859
7860 if test $gcc_cv_prog_makeinfo_modern = no; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7862 *** Makeinfo is missing or too old.
7863 *** Info documentation will not be built." >&5
7864 $as_echo "$as_me: WARNING:
7865 *** Makeinfo is missing or too old.
7866 *** Info documentation will not be built." >&2;}
7867 BUILD_INFO=
7868 else
7869 BUILD_INFO=info
7870 fi
7871
7872
7873 # Is pod2man recent enough to regenerate manpages?
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7875 $as_echo_n "checking for recent Pod::Man... " >&6; }
7876 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878 $as_echo "yes" >&6; }
7879 GENERATED_MANPAGES=generated-manpages
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 GENERATED_MANPAGES=
7884 fi
7885
7886
7887 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7888
7889 # How about lex?
7890 for ac_prog in flex
7891 do
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_FLEX+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 if test -n "$FLEX"; then
7900 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_FLEX="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 FLEX=$ac_cv_prog_FLEX
7920 if test -n "$FLEX"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7922 $as_echo "$FLEX" >&6; }
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928
7929 test -n "$FLEX" && break
7930 done
7931 test -n "$FLEX" || FLEX="$MISSING flex"
7932
7933
7934 # Bison?
7935 for ac_prog in bison
7936 do
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy $ac_prog; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_BISON+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$BISON"; then
7945 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_BISON="$ac_prog"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 BISON=$ac_cv_prog_BISON
7965 if test -n "$BISON"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7967 $as_echo "$BISON" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 test -n "$BISON" && break
7975 done
7976 test -n "$BISON" || BISON="$MISSING bison"
7977
7978
7979 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7980 # check for build == host before using them.
7981
7982 # NM
7983 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7984 && test -d ../binutils ; then
7985 NM='${objdir}/../binutils/nm-new'
7986 else
7987 # Extract the first word of "nm", so it can be a program name with args.
7988 set dummy nm; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_NM+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 if test -n "$NM"; then
7995 ac_cv_prog_NM="$NM" # Let the user override the test.
7996 else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_NM="nm"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008 done
8009 done
8010 IFS=$as_save_IFS
8011
8012 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8013 fi
8014 fi
8015 NM=$ac_cv_prog_NM
8016 if test -n "$NM"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8018 $as_echo "$NM" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025 fi
8026
8027 # AR
8028 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8029 && test -d ../binutils ; then
8030 AR='${objdir}/../binutils/ar'
8031 else
8032 # Extract the first word of "ar", so it can be a program name with args.
8033 set dummy ar; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_AR+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$AR"; then
8040 ac_cv_prog_AR="$AR" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_AR="ar"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8058 fi
8059 fi
8060 AR=$ac_cv_prog_AR
8061 if test -n "$AR"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8063 $as_echo "$AR" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069
8070 fi
8071
8072
8073 # --------------------
8074 # Checks for C headers
8075 # --------------------
8076
8077 # Need to reject headers which give warnings, so that the -Werror bootstrap
8078 # works later. *sigh* This needs to come before all header checks.
8079
8080 ac_c_preproc_warn_flag=yes
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8083 $as_echo_n "checking for ANSI C header files... " >&6; }
8084 if test "${ac_cv_header_stdc+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 #include <stdlib.h>
8090 #include <stdarg.h>
8091 #include <string.h>
8092 #include <float.h>
8093
8094 int
8095 main ()
8096 {
8097
8098 ;
8099 return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 ac_cv_header_stdc=yes
8104 else
8105 ac_cv_header_stdc=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108
8109 if test $ac_cv_header_stdc = yes; then
8110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 #include <string.h>
8114
8115 _ACEOF
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "memchr" >/dev/null 2>&1; then :
8118
8119 else
8120 ac_cv_header_stdc=no
8121 fi
8122 rm -f conftest*
8123
8124 fi
8125
8126 if test $ac_cv_header_stdc = yes; then
8127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 #include <stdlib.h>
8131
8132 _ACEOF
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "free" >/dev/null 2>&1; then :
8135
8136 else
8137 ac_cv_header_stdc=no
8138 fi
8139 rm -f conftest*
8140
8141 fi
8142
8143 if test $ac_cv_header_stdc = yes; then
8144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8145 if test "$cross_compiling" = yes; then :
8146 :
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <ctype.h>
8151 #include <stdlib.h>
8152 #if ((' ' & 0x0FF) == 0x020)
8153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8155 #else
8156 # define ISLOWER(c) \
8157 (('a' <= (c) && (c) <= 'i') \
8158 || ('j' <= (c) && (c) <= 'r') \
8159 || ('s' <= (c) && (c) <= 'z'))
8160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8161 #endif
8162
8163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8164 int
8165 main ()
8166 {
8167 int i;
8168 for (i = 0; i < 256; i++)
8169 if (XOR (islower (i), ISLOWER (i))
8170 || toupper (i) != TOUPPER (i))
8171 return 2;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_run "$LINENO"; then :
8176
8177 else
8178 ac_cv_header_stdc=no
8179 fi
8180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8181 conftest.$ac_objext conftest.beam conftest.$ac_ext
8182 fi
8183
8184 fi
8185 fi
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8187 $as_echo "$ac_cv_header_stdc" >&6; }
8188 if test $ac_cv_header_stdc = yes; then
8189
8190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8191
8192 fi
8193
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8195 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8196 if test "${ac_cv_header_time+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <sys/types.h>
8202 #include <sys/time.h>
8203 #include <time.h>
8204
8205 int
8206 main ()
8207 {
8208 if ((struct tm *) 0)
8209 return 0;
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 ac_cv_header_time=yes
8216 else
8217 ac_cv_header_time=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8222 $as_echo "$ac_cv_header_time" >&6; }
8223 if test $ac_cv_header_time = yes; then
8224
8225 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8226
8227 fi
8228
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8230 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8231 if test "${gcc_cv_header_string+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <string.h>
8237 #include <strings.h>
8238 int
8239 main ()
8240 {
8241
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"; then :
8247 gcc_cv_header_string=yes
8248 else
8249 gcc_cv_header_string=no
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8254 $as_echo "$gcc_cv_header_string" >&6; }
8255 if test $gcc_cv_header_string = yes; then
8256
8257 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8258
8259 fi
8260
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8262 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8263 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <sys/types.h>
8269 #include <sys/wait.h>
8270 #ifndef WEXITSTATUS
8271 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8272 #endif
8273 #ifndef WIFEXITED
8274 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8275 #endif
8276
8277 int
8278 main ()
8279 {
8280 int s;
8281 wait (&s);
8282 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 ac_cv_header_sys_wait_h=yes
8289 else
8290 ac_cv_header_sys_wait_h=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8295 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8296 if test $ac_cv_header_sys_wait_h = yes; then
8297
8298 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8299
8300 fi
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8303 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8304 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <sys/types.h>
8310 #include <termios.h>
8311 #ifdef TIOCGWINSZ
8312 yes
8313 #endif
8314
8315 _ACEOF
8316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8317 $EGREP "yes" >/dev/null 2>&1; then :
8318 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8319 else
8320 ac_cv_sys_tiocgwinsz_in_termios_h=no
8321 fi
8322 rm -f conftest*
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8326 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8327
8328 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8330 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8331 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <sys/types.h>
8337 #include <sys/ioctl.h>
8338 #ifdef TIOCGWINSZ
8339 yes
8340 #endif
8341
8342 _ACEOF
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 $EGREP "yes" >/dev/null 2>&1; then :
8345 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8346 else
8347 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8348 fi
8349 rm -f conftest*
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8353 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8354
8355 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8356
8357 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8358
8359 fi
8360 fi
8361
8362 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8363 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8364 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8365 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8366 do :
8367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8369 eval as_val=\$$as_ac_Header
8370 if test "x$as_val" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8373 _ACEOF
8374
8375 fi
8376 done
8377
8378
8379 # Check for thread headers.
8380 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8381 if test "x$ac_cv_header_thread_h" = x""yes; then :
8382 have_thread_h=yes
8383 else
8384 have_thread_h=
8385 fi
8386
8387 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8388 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8389 have_pthread_h=yes
8390 else
8391 have_pthread_h=
8392 fi
8393
8394
8395 # These tests can't be done till we know if we have limits.h.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8397 $as_echo_n "checking for CHAR_BIT... " >&6; }
8398 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifdef HAVE_LIMITS_H
8404 #include <limits.h>
8405 #endif
8406 #ifdef CHAR_BIT
8407 found
8408 #endif
8409 _ACEOF
8410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8411 $EGREP "found" >/dev/null 2>&1; then :
8412 gcc_cv_decl_char_bit=yes
8413 else
8414 gcc_cv_decl_char_bit=no
8415 fi
8416 rm -f conftest*
8417
8418
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8421 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8422 if test $gcc_cv_decl_char_bit = no; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8424 $as_echo_n "checking number of bits in a byte... " >&6; }
8425 if test "${gcc_cv_c_nbby+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 i=8
8429 gcc_cv_c_nbby=
8430 while test $i -lt 65; do
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433
8434 int
8435 main ()
8436 {
8437 switch(0) {
8438 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8439 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8440 ; }
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 gcc_cv_c_nbby=$i; break
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 i=`expr $i + 1`
8450 done
8451 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8452
8453 fi
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8455 $as_echo "$gcc_cv_c_nbby" >&6; }
8456 if test $gcc_cv_c_nbby = failed; then
8457 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8458 else
8459
8460 cat >>confdefs.h <<_ACEOF
8461 #define CHAR_BIT $gcc_cv_c_nbby
8462 _ACEOF
8463
8464 fi
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8467 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8468 if test "${ac_cv_c_bigendian+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 ac_cv_c_bigendian=unknown
8472 # See if we're dealing with a universal compiler.
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #ifndef __APPLE_CC__
8476 not a universal capable compiler
8477 #endif
8478 typedef int dummy;
8479
8480 _ACEOF
8481 if ac_fn_c_try_compile "$LINENO"; then :
8482
8483 # Check for potential -arch flags. It is not universal unless
8484 # there are at least two -arch flags with different values.
8485 ac_arch=
8486 ac_prev=
8487 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8488 if test -n "$ac_prev"; then
8489 case $ac_word in
8490 i?86 | x86_64 | ppc | ppc64)
8491 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8492 ac_arch=$ac_word
8493 else
8494 ac_cv_c_bigendian=universal
8495 break
8496 fi
8497 ;;
8498 esac
8499 ac_prev=
8500 elif test "x$ac_word" = "x-arch"; then
8501 ac_prev=arch
8502 fi
8503 done
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8506 if test $ac_cv_c_bigendian = unknown; then
8507 # See if sys/param.h defines the BYTE_ORDER macro.
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 #include <sys/types.h>
8511 #include <sys/param.h>
8512
8513 int
8514 main ()
8515 {
8516 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8517 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8518 && LITTLE_ENDIAN)
8519 bogus endian macros
8520 #endif
8521
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 # It does; now see whether it defined to BIG_ENDIAN or not.
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <sys/types.h>
8531 #include <sys/param.h>
8532
8533 int
8534 main ()
8535 {
8536 #if BYTE_ORDER != BIG_ENDIAN
8537 not big endian
8538 #endif
8539
8540 ;
8541 return 0;
8542 }
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545 ac_cv_c_bigendian=yes
8546 else
8547 ac_cv_c_bigendian=no
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 fi
8553 if test $ac_cv_c_bigendian = unknown; then
8554 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 #include <limits.h>
8558
8559 int
8560 main ()
8561 {
8562 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8563 bogus endian macros
8564 #endif
8565
8566 ;
8567 return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 # It does; now see whether it defined to _BIG_ENDIAN or not.
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8574 #include <limits.h>
8575
8576 int
8577 main ()
8578 {
8579 #ifndef _BIG_ENDIAN
8580 not big endian
8581 #endif
8582
8583 ;
8584 return 0;
8585 }
8586 _ACEOF
8587 if ac_fn_c_try_compile "$LINENO"; then :
8588 ac_cv_c_bigendian=yes
8589 else
8590 ac_cv_c_bigendian=no
8591 fi
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 fi
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 fi
8596 if test $ac_cv_c_bigendian = unknown; then
8597 # Compile a test program.
8598 if test "$cross_compiling" = yes; then :
8599 # Try to guess by grepping values from an object file.
8600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 short int ascii_mm[] =
8603 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8604 short int ascii_ii[] =
8605 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8606 int use_ascii (int i) {
8607 return ascii_mm[i] + ascii_ii[i];
8608 }
8609 short int ebcdic_ii[] =
8610 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8611 short int ebcdic_mm[] =
8612 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8613 int use_ebcdic (int i) {
8614 return ebcdic_mm[i] + ebcdic_ii[i];
8615 }
8616 extern int foo;
8617
8618 int
8619 main ()
8620 {
8621 return use_ascii (foo) == use_ebcdic (foo);
8622 ;
8623 return 0;
8624 }
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"; then :
8627 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8628 ac_cv_c_bigendian=yes
8629 fi
8630 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8631 if test "$ac_cv_c_bigendian" = unknown; then
8632 ac_cv_c_bigendian=no
8633 else
8634 # finding both strings is unlikely to happen, but who knows?
8635 ac_cv_c_bigendian=unknown
8636 fi
8637 fi
8638 fi
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 else
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 int
8645 main ()
8646 {
8647
8648 /* Are we little or big endian? From Harbison&Steele. */
8649 union
8650 {
8651 long int l;
8652 char c[sizeof (long int)];
8653 } u;
8654 u.l = 1;
8655 return u.c[sizeof (long int) - 1] == 1;
8656
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_run "$LINENO"; then :
8662 ac_cv_c_bigendian=no
8663 else
8664 ac_cv_c_bigendian=yes
8665 fi
8666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8667 conftest.$ac_objext conftest.beam conftest.$ac_ext
8668 fi
8669
8670 fi
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8673 $as_echo "$ac_cv_c_bigendian" >&6; }
8674 case $ac_cv_c_bigendian in #(
8675 yes)
8676 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8677 ;; #(
8678 no)
8679 ;; #(
8680 universal)
8681
8682 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8683
8684 ;; #(
8685 *)
8686 as_fn_error "unknown endianness
8687 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8688 esac
8689
8690
8691 # ----------------------
8692 # Checks for C++ headers
8693 # ----------------------
8694
8695 ac_ext=cpp
8696 ac_cpp='$CXXCPP $CPPFLAGS'
8697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8701 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8702 if test -z "$CXXCPP"; then
8703 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 # Double quotes because CXXCPP needs to be expanded
8707 for CXXCPP in "$CXX -E" "/lib/cpp"
8708 do
8709 ac_preproc_ok=false
8710 for ac_cxx_preproc_warn_flag in '' yes
8711 do
8712 # Use a header file that comes with gcc, so configuring glibc
8713 # with a fresh cross-compiler works.
8714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8715 # <limits.h> exists even on freestanding compilers.
8716 # On the NeXT, cc -E runs the code through the compiler's parser,
8717 # not just through cpp. "Syntax error" is here to catch this case.
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #ifdef __STDC__
8721 # include <limits.h>
8722 #else
8723 # include <assert.h>
8724 #endif
8725 Syntax error
8726 _ACEOF
8727 if ac_fn_cxx_try_cpp "$LINENO"; then :
8728
8729 else
8730 # Broken: fails on valid input.
8731 continue
8732 fi
8733 rm -f conftest.err conftest.$ac_ext
8734
8735 # OK, works on sane cases. Now check whether nonexistent headers
8736 # can be detected and how.
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <ac_nonexistent.h>
8740 _ACEOF
8741 if ac_fn_cxx_try_cpp "$LINENO"; then :
8742 # Broken: success on invalid input.
8743 continue
8744 else
8745 # Passes both tests.
8746 ac_preproc_ok=:
8747 break
8748 fi
8749 rm -f conftest.err conftest.$ac_ext
8750
8751 done
8752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8753 rm -f conftest.err conftest.$ac_ext
8754 if $ac_preproc_ok; then :
8755 break
8756 fi
8757
8758 done
8759 ac_cv_prog_CXXCPP=$CXXCPP
8760
8761 fi
8762 CXXCPP=$ac_cv_prog_CXXCPP
8763 else
8764 ac_cv_prog_CXXCPP=$CXXCPP
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8767 $as_echo "$CXXCPP" >&6; }
8768 ac_preproc_ok=false
8769 for ac_cxx_preproc_warn_flag in '' yes
8770 do
8771 # Use a header file that comes with gcc, so configuring glibc
8772 # with a fresh cross-compiler works.
8773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 # <limits.h> exists even on freestanding compilers.
8775 # On the NeXT, cc -E runs the code through the compiler's parser,
8776 # not just through cpp. "Syntax error" is here to catch this case.
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 #ifdef __STDC__
8780 # include <limits.h>
8781 #else
8782 # include <assert.h>
8783 #endif
8784 Syntax error
8785 _ACEOF
8786 if ac_fn_cxx_try_cpp "$LINENO"; then :
8787
8788 else
8789 # Broken: fails on valid input.
8790 continue
8791 fi
8792 rm -f conftest.err conftest.$ac_ext
8793
8794 # OK, works on sane cases. Now check whether nonexistent headers
8795 # can be detected and how.
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 #include <ac_nonexistent.h>
8799 _ACEOF
8800 if ac_fn_cxx_try_cpp "$LINENO"; then :
8801 # Broken: success on invalid input.
8802 continue
8803 else
8804 # Passes both tests.
8805 ac_preproc_ok=:
8806 break
8807 fi
8808 rm -f conftest.err conftest.$ac_ext
8809
8810 done
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.$ac_ext
8813 if $ac_preproc_ok; then :
8814
8815 else
8816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8819 See \`config.log' for more details." >&5
8820 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8821 See \`config.log' for more details." >&2;}; }
8822 fi
8823
8824 ac_ext=c
8825 ac_cpp='$CPP $CPPFLAGS'
8826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829
8830
8831 ac_ext=cpp
8832 ac_cpp='$CXXCPP $CPPFLAGS'
8833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8836
8837
8838
8839 for ac_header in unordered_map
8840 do :
8841 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8842 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_UNORDERED_MAP 1
8845 _ACEOF
8846
8847 fi
8848 done
8849
8850 for ac_header in tr1/unordered_map
8851 do :
8852 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8853 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8854 cat >>confdefs.h <<_ACEOF
8855 #define HAVE_TR1_UNORDERED_MAP 1
8856 _ACEOF
8857
8858 fi
8859 done
8860
8861 for ac_header in ext/hash_map
8862 do :
8863 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8864 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8865 cat >>confdefs.h <<_ACEOF
8866 #define HAVE_EXT_HASH_MAP 1
8867 _ACEOF
8868
8869 fi
8870 done
8871
8872
8873 ac_ext=c
8874 ac_cpp='$CPP $CPPFLAGS'
8875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8878
8879
8880 # --------
8881 # Dependency checking.
8882 # --------
8883
8884 ac_ext=cpp
8885 ac_cpp='$CXXCPP $CPPFLAGS'
8886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8889
8890 rm -rf .tst 2>/dev/null
8891 mkdir .tst 2>/dev/null
8892 if test -d .tst; then
8893 am__leading_dot=.
8894 else
8895 am__leading_dot=_
8896 fi
8897 rmdir .tst 2>/dev/null
8898
8899 DEPDIR="${am__leading_dot}deps"
8900
8901 ac_config_commands="$ac_config_commands depdir"
8902
8903
8904 ac_config_commands="$ac_config_commands gccdepdir"
8905
8906
8907 depcc="$CXX" am_compiler_list=
8908
8909 am_depcomp=$ac_aux_dir/depcomp
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8911 $as_echo_n "checking dependency style of $depcc... " >&6; }
8912 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 if test -f "$am_depcomp"; then
8916 # We make a subdir and do the tests there. Otherwise we can end up
8917 # making bogus files that we don't know about and never remove. For
8918 # instance it was reported that on HP-UX the gcc test will end up
8919 # making a dummy file named `D' -- because `-MD' means `put the output
8920 # in D'.
8921 mkdir conftest.dir
8922 # Copy depcomp to subdir because otherwise we won't find it if we're
8923 # using a relative directory.
8924 cp "$am_depcomp" conftest.dir
8925 cd conftest.dir
8926 # We will build objects and dependencies in a subdirectory because
8927 # it helps to detect inapplicable dependency modes. For instance
8928 # both Tru64's cc and ICC support -MD to output dependencies as a
8929 # side effect of compilation, but ICC will put the dependencies in
8930 # the current directory while Tru64 will put them in the object
8931 # directory.
8932 mkdir sub
8933
8934 am_cv_CXX_dependencies_compiler_type=none
8935 if test "$am_compiler_list" = ""; then
8936 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8937 fi
8938 for depmode in $am_compiler_list; do
8939 if test $depmode = none; then break; fi
8940
8941 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8942 # Setup a source with many dependencies, because some compilers
8943 # like to wrap large dependency lists on column 80 (with \), and
8944 # we should not choose a depcomp mode which is confused by this.
8945 #
8946 # We need to recreate these files for each test, as the compiler may
8947 # overwrite some of them when testing with obscure command lines.
8948 # This happens at least with the AIX C compiler.
8949 : > sub/conftest.c
8950 for i in 1 2 3 4 5 6; do
8951 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8952 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8953 # Solaris 8's {/usr,}/bin/sh.
8954 touch sub/conftst$i.h
8955 done
8956 echo "include sub/conftest.Po" > confmf
8957
8958 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8959 # mode. It turns out that the SunPro C++ compiler does not properly
8960 # handle `-M -o', and we need to detect this.
8961 depcmd="depmode=$depmode \
8962 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8964 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8965 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8966 if env $depcmd > conftest.err 2>&1 &&
8967 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8968 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8969 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8970 # icc doesn't choke on unknown options, it will just issue warnings
8971 # or remarks (even with -Werror). So we grep stderr for any message
8972 # that says an option was ignored or not supported.
8973 # When given -MP, icc 7.0 and 7.1 complain thusly:
8974 # icc: Command line warning: ignoring option '-M'; no argument required
8975 # The diagnosis changed in icc 8.0:
8976 # icc: Command line remark: option '-MP' not supported
8977 if (grep 'ignoring option' conftest.err ||
8978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8979 am_cv_CXX_dependencies_compiler_type=$depmode
8980 $as_echo "$as_me:$LINENO: success" >&5
8981 break
8982 fi
8983 fi
8984 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8985 sed -e 's/^/| /' < conftest.err >&5
8986 done
8987
8988 cd ..
8989 rm -rf conftest.dir
8990 else
8991 am_cv_CXX_dependencies_compiler_type=none
8992 fi
8993
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8996 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8997 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8998 then as_fn_error "no usable dependency style found" "$LINENO" 5
8999 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9000
9001 fi
9002
9003 ac_ext=c
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009
9010 # --------
9011 # UNSORTED
9012 # --------
9013
9014
9015 # These libraries may be used by collect2.
9016 # We may need a special search path to get them linked.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9018 $as_echo_n "checking for collect2 libraries... " >&6; }
9019 if test "${gcc_cv_collect2_libs+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 save_LIBS="$LIBS"
9023 for libs in '' -lld -lmld \
9024 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9025 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9026 do
9027 LIBS="$libs"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char ldopen ();
9038 int
9039 main ()
9040 {
9041 return ldopen ();
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"; then :
9047 gcc_cv_collect2_libs="$libs"; break
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 done
9052 LIBS="$save_LIBS"
9053 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9056 $as_echo "$gcc_cv_collect2_libs" >&6; }
9057 case $gcc_cv_collect2_libs in
9058 "none required") ;;
9059 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9060 esac
9061
9062
9063 # When building Ada code on Alpha, we need exc_resume which is usually in
9064 # -lexc. So test for it.
9065 save_LIBS="$LIBS"
9066 LIBS=
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9068 $as_echo_n "checking for library containing exc_resume... " >&6; }
9069 if test "${ac_cv_search_exc_resume+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 ac_func_search_save_LIBS=$LIBS
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075
9076 /* Override any GCC internal prototype to avoid an error.
9077 Use char because int might match the return type of a GCC
9078 builtin and then its argument prototype would still apply. */
9079 #ifdef __cplusplus
9080 extern "C"
9081 #endif
9082 char exc_resume ();
9083 int
9084 main ()
9085 {
9086 return exc_resume ();
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 for ac_lib in '' exc; do
9092 if test -z "$ac_lib"; then
9093 ac_res="none required"
9094 else
9095 ac_res=-l$ac_lib
9096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9097 fi
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_cv_search_exc_resume=$ac_res
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext
9103 if test "${ac_cv_search_exc_resume+set}" = set; then :
9104 break
9105 fi
9106 done
9107 if test "${ac_cv_search_exc_resume+set}" = set; then :
9108
9109 else
9110 ac_cv_search_exc_resume=no
9111 fi
9112 rm conftest.$ac_ext
9113 LIBS=$ac_func_search_save_LIBS
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9116 $as_echo "$ac_cv_search_exc_resume" >&6; }
9117 ac_res=$ac_cv_search_exc_resume
9118 if test "$ac_res" != no; then :
9119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9120
9121 fi
9122
9123 GNAT_LIBEXC="$LIBS"
9124 LIBS="$save_LIBS"
9125
9126
9127 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9128 save_LIBS="$LIBS"
9129 LIBS=
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9131 $as_echo_n "checking for library containing kstat_open... " >&6; }
9132 if test "${ac_cv_search_kstat_open+set}" = set; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 ac_func_search_save_LIBS=$LIBS
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 char kstat_open ();
9146 int
9147 main ()
9148 {
9149 return kstat_open ();
9150 ;
9151 return 0;
9152 }
9153 _ACEOF
9154 for ac_lib in '' kstat; do
9155 if test -z "$ac_lib"; then
9156 ac_res="none required"
9157 else
9158 ac_res=-l$ac_lib
9159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9160 fi
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 ac_cv_search_kstat_open=$ac_res
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext
9166 if test "${ac_cv_search_kstat_open+set}" = set; then :
9167 break
9168 fi
9169 done
9170 if test "${ac_cv_search_kstat_open+set}" = set; then :
9171
9172 else
9173 ac_cv_search_kstat_open=no
9174 fi
9175 rm conftest.$ac_ext
9176 LIBS=$ac_func_search_save_LIBS
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9179 $as_echo "$ac_cv_search_kstat_open" >&6; }
9180 ac_res=$ac_cv_search_kstat_open
9181 if test "$ac_res" != no; then :
9182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9183
9184 fi
9185
9186 EXTRA_GCC_LIBS="$LIBS"
9187 LIBS="$save_LIBS"
9188
9189
9190 # Some systems put ldexp and frexp in libm instead of libc; assume
9191 # they're both in the same place. jcf-dump needs them.
9192 save_LIBS="$LIBS"
9193 LIBS=
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9195 $as_echo_n "checking for library containing ldexp... " >&6; }
9196 if test "${ac_cv_search_ldexp+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 ac_func_search_save_LIBS=$LIBS
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char ldexp ();
9210 int
9211 main ()
9212 {
9213 return ldexp ();
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 for ac_lib in '' m; do
9219 if test -z "$ac_lib"; then
9220 ac_res="none required"
9221 else
9222 ac_res=-l$ac_lib
9223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9224 fi
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 ac_cv_search_ldexp=$ac_res
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext \
9229 conftest$ac_exeext
9230 if test "${ac_cv_search_ldexp+set}" = set; then :
9231 break
9232 fi
9233 done
9234 if test "${ac_cv_search_ldexp+set}" = set; then :
9235
9236 else
9237 ac_cv_search_ldexp=no
9238 fi
9239 rm conftest.$ac_ext
9240 LIBS=$ac_func_search_save_LIBS
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9243 $as_echo "$ac_cv_search_ldexp" >&6; }
9244 ac_res=$ac_cv_search_ldexp
9245 if test "$ac_res" != no; then :
9246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9247
9248 fi
9249
9250 LDEXP_LIB="$LIBS"
9251 LIBS="$save_LIBS"
9252
9253
9254 # Use <inttypes.h> only if it exists,
9255 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9256 # PRId64
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9258 $as_echo_n "checking for inttypes.h... " >&6; }
9259 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #define __STDC_FORMAT_MACROS
9265 #include <sys/types.h>
9266 #include <inttypes.h>
9267 int
9268 main ()
9269 {
9270 intmax_t i = -1;
9271 #ifndef PRId64
9272 choke me
9273 #endif
9274 ;
9275 return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 gcc_cv_header_inttypes_h=yes
9280 else
9281 gcc_cv_header_inttypes_h=no
9282 fi
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9287 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9288 if test $gcc_cv_header_inttypes_h = yes; then
9289
9290 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9291
9292 fi
9293
9294
9295
9296 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9297 popen sysconf strsignal getrusage nl_langinfo \
9298 gettimeofday mbstowcs wcswidth mmap setlocale \
9299 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9300 do :
9301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9303 eval as_val=\$$as_ac_var
9304 if test "x$as_val" = x""yes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9307 _ACEOF
9308
9309 fi
9310 done
9311
9312
9313 if test x$ac_cv_func_mbstowcs = xyes; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9315 $as_echo_n "checking whether mbstowcs works... " >&6; }
9316 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 if test "$cross_compiling" = yes; then :
9320 gcc_cv_func_mbstowcs_works=yes
9321 else
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 #include <stdlib.h>
9325 int main()
9326 {
9327 mbstowcs(0, "", 0);
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_run "$LINENO"; then :
9332 gcc_cv_func_mbstowcs_works=yes
9333 else
9334 gcc_cv_func_mbstowcs_works=no
9335 fi
9336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9337 conftest.$ac_objext conftest.beam conftest.$ac_ext
9338 fi
9339
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9342 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9343 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9344
9345 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9346
9347 fi
9348 fi
9349
9350 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9351 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9352
9353 else
9354
9355 cat >>confdefs.h <<_ACEOF
9356 #define ssize_t int
9357 _ACEOF
9358
9359 fi
9360
9361 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9362 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9363
9364 else
9365
9366 cat >>confdefs.h <<_ACEOF
9367 #define caddr_t char *
9368 _ACEOF
9369
9370 fi
9371
9372
9373
9374 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9375 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9376 gcc_header_sys_mman_h=yes
9377 else
9378 gcc_header_sys_mman_h=no
9379 fi
9380
9381 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9382 if test "x$ac_cv_func_mmap" = x""yes; then :
9383 gcc_func_mmap=yes
9384 else
9385 gcc_func_mmap=no
9386 fi
9387
9388 if test "$gcc_header_sys_mman_h" != yes \
9389 || test "$gcc_func_mmap" != yes; then
9390 gcc_cv_func_mmap_file=no
9391 gcc_cv_func_mmap_dev_zero=no
9392 gcc_cv_func_mmap_anon=no
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9395 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9396 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 # Add a system to this blacklist if
9400 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9401 # memory area containing the same data that you'd get if you applied
9402 # read() to the same fd. The only system known to have a problem here
9403 # is VMS, where text files have record structure.
9404 case "$host_os" in
9405 *vms* | ultrix*)
9406 gcc_cv_func_mmap_file=no ;;
9407 *)
9408 gcc_cv_func_mmap_file=yes;;
9409 esac
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9412 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9414 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9415 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 # Add a system to this blacklist if it has mmap() but /dev/zero
9419 # does not exist, or if mmapping /dev/zero does not give anonymous
9420 # zeroed pages with both the following properties:
9421 # 1. If you map N consecutive pages in with one call, and then
9422 # unmap any subset of those pages, the pages that were not
9423 # explicitly unmapped remain accessible.
9424 # 2. If you map two adjacent blocks of memory and then unmap them
9425 # both at once, they must both go away.
9426 # Systems known to be in this category are Windows (all variants),
9427 # VMS, and Darwin.
9428 case "$host_os" in
9429 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9430 gcc_cv_func_mmap_dev_zero=no ;;
9431 *)
9432 gcc_cv_func_mmap_dev_zero=yes;;
9433 esac
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9436 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9437
9438 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9440 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9441 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 #include <sys/types.h>
9447 #include <sys/mman.h>
9448 #include <unistd.h>
9449
9450 #ifndef MAP_ANONYMOUS
9451 #define MAP_ANONYMOUS MAP_ANON
9452 #endif
9453
9454 int
9455 main ()
9456 {
9457 int n = MAP_ANONYMOUS;
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"; then :
9463 gcc_cv_decl_map_anon=yes
9464 else
9465 gcc_cv_decl_map_anon=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 fi
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9470 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9471
9472 if test $gcc_cv_decl_map_anon = no; then
9473 gcc_cv_func_mmap_anon=no
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9476 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9477 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9481 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9482 # doesn't give anonymous zeroed pages with the same properties listed
9483 # above for use of /dev/zero.
9484 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9485 case "$host_os" in
9486 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9487 gcc_cv_func_mmap_anon=no ;;
9488 *)
9489 gcc_cv_func_mmap_anon=yes;;
9490 esac
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9493 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9494 fi
9495 fi
9496
9497 if test $gcc_cv_func_mmap_file = yes; then
9498
9499 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9500
9501 fi
9502 if test $gcc_cv_func_mmap_dev_zero = yes; then
9503
9504 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9505
9506 fi
9507 if test $gcc_cv_func_mmap_anon = yes; then
9508
9509 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9510
9511 fi
9512
9513
9514 case "${host}" in
9515 *-*-*vms*)
9516 # Under VMS, vfork works very differently than on Unix. The standard test
9517 # won't work, and it isn't easily adaptable. It makes more sense to
9518 # just force it.
9519 ac_cv_func_vfork_works=yes
9520 ;;
9521 esac
9522 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9523 if test "x$ac_cv_type_pid_t" = x""yes; then :
9524
9525 else
9526
9527 cat >>confdefs.h <<_ACEOF
9528 #define pid_t int
9529 _ACEOF
9530
9531 fi
9532
9533 for ac_header in vfork.h
9534 do :
9535 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9536 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_VFORK_H 1
9539 _ACEOF
9540
9541 fi
9542 done
9543
9544 for ac_func in fork vfork
9545 do :
9546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9547 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9548 eval as_val=\$$as_ac_var
9549 if test "x$as_val" = x""yes; then :
9550 cat >>confdefs.h <<_ACEOF
9551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 _ACEOF
9553
9554 fi
9555 done
9556
9557 if test "x$ac_cv_func_fork" = xyes; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9559 $as_echo_n "checking for working fork... " >&6; }
9560 if test "${ac_cv_func_fork_works+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 if test "$cross_compiling" = yes; then :
9564 ac_cv_func_fork_works=cross
9565 else
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 $ac_includes_default
9569 int
9570 main ()
9571 {
9572
9573 /* By Ruediger Kuhlmann. */
9574 return fork () < 0;
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_run "$LINENO"; then :
9581 ac_cv_func_fork_works=yes
9582 else
9583 ac_cv_func_fork_works=no
9584 fi
9585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9587 fi
9588
9589 fi
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9591 $as_echo "$ac_cv_func_fork_works" >&6; }
9592
9593 else
9594 ac_cv_func_fork_works=$ac_cv_func_fork
9595 fi
9596 if test "x$ac_cv_func_fork_works" = xcross; then
9597 case $host in
9598 *-*-amigaos* | *-*-msdosdjgpp*)
9599 # Override, as these systems have only a dummy fork() stub
9600 ac_cv_func_fork_works=no
9601 ;;
9602 *)
9603 ac_cv_func_fork_works=yes
9604 ;;
9605 esac
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9607 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9608 fi
9609 ac_cv_func_vfork_works=$ac_cv_func_vfork
9610 if test "x$ac_cv_func_vfork" = xyes; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9612 $as_echo_n "checking for working vfork... " >&6; }
9613 if test "${ac_cv_func_vfork_works+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 if test "$cross_compiling" = yes; then :
9617 ac_cv_func_vfork_works=cross
9618 else
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 /* Thanks to Paul Eggert for this test. */
9622 $ac_includes_default
9623 #include <sys/wait.h>
9624 #ifdef HAVE_VFORK_H
9625 # include <vfork.h>
9626 #endif
9627 /* On some sparc systems, changes by the child to local and incoming
9628 argument registers are propagated back to the parent. The compiler
9629 is told about this with #include <vfork.h>, but some compilers
9630 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9631 static variable whose address is put into a register that is
9632 clobbered by the vfork. */
9633 static void
9634 #ifdef __cplusplus
9635 sparc_address_test (int arg)
9636 # else
9637 sparc_address_test (arg) int arg;
9638 #endif
9639 {
9640 static pid_t child;
9641 if (!child) {
9642 child = vfork ();
9643 if (child < 0) {
9644 perror ("vfork");
9645 _exit(2);
9646 }
9647 if (!child) {
9648 arg = getpid();
9649 write(-1, "", 0);
9650 _exit (arg);
9651 }
9652 }
9653 }
9654
9655 int
9656 main ()
9657 {
9658 pid_t parent = getpid ();
9659 pid_t child;
9660
9661 sparc_address_test (0);
9662
9663 child = vfork ();
9664
9665 if (child == 0) {
9666 /* Here is another test for sparc vfork register problems. This
9667 test uses lots of local variables, at least as many local
9668 variables as main has allocated so far including compiler
9669 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9670 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9671 reuse the register of parent for one of the local variables,
9672 since it will think that parent can't possibly be used any more
9673 in this routine. Assigning to the local variable will thus
9674 munge parent in the parent process. */
9675 pid_t
9676 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9677 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9678 /* Convince the compiler that p..p7 are live; otherwise, it might
9679 use the same hardware register for all 8 local variables. */
9680 if (p != p1 || p != p2 || p != p3 || p != p4
9681 || p != p5 || p != p6 || p != p7)
9682 _exit(1);
9683
9684 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9685 from child file descriptors. If the child closes a descriptor
9686 before it execs or exits, this munges the parent's descriptor
9687 as well. Test for this by closing stdout in the child. */
9688 _exit(close(fileno(stdout)) != 0);
9689 } else {
9690 int status;
9691 struct stat st;
9692
9693 while (wait(&status) != child)
9694 ;
9695 return (
9696 /* Was there some problem with vforking? */
9697 child < 0
9698
9699 /* Did the child fail? (This shouldn't happen.) */
9700 || status
9701
9702 /* Did the vfork/compiler bug occur? */
9703 || parent != getpid()
9704
9705 /* Did the file descriptor bug occur? */
9706 || fstat(fileno(stdout), &st) != 0
9707 );
9708 }
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_run "$LINENO"; then :
9712 ac_cv_func_vfork_works=yes
9713 else
9714 ac_cv_func_vfork_works=no
9715 fi
9716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9717 conftest.$ac_objext conftest.beam conftest.$ac_ext
9718 fi
9719
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9722 $as_echo "$ac_cv_func_vfork_works" >&6; }
9723
9724 fi;
9725 if test "x$ac_cv_func_fork_works" = xcross; then
9726 ac_cv_func_vfork_works=$ac_cv_func_vfork
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9728 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9729 fi
9730
9731 if test "x$ac_cv_func_vfork_works" = xyes; then
9732
9733 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9734
9735 else
9736
9737 $as_echo "#define vfork fork" >>confdefs.h
9738
9739 fi
9740 if test "x$ac_cv_func_fork_works" = xyes; then
9741
9742 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9743
9744 fi
9745
9746
9747 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9748 # iconv() prototype.
9749 ac_ext=cpp
9750 ac_cpp='$CXXCPP $CPPFLAGS'
9751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9754
9755
9756 if test "X$prefix" = "XNONE"; then
9757 acl_final_prefix="$ac_default_prefix"
9758 else
9759 acl_final_prefix="$prefix"
9760 fi
9761 if test "X$exec_prefix" = "XNONE"; then
9762 acl_final_exec_prefix='${prefix}'
9763 else
9764 acl_final_exec_prefix="$exec_prefix"
9765 fi
9766 acl_save_prefix="$prefix"
9767 prefix="$acl_final_prefix"
9768 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9769 prefix="$acl_save_prefix"
9770
9771
9772 # Check whether --with-gnu-ld was given.
9773 if test "${with_gnu_ld+set}" = set; then :
9774 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9775 else
9776 with_gnu_ld=no
9777 fi
9778
9779 # Prepare PATH_SEPARATOR.
9780 # The user is always right.
9781 if test "${PATH_SEPARATOR+set}" != set; then
9782 echo "#! /bin/sh" >conf$$.sh
9783 echo "exit 0" >>conf$$.sh
9784 chmod +x conf$$.sh
9785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9786 PATH_SEPARATOR=';'
9787 else
9788 PATH_SEPARATOR=:
9789 fi
9790 rm -f conf$$.sh
9791 fi
9792 ac_prog=ld
9793 if test "$GCC" = yes; then
9794 # Check if gcc -print-prog-name=ld gives a path.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9796 $as_echo_n "checking for ld used by GCC... " >&6; }
9797 case $host in
9798 *-*-mingw*)
9799 # gcc leaves a trailing carriage return which upsets mingw
9800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9801 *)
9802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9803 esac
9804 case $ac_prog in
9805 # Accept absolute paths.
9806 [\\/]* | [A-Za-z]:[\\/]*)
9807 re_direlt='/[^/][^/]*/\.\./'
9808 # Canonicalize the path of ld
9809 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9810 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9811 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9812 done
9813 test -z "$LD" && LD="$ac_prog"
9814 ;;
9815 "")
9816 # If it fails, then pretend we aren't using GCC.
9817 ac_prog=ld
9818 ;;
9819 *)
9820 # If it is relative, then search for the first ld in PATH.
9821 with_gnu_ld=unknown
9822 ;;
9823 esac
9824 elif test "$with_gnu_ld" = yes; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9826 $as_echo_n "checking for GNU ld... " >&6; }
9827 else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9829 $as_echo_n "checking for non-GNU ld... " >&6; }
9830 fi
9831 if test "${acl_cv_path_LD+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -z "$LD"; then
9835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9836 for ac_dir in $PATH; do
9837 test -z "$ac_dir" && ac_dir=.
9838 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9839 acl_cv_path_LD="$ac_dir/$ac_prog"
9840 # Check to see if the program is GNU ld. I'd rather use --version,
9841 # but apparently some GNU ld's only accept -v.
9842 # Break only if it was the GNU/non-GNU ld that we prefer.
9843 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9844 test "$with_gnu_ld" != no && break
9845 else
9846 test "$with_gnu_ld" != yes && break
9847 fi
9848 fi
9849 done
9850 IFS="$ac_save_ifs"
9851 else
9852 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9853 fi
9854 fi
9855
9856 LD="$acl_cv_path_LD"
9857 if test -n "$LD"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9859 $as_echo "$LD" >&6; }
9860 else
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9863 fi
9864 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9866 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9867 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9872 acl_cv_prog_gnu_ld=yes
9873 else
9874 acl_cv_prog_gnu_ld=no
9875 fi
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9878 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9879 with_gnu_ld=$acl_cv_prog_gnu_ld
9880
9881
9882
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9884 $as_echo_n "checking for shared library run path origin... " >&6; }
9885 if test "${acl_cv_rpath+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888
9889 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9890 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9891 . ./conftest.sh
9892 rm -f ./conftest.sh
9893 acl_cv_rpath=done
9894
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9897 $as_echo "$acl_cv_rpath" >&6; }
9898 wl="$acl_cv_wl"
9899 libext="$acl_cv_libext"
9900 shlibext="$acl_cv_shlibext"
9901 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9902 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9903 hardcode_direct="$acl_cv_hardcode_direct"
9904 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9905 # Check whether --enable-rpath was given.
9906 if test "${enable_rpath+set}" = set; then :
9907 enableval=$enable_rpath; :
9908 else
9909 enable_rpath=yes
9910 fi
9911
9912
9913
9914
9915
9916
9917
9918
9919 use_additional=yes
9920
9921 acl_save_prefix="$prefix"
9922 prefix="$acl_final_prefix"
9923 acl_save_exec_prefix="$exec_prefix"
9924 exec_prefix="$acl_final_exec_prefix"
9925
9926 eval additional_includedir=\"$includedir\"
9927 eval additional_libdir=\"$libdir\"
9928
9929 exec_prefix="$acl_save_exec_prefix"
9930 prefix="$acl_save_prefix"
9931
9932
9933 # Check whether --with-libiconv-prefix was given.
9934 if test "${with_libiconv_prefix+set}" = set; then :
9935 withval=$with_libiconv_prefix;
9936 if test "X$withval" = "Xno"; then
9937 use_additional=no
9938 else
9939 if test "X$withval" = "X"; then
9940
9941 acl_save_prefix="$prefix"
9942 prefix="$acl_final_prefix"
9943 acl_save_exec_prefix="$exec_prefix"
9944 exec_prefix="$acl_final_exec_prefix"
9945
9946 eval additional_includedir=\"$includedir\"
9947 eval additional_libdir=\"$libdir\"
9948
9949 exec_prefix="$acl_save_exec_prefix"
9950 prefix="$acl_save_prefix"
9951
9952 else
9953 additional_includedir="$withval/include"
9954 additional_libdir="$withval/lib"
9955 fi
9956 fi
9957
9958 fi
9959
9960 LIBICONV=
9961 LTLIBICONV=
9962 INCICONV=
9963 rpathdirs=
9964 ltrpathdirs=
9965 names_already_handled=
9966 names_next_round='iconv '
9967 while test -n "$names_next_round"; do
9968 names_this_round="$names_next_round"
9969 names_next_round=
9970 for name in $names_this_round; do
9971 already_handled=
9972 for n in $names_already_handled; do
9973 if test "$n" = "$name"; then
9974 already_handled=yes
9975 break
9976 fi
9977 done
9978 if test -z "$already_handled"; then
9979 names_already_handled="$names_already_handled $name"
9980 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9981 eval value=\"\$HAVE_LIB$uppername\"
9982 if test -n "$value"; then
9983 if test "$value" = yes; then
9984 eval value=\"\$LIB$uppername\"
9985 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9986 eval value=\"\$LTLIB$uppername\"
9987 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9988 else
9989 :
9990 fi
9991 else
9992 found_dir=
9993 found_la=
9994 found_so=
9995 found_a=
9996 if test $use_additional = yes; then
9997 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9998 found_dir="$additional_libdir"
9999 found_so="$additional_libdir/lib$name.$shlibext"
10000 if test -f "$additional_libdir/lib$name.la"; then
10001 found_la="$additional_libdir/lib$name.la"
10002 fi
10003 else
10004 if test -f "$additional_libdir/lib$name.$libext"; then
10005 found_dir="$additional_libdir"
10006 found_a="$additional_libdir/lib$name.$libext"
10007 if test -f "$additional_libdir/lib$name.la"; then
10008 found_la="$additional_libdir/lib$name.la"
10009 fi
10010 fi
10011 fi
10012 fi
10013 if test "X$found_dir" = "X"; then
10014 for x in $LDFLAGS $LTLIBICONV; do
10015
10016 acl_save_prefix="$prefix"
10017 prefix="$acl_final_prefix"
10018 acl_save_exec_prefix="$exec_prefix"
10019 exec_prefix="$acl_final_exec_prefix"
10020 eval x=\"$x\"
10021 exec_prefix="$acl_save_exec_prefix"
10022 prefix="$acl_save_prefix"
10023
10024 case "$x" in
10025 -L*)
10026 dir=`echo "X$x" | sed -e 's/^X-L//'`
10027 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10028 found_dir="$dir"
10029 found_so="$dir/lib$name.$shlibext"
10030 if test -f "$dir/lib$name.la"; then
10031 found_la="$dir/lib$name.la"
10032 fi
10033 else
10034 if test -f "$dir/lib$name.$libext"; then
10035 found_dir="$dir"
10036 found_a="$dir/lib$name.$libext"
10037 if test -f "$dir/lib$name.la"; then
10038 found_la="$dir/lib$name.la"
10039 fi
10040 fi
10041 fi
10042 ;;
10043 esac
10044 if test "X$found_dir" != "X"; then
10045 break
10046 fi
10047 done
10048 fi
10049 if test "X$found_dir" != "X"; then
10050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10051 if test "X$found_so" != "X"; then
10052 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10053 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10054 else
10055 haveit=
10056 for x in $ltrpathdirs; do
10057 if test "X$x" = "X$found_dir"; then
10058 haveit=yes
10059 break
10060 fi
10061 done
10062 if test -z "$haveit"; then
10063 ltrpathdirs="$ltrpathdirs $found_dir"
10064 fi
10065 if test "$hardcode_direct" = yes; then
10066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10067 else
10068 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10070 haveit=
10071 for x in $rpathdirs; do
10072 if test "X$x" = "X$found_dir"; then
10073 haveit=yes
10074 break
10075 fi
10076 done
10077 if test -z "$haveit"; then
10078 rpathdirs="$rpathdirs $found_dir"
10079 fi
10080 else
10081 haveit=
10082 for x in $LDFLAGS $LIBICONV; do
10083
10084 acl_save_prefix="$prefix"
10085 prefix="$acl_final_prefix"
10086 acl_save_exec_prefix="$exec_prefix"
10087 exec_prefix="$acl_final_exec_prefix"
10088 eval x=\"$x\"
10089 exec_prefix="$acl_save_exec_prefix"
10090 prefix="$acl_save_prefix"
10091
10092 if test "X$x" = "X-L$found_dir"; then
10093 haveit=yes
10094 break
10095 fi
10096 done
10097 if test -z "$haveit"; then
10098 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10099 fi
10100 if test "$hardcode_minus_L" != no; then
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10102 else
10103 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10104 fi
10105 fi
10106 fi
10107 fi
10108 else
10109 if test "X$found_a" != "X"; then
10110 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10111 else
10112 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10113 fi
10114 fi
10115 additional_includedir=
10116 case "$found_dir" in
10117 */lib | */lib/)
10118 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10119 additional_includedir="$basedir/include"
10120 ;;
10121 esac
10122 if test "X$additional_includedir" != "X"; then
10123 if test "X$additional_includedir" != "X/usr/include"; then
10124 haveit=
10125 if test "X$additional_includedir" = "X/usr/local/include"; then
10126 if test -n "$GCC"; then
10127 case $host_os in
10128 linux*) haveit=yes;;
10129 esac
10130 fi
10131 fi
10132 if test -z "$haveit"; then
10133 for x in $CPPFLAGS $INCICONV; do
10134
10135 acl_save_prefix="$prefix"
10136 prefix="$acl_final_prefix"
10137 acl_save_exec_prefix="$exec_prefix"
10138 exec_prefix="$acl_final_exec_prefix"
10139 eval x=\"$x\"
10140 exec_prefix="$acl_save_exec_prefix"
10141 prefix="$acl_save_prefix"
10142
10143 if test "X$x" = "X-I$additional_includedir"; then
10144 haveit=yes
10145 break
10146 fi
10147 done
10148 if test -z "$haveit"; then
10149 if test -d "$additional_includedir"; then
10150 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10151 fi
10152 fi
10153 fi
10154 fi
10155 fi
10156 if test -n "$found_la"; then
10157 save_libdir="$libdir"
10158 case "$found_la" in
10159 */* | *\\*) . "$found_la" ;;
10160 *) . "./$found_la" ;;
10161 esac
10162 libdir="$save_libdir"
10163 for dep in $dependency_libs; do
10164 case "$dep" in
10165 -L*)
10166 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10167 if test "X$additional_libdir" != "X/usr/lib"; then
10168 haveit=
10169 if test "X$additional_libdir" = "X/usr/local/lib"; then
10170 if test -n "$GCC"; then
10171 case $host_os in
10172 linux*) haveit=yes;;
10173 esac
10174 fi
10175 fi
10176 if test -z "$haveit"; then
10177 haveit=
10178 for x in $LDFLAGS $LIBICONV; do
10179
10180 acl_save_prefix="$prefix"
10181 prefix="$acl_final_prefix"
10182 acl_save_exec_prefix="$exec_prefix"
10183 exec_prefix="$acl_final_exec_prefix"
10184 eval x=\"$x\"
10185 exec_prefix="$acl_save_exec_prefix"
10186 prefix="$acl_save_prefix"
10187
10188 if test "X$x" = "X-L$additional_libdir"; then
10189 haveit=yes
10190 break
10191 fi
10192 done
10193 if test -z "$haveit"; then
10194 if test -d "$additional_libdir"; then
10195 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10196 fi
10197 fi
10198 haveit=
10199 for x in $LDFLAGS $LTLIBICONV; do
10200
10201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
10205 eval x=\"$x\"
10206 exec_prefix="$acl_save_exec_prefix"
10207 prefix="$acl_save_prefix"
10208
10209 if test "X$x" = "X-L$additional_libdir"; then
10210 haveit=yes
10211 break
10212 fi
10213 done
10214 if test -z "$haveit"; then
10215 if test -d "$additional_libdir"; then
10216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10217 fi
10218 fi
10219 fi
10220 fi
10221 ;;
10222 -R*)
10223 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10224 if test "$enable_rpath" != no; then
10225 haveit=
10226 for x in $rpathdirs; do
10227 if test "X$x" = "X$dir"; then
10228 haveit=yes
10229 break
10230 fi
10231 done
10232 if test -z "$haveit"; then
10233 rpathdirs="$rpathdirs $dir"
10234 fi
10235 haveit=
10236 for x in $ltrpathdirs; do
10237 if test "X$x" = "X$dir"; then
10238 haveit=yes
10239 break
10240 fi
10241 done
10242 if test -z "$haveit"; then
10243 ltrpathdirs="$ltrpathdirs $dir"
10244 fi
10245 fi
10246 ;;
10247 -l*)
10248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10249 ;;
10250 *.la)
10251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10252 ;;
10253 *)
10254 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10256 ;;
10257 esac
10258 done
10259 fi
10260 else
10261 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10263 fi
10264 fi
10265 fi
10266 done
10267 done
10268 if test "X$rpathdirs" != "X"; then
10269 if test -n "$hardcode_libdir_separator"; then
10270 alldirs=
10271 for found_dir in $rpathdirs; do
10272 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10273 done
10274 acl_save_libdir="$libdir"
10275 libdir="$alldirs"
10276 eval flag=\"$hardcode_libdir_flag_spec\"
10277 libdir="$acl_save_libdir"
10278 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10279 else
10280 for found_dir in $rpathdirs; do
10281 acl_save_libdir="$libdir"
10282 libdir="$found_dir"
10283 eval flag=\"$hardcode_libdir_flag_spec\"
10284 libdir="$acl_save_libdir"
10285 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10286 done
10287 fi
10288 fi
10289 if test "X$ltrpathdirs" != "X"; then
10290 for found_dir in $ltrpathdirs; do
10291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10292 done
10293 fi
10294
10295
10296
10297
10298
10299
10300
10301 am_save_CPPFLAGS="$CPPFLAGS"
10302
10303 for element in $INCICONV; do
10304 haveit=
10305 for x in $CPPFLAGS; do
10306
10307 acl_save_prefix="$prefix"
10308 prefix="$acl_final_prefix"
10309 acl_save_exec_prefix="$exec_prefix"
10310 exec_prefix="$acl_final_exec_prefix"
10311 eval x=\"$x\"
10312 exec_prefix="$acl_save_exec_prefix"
10313 prefix="$acl_save_prefix"
10314
10315 if test "X$x" = "X$element"; then
10316 haveit=yes
10317 break
10318 fi
10319 done
10320 if test -z "$haveit"; then
10321 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10322 fi
10323 done
10324
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10327 $as_echo_n "checking for iconv... " >&6; }
10328 if test "${am_cv_func_iconv+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10330 else
10331
10332 am_cv_func_iconv="no, consider installing GNU libiconv"
10333 am_cv_lib_iconv=no
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 #include <stdlib.h>
10337 #include <iconv.h>
10338 int
10339 main ()
10340 {
10341 iconv_t cd = iconv_open("","");
10342 iconv(cd,NULL,NULL,NULL,NULL);
10343 iconv_close(cd);
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_cxx_try_link "$LINENO"; then :
10349 am_cv_func_iconv=yes
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 if test "$am_cv_func_iconv" != yes; then
10354 am_save_LIBS="$LIBS"
10355 LIBS="$LIBS $LIBICONV"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 #include <stdlib.h>
10359 #include <iconv.h>
10360 int
10361 main ()
10362 {
10363 iconv_t cd = iconv_open("","");
10364 iconv(cd,NULL,NULL,NULL,NULL);
10365 iconv_close(cd);
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_cxx_try_link "$LINENO"; then :
10371 am_cv_lib_iconv=yes
10372 am_cv_func_iconv=yes
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS="$am_save_LIBS"
10377 fi
10378
10379 fi
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10381 $as_echo "$am_cv_func_iconv" >&6; }
10382 if test "$am_cv_func_iconv" = yes; then
10383
10384 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10385
10386 fi
10387 if test "$am_cv_lib_iconv" = yes; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10389 $as_echo_n "checking how to link with libiconv... " >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10391 $as_echo "$LIBICONV" >&6; }
10392 else
10393 CPPFLAGS="$am_save_CPPFLAGS"
10394 LIBICONV=
10395 LTLIBICONV=
10396 fi
10397
10398
10399
10400 if test "$am_cv_func_iconv" = yes; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10402 $as_echo_n "checking for iconv declaration... " >&6; }
10403 if test "${am_cv_proto_iconv+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409
10410 #include <stdlib.h>
10411 #include <iconv.h>
10412 extern
10413 #ifdef __cplusplus
10414 "C"
10415 #endif
10416 #if defined(__STDC__) || defined(__cplusplus)
10417 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10418 #else
10419 size_t iconv();
10420 #endif
10421
10422 int
10423 main ()
10424 {
10425
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_cxx_try_compile "$LINENO"; then :
10431 am_cv_proto_iconv_arg1=""
10432 else
10433 am_cv_proto_iconv_arg1="const"
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10437 fi
10438
10439 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10441 }$am_cv_proto_iconv" >&5
10442 $as_echo "${ac_t:-
10443 }$am_cv_proto_iconv" >&6; }
10444
10445 cat >>confdefs.h <<_ACEOF
10446 #define ICONV_CONST $am_cv_proto_iconv_arg1
10447 _ACEOF
10448
10449 fi
10450
10451 ac_ext=c
10452 ac_cpp='$CPP $CPPFLAGS'
10453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10456
10457
10458 # Until we have in-tree GNU iconv:
10459 LIBICONV_DEP=
10460
10461
10462
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10464 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10465 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 #include <locale.h>
10471 int
10472 main ()
10473 {
10474 return LC_MESSAGES
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 am_cv_val_LC_MESSAGES=yes
10481 else
10482 am_cv_val_LC_MESSAGES=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486 fi
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10488 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10489 if test $am_cv_val_LC_MESSAGES = yes; then
10490
10491 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10492
10493 fi
10494
10495
10496
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10498 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10499 if test "${am_cv_langinfo_codeset+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #include <langinfo.h>
10505 int
10506 main ()
10507 {
10508 char* cs = nl_langinfo(CODESET);
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 am_cv_langinfo_codeset=yes
10515 else
10516 am_cv_langinfo_codeset=no
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10523 $as_echo "$am_cv_langinfo_codeset" >&6; }
10524 if test $am_cv_langinfo_codeset = yes; then
10525
10526 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10527
10528 fi
10529
10530
10531 # We will need to find libiberty.h and ansidecl.h
10532 saved_CFLAGS="$CFLAGS"
10533 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10534 saved_CXXFLAGS="$CXXFLAGS"
10535 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10536 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10537 stpcpy strnlen strsignal strstr strverscmp \
10538 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10539 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10540 do
10541 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10543 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10544 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 #undef $ac_tr_decl
10550 #define $ac_tr_decl 1
10551
10552 #include "ansidecl.h"
10553 #include "system.h"
10554
10555 int
10556 main ()
10557 {
10558 #ifndef $ac_func
10559 char *(*pfn) = (char *(*)) $ac_func ;
10560 #endif
10561 ;
10562 return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_compile "$LINENO"; then :
10566 eval "gcc_cv_have_decl_$ac_func=yes"
10567 else
10568 eval "gcc_cv_have_decl_$ac_func=no"
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10571 fi
10572
10573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10576 #define $ac_tr_decl 1
10577 _ACEOF
10578
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10582 #define $ac_tr_decl 0
10583 _ACEOF
10584
10585 fi
10586
10587 done
10588
10589
10590 for ac_func in getrlimit setrlimit getrusage
10591 do
10592 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10594 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10595 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600 #undef $ac_tr_decl
10601 #define $ac_tr_decl 1
10602
10603 #include "ansidecl.h"
10604 #include "system.h"
10605 #ifdef HAVE_SYS_RESOURCE_H
10606 #include <sys/resource.h>
10607 #endif
10608
10609
10610 int
10611 main ()
10612 {
10613 #ifndef $ac_func
10614 char *(*pfn) = (char *(*)) $ac_func ;
10615 #endif
10616 ;
10617 return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621 eval "gcc_cv_have_decl_$ac_func=yes"
10622 else
10623 eval "gcc_cv_have_decl_$ac_func=no"
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 fi
10627
10628 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10631 #define $ac_tr_decl 1
10632 _ACEOF
10633
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10637 #define $ac_tr_decl 0
10638 _ACEOF
10639
10640 fi
10641
10642 done
10643
10644
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10647
10648 #include "ansidecl.h"
10649 #include "system.h"
10650 #ifdef HAVE_SYS_RESOURCE_H
10651 #include <sys/resource.h>
10652 #endif
10653
10654 int
10655 main ()
10656 {
10657 rlim_t l = 0;
10658 ;
10659 return 0;
10660 }
10661 _ACEOF
10662 if ac_fn_c_try_compile "$LINENO"; then :
10663
10664 else
10665
10666 $as_echo "#define rlim_t long" >>confdefs.h
10667
10668 fi
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670
10671 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10672 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10673 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10674 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10675 for ac_func in ldgetname
10676 do
10677 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10679 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10680 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10685 #undef $ac_tr_decl
10686 #define $ac_tr_decl 1
10687
10688 #include "ansidecl.h"
10689 #include "system.h"
10690 #ifdef HAVE_LDFCN_H
10691 #undef FREAD
10692 #undef FWRITE
10693 #include <ldfcn.h>
10694 #endif
10695
10696
10697 int
10698 main ()
10699 {
10700 #ifndef $ac_func
10701 char *(*pfn) = (char *(*)) $ac_func ;
10702 #endif
10703 ;
10704 return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_compile "$LINENO"; then :
10708 eval "gcc_cv_have_decl_$ac_func=yes"
10709 else
10710 eval "gcc_cv_have_decl_$ac_func=no"
10711 fi
10712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 fi
10714
10715 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10717 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10718 #define $ac_tr_decl 1
10719 _ACEOF
10720
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10724 #define $ac_tr_decl 0
10725 _ACEOF
10726
10727 fi
10728
10729 done
10730
10731
10732 for ac_func in times
10733 do
10734 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10736 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10737 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #undef $ac_tr_decl
10743 #define $ac_tr_decl 1
10744
10745 #include "ansidecl.h"
10746 #include "system.h"
10747 #ifdef HAVE_SYS_TIMES_H
10748 #include <sys/times.h>
10749 #endif
10750
10751
10752 int
10753 main ()
10754 {
10755 #ifndef $ac_func
10756 char *(*pfn) = (char *(*)) $ac_func ;
10757 #endif
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"; then :
10763 eval "gcc_cv_have_decl_$ac_func=yes"
10764 else
10765 eval "gcc_cv_have_decl_$ac_func=no"
10766 fi
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769
10770 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10773 #define $ac_tr_decl 1
10774 _ACEOF
10775
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10779 #define $ac_tr_decl 0
10780 _ACEOF
10781
10782 fi
10783
10784 done
10785
10786
10787 for ac_func in sigaltstack
10788 do
10789 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 #undef $ac_tr_decl
10798 #define $ac_tr_decl 1
10799
10800 #include "ansidecl.h"
10801 #include "system.h"
10802 #include <signal.h>
10803
10804
10805 int
10806 main ()
10807 {
10808 #ifndef $ac_func
10809 char *(*pfn) = (char *(*)) $ac_func ;
10810 #endif
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_compile "$LINENO"; then :
10816 eval "gcc_cv_have_decl_$ac_func=yes"
10817 else
10818 eval "gcc_cv_have_decl_$ac_func=no"
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 fi
10822
10823 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10826 #define $ac_tr_decl 1
10827 _ACEOF
10828
10829 else
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10832 #define $ac_tr_decl 0
10833 _ACEOF
10834
10835 fi
10836
10837 done
10838
10839
10840 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10841 # prototype.
10842 ac_ext=cpp
10843 ac_cpp='$CXXCPP $CPPFLAGS'
10844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10847
10848 for ac_func in madvise
10849 do
10850 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10852 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10853 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #undef $ac_tr_decl
10859 #define $ac_tr_decl 1
10860
10861 #include "ansidecl.h"
10862 #include "system.h"
10863
10864
10865 int
10866 main ()
10867 {
10868 #ifndef $ac_func
10869 char *(*pfn) = (char *(*)) $ac_func ;
10870 #endif
10871 ;
10872 return 0;
10873 }
10874 _ACEOF
10875 if ac_fn_cxx_try_compile "$LINENO"; then :
10876 eval "gcc_cv_have_decl_$ac_func=yes"
10877 else
10878 eval "gcc_cv_have_decl_$ac_func=no"
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881 fi
10882
10883 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10886 #define $ac_tr_decl 1
10887 _ACEOF
10888
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10892 #define $ac_tr_decl 0
10893 _ACEOF
10894
10895 fi
10896
10897 done
10898
10899 ac_ext=c
10900 ac_cpp='$CPP $CPPFLAGS'
10901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10904
10905
10906 # More time-related stuff.
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10908 $as_echo_n "checking for struct tms... " >&6; }
10909 if test "${ac_cv_struct_tms+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912
10913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915
10916 #include "ansidecl.h"
10917 #include "system.h"
10918 #ifdef HAVE_SYS_TIMES_H
10919 #include <sys/times.h>
10920 #endif
10921
10922 int
10923 main ()
10924 {
10925 struct tms tms;
10926 ;
10927 return 0;
10928 }
10929 _ACEOF
10930 if ac_fn_c_try_compile "$LINENO"; then :
10931 ac_cv_struct_tms=yes
10932 else
10933 ac_cv_struct_tms=no
10934 fi
10935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10938 $as_echo "$ac_cv_struct_tms" >&6; }
10939 if test $ac_cv_struct_tms = yes; then
10940
10941 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10942
10943 fi
10944
10945 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10946 # revisit after autoconf 2.50.
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10948 $as_echo_n "checking for clock_t... " >&6; }
10949 if test "${gcc_cv_type_clock_t+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955
10956 #include "ansidecl.h"
10957 #include "system.h"
10958
10959 int
10960 main ()
10961 {
10962 clock_t x;
10963 ;
10964 return 0;
10965 }
10966 _ACEOF
10967 if ac_fn_c_try_compile "$LINENO"; then :
10968 gcc_cv_type_clock_t=yes
10969 else
10970 gcc_cv_type_clock_t=no
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10975 $as_echo "$gcc_cv_type_clock_t" >&6; }
10976 if test $gcc_cv_type_clock_t = yes; then
10977
10978 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10979
10980 fi
10981
10982 # Check if F_SETLKW is supported by fcntl.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10984 $as_echo_n "checking for F_SETLKW... " >&6; }
10985 if test "${ac_cv_f_setlkw+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991
10992 #include <fcntl.h>
10993 int
10994 main ()
10995 {
10996
10997 struct flock fl;
10998 fl.l_whence = 0;
10999 fl.l_start = 0;
11000 fl.l_len = 0;
11001 fl.l_pid = 0;
11002 return fcntl (1, F_SETLKW, &fl);
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_compile "$LINENO"; then :
11008 ac_cv_f_setlkw=yes
11009 else
11010 ac_cv_f_setlkw=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 fi
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11015 $as_echo "$ac_cv_f_setlkw" >&6; }
11016 if test $ac_cv_f_setlkw = yes; then
11017
11018 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11019
11020 fi
11021
11022 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11023 CFLAGS="$saved_CFLAGS"
11024 CXXFLAGS="$saved_CXXFLAGS"
11025
11026 # mkdir takes a single argument on some systems.
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11028 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11029 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11034
11035 #include <sys/types.h>
11036 #ifdef HAVE_SYS_STAT_H
11037 # include <sys/stat.h>
11038 #endif
11039 #ifdef HAVE_UNISTD_H
11040 # include <unistd.h>
11041 #endif
11042 #ifdef HAVE_DIRECT_H
11043 # include <direct.h>
11044 #endif
11045 int
11046 main ()
11047 {
11048 mkdir ("foo", 0);
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_compile "$LINENO"; then :
11054 gcc_cv_mkdir_takes_one_arg=no
11055 else
11056 gcc_cv_mkdir_takes_one_arg=yes
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059 fi
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11061 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11062 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11063
11064 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11065
11066 fi
11067
11068
11069 # File extensions
11070 manext='.1'
11071 objext='.o'
11072
11073
11074
11075 # With Setjmp/Longjmp based exception handling.
11076 # Check whether --enable-sjlj-exceptions was given.
11077 if test "${enable_sjlj_exceptions+set}" = set; then :
11078 enableval=$enable_sjlj_exceptions; case $target in
11079 *-*-hpux10*)
11080 if test $enableval != yes; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11082 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11083 enableval=yes
11084 fi
11085 ;;
11086 esac
11087 force_sjlj_exceptions=yes
11088 else
11089 case $target in
11090 *-*-hpux10*)
11091 force_sjlj_exceptions=yes
11092 enableval=yes
11093 ;;
11094 lm32*-*-*)
11095 force_sjlj_exceptions=yes
11096 enableval=yes
11097 ;;
11098 *)
11099 force_sjlj_exceptions=no
11100 ;;
11101 esac
11102 fi
11103
11104 if test $force_sjlj_exceptions = yes; then
11105 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11106
11107 cat >>confdefs.h <<_ACEOF
11108 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11109 _ACEOF
11110
11111 fi
11112
11113 # --------------------------------------------------------
11114 # Build, host, and target specific configuration fragments
11115 # --------------------------------------------------------
11116
11117 # Collect build-machine-specific information.
11118 . ${srcdir}/config.build
11119
11120 # Collect host-machine-specific information.
11121 . ${srcdir}/config.host
11122
11123 target_gtfiles=
11124
11125 # Collect target-machine-specific information.
11126 . ${srcdir}/config.gcc
11127
11128 extra_objs="${host_extra_objs} ${extra_objs}"
11129 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11130
11131 # Default the target-machine variables that were not explicitly set.
11132 if test x"$tm_file" = x
11133 then tm_file=$cpu_type/$cpu_type.h; fi
11134
11135 if test x"$extra_headers" = x
11136 then extra_headers=; fi
11137
11138 if test x$md_file = x
11139 then md_file=$cpu_type/$cpu_type.md; fi
11140
11141 if test x$out_file = x
11142 then out_file=$cpu_type/$cpu_type.c; fi
11143
11144 if test x"$tmake_file" = x
11145 then tmake_file=$cpu_type/t-$cpu_type
11146 fi
11147
11148 # Support --enable-initfini-array.
11149 if test x$enable_initfini_array != xno; then
11150 tm_file="${tm_file} initfini-array.h"
11151 fi
11152
11153 if test x"$dwarf2" = xyes
11154 then tm_file="$tm_file tm-dwarf2.h"
11155 fi
11156
11157 # Say what files are being used for the output code and MD file.
11158 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11159 echo "Using \`$srcdir/config/$md_file' as machine description file."
11160
11161 # If any of the xm_file variables contain nonexistent files, warn
11162 # about them and drop them.
11163
11164 bx=
11165 for x in $build_xm_file; do
11166 if test -f $srcdir/config/$x
11167 then bx="$bx $x"
11168 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11169 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11170 fi
11171 done
11172 build_xm_file="$bx"
11173
11174 hx=
11175 for x in $host_xm_file; do
11176 if test -f $srcdir/config/$x
11177 then hx="$hx $x"
11178 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11179 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11180 fi
11181 done
11182 host_xm_file="$hx"
11183
11184 tx=
11185 for x in $xm_file; do
11186 if test -f $srcdir/config/$x
11187 then tx="$tx $x"
11188 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11189 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11190 fi
11191 done
11192 xm_file="$tx"
11193
11194 count=a
11195 for f in $tm_file; do
11196 count=${count}x
11197 done
11198 if test $count = ax; then
11199 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11200 else
11201 echo "Using the following target machine macro files:"
11202 for f in $tm_file; do
11203 echo " $srcdir/config/$f"
11204 done
11205 fi
11206
11207 if test x$use_long_long_for_widest_fast_int = xyes; then
11208
11209 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11210
11211 fi
11212
11213 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11214
11215 cat >>confdefs.h <<_ACEOF
11216 #define HAVE_GNU_LD $gnu_ld_bool
11217 _ACEOF
11218
11219
11220 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11221
11222 cat >>confdefs.h <<_ACEOF
11223 #define HAVE_GNU_AS $gnu_as_bool
11224 _ACEOF
11225
11226
11227 count=a
11228 for f in $host_xm_file; do
11229 count=${count}x
11230 done
11231 if test $count = a; then
11232 :
11233 elif test $count = ax; then
11234 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11235 else
11236 echo "Using the following host machine macro files:"
11237 for f in $host_xm_file; do
11238 echo " $srcdir/config/$f"
11239 done
11240 fi
11241 echo "Using ${out_host_hook_obj} for host machine hooks."
11242
11243 if test "$host_xm_file" != "$build_xm_file"; then
11244 count=a
11245 for f in $build_xm_file; do
11246 count=${count}x
11247 done
11248 if test $count = a; then
11249 :
11250 elif test $count = ax; then
11251 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11252 else
11253 echo "Using the following build machine macro files:"
11254 for f in $build_xm_file; do
11255 echo " $srcdir/config/$f"
11256 done
11257 fi
11258 fi
11259
11260 if test -n "$configured_native_system_header_dir"; then
11261 native_system_header_dir=$configured_native_system_header_dir
11262 fi
11263 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11264
11265
11266 case ${host} in
11267 powerpc*-*-darwin*)
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11269 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11270 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275
11276 #include <sys/cdefs.h>
11277 #include <sys/signal.h>
11278 #include <ucontext.h>
11279 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11280
11281 _ACEOF
11282 if ac_fn_c_try_compile "$LINENO"; then :
11283 gcc_cv_mcontext_underscores=no
11284 else
11285 gcc_cv_mcontext_underscores=yes
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 fi
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11290 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11291 if test $gcc_cv_mcontext_underscores = yes; then
11292
11293 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11294
11295 fi
11296 ;;
11297 esac
11298
11299 # ---------
11300 # Threading
11301 # ---------
11302
11303 # Check if a valid thread package
11304 case ${enable_threads} in
11305 "" | no)
11306 # No threads
11307 target_thread_file='single'
11308 ;;
11309 yes)
11310 # default
11311 target_thread_file='single'
11312 ;;
11313 aix | dce | lynx | mipssde | posix | rtems | \
11314 single | tpf | vxworks | win32)
11315 target_thread_file=${enable_threads}
11316 ;;
11317 *)
11318 echo "${enable_threads} is an unknown thread package" 1>&2
11319 exit 1
11320 ;;
11321 esac
11322
11323 if test x${thread_file} = x; then
11324 # No thread file set by target-specific clauses in config.gcc,
11325 # so use file chosen by default logic above
11326 thread_file=${target_thread_file}
11327 fi
11328
11329 # --------
11330 # UNSORTED
11331 # --------
11332
11333 use_cxa_atexit=no
11334 if test x$enable___cxa_atexit = xyes || \
11335 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11336 if test x$host = x$target; then
11337 case $host in
11338 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11339 # keyed to flag_use_cxa_atexit
11340 *-*-mingw32*)
11341 use_cxa_atexit=yes
11342 ;;
11343 powerpc-ibm-aix*)
11344 use_cxa_atexit=yes
11345 ;;
11346 *)
11347 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11348 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11349 use_cxa_atexit=yes
11350 else
11351 echo "__cxa_atexit can't be enabled on this target"
11352 fi
11353
11354 ;;
11355 esac
11356 else
11357 # We can't check for __cxa_atexit when building a cross, so assume
11358 # it is available
11359 use_cxa_atexit=yes
11360 fi
11361 if test x$use_cxa_atexit = xyes; then
11362
11363 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11364
11365 fi
11366 fi
11367
11368 # Look for a file containing extra machine modes.
11369 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11370 extra_modes_file='$(srcdir)'/config/${extra_modes}
11371
11372
11373 cat >>confdefs.h <<_ACEOF
11374 #define EXTRA_MODES_FILE "config/$extra_modes"
11375 _ACEOF
11376
11377 fi
11378
11379 # Convert extra_options into a form suitable for Makefile use.
11380 extra_opt_files=
11381 all_opt_files=
11382 for f in $extra_options; do
11383 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11384 all_opt_files="$all_opt_files $srcdir/config/$f"
11385 done
11386
11387
11388 # auto-host.h is the file containing items generated by autoconf and is
11389 # the first file included by config.h.
11390 # If host=build, it is correct to have bconfig include auto-host.h
11391 # as well. If host!=build, we are in error and need to do more
11392 # work to find out the build config parameters.
11393 if test x$host = x$build
11394 then
11395 build_auto=auto-host.h
11396 else
11397 # We create a subdir, then run autoconf in the subdir.
11398 # To prevent recursion we set host and build for the new
11399 # invocation of configure to the build for this invocation
11400 # of configure.
11401 tempdir=build.$$
11402 rm -rf $tempdir
11403 mkdir $tempdir
11404 cd $tempdir
11405 case ${srcdir} in
11406 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11407 *) realsrcdir=../${srcdir};;
11408 esac
11409 # Clearing GMPINC is necessary to prevent host headers being
11410 # used by the build compiler. Defining GENERATOR_FILE stops
11411 # system.h from including gmp.h.
11412 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11413 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11414 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11415 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11416 ${realsrcdir}/configure \
11417 --enable-languages=${enable_languages-all} \
11418 --target=$target_alias --host=$build_alias --build=$build_alias
11419
11420 # We just finished tests for the build machine, so rename
11421 # the file auto-build.h in the gcc directory.
11422 mv auto-host.h ../auto-build.h
11423 cd ..
11424 rm -rf $tempdir
11425 build_auto=auto-build.h
11426 fi
11427
11428
11429 tm_file="${tm_file} defaults.h"
11430 tm_p_file="${tm_p_file} tm-preds.h"
11431 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11432 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11433 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11434 # put this back in temporarily.
11435 xm_file="auto-host.h ansidecl.h ${xm_file}"
11436
11437 # --------
11438 # UNSORTED
11439 # --------
11440
11441 # Compile in configure arguments.
11442 if test -f configargs.h ; then
11443 # Being re-configured.
11444 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11445 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11446 else
11447 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11448 fi
11449
11450 # Double all backslashes and backslash all quotes to turn
11451 # gcc_config_arguments into a C string.
11452 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11453 $gcc_config_arguments
11454 EOF
11455 gcc_config_arguments_str=`cat conftest.out`
11456 rm -f conftest.out
11457
11458 cat > configargs.h <<EOF
11459 /* Generated automatically. */
11460 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11461 static const char thread_model[] = "$thread_file";
11462
11463 static const struct {
11464 const char *name, *value;
11465 } configure_default_options[] = $configure_default_options;
11466 EOF
11467
11468 gcc_BASEVER=`cat $srcdir/BASE-VER`
11469 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11470 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11471 if test -f $srcdir/REVISION ; then
11472 gcc_REVISION=`cat $srcdir/REVISION`
11473 else
11474 gcc_REVISION=""
11475 fi
11476 cat > plugin-version.h <<EOF
11477 #include "configargs.h"
11478
11479 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11480 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11481 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11482 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11483
11484 static char basever[] = "$gcc_BASEVER";
11485 static char datestamp[] = "$gcc_DATESTAMP";
11486 static char devphase[] = "$gcc_DEVPHASE";
11487 static char revision[] = "$gcc_REVISION";
11488
11489 /* FIXME plugins: We should make the version information more precise.
11490 One way to do is to add a checksum. */
11491
11492 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11493 devphase, revision,
11494 configuration_arguments};
11495 EOF
11496
11497 # Internationalization
11498 # If we haven't got the data from the intl directory,
11499 # assume NLS is disabled.
11500 USE_NLS=no
11501 LIBINTL=
11502 LIBINTL_DEP=
11503 INCINTL=
11504 XGETTEXT=
11505 GMSGFMT=
11506 POSUB=
11507
11508 if test -f ../intl/config.intl; then
11509 . ../intl/config.intl
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11512 $as_echo_n "checking whether NLS is requested... " >&6; }
11513 if test x"$USE_NLS" != xyes; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11519
11520 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11521
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11524 $as_echo_n "checking for catalogs to be installed... " >&6; }
11525 # Look for .po and .gmo files in the source directory.
11526 CATALOGS=
11527 XLINGUAS=
11528 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11529 # If there aren't any .gmo files the shell will give us the
11530 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11531 # weeded out.
11532 case "$cat" in *\**)
11533 continue;;
11534 esac
11535 # The quadruple backslash is collapsed to a double backslash
11536 # by the backticks, then collapsed again by the double quotes,
11537 # leaving us with one backslash in the sed expression (right
11538 # before the dot that mustn't act as a wildcard).
11539 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11540 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11541 # The user is allowed to set LINGUAS to a list of languages to
11542 # install catalogs for. If it's empty that means "all of them."
11543 if test "x$LINGUAS" = x; then
11544 CATALOGS="$CATALOGS $cat"
11545 XLINGUAS="$XLINGUAS $lang"
11546 else
11547 case "$LINGUAS" in *$lang*)
11548 CATALOGS="$CATALOGS $cat"
11549 XLINGUAS="$XLINGUAS $lang"
11550 ;;
11551 esac
11552 fi
11553 done
11554 LINGUAS="$XLINGUAS"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11556 $as_echo "$LINGUAS" >&6; }
11557
11558
11559 DATADIRNAME=share
11560
11561 INSTOBJEXT=.mo
11562
11563 GENCAT=gencat
11564
11565 CATOBJEXT=.gmo
11566
11567 fi
11568
11569 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11570 # -liconv on the link line twice.
11571 case "$LIBINTL" in *$LIBICONV*)
11572 LIBICONV= ;;
11573 esac
11574
11575 # Check whether --enable-secureplt was given.
11576 if test "${enable_secureplt+set}" = set; then :
11577 enableval=$enable_secureplt;
11578 fi
11579
11580
11581 # Check whether --enable-leading-mingw64-underscores was given.
11582 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11583 enableval=$enable_leading_mingw64_underscores;
11584 fi
11585
11586 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11587
11588 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11589
11590 fi
11591
11592 # Check whether --enable-cld was given.
11593 if test "${enable_cld+set}" = set; then :
11594 enableval=$enable_cld;
11595 else
11596 enable_cld=no
11597 fi
11598
11599
11600 # Check whether --enable-frame-pointer was given.
11601 if test "${enable_frame_pointer+set}" = set; then :
11602 enableval=$enable_frame_pointer;
11603 else
11604
11605 case $target_os in
11606 linux* | darwin[8912]*)
11607 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11608 # DWARF2.
11609 enable_frame_pointer=no
11610 ;;
11611 *)
11612 enable_frame_pointer=yes
11613 ;;
11614 esac
11615
11616 fi
11617
11618
11619 # Windows32 Registry support for specifying GCC installation paths.
11620 # Check whether --enable-win32-registry was given.
11621 if test "${enable_win32_registry+set}" = set; then :
11622 enableval=$enable_win32_registry;
11623 fi
11624
11625
11626 case $host_os in
11627 win32 | pe | cygwin* | mingw32* | uwin*)
11628 if test "x$enable_win32_registry" != xno; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11630 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11631 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_func_search_save_LIBS=$LIBS
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char RegOpenKeyExA ();
11645 int
11646 main ()
11647 {
11648 return RegOpenKeyExA ();
11649 ;
11650 return 0;
11651 }
11652 _ACEOF
11653 for ac_lib in '' advapi32; do
11654 if test -z "$ac_lib"; then
11655 ac_res="none required"
11656 else
11657 ac_res=-l$ac_lib
11658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11659 fi
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_search_RegOpenKeyExA=$ac_res
11662 fi
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext
11665 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11666 break
11667 fi
11668 done
11669 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11670
11671 else
11672 ac_cv_search_RegOpenKeyExA=no
11673 fi
11674 rm conftest.$ac_ext
11675 LIBS=$ac_func_search_save_LIBS
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11678 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11679 ac_res=$ac_cv_search_RegOpenKeyExA
11680 if test "$ac_res" != no; then :
11681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11682
11683 else
11684 enable_win32_registry=no
11685 fi
11686
11687 fi
11688
11689 if test "x$enable_win32_registry" != xno; then
11690
11691 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11692
11693
11694 if test "x$enable_win32_registry" != xyes \
11695 && test "x$enable_win32_registry" != x; then
11696
11697 cat >>confdefs.h <<_ACEOF
11698 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11699 _ACEOF
11700
11701 fi
11702 fi
11703 ;;
11704 esac
11705
11706 # Get an absolute path to the GCC top-level source directory
11707 holddir=`${PWDCMD-pwd}`
11708 cd $srcdir
11709 topdir=`${PWDCMD-pwd}`
11710 cd $holddir
11711
11712 # Conditionalize the makefile for this host machine.
11713 xmake_file=
11714 for f in ${host_xmake_file}
11715 do
11716 if test -f ${srcdir}/config/$f
11717 then
11718 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11719 fi
11720 done
11721
11722 # Conditionalize the makefile for this target machine.
11723 tmake_file_=
11724 for f in ${tmake_file}
11725 do
11726 if test -f ${srcdir}/config/$f
11727 then
11728 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11729 fi
11730 done
11731 tmake_file="${tmake_file_}"
11732
11733 out_object_file=`basename $out_file .c`.o
11734 common_out_object_file=`basename $common_out_file .c`.o
11735
11736 tm_file_list="options.h"
11737 tm_include_list="options.h insn-constants.h"
11738 for f in $tm_file; do
11739 case $f in
11740 ./* )
11741 f=`echo $f | sed 's/^..//'`
11742 tm_file_list="${tm_file_list} $f"
11743 tm_include_list="${tm_include_list} $f"
11744 ;;
11745 defaults.h )
11746 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11747 tm_include_list="${tm_include_list} $f"
11748 ;;
11749 * )
11750 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11751 tm_include_list="${tm_include_list} config/$f"
11752 ;;
11753 esac
11754 done
11755
11756 tm_p_file_list=
11757 tm_p_include_list=
11758 for f in $tm_p_file; do
11759 case $f in
11760 tm-preds.h )
11761 tm_p_file_list="${tm_p_file_list} $f"
11762 tm_p_include_list="${tm_p_include_list} $f"
11763 ;;
11764 * )
11765 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11766 tm_p_include_list="${tm_p_include_list} config/$f"
11767 esac
11768 done
11769
11770 xm_file_list=
11771 xm_include_list=
11772 for f in $xm_file; do
11773 case $f in
11774 ansidecl.h )
11775 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11776 xm_include_list="${xm_include_list} $f"
11777 ;;
11778 auto-host.h )
11779 xm_file_list="${xm_file_list} $f"
11780 xm_include_list="${xm_include_list} $f"
11781 ;;
11782 * )
11783 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11784 xm_include_list="${xm_include_list} config/$f"
11785 ;;
11786 esac
11787 done
11788
11789 host_xm_file_list=
11790 host_xm_include_list=
11791 for f in $host_xm_file; do
11792 case $f in
11793 ansidecl.h )
11794 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11795 host_xm_include_list="${host_xm_include_list} $f"
11796 ;;
11797 auto-host.h )
11798 host_xm_file_list="${host_xm_file_list} $f"
11799 host_xm_include_list="${host_xm_include_list} $f"
11800 ;;
11801 * )
11802 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11803 host_xm_include_list="${host_xm_include_list} config/$f"
11804 ;;
11805 esac
11806 done
11807
11808 build_xm_file_list=
11809 for f in $build_xm_file; do
11810 case $f in
11811 ansidecl.h )
11812 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11813 build_xm_include_list="${build_xm_include_list} $f"
11814 ;;
11815 auto-build.h | auto-host.h )
11816 build_xm_file_list="${build_xm_file_list} $f"
11817 build_xm_include_list="${build_xm_include_list} $f"
11818 ;;
11819 * )
11820 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11821 build_xm_include_list="${build_xm_include_list} config/$f"
11822 ;;
11823 esac
11824 done
11825
11826 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11827 # cross-compiler which does not use the native headers and libraries.
11828 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11829 CROSS=
11830 ALL=all.internal
11831 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11832
11833 if test "x$with_build_sysroot" != x; then
11834 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11835 else
11836 # This value is used, even on a native system, because
11837 # CROSS_SYSTEM_HEADER_DIR is just
11838 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11839 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11840 fi
11841
11842 if test x$host != x$target
11843 then
11844 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11845 ALL=all.cross
11846 SYSTEM_HEADER_DIR=$build_system_header_dir
11847 case "$host","$target" in
11848 # Darwin crosses can use the host system's libraries and headers,
11849 # because of the fat library support. Of course, it must be the
11850 # same version of Darwin on both sides. Allow the user to
11851 # just say --target=foo-darwin without a version number to mean
11852 # "the version on this system".
11853 *-*-darwin*,*-*-darwin*)
11854 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11855 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11856 if test $hostos = $targetos -o $targetos = darwin ; then
11857 CROSS=
11858 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11859 with_headers=yes
11860 fi
11861 ;;
11862
11863 i?86-*-*,x86_64-*-* \
11864 | powerpc*-*-*,powerpc64*-*-*)
11865 CROSS="$CROSS -DNATIVE_CROSS" ;;
11866 esac
11867
11868 case $target in
11869 *-*-mingw*)
11870 if test "x$with_headers" = x; then
11871 with_headers=yes
11872 fi
11873 ;;
11874 *)
11875 ;;
11876 esac
11877 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11878 SYSTEM_HEADER_DIR=$build_system_header_dir
11879 fi
11880
11881 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11882 if test "x$with_headers" != x; then
11883 target_header_dir=$with_headers
11884 elif test "x$with_sysroot" = x; then
11885 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11886 elif test "x$with_build_sysroot" != "x"; then
11887 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11888 elif test "x$with_sysroot" = xyes; then
11889 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11890 else
11891 target_header_dir="${with_sysroot}${native_system_header_dir}"
11892 fi
11893 else
11894 target_header_dir=${native_system_header_dir}
11895 fi
11896
11897 # If this is a cross-compiler that does not
11898 # have its own set of headers then define
11899 # inhibit_libc
11900
11901 # If this is using newlib, without having the headers available now,
11902 # then define inhibit_libc in LIBGCC2_CFLAGS.
11903 # This prevents libgcc2 from containing any code which requires libc
11904 # support.
11905 : ${inhibit_libc=false}
11906 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11907 test x$with_newlib = xyes ; } &&
11908 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11909 inhibit_libc=true
11910 fi
11911
11912
11913 # When building gcc with a cross-compiler, we need to adjust things so
11914 # that the generator programs are still built with the native compiler.
11915 # Also, we cannot run fixincludes.
11916
11917 # These are the normal (build=host) settings:
11918 CC_FOR_BUILD='$(CC)'
11919 CXX_FOR_BUILD='$(CXX)'
11920 BUILD_CFLAGS='$(ALL_CFLAGS)'
11921 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11922 BUILD_LDFLAGS='$(LDFLAGS)'
11923 STMP_FIXINC=stmp-fixinc
11924
11925 # And these apply if build != host, or we are generating coverage data
11926 if test x$build != x$host || test "x$coverage_flags" != x
11927 then
11928 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11929 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11930 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11931 fi
11932
11933 # Expand extra_headers to include complete path.
11934 # This substitutes for lots of t-* files.
11935 extra_headers_list=
11936 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11937 for file in ${extra_headers} ; do
11938 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11939 done
11940
11941 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11942 if test x"$use_gcc_tgmath" = xyes
11943 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11944 fi
11945
11946 # Define collect2 in Makefile.
11947 case $host_can_use_collect2 in
11948 no) collect2= ;;
11949 *) collect2='collect2$(exeext)' ;;
11950 esac
11951
11952
11953 # Add a definition of USE_COLLECT2 if system wants one.
11954 case $use_collect2 in
11955 no) use_collect2= ;;
11956 "") ;;
11957 *)
11958 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11959 xm_defines="${xm_defines} USE_COLLECT2"
11960 case $host_can_use_collect2 in
11961 no)
11962 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11963 ;;
11964 esac
11965 ;;
11966 esac
11967
11968
11969 cat >>confdefs.h <<_ACEOF
11970 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11971 _ACEOF
11972
11973
11974 # ---------------------------
11975 # Assembler & linker features
11976 # ---------------------------
11977
11978 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11979 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11980 # However when ld-new is first executed from the build tree, libtool will
11981 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11982 # to the build tree. While doing this we need to use the previous-stage
11983 # linker, or we have an infinite loop. The presence of a shell script as
11984 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11985 # the gcc/collect-ld script. So we need to know how libtool works, or
11986 # exec-tool will fail.
11987
11988
11989 case `pwd` in
11990 *\ * | *\ *)
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11992 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11993 esac
11994
11995
11996
11997 macro_version='2.2.7a'
11998 macro_revision='1.3134'
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 ltmain="$ac_aux_dir/ltmain.sh"
12013
12014 # Backslashify metacharacters that are still active within
12015 # double-quoted strings.
12016 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12017
12018 # Same as above, but do not quote variable references.
12019 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12020
12021 # Sed substitution to delay expansion of an escaped shell variable in a
12022 # double_quote_subst'ed string.
12023 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12024
12025 # Sed substitution to delay expansion of an escaped single quote.
12026 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12027
12028 # Sed substitution to avoid accidental globbing in evaled expressions
12029 no_glob_subst='s/\*/\\\*/g'
12030
12031 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12036 $as_echo_n "checking how to print strings... " >&6; }
12037 # Test print first, because it will be a builtin if present.
12038 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12040 ECHO='print -r --'
12041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12042 ECHO='printf %s\n'
12043 else
12044 # Use this function as a fallback that always works.
12045 func_fallback_echo ()
12046 {
12047 eval 'cat <<_LTECHO_EOF
12048 $1
12049 _LTECHO_EOF'
12050 }
12051 ECHO='func_fallback_echo'
12052 fi
12053
12054 # func_echo_all arg...
12055 # Invoke $ECHO with all args, space-separated.
12056 func_echo_all ()
12057 {
12058 $ECHO ""
12059 }
12060
12061 case "$ECHO" in
12062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12063 $as_echo "printf" >&6; } ;;
12064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12065 $as_echo "print -r" >&6; } ;;
12066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12067 $as_echo "cat" >&6; } ;;
12068 esac
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12085 if test "${ac_cv_path_SED+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12089 for ac_i in 1 2 3 4 5 6 7; do
12090 ac_script="$ac_script$as_nl$ac_script"
12091 done
12092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12093 { ac_script=; unset ac_script;}
12094 if test -z "$SED"; then
12095 ac_path_SED_found=false
12096 # Loop through the user's path and test for each of PROGNAME-LIST
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_prog in sed gsed; do
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12106 # Check for GNU ac_path_SED and select it if it is found.
12107 # Check for GNU $ac_path_SED
12108 case `"$ac_path_SED" --version 2>&1` in
12109 *GNU*)
12110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12111 *)
12112 ac_count=0
12113 $as_echo_n 0123456789 >"conftest.in"
12114 while :
12115 do
12116 cat "conftest.in" "conftest.in" >"conftest.tmp"
12117 mv "conftest.tmp" "conftest.in"
12118 cp "conftest.in" "conftest.nl"
12119 $as_echo '' >> "conftest.nl"
12120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12122 as_fn_arith $ac_count + 1 && ac_count=$as_val
12123 if test $ac_count -gt ${ac_path_SED_max-0}; then
12124 # Best one so far, save it but keep looking for a better one
12125 ac_cv_path_SED="$ac_path_SED"
12126 ac_path_SED_max=$ac_count
12127 fi
12128 # 10*(2^10) chars as input seems more than enough
12129 test $ac_count -gt 10 && break
12130 done
12131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12132 esac
12133
12134 $ac_path_SED_found && break 3
12135 done
12136 done
12137 done
12138 IFS=$as_save_IFS
12139 if test -z "$ac_cv_path_SED"; then
12140 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12141 fi
12142 else
12143 ac_cv_path_SED=$SED
12144 fi
12145
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12148 $as_echo "$ac_cv_path_SED" >&6; }
12149 SED="$ac_cv_path_SED"
12150 rm -f conftest.sed
12151
12152 test -z "$SED" && SED=sed
12153 Xsed="$SED -e 1s/^X//"
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12166 $as_echo_n "checking for fgrep... " >&6; }
12167 if test "${ac_cv_path_FGREP+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12171 then ac_cv_path_FGREP="$GREP -F"
12172 else
12173 if test -z "$FGREP"; then
12174 ac_path_FGREP_found=false
12175 # Loop through the user's path and test for each of PROGNAME-LIST
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12178 do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_prog in fgrep; do
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12185 # Check for GNU ac_path_FGREP and select it if it is found.
12186 # Check for GNU $ac_path_FGREP
12187 case `"$ac_path_FGREP" --version 2>&1` in
12188 *GNU*)
12189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12190 *)
12191 ac_count=0
12192 $as_echo_n 0123456789 >"conftest.in"
12193 while :
12194 do
12195 cat "conftest.in" "conftest.in" >"conftest.tmp"
12196 mv "conftest.tmp" "conftest.in"
12197 cp "conftest.in" "conftest.nl"
12198 $as_echo 'FGREP' >> "conftest.nl"
12199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12201 as_fn_arith $ac_count + 1 && ac_count=$as_val
12202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12203 # Best one so far, save it but keep looking for a better one
12204 ac_cv_path_FGREP="$ac_path_FGREP"
12205 ac_path_FGREP_max=$ac_count
12206 fi
12207 # 10*(2^10) chars as input seems more than enough
12208 test $ac_count -gt 10 && break
12209 done
12210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12211 esac
12212
12213 $ac_path_FGREP_found && break 3
12214 done
12215 done
12216 done
12217 IFS=$as_save_IFS
12218 if test -z "$ac_cv_path_FGREP"; then
12219 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12220 fi
12221 else
12222 ac_cv_path_FGREP=$FGREP
12223 fi
12224
12225 fi
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12228 $as_echo "$ac_cv_path_FGREP" >&6; }
12229 FGREP="$ac_cv_path_FGREP"
12230
12231
12232 test -z "$GREP" && GREP=grep
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252 # Check whether --with-gnu-ld was given.
12253 if test "${with_gnu_ld+set}" = set; then :
12254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12255 else
12256 with_gnu_ld=no
12257 fi
12258
12259 ac_prog=ld
12260 if test "$GCC" = yes; then
12261 # Check if gcc -print-prog-name=ld gives a path.
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12263 $as_echo_n "checking for ld used by $CC... " >&6; }
12264 case $host in
12265 *-*-mingw*)
12266 # gcc leaves a trailing carriage return which upsets mingw
12267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12268 *)
12269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12270 esac
12271 case $ac_prog in
12272 # Accept absolute paths.
12273 [\\/]* | ?:[\\/]*)
12274 re_direlt='/[^/][^/]*/\.\./'
12275 # Canonicalize the pathname of ld
12276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12279 done
12280 test -z "$LD" && LD="$ac_prog"
12281 ;;
12282 "")
12283 # If it fails, then pretend we aren't using GCC.
12284 ac_prog=ld
12285 ;;
12286 *)
12287 # If it is relative, then search for the first ld in PATH.
12288 with_gnu_ld=unknown
12289 ;;
12290 esac
12291 elif test "$with_gnu_ld" = yes; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12293 $as_echo_n "checking for GNU ld... " >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12296 $as_echo_n "checking for non-GNU ld... " >&6; }
12297 fi
12298 if test "${lt_cv_path_LD+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12300 else
12301 if test -z "$LD"; then
12302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12303 for ac_dir in $PATH; do
12304 IFS="$lt_save_ifs"
12305 test -z "$ac_dir" && ac_dir=.
12306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12307 lt_cv_path_LD="$ac_dir/$ac_prog"
12308 # Check to see if the program is GNU ld. I'd rather use --version,
12309 # but apparently some variants of GNU ld only accept -v.
12310 # Break only if it was the GNU/non-GNU ld that we prefer.
12311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12312 *GNU* | *'with BFD'*)
12313 test "$with_gnu_ld" != no && break
12314 ;;
12315 *)
12316 test "$with_gnu_ld" != yes && break
12317 ;;
12318 esac
12319 fi
12320 done
12321 IFS="$lt_save_ifs"
12322 else
12323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12324 fi
12325 fi
12326
12327 LD="$lt_cv_path_LD"
12328 if test -n "$LD"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12330 $as_echo "$LD" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12334 fi
12335 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU* | *'with BFD'*)
12344 lt_cv_prog_gnu_ld=yes
12345 ;;
12346 *)
12347 lt_cv_prog_gnu_ld=no
12348 ;;
12349 esac
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld=$lt_cv_prog_gnu_ld
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12365 if test "${lt_cv_path_NM+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 if test -n "$NM"; then
12369 # Let the user override the test.
12370 lt_cv_path_NM="$NM"
12371 else
12372 lt_nm_to_check="${ac_tool_prefix}nm"
12373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12374 lt_nm_to_check="$lt_nm_to_check nm"
12375 fi
12376 for lt_tmp_nm in $lt_nm_to_check; do
12377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12379 IFS="$lt_save_ifs"
12380 test -z "$ac_dir" && ac_dir=.
12381 tmp_nm="$ac_dir/$lt_tmp_nm"
12382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12383 # Check to see if the nm accepts a BSD-compat flag.
12384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12385 # nm: unknown option "B" ignored
12386 # Tru64's nm complains that /dev/null is an invalid object file
12387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12388 */dev/null* | *'Invalid file or object type'*)
12389 lt_cv_path_NM="$tmp_nm -B"
12390 break
12391 ;;
12392 *)
12393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12394 */dev/null*)
12395 lt_cv_path_NM="$tmp_nm -p"
12396 break
12397 ;;
12398 *)
12399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12400 continue # so that we can try to find one that supports BSD flags
12401 ;;
12402 esac
12403 ;;
12404 esac
12405 fi
12406 done
12407 IFS="$lt_save_ifs"
12408 done
12409 : ${lt_cv_path_NM=no}
12410 fi
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12413 $as_echo "$lt_cv_path_NM" >&6; }
12414 if test "$lt_cv_path_NM" != "no"; then
12415 NM="$lt_cv_path_NM"
12416 else
12417 # Didn't find any BSD compatible name lister, look for dumpbin.
12418 if test -n "$DUMPBIN"; then :
12419 # Let the user override the test.
12420 else
12421 if test -n "$ac_tool_prefix"; then
12422 for ac_prog in dumpbin "link -dump"
12423 do
12424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -n "$DUMPBIN"; then
12432 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449 fi
12450 fi
12451 DUMPBIN=$ac_cv_prog_DUMPBIN
12452 if test -n "$DUMPBIN"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12454 $as_echo "$DUMPBIN" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459
12460
12461 test -n "$DUMPBIN" && break
12462 done
12463 fi
12464 if test -z "$DUMPBIN"; then
12465 ac_ct_DUMPBIN=$DUMPBIN
12466 for ac_prog in dumpbin "link -dump"
12467 do
12468 # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy $ac_prog; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$ac_ct_DUMPBIN"; then
12476 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12480 do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489 done
12490 done
12491 IFS=$as_save_IFS
12492
12493 fi
12494 fi
12495 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12496 if test -n "$ac_ct_DUMPBIN"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12498 $as_echo "$ac_ct_DUMPBIN" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503
12504
12505 test -n "$ac_ct_DUMPBIN" && break
12506 done
12507
12508 if test "x$ac_ct_DUMPBIN" = x; then
12509 DUMPBIN=":"
12510 else
12511 case $cross_compiling:$ac_tool_warned in
12512 yes:)
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515 ac_tool_warned=yes ;;
12516 esac
12517 DUMPBIN=$ac_ct_DUMPBIN
12518 fi
12519 fi
12520
12521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12522 *COFF*)
12523 DUMPBIN="$DUMPBIN -symbols"
12524 ;;
12525 *)
12526 DUMPBIN=:
12527 ;;
12528 esac
12529 fi
12530
12531 if test "$DUMPBIN" != ":"; then
12532 NM="$DUMPBIN"
12533 fi
12534 fi
12535 test -z "$NM" && NM=nm
12536
12537
12538
12539
12540
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12544 if test "${lt_cv_nm_interface+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 lt_cv_nm_interface="BSD nm"
12548 echo "int some_variable = 0;" > conftest.$ac_ext
12549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12550 (eval "$ac_compile" 2>conftest.err)
12551 cat conftest.err >&5
12552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12554 cat conftest.err >&5
12555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12556 cat conftest.out >&5
12557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12558 lt_cv_nm_interface="MS dumpbin"
12559 fi
12560 rm -f conftest*
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12563 $as_echo "$lt_cv_nm_interface" >&6; }
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12566 $as_echo_n "checking whether ln -s works... " >&6; }
12567 LN_S=$as_ln_s
12568 if test "$LN_S" = "ln -s"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12570 $as_echo "yes" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12573 $as_echo "no, using $LN_S" >&6; }
12574 fi
12575
12576 # find the maximum length of command line arguments
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 i=0
12583 teststring="ABCD"
12584
12585 case $build_os in
12586 msdosdjgpp*)
12587 # On DJGPP, this test can blow up pretty badly due to problems in libc
12588 # (any single argument exceeding 2000 bytes causes a buffer overrun
12589 # during glob expansion). Even if it were fixed, the result of this
12590 # check would be larger than it should be.
12591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12592 ;;
12593
12594 gnu*)
12595 # Under GNU Hurd, this test is not required because there is
12596 # no limit to the length of command line arguments.
12597 # Libtool will interpret -1 as no limit whatsoever
12598 lt_cv_sys_max_cmd_len=-1;
12599 ;;
12600
12601 cygwin* | mingw* | cegcc*)
12602 # On Win9x/ME, this test blows up -- it succeeds, but takes
12603 # about 5 minutes as the teststring grows exponentially.
12604 # Worse, since 9x/ME are not pre-emptively multitasking,
12605 # you end up with a "frozen" computer, even though with patience
12606 # the test eventually succeeds (with a max line length of 256k).
12607 # Instead, let's just punt: use the minimum linelength reported by
12608 # all of the supported platforms: 8192 (on NT/2K/XP).
12609 lt_cv_sys_max_cmd_len=8192;
12610 ;;
12611
12612 mint*)
12613 # On MiNT this can take a long time and run out of memory.
12614 lt_cv_sys_max_cmd_len=8192;
12615 ;;
12616
12617 amigaos*)
12618 # On AmigaOS with pdksh, this test takes hours, literally.
12619 # So we just punt and use a minimum line length of 8192.
12620 lt_cv_sys_max_cmd_len=8192;
12621 ;;
12622
12623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12624 # This has been around since 386BSD, at least. Likely further.
12625 if test -x /sbin/sysctl; then
12626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12627 elif test -x /usr/sbin/sysctl; then
12628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12629 else
12630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12631 fi
12632 # And add a safety zone
12633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12635 ;;
12636
12637 interix*)
12638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12639 lt_cv_sys_max_cmd_len=196608
12640 ;;
12641
12642 osf*)
12643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12645 # nice to cause kernel panics so lets avoid the loop below.
12646 # First set a reasonable default.
12647 lt_cv_sys_max_cmd_len=16384
12648 #
12649 if test -x /sbin/sysconfig; then
12650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12651 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12652 esac
12653 fi
12654 ;;
12655 sco3.2v5*)
12656 lt_cv_sys_max_cmd_len=102400
12657 ;;
12658 sysv5* | sco5v6* | sysv4.2uw2*)
12659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12660 if test -n "$kargmax"; then
12661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12662 else
12663 lt_cv_sys_max_cmd_len=32768
12664 fi
12665 ;;
12666 *)
12667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12668 if test -n "$lt_cv_sys_max_cmd_len"; then
12669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12671 else
12672 # Make teststring a little bigger before we do anything with it.
12673 # a 1K string should be a reasonable start.
12674 for i in 1 2 3 4 5 6 7 8 ; do
12675 teststring=$teststring$teststring
12676 done
12677 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12678 # If test is not a shell built-in, we'll probably end up computing a
12679 # maximum length that is only half of the actual maximum length, but
12680 # we can't tell.
12681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12682 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12683 test $i != 17 # 1/2 MB should be enough
12684 do
12685 i=`expr $i + 1`
12686 teststring=$teststring$teststring
12687 done
12688 # Only check the string length outside the loop.
12689 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12690 teststring=
12691 # Add a significant safety factor because C++ compilers can tack on
12692 # massive amounts of additional arguments before passing them to the
12693 # linker. It appears as though 1/2 is a usable value.
12694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12695 fi
12696 ;;
12697 esac
12698
12699 fi
12700
12701 if test -n $lt_cv_sys_max_cmd_len ; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12706 $as_echo "none" >&6; }
12707 fi
12708 max_cmd_len=$lt_cv_sys_max_cmd_len
12709
12710
12711
12712
12713
12714
12715 : ${CP="cp -f"}
12716 : ${MV="mv -f"}
12717 : ${RM="rm -f"}
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12721 # Try some XSI features
12722 xsi_shell=no
12723 ( _lt_dummy="a/b/c"
12724 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12725 = c,a/b,, \
12726 && eval 'test $(( 1 + 1 )) -eq 2 \
12727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12728 && xsi_shell=yes
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12730 $as_echo "$xsi_shell" >&6; }
12731
12732
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12734 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12735 lt_shell_append=no
12736 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12737 >/dev/null 2>&1 \
12738 && lt_shell_append=yes
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12740 $as_echo "$lt_shell_append" >&6; }
12741
12742
12743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12744 lt_unset=unset
12745 else
12746 lt_unset=false
12747 fi
12748
12749
12750
12751
12752
12753 # test EBCDIC or ASCII
12754 case `echo X|tr X '\101'` in
12755 A) # ASCII based system
12756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12757 lt_SP2NL='tr \040 \012'
12758 lt_NL2SP='tr \015\012 \040\040'
12759 ;;
12760 *) # EBCDIC based system
12761 lt_SP2NL='tr \100 \n'
12762 lt_NL2SP='tr \r\n \100\100'
12763 ;;
12764 esac
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12775 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12776 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 lt_cv_ld_reload_flag='-r'
12780 fi
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12783 reload_flag=$lt_cv_ld_reload_flag
12784 case $reload_flag in
12785 "" | " "*) ;;
12786 *) reload_flag=" $reload_flag" ;;
12787 esac
12788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12789 case $host_os in
12790 darwin*)
12791 if test "$GCC" = yes; then
12792 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12793 else
12794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12795 fi
12796 ;;
12797 esac
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807 if test -n "$ac_tool_prefix"; then
12808 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811 $as_echo_n "checking for $ac_word... " >&6; }
12812 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 if test -n "$OBJDUMP"; then
12816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12817 else
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12820 do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12828 fi
12829 done
12830 done
12831 IFS=$as_save_IFS
12832
12833 fi
12834 fi
12835 OBJDUMP=$ac_cv_prog_OBJDUMP
12836 if test -n "$OBJDUMP"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12838 $as_echo "$OBJDUMP" >&6; }
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12842 fi
12843
12844
12845 fi
12846 if test -z "$ac_cv_prog_OBJDUMP"; then
12847 ac_ct_OBJDUMP=$OBJDUMP
12848 # Extract the first word of "objdump", so it can be a program name with args.
12849 set dummy objdump; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12851 $as_echo_n "checking for $ac_word... " >&6; }
12852 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 if test -n "$ac_ct_OBJDUMP"; then
12856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12857 else
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12860 do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12868 fi
12869 done
12870 done
12871 IFS=$as_save_IFS
12872
12873 fi
12874 fi
12875 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12876 if test -n "$ac_ct_OBJDUMP"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12878 $as_echo "$ac_ct_OBJDUMP" >&6; }
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12882 fi
12883
12884 if test "x$ac_ct_OBJDUMP" = x; then
12885 OBJDUMP="false"
12886 else
12887 case $cross_compiling:$ac_tool_warned in
12888 yes:)
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12891 ac_tool_warned=yes ;;
12892 esac
12893 OBJDUMP=$ac_ct_OBJDUMP
12894 fi
12895 else
12896 OBJDUMP="$ac_cv_prog_OBJDUMP"
12897 fi
12898
12899 test -z "$OBJDUMP" && OBJDUMP=objdump
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12910 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12911 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 lt_cv_file_magic_cmd='$MAGIC_CMD'
12915 lt_cv_file_magic_test_file=
12916 lt_cv_deplibs_check_method='unknown'
12917 # Need to set the preceding variable on all platforms that support
12918 # interlibrary dependencies.
12919 # 'none' -- dependencies not supported.
12920 # `unknown' -- same as none, but documents that we really don't know.
12921 # 'pass_all' -- all dependencies passed with no checks.
12922 # 'test_compile' -- check by making test program.
12923 # 'file_magic [[regex]]' -- check by looking for files in library path
12924 # which responds to the $file_magic_cmd with a given extended regex.
12925 # If you have `file' or equivalent on your system and you're not sure
12926 # whether `pass_all' will *always* work, you probably want this one.
12927
12928 case $host_os in
12929 aix[4-9]*)
12930 lt_cv_deplibs_check_method=pass_all
12931 ;;
12932
12933 beos*)
12934 lt_cv_deplibs_check_method=pass_all
12935 ;;
12936
12937 bsdi[45]*)
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12939 lt_cv_file_magic_cmd='/usr/bin/file -L'
12940 lt_cv_file_magic_test_file=/shlib/libc.so
12941 ;;
12942
12943 cygwin*)
12944 # func_win32_libid is a shell function defined in ltmain.sh
12945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12946 lt_cv_file_magic_cmd='func_win32_libid'
12947 ;;
12948
12949 mingw* | pw32*)
12950 # Base MSYS/MinGW do not provide the 'file' command needed by
12951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12952 # unless we find 'file', for example because we are cross-compiling.
12953 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12954 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12956 lt_cv_file_magic_cmd='func_win32_libid'
12957 else
12958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12959 lt_cv_file_magic_cmd='$OBJDUMP -f'
12960 fi
12961 ;;
12962
12963 cegcc*)
12964 # use the weaker test based on 'objdump'. See mingw*.
12965 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12966 lt_cv_file_magic_cmd='$OBJDUMP -f'
12967 ;;
12968
12969 darwin* | rhapsody*)
12970 lt_cv_deplibs_check_method=pass_all
12971 ;;
12972
12973 freebsd* | dragonfly*)
12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12975 case $host_cpu in
12976 i*86 )
12977 # Not sure whether the presence of OpenBSD here was a mistake.
12978 # Let's accept both of them until this is cleared up.
12979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12980 lt_cv_file_magic_cmd=/usr/bin/file
12981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12982 ;;
12983 esac
12984 else
12985 lt_cv_deplibs_check_method=pass_all
12986 fi
12987 ;;
12988
12989 gnu*)
12990 lt_cv_deplibs_check_method=pass_all
12991 ;;
12992
12993 haiku*)
12994 lt_cv_deplibs_check_method=pass_all
12995 ;;
12996
12997 hpux10.20* | hpux11*)
12998 lt_cv_file_magic_cmd=/usr/bin/file
12999 case $host_cpu in
13000 ia64*)
13001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13003 ;;
13004 hppa*64*)
13005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
13006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13007 ;;
13008 *)
13009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13010 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13011 ;;
13012 esac
13013 ;;
13014
13015 interix[3-9]*)
13016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13018 ;;
13019
13020 irix5* | irix6* | nonstopux*)
13021 case $LD in
13022 *-32|*"-32 ") libmagic=32-bit;;
13023 *-n32|*"-n32 ") libmagic=N32;;
13024 *-64|*"-64 ") libmagic=64-bit;;
13025 *) libmagic=never-match;;
13026 esac
13027 lt_cv_deplibs_check_method=pass_all
13028 ;;
13029
13030 # This must be Linux ELF.
13031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13032 lt_cv_deplibs_check_method=pass_all
13033 ;;
13034
13035 netbsd*)
13036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13038 else
13039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13040 fi
13041 ;;
13042
13043 newos6*)
13044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13045 lt_cv_file_magic_cmd=/usr/bin/file
13046 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13047 ;;
13048
13049 *nto* | *qnx*)
13050 lt_cv_deplibs_check_method=pass_all
13051 ;;
13052
13053 openbsd*)
13054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13056 else
13057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13058 fi
13059 ;;
13060
13061 osf3* | osf4* | osf5*)
13062 lt_cv_deplibs_check_method=pass_all
13063 ;;
13064
13065 rdos*)
13066 lt_cv_deplibs_check_method=pass_all
13067 ;;
13068
13069 solaris*)
13070 lt_cv_deplibs_check_method=pass_all
13071 ;;
13072
13073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13074 lt_cv_deplibs_check_method=pass_all
13075 ;;
13076
13077 sysv4 | sysv4.3*)
13078 case $host_vendor in
13079 motorola)
13080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
13081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13082 ;;
13083 ncr)
13084 lt_cv_deplibs_check_method=pass_all
13085 ;;
13086 sequent)
13087 lt_cv_file_magic_cmd='/bin/file'
13088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13089 ;;
13090 sni)
13091 lt_cv_file_magic_cmd='/bin/file'
13092 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13093 lt_cv_file_magic_test_file=/lib/libc.so
13094 ;;
13095 siemens)
13096 lt_cv_deplibs_check_method=pass_all
13097 ;;
13098 pc)
13099 lt_cv_deplibs_check_method=pass_all
13100 ;;
13101 esac
13102 ;;
13103
13104 tpf*)
13105 lt_cv_deplibs_check_method=pass_all
13106 ;;
13107 esac
13108
13109 fi
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13111 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13112 file_magic_cmd=$lt_cv_file_magic_cmd
13113 deplibs_check_method=$lt_cv_deplibs_check_method
13114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 $as_echo_n "checking for $ac_word... " >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 AR=$ac_cv_prog_AR
13156 if test -n "$AR"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13158 $as_echo "$AR" >&6; }
13159 else
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161 $as_echo "no" >&6; }
13162 fi
13163
13164
13165 fi
13166 if test -z "$ac_cv_prog_AR"; then
13167 ac_ct_AR=$AR
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13188 fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193 fi
13194 fi
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13198 $as_echo "$ac_ct_AR" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13202 fi
13203
13204 if test "x$ac_ct_AR" = x; then
13205 AR="false"
13206 else
13207 case $cross_compiling:$ac_tool_warned in
13208 yes:)
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13211 ac_tool_warned=yes ;;
13212 esac
13213 AR=$ac_ct_AR
13214 fi
13215 else
13216 AR="$ac_cv_prog_AR"
13217 fi
13218
13219 test -z "$AR" && AR=ar
13220 test -z "$AR_FLAGS" && AR_FLAGS=cru
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}strip; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if test "${ac_cv_prog_STRIP+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13257
13258 fi
13259 fi
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269
13270 fi
13271 if test -z "$ac_cv_prog_STRIP"; then
13272 ac_ct_STRIP=$STRIP
13273 # Extract the first word of "strip", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$ac_ct_STRIP"; then
13281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_STRIP="strip"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294 done
13295 done
13296 IFS=$as_save_IFS
13297
13298 fi
13299 fi
13300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13301 if test -n "$ac_ct_STRIP"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13303 $as_echo "$ac_ct_STRIP" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13308
13309 if test "x$ac_ct_STRIP" = x; then
13310 STRIP=":"
13311 else
13312 case $cross_compiling:$ac_tool_warned in
13313 yes:)
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13316 ac_tool_warned=yes ;;
13317 esac
13318 STRIP=$ac_ct_STRIP
13319 fi
13320 else
13321 STRIP="$ac_cv_prog_STRIP"
13322 fi
13323
13324 test -z "$STRIP" && STRIP=:
13325
13326
13327
13328
13329
13330
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 if test -n "$RANLIB"; then
13340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13341 else
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13352 fi
13353 done
13354 done
13355 IFS=$as_save_IFS
13356
13357 fi
13358 fi
13359 RANLIB=$ac_cv_prog_RANLIB
13360 if test -n "$RANLIB"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13362 $as_echo "$RANLIB" >&6; }
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366 fi
13367
13368
13369 fi
13370 if test -z "$ac_cv_prog_RANLIB"; then
13371 ac_ct_RANLIB=$RANLIB
13372 # Extract the first word of "ranlib", so it can be a program name with args.
13373 set dummy ranlib; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$ac_ct_RANLIB"; then
13380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13384 do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_ac_ct_RANLIB="ranlib"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13392 fi
13393 done
13394 done
13395 IFS=$as_save_IFS
13396
13397 fi
13398 fi
13399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13400 if test -n "$ac_ct_RANLIB"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13402 $as_echo "$ac_ct_RANLIB" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13406 fi
13407
13408 if test "x$ac_ct_RANLIB" = x; then
13409 RANLIB=":"
13410 else
13411 case $cross_compiling:$ac_tool_warned in
13412 yes:)
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13415 ac_tool_warned=yes ;;
13416 esac
13417 RANLIB=$ac_ct_RANLIB
13418 fi
13419 else
13420 RANLIB="$ac_cv_prog_RANLIB"
13421 fi
13422
13423 test -z "$RANLIB" && RANLIB=:
13424
13425
13426
13427
13428
13429
13430 # Determine commands to create old-style static archives.
13431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13432 old_postinstall_cmds='chmod 644 $oldlib'
13433 old_postuninstall_cmds=
13434
13435 if test -n "$RANLIB"; then
13436 case $host_os in
13437 openbsd*)
13438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13439 ;;
13440 *)
13441 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13442 ;;
13443 esac
13444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13445 fi
13446
13447 case $host_os in
13448 darwin*)
13449 lock_old_archive_extraction=yes ;;
13450 *)
13451 lock_old_archive_extraction=no ;;
13452 esac
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492 # If no C compiler was specified, use CC.
13493 LTCC=${LTCC-"$CC"}
13494
13495 # If no C compiler flags were specified, use CFLAGS.
13496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13497
13498 # Allow CC to be a program name with arguments.
13499 compiler=$CC
13500
13501
13502 # Check for command to grab the raw symbol name followed by C symbol from nm.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13504 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508
13509 # These are sane defaults that work on at least a few old systems.
13510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13511
13512 # Character class describing NM global symbol codes.
13513 symcode='[BCDEGRST]'
13514
13515 # Regexp to match symbols that can be accessed directly from C.
13516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13517
13518 # Define system-specific variables.
13519 case $host_os in
13520 aix*)
13521 symcode='[BCDT]'
13522 ;;
13523 cygwin* | mingw* | pw32* | cegcc*)
13524 symcode='[ABCDGISTW]'
13525 ;;
13526 hpux*)
13527 if test "$host_cpu" = ia64; then
13528 symcode='[ABCDEGRST]'
13529 fi
13530 ;;
13531 irix* | nonstopux*)
13532 symcode='[BCDEGRST]'
13533 ;;
13534 osf*)
13535 symcode='[BCDEGQRST]'
13536 ;;
13537 solaris*)
13538 symcode='[BDRT]'
13539 ;;
13540 sco3.2v5*)
13541 symcode='[DT]'
13542 ;;
13543 sysv4.2uw2*)
13544 symcode='[DT]'
13545 ;;
13546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13547 symcode='[ABDT]'
13548 ;;
13549 sysv4)
13550 symcode='[DFNSTU]'
13551 ;;
13552 esac
13553
13554 # If we're using GNU nm, then use its standard symbol codes.
13555 case `$NM -V 2>&1` in
13556 *GNU* | *'with BFD'*)
13557 symcode='[ABCDGIRSTW]' ;;
13558 esac
13559
13560 # Transform an extracted symbol line into a proper C declaration.
13561 # Some systems (esp. on ia64) link data and code symbols differently,
13562 # so use this general approach.
13563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13564
13565 # Transform an extracted symbol line into symbol name and symbol address
13566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13568
13569 # Handle CRLF in mingw tool chain
13570 opt_cr=
13571 case $build_os in
13572 mingw*)
13573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13574 ;;
13575 esac
13576
13577 # Try without a prefix underscore, then with it.
13578 for ac_symprfx in "" "_"; do
13579
13580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13581 symxfrm="\\1 $ac_symprfx\\2 \\2"
13582
13583 # Write the raw and C identifiers.
13584 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13585 # Fake it for dumpbin and say T for any non-static function
13586 # and D for any global variable.
13587 # Also find C++ and __fastcall symbols from MSVC++,
13588 # which start with @ or ?.
13589 lt_cv_sys_global_symbol_pipe="$AWK '"\
13590 " {last_section=section; section=\$ 3};"\
13591 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13592 " \$ 0!~/External *\|/{next};"\
13593 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13594 " {if(hide[section]) next};"\
13595 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13596 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13597 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13598 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13599 " ' prfx=^$ac_symprfx"
13600 else
13601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13602 fi
13603
13604 # Check to see that the pipe works correctly.
13605 pipe_works=no
13606
13607 rm -f conftest*
13608 cat > conftest.$ac_ext <<_LT_EOF
13609 #ifdef __cplusplus
13610 extern "C" {
13611 #endif
13612 char nm_test_var;
13613 void nm_test_func(void);
13614 void nm_test_func(void){}
13615 #ifdef __cplusplus
13616 }
13617 #endif
13618 int main(){nm_test_var='a';nm_test_func();return(0);}
13619 _LT_EOF
13620
13621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13622 (eval $ac_compile) 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; then
13626 # Now try to grab the symbols.
13627 nlist=conftest.nm
13628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; } && test -s "$nlist"; then
13633 # Try sorting and uniquifying the output.
13634 if sort "$nlist" | uniq > "$nlist"T; then
13635 mv -f "$nlist"T "$nlist"
13636 else
13637 rm -f "$nlist"T
13638 fi
13639
13640 # Make sure that we snagged all the symbols we need.
13641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13643 cat <<_LT_EOF > conftest.$ac_ext
13644 #ifdef __cplusplus
13645 extern "C" {
13646 #endif
13647
13648 _LT_EOF
13649 # Now generate the symbol file.
13650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13651
13652 cat <<_LT_EOF >> conftest.$ac_ext
13653
13654 /* The mapping between symbol names and symbols. */
13655 const struct {
13656 const char *name;
13657 void *address;
13658 }
13659 lt__PROGRAM__LTX_preloaded_symbols[] =
13660 {
13661 { "@PROGRAM@", (void *) 0 },
13662 _LT_EOF
13663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13664 cat <<\_LT_EOF >> conftest.$ac_ext
13665 {0, (void *) 0}
13666 };
13667
13668 /* This works around a problem in FreeBSD linker */
13669 #ifdef FREEBSD_WORKAROUND
13670 static const void *lt_preloaded_setup() {
13671 return lt__PROGRAM__LTX_preloaded_symbols;
13672 }
13673 #endif
13674
13675 #ifdef __cplusplus
13676 }
13677 #endif
13678 _LT_EOF
13679 # Now try linking the two files.
13680 mv conftest.$ac_objext conftstm.$ac_objext
13681 lt_save_LIBS="$LIBS"
13682 lt_save_CFLAGS="$CFLAGS"
13683 LIBS="conftstm.$ac_objext"
13684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13686 (eval $ac_link) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13690 pipe_works=yes
13691 fi
13692 LIBS="$lt_save_LIBS"
13693 CFLAGS="$lt_save_CFLAGS"
13694 else
13695 echo "cannot find nm_test_func in $nlist" >&5
13696 fi
13697 else
13698 echo "cannot find nm_test_var in $nlist" >&5
13699 fi
13700 else
13701 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13702 fi
13703 else
13704 echo "$progname: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13706 fi
13707 rm -rf conftest* conftst*
13708
13709 # Do not use the global_symbol_pipe unless it works.
13710 if test "$pipe_works" = yes; then
13711 break
13712 else
13713 lt_cv_sys_global_symbol_pipe=
13714 fi
13715 done
13716
13717 fi
13718
13719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13720 lt_cv_sys_global_symbol_to_cdecl=
13721 fi
13722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13724 $as_echo "failed" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13727 $as_echo "ok" >&6; }
13728 fi
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 # Check whether --enable-libtool-lock was given.
13752 if test "${enable_libtool_lock+set}" = set; then :
13753 enableval=$enable_libtool_lock;
13754 fi
13755
13756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13757
13758 # Some flags need to be propagated to the compiler or linker for good
13759 # libtool support.
13760 case $host in
13761 ia64-*-hpux*)
13762 # Find out which ABI we are using.
13763 echo 'int i;' > conftest.$ac_ext
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13766 ac_status=$?
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 case `/usr/bin/file conftest.$ac_objext` in
13770 *ELF-32*)
13771 HPUX_IA64_MODE="32"
13772 ;;
13773 *ELF-64*)
13774 HPUX_IA64_MODE="64"
13775 ;;
13776 esac
13777 fi
13778 rm -rf conftest*
13779 ;;
13780 *-*-irix6*)
13781 # Find out which ABI we are using.
13782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784 (eval $ac_compile) 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; }; then
13788 if test "$lt_cv_prog_gnu_ld" = yes; then
13789 case `/usr/bin/file conftest.$ac_objext` in
13790 *32-bit*)
13791 LD="${LD-ld} -melf32bsmip"
13792 ;;
13793 *N32*)
13794 LD="${LD-ld} -melf32bmipn32"
13795 ;;
13796 *64-bit*)
13797 LD="${LD-ld} -melf64bmip"
13798 ;;
13799 esac
13800 else
13801 case `/usr/bin/file conftest.$ac_objext` in
13802 *32-bit*)
13803 LD="${LD-ld} -32"
13804 ;;
13805 *N32*)
13806 LD="${LD-ld} -n32"
13807 ;;
13808 *64-bit*)
13809 LD="${LD-ld} -64"
13810 ;;
13811 esac
13812 fi
13813 fi
13814 rm -rf conftest*
13815 ;;
13816
13817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13819 # Find out which ABI we are using.
13820 echo 'int i;' > conftest.$ac_ext
13821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13823 ac_status=$?
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 case `/usr/bin/file conftest.o` in
13827 *32-bit*)
13828 case $host in
13829 x86_64-*kfreebsd*-gnu)
13830 LD="${LD-ld} -m elf_i386_fbsd"
13831 ;;
13832 x86_64-*linux*)
13833 case `/usr/bin/file conftest.o` in
13834 *x86-64*)
13835 LD="${LD-ld} -m elf32_x86_64"
13836 ;;
13837 *)
13838 LD="${LD-ld} -m elf_i386"
13839 ;;
13840 esac
13841 ;;
13842 powerpc64le-*linux*)
13843 LD="${LD-ld} -m elf32lppclinux"
13844 ;;
13845 powerpc64-*linux*)
13846 LD="${LD-ld} -m elf32ppclinux"
13847 ;;
13848 s390x-*linux*)
13849 LD="${LD-ld} -m elf_s390"
13850 ;;
13851 sparc64-*linux*)
13852 LD="${LD-ld} -m elf32_sparc"
13853 ;;
13854 esac
13855 ;;
13856 *64-bit*)
13857 case $host in
13858 x86_64-*kfreebsd*-gnu)
13859 LD="${LD-ld} -m elf_x86_64_fbsd"
13860 ;;
13861 x86_64-*linux*)
13862 LD="${LD-ld} -m elf_x86_64"
13863 ;;
13864 powerpcle-*linux*)
13865 LD="${LD-ld} -m elf64lppc"
13866 ;;
13867 powerpc-*linux*)
13868 LD="${LD-ld} -m elf64ppc"
13869 ;;
13870 s390*-*linux*|s390*-*tpf*)
13871 LD="${LD-ld} -m elf64_s390"
13872 ;;
13873 sparc*-*linux*)
13874 LD="${LD-ld} -m elf64_sparc"
13875 ;;
13876 esac
13877 ;;
13878 esac
13879 fi
13880 rm -rf conftest*
13881 ;;
13882
13883 *-*-sco3.2v5*)
13884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13885 SAVE_CFLAGS="$CFLAGS"
13886 CFLAGS="$CFLAGS -belf"
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13889 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 ac_ext=c
13893 ac_cpp='$CPP $CPPFLAGS'
13894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13897
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900
13901 int
13902 main ()
13903 {
13904
13905 ;
13906 return 0;
13907 }
13908 _ACEOF
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 lt_cv_cc_needs_belf=yes
13911 else
13912 lt_cv_cc_needs_belf=no
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 ac_ext=c
13917 ac_cpp='$CPP $CPPFLAGS'
13918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13921
13922 fi
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13924 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13925 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13926 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13927 CFLAGS="$SAVE_CFLAGS"
13928 fi
13929 ;;
13930 sparc*-*solaris*)
13931 # Find out which ABI we are using.
13932 echo 'int i;' > conftest.$ac_ext
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13934 (eval $ac_compile) 2>&5
13935 ac_status=$?
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }; then
13938 case `/usr/bin/file conftest.o` in
13939 *64-bit*)
13940 case $lt_cv_prog_gnu_ld in
13941 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13942 *)
13943 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13944 LD="${LD-ld} -64"
13945 fi
13946 ;;
13947 esac
13948 ;;
13949 esac
13950 fi
13951 rm -rf conftest*
13952 ;;
13953 esac
13954
13955 need_locks="$enable_libtool_lock"
13956
13957
13958 case $host_os in
13959 rhapsody* | darwin*)
13960 if test -n "$ac_tool_prefix"; then
13961 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13962 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964 $as_echo_n "checking for $ac_word... " >&6; }
13965 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 if test -n "$DSYMUTIL"; then
13969 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13970 else
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13973 do
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13978 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 break 2
13981 fi
13982 done
13983 done
13984 IFS=$as_save_IFS
13985
13986 fi
13987 fi
13988 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13989 if test -n "$DSYMUTIL"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13991 $as_echo "$DSYMUTIL" >&6; }
13992 else
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 $as_echo "no" >&6; }
13995 fi
13996
13997
13998 fi
13999 if test -z "$ac_cv_prog_DSYMUTIL"; then
14000 ac_ct_DSYMUTIL=$DSYMUTIL
14001 # Extract the first word of "dsymutil", so it can be a program name with args.
14002 set dummy dsymutil; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 if test -n "$ac_ct_DSYMUTIL"; then
14009 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014 IFS=$as_save_IFS
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 break 2
14021 fi
14022 done
14023 done
14024 IFS=$as_save_IFS
14025
14026 fi
14027 fi
14028 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14029 if test -n "$ac_ct_DSYMUTIL"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14031 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14035 fi
14036
14037 if test "x$ac_ct_DSYMUTIL" = x; then
14038 DSYMUTIL=":"
14039 else
14040 case $cross_compiling:$ac_tool_warned in
14041 yes:)
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14044 ac_tool_warned=yes ;;
14045 esac
14046 DSYMUTIL=$ac_ct_DSYMUTIL
14047 fi
14048 else
14049 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14050 fi
14051
14052 if test -n "$ac_tool_prefix"; then
14053 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14054 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 if test -n "$NMEDIT"; then
14061 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14065 do
14066 IFS=$as_save_IFS
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14070 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 break 2
14073 fi
14074 done
14075 done
14076 IFS=$as_save_IFS
14077
14078 fi
14079 fi
14080 NMEDIT=$ac_cv_prog_NMEDIT
14081 if test -n "$NMEDIT"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14083 $as_echo "$NMEDIT" >&6; }
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14087 fi
14088
14089
14090 fi
14091 if test -z "$ac_cv_prog_NMEDIT"; then
14092 ac_ct_NMEDIT=$NMEDIT
14093 # Extract the first word of "nmedit", so it can be a program name with args.
14094 set dummy nmedit; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 if test -n "$ac_ct_NMEDIT"; then
14101 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14102 else
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14113 fi
14114 done
14115 done
14116 IFS=$as_save_IFS
14117
14118 fi
14119 fi
14120 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14121 if test -n "$ac_ct_NMEDIT"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14123 $as_echo "$ac_ct_NMEDIT" >&6; }
14124 else
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14127 fi
14128
14129 if test "x$ac_ct_NMEDIT" = x; then
14130 NMEDIT=":"
14131 else
14132 case $cross_compiling:$ac_tool_warned in
14133 yes:)
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14136 ac_tool_warned=yes ;;
14137 esac
14138 NMEDIT=$ac_ct_NMEDIT
14139 fi
14140 else
14141 NMEDIT="$ac_cv_prog_NMEDIT"
14142 fi
14143
14144 if test -n "$ac_tool_prefix"; then
14145 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14146 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148 $as_echo_n "checking for $ac_word... " >&6; }
14149 if test "${ac_cv_prog_LIPO+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 if test -n "$LIPO"; then
14153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14157 do
14158 IFS=$as_save_IFS
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14162 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164 break 2
14165 fi
14166 done
14167 done
14168 IFS=$as_save_IFS
14169
14170 fi
14171 fi
14172 LIPO=$ac_cv_prog_LIPO
14173 if test -n "$LIPO"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14175 $as_echo "$LIPO" >&6; }
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 fi
14180
14181
14182 fi
14183 if test -z "$ac_cv_prog_LIPO"; then
14184 ac_ct_LIPO=$LIPO
14185 # Extract the first word of "lipo", so it can be a program name with args.
14186 set dummy lipo; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188 $as_echo_n "checking for $ac_word... " >&6; }
14189 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if test -n "$ac_ct_LIPO"; then
14193 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14194 else
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14197 do
14198 IFS=$as_save_IFS
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14202 ac_cv_prog_ac_ct_LIPO="lipo"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14204 break 2
14205 fi
14206 done
14207 done
14208 IFS=$as_save_IFS
14209
14210 fi
14211 fi
14212 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14213 if test -n "$ac_ct_LIPO"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14215 $as_echo "$ac_ct_LIPO" >&6; }
14216 else
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14219 fi
14220
14221 if test "x$ac_ct_LIPO" = x; then
14222 LIPO=":"
14223 else
14224 case $cross_compiling:$ac_tool_warned in
14225 yes:)
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14228 ac_tool_warned=yes ;;
14229 esac
14230 LIPO=$ac_ct_LIPO
14231 fi
14232 else
14233 LIPO="$ac_cv_prog_LIPO"
14234 fi
14235
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}otool; ac_word=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244 if test -n "$OTOOL"; then
14245 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14249 do
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14257 fi
14258 done
14259 done
14260 IFS=$as_save_IFS
14261
14262 fi
14263 fi
14264 OTOOL=$ac_cv_prog_OTOOL
14265 if test -n "$OTOOL"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14267 $as_echo "$OTOOL" >&6; }
14268 else
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14271 fi
14272
14273
14274 fi
14275 if test -z "$ac_cv_prog_OTOOL"; then
14276 ac_ct_OTOOL=$OTOOL
14277 # Extract the first word of "otool", so it can be a program name with args.
14278 set dummy otool; ac_word=$2
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 if test -n "$ac_ct_OTOOL"; then
14285 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14286 else
14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14289 do
14290 IFS=$as_save_IFS
14291 test -z "$as_dir" && as_dir=.
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14294 ac_cv_prog_ac_ct_OTOOL="otool"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296 break 2
14297 fi
14298 done
14299 done
14300 IFS=$as_save_IFS
14301
14302 fi
14303 fi
14304 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14305 if test -n "$ac_ct_OTOOL"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14307 $as_echo "$ac_ct_OTOOL" >&6; }
14308 else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14311 fi
14312
14313 if test "x$ac_ct_OTOOL" = x; then
14314 OTOOL=":"
14315 else
14316 case $cross_compiling:$ac_tool_warned in
14317 yes:)
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14320 ac_tool_warned=yes ;;
14321 esac
14322 OTOOL=$ac_ct_OTOOL
14323 fi
14324 else
14325 OTOOL="$ac_cv_prog_OTOOL"
14326 fi
14327
14328 if test -n "$ac_tool_prefix"; then
14329 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14330 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14332 $as_echo_n "checking for $ac_word... " >&6; }
14333 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 if test -n "$OTOOL64"; then
14337 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14338 else
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14341 do
14342 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=.
14344 for ac_exec_ext in '' $ac_executable_extensions; do
14345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14346 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348 break 2
14349 fi
14350 done
14351 done
14352 IFS=$as_save_IFS
14353
14354 fi
14355 fi
14356 OTOOL64=$ac_cv_prog_OTOOL64
14357 if test -n "$OTOOL64"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14359 $as_echo "$OTOOL64" >&6; }
14360 else
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 $as_echo "no" >&6; }
14363 fi
14364
14365
14366 fi
14367 if test -z "$ac_cv_prog_OTOOL64"; then
14368 ac_ct_OTOOL64=$OTOOL64
14369 # Extract the first word of "otool64", so it can be a program name with args.
14370 set dummy otool64; ac_word=$2
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14372 $as_echo_n "checking for $ac_word... " >&6; }
14373 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 if test -n "$ac_ct_OTOOL64"; then
14377 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14378 else
14379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14380 for as_dir in $PATH
14381 do
14382 IFS=$as_save_IFS
14383 test -z "$as_dir" && as_dir=.
14384 for ac_exec_ext in '' $ac_executable_extensions; do
14385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14386 ac_cv_prog_ac_ct_OTOOL64="otool64"
14387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14388 break 2
14389 fi
14390 done
14391 done
14392 IFS=$as_save_IFS
14393
14394 fi
14395 fi
14396 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14397 if test -n "$ac_ct_OTOOL64"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14399 $as_echo "$ac_ct_OTOOL64" >&6; }
14400 else
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 $as_echo "no" >&6; }
14403 fi
14404
14405 if test "x$ac_ct_OTOOL64" = x; then
14406 OTOOL64=":"
14407 else
14408 case $cross_compiling:$ac_tool_warned in
14409 yes:)
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14412 ac_tool_warned=yes ;;
14413 esac
14414 OTOOL64=$ac_ct_OTOOL64
14415 fi
14416 else
14417 OTOOL64="$ac_cv_prog_OTOOL64"
14418 fi
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14447 $as_echo_n "checking for -single_module linker flag... " >&6; }
14448 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 lt_cv_apple_cc_single_mod=no
14452 if test -z "${LT_MULTI_MODULE}"; then
14453 # By default we will add the -single_module flag. You can override
14454 # by either setting the environment variable LT_MULTI_MODULE
14455 # non-empty at configure time, or by adding -multi_module to the
14456 # link flags.
14457 rm -rf libconftest.dylib*
14458 echo "int foo(void){return 1;}" > conftest.c
14459 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14460 -dynamiclib -Wl,-single_module conftest.c" >&5
14461 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14462 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14463 _lt_result=$?
14464 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14465 lt_cv_apple_cc_single_mod=yes
14466 else
14467 cat conftest.err >&5
14468 fi
14469 rm -rf libconftest.dylib*
14470 rm -f conftest.*
14471 fi
14472 fi
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14474 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14476 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14477 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 lt_cv_ld_exported_symbols_list=no
14481 save_LDFLAGS=$LDFLAGS
14482 echo "_main" > conftest.sym
14483 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486
14487 int
14488 main ()
14489 {
14490
14491 ;
14492 return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 lt_cv_ld_exported_symbols_list=yes
14497 else
14498 lt_cv_ld_exported_symbols_list=no
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LDFLAGS="$save_LDFLAGS"
14503
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14506 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14508 $as_echo_n "checking for -force_load linker flag... " >&6; }
14509 if test "${lt_cv_ld_force_load+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 lt_cv_ld_force_load=no
14513 cat > conftest.c << _LT_EOF
14514 int forced_loaded() { return 2;}
14515 _LT_EOF
14516 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14517 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14518 echo "$AR cru libconftest.a conftest.o" >&5
14519 $AR cru libconftest.a conftest.o 2>&5
14520 cat > conftest.c << _LT_EOF
14521 int main() { return 0;}
14522 _LT_EOF
14523 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14524 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14525 _lt_result=$?
14526 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14527 lt_cv_ld_force_load=yes
14528 else
14529 cat conftest.err >&5
14530 fi
14531 rm -f conftest.err libconftest.a conftest conftest.c
14532 rm -rf conftest.dSYM
14533
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14536 $as_echo "$lt_cv_ld_force_load" >&6; }
14537 case $host_os in
14538 rhapsody* | darwin1.[012])
14539 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14540 darwin1.*)
14541 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14542 darwin*) # darwin 5.x on
14543 # if running on 10.5 or later, the deployment target defaults
14544 # to the OS version, if on x86, and 10.4, the deployment
14545 # target defaults to 10.4. Don't you love it?
14546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14547 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14548 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14549 10.[012]*)
14550 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14551 10.*)
14552 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14553 esac
14554 ;;
14555 esac
14556 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14557 _lt_dar_single_mod='$single_module'
14558 fi
14559 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14560 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14561 else
14562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14563 fi
14564 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14565 _lt_dsymutil='~$DSYMUTIL $lib || :'
14566 else
14567 _lt_dsymutil=
14568 fi
14569 ;;
14570 esac
14571
14572 for ac_header in dlfcn.h
14573 do :
14574 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14575 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_DLFCN_H 1
14578 _ACEOF
14579
14580 fi
14581 done
14582
14583
14584
14585
14586
14587 # Set options
14588
14589
14590
14591 enable_dlopen=no
14592
14593
14594 enable_win32_dll=no
14595
14596
14597 # Check whether --enable-shared was given.
14598 if test "${enable_shared+set}" = set; then :
14599 enableval=$enable_shared; p=${PACKAGE-default}
14600 case $enableval in
14601 yes) enable_shared=yes ;;
14602 no) enable_shared=no ;;
14603 *)
14604 enable_shared=no
14605 # Look at the argument we got. We use all the common list separators.
14606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14607 for pkg in $enableval; do
14608 IFS="$lt_save_ifs"
14609 if test "X$pkg" = "X$p"; then
14610 enable_shared=yes
14611 fi
14612 done
14613 IFS="$lt_save_ifs"
14614 ;;
14615 esac
14616 else
14617 enable_shared=yes
14618 fi
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628 # Check whether --enable-static was given.
14629 if test "${enable_static+set}" = set; then :
14630 enableval=$enable_static; p=${PACKAGE-default}
14631 case $enableval in
14632 yes) enable_static=yes ;;
14633 no) enable_static=no ;;
14634 *)
14635 enable_static=no
14636 # Look at the argument we got. We use all the common list separators.
14637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14638 for pkg in $enableval; do
14639 IFS="$lt_save_ifs"
14640 if test "X$pkg" = "X$p"; then
14641 enable_static=yes
14642 fi
14643 done
14644 IFS="$lt_save_ifs"
14645 ;;
14646 esac
14647 else
14648 enable_static=yes
14649 fi
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660 # Check whether --with-pic was given.
14661 if test "${with_pic+set}" = set; then :
14662 withval=$with_pic; pic_mode="$withval"
14663 else
14664 pic_mode=default
14665 fi
14666
14667
14668 test -z "$pic_mode" && pic_mode=default
14669
14670
14671
14672
14673
14674
14675
14676 # Check whether --enable-fast-install was given.
14677 if test "${enable_fast_install+set}" = set; then :
14678 enableval=$enable_fast_install; p=${PACKAGE-default}
14679 case $enableval in
14680 yes) enable_fast_install=yes ;;
14681 no) enable_fast_install=no ;;
14682 *)
14683 enable_fast_install=no
14684 # Look at the argument we got. We use all the common list separators.
14685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14686 for pkg in $enableval; do
14687 IFS="$lt_save_ifs"
14688 if test "X$pkg" = "X$p"; then
14689 enable_fast_install=yes
14690 fi
14691 done
14692 IFS="$lt_save_ifs"
14693 ;;
14694 esac
14695 else
14696 enable_fast_install=yes
14697 fi
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709 # This can be used to rebuild libtool when needed
14710 LIBTOOL_DEPS="$ltmain"
14711
14712 # Always use our own libtool.
14713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740 test -z "$LN_S" && LN_S="ln -s"
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755 if test -n "${ZSH_VERSION+set}" ; then
14756 setopt NO_GLOB_SUBST
14757 fi
14758
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14760 $as_echo_n "checking for objdir... " >&6; }
14761 if test "${lt_cv_objdir+set}" = set; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 rm -f .libs 2>/dev/null
14765 mkdir .libs 2>/dev/null
14766 if test -d .libs; then
14767 lt_cv_objdir=.libs
14768 else
14769 # MS-DOS does not allow filenames that begin with a dot.
14770 lt_cv_objdir=_libs
14771 fi
14772 rmdir .libs 2>/dev/null
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14775 $as_echo "$lt_cv_objdir" >&6; }
14776 objdir=$lt_cv_objdir
14777
14778
14779
14780
14781
14782 cat >>confdefs.h <<_ACEOF
14783 #define LT_OBJDIR "$lt_cv_objdir/"
14784 _ACEOF
14785
14786
14787
14788
14789 case $host_os in
14790 aix3*)
14791 # AIX sometimes has problems with the GCC collect2 program. For some
14792 # reason, if we set the COLLECT_NAMES environment variable, the problems
14793 # vanish in a puff of smoke.
14794 if test "X${COLLECT_NAMES+set}" != Xset; then
14795 COLLECT_NAMES=
14796 export COLLECT_NAMES
14797 fi
14798 ;;
14799 esac
14800
14801 # Global variables:
14802 ofile=libtool
14803 can_build_shared=yes
14804
14805 # All known linkers require a `.a' archive for static linking (except MSVC,
14806 # which needs '.lib').
14807 libext=a
14808
14809 with_gnu_ld="$lt_cv_prog_gnu_ld"
14810
14811 old_CC="$CC"
14812 old_CFLAGS="$CFLAGS"
14813
14814 # Set sane defaults for various variables
14815 test -z "$CC" && CC=cc
14816 test -z "$LTCC" && LTCC=$CC
14817 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14818 test -z "$LD" && LD=ld
14819 test -z "$ac_objext" && ac_objext=o
14820
14821 for cc_temp in $compiler""; do
14822 case $cc_temp in
14823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14825 \-*) ;;
14826 *) break;;
14827 esac
14828 done
14829 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14830
14831
14832 # Only perform the check for file, if the check method requires it
14833 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14834 case $deplibs_check_method in
14835 file_magic*)
14836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14838 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 case $MAGIC_CMD in
14843 [\\/*] | ?:[\\/]*)
14844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14845 ;;
14846 *)
14847 lt_save_MAGIC_CMD="$MAGIC_CMD"
14848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14850 for ac_dir in $ac_dummy; do
14851 IFS="$lt_save_ifs"
14852 test -z "$ac_dir" && ac_dir=.
14853 if test -f $ac_dir/${ac_tool_prefix}file; then
14854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14855 if test -n "$file_magic_test_file"; then
14856 case $deplibs_check_method in
14857 "file_magic "*)
14858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14861 $EGREP "$file_magic_regex" > /dev/null; then
14862 :
14863 else
14864 cat <<_LT_EOF 1>&2
14865
14866 *** Warning: the command libtool uses to detect shared libraries,
14867 *** $file_magic_cmd, produces output that libtool cannot recognize.
14868 *** The result is that libtool may fail to recognize shared libraries
14869 *** as such. This will affect the creation of libtool libraries that
14870 *** depend on shared libraries, but programs linked with such libtool
14871 *** libraries will work regardless of this problem. Nevertheless, you
14872 *** may want to report the problem to your system manager and/or to
14873 *** bug-libtool@gnu.org
14874
14875 _LT_EOF
14876 fi ;;
14877 esac
14878 fi
14879 break
14880 fi
14881 done
14882 IFS="$lt_save_ifs"
14883 MAGIC_CMD="$lt_save_MAGIC_CMD"
14884 ;;
14885 esac
14886 fi
14887
14888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14889 if test -n "$MAGIC_CMD"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14891 $as_echo "$MAGIC_CMD" >&6; }
14892 else
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14895 fi
14896
14897
14898
14899
14900
14901 if test -z "$lt_cv_path_MAGIC_CMD"; then
14902 if test -n "$ac_tool_prefix"; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14904 $as_echo_n "checking for file... " >&6; }
14905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 case $MAGIC_CMD in
14909 [\\/*] | ?:[\\/]*)
14910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14911 ;;
14912 *)
14913 lt_save_MAGIC_CMD="$MAGIC_CMD"
14914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14916 for ac_dir in $ac_dummy; do
14917 IFS="$lt_save_ifs"
14918 test -z "$ac_dir" && ac_dir=.
14919 if test -f $ac_dir/file; then
14920 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14921 if test -n "$file_magic_test_file"; then
14922 case $deplibs_check_method in
14923 "file_magic "*)
14924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14927 $EGREP "$file_magic_regex" > /dev/null; then
14928 :
14929 else
14930 cat <<_LT_EOF 1>&2
14931
14932 *** Warning: the command libtool uses to detect shared libraries,
14933 *** $file_magic_cmd, produces output that libtool cannot recognize.
14934 *** The result is that libtool may fail to recognize shared libraries
14935 *** as such. This will affect the creation of libtool libraries that
14936 *** depend on shared libraries, but programs linked with such libtool
14937 *** libraries will work regardless of this problem. Nevertheless, you
14938 *** may want to report the problem to your system manager and/or to
14939 *** bug-libtool@gnu.org
14940
14941 _LT_EOF
14942 fi ;;
14943 esac
14944 fi
14945 break
14946 fi
14947 done
14948 IFS="$lt_save_ifs"
14949 MAGIC_CMD="$lt_save_MAGIC_CMD"
14950 ;;
14951 esac
14952 fi
14953
14954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14955 if test -n "$MAGIC_CMD"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14957 $as_echo "$MAGIC_CMD" >&6; }
14958 else
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960 $as_echo "no" >&6; }
14961 fi
14962
14963
14964 else
14965 MAGIC_CMD=:
14966 fi
14967 fi
14968
14969 fi
14970 ;;
14971 esac
14972
14973 # Use C for the default configuration in the libtool script
14974
14975 lt_save_CC="$CC"
14976 ac_ext=c
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14981
14982
14983 # Source file extension for C test sources.
14984 ac_ext=c
14985
14986 # Object file extension for compiled C test sources.
14987 objext=o
14988 objext=$objext
14989
14990 # Code to be used in simple compile tests
14991 lt_simple_compile_test_code="int some_variable = 0;"
14992
14993 # Code to be used in simple link tests
14994 lt_simple_link_test_code='int main(){return(0);}'
14995
14996
14997
14998
14999
15000
15001
15002 # If no C compiler was specified, use CC.
15003 LTCC=${LTCC-"$CC"}
15004
15005 # If no C compiler flags were specified, use CFLAGS.
15006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15007
15008 # Allow CC to be a program name with arguments.
15009 compiler=$CC
15010
15011 # Save the default compiler, since it gets overwritten when the other
15012 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15013 compiler_DEFAULT=$CC
15014
15015 # save warnings/boilerplate of simple test code
15016 ac_outfile=conftest.$ac_objext
15017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15019 _lt_compiler_boilerplate=`cat conftest.err`
15020 $RM conftest*
15021
15022 ac_outfile=conftest.$ac_objext
15023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15025 _lt_linker_boilerplate=`cat conftest.err`
15026 $RM -r conftest*
15027
15028
15029 ## CAVEAT EMPTOR:
15030 ## There is no encapsulation within the following macros, do not change
15031 ## the running order or otherwise move them around unless you know exactly
15032 ## what you are doing...
15033 if test -n "$compiler"; then
15034
15035 lt_prog_compiler_no_builtin_flag=
15036
15037 if test "$GCC" = yes; then
15038 case $cc_basename in
15039 nvcc*)
15040 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15041 *)
15042 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15043 esac
15044
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15046 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15047 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15048 $as_echo_n "(cached) " >&6
15049 else
15050 lt_cv_prog_compiler_rtti_exceptions=no
15051 ac_outfile=conftest.$ac_objext
15052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053 lt_compiler_flag="-fno-rtti -fno-exceptions"
15054 # Insert the option either (1) after the last *FLAGS variable, or
15055 # (2) before a word containing "conftest.", or (3) at the end.
15056 # Note that $ac_compile itself does not contain backslashes and begins
15057 # with a dollar sign (not a hyphen), so the echo should work correctly.
15058 # The option is referenced via a variable to avoid confusing sed.
15059 lt_compile=`echo "$ac_compile" | $SED \
15060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15062 -e 's:$: $lt_compiler_flag:'`
15063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15064 (eval "$lt_compile" 2>conftest.err)
15065 ac_status=$?
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 if (exit $ac_status) && test -s "$ac_outfile"; then
15069 # The compiler can only warn and ignore the option if not recognized
15070 # So say no if there are warnings other than the usual output.
15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15074 lt_cv_prog_compiler_rtti_exceptions=yes
15075 fi
15076 fi
15077 $RM conftest*
15078
15079 fi
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15081 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15082
15083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15084 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15085 else
15086 :
15087 fi
15088
15089 fi
15090
15091
15092
15093
15094
15095
15096 lt_prog_compiler_wl=
15097 lt_prog_compiler_pic=
15098 lt_prog_compiler_static=
15099
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15101 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15102
15103 if test "$GCC" = yes; then
15104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_static='-static'
15106
15107 case $host_os in
15108 aix*)
15109 # All AIX code is PIC.
15110 if test "$host_cpu" = ia64; then
15111 # AIX 5 now supports IA64 processor
15112 lt_prog_compiler_static='-Bstatic'
15113 fi
15114 lt_prog_compiler_pic='-fPIC'
15115 ;;
15116
15117 amigaos*)
15118 case $host_cpu in
15119 powerpc)
15120 # see comment about AmigaOS4 .so support
15121 lt_prog_compiler_pic='-fPIC'
15122 ;;
15123 m68k)
15124 # FIXME: we need at least 68020 code to build shared libraries, but
15125 # adding the `-m68020' flag to GCC prevents building anything better,
15126 # like `-m68040'.
15127 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15128 ;;
15129 esac
15130 ;;
15131
15132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15133 # PIC is the default for these OSes.
15134 ;;
15135
15136 mingw* | cygwin* | pw32* | os2* | cegcc*)
15137 # This hack is so that the source file can tell whether it is being
15138 # built for inclusion in a dll (and should export symbols for example).
15139 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15140 # (--disable-auto-import) libraries
15141 lt_prog_compiler_pic='-DDLL_EXPORT'
15142 ;;
15143
15144 darwin* | rhapsody*)
15145 # PIC is the default on this platform
15146 # Common symbols not allowed in MH_DYLIB files
15147 lt_prog_compiler_pic='-fno-common'
15148 ;;
15149
15150 haiku*)
15151 # PIC is the default for Haiku.
15152 # The "-static" flag exists, but is broken.
15153 lt_prog_compiler_static=
15154 ;;
15155
15156 hpux*)
15157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15159 # sets the default TLS model and affects inlining.
15160 case $host_cpu in
15161 hppa*64*)
15162 # +Z the default
15163 ;;
15164 *)
15165 lt_prog_compiler_pic='-fPIC'
15166 ;;
15167 esac
15168 ;;
15169
15170 interix[3-9]*)
15171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15172 # Instead, we relocate shared libraries at runtime.
15173 ;;
15174
15175 msdosdjgpp*)
15176 # Just because we use GCC doesn't mean we suddenly get shared libraries
15177 # on systems that don't support them.
15178 lt_prog_compiler_can_build_shared=no
15179 enable_shared=no
15180 ;;
15181
15182 *nto* | *qnx*)
15183 # QNX uses GNU C++, but need to define -shared option too, otherwise
15184 # it will coredump.
15185 lt_prog_compiler_pic='-fPIC -shared'
15186 ;;
15187
15188 sysv4*MP*)
15189 if test -d /usr/nec; then
15190 lt_prog_compiler_pic=-Kconform_pic
15191 fi
15192 ;;
15193
15194 *)
15195 lt_prog_compiler_pic='-fPIC'
15196 ;;
15197 esac
15198
15199 case $cc_basename in
15200 nvcc*) # Cuda Compiler Driver 2.2
15201 lt_prog_compiler_wl='-Xlinker '
15202 lt_prog_compiler_pic='-Xcompiler -fPIC'
15203 ;;
15204 esac
15205 else
15206 # PORTME Check for flag to pass linker flags through the system compiler.
15207 case $host_os in
15208 aix*)
15209 lt_prog_compiler_wl='-Wl,'
15210 if test "$host_cpu" = ia64; then
15211 # AIX 5 now supports IA64 processor
15212 lt_prog_compiler_static='-Bstatic'
15213 else
15214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15215 fi
15216 ;;
15217
15218 mingw* | cygwin* | pw32* | os2* | cegcc*)
15219 # This hack is so that the source file can tell whether it is being
15220 # built for inclusion in a dll (and should export symbols for example).
15221 lt_prog_compiler_pic='-DDLL_EXPORT'
15222 ;;
15223
15224 hpux9* | hpux10* | hpux11*)
15225 lt_prog_compiler_wl='-Wl,'
15226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15227 # not for PA HP-UX.
15228 case $host_cpu in
15229 hppa*64*|ia64*)
15230 # +Z the default
15231 ;;
15232 *)
15233 lt_prog_compiler_pic='+Z'
15234 ;;
15235 esac
15236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15237 lt_prog_compiler_static='${wl}-a ${wl}archive'
15238 ;;
15239
15240 irix5* | irix6* | nonstopux*)
15241 lt_prog_compiler_wl='-Wl,'
15242 # PIC (with -KPIC) is the default.
15243 lt_prog_compiler_static='-non_shared'
15244 ;;
15245
15246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15247 case $cc_basename in
15248 # old Intel for x86_64 which still supported -KPIC.
15249 ecc*)
15250 lt_prog_compiler_wl='-Wl,'
15251 lt_prog_compiler_pic='-KPIC'
15252 lt_prog_compiler_static='-static'
15253 ;;
15254 # icc used to be incompatible with GCC.
15255 # ICC 10 doesn't accept -KPIC any more.
15256 icc* | ifort*)
15257 lt_prog_compiler_wl='-Wl,'
15258 lt_prog_compiler_pic='-fPIC'
15259 lt_prog_compiler_static='-static'
15260 ;;
15261 # Lahey Fortran 8.1.
15262 lf95*)
15263 lt_prog_compiler_wl='-Wl,'
15264 lt_prog_compiler_pic='--shared'
15265 lt_prog_compiler_static='--static'
15266 ;;
15267 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15268 # Portland Group compilers (*not* the Pentium gcc compiler,
15269 # which looks to be a dead project)
15270 lt_prog_compiler_wl='-Wl,'
15271 lt_prog_compiler_pic='-fpic'
15272 lt_prog_compiler_static='-Bstatic'
15273 ;;
15274 ccc*)
15275 lt_prog_compiler_wl='-Wl,'
15276 # All Alpha code is PIC.
15277 lt_prog_compiler_static='-non_shared'
15278 ;;
15279 xl* | bgxl* | bgf* | mpixl*)
15280 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15281 lt_prog_compiler_wl='-Wl,'
15282 lt_prog_compiler_pic='-qpic'
15283 lt_prog_compiler_static='-qstaticlink'
15284 ;;
15285 *)
15286 case `$CC -V 2>&1 | sed 5q` in
15287 *Sun\ F* | *Sun*Fortran*)
15288 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15289 lt_prog_compiler_pic='-KPIC'
15290 lt_prog_compiler_static='-Bstatic'
15291 lt_prog_compiler_wl=''
15292 ;;
15293 *Sun\ C*)
15294 # Sun C 5.9
15295 lt_prog_compiler_pic='-KPIC'
15296 lt_prog_compiler_static='-Bstatic'
15297 lt_prog_compiler_wl='-Wl,'
15298 ;;
15299 esac
15300 ;;
15301 esac
15302 ;;
15303
15304 newsos6)
15305 lt_prog_compiler_pic='-KPIC'
15306 lt_prog_compiler_static='-Bstatic'
15307 ;;
15308
15309 *nto* | *qnx*)
15310 # QNX uses GNU C++, but need to define -shared option too, otherwise
15311 # it will coredump.
15312 lt_prog_compiler_pic='-fPIC -shared'
15313 ;;
15314
15315 osf3* | osf4* | osf5*)
15316 lt_prog_compiler_wl='-Wl,'
15317 # All OSF/1 code is PIC.
15318 lt_prog_compiler_static='-non_shared'
15319 ;;
15320
15321 rdos*)
15322 lt_prog_compiler_static='-non_shared'
15323 ;;
15324
15325 solaris*)
15326 lt_prog_compiler_pic='-KPIC'
15327 lt_prog_compiler_static='-Bstatic'
15328 case $cc_basename in
15329 f77* | f90* | f95*)
15330 lt_prog_compiler_wl='-Qoption ld ';;
15331 *)
15332 lt_prog_compiler_wl='-Wl,';;
15333 esac
15334 ;;
15335
15336 sunos4*)
15337 lt_prog_compiler_wl='-Qoption ld '
15338 lt_prog_compiler_pic='-PIC'
15339 lt_prog_compiler_static='-Bstatic'
15340 ;;
15341
15342 sysv4 | sysv4.2uw2* | sysv4.3*)
15343 lt_prog_compiler_wl='-Wl,'
15344 lt_prog_compiler_pic='-KPIC'
15345 lt_prog_compiler_static='-Bstatic'
15346 ;;
15347
15348 sysv4*MP*)
15349 if test -d /usr/nec ;then
15350 lt_prog_compiler_pic='-Kconform_pic'
15351 lt_prog_compiler_static='-Bstatic'
15352 fi
15353 ;;
15354
15355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15356 lt_prog_compiler_wl='-Wl,'
15357 lt_prog_compiler_pic='-KPIC'
15358 lt_prog_compiler_static='-Bstatic'
15359 ;;
15360
15361 unicos*)
15362 lt_prog_compiler_wl='-Wl,'
15363 lt_prog_compiler_can_build_shared=no
15364 ;;
15365
15366 uts4*)
15367 lt_prog_compiler_pic='-pic'
15368 lt_prog_compiler_static='-Bstatic'
15369 ;;
15370
15371 *)
15372 lt_prog_compiler_can_build_shared=no
15373 ;;
15374 esac
15375 fi
15376
15377 case $host_os in
15378 # For platforms which do not support PIC, -DPIC is meaningless:
15379 *djgpp*)
15380 lt_prog_compiler_pic=
15381 ;;
15382 *)
15383 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15384 ;;
15385 esac
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15387 $as_echo "$lt_prog_compiler_pic" >&6; }
15388
15389
15390
15391
15392
15393
15394 #
15395 # Check to make sure the PIC flag actually works.
15396 #
15397 if test -n "$lt_prog_compiler_pic"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15400 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15401 $as_echo_n "(cached) " >&6
15402 else
15403 lt_cv_prog_compiler_pic_works=no
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 # The option is referenced via a variable to avoid confusing sed.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
15416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15417 (eval "$lt_compile" 2>conftest.err)
15418 ac_status=$?
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 if (exit $ac_status) && test -s "$ac_outfile"; then
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings other than the usual output.
15424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_pic_works=yes
15428 fi
15429 fi
15430 $RM conftest*
15431
15432 fi
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15434 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15435
15436 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15437 case $lt_prog_compiler_pic in
15438 "" | " "*) ;;
15439 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15440 esac
15441 else
15442 lt_prog_compiler_pic=
15443 lt_prog_compiler_can_build_shared=no
15444 fi
15445
15446 fi
15447
15448
15449
15450
15451
15452
15453 #
15454 # Check to make sure the static flag actually works.
15455 #
15456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15458 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15459 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 lt_cv_prog_compiler_static_works=no
15463 save_LDFLAGS="$LDFLAGS"
15464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15467 # The linker can only warn and ignore the option if not recognized
15468 # So say no if there are warnings
15469 if test -s conftest.err; then
15470 # Append any errors to the config.log.
15471 cat conftest.err 1>&5
15472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474 if diff conftest.exp conftest.er2 >/dev/null; then
15475 lt_cv_prog_compiler_static_works=yes
15476 fi
15477 else
15478 lt_cv_prog_compiler_static_works=yes
15479 fi
15480 fi
15481 $RM -r conftest*
15482 LDFLAGS="$save_LDFLAGS"
15483
15484 fi
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15486 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15487
15488 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15489 :
15490 else
15491 lt_prog_compiler_static=
15492 fi
15493
15494
15495
15496
15497
15498
15499
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 lt_cv_prog_compiler_c_o=no
15506 $RM -r conftest 2>/dev/null
15507 mkdir conftest
15508 cd conftest
15509 mkdir out
15510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15511
15512 lt_compiler_flag="-o out/conftest2.$ac_objext"
15513 # Insert the option either (1) after the last *FLAGS variable, or
15514 # (2) before a word containing "conftest.", or (3) at the end.
15515 # Note that $ac_compile itself does not contain backslashes and begins
15516 # with a dollar sign (not a hyphen), so the echo should work correctly.
15517 lt_compile=`echo "$ac_compile" | $SED \
15518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15520 -e 's:$: $lt_compiler_flag:'`
15521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15522 (eval "$lt_compile" 2>out/conftest.err)
15523 ac_status=$?
15524 cat out/conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15527 then
15528 # The compiler can only warn and ignore the option if not recognized
15529 # So say no if there are warnings
15530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15533 lt_cv_prog_compiler_c_o=yes
15534 fi
15535 fi
15536 chmod u+w . 2>&5
15537 $RM conftest*
15538 # SGI C++ compiler will create directory out/ii_files/ for
15539 # template instantiation
15540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15541 $RM out/* && rmdir out
15542 cd ..
15543 $RM -r conftest
15544 $RM conftest*
15545
15546 fi
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15548 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15549
15550
15551
15552
15553
15554
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15556 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15558 $as_echo_n "(cached) " >&6
15559 else
15560 lt_cv_prog_compiler_c_o=no
15561 $RM -r conftest 2>/dev/null
15562 mkdir conftest
15563 cd conftest
15564 mkdir out
15565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15566
15567 lt_compiler_flag="-o out/conftest2.$ac_objext"
15568 # Insert the option either (1) after the last *FLAGS variable, or
15569 # (2) before a word containing "conftest.", or (3) at the end.
15570 # Note that $ac_compile itself does not contain backslashes and begins
15571 # with a dollar sign (not a hyphen), so the echo should work correctly.
15572 lt_compile=`echo "$ac_compile" | $SED \
15573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15575 -e 's:$: $lt_compiler_flag:'`
15576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15577 (eval "$lt_compile" 2>out/conftest.err)
15578 ac_status=$?
15579 cat out/conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15582 then
15583 # The compiler can only warn and ignore the option if not recognized
15584 # So say no if there are warnings
15585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15588 lt_cv_prog_compiler_c_o=yes
15589 fi
15590 fi
15591 chmod u+w . 2>&5
15592 $RM conftest*
15593 # SGI C++ compiler will create directory out/ii_files/ for
15594 # template instantiation
15595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15596 $RM out/* && rmdir out
15597 cd ..
15598 $RM -r conftest
15599 $RM conftest*
15600
15601 fi
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15604
15605
15606
15607
15608 hard_links="nottested"
15609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15610 # do not overwrite the value of need_locks provided by the user
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15612 $as_echo_n "checking if we can lock with hard links... " >&6; }
15613 hard_links=yes
15614 $RM conftest*
15615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15616 touch conftest.a
15617 ln conftest.a conftest.b 2>&5 || hard_links=no
15618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15620 $as_echo "$hard_links" >&6; }
15621 if test "$hard_links" = no; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15623 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15624 need_locks=warn
15625 fi
15626 else
15627 need_locks=no
15628 fi
15629
15630
15631
15632
15633
15634
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15637
15638 runpath_var=
15639 allow_undefined_flag=
15640 always_export_symbols=no
15641 archive_cmds=
15642 archive_expsym_cmds=
15643 compiler_needs_object=no
15644 enable_shared_with_static_runtimes=no
15645 export_dynamic_flag_spec=
15646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15647 hardcode_automatic=no
15648 hardcode_direct=no
15649 hardcode_direct_absolute=no
15650 hardcode_libdir_flag_spec=
15651 hardcode_libdir_flag_spec_ld=
15652 hardcode_libdir_separator=
15653 hardcode_minus_L=no
15654 hardcode_shlibpath_var=unsupported
15655 inherit_rpath=no
15656 link_all_deplibs=unknown
15657 module_cmds=
15658 module_expsym_cmds=
15659 old_archive_from_new_cmds=
15660 old_archive_from_expsyms_cmds=
15661 thread_safe_flag_spec=
15662 whole_archive_flag_spec=
15663 # include_expsyms should be a list of space-separated symbols to be *always*
15664 # included in the symbol list
15665 include_expsyms=
15666 # exclude_expsyms can be an extended regexp of symbols to exclude
15667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15669 # as well as any symbol that contains `d'.
15670 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15672 # platforms (ab)use it in PIC code, but their linkers get confused if
15673 # the symbol is explicitly referenced. Since portable code cannot
15674 # rely on this symbol name, it's probably fine to never include it in
15675 # preloaded symbol tables.
15676 # Exclude shared library initialization/finalization symbols.
15677 extract_expsyms_cmds=
15678
15679 case $host_os in
15680 cygwin* | mingw* | pw32* | cegcc*)
15681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15682 # When not using gcc, we currently assume that we are using
15683 # Microsoft Visual C++.
15684 if test "$GCC" != yes; then
15685 with_gnu_ld=no
15686 fi
15687 ;;
15688 interix*)
15689 # we just hope/assume this is gcc and not c89 (= MSVC++)
15690 with_gnu_ld=yes
15691 ;;
15692 openbsd*)
15693 with_gnu_ld=no
15694 ;;
15695 esac
15696
15697 ld_shlibs=yes
15698
15699 # On some targets, GNU ld is compatible enough with the native linker
15700 # that we're better off using the native interface for both.
15701 lt_use_gnu_ld_interface=no
15702 if test "$with_gnu_ld" = yes; then
15703 case $host_os in
15704 aix*)
15705 # The AIX port of GNU ld has always aspired to compatibility
15706 # with the native linker. However, as the warning in the GNU ld
15707 # block says, versions before 2.19.5* couldn't really create working
15708 # shared libraries, regardless of the interface used.
15709 case `$LD -v 2>&1` in
15710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15713 *)
15714 lt_use_gnu_ld_interface=yes
15715 ;;
15716 esac
15717 ;;
15718 *)
15719 lt_use_gnu_ld_interface=yes
15720 ;;
15721 esac
15722 fi
15723
15724 if test "$lt_use_gnu_ld_interface" = yes; then
15725 # If archive_cmds runs LD, not CC, wlarc should be empty
15726 wlarc='${wl}'
15727
15728 # Set some defaults for GNU ld with shared library support. These
15729 # are reset later if shared libraries are not supported. Putting them
15730 # here allows them to be overridden if necessary.
15731 runpath_var=LD_RUN_PATH
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 export_dynamic_flag_spec='${wl}--export-dynamic'
15734 # ancient GNU ld didn't support --whole-archive et. al.
15735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15737 else
15738 whole_archive_flag_spec=
15739 fi
15740 supports_anon_versioning=no
15741 case `$LD -v 2>&1` in
15742 *GNU\ gold*) supports_anon_versioning=yes ;;
15743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15746 *\ 2.11.*) ;; # other 2.11 versions
15747 *) supports_anon_versioning=yes ;;
15748 esac
15749
15750 # See if GNU ld supports shared libraries.
15751 case $host_os in
15752 aix[3-9]*)
15753 # On AIX/PPC, the GNU linker is very broken
15754 if test "$host_cpu" != ia64; then
15755 ld_shlibs=no
15756 cat <<_LT_EOF 1>&2
15757
15758 *** Warning: the GNU linker, at least up to release 2.19, is reported
15759 *** to be unable to reliably create shared libraries on AIX.
15760 *** Therefore, libtool is disabling shared libraries support. If you
15761 *** really care for shared libraries, you may want to install binutils
15762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15763 *** You will then need to restart the configuration process.
15764
15765 _LT_EOF
15766 fi
15767 ;;
15768
15769 amigaos*)
15770 case $host_cpu in
15771 powerpc)
15772 # see comment about AmigaOS4 .so support
15773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774 archive_expsym_cmds=''
15775 ;;
15776 m68k)
15777 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15778 hardcode_libdir_flag_spec='-L$libdir'
15779 hardcode_minus_L=yes
15780 ;;
15781 esac
15782 ;;
15783
15784 beos*)
15785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15786 allow_undefined_flag=unsupported
15787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15788 # support --undefined. This deserves some investigation. FIXME
15789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790 else
15791 ld_shlibs=no
15792 fi
15793 ;;
15794
15795 cygwin* | mingw* | pw32* | cegcc*)
15796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15797 # as there is no search path for DLLs.
15798 hardcode_libdir_flag_spec='-L$libdir'
15799 export_dynamic_flag_spec='${wl}--export-all-symbols'
15800 allow_undefined_flag=unsupported
15801 always_export_symbols=no
15802 enable_shared_with_static_runtimes=yes
15803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15804
15805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15807 # If the export-symbols file already is a .def file (1st line
15808 # is EXPORTS), use it as is; otherwise, prepend...
15809 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15810 cp $export_symbols $output_objdir/$soname.def;
15811 else
15812 echo EXPORTS > $output_objdir/$soname.def;
15813 cat $export_symbols >> $output_objdir/$soname.def;
15814 fi~
15815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15816 else
15817 ld_shlibs=no
15818 fi
15819 ;;
15820
15821 haiku*)
15822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 link_all_deplibs=yes
15824 ;;
15825
15826 interix[3-9]*)
15827 hardcode_direct=no
15828 hardcode_shlibpath_var=no
15829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15830 export_dynamic_flag_spec='${wl}-E'
15831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15832 # Instead, shared libraries are loaded at an image base (0x10000000 by
15833 # default) and relocated if they conflict, which is a slow very memory
15834 # consuming and fragmenting process. To avoid this, we pick a random,
15835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15838 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15839 ;;
15840
15841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15842 tmp_diet=no
15843 if test "$host_os" = linux-dietlibc; then
15844 case $cc_basename in
15845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15846 esac
15847 fi
15848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15849 && test "$tmp_diet" = no
15850 then
15851 tmp_addflag=
15852 tmp_sharedflag='-shared'
15853 case $cc_basename,$host_cpu in
15854 pgcc*) # Portland Group C compiler
15855 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15856 tmp_addflag=' $pic_flag'
15857 ;;
15858 pgf77* | pgf90* | pgf95* | pgfortran*)
15859 # Portland Group f77 and f90 compilers
15860 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15861 tmp_addflag=' $pic_flag -Mnomain' ;;
15862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15863 tmp_addflag=' -i_dynamic' ;;
15864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15865 tmp_addflag=' -i_dynamic -nofor_main' ;;
15866 ifc* | ifort*) # Intel Fortran compiler
15867 tmp_addflag=' -nofor_main' ;;
15868 lf95*) # Lahey Fortran 8.1
15869 whole_archive_flag_spec=
15870 tmp_sharedflag='--shared' ;;
15871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15872 tmp_sharedflag='-qmkshrobj'
15873 tmp_addflag= ;;
15874 nvcc*) # Cuda Compiler Driver 2.2
15875 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15876 compiler_needs_object=yes
15877 ;;
15878 esac
15879 case `$CC -V 2>&1 | sed 5q` in
15880 *Sun\ C*) # Sun C 5.9
15881 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15882 compiler_needs_object=yes
15883 tmp_sharedflag='-G' ;;
15884 *Sun\ F*) # Sun Fortran 8.3
15885 tmp_sharedflag='-G' ;;
15886 esac
15887 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15888
15889 if test "x$supports_anon_versioning" = xyes; then
15890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15892 echo "local: *; };" >> $output_objdir/$libname.ver~
15893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15894 fi
15895
15896 case $cc_basename in
15897 xlf* | bgf* | bgxlf* | mpixlf*)
15898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15899 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15900 hardcode_libdir_flag_spec=
15901 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15902 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15903 if test "x$supports_anon_versioning" = xyes; then
15904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15906 echo "local: *; };" >> $output_objdir/$libname.ver~
15907 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15908 fi
15909 ;;
15910 esac
15911 else
15912 ld_shlibs=no
15913 fi
15914 ;;
15915
15916 netbsd*)
15917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15918 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15919 wlarc=
15920 else
15921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15923 fi
15924 ;;
15925
15926 solaris*)
15927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15928 ld_shlibs=no
15929 cat <<_LT_EOF 1>&2
15930
15931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15932 *** create shared libraries on Solaris systems. Therefore, libtool
15933 *** is disabling shared libraries support. We urge you to upgrade GNU
15934 *** binutils to release 2.9.1 or newer. Another option is to modify
15935 *** your PATH or compiler configuration so that the native linker is
15936 *** used, and then restart.
15937
15938 _LT_EOF
15939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15942 else
15943 ld_shlibs=no
15944 fi
15945 ;;
15946
15947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15948 case `$LD -v 2>&1` in
15949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15950 ld_shlibs=no
15951 cat <<_LT_EOF 1>&2
15952
15953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15954 *** reliably create shared libraries on SCO systems. Therefore, libtool
15955 *** is disabling shared libraries support. We urge you to upgrade GNU
15956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15957 *** your PATH or compiler configuration so that the native linker is
15958 *** used, and then restart.
15959
15960 _LT_EOF
15961 ;;
15962 *)
15963 # For security reasons, it is highly recommended that you always
15964 # use absolute paths for naming shared libraries, and exclude the
15965 # DT_RUNPATH tag from executables and libraries. But doing so
15966 # requires that you compile everything twice, which is a pain.
15967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15971 else
15972 ld_shlibs=no
15973 fi
15974 ;;
15975 esac
15976 ;;
15977
15978 sunos4*)
15979 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980 wlarc=
15981 hardcode_direct=yes
15982 hardcode_shlibpath_var=no
15983 ;;
15984
15985 *)
15986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15989 else
15990 ld_shlibs=no
15991 fi
15992 ;;
15993 esac
15994
15995 if test "$ld_shlibs" = no; then
15996 runpath_var=
15997 hardcode_libdir_flag_spec=
15998 export_dynamic_flag_spec=
15999 whole_archive_flag_spec=
16000 fi
16001 else
16002 # PORTME fill in a description of your system's linker (not GNU ld)
16003 case $host_os in
16004 aix3*)
16005 allow_undefined_flag=unsupported
16006 always_export_symbols=yes
16007 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16008 # Note: this linker hardcodes the directories in LIBPATH if there
16009 # are no directories specified by -L.
16010 hardcode_minus_L=yes
16011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16012 # Neither direct hardcoding nor static linking is supported with a
16013 # broken collect2.
16014 hardcode_direct=unsupported
16015 fi
16016 ;;
16017
16018 aix[4-9]*)
16019 if test "$host_cpu" = ia64; then
16020 # On IA64, the linker does run time linking by default, so we don't
16021 # have to do anything special.
16022 aix_use_runtimelinking=no
16023 exp_sym_flag='-Bexport'
16024 no_entry_flag=""
16025 else
16026 # If we're using GNU nm, then we don't want the "-C" option.
16027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16028 # Also, AIX nm treats weak defined symbols like other global
16029 # defined symbols, whereas GNU nm marks them as "W".
16030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16031 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16032 else
16033 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16034 fi
16035 aix_use_runtimelinking=no
16036
16037 # Test if we are trying to use run time linking or normal
16038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16039 # need to do runtime linking.
16040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16041 for ld_flag in $LDFLAGS; do
16042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16043 aix_use_runtimelinking=yes
16044 break
16045 fi
16046 done
16047 ;;
16048 esac
16049
16050 exp_sym_flag='-bexport'
16051 no_entry_flag='-bnoentry'
16052 fi
16053
16054 # When large executables or shared objects are built, AIX ld can
16055 # have problems creating the table of contents. If linking a library
16056 # or program results in "error TOC overflow" add -mminimal-toc to
16057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16059
16060 archive_cmds=''
16061 hardcode_direct=yes
16062 hardcode_direct_absolute=yes
16063 hardcode_libdir_separator=':'
16064 link_all_deplibs=yes
16065 file_list_spec='${wl}-f,'
16066
16067 if test "$GCC" = yes; then
16068 case $host_os in aix4.[012]|aix4.[012].*)
16069 # We only want to do this on AIX 4.2 and lower, the check
16070 # below for broken collect2 doesn't work under 4.3+
16071 collect2name=`${CC} -print-prog-name=collect2`
16072 if test -f "$collect2name" &&
16073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16074 then
16075 # We have reworked collect2
16076 :
16077 else
16078 # We have old collect2
16079 hardcode_direct=unsupported
16080 # It fails to find uninstalled libraries when the uninstalled
16081 # path is not listed in the libpath. Setting hardcode_minus_L
16082 # to unsupported forces relinking
16083 hardcode_minus_L=yes
16084 hardcode_libdir_flag_spec='-L$libdir'
16085 hardcode_libdir_separator=
16086 fi
16087 ;;
16088 esac
16089 shared_flag='-shared'
16090 if test "$aix_use_runtimelinking" = yes; then
16091 shared_flag="$shared_flag "'${wl}-G'
16092 fi
16093 else
16094 # not using gcc
16095 if test "$host_cpu" = ia64; then
16096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16097 # chokes on -Wl,-G. The following line is correct:
16098 shared_flag='-G'
16099 else
16100 if test "$aix_use_runtimelinking" = yes; then
16101 shared_flag='${wl}-G'
16102 else
16103 shared_flag='${wl}-bM:SRE'
16104 fi
16105 fi
16106 fi
16107
16108 export_dynamic_flag_spec='${wl}-bexpall'
16109 # It seems that -bexpall does not export symbols beginning with
16110 # underscore (_), so it is better to generate a list of symbols to export.
16111 always_export_symbols=yes
16112 if test "$aix_use_runtimelinking" = yes; then
16113 # Warning - without using the other runtime loading flags (-brtl),
16114 # -berok will link without error, but may produce a broken library.
16115 allow_undefined_flag='-berok'
16116 # Determine the default libpath from the value encoded in an
16117 # empty executable.
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16120
16121 int
16122 main ()
16123 {
16124
16125 ;
16126 return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16130
16131 lt_aix_libpath_sed='
16132 /Import File Strings/,/^$/ {
16133 /^0/ {
16134 s/^0 *\(.*\)$/\1/
16135 p
16136 }
16137 }'
16138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16139 # Check for a 64-bit object if we didn't find anything.
16140 if test -z "$aix_libpath"; then
16141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16142 fi
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16147
16148 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16149 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16150 else
16151 if test "$host_cpu" = ia64; then
16152 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16153 allow_undefined_flag="-z nodefs"
16154 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16155 else
16156 # Determine the default libpath from the value encoded in an
16157 # empty executable.
16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16160
16161 int
16162 main ()
16163 {
16164
16165 ;
16166 return 0;
16167 }
16168 _ACEOF
16169 if ac_fn_c_try_link "$LINENO"; then :
16170
16171 lt_aix_libpath_sed='
16172 /Import File Strings/,/^$/ {
16173 /^0/ {
16174 s/^0 *\(.*\)$/\1/
16175 p
16176 }
16177 }'
16178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16179 # Check for a 64-bit object if we didn't find anything.
16180 if test -z "$aix_libpath"; then
16181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16182 fi
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16187
16188 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16189 # Warning - without using the other run time loading flags,
16190 # -berok will link without error, but may produce a broken library.
16191 no_undefined_flag=' ${wl}-bernotok'
16192 allow_undefined_flag=' ${wl}-berok'
16193 if test "$with_gnu_ld" = yes; then
16194 # We only use this code for GNU lds that support --whole-archive.
16195 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16196 else
16197 # Exported symbols can be pulled into shared objects from archives
16198 whole_archive_flag_spec='$convenience'
16199 fi
16200 archive_cmds_need_lc=yes
16201 # This is similar to how AIX traditionally builds its shared libraries.
16202 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16203 fi
16204 fi
16205 ;;
16206
16207 amigaos*)
16208 case $host_cpu in
16209 powerpc)
16210 # see comment about AmigaOS4 .so support
16211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16212 archive_expsym_cmds=''
16213 ;;
16214 m68k)
16215 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16216 hardcode_libdir_flag_spec='-L$libdir'
16217 hardcode_minus_L=yes
16218 ;;
16219 esac
16220 ;;
16221
16222 bsdi[45]*)
16223 export_dynamic_flag_spec=-rdynamic
16224 ;;
16225
16226 cygwin* | mingw* | pw32* | cegcc*)
16227 # When not using gcc, we currently assume that we are using
16228 # Microsoft Visual C++.
16229 # hardcode_libdir_flag_spec is actually meaningless, as there is
16230 # no search path for DLLs.
16231 hardcode_libdir_flag_spec=' '
16232 allow_undefined_flag=unsupported
16233 # Tell ltmain to make .lib files, not .a files.
16234 libext=lib
16235 # Tell ltmain to make .dll files, not .so files.
16236 shrext_cmds=".dll"
16237 # FIXME: Setting linknames here is a bad hack.
16238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16239 # The linker will automatically build a .lib file if we build a DLL.
16240 old_archive_from_new_cmds='true'
16241 # FIXME: Should let the user specify the lib program.
16242 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16243 fix_srcfile_path='`cygpath -w "$srcfile"`'
16244 enable_shared_with_static_runtimes=yes
16245 ;;
16246
16247 darwin* | rhapsody*)
16248
16249
16250 archive_cmds_need_lc=no
16251 hardcode_direct=no
16252 hardcode_automatic=yes
16253 hardcode_shlibpath_var=unsupported
16254 if test "$lt_cv_ld_force_load" = "yes"; then
16255 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16256 else
16257 whole_archive_flag_spec=''
16258 fi
16259 link_all_deplibs=yes
16260 allow_undefined_flag="$_lt_dar_allow_undefined"
16261 case $cc_basename in
16262 ifort*) _lt_dar_can_shared=yes ;;
16263 *) _lt_dar_can_shared=$GCC ;;
16264 esac
16265 if test "$_lt_dar_can_shared" = "yes"; then
16266 output_verbose_link_cmd=func_echo_all
16267 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16268 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16269 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16270 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16271
16272 else
16273 ld_shlibs=no
16274 fi
16275
16276 ;;
16277
16278 dgux*)
16279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 hardcode_libdir_flag_spec='-L$libdir'
16281 hardcode_shlibpath_var=no
16282 ;;
16283
16284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16285 # support. Future versions do this automatically, but an explicit c++rt0.o
16286 # does not break anything, and helps significantly (at the cost of a little
16287 # extra space).
16288 freebsd2.2*)
16289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16290 hardcode_libdir_flag_spec='-R$libdir'
16291 hardcode_direct=yes
16292 hardcode_shlibpath_var=no
16293 ;;
16294
16295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16296 freebsd2.*)
16297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_direct=yes
16299 hardcode_minus_L=yes
16300 hardcode_shlibpath_var=no
16301 ;;
16302
16303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16304 freebsd* | dragonfly*)
16305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16306 hardcode_libdir_flag_spec='-R$libdir'
16307 hardcode_direct=yes
16308 hardcode_shlibpath_var=no
16309 ;;
16310
16311 hpux9*)
16312 if test "$GCC" = yes; then
16313 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16314 else
16315 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16316 fi
16317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16318 hardcode_libdir_separator=:
16319 hardcode_direct=yes
16320
16321 # hardcode_minus_L: Not really in the search PATH,
16322 # but as the default location of the library.
16323 hardcode_minus_L=yes
16324 export_dynamic_flag_spec='${wl}-E'
16325 ;;
16326
16327 hpux10*)
16328 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16329 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16330 else
16331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16332 fi
16333 if test "$with_gnu_ld" = no; then
16334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16335 hardcode_libdir_flag_spec_ld='+b $libdir'
16336 hardcode_libdir_separator=:
16337 hardcode_direct=yes
16338 hardcode_direct_absolute=yes
16339 export_dynamic_flag_spec='${wl}-E'
16340 # hardcode_minus_L: Not really in the search PATH,
16341 # but as the default location of the library.
16342 hardcode_minus_L=yes
16343 fi
16344 ;;
16345
16346 hpux11*)
16347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16348 case $host_cpu in
16349 hppa*64*)
16350 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16351 ;;
16352 ia64*)
16353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16354 ;;
16355 *)
16356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16357 ;;
16358 esac
16359 else
16360 case $host_cpu in
16361 hppa*64*)
16362 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16363 ;;
16364 ia64*)
16365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16366 ;;
16367 *)
16368
16369 # Older versions of the 11.00 compiler do not understand -b yet
16370 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16372 $as_echo_n "checking if $CC understands -b... " >&6; }
16373 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16376 lt_cv_prog_compiler__b=no
16377 save_LDFLAGS="$LDFLAGS"
16378 LDFLAGS="$LDFLAGS -b"
16379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16381 # The linker can only warn and ignore the option if not recognized
16382 # So say no if there are warnings
16383 if test -s conftest.err; then
16384 # Append any errors to the config.log.
16385 cat conftest.err 1>&5
16386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16388 if diff conftest.exp conftest.er2 >/dev/null; then
16389 lt_cv_prog_compiler__b=yes
16390 fi
16391 else
16392 lt_cv_prog_compiler__b=yes
16393 fi
16394 fi
16395 $RM -r conftest*
16396 LDFLAGS="$save_LDFLAGS"
16397
16398 fi
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16400 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16401
16402 if test x"$lt_cv_prog_compiler__b" = xyes; then
16403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16404 else
16405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16406 fi
16407
16408 ;;
16409 esac
16410 fi
16411 if test "$with_gnu_ld" = no; then
16412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16413 hardcode_libdir_separator=:
16414
16415 case $host_cpu in
16416 hppa*64*|ia64*)
16417 hardcode_direct=no
16418 hardcode_shlibpath_var=no
16419 ;;
16420 *)
16421 hardcode_direct=yes
16422 hardcode_direct_absolute=yes
16423 export_dynamic_flag_spec='${wl}-E'
16424
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L=yes
16428 ;;
16429 esac
16430 fi
16431 ;;
16432
16433 irix5* | irix6* | nonstopux*)
16434 if test "$GCC" = yes; then
16435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16436 # Try to use the -exported_symbol ld option, if it does not
16437 # work, assume that -exports_file does not work either and
16438 # implicitly export all symbols.
16439 save_LDFLAGS="$LDFLAGS"
16440 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 int foo(void) {}
16444 _ACEOF
16445 if ac_fn_c_try_link "$LINENO"; then :
16446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16447
16448 fi
16449 rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 LDFLAGS="$save_LDFLAGS"
16452 else
16453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16454 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16455 fi
16456 archive_cmds_need_lc='no'
16457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16458 hardcode_libdir_separator=:
16459 inherit_rpath=yes
16460 link_all_deplibs=yes
16461 ;;
16462
16463 netbsd*)
16464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16466 else
16467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16468 fi
16469 hardcode_libdir_flag_spec='-R$libdir'
16470 hardcode_direct=yes
16471 hardcode_shlibpath_var=no
16472 ;;
16473
16474 newsos6)
16475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct=yes
16477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16478 hardcode_libdir_separator=:
16479 hardcode_shlibpath_var=no
16480 ;;
16481
16482 *nto* | *qnx*)
16483 ;;
16484
16485 openbsd*)
16486 if test -f /usr/libexec/ld.so; then
16487 hardcode_direct=yes
16488 hardcode_shlibpath_var=no
16489 hardcode_direct_absolute=yes
16490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16494 export_dynamic_flag_spec='${wl}-E'
16495 else
16496 case $host_os in
16497 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_libdir_flag_spec='-R$libdir'
16500 ;;
16501 *)
16502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16504 ;;
16505 esac
16506 fi
16507 else
16508 ld_shlibs=no
16509 fi
16510 ;;
16511
16512 os2*)
16513 hardcode_libdir_flag_spec='-L$libdir'
16514 hardcode_minus_L=yes
16515 allow_undefined_flag=unsupported
16516 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16517 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16518 ;;
16519
16520 osf3*)
16521 if test "$GCC" = yes; then
16522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16523 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16524 else
16525 allow_undefined_flag=' -expect_unresolved \*'
16526 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16527 fi
16528 archive_cmds_need_lc='no'
16529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16530 hardcode_libdir_separator=:
16531 ;;
16532
16533 osf4* | osf5*) # as osf3* with the addition of -msym flag
16534 if test "$GCC" = yes; then
16535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16536 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16538 else
16539 allow_undefined_flag=' -expect_unresolved \*'
16540 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16541 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
16542 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16543
16544 # Both c and cxx compiler support -rpath directly
16545 hardcode_libdir_flag_spec='-rpath $libdir'
16546 fi
16547 archive_cmds_need_lc='no'
16548 hardcode_libdir_separator=:
16549 ;;
16550
16551 solaris*)
16552 no_undefined_flag=' -z defs'
16553 if test "$GCC" = yes; then
16554 wlarc='${wl}'
16555 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16558 else
16559 case `$CC -V 2>&1` in
16560 *"Compilers 5.0"*)
16561 wlarc=''
16562 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16565 ;;
16566 *)
16567 wlarc='${wl}'
16568 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16570 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16571 ;;
16572 esac
16573 fi
16574 hardcode_libdir_flag_spec='-R$libdir'
16575 hardcode_shlibpath_var=no
16576 case $host_os in
16577 solaris2.[0-5] | solaris2.[0-5].*) ;;
16578 *)
16579 # The compiler driver will combine and reorder linker options,
16580 # but understands `-z linker_flag'. GCC discards it without `$wl',
16581 # but is careful enough not to reorder.
16582 # Supported since Solaris 2.6 (maybe 2.5.1?)
16583 if test "$GCC" = yes; then
16584 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16585 else
16586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16587 fi
16588 ;;
16589 esac
16590 link_all_deplibs=yes
16591 ;;
16592
16593 sunos4*)
16594 if test "x$host_vendor" = xsequent; then
16595 # Use $CC to link under sequent, because it throws in some extra .o
16596 # files that make .init and .fini sections work.
16597 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16598 else
16599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16600 fi
16601 hardcode_libdir_flag_spec='-L$libdir'
16602 hardcode_direct=yes
16603 hardcode_minus_L=yes
16604 hardcode_shlibpath_var=no
16605 ;;
16606
16607 sysv4)
16608 case $host_vendor in
16609 sni)
16610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611 hardcode_direct=yes # is this really true???
16612 ;;
16613 siemens)
16614 ## LD is ld it makes a PLAMLIB
16615 ## CC just makes a GrossModule.
16616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16617 reload_cmds='$CC -r -o $output$reload_objs'
16618 hardcode_direct=no
16619 ;;
16620 motorola)
16621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16623 ;;
16624 esac
16625 runpath_var='LD_RUN_PATH'
16626 hardcode_shlibpath_var=no
16627 ;;
16628
16629 sysv4.3*)
16630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_shlibpath_var=no
16632 export_dynamic_flag_spec='-Bexport'
16633 ;;
16634
16635 sysv4*MP*)
16636 if test -d /usr/nec; then
16637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_shlibpath_var=no
16639 runpath_var=LD_RUN_PATH
16640 hardcode_runpath_var=yes
16641 ld_shlibs=yes
16642 fi
16643 ;;
16644
16645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16646 no_undefined_flag='${wl}-z,text'
16647 archive_cmds_need_lc=no
16648 hardcode_shlibpath_var=no
16649 runpath_var='LD_RUN_PATH'
16650
16651 if test "$GCC" = yes; then
16652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 else
16655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 fi
16658 ;;
16659
16660 sysv5* | sco3.2v5* | sco5v6*)
16661 # Note: We can NOT use -z defs as we might desire, because we do not
16662 # link with -lc, and that would cause any symbols used from libc to
16663 # always be unresolved, which means just about no library would
16664 # ever link correctly. If we're not using GNU ld we use -z text
16665 # though, which does catch some bad symbols but isn't as heavy-handed
16666 # as -z defs.
16667 no_undefined_flag='${wl}-z,text'
16668 allow_undefined_flag='${wl}-z,nodefs'
16669 archive_cmds_need_lc=no
16670 hardcode_shlibpath_var=no
16671 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16672 hardcode_libdir_separator=':'
16673 link_all_deplibs=yes
16674 export_dynamic_flag_spec='${wl}-Bexport'
16675 runpath_var='LD_RUN_PATH'
16676
16677 if test "$GCC" = yes; then
16678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16680 else
16681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 fi
16684 ;;
16685
16686 uts4*)
16687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_libdir_flag_spec='-L$libdir'
16689 hardcode_shlibpath_var=no
16690 ;;
16691
16692 *)
16693 ld_shlibs=no
16694 ;;
16695 esac
16696
16697 if test x$host_vendor = xsni; then
16698 case $host in
16699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16700 export_dynamic_flag_spec='${wl}-Blargedynsym'
16701 ;;
16702 esac
16703 fi
16704 fi
16705
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16707 $as_echo "$ld_shlibs" >&6; }
16708 test "$ld_shlibs" = no && can_build_shared=no
16709
16710 with_gnu_ld=$with_gnu_ld
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726 #
16727 # Do we need to explicitly link libc?
16728 #
16729 case "x$archive_cmds_need_lc" in
16730 x|xyes)
16731 # Assume -lc should be added
16732 archive_cmds_need_lc=yes
16733
16734 if test "$enable_shared" = yes && test "$GCC" = yes; then
16735 case $archive_cmds in
16736 *'~'*)
16737 # FIXME: we may have to deal with multi-command sequences.
16738 ;;
16739 '$CC '*)
16740 # Test whether the compiler implicitly links with -lc since on some
16741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16742 # to ld, don't add -lc before -lgcc.
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16745 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748 $RM conftest*
16749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16750
16751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16752 (eval $ac_compile) 2>&5
16753 ac_status=$?
16754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755 test $ac_status = 0; } 2>conftest.err; then
16756 soname=conftest
16757 lib=conftest
16758 libobjs=conftest.$ac_objext
16759 deplibs=
16760 wl=$lt_prog_compiler_wl
16761 pic_flag=$lt_prog_compiler_pic
16762 compiler_flags=-v
16763 linker_flags=-v
16764 verstring=
16765 output_objdir=.
16766 libname=conftest
16767 lt_save_allow_undefined_flag=$allow_undefined_flag
16768 allow_undefined_flag=
16769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16771 ac_status=$?
16772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16773 test $ac_status = 0; }
16774 then
16775 lt_cv_archive_cmds_need_lc=no
16776 else
16777 lt_cv_archive_cmds_need_lc=yes
16778 fi
16779 allow_undefined_flag=$lt_save_allow_undefined_flag
16780 else
16781 cat conftest.err 1>&5
16782 fi
16783 $RM conftest*
16784
16785 fi
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16787 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16788 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16789 ;;
16790 esac
16791 fi
16792 ;;
16793 esac
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16953
16954 if test "$GCC" = yes; then
16955 case $host_os in
16956 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16957 *) lt_awk_arg="/^libraries:/" ;;
16958 esac
16959 case $host_os in
16960 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16961 *) lt_sed_strip_eq="s,=/,/,g" ;;
16962 esac
16963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16964 case $lt_search_path_spec in
16965 *\;*)
16966 # if the path contains ";" then we assume it to be the separator
16967 # otherwise default to the standard path separator (i.e. ":") - it is
16968 # assumed that no part of a normal pathname contains ";" but that should
16969 # okay in the real world where ";" in dirpaths is itself problematic.
16970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16971 ;;
16972 *)
16973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16974 ;;
16975 esac
16976 # Ok, now we have the path, separated by spaces, we can step through it
16977 # and add multilib dir if necessary.
16978 lt_tmp_lt_search_path_spec=
16979 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16980 for lt_sys_path in $lt_search_path_spec; do
16981 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16982 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16983 else
16984 test -d "$lt_sys_path" && \
16985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16986 fi
16987 done
16988 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16989 BEGIN {RS=" "; FS="/|\n";} {
16990 lt_foo="";
16991 lt_count=0;
16992 for (lt_i = NF; lt_i > 0; lt_i--) {
16993 if ($lt_i != "" && $lt_i != ".") {
16994 if ($lt_i == "..") {
16995 lt_count++;
16996 } else {
16997 if (lt_count == 0) {
16998 lt_foo="/" $lt_i lt_foo;
16999 } else {
17000 lt_count--;
17001 }
17002 }
17003 }
17004 }
17005 if (lt_foo != "") { lt_freq[lt_foo]++; }
17006 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17007 }'`
17008 # AWK program above erroneously prepends '/' to C:/dos/paths
17009 # for these hosts.
17010 case $host_os in
17011 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17012 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17013 esac
17014 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17015 else
17016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17017 fi
17018 library_names_spec=
17019 libname_spec='lib$name'
17020 soname_spec=
17021 shrext_cmds=".so"
17022 postinstall_cmds=
17023 postuninstall_cmds=
17024 finish_cmds=
17025 finish_eval=
17026 shlibpath_var=
17027 shlibpath_overrides_runpath=unknown
17028 version_type=none
17029 dynamic_linker="$host_os ld.so"
17030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17031 need_lib_prefix=unknown
17032 hardcode_into_libs=no
17033
17034 # when you set need_version to no, make sure it does not cause -set_version
17035 # flags to be left without arguments
17036 need_version=unknown
17037
17038 case $host_os in
17039 aix3*)
17040 version_type=linux
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17042 shlibpath_var=LIBPATH
17043
17044 # AIX 3 has no versioning support, so we append a major version to the name.
17045 soname_spec='${libname}${release}${shared_ext}$major'
17046 ;;
17047
17048 aix[4-9]*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 hardcode_into_libs=yes
17053 if test "$host_cpu" = ia64; then
17054 # AIX 5 supports IA64
17055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 else
17058 # With GCC up to 2.95.x, collect2 would create an import file
17059 # for dependence libraries. The import file would start with
17060 # the line `#! .'. This would cause the generated library to
17061 # depend on `.', always an invalid library. This was fixed in
17062 # development snapshots of GCC prior to 3.0.
17063 case $host_os in
17064 aix4 | aix4.[01] | aix4.[01].*)
17065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17066 echo ' yes '
17067 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17068 :
17069 else
17070 can_build_shared=no
17071 fi
17072 ;;
17073 esac
17074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17075 # soname into executable. Probably we can add versioning support to
17076 # collect2, so additional links can be useful in future.
17077 if test "$aix_use_runtimelinking" = yes; then
17078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17079 # instead of lib<name>.a to let people know that these are not
17080 # typical AIX shared libraries.
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17082 else
17083 # We preserve .a as extension for shared libraries through AIX4.2
17084 # and later when we are not doing run time linking.
17085 library_names_spec='${libname}${release}.a $libname.a'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 fi
17088 shlibpath_var=LIBPATH
17089 fi
17090 ;;
17091
17092 amigaos*)
17093 case $host_cpu in
17094 powerpc)
17095 # Since July 2007 AmigaOS4 officially supports .so libraries.
17096 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 ;;
17099 m68k)
17100 library_names_spec='$libname.ixlibrary $libname.a'
17101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17102 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17103 ;;
17104 esac
17105 ;;
17106
17107 beos*)
17108 library_names_spec='${libname}${shared_ext}'
17109 dynamic_linker="$host_os ld.so"
17110 shlibpath_var=LIBRARY_PATH
17111 ;;
17112
17113 bsdi[45]*)
17114 version_type=linux
17115 need_version=no
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17122 # the default ld.so.conf also contains /usr/contrib/lib and
17123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17124 # libtool to hard-code these into programs
17125 ;;
17126
17127 cygwin* | mingw* | pw32* | cegcc*)
17128 version_type=windows
17129 shrext_cmds=".dll"
17130 need_version=no
17131 need_lib_prefix=no
17132
17133 case $GCC,$host_os in
17134 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17135 library_names_spec='$libname.dll.a'
17136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17137 postinstall_cmds='base_file=`basename \${file}`~
17138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17139 dldir=$destdir/`dirname \$dlpath`~
17140 test -d \$dldir || mkdir -p \$dldir~
17141 $install_prog $dir/$dlname \$dldir/$dlname~
17142 chmod a+x \$dldir/$dlname~
17143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17145 fi'
17146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17147 dlpath=$dir/\$dldll~
17148 $RM \$dlpath'
17149 shlibpath_overrides_runpath=yes
17150
17151 case $host_os in
17152 cygwin*)
17153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17155
17156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17157 ;;
17158 mingw* | cegcc*)
17159 # MinGW DLLs use traditional 'lib' prefix
17160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17161 ;;
17162 pw32*)
17163 # pw32 DLLs use 'pw' prefix rather than 'lib'
17164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17165 ;;
17166 esac
17167 ;;
17168
17169 *)
17170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17171 ;;
17172 esac
17173 dynamic_linker='Win32 ld.exe'
17174 # FIXME: first we should search . and the directory the executable is in
17175 shlibpath_var=PATH
17176 ;;
17177
17178 darwin* | rhapsody*)
17179 dynamic_linker="$host_os dyld"
17180 version_type=darwin
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17184 soname_spec='${libname}${release}${major}$shared_ext'
17185 shlibpath_overrides_runpath=yes
17186 shlibpath_var=DYLD_LIBRARY_PATH
17187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17188
17189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17191 ;;
17192
17193 dgux*)
17194 version_type=linux
17195 need_lib_prefix=no
17196 need_version=no
17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 shlibpath_var=LD_LIBRARY_PATH
17200 ;;
17201
17202 freebsd* | dragonfly*)
17203 # DragonFly does not have aout. When/if they implement a new
17204 # versioning mechanism, adjust this.
17205 if test -x /usr/bin/objformat; then
17206 objformat=`/usr/bin/objformat`
17207 else
17208 case $host_os in
17209 freebsd[23].*) objformat=aout ;;
17210 *) objformat=elf ;;
17211 esac
17212 fi
17213 version_type=freebsd-$objformat
17214 case $version_type in
17215 freebsd-elf*)
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17217 need_version=no
17218 need_lib_prefix=no
17219 ;;
17220 freebsd-*)
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17222 need_version=yes
17223 ;;
17224 esac
17225 shlibpath_var=LD_LIBRARY_PATH
17226 case $host_os in
17227 freebsd2.*)
17228 shlibpath_overrides_runpath=yes
17229 ;;
17230 freebsd3.[01]* | freebsdelf3.[01]*)
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17233 ;;
17234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17236 shlibpath_overrides_runpath=no
17237 hardcode_into_libs=yes
17238 ;;
17239 *) # from 4.6 on, and DragonFly
17240 shlibpath_overrides_runpath=yes
17241 hardcode_into_libs=yes
17242 ;;
17243 esac
17244 ;;
17245
17246 gnu*)
17247 version_type=linux
17248 need_lib_prefix=no
17249 need_version=no
17250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17251 soname_spec='${libname}${release}${shared_ext}$major'
17252 shlibpath_var=LD_LIBRARY_PATH
17253 hardcode_into_libs=yes
17254 ;;
17255
17256 haiku*)
17257 version_type=linux
17258 need_lib_prefix=no
17259 need_version=no
17260 dynamic_linker="$host_os runtime_loader"
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LIBRARY_PATH
17264 shlibpath_overrides_runpath=yes
17265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17266 hardcode_into_libs=yes
17267 ;;
17268
17269 hpux9* | hpux10* | hpux11*)
17270 # Give a soname corresponding to the major version so that dld.sl refuses to
17271 # link against other versions.
17272 version_type=sunos
17273 need_lib_prefix=no
17274 need_version=no
17275 case $host_cpu in
17276 ia64*)
17277 shrext_cmds='.so'
17278 hardcode_into_libs=yes
17279 dynamic_linker="$host_os dld.so"
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17284 if test "X$HPUX_IA64_MODE" = X32; then
17285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17286 else
17287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17288 fi
17289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17290 ;;
17291 hppa*64*)
17292 shrext_cmds='.sl'
17293 hardcode_into_libs=yes
17294 dynamic_linker="$host_os dld.sl"
17295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17301 ;;
17302 *)
17303 shrext_cmds='.sl'
17304 dynamic_linker="$host_os dld.sl"
17305 shlibpath_var=SHLIB_PATH
17306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 ;;
17310 esac
17311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17312 postinstall_cmds='chmod 555 $lib'
17313 # or fails outright, so override atomically:
17314 install_override_mode=555
17315 ;;
17316
17317 interix[3-9]*)
17318 version_type=linux
17319 need_lib_prefix=no
17320 need_version=no
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath=no
17326 hardcode_into_libs=yes
17327 ;;
17328
17329 irix5* | irix6* | nonstopux*)
17330 case $host_os in
17331 nonstopux*) version_type=nonstopux ;;
17332 *)
17333 if test "$lt_cv_prog_gnu_ld" = yes; then
17334 version_type=linux
17335 else
17336 version_type=irix
17337 fi ;;
17338 esac
17339 need_lib_prefix=no
17340 need_version=no
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17343 case $host_os in
17344 irix5* | nonstopux*)
17345 libsuff= shlibsuff=
17346 ;;
17347 *)
17348 case $LD in # libtool.m4 will add one of these switches to LD
17349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17350 libsuff= shlibsuff= libmagic=32-bit;;
17351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17352 libsuff=32 shlibsuff=N32 libmagic=N32;;
17353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17355 *) libsuff= shlibsuff= libmagic=never-match;;
17356 esac
17357 ;;
17358 esac
17359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17360 shlibpath_overrides_runpath=no
17361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17363 hardcode_into_libs=yes
17364 ;;
17365
17366 # No shared lib support for Linux oldld, aout, or coff.
17367 linux*oldld* | linux*aout* | linux*coff*)
17368 dynamic_linker=no
17369 ;;
17370
17371 # This must be Linux ELF.
17372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17373 version_type=linux
17374 need_lib_prefix=no
17375 need_version=no
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=no
17381
17382 # Some binutils ld are patched to set DT_RUNPATH
17383 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17385 else
17386 lt_cv_shlibpath_overrides_runpath=no
17387 save_LDFLAGS=$LDFLAGS
17388 save_libdir=$libdir
17389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393
17394 int
17395 main ()
17396 {
17397
17398 ;
17399 return 0;
17400 }
17401 _ACEOF
17402 if ac_fn_c_try_link "$LINENO"; then :
17403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17404 lt_cv_shlibpath_overrides_runpath=yes
17405 fi
17406 fi
17407 rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17409 LDFLAGS=$save_LDFLAGS
17410 libdir=$save_libdir
17411
17412 fi
17413
17414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17415
17416 # This implies no fast_install, which is unacceptable.
17417 # Some rework will be needed to allow for fast_install
17418 # before this can be enabled.
17419 hardcode_into_libs=yes
17420
17421 # Append ld.so.conf contents to the search path
17422 if test -f /etc/ld.so.conf; then
17423 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17425 fi
17426
17427 # We used to test for /lib/ld.so.1 and disable shared libraries on
17428 # powerpc, because MkLinux only supported shared libraries with the
17429 # GNU dynamic linker. Since this was broken with cross compilers,
17430 # most powerpc-linux boxes support dynamic linking these days and
17431 # people can always --disable-shared, the test was removed, and we
17432 # assume the GNU/Linux dynamic linker is in use.
17433 dynamic_linker='GNU/Linux ld.so'
17434 ;;
17435
17436 netbsd*)
17437 version_type=sunos
17438 need_lib_prefix=no
17439 need_version=no
17440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17443 dynamic_linker='NetBSD (a.out) ld.so'
17444 else
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 dynamic_linker='NetBSD ld.elf_so'
17448 fi
17449 shlibpath_var=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath=yes
17451 hardcode_into_libs=yes
17452 ;;
17453
17454 newsos6)
17455 version_type=linux
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 shlibpath_var=LD_LIBRARY_PATH
17458 shlibpath_overrides_runpath=yes
17459 ;;
17460
17461 *nto* | *qnx*)
17462 version_type=qnx
17463 need_lib_prefix=no
17464 need_version=no
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=no
17469 hardcode_into_libs=yes
17470 dynamic_linker='ldqnx.so'
17471 ;;
17472
17473 openbsd*)
17474 version_type=sunos
17475 sys_lib_dlsearch_path_spec="/usr/lib"
17476 need_lib_prefix=no
17477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17478 case $host_os in
17479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17480 *) need_version=no ;;
17481 esac
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17486 case $host_os in
17487 openbsd2.[89] | openbsd2.[89].*)
17488 shlibpath_overrides_runpath=no
17489 ;;
17490 *)
17491 shlibpath_overrides_runpath=yes
17492 ;;
17493 esac
17494 else
17495 shlibpath_overrides_runpath=yes
17496 fi
17497 ;;
17498
17499 os2*)
17500 libname_spec='$name'
17501 shrext_cmds=".dll"
17502 need_lib_prefix=no
17503 library_names_spec='$libname${shared_ext} $libname.a'
17504 dynamic_linker='OS/2 ld.exe'
17505 shlibpath_var=LIBPATH
17506 ;;
17507
17508 osf3* | osf4* | osf5*)
17509 version_type=osf
17510 need_lib_prefix=no
17511 need_version=no
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17517 ;;
17518
17519 rdos*)
17520 dynamic_linker=no
17521 ;;
17522
17523 solaris*)
17524 version_type=linux
17525 need_lib_prefix=no
17526 need_version=no
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 shlibpath_var=LD_LIBRARY_PATH
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17532 # ldd complains unless libraries are executable
17533 postinstall_cmds='chmod +x $lib'
17534 ;;
17535
17536 sunos4*)
17537 version_type=sunos
17538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath=yes
17542 if test "$with_gnu_ld" = yes; then
17543 need_lib_prefix=no
17544 fi
17545 need_version=yes
17546 ;;
17547
17548 sysv4 | sysv4.3*)
17549 version_type=linux
17550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 case $host_vendor in
17554 sni)
17555 shlibpath_overrides_runpath=no
17556 need_lib_prefix=no
17557 runpath_var=LD_RUN_PATH
17558 ;;
17559 siemens)
17560 need_lib_prefix=no
17561 ;;
17562 motorola)
17563 need_lib_prefix=no
17564 need_version=no
17565 shlibpath_overrides_runpath=no
17566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17567 ;;
17568 esac
17569 ;;
17570
17571 sysv4*MP*)
17572 if test -d /usr/nec ;then
17573 version_type=linux
17574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17575 soname_spec='$libname${shared_ext}.$major'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 fi
17578 ;;
17579
17580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17581 version_type=freebsd-elf
17582 need_lib_prefix=no
17583 need_version=no
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17585 soname_spec='${libname}${release}${shared_ext}$major'
17586 shlibpath_var=LD_LIBRARY_PATH
17587 shlibpath_overrides_runpath=yes
17588 hardcode_into_libs=yes
17589 if test "$with_gnu_ld" = yes; then
17590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17591 else
17592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17593 case $host_os in
17594 sco3.2v5*)
17595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17596 ;;
17597 esac
17598 fi
17599 sys_lib_dlsearch_path_spec='/usr/lib'
17600 ;;
17601
17602 tpf*)
17603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17604 version_type=linux
17605 need_lib_prefix=no
17606 need_version=no
17607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 shlibpath_var=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath=no
17610 hardcode_into_libs=yes
17611 ;;
17612
17613 uts4*)
17614 version_type=linux
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 ;;
17619
17620 *)
17621 dynamic_linker=no
17622 ;;
17623 esac
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17625 $as_echo "$dynamic_linker" >&6; }
17626 test "$dynamic_linker" = no && can_build_shared=no
17627
17628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17629 if test "$GCC" = yes; then
17630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17631 fi
17632
17633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17635 fi
17636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17638 fi
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17732 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17733 hardcode_action=
17734 if test -n "$hardcode_libdir_flag_spec" ||
17735 test -n "$runpath_var" ||
17736 test "X$hardcode_automatic" = "Xyes" ; then
17737
17738 # We can hardcode non-existent directories.
17739 if test "$hardcode_direct" != no &&
17740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17741 # have to relink, otherwise we might link with an installed library
17742 # when we should be linking with a yet-to-be-installed one
17743 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17744 test "$hardcode_minus_L" != no; then
17745 # Linking always hardcodes the temporary library directory.
17746 hardcode_action=relink
17747 else
17748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17749 hardcode_action=immediate
17750 fi
17751 else
17752 # We cannot hardcode anything, or else we can only hardcode existing
17753 # directories.
17754 hardcode_action=unsupported
17755 fi
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17757 $as_echo "$hardcode_action" >&6; }
17758
17759 if test "$hardcode_action" = relink ||
17760 test "$inherit_rpath" = yes; then
17761 # Fast installation is not supported
17762 enable_fast_install=no
17763 elif test "$shlibpath_overrides_runpath" = yes ||
17764 test "$enable_shared" = no; then
17765 # Fast installation is not necessary
17766 enable_fast_install=needless
17767 fi
17768
17769
17770
17771
17772
17773
17774 if test "x$enable_dlopen" != xyes; then
17775 enable_dlopen=unknown
17776 enable_dlopen_self=unknown
17777 enable_dlopen_self_static=unknown
17778 else
17779 lt_cv_dlopen=no
17780 lt_cv_dlopen_libs=
17781
17782 case $host_os in
17783 beos*)
17784 lt_cv_dlopen="load_add_on"
17785 lt_cv_dlopen_libs=
17786 lt_cv_dlopen_self=yes
17787 ;;
17788
17789 mingw* | pw32* | cegcc*)
17790 lt_cv_dlopen="LoadLibrary"
17791 lt_cv_dlopen_libs=
17792 ;;
17793
17794 cygwin*)
17795 lt_cv_dlopen="dlopen"
17796 lt_cv_dlopen_libs=
17797 ;;
17798
17799 darwin*)
17800 # if libdl is installed we need to link against it
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 ac_check_lib_save_LIBS=$LIBS
17807 LIBS="-ldl $LIBS"
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char dlopen ();
17818 int
17819 main ()
17820 {
17821 return dlopen ();
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_lib_dl_dlopen=yes
17828 else
17829 ac_cv_lib_dl_dlopen=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17834 fi
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17837 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17839 else
17840
17841 lt_cv_dlopen="dyld"
17842 lt_cv_dlopen_libs=
17843 lt_cv_dlopen_self=yes
17844
17845 fi
17846
17847 ;;
17848
17849 *)
17850 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17851 if test "x$ac_cv_func_shl_load" = x""yes; then :
17852 lt_cv_dlopen="shl_load"
17853 else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17855 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-ldld $LIBS"
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17863
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17867 #ifdef __cplusplus
17868 extern "C"
17869 #endif
17870 char shl_load ();
17871 int
17872 main ()
17873 {
17874 return shl_load ();
17875 ;
17876 return 0;
17877 }
17878 _ACEOF
17879 if ac_fn_c_try_link "$LINENO"; then :
17880 ac_cv_lib_dld_shl_load=yes
17881 else
17882 ac_cv_lib_dld_shl_load=no
17883 fi
17884 rm -f core conftest.err conftest.$ac_objext \
17885 conftest$ac_exeext conftest.$ac_ext
17886 LIBS=$ac_check_lib_save_LIBS
17887 fi
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17889 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17890 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17891 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17892 else
17893 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17894 if test "x$ac_cv_func_dlopen" = x""yes; then :
17895 lt_cv_dlopen="dlopen"
17896 else
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17900 $as_echo_n "(cached) " >&6
17901 else
17902 ac_check_lib_save_LIBS=$LIBS
17903 LIBS="-ldl $LIBS"
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17910 #ifdef __cplusplus
17911 extern "C"
17912 #endif
17913 char dlopen ();
17914 int
17915 main ()
17916 {
17917 return dlopen ();
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_c_try_link "$LINENO"; then :
17923 ac_cv_lib_dl_dlopen=yes
17924 else
17925 ac_cv_lib_dl_dlopen=no
17926 fi
17927 rm -f core conftest.err conftest.$ac_objext \
17928 conftest$ac_exeext conftest.$ac_ext
17929 LIBS=$ac_check_lib_save_LIBS
17930 fi
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17933 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17935 else
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17937 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 ac_check_lib_save_LIBS=$LIBS
17942 LIBS="-lsvld $LIBS"
17943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17945
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17949 #ifdef __cplusplus
17950 extern "C"
17951 #endif
17952 char dlopen ();
17953 int
17954 main ()
17955 {
17956 return dlopen ();
17957 ;
17958 return 0;
17959 }
17960 _ACEOF
17961 if ac_fn_c_try_link "$LINENO"; then :
17962 ac_cv_lib_svld_dlopen=yes
17963 else
17964 ac_cv_lib_svld_dlopen=no
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext \
17967 conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17969 fi
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17971 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17972 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17974 else
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17976 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17978 $as_echo_n "(cached) " >&6
17979 else
17980 ac_check_lib_save_LIBS=$LIBS
17981 LIBS="-ldld $LIBS"
17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17984
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 char dld_link ();
17992 int
17993 main ()
17994 {
17995 return dld_link ();
17996 ;
17997 return 0;
17998 }
17999 _ACEOF
18000 if ac_fn_c_try_link "$LINENO"; then :
18001 ac_cv_lib_dld_dld_link=yes
18002 else
18003 ac_cv_lib_dld_dld_link=no
18004 fi
18005 rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007 LIBS=$ac_check_lib_save_LIBS
18008 fi
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18010 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18011 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18012 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18013 fi
18014
18015
18016 fi
18017
18018
18019 fi
18020
18021
18022 fi
18023
18024
18025 fi
18026
18027
18028 fi
18029
18030 ;;
18031 esac
18032
18033 if test "x$lt_cv_dlopen" != xno; then
18034 enable_dlopen=yes
18035 else
18036 enable_dlopen=no
18037 fi
18038
18039 case $lt_cv_dlopen in
18040 dlopen)
18041 save_CPPFLAGS="$CPPFLAGS"
18042 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18043
18044 save_LDFLAGS="$LDFLAGS"
18045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18046
18047 save_LIBS="$LIBS"
18048 LIBS="$lt_cv_dlopen_libs $LIBS"
18049
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18051 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18052 if test "${lt_cv_dlopen_self+set}" = set; then :
18053 $as_echo_n "(cached) " >&6
18054 else
18055 if test "$cross_compiling" = yes; then :
18056 lt_cv_dlopen_self=cross
18057 else
18058 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18059 lt_status=$lt_dlunknown
18060 cat > conftest.$ac_ext <<_LT_EOF
18061 #line 18061 "configure"
18062 #include "confdefs.h"
18063
18064 #if HAVE_DLFCN_H
18065 #include <dlfcn.h>
18066 #endif
18067
18068 #include <stdio.h>
18069
18070 #ifdef RTLD_GLOBAL
18071 # define LT_DLGLOBAL RTLD_GLOBAL
18072 #else
18073 # ifdef DL_GLOBAL
18074 # define LT_DLGLOBAL DL_GLOBAL
18075 # else
18076 # define LT_DLGLOBAL 0
18077 # endif
18078 #endif
18079
18080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18081 find out it does not work in some platform. */
18082 #ifndef LT_DLLAZY_OR_NOW
18083 # ifdef RTLD_LAZY
18084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18085 # else
18086 # ifdef DL_LAZY
18087 # define LT_DLLAZY_OR_NOW DL_LAZY
18088 # else
18089 # ifdef RTLD_NOW
18090 # define LT_DLLAZY_OR_NOW RTLD_NOW
18091 # else
18092 # ifdef DL_NOW
18093 # define LT_DLLAZY_OR_NOW DL_NOW
18094 # else
18095 # define LT_DLLAZY_OR_NOW 0
18096 # endif
18097 # endif
18098 # endif
18099 # endif
18100 #endif
18101
18102 /* When -fvisbility=hidden is used, assume the code has been annotated
18103 correspondingly for the symbols needed. */
18104 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18105 void fnord () __attribute__((visibility("default")));
18106 #endif
18107
18108 void fnord () { int i=42; }
18109 int main ()
18110 {
18111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18112 int status = $lt_dlunknown;
18113
18114 if (self)
18115 {
18116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18117 else
18118 {
18119 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18120 else puts (dlerror ());
18121 }
18122 /* dlclose (self); */
18123 }
18124 else
18125 puts (dlerror ());
18126
18127 return status;
18128 }
18129 _LT_EOF
18130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18131 (eval $ac_link) 2>&5
18132 ac_status=$?
18133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18135 (./conftest; exit; ) >&5 2>/dev/null
18136 lt_status=$?
18137 case x$lt_status in
18138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18140 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18141 esac
18142 else :
18143 # compilation failed
18144 lt_cv_dlopen_self=no
18145 fi
18146 fi
18147 rm -fr conftest*
18148
18149
18150 fi
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18152 $as_echo "$lt_cv_dlopen_self" >&6; }
18153
18154 if test "x$lt_cv_dlopen_self" = xyes; then
18155 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18157 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18158 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18159 $as_echo_n "(cached) " >&6
18160 else
18161 if test "$cross_compiling" = yes; then :
18162 lt_cv_dlopen_self_static=cross
18163 else
18164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18165 lt_status=$lt_dlunknown
18166 cat > conftest.$ac_ext <<_LT_EOF
18167 #line 18167 "configure"
18168 #include "confdefs.h"
18169
18170 #if HAVE_DLFCN_H
18171 #include <dlfcn.h>
18172 #endif
18173
18174 #include <stdio.h>
18175
18176 #ifdef RTLD_GLOBAL
18177 # define LT_DLGLOBAL RTLD_GLOBAL
18178 #else
18179 # ifdef DL_GLOBAL
18180 # define LT_DLGLOBAL DL_GLOBAL
18181 # else
18182 # define LT_DLGLOBAL 0
18183 # endif
18184 #endif
18185
18186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187 find out it does not work in some platform. */
18188 #ifndef LT_DLLAZY_OR_NOW
18189 # ifdef RTLD_LAZY
18190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18191 # else
18192 # ifdef DL_LAZY
18193 # define LT_DLLAZY_OR_NOW DL_LAZY
18194 # else
18195 # ifdef RTLD_NOW
18196 # define LT_DLLAZY_OR_NOW RTLD_NOW
18197 # else
18198 # ifdef DL_NOW
18199 # define LT_DLLAZY_OR_NOW DL_NOW
18200 # else
18201 # define LT_DLLAZY_OR_NOW 0
18202 # endif
18203 # endif
18204 # endif
18205 # endif
18206 #endif
18207
18208 /* When -fvisbility=hidden is used, assume the code has been annotated
18209 correspondingly for the symbols needed. */
18210 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18211 void fnord () __attribute__((visibility("default")));
18212 #endif
18213
18214 void fnord () { int i=42; }
18215 int main ()
18216 {
18217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18218 int status = $lt_dlunknown;
18219
18220 if (self)
18221 {
18222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18223 else
18224 {
18225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18226 else puts (dlerror ());
18227 }
18228 /* dlclose (self); */
18229 }
18230 else
18231 puts (dlerror ());
18232
18233 return status;
18234 }
18235 _LT_EOF
18236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18237 (eval $ac_link) 2>&5
18238 ac_status=$?
18239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18240 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18241 (./conftest; exit; ) >&5 2>/dev/null
18242 lt_status=$?
18243 case x$lt_status in
18244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18247 esac
18248 else :
18249 # compilation failed
18250 lt_cv_dlopen_self_static=no
18251 fi
18252 fi
18253 rm -fr conftest*
18254
18255
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18258 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18259 fi
18260
18261 CPPFLAGS="$save_CPPFLAGS"
18262 LDFLAGS="$save_LDFLAGS"
18263 LIBS="$save_LIBS"
18264 ;;
18265 esac
18266
18267 case $lt_cv_dlopen_self in
18268 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18269 *) enable_dlopen_self=unknown ;;
18270 esac
18271
18272 case $lt_cv_dlopen_self_static in
18273 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18274 *) enable_dlopen_self_static=unknown ;;
18275 esac
18276 fi
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294 striplib=
18295 old_striplib=
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18297 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18298 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18302 $as_echo "yes" >&6; }
18303 else
18304 # FIXME - insert some real tests, host_os isn't really good enough
18305 case $host_os in
18306 darwin*)
18307 if test -n "$STRIP" ; then
18308 striplib="$STRIP -x"
18309 old_striplib="$STRIP -S"
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311 $as_echo "yes" >&6; }
18312 else
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18315 fi
18316 ;;
18317 *)
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18319 $as_echo "no" >&6; }
18320 ;;
18321 esac
18322 fi
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335 # Report which library types will actually be built
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18337 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18339 $as_echo "$can_build_shared" >&6; }
18340
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18342 $as_echo_n "checking whether to build shared libraries... " >&6; }
18343 test "$can_build_shared" = "no" && enable_shared=no
18344
18345 # On AIX, shared libraries and static libraries use the same namespace, and
18346 # are all built from PIC.
18347 case $host_os in
18348 aix3*)
18349 test "$enable_shared" = yes && enable_static=no
18350 if test -n "$RANLIB"; then
18351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18352 postinstall_cmds='$RANLIB $lib'
18353 fi
18354 ;;
18355
18356 aix[4-9]*)
18357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18358 test "$enable_shared" = yes && enable_static=no
18359 fi
18360 ;;
18361 esac
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18363 $as_echo "$enable_shared" >&6; }
18364
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18366 $as_echo_n "checking whether to build static libraries... " >&6; }
18367 # Make sure either enable_shared or enable_static is yes.
18368 test "$enable_shared" = yes || enable_static=yes
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18370 $as_echo "$enable_static" >&6; }
18371
18372
18373
18374
18375 fi
18376 ac_ext=c
18377 ac_cpp='$CPP $CPPFLAGS'
18378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18381
18382 CC="$lt_save_CC"
18383
18384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18386 (test "X$CXX" != "Xg++"))) ; then
18387 ac_ext=cpp
18388 ac_cpp='$CXXCPP $CPPFLAGS'
18389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18393 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18394 if test -z "$CXXCPP"; then
18395 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 # Double quotes because CXXCPP needs to be expanded
18399 for CXXCPP in "$CXX -E" "/lib/cpp"
18400 do
18401 ac_preproc_ok=false
18402 for ac_cxx_preproc_warn_flag in '' yes
18403 do
18404 # Use a header file that comes with gcc, so configuring glibc
18405 # with a fresh cross-compiler works.
18406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 # <limits.h> exists even on freestanding compilers.
18408 # On the NeXT, cc -E runs the code through the compiler's parser,
18409 # not just through cpp. "Syntax error" is here to catch this case.
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 #ifdef __STDC__
18413 # include <limits.h>
18414 #else
18415 # include <assert.h>
18416 #endif
18417 Syntax error
18418 _ACEOF
18419 if ac_fn_cxx_try_cpp "$LINENO"; then :
18420
18421 else
18422 # Broken: fails on valid input.
18423 continue
18424 fi
18425 rm -f conftest.err conftest.$ac_ext
18426
18427 # OK, works on sane cases. Now check whether nonexistent headers
18428 # can be detected and how.
18429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18431 #include <ac_nonexistent.h>
18432 _ACEOF
18433 if ac_fn_cxx_try_cpp "$LINENO"; then :
18434 # Broken: success on invalid input.
18435 continue
18436 else
18437 # Passes both tests.
18438 ac_preproc_ok=:
18439 break
18440 fi
18441 rm -f conftest.err conftest.$ac_ext
18442
18443 done
18444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18445 rm -f conftest.err conftest.$ac_ext
18446 if $ac_preproc_ok; then :
18447 break
18448 fi
18449
18450 done
18451 ac_cv_prog_CXXCPP=$CXXCPP
18452
18453 fi
18454 CXXCPP=$ac_cv_prog_CXXCPP
18455 else
18456 ac_cv_prog_CXXCPP=$CXXCPP
18457 fi
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18459 $as_echo "$CXXCPP" >&6; }
18460 ac_preproc_ok=false
18461 for ac_cxx_preproc_warn_flag in '' yes
18462 do
18463 # Use a header file that comes with gcc, so configuring glibc
18464 # with a fresh cross-compiler works.
18465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18466 # <limits.h> exists even on freestanding compilers.
18467 # On the NeXT, cc -E runs the code through the compiler's parser,
18468 # not just through cpp. "Syntax error" is here to catch this case.
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470 /* end confdefs.h. */
18471 #ifdef __STDC__
18472 # include <limits.h>
18473 #else
18474 # include <assert.h>
18475 #endif
18476 Syntax error
18477 _ACEOF
18478 if ac_fn_cxx_try_cpp "$LINENO"; then :
18479
18480 else
18481 # Broken: fails on valid input.
18482 continue
18483 fi
18484 rm -f conftest.err conftest.$ac_ext
18485
18486 # OK, works on sane cases. Now check whether nonexistent headers
18487 # can be detected and how.
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490 #include <ac_nonexistent.h>
18491 _ACEOF
18492 if ac_fn_cxx_try_cpp "$LINENO"; then :
18493 # Broken: success on invalid input.
18494 continue
18495 else
18496 # Passes both tests.
18497 ac_preproc_ok=:
18498 break
18499 fi
18500 rm -f conftest.err conftest.$ac_ext
18501
18502 done
18503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18504 rm -f conftest.err conftest.$ac_ext
18505 if $ac_preproc_ok; then :
18506
18507 else
18508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18510 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18511 See \`config.log' for more details." "$LINENO" 5; }
18512 fi
18513
18514 ac_ext=c
18515 ac_cpp='$CPP $CPPFLAGS'
18516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18519
18520 else
18521 _lt_caught_CXX_error=yes
18522 fi
18523
18524 ac_ext=cpp
18525 ac_cpp='$CXXCPP $CPPFLAGS'
18526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18529
18530 archive_cmds_need_lc_CXX=no
18531 allow_undefined_flag_CXX=
18532 always_export_symbols_CXX=no
18533 archive_expsym_cmds_CXX=
18534 compiler_needs_object_CXX=no
18535 export_dynamic_flag_spec_CXX=
18536 hardcode_direct_CXX=no
18537 hardcode_direct_absolute_CXX=no
18538 hardcode_libdir_flag_spec_CXX=
18539 hardcode_libdir_flag_spec_ld_CXX=
18540 hardcode_libdir_separator_CXX=
18541 hardcode_minus_L_CXX=no
18542 hardcode_shlibpath_var_CXX=unsupported
18543 hardcode_automatic_CXX=no
18544 inherit_rpath_CXX=no
18545 module_cmds_CXX=
18546 module_expsym_cmds_CXX=
18547 link_all_deplibs_CXX=unknown
18548 old_archive_cmds_CXX=$old_archive_cmds
18549 reload_flag_CXX=$reload_flag
18550 reload_cmds_CXX=$reload_cmds
18551 no_undefined_flag_CXX=
18552 whole_archive_flag_spec_CXX=
18553 enable_shared_with_static_runtimes_CXX=no
18554
18555 # Source file extension for C++ test sources.
18556 ac_ext=cpp
18557
18558 # Object file extension for compiled C++ test sources.
18559 objext=o
18560 objext_CXX=$objext
18561
18562 # No sense in running all these tests if we already determined that
18563 # the CXX compiler isn't working. Some variables (like enable_shared)
18564 # are currently assumed to apply to all compilers on this platform,
18565 # and will be corrupted by setting them based on a non-working compiler.
18566 if test "$_lt_caught_CXX_error" != yes; then
18567 # Code to be used in simple compile tests
18568 lt_simple_compile_test_code="int some_variable = 0;"
18569
18570 # Code to be used in simple link tests
18571 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18572
18573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18574
18575
18576
18577
18578
18579
18580 # If no C compiler was specified, use CC.
18581 LTCC=${LTCC-"$CC"}
18582
18583 # If no C compiler flags were specified, use CFLAGS.
18584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18585
18586 # Allow CC to be a program name with arguments.
18587 compiler=$CC
18588
18589
18590 # save warnings/boilerplate of simple test code
18591 ac_outfile=conftest.$ac_objext
18592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18594 _lt_compiler_boilerplate=`cat conftest.err`
18595 $RM conftest*
18596
18597 ac_outfile=conftest.$ac_objext
18598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18600 _lt_linker_boilerplate=`cat conftest.err`
18601 $RM -r conftest*
18602
18603
18604 # Allow CC to be a program name with arguments.
18605 lt_save_CC=$CC
18606 lt_save_LD=$LD
18607 lt_save_GCC=$GCC
18608 GCC=$GXX
18609 lt_save_with_gnu_ld=$with_gnu_ld
18610 lt_save_path_LD=$lt_cv_path_LD
18611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18612 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18613 else
18614 $as_unset lt_cv_prog_gnu_ld
18615 fi
18616 if test -n "${lt_cv_path_LDCXX+set}"; then
18617 lt_cv_path_LD=$lt_cv_path_LDCXX
18618 else
18619 $as_unset lt_cv_path_LD
18620 fi
18621 test -z "${LDCXX+set}" || LD=$LDCXX
18622 CC=${CXX-"c++"}
18623 compiler=$CC
18624 compiler_CXX=$CC
18625 for cc_temp in $compiler""; do
18626 case $cc_temp in
18627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18629 \-*) ;;
18630 *) break;;
18631 esac
18632 done
18633 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18634
18635
18636 if test -n "$compiler"; then
18637 # We don't want -fno-exception when compiling C++ code, so set the
18638 # no_builtin_flag separately
18639 if test "$GXX" = yes; then
18640 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18641 else
18642 lt_prog_compiler_no_builtin_flag_CXX=
18643 fi
18644
18645 if test "$GXX" = yes; then
18646 # Set up default GNU C++ configuration
18647
18648
18649
18650 # Check whether --with-gnu-ld was given.
18651 if test "${with_gnu_ld+set}" = set; then :
18652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18653 else
18654 with_gnu_ld=no
18655 fi
18656
18657 ac_prog=ld
18658 if test "$GCC" = yes; then
18659 # Check if gcc -print-prog-name=ld gives a path.
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18661 $as_echo_n "checking for ld used by $CC... " >&6; }
18662 case $host in
18663 *-*-mingw*)
18664 # gcc leaves a trailing carriage return which upsets mingw
18665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18666 *)
18667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18668 esac
18669 case $ac_prog in
18670 # Accept absolute paths.
18671 [\\/]* | ?:[\\/]*)
18672 re_direlt='/[^/][^/]*/\.\./'
18673 # Canonicalize the pathname of ld
18674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18677 done
18678 test -z "$LD" && LD="$ac_prog"
18679 ;;
18680 "")
18681 # If it fails, then pretend we aren't using GCC.
18682 ac_prog=ld
18683 ;;
18684 *)
18685 # If it is relative, then search for the first ld in PATH.
18686 with_gnu_ld=unknown
18687 ;;
18688 esac
18689 elif test "$with_gnu_ld" = yes; then
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18691 $as_echo_n "checking for GNU ld... " >&6; }
18692 else
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18694 $as_echo_n "checking for non-GNU ld... " >&6; }
18695 fi
18696 if test "${lt_cv_path_LD+set}" = set; then :
18697 $as_echo_n "(cached) " >&6
18698 else
18699 if test -z "$LD"; then
18700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18701 for ac_dir in $PATH; do
18702 IFS="$lt_save_ifs"
18703 test -z "$ac_dir" && ac_dir=.
18704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18705 lt_cv_path_LD="$ac_dir/$ac_prog"
18706 # Check to see if the program is GNU ld. I'd rather use --version,
18707 # but apparently some variants of GNU ld only accept -v.
18708 # Break only if it was the GNU/non-GNU ld that we prefer.
18709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18710 *GNU* | *'with BFD'*)
18711 test "$with_gnu_ld" != no && break
18712 ;;
18713 *)
18714 test "$with_gnu_ld" != yes && break
18715 ;;
18716 esac
18717 fi
18718 done
18719 IFS="$lt_save_ifs"
18720 else
18721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18722 fi
18723 fi
18724
18725 LD="$lt_cv_path_LD"
18726 if test -n "$LD"; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18728 $as_echo "$LD" >&6; }
18729 else
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18732 fi
18733 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18736 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18737 $as_echo_n "(cached) " >&6
18738 else
18739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18740 case `$LD -v 2>&1 </dev/null` in
18741 *GNU* | *'with BFD'*)
18742 lt_cv_prog_gnu_ld=yes
18743 ;;
18744 *)
18745 lt_cv_prog_gnu_ld=no
18746 ;;
18747 esac
18748 fi
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18751 with_gnu_ld=$lt_cv_prog_gnu_ld
18752
18753
18754
18755
18756
18757
18758
18759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18760 # archiving commands below assume that GNU ld is being used.
18761 if test "$with_gnu_ld" = yes; then
18762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18763 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18764
18765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18767
18768 # If archive_cmds runs LD, not CC, wlarc should be empty
18769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18770 # investigate it a little bit more. (MM)
18771 wlarc='${wl}'
18772
18773 # ancient GNU ld didn't support --whole-archive et. al.
18774 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18775 $GREP 'no-whole-archive' > /dev/null; then
18776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18777 else
18778 whole_archive_flag_spec_CXX=
18779 fi
18780 else
18781 with_gnu_ld=no
18782 wlarc=
18783
18784 # A generic and very simple default shared library creation
18785 # command for GNU C++ for the case where it uses the native
18786 # linker, instead of GNU ld. If possible, this setting should
18787 # overridden to take advantage of the native linker features on
18788 # the platform it is being used on.
18789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18790 fi
18791
18792 # Commands to make compiler produce verbose output that lists
18793 # what "hidden" libraries, object files and flags are used when
18794 # linking a shared library.
18795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18796
18797 else
18798 GXX=no
18799 with_gnu_ld=no
18800 wlarc=
18801 fi
18802
18803 # PORTME: fill in a description of your system's C++ link characteristics
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18806 ld_shlibs_CXX=yes
18807 case $host_os in
18808 aix3*)
18809 # FIXME: insert proper C++ library support
18810 ld_shlibs_CXX=no
18811 ;;
18812 aix[4-9]*)
18813 if test "$host_cpu" = ia64; then
18814 # On IA64, the linker does run time linking by default, so we don't
18815 # have to do anything special.
18816 aix_use_runtimelinking=no
18817 exp_sym_flag='-Bexport'
18818 no_entry_flag=""
18819 else
18820 aix_use_runtimelinking=no
18821
18822 # Test if we are trying to use run time linking or normal
18823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18824 # need to do runtime linking.
18825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18826 for ld_flag in $LDFLAGS; do
18827 case $ld_flag in
18828 *-brtl*)
18829 aix_use_runtimelinking=yes
18830 break
18831 ;;
18832 esac
18833 done
18834 ;;
18835 esac
18836
18837 exp_sym_flag='-bexport'
18838 no_entry_flag='-bnoentry'
18839 fi
18840
18841 # When large executables or shared objects are built, AIX ld can
18842 # have problems creating the table of contents. If linking a library
18843 # or program results in "error TOC overflow" add -mminimal-toc to
18844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18846
18847 archive_cmds_CXX=''
18848 hardcode_direct_CXX=yes
18849 hardcode_direct_absolute_CXX=yes
18850 hardcode_libdir_separator_CXX=':'
18851 link_all_deplibs_CXX=yes
18852 file_list_spec_CXX='${wl}-f,'
18853
18854 if test "$GXX" = yes; then
18855 case $host_os in aix4.[012]|aix4.[012].*)
18856 # We only want to do this on AIX 4.2 and lower, the check
18857 # below for broken collect2 doesn't work under 4.3+
18858 collect2name=`${CC} -print-prog-name=collect2`
18859 if test -f "$collect2name" &&
18860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18861 then
18862 # We have reworked collect2
18863 :
18864 else
18865 # We have old collect2
18866 hardcode_direct_CXX=unsupported
18867 # It fails to find uninstalled libraries when the uninstalled
18868 # path is not listed in the libpath. Setting hardcode_minus_L
18869 # to unsupported forces relinking
18870 hardcode_minus_L_CXX=yes
18871 hardcode_libdir_flag_spec_CXX='-L$libdir'
18872 hardcode_libdir_separator_CXX=
18873 fi
18874 esac
18875 shared_flag='-shared'
18876 if test "$aix_use_runtimelinking" = yes; then
18877 shared_flag="$shared_flag "'${wl}-G'
18878 fi
18879 else
18880 # not using gcc
18881 if test "$host_cpu" = ia64; then
18882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18883 # chokes on -Wl,-G. The following line is correct:
18884 shared_flag='-G'
18885 else
18886 if test "$aix_use_runtimelinking" = yes; then
18887 shared_flag='${wl}-G'
18888 else
18889 shared_flag='${wl}-bM:SRE'
18890 fi
18891 fi
18892 fi
18893
18894 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18895 # It seems that -bexpall does not export symbols beginning with
18896 # underscore (_), so it is better to generate a list of symbols to
18897 # export.
18898 always_export_symbols_CXX=yes
18899 if test "$aix_use_runtimelinking" = yes; then
18900 # Warning - without using the other runtime loading flags (-brtl),
18901 # -berok will link without error, but may produce a broken library.
18902 allow_undefined_flag_CXX='-berok'
18903 # Determine the default libpath from the value encoded in an empty
18904 # executable.
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18907
18908 int
18909 main ()
18910 {
18911
18912 ;
18913 return 0;
18914 }
18915 _ACEOF
18916 if ac_fn_cxx_try_link "$LINENO"; then :
18917
18918 lt_aix_libpath_sed='
18919 /Import File Strings/,/^$/ {
18920 /^0/ {
18921 s/^0 *\(.*\)$/\1/
18922 p
18923 }
18924 }'
18925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18926 # Check for a 64-bit object if we didn't find anything.
18927 if test -z "$aix_libpath"; then
18928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18929 fi
18930 fi
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18934
18935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18936
18937 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18938 else
18939 if test "$host_cpu" = ia64; then
18940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18941 allow_undefined_flag_CXX="-z nodefs"
18942 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18943 else
18944 # Determine the default libpath from the value encoded in an
18945 # empty executable.
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18948
18949 int
18950 main ()
18951 {
18952
18953 ;
18954 return 0;
18955 }
18956 _ACEOF
18957 if ac_fn_cxx_try_link "$LINENO"; then :
18958
18959 lt_aix_libpath_sed='
18960 /Import File Strings/,/^$/ {
18961 /^0/ {
18962 s/^0 *\(.*\)$/\1/
18963 p
18964 }
18965 }'
18966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 # Check for a 64-bit object if we didn't find anything.
18968 if test -z "$aix_libpath"; then
18969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18970 fi
18971 fi
18972 rm -f core conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18975
18976 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18977 # Warning - without using the other run time loading flags,
18978 # -berok will link without error, but may produce a broken library.
18979 no_undefined_flag_CXX=' ${wl}-bernotok'
18980 allow_undefined_flag_CXX=' ${wl}-berok'
18981 if test "$with_gnu_ld" = yes; then
18982 # We only use this code for GNU lds that support --whole-archive.
18983 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18984 else
18985 # Exported symbols can be pulled into shared objects from archives
18986 whole_archive_flag_spec_CXX='$convenience'
18987 fi
18988 archive_cmds_need_lc_CXX=yes
18989 # This is similar to how AIX traditionally builds its shared
18990 # libraries.
18991 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18992 fi
18993 fi
18994 ;;
18995
18996 beos*)
18997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18998 allow_undefined_flag_CXX=unsupported
18999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19000 # support --undefined. This deserves some investigation. FIXME
19001 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19002 else
19003 ld_shlibs_CXX=no
19004 fi
19005 ;;
19006
19007 chorus*)
19008 case $cc_basename in
19009 *)
19010 # FIXME: insert proper C++ library support
19011 ld_shlibs_CXX=no
19012 ;;
19013 esac
19014 ;;
19015
19016 cygwin* | mingw* | pw32* | cegcc*)
19017 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19018 # as there is no search path for DLLs.
19019 hardcode_libdir_flag_spec_CXX='-L$libdir'
19020 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19021 allow_undefined_flag_CXX=unsupported
19022 always_export_symbols_CXX=no
19023 enable_shared_with_static_runtimes_CXX=yes
19024
19025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19026 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19027 # If the export-symbols file already is a .def file (1st line
19028 # is EXPORTS), use it as is; otherwise, prepend...
19029 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19030 cp $export_symbols $output_objdir/$soname.def;
19031 else
19032 echo EXPORTS > $output_objdir/$soname.def;
19033 cat $export_symbols >> $output_objdir/$soname.def;
19034 fi~
19035 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19036 else
19037 ld_shlibs_CXX=no
19038 fi
19039 ;;
19040 darwin* | rhapsody*)
19041
19042
19043 archive_cmds_need_lc_CXX=no
19044 hardcode_direct_CXX=no
19045 hardcode_automatic_CXX=yes
19046 hardcode_shlibpath_var_CXX=unsupported
19047 if test "$lt_cv_ld_force_load" = "yes"; then
19048 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19049 else
19050 whole_archive_flag_spec_CXX=''
19051 fi
19052 link_all_deplibs_CXX=yes
19053 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19054 case $cc_basename in
19055 ifort*) _lt_dar_can_shared=yes ;;
19056 *) _lt_dar_can_shared=$GCC ;;
19057 esac
19058 if test "$_lt_dar_can_shared" = "yes"; then
19059 output_verbose_link_cmd=func_echo_all
19060 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19061 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19062 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19063 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19064 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19065 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19066 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19067 fi
19068
19069 else
19070 ld_shlibs_CXX=no
19071 fi
19072
19073 ;;
19074
19075 dgux*)
19076 case $cc_basename in
19077 ec++*)
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19080 ;;
19081 ghcx*)
19082 # Green Hills C++ Compiler
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19085 ;;
19086 *)
19087 # FIXME: insert proper C++ library support
19088 ld_shlibs_CXX=no
19089 ;;
19090 esac
19091 ;;
19092
19093 freebsd2.*)
19094 # C++ shared libraries reported to be fairly broken before
19095 # switch to ELF
19096 ld_shlibs_CXX=no
19097 ;;
19098
19099 freebsd-elf*)
19100 archive_cmds_need_lc_CXX=no
19101 ;;
19102
19103 freebsd* | dragonfly*)
19104 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19105 # conventions
19106 ld_shlibs_CXX=yes
19107 ;;
19108
19109 gnu*)
19110 ;;
19111
19112 haiku*)
19113 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 link_all_deplibs_CXX=yes
19115 ;;
19116
19117 hpux9*)
19118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_CXX=:
19120 export_dynamic_flag_spec_CXX='${wl}-E'
19121 hardcode_direct_CXX=yes
19122 hardcode_minus_L_CXX=yes # Not in the search PATH,
19123 # but as the default
19124 # location of the library.
19125
19126 case $cc_basename in
19127 CC*)
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
19131 aCC*)
19132 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19133 # Commands to make compiler produce verbose output that lists
19134 # what "hidden" libraries, object files and flags are used when
19135 # linking a shared library.
19136 #
19137 # There doesn't appear to be a way to prevent this compiler from
19138 # explicitly linking system object files so we need to strip them
19139 # from the output so that they don't get included in the library
19140 # dependencies.
19141 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19142 ;;
19143 *)
19144 if test "$GXX" = yes; then
19145 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19146 else
19147 # FIXME: insert proper C++ library support
19148 ld_shlibs_CXX=no
19149 fi
19150 ;;
19151 esac
19152 ;;
19153
19154 hpux10*|hpux11*)
19155 if test $with_gnu_ld = no; then
19156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19157 hardcode_libdir_separator_CXX=:
19158
19159 case $host_cpu in
19160 hppa*64*|ia64*)
19161 ;;
19162 *)
19163 export_dynamic_flag_spec_CXX='${wl}-E'
19164 ;;
19165 esac
19166 fi
19167 case $host_cpu in
19168 hppa*64*|ia64*)
19169 hardcode_direct_CXX=no
19170 hardcode_shlibpath_var_CXX=no
19171 ;;
19172 *)
19173 hardcode_direct_CXX=yes
19174 hardcode_direct_absolute_CXX=yes
19175 hardcode_minus_L_CXX=yes # Not in the search PATH,
19176 # but as the default
19177 # location of the library.
19178 ;;
19179 esac
19180
19181 case $cc_basename in
19182 CC*)
19183 # FIXME: insert proper C++ library support
19184 ld_shlibs_CXX=no
19185 ;;
19186 aCC*)
19187 case $host_cpu in
19188 hppa*64*)
19189 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19190 ;;
19191 ia64*)
19192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19193 ;;
19194 *)
19195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19196 ;;
19197 esac
19198 # Commands to make compiler produce verbose output that lists
19199 # what "hidden" libraries, object files and flags are used when
19200 # linking a shared library.
19201 #
19202 # There doesn't appear to be a way to prevent this compiler from
19203 # explicitly linking system object files so we need to strip them
19204 # from the output so that they don't get included in the library
19205 # dependencies.
19206 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19207 ;;
19208 *)
19209 if test "$GXX" = yes; then
19210 if test $with_gnu_ld = no; then
19211 case $host_cpu in
19212 hppa*64*)
19213 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19214 ;;
19215 ia64*)
19216 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19217 ;;
19218 *)
19219 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19220 ;;
19221 esac
19222 fi
19223 else
19224 # FIXME: insert proper C++ library support
19225 ld_shlibs_CXX=no
19226 fi
19227 ;;
19228 esac
19229 ;;
19230
19231 interix[3-9]*)
19232 hardcode_direct_CXX=no
19233 hardcode_shlibpath_var_CXX=no
19234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX='${wl}-E'
19236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19237 # Instead, shared libraries are loaded at an image base (0x10000000 by
19238 # default) and relocated if they conflict, which is a slow very memory
19239 # consuming and fragmenting process. To avoid this, we pick a random,
19240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19242 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19243 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19244 ;;
19245 irix5* | irix6*)
19246 case $cc_basename in
19247 CC*)
19248 # SGI C++
19249 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19250
19251 # Archives containing C++ object files must be created using
19252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19253 # necessary to make sure instantiated templates are included
19254 # in the archive.
19255 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19256 ;;
19257 *)
19258 if test "$GXX" = yes; then
19259 if test "$with_gnu_ld" = no; then
19260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19261 else
19262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19263 fi
19264 fi
19265 link_all_deplibs_CXX=yes
19266 ;;
19267 esac
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19269 hardcode_libdir_separator_CXX=:
19270 inherit_rpath_CXX=yes
19271 ;;
19272
19273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19274 case $cc_basename in
19275 KCC*)
19276 # Kuck and Associates, Inc. (KAI) C++ Compiler
19277
19278 # KCC will only create a shared library if the output file
19279 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19280 # to its proper name (with version) after linking.
19281 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19282 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19283 # Commands to make compiler produce verbose output that lists
19284 # what "hidden" libraries, object files and flags are used when
19285 # linking a shared library.
19286 #
19287 # There doesn't appear to be a way to prevent this compiler from
19288 # explicitly linking system object files so we need to strip them
19289 # from the output so that they don't get included in the library
19290 # dependencies.
19291 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19292
19293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19295
19296 # Archives containing C++ object files must be created using
19297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19298 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19299 ;;
19300 icpc* | ecpc* )
19301 # Intel C++
19302 with_gnu_ld=yes
19303 # version 8.0 and above of icpc choke on multiply defined symbols
19304 # if we add $predep_objects and $postdep_objects, however 7.1 and
19305 # earlier do not add the objects themselves.
19306 case `$CC -V 2>&1` in
19307 *"Version 7."*)
19308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19310 ;;
19311 *) # Version 8.0 or newer
19312 tmp_idyn=
19313 case $host_cpu in
19314 ia64*) tmp_idyn=' -i_dynamic';;
19315 esac
19316 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19318 ;;
19319 esac
19320 archive_cmds_need_lc_CXX=no
19321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19324 ;;
19325 pgCC* | pgcpp*)
19326 # Portland Group C++ compiler
19327 case `$CC -V` in
19328 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19329 prelink_cmds_CXX='tpldir=Template.dir~
19330 rm -rf $tpldir~
19331 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19332 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19333 old_archive_cmds_CXX='tpldir=Template.dir~
19334 rm -rf $tpldir~
19335 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19336 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19337 $RANLIB $oldlib'
19338 archive_cmds_CXX='tpldir=Template.dir~
19339 rm -rf $tpldir~
19340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19341 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 archive_expsym_cmds_CXX='tpldir=Template.dir~
19343 rm -rf $tpldir~
19344 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19345 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19346 ;;
19347 *) # Version 6 and above use weak symbols
19348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19349 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19350 ;;
19351 esac
19352
19353 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19355 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19356 ;;
19357 cxx*)
19358 # Compaq C++
19359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19361
19362 runpath_var=LD_RUN_PATH
19363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19364 hardcode_libdir_separator_CXX=:
19365
19366 # Commands to make compiler produce verbose output that lists
19367 # what "hidden" libraries, object files and flags are used when
19368 # linking a shared library.
19369 #
19370 # There doesn't appear to be a way to prevent this compiler from
19371 # explicitly linking system object files so we need to strip them
19372 # from the output so that they don't get included in the library
19373 # dependencies.
19374 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19375 ;;
19376 xl* | mpixl* | bgxl*)
19377 # IBM XL 8.0 on PPC, with GNU ld
19378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19380 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 if test "x$supports_anon_versioning" = xyes; then
19382 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19384 echo "local: *; };" >> $output_objdir/$libname.ver~
19385 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19386 fi
19387 ;;
19388 *)
19389 case `$CC -V 2>&1 | sed 5q` in
19390 *Sun\ C*)
19391 # Sun C++ 5.9
19392 no_undefined_flag_CXX=' -zdefs'
19393 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19394 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19395 hardcode_libdir_flag_spec_CXX='-R$libdir'
19396 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19397 compiler_needs_object_CXX=yes
19398
19399 # Not sure whether something based on
19400 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19401 # would be better.
19402 output_verbose_link_cmd='func_echo_all'
19403
19404 # Archives containing C++ object files must be created using
19405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19406 # necessary to make sure instantiated templates are included
19407 # in the archive.
19408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19409 ;;
19410 esac
19411 ;;
19412 esac
19413 ;;
19414
19415 lynxos*)
19416 # FIXME: insert proper C++ library support
19417 ld_shlibs_CXX=no
19418 ;;
19419
19420 m88k*)
19421 # FIXME: insert proper C++ library support
19422 ld_shlibs_CXX=no
19423 ;;
19424
19425 mvs*)
19426 case $cc_basename in
19427 cxx*)
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19430 ;;
19431 *)
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19434 ;;
19435 esac
19436 ;;
19437
19438 netbsd*)
19439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19440 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19441 wlarc=
19442 hardcode_libdir_flag_spec_CXX='-R$libdir'
19443 hardcode_direct_CXX=yes
19444 hardcode_shlibpath_var_CXX=no
19445 fi
19446 # Workaround some broken pre-1.5 toolchains
19447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19448 ;;
19449
19450 *nto* | *qnx*)
19451 ld_shlibs_CXX=yes
19452 ;;
19453
19454 openbsd2*)
19455 # C++ shared libraries are fairly broken
19456 ld_shlibs_CXX=no
19457 ;;
19458
19459 openbsd*)
19460 if test -f /usr/libexec/ld.so; then
19461 hardcode_direct_CXX=yes
19462 hardcode_shlibpath_var_CXX=no
19463 hardcode_direct_absolute_CXX=yes
19464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19467 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19468 export_dynamic_flag_spec_CXX='${wl}-E'
19469 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19470 fi
19471 output_verbose_link_cmd=func_echo_all
19472 else
19473 ld_shlibs_CXX=no
19474 fi
19475 ;;
19476
19477 osf3* | osf4* | osf5*)
19478 case $cc_basename in
19479 KCC*)
19480 # Kuck and Associates, Inc. (KAI) C++ Compiler
19481
19482 # KCC will only create a shared library if the output file
19483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19484 # to its proper name (with version) after linking.
19485 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19486
19487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19488 hardcode_libdir_separator_CXX=:
19489
19490 # Archives containing C++ object files must be created using
19491 # the KAI C++ compiler.
19492 case $host in
19493 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19494 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19495 esac
19496 ;;
19497 RCC*)
19498 # Rational C++ 2.4.1
19499 # FIXME: insert proper C++ library support
19500 ld_shlibs_CXX=no
19501 ;;
19502 cxx*)
19503 case $host in
19504 osf3*)
19505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19506 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19508 ;;
19509 *)
19510 allow_undefined_flag_CXX=' -expect_unresolved \*'
19511 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19512 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19513 echo "-hidden">> $lib.exp~
19514 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19515 $RM $lib.exp'
19516 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19517 ;;
19518 esac
19519
19520 hardcode_libdir_separator_CXX=:
19521
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19525 #
19526 # There doesn't appear to be a way to prevent this compiler from
19527 # explicitly linking system object files so we need to strip them
19528 # from the output so that they don't get included in the library
19529 # dependencies.
19530 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19531 ;;
19532 *)
19533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19535 case $host in
19536 osf3*)
19537 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19538 ;;
19539 *)
19540 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19541 ;;
19542 esac
19543
19544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19545 hardcode_libdir_separator_CXX=:
19546
19547 # Commands to make compiler produce verbose output that lists
19548 # what "hidden" libraries, object files and flags are used when
19549 # linking a shared library.
19550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19551
19552 else
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19555 fi
19556 ;;
19557 esac
19558 ;;
19559
19560 psos*)
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19563 ;;
19564
19565 sunos4*)
19566 case $cc_basename in
19567 CC*)
19568 # Sun C++ 4.x
19569 # FIXME: insert proper C++ library support
19570 ld_shlibs_CXX=no
19571 ;;
19572 lcc*)
19573 # Lucid
19574 # FIXME: insert proper C++ library support
19575 ld_shlibs_CXX=no
19576 ;;
19577 *)
19578 # FIXME: insert proper C++ library support
19579 ld_shlibs_CXX=no
19580 ;;
19581 esac
19582 ;;
19583
19584 solaris*)
19585 case $cc_basename in
19586 CC*)
19587 # Sun C++ 4.2, 5.x and Centerline C++
19588 archive_cmds_need_lc_CXX=yes
19589 no_undefined_flag_CXX=' -zdefs'
19590 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19592 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19593
19594 hardcode_libdir_flag_spec_CXX='-R$libdir'
19595 hardcode_shlibpath_var_CXX=no
19596 case $host_os in
19597 solaris2.[0-5] | solaris2.[0-5].*) ;;
19598 *)
19599 # The compiler driver will combine and reorder linker options,
19600 # but understands `-z linker_flag'.
19601 # Supported since Solaris 2.6 (maybe 2.5.1?)
19602 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19603 ;;
19604 esac
19605 link_all_deplibs_CXX=yes
19606
19607 output_verbose_link_cmd='func_echo_all'
19608
19609 # Archives containing C++ object files must be created using
19610 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19611 # necessary to make sure instantiated templates are included
19612 # in the archive.
19613 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19614 ;;
19615 gcx*)
19616 # Green Hills C++ Compiler
19617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19618
19619 # The C++ compiler must be used to create the archive.
19620 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19621 ;;
19622 *)
19623 # GNU C++ compiler with Solaris linker
19624 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19625 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19626 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19627 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19630
19631 # Commands to make compiler produce verbose output that lists
19632 # what "hidden" libraries, object files and flags are used when
19633 # linking a shared library.
19634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19635 else
19636 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19637 # platform.
19638 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19639 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19641
19642 # Commands to make compiler produce verbose output that lists
19643 # what "hidden" libraries, object files and flags are used when
19644 # linking a shared library.
19645 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19646 fi
19647
19648 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19649 case $host_os in
19650 solaris2.[0-5] | solaris2.[0-5].*) ;;
19651 *)
19652 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19653 ;;
19654 esac
19655 fi
19656 ;;
19657 esac
19658 ;;
19659
19660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19661 no_undefined_flag_CXX='${wl}-z,text'
19662 archive_cmds_need_lc_CXX=no
19663 hardcode_shlibpath_var_CXX=no
19664 runpath_var='LD_RUN_PATH'
19665
19666 case $cc_basename in
19667 CC*)
19668 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19669 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19670 ;;
19671 *)
19672 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19673 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19674 ;;
19675 esac
19676 ;;
19677
19678 sysv5* | sco3.2v5* | sco5v6*)
19679 # Note: We can NOT use -z defs as we might desire, because we do not
19680 # link with -lc, and that would cause any symbols used from libc to
19681 # always be unresolved, which means just about no library would
19682 # ever link correctly. If we're not using GNU ld we use -z text
19683 # though, which does catch some bad symbols but isn't as heavy-handed
19684 # as -z defs.
19685 no_undefined_flag_CXX='${wl}-z,text'
19686 allow_undefined_flag_CXX='${wl}-z,nodefs'
19687 archive_cmds_need_lc_CXX=no
19688 hardcode_shlibpath_var_CXX=no
19689 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19690 hardcode_libdir_separator_CXX=':'
19691 link_all_deplibs_CXX=yes
19692 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19693 runpath_var='LD_RUN_PATH'
19694
19695 case $cc_basename in
19696 CC*)
19697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19700 '"$old_archive_cmds_CXX"
19701 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19702 '"$reload_cmds_CXX"
19703 ;;
19704 *)
19705 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19707 ;;
19708 esac
19709 ;;
19710
19711 tandem*)
19712 case $cc_basename in
19713 NCC*)
19714 # NonStop-UX NCC 3.20
19715 # FIXME: insert proper C++ library support
19716 ld_shlibs_CXX=no
19717 ;;
19718 *)
19719 # FIXME: insert proper C++ library support
19720 ld_shlibs_CXX=no
19721 ;;
19722 esac
19723 ;;
19724
19725 vxworks*)
19726 # FIXME: insert proper C++ library support
19727 ld_shlibs_CXX=no
19728 ;;
19729
19730 *)
19731 # FIXME: insert proper C++ library support
19732 ld_shlibs_CXX=no
19733 ;;
19734 esac
19735
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19737 $as_echo "$ld_shlibs_CXX" >&6; }
19738 test "$ld_shlibs_CXX" = no && can_build_shared=no
19739
19740 GCC_CXX="$GXX"
19741 LD_CXX="$LD"
19742
19743 ## CAVEAT EMPTOR:
19744 ## There is no encapsulation within the following macros, do not change
19745 ## the running order or otherwise move them around unless you know exactly
19746 ## what you are doing...
19747 # Dependencies to place before and after the object being linked:
19748 predep_objects_CXX=
19749 postdep_objects_CXX=
19750 predeps_CXX=
19751 postdeps_CXX=
19752 compiler_lib_search_path_CXX=
19753
19754 cat > conftest.$ac_ext <<_LT_EOF
19755 class Foo
19756 {
19757 public:
19758 Foo (void) { a = 0; }
19759 private:
19760 int a;
19761 };
19762 _LT_EOF
19763
19764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19765 (eval $ac_compile) 2>&5
19766 ac_status=$?
19767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19768 test $ac_status = 0; }; then
19769 # Parse the compiler output and extract the necessary
19770 # objects, libraries and library flags.
19771
19772 # Sentinel used to keep track of whether or not we are before
19773 # the conftest object file.
19774 pre_test_object_deps_done=no
19775
19776 for p in `eval "$output_verbose_link_cmd"`; do
19777 case $p in
19778
19779 -L* | -R* | -l*)
19780 # Some compilers place space between "-{L,R}" and the path.
19781 # Remove the space.
19782 if test $p = "-L" ||
19783 test $p = "-R"; then
19784 prev=$p
19785 continue
19786 else
19787 prev=
19788 fi
19789
19790 if test "$pre_test_object_deps_done" = no; then
19791 case $p in
19792 -L* | -R*)
19793 # Internal compiler library paths should come after those
19794 # provided the user. The postdeps already come after the
19795 # user supplied libs so there is no need to process them.
19796 if test -z "$compiler_lib_search_path_CXX"; then
19797 compiler_lib_search_path_CXX="${prev}${p}"
19798 else
19799 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19800 fi
19801 ;;
19802 # The "-l" case would never come before the object being
19803 # linked, so don't bother handling this case.
19804 esac
19805 else
19806 if test -z "$postdeps_CXX"; then
19807 postdeps_CXX="${prev}${p}"
19808 else
19809 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19810 fi
19811 fi
19812 ;;
19813
19814 *.$objext)
19815 # This assumes that the test object file only shows up
19816 # once in the compiler output.
19817 if test "$p" = "conftest.$objext"; then
19818 pre_test_object_deps_done=yes
19819 continue
19820 fi
19821
19822 if test "$pre_test_object_deps_done" = no; then
19823 if test -z "$predep_objects_CXX"; then
19824 predep_objects_CXX="$p"
19825 else
19826 predep_objects_CXX="$predep_objects_CXX $p"
19827 fi
19828 else
19829 if test -z "$postdep_objects_CXX"; then
19830 postdep_objects_CXX="$p"
19831 else
19832 postdep_objects_CXX="$postdep_objects_CXX $p"
19833 fi
19834 fi
19835 ;;
19836
19837 *) ;; # Ignore the rest.
19838
19839 esac
19840 done
19841
19842 # Clean up.
19843 rm -f a.out a.exe
19844 else
19845 echo "libtool.m4: error: problem compiling CXX test program"
19846 fi
19847
19848 $RM -f confest.$objext
19849
19850 # PORTME: override above test on systems where it is broken
19851 case $host_os in
19852 interix[3-9]*)
19853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19854 # hack all around it, let's just trust "g++" to DTRT.
19855 predep_objects_CXX=
19856 postdep_objects_CXX=
19857 postdeps_CXX=
19858 ;;
19859
19860 linux*)
19861 case `$CC -V 2>&1 | sed 5q` in
19862 *Sun\ C*)
19863 # Sun C++ 5.9
19864
19865 # The more standards-conforming stlport4 library is
19866 # incompatible with the Cstd library. Avoid specifying
19867 # it if it's in CXXFLAGS. Ignore libCrun as
19868 # -library=stlport4 depends on it.
19869 case " $CXX $CXXFLAGS " in
19870 *" -library=stlport4 "*)
19871 solaris_use_stlport4=yes
19872 ;;
19873 esac
19874
19875 if test "$solaris_use_stlport4" != yes; then
19876 postdeps_CXX='-library=Cstd -library=Crun'
19877 fi
19878 ;;
19879 esac
19880 ;;
19881
19882 solaris*)
19883 case $cc_basename in
19884 CC*)
19885 # The more standards-conforming stlport4 library is
19886 # incompatible with the Cstd library. Avoid specifying
19887 # it if it's in CXXFLAGS. Ignore libCrun as
19888 # -library=stlport4 depends on it.
19889 case " $CXX $CXXFLAGS " in
19890 *" -library=stlport4 "*)
19891 solaris_use_stlport4=yes
19892 ;;
19893 esac
19894
19895 # Adding this requires a known-good setup of shared libraries for
19896 # Sun compiler versions before 5.6, else PIC objects from an old
19897 # archive will be linked into the output, leading to subtle bugs.
19898 if test "$solaris_use_stlport4" != yes; then
19899 postdeps_CXX='-library=Cstd -library=Crun'
19900 fi
19901 ;;
19902 esac
19903 ;;
19904 esac
19905
19906
19907 case " $postdeps_CXX " in
19908 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19909 esac
19910 compiler_lib_search_dirs_CXX=
19911 if test -n "${compiler_lib_search_path_CXX}"; then
19912 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19913 fi
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945 lt_prog_compiler_wl_CXX=
19946 lt_prog_compiler_pic_CXX=
19947 lt_prog_compiler_static_CXX=
19948
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19951
19952 # C++ specific cases for pic, static, wl, etc.
19953 if test "$GXX" = yes; then
19954 lt_prog_compiler_wl_CXX='-Wl,'
19955 lt_prog_compiler_static_CXX='-static'
19956
19957 case $host_os in
19958 aix*)
19959 # All AIX code is PIC.
19960 if test "$host_cpu" = ia64; then
19961 # AIX 5 now supports IA64 processor
19962 lt_prog_compiler_static_CXX='-Bstatic'
19963 fi
19964 lt_prog_compiler_pic_CXX='-fPIC'
19965 ;;
19966
19967 amigaos*)
19968 case $host_cpu in
19969 powerpc)
19970 # see comment about AmigaOS4 .so support
19971 lt_prog_compiler_pic_CXX='-fPIC'
19972 ;;
19973 m68k)
19974 # FIXME: we need at least 68020 code to build shared libraries, but
19975 # adding the `-m68020' flag to GCC prevents building anything better,
19976 # like `-m68040'.
19977 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19978 ;;
19979 esac
19980 ;;
19981
19982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19983 # PIC is the default for these OSes.
19984 ;;
19985 mingw* | cygwin* | os2* | pw32* | cegcc*)
19986 # This hack is so that the source file can tell whether it is being
19987 # built for inclusion in a dll (and should export symbols for example).
19988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19989 # (--disable-auto-import) libraries
19990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19991 ;;
19992 darwin* | rhapsody*)
19993 # PIC is the default on this platform
19994 # Common symbols not allowed in MH_DYLIB files
19995 lt_prog_compiler_pic_CXX='-fno-common'
19996 ;;
19997 *djgpp*)
19998 # DJGPP does not support shared libraries at all
19999 lt_prog_compiler_pic_CXX=
20000 ;;
20001 haiku*)
20002 # PIC is the default for Haiku.
20003 # The "-static" flag exists, but is broken.
20004 lt_prog_compiler_static_CXX=
20005 ;;
20006 interix[3-9]*)
20007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20008 # Instead, we relocate shared libraries at runtime.
20009 ;;
20010 sysv4*MP*)
20011 if test -d /usr/nec; then
20012 lt_prog_compiler_pic_CXX=-Kconform_pic
20013 fi
20014 ;;
20015 hpux*)
20016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20018 # sets the default TLS model and affects inlining.
20019 case $host_cpu in
20020 hppa*64*)
20021 ;;
20022 *)
20023 lt_prog_compiler_pic_CXX='-fPIC'
20024 ;;
20025 esac
20026 ;;
20027 *qnx* | *nto*)
20028 # QNX uses GNU C++, but need to define -shared option too, otherwise
20029 # it will coredump.
20030 lt_prog_compiler_pic_CXX='-fPIC -shared'
20031 ;;
20032 *)
20033 lt_prog_compiler_pic_CXX='-fPIC'
20034 ;;
20035 esac
20036 else
20037 case $host_os in
20038 aix[4-9]*)
20039 # All AIX code is PIC.
20040 if test "$host_cpu" = ia64; then
20041 # AIX 5 now supports IA64 processor
20042 lt_prog_compiler_static_CXX='-Bstatic'
20043 else
20044 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20045 fi
20046 ;;
20047 chorus*)
20048 case $cc_basename in
20049 cxch68*)
20050 # Green Hills C++ Compiler
20051 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20052 ;;
20053 esac
20054 ;;
20055 dgux*)
20056 case $cc_basename in
20057 ec++*)
20058 lt_prog_compiler_pic_CXX='-KPIC'
20059 ;;
20060 ghcx*)
20061 # Green Hills C++ Compiler
20062 lt_prog_compiler_pic_CXX='-pic'
20063 ;;
20064 *)
20065 ;;
20066 esac
20067 ;;
20068 freebsd* | dragonfly*)
20069 # FreeBSD uses GNU C++
20070 ;;
20071 hpux9* | hpux10* | hpux11*)
20072 case $cc_basename in
20073 CC*)
20074 lt_prog_compiler_wl_CXX='-Wl,'
20075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20076 if test "$host_cpu" != ia64; then
20077 lt_prog_compiler_pic_CXX='+Z'
20078 fi
20079 ;;
20080 aCC*)
20081 lt_prog_compiler_wl_CXX='-Wl,'
20082 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20083 case $host_cpu in
20084 hppa*64*|ia64*)
20085 # +Z the default
20086 ;;
20087 *)
20088 lt_prog_compiler_pic_CXX='+Z'
20089 ;;
20090 esac
20091 ;;
20092 *)
20093 ;;
20094 esac
20095 ;;
20096 interix*)
20097 # This is c89, which is MS Visual C++ (no shared libs)
20098 # Anyone wants to do a port?
20099 ;;
20100 irix5* | irix6* | nonstopux*)
20101 case $cc_basename in
20102 CC*)
20103 lt_prog_compiler_wl_CXX='-Wl,'
20104 lt_prog_compiler_static_CXX='-non_shared'
20105 # CC pic flag -KPIC is the default.
20106 ;;
20107 *)
20108 ;;
20109 esac
20110 ;;
20111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20112 case $cc_basename in
20113 KCC*)
20114 # KAI C++ Compiler
20115 lt_prog_compiler_wl_CXX='--backend -Wl,'
20116 lt_prog_compiler_pic_CXX='-fPIC'
20117 ;;
20118 ecpc* )
20119 # old Intel C++ for x86_64 which still supported -KPIC.
20120 lt_prog_compiler_wl_CXX='-Wl,'
20121 lt_prog_compiler_pic_CXX='-KPIC'
20122 lt_prog_compiler_static_CXX='-static'
20123 ;;
20124 icpc* )
20125 # Intel C++, used to be incompatible with GCC.
20126 # ICC 10 doesn't accept -KPIC any more.
20127 lt_prog_compiler_wl_CXX='-Wl,'
20128 lt_prog_compiler_pic_CXX='-fPIC'
20129 lt_prog_compiler_static_CXX='-static'
20130 ;;
20131 pgCC* | pgcpp*)
20132 # Portland Group C++ compiler
20133 lt_prog_compiler_wl_CXX='-Wl,'
20134 lt_prog_compiler_pic_CXX='-fpic'
20135 lt_prog_compiler_static_CXX='-Bstatic'
20136 ;;
20137 cxx*)
20138 # Compaq C++
20139 # Make sure the PIC flag is empty. It appears that all Alpha
20140 # Linux and Compaq Tru64 Unix objects are PIC.
20141 lt_prog_compiler_pic_CXX=
20142 lt_prog_compiler_static_CXX='-non_shared'
20143 ;;
20144 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20145 # IBM XL 8.0, 9.0 on PPC and BlueGene
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_pic_CXX='-qpic'
20148 lt_prog_compiler_static_CXX='-qstaticlink'
20149 ;;
20150 *)
20151 case `$CC -V 2>&1 | sed 5q` in
20152 *Sun\ C*)
20153 # Sun C++ 5.9
20154 lt_prog_compiler_pic_CXX='-KPIC'
20155 lt_prog_compiler_static_CXX='-Bstatic'
20156 lt_prog_compiler_wl_CXX='-Qoption ld '
20157 ;;
20158 esac
20159 ;;
20160 esac
20161 ;;
20162 lynxos*)
20163 ;;
20164 m88k*)
20165 ;;
20166 mvs*)
20167 case $cc_basename in
20168 cxx*)
20169 lt_prog_compiler_pic_CXX='-W c,exportall'
20170 ;;
20171 *)
20172 ;;
20173 esac
20174 ;;
20175 netbsd*)
20176 ;;
20177 *qnx* | *nto*)
20178 # QNX uses GNU C++, but need to define -shared option too, otherwise
20179 # it will coredump.
20180 lt_prog_compiler_pic_CXX='-fPIC -shared'
20181 ;;
20182 osf3* | osf4* | osf5*)
20183 case $cc_basename in
20184 KCC*)
20185 lt_prog_compiler_wl_CXX='--backend -Wl,'
20186 ;;
20187 RCC*)
20188 # Rational C++ 2.4.1
20189 lt_prog_compiler_pic_CXX='-pic'
20190 ;;
20191 cxx*)
20192 # Digital/Compaq C++
20193 lt_prog_compiler_wl_CXX='-Wl,'
20194 # Make sure the PIC flag is empty. It appears that all Alpha
20195 # Linux and Compaq Tru64 Unix objects are PIC.
20196 lt_prog_compiler_pic_CXX=
20197 lt_prog_compiler_static_CXX='-non_shared'
20198 ;;
20199 *)
20200 ;;
20201 esac
20202 ;;
20203 psos*)
20204 ;;
20205 solaris*)
20206 case $cc_basename in
20207 CC*)
20208 # Sun C++ 4.2, 5.x and Centerline C++
20209 lt_prog_compiler_pic_CXX='-KPIC'
20210 lt_prog_compiler_static_CXX='-Bstatic'
20211 lt_prog_compiler_wl_CXX='-Qoption ld '
20212 ;;
20213 gcx*)
20214 # Green Hills C++ Compiler
20215 lt_prog_compiler_pic_CXX='-PIC'
20216 ;;
20217 *)
20218 ;;
20219 esac
20220 ;;
20221 sunos4*)
20222 case $cc_basename in
20223 CC*)
20224 # Sun C++ 4.x
20225 lt_prog_compiler_pic_CXX='-pic'
20226 lt_prog_compiler_static_CXX='-Bstatic'
20227 ;;
20228 lcc*)
20229 # Lucid
20230 lt_prog_compiler_pic_CXX='-pic'
20231 ;;
20232 *)
20233 ;;
20234 esac
20235 ;;
20236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20237 case $cc_basename in
20238 CC*)
20239 lt_prog_compiler_wl_CXX='-Wl,'
20240 lt_prog_compiler_pic_CXX='-KPIC'
20241 lt_prog_compiler_static_CXX='-Bstatic'
20242 ;;
20243 esac
20244 ;;
20245 tandem*)
20246 case $cc_basename in
20247 NCC*)
20248 # NonStop-UX NCC 3.20
20249 lt_prog_compiler_pic_CXX='-KPIC'
20250 ;;
20251 *)
20252 ;;
20253 esac
20254 ;;
20255 vxworks*)
20256 ;;
20257 *)
20258 lt_prog_compiler_can_build_shared_CXX=no
20259 ;;
20260 esac
20261 fi
20262
20263 case $host_os in
20264 # For platforms which do not support PIC, -DPIC is meaningless:
20265 *djgpp*)
20266 lt_prog_compiler_pic_CXX=
20267 ;;
20268 *)
20269 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20270 ;;
20271 esac
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20274
20275
20276
20277 #
20278 # Check to make sure the PIC flag actually works.
20279 #
20280 if test -n "$lt_prog_compiler_pic_CXX"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20283 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20284 $as_echo_n "(cached) " >&6
20285 else
20286 lt_cv_prog_compiler_pic_works_CXX=no
20287 ac_outfile=conftest.$ac_objext
20288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20289 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 # The option is referenced via a variable to avoid confusing sed.
20295 lt_compile=`echo "$ac_compile" | $SED \
20296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20298 -e 's:$: $lt_compiler_flag:'`
20299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20300 (eval "$lt_compile" 2>conftest.err)
20301 ac_status=$?
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 if (exit $ac_status) && test -s "$ac_outfile"; then
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings other than the usual output.
20307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20310 lt_cv_prog_compiler_pic_works_CXX=yes
20311 fi
20312 fi
20313 $RM conftest*
20314
20315 fi
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20318
20319 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20320 case $lt_prog_compiler_pic_CXX in
20321 "" | " "*) ;;
20322 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20323 esac
20324 else
20325 lt_prog_compiler_pic_CXX=
20326 lt_prog_compiler_can_build_shared_CXX=no
20327 fi
20328
20329 fi
20330
20331
20332
20333 #
20334 # Check to make sure the static flag actually works.
20335 #
20336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20339 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20341 else
20342 lt_cv_prog_compiler_static_works_CXX=no
20343 save_LDFLAGS="$LDFLAGS"
20344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20347 # The linker can only warn and ignore the option if not recognized
20348 # So say no if there are warnings
20349 if test -s conftest.err; then
20350 # Append any errors to the config.log.
20351 cat conftest.err 1>&5
20352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20354 if diff conftest.exp conftest.er2 >/dev/null; then
20355 lt_cv_prog_compiler_static_works_CXX=yes
20356 fi
20357 else
20358 lt_cv_prog_compiler_static_works_CXX=yes
20359 fi
20360 fi
20361 $RM -r conftest*
20362 LDFLAGS="$save_LDFLAGS"
20363
20364 fi
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20367
20368 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20369 :
20370 else
20371 lt_prog_compiler_static_CXX=
20372 fi
20373
20374
20375
20376
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20381 else
20382 lt_cv_prog_compiler_c_o_CXX=no
20383 $RM -r conftest 2>/dev/null
20384 mkdir conftest
20385 cd conftest
20386 mkdir out
20387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20388
20389 lt_compiler_flag="-o out/conftest2.$ac_objext"
20390 # Insert the option either (1) after the last *FLAGS variable, or
20391 # (2) before a word containing "conftest.", or (3) at the end.
20392 # Note that $ac_compile itself does not contain backslashes and begins
20393 # with a dollar sign (not a hyphen), so the echo should work correctly.
20394 lt_compile=`echo "$ac_compile" | $SED \
20395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20397 -e 's:$: $lt_compiler_flag:'`
20398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20399 (eval "$lt_compile" 2>out/conftest.err)
20400 ac_status=$?
20401 cat out/conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20404 then
20405 # The compiler can only warn and ignore the option if not recognized
20406 # So say no if there are warnings
20407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20410 lt_cv_prog_compiler_c_o_CXX=yes
20411 fi
20412 fi
20413 chmod u+w . 2>&5
20414 $RM conftest*
20415 # SGI C++ compiler will create directory out/ii_files/ for
20416 # template instantiation
20417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20418 $RM out/* && rmdir out
20419 cd ..
20420 $RM -r conftest
20421 $RM conftest*
20422
20423 fi
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20426
20427
20428
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20432 $as_echo_n "(cached) " >&6
20433 else
20434 lt_cv_prog_compiler_c_o_CXX=no
20435 $RM -r conftest 2>/dev/null
20436 mkdir conftest
20437 cd conftest
20438 mkdir out
20439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20440
20441 lt_compiler_flag="-o out/conftest2.$ac_objext"
20442 # Insert the option either (1) after the last *FLAGS variable, or
20443 # (2) before a word containing "conftest.", or (3) at the end.
20444 # Note that $ac_compile itself does not contain backslashes and begins
20445 # with a dollar sign (not a hyphen), so the echo should work correctly.
20446 lt_compile=`echo "$ac_compile" | $SED \
20447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20449 -e 's:$: $lt_compiler_flag:'`
20450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20451 (eval "$lt_compile" 2>out/conftest.err)
20452 ac_status=$?
20453 cat out/conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20456 then
20457 # The compiler can only warn and ignore the option if not recognized
20458 # So say no if there are warnings
20459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20462 lt_cv_prog_compiler_c_o_CXX=yes
20463 fi
20464 fi
20465 chmod u+w . 2>&5
20466 $RM conftest*
20467 # SGI C++ compiler will create directory out/ii_files/ for
20468 # template instantiation
20469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20470 $RM out/* && rmdir out
20471 cd ..
20472 $RM -r conftest
20473 $RM conftest*
20474
20475 fi
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20478
20479
20480
20481
20482 hard_links="nottested"
20483 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20484 # do not overwrite the value of need_locks provided by the user
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20486 $as_echo_n "checking if we can lock with hard links... " >&6; }
20487 hard_links=yes
20488 $RM conftest*
20489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20490 touch conftest.a
20491 ln conftest.a conftest.b 2>&5 || hard_links=no
20492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20494 $as_echo "$hard_links" >&6; }
20495 if test "$hard_links" = no; then
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20498 need_locks=warn
20499 fi
20500 else
20501 need_locks=no
20502 fi
20503
20504
20505
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20508
20509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20510 case $host_os in
20511 aix[4-9]*)
20512 # If we're using GNU nm, then we don't want the "-C" option.
20513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20514 # Also, AIX nm treats weak defined symbols like other global defined
20515 # symbols, whereas GNU nm marks them as "W".
20516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20517 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20518 else
20519 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20520 fi
20521 ;;
20522 pw32*)
20523 export_symbols_cmds_CXX="$ltdll_cmds"
20524 ;;
20525 cygwin* | mingw* | cegcc*)
20526 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20527 ;;
20528 *)
20529 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20530 ;;
20531 esac
20532 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20533
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20535 $as_echo "$ld_shlibs_CXX" >&6; }
20536 test "$ld_shlibs_CXX" = no && can_build_shared=no
20537
20538 with_gnu_ld_CXX=$with_gnu_ld
20539
20540
20541
20542
20543
20544
20545 #
20546 # Do we need to explicitly link libc?
20547 #
20548 case "x$archive_cmds_need_lc_CXX" in
20549 x|xyes)
20550 # Assume -lc should be added
20551 archive_cmds_need_lc_CXX=yes
20552
20553 if test "$enable_shared" = yes && test "$GCC" = yes; then
20554 case $archive_cmds_CXX in
20555 *'~'*)
20556 # FIXME: we may have to deal with multi-command sequences.
20557 ;;
20558 '$CC '*)
20559 # Test whether the compiler implicitly links with -lc since on some
20560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20561 # to ld, don't add -lc before -lgcc.
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20564 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 $RM conftest*
20568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20569
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20572 ac_status=$?
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; } 2>conftest.err; then
20575 soname=conftest
20576 lib=conftest
20577 libobjs=conftest.$ac_objext
20578 deplibs=
20579 wl=$lt_prog_compiler_wl_CXX
20580 pic_flag=$lt_prog_compiler_pic_CXX
20581 compiler_flags=-v
20582 linker_flags=-v
20583 verstring=
20584 output_objdir=.
20585 libname=conftest
20586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20587 allow_undefined_flag_CXX=
20588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20589 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20590 ac_status=$?
20591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592 test $ac_status = 0; }
20593 then
20594 lt_cv_archive_cmds_need_lc_CXX=no
20595 else
20596 lt_cv_archive_cmds_need_lc_CXX=yes
20597 fi
20598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20599 else
20600 cat conftest.err 1>&5
20601 fi
20602 $RM conftest*
20603
20604 fi
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20607 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20608 ;;
20609 esac
20610 fi
20611 ;;
20612 esac
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20679
20680 library_names_spec=
20681 libname_spec='lib$name'
20682 soname_spec=
20683 shrext_cmds=".so"
20684 postinstall_cmds=
20685 postuninstall_cmds=
20686 finish_cmds=
20687 finish_eval=
20688 shlibpath_var=
20689 shlibpath_overrides_runpath=unknown
20690 version_type=none
20691 dynamic_linker="$host_os ld.so"
20692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20693 need_lib_prefix=unknown
20694 hardcode_into_libs=no
20695
20696 # when you set need_version to no, make sure it does not cause -set_version
20697 # flags to be left without arguments
20698 need_version=unknown
20699
20700 case $host_os in
20701 aix3*)
20702 version_type=linux
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20704 shlibpath_var=LIBPATH
20705
20706 # AIX 3 has no versioning support, so we append a major version to the name.
20707 soname_spec='${libname}${release}${shared_ext}$major'
20708 ;;
20709
20710 aix[4-9]*)
20711 version_type=linux
20712 need_lib_prefix=no
20713 need_version=no
20714 hardcode_into_libs=yes
20715 if test "$host_cpu" = ia64; then
20716 # AIX 5 supports IA64
20717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20718 shlibpath_var=LD_LIBRARY_PATH
20719 else
20720 # With GCC up to 2.95.x, collect2 would create an import file
20721 # for dependence libraries. The import file would start with
20722 # the line `#! .'. This would cause the generated library to
20723 # depend on `.', always an invalid library. This was fixed in
20724 # development snapshots of GCC prior to 3.0.
20725 case $host_os in
20726 aix4 | aix4.[01] | aix4.[01].*)
20727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20728 echo ' yes '
20729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20730 :
20731 else
20732 can_build_shared=no
20733 fi
20734 ;;
20735 esac
20736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20737 # soname into executable. Probably we can add versioning support to
20738 # collect2, so additional links can be useful in future.
20739 if test "$aix_use_runtimelinking" = yes; then
20740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20741 # instead of lib<name>.a to let people know that these are not
20742 # typical AIX shared libraries.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 else
20745 # We preserve .a as extension for shared libraries through AIX4.2
20746 # and later when we are not doing run time linking.
20747 library_names_spec='${libname}${release}.a $libname.a'
20748 soname_spec='${libname}${release}${shared_ext}$major'
20749 fi
20750 shlibpath_var=LIBPATH
20751 fi
20752 ;;
20753
20754 amigaos*)
20755 case $host_cpu in
20756 powerpc)
20757 # Since July 2007 AmigaOS4 officially supports .so libraries.
20758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20760 ;;
20761 m68k)
20762 library_names_spec='$libname.ixlibrary $libname.a'
20763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20764 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20765 ;;
20766 esac
20767 ;;
20768
20769 beos*)
20770 library_names_spec='${libname}${shared_ext}'
20771 dynamic_linker="$host_os ld.so"
20772 shlibpath_var=LIBRARY_PATH
20773 ;;
20774
20775 bsdi[45]*)
20776 version_type=linux
20777 need_version=no
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec='${libname}${release}${shared_ext}$major'
20780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20781 shlibpath_var=LD_LIBRARY_PATH
20782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20784 # the default ld.so.conf also contains /usr/contrib/lib and
20785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20786 # libtool to hard-code these into programs
20787 ;;
20788
20789 cygwin* | mingw* | pw32* | cegcc*)
20790 version_type=windows
20791 shrext_cmds=".dll"
20792 need_version=no
20793 need_lib_prefix=no
20794
20795 case $GCC,$host_os in
20796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20797 library_names_spec='$libname.dll.a'
20798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20799 postinstall_cmds='base_file=`basename \${file}`~
20800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20801 dldir=$destdir/`dirname \$dlpath`~
20802 test -d \$dldir || mkdir -p \$dldir~
20803 $install_prog $dir/$dlname \$dldir/$dlname~
20804 chmod a+x \$dldir/$dlname~
20805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20807 fi'
20808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20809 dlpath=$dir/\$dldll~
20810 $RM \$dlpath'
20811 shlibpath_overrides_runpath=yes
20812
20813 case $host_os in
20814 cygwin*)
20815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20817
20818 ;;
20819 mingw* | cegcc*)
20820 # MinGW DLLs use traditional 'lib' prefix
20821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20822 ;;
20823 pw32*)
20824 # pw32 DLLs use 'pw' prefix rather than 'lib'
20825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20826 ;;
20827 esac
20828 ;;
20829
20830 *)
20831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20832 ;;
20833 esac
20834 dynamic_linker='Win32 ld.exe'
20835 # FIXME: first we should search . and the directory the executable is in
20836 shlibpath_var=PATH
20837 ;;
20838
20839 darwin* | rhapsody*)
20840 dynamic_linker="$host_os dyld"
20841 version_type=darwin
20842 need_lib_prefix=no
20843 need_version=no
20844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20845 soname_spec='${libname}${release}${major}$shared_ext'
20846 shlibpath_overrides_runpath=yes
20847 shlibpath_var=DYLD_LIBRARY_PATH
20848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20849
20850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20851 ;;
20852
20853 dgux*)
20854 version_type=linux
20855 need_lib_prefix=no
20856 need_version=no
20857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20858 soname_spec='${libname}${release}${shared_ext}$major'
20859 shlibpath_var=LD_LIBRARY_PATH
20860 ;;
20861
20862 freebsd* | dragonfly*)
20863 # DragonFly does not have aout. When/if they implement a new
20864 # versioning mechanism, adjust this.
20865 if test -x /usr/bin/objformat; then
20866 objformat=`/usr/bin/objformat`
20867 else
20868 case $host_os in
20869 freebsd[23].*) objformat=aout ;;
20870 *) objformat=elf ;;
20871 esac
20872 fi
20873 version_type=freebsd-$objformat
20874 case $version_type in
20875 freebsd-elf*)
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20877 need_version=no
20878 need_lib_prefix=no
20879 ;;
20880 freebsd-*)
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20882 need_version=yes
20883 ;;
20884 esac
20885 shlibpath_var=LD_LIBRARY_PATH
20886 case $host_os in
20887 freebsd2.*)
20888 shlibpath_overrides_runpath=yes
20889 ;;
20890 freebsd3.[01]* | freebsdelf3.[01]*)
20891 shlibpath_overrides_runpath=yes
20892 hardcode_into_libs=yes
20893 ;;
20894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20896 shlibpath_overrides_runpath=no
20897 hardcode_into_libs=yes
20898 ;;
20899 *) # from 4.6 on, and DragonFly
20900 shlibpath_overrides_runpath=yes
20901 hardcode_into_libs=yes
20902 ;;
20903 esac
20904 ;;
20905
20906 gnu*)
20907 version_type=linux
20908 need_lib_prefix=no
20909 need_version=no
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 hardcode_into_libs=yes
20914 ;;
20915
20916 haiku*)
20917 version_type=linux
20918 need_lib_prefix=no
20919 need_version=no
20920 dynamic_linker="$host_os runtime_loader"
20921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20922 soname_spec='${libname}${release}${shared_ext}$major'
20923 shlibpath_var=LIBRARY_PATH
20924 shlibpath_overrides_runpath=yes
20925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20926 hardcode_into_libs=yes
20927 ;;
20928
20929 hpux9* | hpux10* | hpux11*)
20930 # Give a soname corresponding to the major version so that dld.sl refuses to
20931 # link against other versions.
20932 version_type=sunos
20933 need_lib_prefix=no
20934 need_version=no
20935 case $host_cpu in
20936 ia64*)
20937 shrext_cmds='.so'
20938 hardcode_into_libs=yes
20939 dynamic_linker="$host_os dld.so"
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec='${libname}${release}${shared_ext}$major'
20944 if test "X$HPUX_IA64_MODE" = X32; then
20945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20946 else
20947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20948 fi
20949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20950 ;;
20951 hppa*64*)
20952 shrext_cmds='.sl'
20953 hardcode_into_libs=yes
20954 dynamic_linker="$host_os dld.sl"
20955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20961 ;;
20962 *)
20963 shrext_cmds='.sl'
20964 dynamic_linker="$host_os dld.sl"
20965 shlibpath_var=SHLIB_PATH
20966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 ;;
20970 esac
20971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20972 postinstall_cmds='chmod 555 $lib'
20973 # or fails outright, so override atomically:
20974 install_override_mode=555
20975 ;;
20976
20977 interix[3-9]*)
20978 version_type=linux
20979 need_lib_prefix=no
20980 need_version=no
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20982 soname_spec='${libname}${release}${shared_ext}$major'
20983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20984 shlibpath_var=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath=no
20986 hardcode_into_libs=yes
20987 ;;
20988
20989 irix5* | irix6* | nonstopux*)
20990 case $host_os in
20991 nonstopux*) version_type=nonstopux ;;
20992 *)
20993 if test "$lt_cv_prog_gnu_ld" = yes; then
20994 version_type=linux
20995 else
20996 version_type=irix
20997 fi ;;
20998 esac
20999 need_lib_prefix=no
21000 need_version=no
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21003 case $host_os in
21004 irix5* | nonstopux*)
21005 libsuff= shlibsuff=
21006 ;;
21007 *)
21008 case $LD in # libtool.m4 will add one of these switches to LD
21009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21010 libsuff= shlibsuff= libmagic=32-bit;;
21011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21012 libsuff=32 shlibsuff=N32 libmagic=N32;;
21013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21015 *) libsuff= shlibsuff= libmagic=never-match;;
21016 esac
21017 ;;
21018 esac
21019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21020 shlibpath_overrides_runpath=no
21021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21023 hardcode_into_libs=yes
21024 ;;
21025
21026 # No shared lib support for Linux oldld, aout, or coff.
21027 linux*oldld* | linux*aout* | linux*coff*)
21028 dynamic_linker=no
21029 ;;
21030
21031 # This must be Linux ELF.
21032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21033 version_type=linux
21034 need_lib_prefix=no
21035 need_version=no
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath=no
21041
21042 # Some binutils ld are patched to set DT_RUNPATH
21043 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21045 else
21046 lt_cv_shlibpath_overrides_runpath=no
21047 save_LDFLAGS=$LDFLAGS
21048 save_libdir=$libdir
21049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21053
21054 int
21055 main ()
21056 {
21057
21058 ;
21059 return 0;
21060 }
21061 _ACEOF
21062 if ac_fn_cxx_try_link "$LINENO"; then :
21063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21064 lt_cv_shlibpath_overrides_runpath=yes
21065 fi
21066 fi
21067 rm -f core conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21069 LDFLAGS=$save_LDFLAGS
21070 libdir=$save_libdir
21071
21072 fi
21073
21074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21075
21076 # This implies no fast_install, which is unacceptable.
21077 # Some rework will be needed to allow for fast_install
21078 # before this can be enabled.
21079 hardcode_into_libs=yes
21080
21081 # Append ld.so.conf contents to the search path
21082 if test -f /etc/ld.so.conf; then
21083 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
21084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21085 fi
21086
21087 # We used to test for /lib/ld.so.1 and disable shared libraries on
21088 # powerpc, because MkLinux only supported shared libraries with the
21089 # GNU dynamic linker. Since this was broken with cross compilers,
21090 # most powerpc-linux boxes support dynamic linking these days and
21091 # people can always --disable-shared, the test was removed, and we
21092 # assume the GNU/Linux dynamic linker is in use.
21093 dynamic_linker='GNU/Linux ld.so'
21094 ;;
21095
21096 netbsd*)
21097 version_type=sunos
21098 need_lib_prefix=no
21099 need_version=no
21100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21103 dynamic_linker='NetBSD (a.out) ld.so'
21104 else
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21106 soname_spec='${libname}${release}${shared_ext}$major'
21107 dynamic_linker='NetBSD ld.elf_so'
21108 fi
21109 shlibpath_var=LD_LIBRARY_PATH
21110 shlibpath_overrides_runpath=yes
21111 hardcode_into_libs=yes
21112 ;;
21113
21114 newsos6)
21115 version_type=linux
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 shlibpath_var=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath=yes
21119 ;;
21120
21121 *nto* | *qnx*)
21122 version_type=qnx
21123 need_lib_prefix=no
21124 need_version=no
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec='${libname}${release}${shared_ext}$major'
21127 shlibpath_var=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath=no
21129 hardcode_into_libs=yes
21130 dynamic_linker='ldqnx.so'
21131 ;;
21132
21133 openbsd*)
21134 version_type=sunos
21135 sys_lib_dlsearch_path_spec="/usr/lib"
21136 need_lib_prefix=no
21137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21138 case $host_os in
21139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21140 *) need_version=no ;;
21141 esac
21142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21144 shlibpath_var=LD_LIBRARY_PATH
21145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21146 case $host_os in
21147 openbsd2.[89] | openbsd2.[89].*)
21148 shlibpath_overrides_runpath=no
21149 ;;
21150 *)
21151 shlibpath_overrides_runpath=yes
21152 ;;
21153 esac
21154 else
21155 shlibpath_overrides_runpath=yes
21156 fi
21157 ;;
21158
21159 os2*)
21160 libname_spec='$name'
21161 shrext_cmds=".dll"
21162 need_lib_prefix=no
21163 library_names_spec='$libname${shared_ext} $libname.a'
21164 dynamic_linker='OS/2 ld.exe'
21165 shlibpath_var=LIBPATH
21166 ;;
21167
21168 osf3* | osf4* | osf5*)
21169 version_type=osf
21170 need_lib_prefix=no
21171 need_version=no
21172 soname_spec='${libname}${release}${shared_ext}$major'
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 shlibpath_var=LD_LIBRARY_PATH
21175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21177 ;;
21178
21179 rdos*)
21180 dynamic_linker=no
21181 ;;
21182
21183 solaris*)
21184 version_type=linux
21185 need_lib_prefix=no
21186 need_version=no
21187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec='${libname}${release}${shared_ext}$major'
21189 shlibpath_var=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath=yes
21191 hardcode_into_libs=yes
21192 # ldd complains unless libraries are executable
21193 postinstall_cmds='chmod +x $lib'
21194 ;;
21195
21196 sunos4*)
21197 version_type=sunos
21198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21200 shlibpath_var=LD_LIBRARY_PATH
21201 shlibpath_overrides_runpath=yes
21202 if test "$with_gnu_ld" = yes; then
21203 need_lib_prefix=no
21204 fi
21205 need_version=yes
21206 ;;
21207
21208 sysv4 | sysv4.3*)
21209 version_type=linux
21210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21211 soname_spec='${libname}${release}${shared_ext}$major'
21212 shlibpath_var=LD_LIBRARY_PATH
21213 case $host_vendor in
21214 sni)
21215 shlibpath_overrides_runpath=no
21216 need_lib_prefix=no
21217 runpath_var=LD_RUN_PATH
21218 ;;
21219 siemens)
21220 need_lib_prefix=no
21221 ;;
21222 motorola)
21223 need_lib_prefix=no
21224 need_version=no
21225 shlibpath_overrides_runpath=no
21226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21227 ;;
21228 esac
21229 ;;
21230
21231 sysv4*MP*)
21232 if test -d /usr/nec ;then
21233 version_type=linux
21234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21235 soname_spec='$libname${shared_ext}.$major'
21236 shlibpath_var=LD_LIBRARY_PATH
21237 fi
21238 ;;
21239
21240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21241 version_type=freebsd-elf
21242 need_lib_prefix=no
21243 need_version=no
21244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 soname_spec='${libname}${release}${shared_ext}$major'
21246 shlibpath_var=LD_LIBRARY_PATH
21247 shlibpath_overrides_runpath=yes
21248 hardcode_into_libs=yes
21249 if test "$with_gnu_ld" = yes; then
21250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21251 else
21252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21253 case $host_os in
21254 sco3.2v5*)
21255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21256 ;;
21257 esac
21258 fi
21259 sys_lib_dlsearch_path_spec='/usr/lib'
21260 ;;
21261
21262 tpf*)
21263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21264 version_type=linux
21265 need_lib_prefix=no
21266 need_version=no
21267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21268 shlibpath_var=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath=no
21270 hardcode_into_libs=yes
21271 ;;
21272
21273 uts4*)
21274 version_type=linux
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 ;;
21279
21280 *)
21281 dynamic_linker=no
21282 ;;
21283 esac
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21285 $as_echo "$dynamic_linker" >&6; }
21286 test "$dynamic_linker" = no && can_build_shared=no
21287
21288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21289 if test "$GCC" = yes; then
21290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21291 fi
21292
21293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21295 fi
21296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21298 fi
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21339 hardcode_action_CXX=
21340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21341 test -n "$runpath_var_CXX" ||
21342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21343
21344 # We can hardcode non-existent directories.
21345 if test "$hardcode_direct_CXX" != no &&
21346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21347 # have to relink, otherwise we might link with an installed library
21348 # when we should be linking with a yet-to-be-installed one
21349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21350 test "$hardcode_minus_L_CXX" != no; then
21351 # Linking always hardcodes the temporary library directory.
21352 hardcode_action_CXX=relink
21353 else
21354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21355 hardcode_action_CXX=immediate
21356 fi
21357 else
21358 # We cannot hardcode anything, or else we can only hardcode existing
21359 # directories.
21360 hardcode_action_CXX=unsupported
21361 fi
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21363 $as_echo "$hardcode_action_CXX" >&6; }
21364
21365 if test "$hardcode_action_CXX" = relink ||
21366 test "$inherit_rpath_CXX" = yes; then
21367 # Fast installation is not supported
21368 enable_fast_install=no
21369 elif test "$shlibpath_overrides_runpath" = yes ||
21370 test "$enable_shared" = no; then
21371 # Fast installation is not necessary
21372 enable_fast_install=needless
21373 fi
21374
21375
21376
21377
21378
21379
21380
21381 fi # test -n "$compiler"
21382
21383 CC=$lt_save_CC
21384 LDCXX=$LD
21385 LD=$lt_save_LD
21386 GCC=$lt_save_GCC
21387 with_gnu_ld=$lt_save_with_gnu_ld
21388 lt_cv_path_LDCXX=$lt_cv_path_LD
21389 lt_cv_path_LD=$lt_save_path_LD
21390 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21391 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21392 fi # test "$_lt_caught_CXX_error" != yes
21393
21394 ac_ext=c
21395 ac_cpp='$CPP $CPPFLAGS'
21396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415 # Only expand once:
21416
21417
21418
21419
21420
21421 # Identify the assembler which will work hand-in-glove with the newly
21422 # built GCC, so that we can examine its features. This is the assembler
21423 # which will be driven by the driver program.
21424 #
21425 # If build != host, and we aren't building gas in-tree, we identify a
21426 # build->target assembler and hope that it will have the same features
21427 # as the host->target assembler we'll be using.
21428 gcc_cv_gas_major_version=
21429 gcc_cv_gas_minor_version=
21430 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21431
21432 if test "${gcc_cv_as+set}" = set; then :
21433
21434 else
21435
21436 if test -x "$DEFAULT_ASSEMBLER"; then
21437 gcc_cv_as="$DEFAULT_ASSEMBLER"
21438 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21439 && test -f ../gas/Makefile \
21440 && test x$build = x$host; then
21441 gcc_cv_as=../gas/as-new$build_exeext
21442 elif test -x as$build_exeext; then
21443 # Build using assembler in the current directory.
21444 gcc_cv_as=./as$build_exeext
21445 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21446 gcc_cv_as="$AS_FOR_TARGET"
21447 else
21448 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21449 set dummy $AS_FOR_TARGET; ac_word=$2
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21451 $as_echo_n "checking for $ac_word... " >&6; }
21452 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21454 else
21455 case $gcc_cv_as in
21456 [\\/]* | ?:[\\/]*)
21457 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21458 ;;
21459 *)
21460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21461 for as_dir in $PATH
21462 do
21463 IFS=$as_save_IFS
21464 test -z "$as_dir" && as_dir=.
21465 for ac_exec_ext in '' $ac_executable_extensions; do
21466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21467 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21469 break 2
21470 fi
21471 done
21472 done
21473 IFS=$as_save_IFS
21474
21475 ;;
21476 esac
21477 fi
21478 gcc_cv_as=$ac_cv_path_gcc_cv_as
21479 if test -n "$gcc_cv_as"; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21481 $as_echo "$gcc_cv_as" >&6; }
21482 else
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 $as_echo "no" >&6; }
21485 fi
21486
21487
21488 fi
21489 fi
21490
21491 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21492
21493 case "$ORIGINAL_AS_FOR_TARGET" in
21494 ./as | ./as$build_exeext) ;;
21495 *) ac_config_files="$ac_config_files as:exec-tool.in"
21496 ;;
21497 esac
21498
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21500 $as_echo_n "checking what assembler to use... " >&6; }
21501 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21502 # Single tree build which includes gas. We want to prefer it
21503 # over whatever linker top-level may have detected, since
21504 # we'll use what we're building after installation anyway.
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21506 $as_echo "newly built gas" >&6; }
21507 in_tree_gas=yes
21508 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21509 for f in $gcc_cv_as_bfd_srcdir/configure \
21510 $gcc_cv_as_gas_srcdir/configure \
21511 $gcc_cv_as_gas_srcdir/configure.in \
21512 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21513 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21514 if test x$gcc_cv_gas_version != x; then
21515 break
21516 fi
21517 done
21518 case $gcc_cv_gas_version in
21519 VERSION=[0-9]*) ;;
21520 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21521 esac
21522 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21523 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21524 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21525 case $gcc_cv_gas_patch_version in
21526 "") gcc_cv_gas_patch_version="0" ;;
21527 esac
21528 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21529 + $gcc_cv_gas_minor_version \) \* 1000 \
21530 + $gcc_cv_gas_patch_version`
21531
21532 in_tree_gas_is_elf=no
21533 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21534 || (grep 'obj_format = multi' ../gas/Makefile \
21535 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21536 then
21537 in_tree_gas_is_elf=yes
21538 fi
21539 else
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21541 $as_echo "$gcc_cv_as" >&6; }
21542 in_tree_gas=no
21543 fi
21544
21545 default_ld=
21546 # Check whether --enable-ld was given.
21547 if test "${enable_ld+set}" = set; then :
21548 enableval=$enable_ld; case "${enableval}" in
21549 no)
21550 default_ld=ld.gold
21551 ;;
21552 esac
21553 fi
21554
21555
21556 install_gold_as_default=no
21557 # Check whether --enable-gold was given.
21558 if test "${enable_gold+set}" = set; then :
21559 enableval=$enable_gold; case "${enableval}" in
21560 default)
21561 install_gold_as_default=yes
21562 ;;
21563 yes)
21564 if test x${default_ld} != x; then
21565 install_gold_as_default=yes
21566 fi
21567 ;;
21568 no)
21569 ;;
21570 *)
21571 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21572 ;;
21573 esac
21574 fi
21575
21576
21577 # Identify the linker which will work hand-in-glove with the newly
21578 # built GCC, so that we can examine its features. This is the linker
21579 # which will be driven by the driver program.
21580 #
21581 # If build != host, and we aren't building gas in-tree, we identify a
21582 # build->target linker and hope that it will have the same features
21583 # as the host->target linker we'll be using.
21584 gcc_cv_gld_major_version=
21585 gcc_cv_gld_minor_version=
21586 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21587 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21588 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21589
21590 if test "${gcc_cv_ld+set}" = set; then :
21591
21592 else
21593
21594 if test -x "$DEFAULT_LINKER"; then
21595 gcc_cv_ld="$DEFAULT_LINKER"
21596 elif test $install_gold_as_default = yes \
21597 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21598 && test -f ../gold/Makefile \
21599 && test x$build = x$host; then
21600 gcc_cv_ld=../gold/ld-new$build_exeext
21601 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21602 && test -f ../ld/Makefile \
21603 && test x$build = x$host; then
21604 gcc_cv_ld=../ld/ld-new$build_exeext
21605 elif test -x collect-ld$build_exeext; then
21606 # Build using linker in the current directory.
21607 gcc_cv_ld=./collect-ld$build_exeext
21608 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21609 gcc_cv_ld="$LD_FOR_TARGET"
21610 else
21611 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21612 set dummy $LD_FOR_TARGET; ac_word=$2
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21614 $as_echo_n "checking for $ac_word... " >&6; }
21615 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21617 else
21618 case $gcc_cv_ld in
21619 [\\/]* | ?:[\\/]*)
21620 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21621 ;;
21622 *)
21623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21624 for as_dir in $PATH
21625 do
21626 IFS=$as_save_IFS
21627 test -z "$as_dir" && as_dir=.
21628 for ac_exec_ext in '' $ac_executable_extensions; do
21629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21630 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21632 break 2
21633 fi
21634 done
21635 done
21636 IFS=$as_save_IFS
21637
21638 ;;
21639 esac
21640 fi
21641 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21642 if test -n "$gcc_cv_ld"; then
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21644 $as_echo "$gcc_cv_ld" >&6; }
21645 else
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21647 $as_echo "no" >&6; }
21648 fi
21649
21650
21651 fi
21652 fi
21653
21654 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21655 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21656 # if the PLUGIN_LD is set ld-new, just have it as ld
21657 # as that is the installed named.
21658 if test x$PLUGIN_LD_SUFFIX = xld-new \
21659 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21660 PLUGIN_LD_SUFFIX=ld
21661 fi
21662
21663 # Check whether --with-plugin-ld was given.
21664 if test "${with_plugin_ld+set}" = set; then :
21665 withval=$with_plugin_ld; if test x"$withval" != x; then
21666 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21667 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21668 fi
21669 fi
21670
21671
21672
21673 cat >>confdefs.h <<_ACEOF
21674 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21675 _ACEOF
21676
21677
21678 # Check to see if we are using gold instead of ld
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21680 $as_echo_n "checking whether we are using gold... " >&6; }
21681 ld_is_gold=no
21682 if test x$gcc_cv_ld != x; then
21683 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21684 | grep "GNU gold" > /dev/null; then
21685 ld_is_gold=yes
21686 fi
21687 fi
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21689 $as_echo "$ld_is_gold" >&6; }
21690
21691 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21692
21693 case "$ORIGINAL_LD_FOR_TARGET" in
21694 ./collect-ld | ./collect-ld$build_exeext) ;;
21695 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21696 ;;
21697 esac
21698
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21700 $as_echo_n "checking what linker to use... " >&6; }
21701 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21702 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21703 # Single tree build which includes ld. We want to prefer it
21704 # over whatever linker top-level may have detected, since
21705 # we'll use what we're building after installation anyway.
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21707 $as_echo "newly built ld" >&6; }
21708 in_tree_ld=yes
21709 in_tree_ld_is_elf=no
21710 if (grep 'EMUL = .*elf' ../ld/Makefile \
21711 || grep 'EMUL = .*linux' ../ld/Makefile \
21712 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21713 in_tree_ld_is_elf=yes
21714 elif test "$ld_is_gold" = yes; then
21715 in_tree_ld_is_elf=yes
21716 fi
21717 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21718 do
21719 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21720 if test x$gcc_cv_gld_version != x; then
21721 break
21722 fi
21723 done
21724 case $gcc_cv_gld_version in
21725 VERSION=[0-9]*) ;;
21726 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21727 esac
21728 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21729 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21730 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21731 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21732 else
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21734 $as_echo "$gcc_cv_ld" >&6; }
21735 in_tree_ld=no
21736 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21737 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21738 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21739 fi
21740
21741
21742
21743
21744 # Figure out what nm we will be using.
21745 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21746 if test "${gcc_cv_nm+set}" = set; then :
21747
21748 else
21749
21750 if test -f $gcc_cv_binutils_srcdir/configure.in \
21751 && test -f ../binutils/Makefile \
21752 && test x$build = x$host; then
21753 gcc_cv_nm=../binutils/nm-new$build_exeext
21754 elif test -x nm$build_exeext; then
21755 gcc_cv_nm=./nm$build_exeext
21756 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21757 gcc_cv_nm="$NM_FOR_TARGET"
21758 else
21759 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21760 set dummy $NM_FOR_TARGET; ac_word=$2
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21762 $as_echo_n "checking for $ac_word... " >&6; }
21763 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 case $gcc_cv_nm in
21767 [\\/]* | ?:[\\/]*)
21768 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21769 ;;
21770 *)
21771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21772 for as_dir in $PATH
21773 do
21774 IFS=$as_save_IFS
21775 test -z "$as_dir" && as_dir=.
21776 for ac_exec_ext in '' $ac_executable_extensions; do
21777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21778 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21780 break 2
21781 fi
21782 done
21783 done
21784 IFS=$as_save_IFS
21785
21786 ;;
21787 esac
21788 fi
21789 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21790 if test -n "$gcc_cv_nm"; then
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21792 $as_echo "$gcc_cv_nm" >&6; }
21793 else
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21796 fi
21797
21798
21799 fi
21800 fi
21801
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21803 $as_echo_n "checking what nm to use... " >&6; }
21804 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21805 # Single tree build which includes binutils.
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21807 $as_echo "newly built nm" >&6; }
21808 in_tree_nm=yes
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21811 $as_echo "$gcc_cv_nm" >&6; }
21812 in_tree_nm=no
21813 fi
21814
21815 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21816
21817 case "$ORIGINAL_NM_FOR_TARGET" in
21818 ./nm | ./nm$build_exeext) ;;
21819 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21820 ;;
21821 esac
21822
21823
21824 # Figure out what objdump we will be using.
21825 if test "${gcc_cv_objdump+set}" = set; then :
21826
21827 else
21828
21829 if test -f $gcc_cv_binutils_srcdir/configure.in \
21830 && test -f ../binutils/Makefile \
21831 && test x$build = x$host; then
21832 # Single tree build which includes binutils.
21833 gcc_cv_objdump=../binutils/objdump$build_exeext
21834 elif test -x objdump$build_exeext; then
21835 gcc_cv_objdump=./objdump$build_exeext
21836 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21837 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21838 else
21839 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21840 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21842 $as_echo_n "checking for $ac_word... " >&6; }
21843 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21845 else
21846 case $gcc_cv_objdump in
21847 [\\/]* | ?:[\\/]*)
21848 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21849 ;;
21850 *)
21851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21852 for as_dir in $PATH
21853 do
21854 IFS=$as_save_IFS
21855 test -z "$as_dir" && as_dir=.
21856 for ac_exec_ext in '' $ac_executable_extensions; do
21857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21858 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21860 break 2
21861 fi
21862 done
21863 done
21864 IFS=$as_save_IFS
21865
21866 ;;
21867 esac
21868 fi
21869 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21870 if test -n "$gcc_cv_objdump"; then
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21872 $as_echo "$gcc_cv_objdump" >&6; }
21873 else
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 $as_echo "no" >&6; }
21876 fi
21877
21878
21879 fi
21880 fi
21881
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21883 $as_echo_n "checking what objdump to use... " >&6; }
21884 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21885 # Single tree build which includes binutils.
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21887 $as_echo "newly built objdump" >&6; }
21888 elif test x$gcc_cv_objdump = x; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21890 $as_echo "not found" >&6; }
21891 else
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21893 $as_echo "$gcc_cv_objdump" >&6; }
21894 fi
21895
21896 # Figure out what readelf we will be using.
21897 if test "${gcc_cv_readelf+set}" = set; then :
21898
21899 else
21900
21901 if test -f $gcc_cv_binutils_srcdir/configure.in \
21902 && test -f ../binutils/Makefile \
21903 && test x$build = x$host; then
21904 # Single tree build which includes binutils.
21905 gcc_cv_readelf=../binutils/readelf$build_exeext
21906 elif test -x readelf$build_exeext; then
21907 gcc_cv_readelf=./readelf$build_exeext
21908 else
21909 # Extract the first word of "readelf", so it can be a program name with args.
21910 set dummy readelf; ac_word=$2
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21912 $as_echo_n "checking for $ac_word... " >&6; }
21913 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21915 else
21916 case $gcc_cv_readelf in
21917 [\\/]* | ?:[\\/]*)
21918 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21919 ;;
21920 *)
21921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21922 for as_dir in $PATH
21923 do
21924 IFS=$as_save_IFS
21925 test -z "$as_dir" && as_dir=.
21926 for ac_exec_ext in '' $ac_executable_extensions; do
21927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21928 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21930 break 2
21931 fi
21932 done
21933 done
21934 IFS=$as_save_IFS
21935
21936 ;;
21937 esac
21938 fi
21939 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21940 if test -n "$gcc_cv_readelf"; then
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21942 $as_echo "$gcc_cv_readelf" >&6; }
21943 else
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945 $as_echo "no" >&6; }
21946 fi
21947
21948
21949 fi
21950 fi
21951
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21953 $as_echo_n "checking what readelf to use... " >&6; }
21954 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21955 # Single tree build which includes binutils.
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21957 $as_echo "newly built readelf" >&6; }
21958 elif test x$gcc_cv_readelf = x; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21960 $as_echo "not found" >&6; }
21961 else
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21963 $as_echo "$gcc_cv_readelf" >&6; }
21964 fi
21965
21966 # Figure out what assembler alignment features are present.
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21968 $as_echo_n "checking assembler flags... " >&6; }
21969 if test "${gcc_cv_as_flags+set}" = set; then :
21970 $as_echo_n "(cached) " >&6
21971 else
21972 case "$target" in
21973 i[34567]86-*-linux*)
21974 gcc_cv_as_flags=--32
21975 ;;
21976 x86_64-*-linux-gnux32)
21977 gcc_cv_as_flags=--x32
21978 ;;
21979 x86_64-*-linux*)
21980 gcc_cv_as_flags=--64
21981 ;;
21982 powerpc*-*-darwin*)
21983 gcc_cv_as_flags="-arch ppc"
21984 ;;
21985 *)
21986 gcc_cv_as_flags=" "
21987 ;;
21988 esac
21989 fi
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21991 $as_echo "$gcc_cv_as_flags" >&6; }
21992
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21994 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21995 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 gcc_cv_as_balign_and_p2align=no
21999 if test $in_tree_gas = yes; then
22000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22001 then gcc_cv_as_balign_and_p2align=yes
22002 fi
22003 elif test x$gcc_cv_as != x; then
22004 $as_echo '.balign 4
22005 .p2align 2' > conftest.s
22006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22011 test $ac_status = 0; }; }
22012 then
22013 gcc_cv_as_balign_and_p2align=yes
22014 else
22015 echo "configure: failed program was" >&5
22016 cat conftest.s >&5
22017 fi
22018 rm -f conftest.o conftest.s
22019 fi
22020 fi
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22022 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22023 if test $gcc_cv_as_balign_and_p2align = yes; then
22024
22025 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22026
22027 fi
22028
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22030 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22031 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 gcc_cv_as_max_skip_p2align=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22037 then gcc_cv_as_max_skip_p2align=yes
22038 fi
22039 elif test x$gcc_cv_as != x; then
22040 $as_echo '.p2align 4,,7' > conftest.s
22041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22046 test $ac_status = 0; }; }
22047 then
22048 gcc_cv_as_max_skip_p2align=yes
22049 else
22050 echo "configure: failed program was" >&5
22051 cat conftest.s >&5
22052 fi
22053 rm -f conftest.o conftest.s
22054 fi
22055 fi
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22057 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22058 if test $gcc_cv_as_max_skip_p2align = yes; then
22059
22060 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22061
22062 fi
22063
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22065 $as_echo_n "checking assembler for .literal16... " >&6; }
22066 if test "${gcc_cv_as_literal16+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 gcc_cv_as_literal16=no
22070 if test $in_tree_gas = yes; then
22071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22072 then gcc_cv_as_literal16=yes
22073 fi
22074 elif test x$gcc_cv_as != x; then
22075 $as_echo '.literal16' > conftest.s
22076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22081 test $ac_status = 0; }; }
22082 then
22083 gcc_cv_as_literal16=yes
22084 else
22085 echo "configure: failed program was" >&5
22086 cat conftest.s >&5
22087 fi
22088 rm -f conftest.o conftest.s
22089 fi
22090 fi
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22092 $as_echo "$gcc_cv_as_literal16" >&6; }
22093 if test $gcc_cv_as_literal16 = yes; then
22094
22095 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22096
22097 fi
22098
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22100 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22101 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22102 $as_echo_n "(cached) " >&6
22103 else
22104 gcc_cv_as_subsection_m1=no
22105 if test $in_tree_gas = yes; then
22106 if test $in_tree_gas_is_elf = yes \
22107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22108 then gcc_cv_as_subsection_m1=yes
22109 fi
22110 elif test x$gcc_cv_as != x; then
22111 $as_echo 'conftest_label1: .word 0
22112 .subsection -1
22113 conftest_label2: .word 0
22114 .previous' > conftest.s
22115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; }
22121 then
22122 if test x$gcc_cv_nm != x; then
22123 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22124 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22125 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22126 then :
22127 else gcc_cv_as_subsection_m1=yes
22128 fi
22129 rm -f conftest.nm1 conftest.nm2
22130 fi
22131 else
22132 echo "configure: failed program was" >&5
22133 cat conftest.s >&5
22134 fi
22135 rm -f conftest.o conftest.s
22136 fi
22137 fi
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22139 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22140 if test $gcc_cv_as_subsection_m1 = yes; then
22141
22142 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22143
22144 fi
22145
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22147 $as_echo_n "checking assembler for .weak... " >&6; }
22148 if test "${gcc_cv_as_weak+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22150 else
22151 gcc_cv_as_weak=no
22152 if test $in_tree_gas = yes; then
22153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22154 then gcc_cv_as_weak=yes
22155 fi
22156 elif test x$gcc_cv_as != x; then
22157 $as_echo ' .weak foobar' > conftest.s
22158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22163 test $ac_status = 0; }; }
22164 then
22165 gcc_cv_as_weak=yes
22166 else
22167 echo "configure: failed program was" >&5
22168 cat conftest.s >&5
22169 fi
22170 rm -f conftest.o conftest.s
22171 fi
22172 fi
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22174 $as_echo "$gcc_cv_as_weak" >&6; }
22175 if test $gcc_cv_as_weak = yes; then
22176
22177 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22178
22179 fi
22180
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22182 $as_echo_n "checking assembler for .weakref... " >&6; }
22183 if test "${gcc_cv_as_weakref+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22185 else
22186 gcc_cv_as_weakref=no
22187 if test $in_tree_gas = yes; then
22188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22189 then gcc_cv_as_weakref=yes
22190 fi
22191 elif test x$gcc_cv_as != x; then
22192 $as_echo ' .weakref foobar, barfnot' > conftest.s
22193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22195 (eval $ac_try) 2>&5
22196 ac_status=$?
22197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22198 test $ac_status = 0; }; }
22199 then
22200 gcc_cv_as_weakref=yes
22201 else
22202 echo "configure: failed program was" >&5
22203 cat conftest.s >&5
22204 fi
22205 rm -f conftest.o conftest.s
22206 fi
22207 fi
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22209 $as_echo "$gcc_cv_as_weakref" >&6; }
22210 if test $gcc_cv_as_weakref = yes; then
22211
22212 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22213
22214 fi
22215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22217 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22218 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22219 $as_echo_n "(cached) " >&6
22220 else
22221 gcc_cv_as_nsubspa_comdat=no
22222 if test $in_tree_gas = yes; then
22223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22224 then gcc_cv_as_nsubspa_comdat=yes
22225 fi
22226 elif test x$gcc_cv_as != x; then
22227 $as_echo ' .SPACE $TEXT$
22228 .NSUBSPA $CODE$,COMDAT' > conftest.s
22229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22235 then
22236 gcc_cv_as_nsubspa_comdat=yes
22237 else
22238 echo "configure: failed program was" >&5
22239 cat conftest.s >&5
22240 fi
22241 rm -f conftest.o conftest.s
22242 fi
22243 fi
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22245 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22246 if test $gcc_cv_as_nsubspa_comdat = yes; then
22247
22248 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22249
22250 fi
22251
22252 # .hidden needs to be supported in both the assembler and the linker,
22253 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22254 # This is irritatingly difficult to feature test for; we have to check the
22255 # date string after the version number. If we've got an in-tree
22256 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22257 # to be safe.
22258 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22260 $as_echo_n "checking assembler for .hidden... " >&6; }
22261 if test "${gcc_cv_as_hidden+set}" = set; then :
22262 $as_echo_n "(cached) " >&6
22263 else
22264 gcc_cv_as_hidden=no
22265 if test $in_tree_gas = yes; then
22266 if test $in_tree_gas_is_elf = yes \
22267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22268 then gcc_cv_as_hidden=yes
22269 fi
22270 elif test x$gcc_cv_as != x; then
22271 $as_echo ' .hidden foobar
22272 foobar:' > conftest.s
22273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22275 (eval $ac_try) 2>&5
22276 ac_status=$?
22277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22278 test $ac_status = 0; }; }
22279 then
22280 gcc_cv_as_hidden=yes
22281 else
22282 echo "configure: failed program was" >&5
22283 cat conftest.s >&5
22284 fi
22285 rm -f conftest.o conftest.s
22286 fi
22287 fi
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22289 $as_echo "$gcc_cv_as_hidden" >&6; }
22290
22291 case "${target}" in
22292 *-*-darwin*)
22293 # Darwin as has some visibility support, though with a different syntax.
22294 gcc_cv_as_hidden=yes
22295 ;;
22296 esac
22297
22298 # gnu_indirect_function type is an extension proposed at
22299 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22300 # selection of function implementation
22301 # Check whether --enable-gnu-indirect-function was given.
22302 if test "${enable_gnu_indirect_function+set}" = set; then :
22303 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22304 yes | no) ;;
22305 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22306 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22307 esac
22308 else
22309 enable_gnu_indirect_function="$default_gnu_indirect_function"
22310 fi
22311
22312
22313 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22314
22315 cat >>confdefs.h <<_ACEOF
22316 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22317 _ACEOF
22318
22319
22320
22321 if test $in_tree_ld != yes ; then
22322 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22323 if echo "$ld_ver" | grep GNU > /dev/null; then
22324 if test x"$ld_is_gold" = xyes; then
22325 # GNU gold --version looks like this:
22326 #
22327 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22328 #
22329 # We extract the binutils version which is more familiar and specific
22330 # than the gold version.
22331 ld_vers=`echo $ld_ver | sed -n \
22332 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22333 else
22334 # GNU ld --version looks like this:
22335 #
22336 # GNU ld (GNU Binutils) 2.21.51.20110225
22337 ld_vers=`echo $ld_ver | sed -n \
22338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22339 fi
22340 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22341 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22342 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22343 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22344 else
22345 case "${target}" in
22346 *-*-solaris2*)
22347 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22348 # format.
22349 #
22350 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22351 # /usr/ccs/bin/ld has been configured.
22352 ld_ver=`$gcc_cv_ld -V 2>&1`
22353 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22354 ld_vers=`echo $ld_ver | sed -n \
22355 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22356 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22357 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22358 fi
22359 ;;
22360 esac
22361 fi
22362 fi
22363
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22365 $as_echo_n "checking linker for .hidden support... " >&6; }
22366 if test "${gcc_cv_ld_hidden+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 if test $in_tree_ld = yes ; then
22370 gcc_cv_ld_hidden=no
22371 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
22372 && test $in_tree_ld_is_elf = yes; then
22373 gcc_cv_ld_hidden=yes
22374 fi
22375 else
22376 gcc_cv_ld_hidden=yes
22377 if test x"$ld_is_gold" = xyes; then
22378 :
22379 elif echo "$ld_ver" | grep GNU > /dev/null; then
22380 case "${target}" in
22381 mmix-knuth-mmixware)
22382 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22383 gcc_cv_ld_hidden=no
22384 ;;
22385 esac
22386 if test 0"$ld_date" -lt 20020404; then
22387 if test -n "$ld_date"; then
22388 # If there was date string, but was earlier than 2002-04-04, fail
22389 gcc_cv_ld_hidden=no
22390 elif test -z "$ld_vers"; then
22391 # If there was no date string nor ld version number, something is wrong
22392 gcc_cv_ld_hidden=no
22393 else
22394 test -z "$ld_vers_patch" && ld_vers_patch=0
22395 if test "$ld_vers_major" -lt 2; then
22396 gcc_cv_ld_hidden=no
22397 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22398 gcc_cv_ld_hidden="no"
22399 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22400 gcc_cv_ld_hidden=no
22401 fi
22402 fi
22403 fi
22404 else
22405 case "${target}" in
22406 *-*-darwin*)
22407 # Darwin ld has some visibility support.
22408 gcc_cv_ld_hidden=yes
22409 ;;
22410 hppa64*-*-hpux* | ia64*-*-hpux*)
22411 gcc_cv_ld_hidden=yes
22412 ;;
22413 *-*-solaris2.1[0-9]*)
22414 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22415 # .symbolic was only added in Solaris 9 12/02.
22416 gcc_cv_ld_hidden=yes
22417 ;;
22418 *)
22419 gcc_cv_ld_hidden=no
22420 ;;
22421 esac
22422 fi
22423 fi
22424 fi
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22426 $as_echo "$gcc_cv_ld_hidden" >&6; }
22427 libgcc_visibility=no
22428
22429
22430 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22431 libgcc_visibility=yes
22432
22433 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22434
22435 fi
22436
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22438 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22439 gcc_cv_ld_ro_rw_mix=unknown
22440 if test $in_tree_ld = yes ; then
22441 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22442 && test $in_tree_ld_is_elf = yes; then
22443 gcc_cv_ld_ro_rw_mix=read-write
22444 fi
22445 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22446 echo '.section myfoosect, "a"' > conftest1.s
22447 echo '.section myfoosect, "aw"' > conftest2.s
22448 echo '.byte 1' >> conftest2.s
22449 echo '.section myfoosect, "a"' > conftest3.s
22450 echo '.byte 0' >> conftest3.s
22451 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22452 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22453 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22454 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22455 conftest2.o conftest3.o > /dev/null 2>&1; then
22456 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22457 | sed -e '/myfoosect/!d' -e N`
22458 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22459 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22460 gcc_cv_ld_ro_rw_mix=read-only
22461 else
22462 gcc_cv_ld_ro_rw_mix=read-write
22463 fi
22464 fi
22465 fi
22466 rm -f conftest.* conftest[123].*
22467 fi
22468 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22469
22470 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22471
22472 fi
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22474 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22475
22476 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22477 case "${target}" in
22478 *-*-solaris2*)
22479 #
22480 # Solaris 2 ld -V output looks like this for a regular version:
22481 #
22482 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22483 #
22484 # but test versions add stuff at the end:
22485 #
22486 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22487 #
22488 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22489 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22490 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22491 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22492 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22493 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22494 fi
22495 ;;
22496 esac
22497 fi
22498
22499 # Check whether --enable-initfini-array was given.
22500 if test "${enable_initfini_array+set}" = set; then :
22501 enableval=$enable_initfini_array;
22502 else
22503
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22505 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22506 if test "${gcc_cv_initfini_array+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22508 else
22509 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22510 case "${target}" in
22511 ia64-*)
22512 if test "$cross_compiling" = yes; then :
22513 gcc_cv_initfini_array=no
22514 else
22515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22516 /* end confdefs.h. */
22517
22518 #ifndef __ELF__
22519 #error Not an ELF OS
22520 #endif
22521 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22522 if it can be used. */
22523 static int x = -1;
22524 int main (void) { return x; }
22525 int foo (void) { x = 0; }
22526 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22527
22528 _ACEOF
22529 if ac_fn_c_try_run "$LINENO"; then :
22530 gcc_cv_initfini_array=yes
22531 else
22532 gcc_cv_initfini_array=no
22533 fi
22534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22535 conftest.$ac_objext conftest.beam conftest.$ac_ext
22536 fi
22537 ;;
22538 *)
22539 gcc_cv_initfini_array=no
22540 if test $in_tree_ld = yes ; then
22541 if test "$gcc_cv_gld_major_version" -eq 2 \
22542 -a "$gcc_cv_gld_minor_version" -ge 22 \
22543 -o "$gcc_cv_gld_major_version" -gt 2 \
22544 && test $in_tree_ld_is_elf = yes; then
22545 gcc_cv_initfini_array=yes
22546 fi
22547 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22548 cat > conftest.s <<\EOF
22549 .section .dtors,"a",%progbits
22550 .balign 4
22551 .byte 'A', 'A', 'A', 'A'
22552 .section .ctors,"a",%progbits
22553 .balign 4
22554 .byte 'B', 'B', 'B', 'B'
22555 .section .fini_array.65530,"a",%progbits
22556 .balign 4
22557 .byte 'C', 'C', 'C', 'C'
22558 .section .init_array.65530,"a",%progbits
22559 .balign 4
22560 .byte 'D', 'D', 'D', 'D'
22561 .section .dtors.64528,"a",%progbits
22562 .balign 4
22563 .byte 'E', 'E', 'E', 'E'
22564 .section .ctors.64528,"a",%progbits
22565 .balign 4
22566 .byte 'F', 'F', 'F', 'F'
22567 .section .fini_array.01005,"a",%progbits
22568 .balign 4
22569 .byte 'G', 'G', 'G', 'G'
22570 .section .init_array.01005,"a",%progbits
22571 .balign 4
22572 .byte 'H', 'H', 'H', 'H'
22573 .text
22574 .globl _start
22575 _start:
22576 EOF
22577 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22578 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22579 && $gcc_cv_objdump -s -j .init_array conftest \
22580 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22581 && $gcc_cv_objdump -s -j .fini_array conftest \
22582 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22583 gcc_cv_initfini_array=yes
22584 fi
22585 rm -f conftest conftest.*
22586 fi
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589
22590 #ifndef __ELF__
22591 # error Not an ELF OS
22592 #endif
22593 #include <stdlib.h>
22594 #if defined __GLIBC_PREREQ
22595 # if __GLIBC_PREREQ (2, 4)
22596 # else
22597 # error GLIBC 2.4 required
22598 # endif
22599 #else
22600 # if defined __sun__ && defined __svr4__
22601 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22602 # else
22603 # error The C library not known to support .init_array/.fini_array
22604 # endif
22605 #endif
22606
22607 _ACEOF
22608 if ac_fn_c_try_cpp "$LINENO"; then :
22609
22610 else
22611 gcc_cv_initfini_array=no
22612 fi
22613 rm -f conftest.err conftest.$ac_ext;;
22614 esac
22615 else
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22617 $as_echo_n "checking cross compile... guessing... " >&6; }
22618 gcc_cv_initfini_array=no
22619 fi
22620 fi
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22622 $as_echo "$gcc_cv_initfini_array" >&6; }
22623 enable_initfini_array=$gcc_cv_initfini_array
22624
22625 fi
22626
22627 if test $enable_initfini_array = yes; then
22628
22629 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22630
22631 fi
22632
22633 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22635 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22636 if test "${gcc_cv_as_leb128+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22638 else
22639 gcc_cv_as_leb128=no
22640 if test $in_tree_gas = yes; then
22641 if test $in_tree_gas_is_elf = yes \
22642 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22643 then gcc_cv_as_leb128=yes
22644 fi
22645 elif test x$gcc_cv_as != x; then
22646 $as_echo ' .data
22647 .uleb128 L2 - L1
22648 L1:
22649 .uleb128 1280
22650 .sleb128 -1010
22651 L2:' > conftest.s
22652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; }; }
22658 then
22659 # GAS versions before 2.11 do not support uleb128,
22660 # despite appearing to.
22661 # ??? There exists an elf-specific test that will crash
22662 # the assembler. Perhaps it's better to figure out whether
22663 # arbitrary sections are supported and try the test.
22664 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22665 if echo "$as_ver" | grep GNU > /dev/null; then
22666 as_vers=`echo $as_ver | sed -n \
22667 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22668 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22669 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22670 if test $as_major -eq 2 && test $as_minor -lt 11
22671 then :
22672 else gcc_cv_as_leb128=yes
22673 fi
22674 fi
22675 else
22676 echo "configure: failed program was" >&5
22677 cat conftest.s >&5
22678 fi
22679 rm -f conftest.o conftest.s
22680 fi
22681 fi
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22683 $as_echo "$gcc_cv_as_leb128" >&6; }
22684 if test $gcc_cv_as_leb128 = yes; then
22685
22686 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22687
22688 fi
22689
22690 # Check if we have assembler support for unwind directives.
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22692 $as_echo_n "checking assembler for cfi directives... " >&6; }
22693 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22695 else
22696 gcc_cv_as_cfi_directive=no
22697 if test x$gcc_cv_as != x; then
22698 $as_echo ' .text
22699 .cfi_startproc
22700 .cfi_offset 0, 0
22701 .cfi_same_value 1
22702 .cfi_def_cfa 1, 2
22703 .cfi_escape 1, 2, 3, 4, 5
22704 .cfi_endproc' > conftest.s
22705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22710 test $ac_status = 0; }; }
22711 then
22712 case "$target" in
22713 *-*-solaris*)
22714 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22715 # read-only and read-write sections, we need to make sure that the
22716 # assembler used emits read-write .eh_frame sections.
22717 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22718 if test "x$gcc_cv_objdump" != x; then
22719 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22720 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22721 gcc_cv_as_cfi_directive=no
22722 else
22723 case "$target" in
22724 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22725 # On Solaris/x86, make sure that GCC and assembler agree on using
22726 # read-only .eh_frame sections for 64-bit.
22727 if test x$gas = xyes; then
22728 as_ix86_64_opt="--64"
22729 else
22730 as_ix86_64_opt="-xarch=amd64"
22731 fi
22732 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22733 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22734 sed -e /.eh_frame/!d -e N | \
22735 grep READONLY > /dev/null; then
22736 gcc_cv_as_cfi_directive=yes
22737 else
22738 gcc_cv_as_cfi_directive=no
22739 fi
22740 ;;
22741 *)
22742 gcc_cv_as_cfi_directive=yes
22743 ;;
22744 esac
22745 fi
22746 else
22747 # no objdump, err on the side of caution
22748 gcc_cv_as_cfi_directive=no
22749 fi
22750 else
22751 gcc_cv_as_cfi_directive=yes
22752 fi
22753 ;;
22754 *-*-*)
22755 gcc_cv_as_cfi_directive=yes
22756 ;;
22757 esac
22758 else
22759 echo "configure: failed program was" >&5
22760 cat conftest.s >&5
22761 fi
22762 rm -f conftest.o conftest.s
22763 fi
22764 fi
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22766 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22767
22768 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22770 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22771 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22773 else
22774 gcc_cv_as_cfi_advance_working=no
22775 if test x$gcc_cv_as != x; then
22776 $as_echo ' .text
22777 .cfi_startproc
22778 .cfi_adjust_cfa_offset 64
22779 .skip 75040, 0
22780 .cfi_adjust_cfa_offset 128
22781 .cfi_endproc' > conftest.s
22782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22788 then
22789
22790 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22791 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22792 gcc_cv_as_cfi_advance_working=yes
22793 fi
22794
22795 else
22796 echo "configure: failed program was" >&5
22797 cat conftest.s >&5
22798 fi
22799 rm -f conftest.o conftest.s
22800 fi
22801 fi
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22803 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22804
22805 else
22806 # no objdump, err on the side of caution
22807 gcc_cv_as_cfi_advance_working=no
22808 fi
22809
22810
22811 cat >>confdefs.h <<_ACEOF
22812 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22813 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22814 _ACEOF
22815
22816
22817
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22819 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22820 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22822 else
22823 gcc_cv_as_cfi_personality_directive=no
22824 if test x$gcc_cv_as != x; then
22825 $as_echo ' .text
22826 .cfi_startproc
22827 .cfi_personality 0, symbol
22828 .cfi_endproc' > conftest.s
22829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22835 then
22836 gcc_cv_as_cfi_personality_directive=yes
22837 else
22838 echo "configure: failed program was" >&5
22839 cat conftest.s >&5
22840 fi
22841 rm -f conftest.o conftest.s
22842 fi
22843 fi
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22845 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22846
22847
22848 cat >>confdefs.h <<_ACEOF
22849 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22850 then echo 1; else echo 0; fi`
22851 _ACEOF
22852
22853
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22855 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 gcc_cv_as_cfi_sections_directive=no
22860 if test x$gcc_cv_as != x; then
22861 $as_echo ' .text
22862 .cfi_sections .debug_frame, .eh_frame
22863 .cfi_startproc
22864 .cfi_endproc' > conftest.s
22865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22871 then
22872 case $target_os in
22873 win32 | pe | cygwin* | mingw32* | uwin*)
22874 # Need to check that we generated the correct relocation for the
22875 # .debug_frame section. This was fixed for binutils 2.21.
22876 gcc_cv_as_cfi_sections_directive=no
22877 if test "x$gcc_cv_objdump" != x; then
22878 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22879 grep secrel > /dev/null; then
22880 gcc_cv_as_cfi_sections_directive=yes
22881 fi
22882 fi
22883 ;;
22884 *)
22885 gcc_cv_as_cfi_sections_directive=yes
22886 ;;
22887 esac
22888 else
22889 echo "configure: failed program was" >&5
22890 cat conftest.s >&5
22891 fi
22892 rm -f conftest.o conftest.s
22893 fi
22894 fi
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22896 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22897
22898
22899
22900 cat >>confdefs.h <<_ACEOF
22901 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22902 then echo 1; else echo 0; fi`
22903 _ACEOF
22904
22905
22906 # GAS versions up to and including 2.11.0 may mis-optimize
22907 # .eh_frame data.
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22909 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22910 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_eh_frame=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22917 then gcc_cv_as_eh_frame=yes
22918 fi
22919 elif test x$gcc_cv_as != x; then
22920 $as_echo ' .text
22921 .LFB1:
22922 .4byte 0
22923 .L1:
22924 .4byte 0
22925 .LFE1:
22926 .section .eh_frame,"aw",@progbits
22927 __FRAME_BEGIN__:
22928 .4byte .LECIE1-.LSCIE1
22929 .LSCIE1:
22930 .4byte 0x0
22931 .byte 0x1
22932 .ascii "z\0"
22933 .byte 0x1
22934 .byte 0x78
22935 .byte 0x1a
22936 .byte 0x0
22937 .byte 0x4
22938 .4byte 1
22939 .p2align 1
22940 .LECIE1:
22941 .LSFDE1:
22942 .4byte .LEFDE1-.LASFDE1
22943 .LASFDE1:
22944 .4byte .LASFDE1-__FRAME_BEGIN__
22945 .4byte .LFB1
22946 .4byte .LFE1-.LFB1
22947 .byte 0x4
22948 .4byte .LFE1-.LFB1
22949 .byte 0x4
22950 .4byte .L1-.LFB1
22951 .LEFDE1:' > conftest.s
22952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22955 ac_status=$?
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22958 then
22959 cat > conftest.lit <<EOF
22960 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22961 0010 01000000 12000000 18000000 00000000 ................
22962 0020 08000000 04080000 0044 .........D
22963 EOF
22964 cat > conftest.big <<EOF
22965 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22966 0010 00000001 00000012 00000018 00000000 ................
22967 0020 00000008 04000000 0844 .........D
22968 EOF
22969 # If the assembler didn't choke, and we can objdump,
22970 # and we got the correct data, then succeed.
22971 # The text in the here-document typically retains its unix-style line
22972 # endings, while the output of objdump will use host line endings.
22973 # Therefore, use diff -b for the comparisons.
22974 if test x$gcc_cv_objdump != x \
22975 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22976 | tail -3 > conftest.got \
22977 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22978 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22979 then
22980 gcc_cv_as_eh_frame=yes
22981 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }; then
22987 gcc_cv_as_eh_frame=buggy
22988 else
22989 # Uh oh, what do we do now?
22990 gcc_cv_as_eh_frame=no
22991 fi
22992 else
22993 echo "configure: failed program was" >&5
22994 cat conftest.s >&5
22995 fi
22996 rm -f conftest.o conftest.s
22997 fi
22998 fi
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23000 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23001
23002
23003 if test $gcc_cv_as_eh_frame = buggy; then
23004
23005 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23006
23007 fi
23008
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23010 $as_echo_n "checking assembler for section merging support... " >&6; }
23011 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23013 else
23014 gcc_cv_as_shf_merge=no
23015 if test $in_tree_gas = yes; then
23016 if test $in_tree_gas_is_elf = yes \
23017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23018 then gcc_cv_as_shf_merge=yes
23019 fi
23020 elif test x$gcc_cv_as != x; then
23021 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23028 then
23029 gcc_cv_as_shf_merge=yes
23030 else
23031 echo "configure: failed program was" >&5
23032 cat conftest.s >&5
23033 fi
23034 rm -f conftest.o conftest.s
23035 fi
23036 fi
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23038 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23039
23040 if test $gcc_cv_as_shf_merge = no; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23042 $as_echo_n "checking assembler for section merging support... " >&6; }
23043 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23045 else
23046 gcc_cv_as_shf_merge=no
23047 if test $in_tree_gas = yes; then
23048 if test $in_tree_gas_is_elf = yes \
23049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23050 then gcc_cv_as_shf_merge=yes
23051 fi
23052 elif test x$gcc_cv_as != x; then
23053 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23059 test $ac_status = 0; }; }
23060 then
23061 gcc_cv_as_shf_merge=yes
23062 else
23063 echo "configure: failed program was" >&5
23064 cat conftest.s >&5
23065 fi
23066 rm -f conftest.o conftest.s
23067 fi
23068 fi
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23070 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23071
23072 fi
23073
23074 cat >>confdefs.h <<_ACEOF
23075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23076 _ACEOF
23077
23078
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23080 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23081 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23083 else
23084 gcc_cv_as_comdat_group=no
23085 if test $in_tree_gas = yes; then
23086 if test $in_tree_gas_is_elf = yes \
23087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23088 then gcc_cv_as_comdat_group=yes
23089 fi
23090 elif test x$gcc_cv_as != x; then
23091 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23098 then
23099 gcc_cv_as_comdat_group=yes
23100 else
23101 echo "configure: failed program was" >&5
23102 cat conftest.s >&5
23103 fi
23104 rm -f conftest.o conftest.s
23105 fi
23106 fi
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23108 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23109
23110 if test $gcc_cv_as_comdat_group = yes; then
23111 gcc_cv_as_comdat_group_percent=no
23112 gcc_cv_as_comdat_group_group=no
23113 else
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23115 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23116 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23118 else
23119 gcc_cv_as_comdat_group_percent=no
23120 if test $in_tree_gas = yes; then
23121 if test $in_tree_gas_is_elf = yes \
23122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23123 then gcc_cv_as_comdat_group_percent=yes
23124 fi
23125 elif test x$gcc_cv_as != x; then
23126 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }; }
23133 then
23134 gcc_cv_as_comdat_group_percent=yes
23135 else
23136 echo "configure: failed program was" >&5
23137 cat conftest.s >&5
23138 fi
23139 rm -f conftest.o conftest.s
23140 fi
23141 fi
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23143 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23144
23145 if test $gcc_cv_as_comdat_group_percent = yes; then
23146 gcc_cv_as_comdat_group_group=no
23147 else
23148 case "${target}" in
23149 # Sun as uses a completely different syntax.
23150 *-*-solaris2*)
23151 case "${target}" in
23152 sparc*-*-solaris2*)
23153 conftest_s='
23154 .group foo,".text%foo",#comdat
23155 .section ".text%foo", #alloc,#execinstr,#progbits
23156 .globl foo
23157 foo:
23158 '
23159 ;;
23160 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23161 conftest_s='
23162 .group foo,.text%foo,#comdat
23163 .section .text%foo, "ax", @progbits
23164 .globl foo
23165 foo:
23166 '
23167 ;;
23168 esac
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23170 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23171 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
23173 else
23174 gcc_cv_as_comdat_group_group=no
23175 if test x$gcc_cv_as != x; then
23176 $as_echo "$conftest_s" > conftest.s
23177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23182 test $ac_status = 0; }; }
23183 then
23184 gcc_cv_as_comdat_group_group=yes
23185 else
23186 echo "configure: failed program was" >&5
23187 cat conftest.s >&5
23188 fi
23189 rm -f conftest.o conftest.s
23190 fi
23191 fi
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23193 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23194
23195 ;;
23196 esac
23197 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23198 gcc_cv_as_comdat_group_group=no
23199 fi
23200 fi
23201 fi
23202 if test x"$ld_is_gold" = xyes; then
23203 comdat_group=yes
23204 elif test $in_tree_ld = yes ; then
23205 comdat_group=no
23206 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
23207 && test $in_tree_ld_is_elf = yes; then
23208 comdat_group=yes
23209 fi
23210 elif echo "$ld_ver" | grep GNU > /dev/null; then
23211 comdat_group=yes
23212 if test 0"$ld_date" -lt 20050308; then
23213 if test -n "$ld_date"; then
23214 # If there was date string, but was earlier than 2005-03-08, fail
23215 comdat_group=no
23216 elif test "$ld_vers_major" -lt 2; then
23217 comdat_group=no
23218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23219 comdat_group=no
23220 fi
23221 fi
23222 else
23223 case "${target}" in
23224 *-*-solaris2.1[1-9]*)
23225 comdat_group=no
23226 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23227 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23228 # version 1.688.
23229 #
23230 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23231 # least ld version 1.2267.
23232 if test "$ld_vers_major" -gt 1; then
23233 comdat_group=yes
23234 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23235 comdat_group=yes
23236 elif test "$ld_vers_minor" -ge 2267; then
23237 comdat_group=yes
23238 fi
23239 ;;
23240 *)
23241 # Assume linkers other than GNU ld don't support COMDAT group.
23242 comdat_group=no
23243 ;;
23244 esac
23245 fi
23246 # Allow overriding the automatic COMDAT group tests above.
23247 # Check whether --enable-comdat was given.
23248 if test "${enable_comdat+set}" = set; then :
23249 enableval=$enable_comdat; comdat_group="$enable_comdat"
23250 fi
23251
23252 if test $comdat_group = no; then
23253 gcc_cv_as_comdat_group=no
23254 gcc_cv_as_comdat_group_percent=no
23255 gcc_cv_as_comdat_group_group=no
23256 fi
23257
23258 cat >>confdefs.h <<_ACEOF
23259 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23260 || test $gcc_cv_as_comdat_group_percent = yes \
23261 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23262 _ACEOF
23263
23264
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23266 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23267 if test "${gcc_cv_as_discriminator+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23269 else
23270 gcc_cv_as_discriminator=no
23271 if test $in_tree_gas = yes; then
23272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23273 then gcc_cv_as_discriminator=yes
23274 fi
23275 elif test x$gcc_cv_as != x; then
23276 $as_echo ' .text
23277 .file 1 "conf.c"
23278 .loc 1 1 0 discriminator 1' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23286 gcc_cv_as_discriminator=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23290 fi
23291 rm -f conftest.o conftest.s
23292 fi
23293 fi
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23295 $as_echo "$gcc_cv_as_discriminator" >&6; }
23296 if test $gcc_cv_as_discriminator = yes; then
23297
23298 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23299
23300 fi
23301
23302 # Thread-local storage - the check is heavily parameterized.
23303 conftest_s=
23304 tls_first_major=
23305 tls_first_minor=
23306 tls_as_opt=
23307 case "$target" in
23308 alpha*-*-*)
23309 conftest_s='
23310 .section ".tdata","awT",@progbits
23311 foo: .long 25
23312 .text
23313 ldq $27,__tls_get_addr($29) !literal!1
23314 lda $16,foo($29) !tlsgd!1
23315 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23316 ldq $27,__tls_get_addr($29) !literal!2
23317 lda $16,foo($29) !tlsldm!2
23318 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23319 ldq $1,foo($29) !gotdtprel
23320 ldah $2,foo($29) !dtprelhi
23321 lda $3,foo($2) !dtprello
23322 lda $4,foo($29) !dtprel
23323 ldq $1,foo($29) !gottprel
23324 ldah $2,foo($29) !tprelhi
23325 lda $3,foo($2) !tprello
23326 lda $4,foo($29) !tprel'
23327 tls_first_major=2
23328 tls_first_minor=13
23329 tls_as_opt=--fatal-warnings
23330 ;;
23331 cris-*-*|crisv32-*-*)
23332 conftest_s='
23333 .section ".tdata","awT",@progbits
23334 x: .long 25
23335 .text
23336 move.d x:IE,$r10
23337 nop'
23338 tls_first_major=2
23339 tls_first_minor=20
23340 tls_as_opt=--fatal-warnings
23341 ;;
23342 frv*-*-*)
23343 conftest_s='
23344 .section ".tdata","awT",@progbits
23345 x: .long 25
23346 .text
23347 call #gettlsoff(x)'
23348 tls_first_major=2
23349 tls_first_minor=14
23350 ;;
23351 hppa*-*-linux*)
23352 conftest_s='
23353 t1: .reg %r20
23354 t2: .reg %r21
23355 gp: .reg %r19
23356 .section ".tdata","awT",@progbits
23357 foo: .long 25
23358 .text
23359 .align 4
23360 addil LT%foo-$tls_gdidx$,gp
23361 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23362 b __tls_get_addr
23363 nop
23364 addil LT%foo-$tls_ldidx$,gp
23365 b __tls_get_addr
23366 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23367 addil LR%foo-$tls_dtpoff$,%ret0
23368 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23369 mfctl %cr27,%t1
23370 addil LT%foo-$tls_ieoff$,gp
23371 ldw RT%foo-$tls_ieoff$(%r1),%t2
23372 add %t1,%t2,%t3
23373 mfctl %cr27,%t1
23374 addil LR%foo-$tls_leoff$,%t1
23375 ldo RR%foo-$tls_leoff$(%r1),%t2'
23376 tls_first_major=2
23377 tls_first_minor=15
23378 tls_as_opt=--fatal-warnings
23379 ;;
23380 arm*-*-*)
23381 conftest_s='
23382 .section ".tdata","awT",%progbits
23383 foo: .long 25
23384 .text
23385 .word foo(gottpoff)
23386 .word foo(tpoff)
23387 .word foo(tlsgd)
23388 .word foo(tlsldm)
23389 .word foo(tlsldo)'
23390 tls_first_major=2
23391 tls_first_minor=17
23392 ;;
23393 i[34567]86-*-* | x86_64-*-*)
23394 case "$target" in
23395 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23396 on_solaris=yes
23397 ;;
23398 *)
23399 on_solaris=no
23400 ;;
23401 esac
23402 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23403 conftest_s='
23404 .section .tdata,"awt",@progbits'
23405 tls_first_major=0
23406 tls_first_minor=0
23407 tls_section_flag=t
23408
23409 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23410
23411 else
23412 conftest_s='
23413 .section ".tdata","awT",@progbits'
23414 tls_first_major=2
23415 tls_first_minor=14
23416 tls_section_flag=T
23417 tls_as_opt="--fatal-warnings"
23418 fi
23419 case "$target" in
23420 i[34567]86-*-*)
23421 conftest_s="$conftest_s
23422 foo: .long 25
23423 .text
23424 movl %gs:0, %eax
23425 leal foo@tlsgd(,%ebx,1), %eax
23426 leal foo@tlsldm(%ebx), %eax
23427 leal foo@dtpoff(%eax), %edx
23428 movl foo@gottpoff(%ebx), %eax
23429 subl foo@gottpoff(%ebx), %eax
23430 addl foo@gotntpoff(%ebx), %eax
23431 movl foo@indntpoff, %eax
23432 movl \$foo@tpoff, %eax
23433 subl \$foo@tpoff, %eax
23434 leal foo@ntpoff(%ecx), %eax"
23435 ;;
23436 x86_64-*-*)
23437 if test x$on_solaris = xyes; then
23438 case $gas_flag in
23439 yes) tls_as_opt="$tls_as_opt --64" ;;
23440 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23441 esac
23442 fi
23443 conftest_s="$conftest_s
23444 foo: .long 25
23445 .text
23446 movq %fs:0, %rax
23447 leaq foo@tlsgd(%rip), %rdi
23448 leaq foo@tlsld(%rip), %rdi
23449 leaq foo@dtpoff(%rax), %rdx
23450 movq foo@gottpoff(%rip), %rax
23451 movq \$foo@tpoff, %rax"
23452 ;;
23453 esac
23454 ;;
23455 ia64-*-*)
23456 conftest_s='
23457 .section ".tdata","awT",@progbits
23458 foo: data8 25
23459 .text
23460 addl r16 = @ltoff(@dtpmod(foo#)), gp
23461 addl r17 = @ltoff(@dtprel(foo#)), gp
23462 addl r18 = @ltoff(@tprel(foo#)), gp
23463 addl r19 = @dtprel(foo#), gp
23464 adds r21 = @dtprel(foo#), r13
23465 movl r23 = @dtprel(foo#)
23466 addl r20 = @tprel(foo#), gp
23467 adds r22 = @tprel(foo#), r13
23468 movl r24 = @tprel(foo#)'
23469 tls_first_major=2
23470 tls_first_minor=13
23471 tls_as_opt=--fatal-warnings
23472 ;;
23473 microblaze*-*-*)
23474 conftest_s='
23475 .section .tdata,"awT",@progbits
23476 x:
23477 .word 2
23478 .text
23479 addik r5,r20,x@TLSGD
23480 addik r5,r20,x@TLSLDM'
23481 tls_first_major=2
23482 tls_first_minor=20
23483 tls_as_opt='--fatal-warnings'
23484 ;;
23485 mips*-*-*)
23486 conftest_s='
23487 .section .tdata,"awT",@progbits
23488 x:
23489 .word 2
23490 .text
23491 addiu $4, $28, %tlsgd(x)
23492 addiu $4, $28, %tlsldm(x)
23493 lui $4, %dtprel_hi(x)
23494 addiu $4, $4, %dtprel_lo(x)
23495 lw $4, %gottprel(x)($28)
23496 lui $4, %tprel_hi(x)
23497 addiu $4, $4, %tprel_lo(x)'
23498 tls_first_major=2
23499 tls_first_minor=16
23500 tls_as_opt='-32 --fatal-warnings'
23501 ;;
23502 m68k-*-*)
23503 conftest_s='
23504 .section .tdata,"awT",@progbits
23505 x:
23506 .word 2
23507 .text
23508 foo:
23509 move.l x@TLSGD(%a5),%a0
23510 move.l x@TLSLDM(%a5),%a0
23511 move.l x@TLSLDO(%a5),%a0
23512 move.l x@TLSIE(%a5),%a0
23513 move.l x@TLSLE(%a5),%a0'
23514 tls_first_major=2
23515 tls_first_minor=19
23516 tls_as_opt='--fatal-warnings'
23517 ;;
23518 nios2-*-*)
23519 conftest_s='
23520 .section ".tdata","awT",@progbits'
23521 tls_first_major=2
23522 tls_first_minor=23
23523 tls_as_opt="--fatal-warnings"
23524 ;;
23525 aarch64*-*-*)
23526 conftest_s='
23527 .section ".tdata","awT",%progbits
23528 foo: .long 25
23529 .text
23530 adrp x0, :tlsgd:x
23531 add x0, x0, #:tlsgd_lo12:x
23532 bl __tls_get_addr
23533 nop'
23534 tls_first_major=2
23535 tls_first_minor=20
23536 tls_as_opt='--fatal-warnings'
23537 ;;
23538 powerpc-ibm-aix*)
23539 conftest_s='
23540 .extern __get_tpointer
23541 .toc
23542 LC..1:
23543 .tc a[TC],a[TL]@le
23544 .csect .text[PR]
23545 .tlstest:
23546 lwz 9,LC..1(2)
23547 bla __get_tpointer
23548 lwzx 3,9,3
23549 .globl a
23550 .csect a[TL],4
23551 a:
23552 .space 4'
23553 tls_first_major=0
23554 tls_first_minor=0
23555 ;;
23556 powerpc64*-*-*)
23557 conftest_s='
23558 .section ".tdata","awT",@progbits
23559 .align 3
23560 ld0: .space 8
23561 ld1: .space 8
23562 x1: .space 8
23563 x2: .space 8
23564 x3: .space 8
23565 .text
23566 addi 3,2,ld0@got@tlsgd
23567 bl .__tls_get_addr
23568 nop
23569 addi 3,2,ld1@toc
23570 bl .__tls_get_addr
23571 nop
23572 addi 3,2,x1@got@tlsld
23573 bl .__tls_get_addr
23574 nop
23575 addi 9,3,x1@dtprel
23576 bl .__tls_get_addr
23577 nop
23578 addis 9,3,x2@dtprel@ha
23579 addi 9,9,x2@dtprel@l
23580 bl .__tls_get_addr
23581 nop
23582 ld 9,x3@got@dtprel(2)
23583 add 9,9,3
23584 bl .__tls_get_addr
23585 nop'
23586 tls_first_major=2
23587 tls_first_minor=14
23588 tls_as_opt="-a64 --fatal-warnings"
23589 ;;
23590 powerpc*-*-*)
23591 conftest_s='
23592 .section ".tdata","awT",@progbits
23593 .align 2
23594 ld0: .space 4
23595 ld1: .space 4
23596 x1: .space 4
23597 x2: .space 4
23598 x3: .space 4
23599 .text
23600 addi 3,31,ld0@got@tlsgd
23601 bl __tls_get_addr
23602 addi 3,31,x1@got@tlsld
23603 bl __tls_get_addr
23604 addi 9,3,x1@dtprel
23605 addis 9,3,x2@dtprel@ha
23606 addi 9,9,x2@dtprel@l
23607 lwz 9,x3@got@tprel(31)
23608 add 9,9,x@tls
23609 addi 9,2,x1@tprel
23610 addis 9,2,x2@tprel@ha
23611 addi 9,9,x2@tprel@l'
23612 tls_first_major=2
23613 tls_first_minor=14
23614 tls_as_opt="-a32 --fatal-warnings"
23615 ;;
23616 s390-*-*)
23617 conftest_s='
23618 .section ".tdata","awT",@progbits
23619 foo: .long 25
23620 .text
23621 .long foo@TLSGD
23622 .long foo@TLSLDM
23623 .long foo@DTPOFF
23624 .long foo@NTPOFF
23625 .long foo@GOTNTPOFF
23626 .long foo@INDNTPOFF
23627 l %r1,foo@GOTNTPOFF(%r12)
23628 l %r1,0(%r1):tls_load:foo
23629 bas %r14,0(%r1,%r13):tls_gdcall:foo
23630 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23631 tls_first_major=2
23632 tls_first_minor=14
23633 tls_as_opt="-m31 --fatal-warnings"
23634 ;;
23635 s390x-*-*)
23636 conftest_s='
23637 .section ".tdata","awT",@progbits
23638 foo: .long 25
23639 .text
23640 .quad foo@TLSGD
23641 .quad foo@TLSLDM
23642 .quad foo@DTPOFF
23643 .quad foo@NTPOFF
23644 .quad foo@GOTNTPOFF
23645 lg %r1,foo@GOTNTPOFF(%r12)
23646 larl %r1,foo@INDNTPOFF
23647 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23648 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23649 tls_first_major=2
23650 tls_first_minor=14
23651 tls_as_opt="-m64 -Aesame --fatal-warnings"
23652 ;;
23653 sh-*-* | sh[34]-*-*)
23654 conftest_s='
23655 .section ".tdata","awT",@progbits
23656 foo: .long 25
23657 .text
23658 .long foo@TLSGD
23659 .long foo@TLSLDM
23660 .long foo@DTPOFF
23661 .long foo@GOTTPOFF
23662 .long foo@TPOFF'
23663 tls_first_major=2
23664 tls_first_minor=13
23665 tls_as_opt=--fatal-warnings
23666 ;;
23667 sparc*-*-*)
23668 case "$target" in
23669 sparc*-sun-solaris2.*)
23670 on_solaris=yes
23671 ;;
23672 *)
23673 on_solaris=no
23674 ;;
23675 esac
23676 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23677 conftest_s='
23678 .section ".tdata",#alloc,#write,#tls'
23679 tls_first_major=0
23680 tls_first_minor=0
23681 else
23682 conftest_s='
23683 .section ".tdata","awT",@progbits'
23684 tls_first_major=2
23685 tls_first_minor=14
23686 tls_as_opt="-32 --fatal-warnings"
23687 fi
23688 conftest_s="$conftest_s
23689 foo: .long 25
23690 .text
23691 sethi %tgd_hi22(foo), %o0
23692 add %o0, %tgd_lo10(foo), %o1
23693 add %l7, %o1, %o0, %tgd_add(foo)
23694 call __tls_get_addr, %tgd_call(foo)
23695 sethi %tldm_hi22(foo), %l1
23696 add %l1, %tldm_lo10(foo), %l2
23697 add %l7, %l2, %o0, %tldm_add(foo)
23698 call __tls_get_addr, %tldm_call(foo)
23699 sethi %tldo_hix22(foo), %l3
23700 xor %l3, %tldo_lox10(foo), %l4
23701 add %o0, %l4, %l5, %tldo_add(foo)
23702 sethi %tie_hi22(foo), %o3
23703 add %o3, %tie_lo10(foo), %o3
23704 ld [%l7 + %o3], %o2, %tie_ld(foo)
23705 add %g7, %o2, %o4, %tie_add(foo)
23706 sethi %tle_hix22(foo), %l1
23707 xor %l1, %tle_lox10(foo), %o5
23708 ld [%g7 + %o5], %o1"
23709 ;;
23710 tilepro*-*-*)
23711 conftest_s='
23712 .section ".tdata","awT",@progbits
23713 foo: .long 25
23714 .text
23715 addli r0, zero, tls_gd(foo)
23716 auli r0, zero, tls_gd_ha16(foo)
23717 addli r0, r0, tls_gd_lo16(foo)
23718 jal __tls_get_addr
23719 addli r0, zero, tls_ie(foo)
23720 auli r0, r0, tls_ie_ha16(foo)
23721 addli r0, r0, tls_ie_lo16(foo)'
23722 tls_first_major=2
23723 tls_first_minor=22
23724 tls_as_opt="--fatal-warnings"
23725 ;;
23726 tilegx*-*-*)
23727 conftest_s='
23728 .section ".tdata","awT",@progbits
23729 foo: .long 25
23730 .text
23731 shl16insli r0, zero, hw0_last_tls_gd(foo)
23732 shl16insli r0, zero, hw1_last_tls_gd(foo)
23733 shl16insli r0, r0, hw0_tls_gd(foo)
23734 jal __tls_get_addr
23735 shl16insli r0, zero, hw1_last_tls_ie(foo)
23736 shl16insli r0, r0, hw0_tls_ie(foo)'
23737 tls_first_major=2
23738 tls_first_minor=22
23739 tls_as_opt="--fatal-warnings"
23740 ;;
23741 xtensa*-*-*)
23742 conftest_s='
23743 .section ".tdata","awT",@progbits
23744 foo: .long 25
23745 .text
23746 movi a8, foo@TLSFUNC
23747 movi a10, foo@TLSARG
23748 callx8.tls a8, foo@TLSCALL'
23749 tls_first_major=2
23750 tls_first_minor=19
23751 ;;
23752 esac
23753 set_have_as_tls=no
23754 if test "x$enable_tls" = xno ; then
23755 : # TLS explicitly disabled.
23756 elif test "x$enable_tls" = xyes ; then
23757 set_have_as_tls=yes # TLS explicitly enabled.
23758 elif test -z "$tls_first_major"; then
23759 : # If we don't have a check, assume no support.
23760 else
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23762 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23763 if test "${gcc_cv_as_tls+set}" = set; then :
23764 $as_echo_n "(cached) " >&6
23765 else
23766 gcc_cv_as_tls=no
23767 if test $in_tree_gas = yes; then
23768 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23769 then gcc_cv_as_tls=yes
23770 fi
23771 elif test x$gcc_cv_as != x; then
23772 $as_echo "$conftest_s" > conftest.s
23773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23778 test $ac_status = 0; }; }
23779 then
23780 gcc_cv_as_tls=yes
23781 else
23782 echo "configure: failed program was" >&5
23783 cat conftest.s >&5
23784 fi
23785 rm -f conftest.o conftest.s
23786 fi
23787 fi
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23789 $as_echo "$gcc_cv_as_tls" >&6; }
23790 if test $gcc_cv_as_tls = yes; then
23791 set_have_as_tls=yes
23792 fi
23793 fi
23794 if test $set_have_as_tls = yes ; then
23795
23796 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23797
23798 fi
23799
23800 # Target-specific assembler checks.
23801
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23803 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23804 gcc_cv_ld_static_dynamic=no
23805 gcc_cv_ld_static_option='-Bstatic'
23806 gcc_cv_ld_dynamic_option='-Bdynamic'
23807 if test $in_tree_ld = yes ; then
23808 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23809 gcc_cv_ld_static_dynamic=yes
23810 fi
23811 elif test x$gcc_cv_ld != x; then
23812 # Check if linker supports -Bstatic/-Bdynamic option
23813 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23814 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23815 gcc_cv_ld_static_dynamic=yes
23816 else
23817 case "$target" in
23818 # AIX ld uses -b flags
23819 *-*-aix4.[23]* | *-*-aix[5-9]*)
23820 gcc_cv_ld_static_dynamic=yes
23821 gcc_cv_ld_static_option="-bstatic"
23822 gcc_cv_ld_dynamic_option="-bdynamic"
23823 ;;
23824 # HP-UX ld uses -a flags to select between shared and archive.
23825 *-*-hpux*)
23826 if test x"$gnu_ld" = xno; then
23827 gcc_cv_ld_static_dynamic=yes
23828 gcc_cv_ld_static_option="-aarchive_shared"
23829 gcc_cv_ld_dynamic_option="-adefault"
23830 fi
23831 ;;
23832 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23833 *-*-solaris2*)
23834 gcc_cv_ld_static_dynamic=yes
23835 ;;
23836 esac
23837 fi
23838 fi
23839 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23840
23841 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23842
23843
23844 cat >>confdefs.h <<_ACEOF
23845 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23846 _ACEOF
23847
23848
23849 cat >>confdefs.h <<_ACEOF
23850 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23851 _ACEOF
23852
23853 fi
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23855 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23856
23857 if test x"$demangler_in_ld" = xyes; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23859 $as_echo_n "checking linker --demangle support... " >&6; }
23860 gcc_cv_ld_demangle=no
23861 if test $in_tree_ld = yes; then
23862 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23863 gcc_cv_ld_demangle=yes
23864 fi
23865 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23866 # Check if the GNU linker supports --demangle option
23867 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23868 gcc_cv_ld_demangle=yes
23869 fi
23870 fi
23871 if test x"$gcc_cv_ld_demangle" = xyes; then
23872
23873 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23874
23875 fi
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23877 $as_echo "$gcc_cv_ld_demangle" >&6; }
23878 fi
23879
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23881 $as_echo_n "checking linker plugin support... " >&6; }
23882 gcc_cv_lto_plugin=0
23883 if test -f liblto_plugin.la; then
23884 save_ld_ver="$ld_ver"
23885 save_ld_vers_major="$ld_vers_major"
23886 save_ld_vers_minor="$ld_vers_minor"
23887 save_ld_is_gold="$ld_is_gold"
23888
23889 ld_is_gold=no
23890
23891 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23892 ld_ver="GNU ld"
23893 # FIXME: ld_is_gold?
23894 ld_vers_major="$gcc_cv_gld_major_version"
23895 ld_vers_minor="$gcc_cv_gld_minor_version"
23896 else
23897 # Determine plugin linker version.
23898 # FIXME: Partial duplicate from above, generalize.
23899 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23900 if echo "$ld_ver" | grep GNU > /dev/null; then
23901 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23902 ld_is_gold=yes
23903 ld_vers=`echo $ld_ver | sed -n \
23904 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23905 else
23906 ld_vers=`echo $ld_ver | sed -n \
23907 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23908 fi
23909 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23910 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23911 fi
23912 fi
23913
23914 # Determine plugin support.
23915 if echo "$ld_ver" | grep GNU > /dev/null; then
23916 # Require GNU ld or gold 2.21+ for plugin support by default.
23917 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23918 gcc_cv_lto_plugin=2
23919 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23920 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23921 gcc_cv_lto_plugin=1
23922 fi
23923 fi
23924
23925 ld_ver="$save_ld_ver"
23926 ld_vers_major="$save_ld_vers_major"
23927 ld_vers_minor="$save_ld_vers_minor"
23928 ld_is_gold="$save_ld_is_gold"
23929 fi
23930
23931 cat >>confdefs.h <<_ACEOF
23932 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23933 _ACEOF
23934
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23936 $as_echo "$gcc_cv_lto_plugin" >&6; }
23937
23938 case "$target" in
23939 aarch64*-*-*)
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23941 $as_echo_n "checking assembler for -mabi option... " >&6; }
23942 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 gcc_cv_as_aarch64_mabi=no
23946 if test x$gcc_cv_as != x; then
23947 $as_echo '.text' > conftest.s
23948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23954 then
23955 gcc_cv_as_aarch64_mabi=yes
23956 else
23957 echo "configure: failed program was" >&5
23958 cat conftest.s >&5
23959 fi
23960 rm -f conftest.o conftest.s
23961 fi
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23964 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23965
23966 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23967
23968 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23969
23970 else
23971 if test x$with_abi = xilp32; then
23972 as_fn_error "Assembler does not support -mabi=ilp32.\
23973 Upgrade the Assembler." "$LINENO" 5
23974 fi
23975 if test x"$with_multilib_list" = xdefault; then
23976 TM_MULTILIB_CONFIG=lp64
23977 else
23978 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23979 for aarch64_multilib in ${aarch64_multilibs}; do
23980 case ${aarch64_multilib} in
23981 ilp32)
23982 as_fn_error "Assembler does not support -mabi=ilp32.\
23983 Upgrade the Assembler." "$LINENO" 5
23984 ;;
23985 *)
23986 ;;
23987 esac
23988 done
23989 fi
23990 fi
23991 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
23992 # Check whether --enable-fix-cortex-a53-835769 was given.
23993 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
23994 enableval=$enable_fix_cortex_a53_835769;
23995 case $enableval in
23996 yes)
23997 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
23998 ;;
23999 no)
24000 ;;
24001 *)
24002 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24003 Valid choices are 'yes' and 'no'." "$LINENO" 5
24004 ;;
24005
24006 esac
24007
24008 fi
24009
24010 ;;
24011
24012 # All TARGET_ABI_OSF targets.
24013 alpha*-*-linux* | alpha*-*-*bsd*)
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24015 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24016 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24019 gcc_cv_as_alpha_explicit_relocs=no
24020 if test $in_tree_gas = yes; then
24021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24022 then gcc_cv_as_alpha_explicit_relocs=yes
24023 fi
24024 elif test x$gcc_cv_as != x; then
24025 $as_echo ' .set nomacro
24026 .text
24027 extbl $3, $2, $3 !lituse_bytoff!1
24028 ldq $2, a($29) !literal!1
24029 ldq $4, b($29) !literal!2
24030 ldq_u $3, 0($2) !lituse_base!1
24031 ldq $27, f($29) !literal!5
24032 jsr $26, ($27), f !lituse_jsr!5
24033 ldah $29, 0($26) !gpdisp!3
24034 lda $0, c($29) !gprel
24035 ldah $1, d($29) !gprelhigh
24036 lda $1, d($1) !gprellow
24037 lda $29, 0($29) !gpdisp!3' > conftest.s
24038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24041 ac_status=$?
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24044 then
24045 gcc_cv_as_alpha_explicit_relocs=yes
24046 else
24047 echo "configure: failed program was" >&5
24048 cat conftest.s >&5
24049 fi
24050 rm -f conftest.o conftest.s
24051 fi
24052 fi
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24054 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24055 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24056
24057 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24058
24059 fi
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24061 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24062 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24064 else
24065 gcc_cv_as_alpha_jsrdirect_relocs=no
24066 if test $in_tree_gas = yes; then
24067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24068 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24069 fi
24070 elif test x$gcc_cv_as != x; then
24071 $as_echo ' .set nomacro
24072 .text
24073 ldq $27, a($29) !literal!1
24074 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24080 test $ac_status = 0; }; }
24081 then
24082 gcc_cv_as_alpha_jsrdirect_relocs=yes
24083 else
24084 echo "configure: failed program was" >&5
24085 cat conftest.s >&5
24086 fi
24087 rm -f conftest.o conftest.s
24088 fi
24089 fi
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24091 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24092 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24093
24094 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24095
24096 fi
24097 ;;
24098
24099 cris-*-*)
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24101 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24102 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24104 else
24105 gcc_cv_as_cris_no_mul_bug=no
24106 if test $in_tree_gas = yes; then
24107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24108 then gcc_cv_as_cris_no_mul_bug=yes
24109 fi
24110 elif test x$gcc_cv_as != x; then
24111 $as_echo '.text' > conftest.s
24112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24117 test $ac_status = 0; }; }
24118 then
24119 gcc_cv_as_cris_no_mul_bug=yes
24120 else
24121 echo "configure: failed program was" >&5
24122 cat conftest.s >&5
24123 fi
24124 rm -f conftest.o conftest.s
24125 fi
24126 fi
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24128 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24129 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24130
24131 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24132
24133 fi
24134 ;;
24135
24136 sparc*-*-*)
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24138 $as_echo_n "checking assembler for .register... " >&6; }
24139 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 gcc_cv_as_sparc_register_op=no
24143 if test x$gcc_cv_as != x; then
24144 $as_echo '.register %g2, #scratch' > conftest.s
24145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24151 then
24152 gcc_cv_as_sparc_register_op=yes
24153 else
24154 echo "configure: failed program was" >&5
24155 cat conftest.s >&5
24156 fi
24157 rm -f conftest.o conftest.s
24158 fi
24159 fi
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24161 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24162 if test $gcc_cv_as_sparc_register_op = yes; then
24163
24164 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24165
24166 fi
24167
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24169 $as_echo_n "checking assembler for #nobits... " >&6; }
24170 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24171 $as_echo_n "(cached) " >&6
24172 else
24173 gcc_cv_as_sparc_nobits=no
24174 if test x$gcc_cv_as != x; then
24175 $as_echo '.section "nobits",#alloc,#write,#nobits
24176 .section "progbits",#alloc,#write,#progbits' > conftest.s
24177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179 (eval $ac_try) 2>&5
24180 ac_status=$?
24181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182 test $ac_status = 0; }; }
24183 then
24184 gcc_cv_as_sparc_nobits=yes
24185 else
24186 echo "configure: failed program was" >&5
24187 cat conftest.s >&5
24188 fi
24189 rm -f conftest.o conftest.s
24190 fi
24191 fi
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24193 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24194
24195
24196 cat >>confdefs.h <<_ACEOF
24197 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24198 _ACEOF
24199
24200
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24202 $as_echo_n "checking assembler for -relax option... " >&6; }
24203 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24205 else
24206 gcc_cv_as_sparc_relax=no
24207 if test x$gcc_cv_as != x; then
24208 $as_echo '.text' > conftest.s
24209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24215 then
24216 gcc_cv_as_sparc_relax=yes
24217 else
24218 echo "configure: failed program was" >&5
24219 cat conftest.s >&5
24220 fi
24221 rm -f conftest.o conftest.s
24222 fi
24223 fi
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24225 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24226 if test $gcc_cv_as_sparc_relax = yes; then
24227
24228 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24229
24230 fi
24231
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24233 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24234 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24236 else
24237 gcc_cv_as_sparc_gotdata_op=no
24238 if test x$gcc_cv_as != x; then
24239 $as_echo '.text
24240 .align 4
24241 foo:
24242 nop
24243 bar:
24244 sethi %gdop_hix22(foo), %g1
24245 xor %g1, %gdop_lox10(foo), %g1
24246 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24252 test $ac_status = 0; }; }
24253 then
24254 if test x$gcc_cv_ld != x \
24255 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24256 if test x$gcc_cv_objdump != x; then
24257 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24258 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24259 gcc_cv_as_sparc_gotdata_op=no
24260 else
24261 gcc_cv_as_sparc_gotdata_op=yes
24262 fi
24263 fi
24264 fi
24265 rm -f conftest
24266 else
24267 echo "configure: failed program was" >&5
24268 cat conftest.s >&5
24269 fi
24270 rm -f conftest.o conftest.s
24271 fi
24272 fi
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24274 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24275 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24276
24277 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24278
24279 fi
24280
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24282 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24283 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 gcc_cv_as_sparc_ua_pcrel=no
24287 if test x$gcc_cv_as != x; then
24288 $as_echo '.text
24289 foo:
24290 nop
24291 .data
24292 .align 4
24293 .byte 0
24294 .uaword %r_disp32(foo)' > conftest.s
24295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24300 test $ac_status = 0; }; }
24301 then
24302 if test x$gcc_cv_ld != x \
24303 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24304 gcc_cv_as_sparc_ua_pcrel=yes
24305 fi
24306 rm -f conftest
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24310 fi
24311 rm -f conftest.o conftest.s
24312 fi
24313 fi
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24315 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24316 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24317
24318 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24319
24320
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24322 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24323 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24324 $as_echo_n "(cached) " >&6
24325 else
24326 gcc_cv_as_sparc_ua_pcrel_hidden=no
24327 if test x$gcc_cv_as != x; then
24328 $as_echo '.data
24329 .align 4
24330 .byte 0x31
24331 .uaword %r_disp32(foo)
24332 .byte 0x32, 0x33, 0x34
24333 .global foo
24334 .hidden foo
24335 foo:
24336 .skip 4' > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24340 ac_status=$?
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24343 then
24344 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24345 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24346 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24347 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24348 if $gcc_cv_objdump -R conftest 2> /dev/null \
24349 | grep 'DISP32' > /dev/null 2>&1; then
24350 :
24351 else
24352 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24353 fi
24354 fi
24355 rm -f conftest
24356 else
24357 echo "configure: failed program was" >&5
24358 cat conftest.s >&5
24359 fi
24360 rm -f conftest.o conftest.s
24361 fi
24362 fi
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24364 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24365 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24366
24367 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24368
24369 fi
24370
24371 fi # unaligned pcrel relocs
24372
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24374 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24375 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24376 $as_echo_n "(cached) " >&6
24377 else
24378 gcc_cv_as_sparc_offsetable_lo10=no
24379 if test x$gcc_cv_as != x; then
24380 $as_echo '.text
24381 or %g1, %lo(ab) + 12, %g1
24382 or %g1, %lo(ab + 12), %g1' > conftest.s
24383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24389 then
24390 if test x$gcc_cv_objdump != x \
24391 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24392 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24393 gcc_cv_as_sparc_offsetable_lo10=yes
24394 fi
24395 else
24396 echo "configure: failed program was" >&5
24397 cat conftest.s >&5
24398 fi
24399 rm -f conftest.o conftest.s
24400 fi
24401 fi
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24403 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24404 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24405
24406 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24407
24408 fi
24409
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24411 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24412 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24414 else
24415 gcc_cv_as_sparc_fmaf=no
24416 if test x$gcc_cv_as != x; then
24417 $as_echo '.text
24418 .register %g2, #scratch
24419 .register %g3, #scratch
24420 .align 4
24421 fmaddd %f0, %f2, %f4, %f6
24422 addxccc %g1, %g2, %g3
24423 fsrl32 %f2, %f4, %f8
24424 fnaddd %f10, %f12, %f14' > conftest.s
24425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24430 test $ac_status = 0; }; }
24431 then
24432 gcc_cv_as_sparc_fmaf=yes
24433 else
24434 echo "configure: failed program was" >&5
24435 cat conftest.s >&5
24436 fi
24437 rm -f conftest.o conftest.s
24438 fi
24439 fi
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24441 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24442 if test $gcc_cv_as_sparc_fmaf = yes; then
24443
24444 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24445
24446 fi
24447
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24449 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24450 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24452 else
24453 gcc_cv_as_sparc_sparc4=no
24454 if test x$gcc_cv_as != x; then
24455 $as_echo '.text
24456 .register %g2, #scratch
24457 .register %g3, #scratch
24458 .align 4
24459 cxbe %g2, %g3, 1f
24460 1: cwbneg %g2, %g3, 1f
24461 1: sha1
24462 md5
24463 aes_kexpand0 %f4, %f6, %f8
24464 des_round %f38, %f40, %f42, %f44
24465 camellia_f %f54, %f56, %f58, %f60
24466 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24473 then
24474 gcc_cv_as_sparc_sparc4=yes
24475 else
24476 echo "configure: failed program was" >&5
24477 cat conftest.s >&5
24478 fi
24479 rm -f conftest.o conftest.s
24480 fi
24481 fi
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24483 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24484 if test $gcc_cv_as_sparc_sparc4 = yes; then
24485
24486 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24487
24488 fi
24489
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24491 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24492 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24494 else
24495 gcc_cv_as_sparc_leon=no
24496 if test x$gcc_cv_as != x; then
24497 $as_echo '.text
24498 .register %g2, #scratch
24499 .register %g3, #scratch
24500 .align 4
24501 smac %g2, %g3, %g1
24502 umac %g2, %g3, %g1
24503 casa [%g2] 0xb, %g3, %g1' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_sparc_leon=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24515 fi
24516 rm -f conftest.o conftest.s
24517 fi
24518 fi
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24520 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24521 if test $gcc_cv_as_sparc_leon = yes; then
24522
24523 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24524
24525 fi
24526 ;;
24527
24528 i[34567]86-*-* | x86_64-*-*)
24529 case $target_os in
24530 cygwin*)
24531 # Full C++ conformance when using a shared libstdc++-v3 requires some
24532 # support from the Cygwin DLL, which in more recent versions exports
24533 # wrappers to aid in interposing and redirecting operators new, delete,
24534 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24535 # are configuring for a version of Cygwin that exports the wrappers.
24536 if test x$host = x$target && test x$host_cpu = xi686; then
24537 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24538 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24539 gcc_ac_cygwin_dll_wrappers=yes
24540 else
24541 gcc_ac_cygwin_dll_wrappers=no
24542 fi
24543
24544 else
24545 # Can't check presence of libc functions during cross-compile, so
24546 # we just have to assume we're building for an up-to-date target.
24547 gcc_ac_cygwin_dll_wrappers=yes
24548 fi
24549
24550 cat >>confdefs.h <<_ACEOF
24551 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24552 _ACEOF
24553
24554 esac
24555 case $target_os in
24556 cygwin* | pe | mingw32* | interix*)
24557 # Recent binutils allows the three-operand form of ".comm" on PE. This
24558 # definition is used unconditionally to initialise the default state of
24559 # the target option variable that governs usage of the feature.
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24561 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24562 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_comm_has_align=no
24566 if test $in_tree_gas = yes; then
24567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24568 then gcc_cv_as_comm_has_align=yes
24569 fi
24570 elif test x$gcc_cv_as != x; then
24571 $as_echo '.comm foo,1,32' > conftest.s
24572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; }
24578 then
24579 gcc_cv_as_comm_has_align=yes
24580 else
24581 echo "configure: failed program was" >&5
24582 cat conftest.s >&5
24583 fi
24584 rm -f conftest.o conftest.s
24585 fi
24586 fi
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24588 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24589
24590
24591 cat >>confdefs.h <<_ACEOF
24592 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24593 _ACEOF
24594
24595 # Used for DWARF 2 in PE
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24597 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24598 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_ix86_pe_secrel32=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24604 then gcc_cv_as_ix86_pe_secrel32=yes
24605 fi
24606 elif test x$gcc_cv_as != x; then
24607 $as_echo '.text
24608 foo: nop
24609 .data
24610 .secrel32 foo' > conftest.s
24611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24617 then
24618 if test x$gcc_cv_ld != x \
24619 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24620 gcc_cv_as_ix86_pe_secrel32=yes
24621 fi
24622 rm -f conftest
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24626 fi
24627 rm -f conftest.o conftest.s
24628 fi
24629 fi
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24631 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24632 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24633
24634 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24635
24636 fi
24637 # Test if the assembler supports the extended form of the .section
24638 # directive that specifies section alignment. LTO support uses this,
24639 # but normally only after installation, so we warn but don't fail the
24640 # configure if LTO is enabled but the assembler does not support it.
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24642 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24643 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24645 else
24646 gcc_cv_as_section_has_align=no
24647 if test $in_tree_gas = yes; then
24648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24649 then gcc_cv_as_section_has_align=yes
24650 fi
24651 elif test x$gcc_cv_as != x; then
24652 $as_echo '.section lto_test,"dr0"' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_section_has_align=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24664 fi
24665 rm -f conftest.o conftest.s
24666 fi
24667 fi
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24669 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24670
24671 if test x$gcc_cv_as_section_has_align != xyes; then
24672 case ",$enable_languages," in
24673 *,lto,*)
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24675 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24676 ;;
24677 esac
24678 fi
24679 ;;
24680 esac
24681
24682 # Test if the assembler supports the section flag 'e' for specifying
24683 # an excluded section.
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24685 $as_echo_n "checking assembler for .section with e... " >&6; }
24686 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_section_has_e=no
24690 if test $in_tree_gas = yes; then
24691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24692 then gcc_cv_as_section_has_e=yes
24693 fi
24694 elif test x$gcc_cv_as != x; then
24695 $as_echo '.section foo1,"e"
24696 .byte 0,0,0,0' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_section_has_e=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24708 fi
24709 rm -f conftest.o conftest.s
24710 fi
24711 fi
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24713 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24714
24715
24716 cat >>confdefs.h <<_ACEOF
24717 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24718 _ACEOF
24719
24720
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24722 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24723 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24725 else
24726 gcc_cv_as_ix86_filds=no
24727 if test x$gcc_cv_as != x; then
24728 $as_echo 'filds mem; fists mem' > conftest.s
24729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24735 then
24736 gcc_cv_as_ix86_filds=yes
24737 else
24738 echo "configure: failed program was" >&5
24739 cat conftest.s >&5
24740 fi
24741 rm -f conftest.o conftest.s
24742 fi
24743 fi
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24745 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24746 if test $gcc_cv_as_ix86_filds = yes; then
24747
24748 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24749
24750 fi
24751
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24753 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24754 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 gcc_cv_as_ix86_fildq=no
24758 if test x$gcc_cv_as != x; then
24759 $as_echo 'fildq mem; fistpq mem' > conftest.s
24760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24766 then
24767 gcc_cv_as_ix86_fildq=yes
24768 else
24769 echo "configure: failed program was" >&5
24770 cat conftest.s >&5
24771 fi
24772 rm -f conftest.o conftest.s
24773 fi
24774 fi
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24776 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24777 if test $gcc_cv_as_ix86_fildq = yes; then
24778
24779 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24780
24781 fi
24782
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24784 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24785 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24786 $as_echo_n "(cached) " >&6
24787 else
24788 gcc_cv_as_ix86_cmov_sun_syntax=no
24789 if test x$gcc_cv_as != x; then
24790 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 gcc_cv_as_ix86_cmov_sun_syntax=yes
24799 else
24800 echo "configure: failed program was" >&5
24801 cat conftest.s >&5
24802 fi
24803 rm -f conftest.o conftest.s
24804 fi
24805 fi
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24807 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24808 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24809
24810 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24811
24812 fi
24813
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24815 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24816 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24817 $as_echo_n "(cached) " >&6
24818 else
24819 gcc_cv_as_ix86_ffreep=no
24820 if test x$gcc_cv_as != x; then
24821 $as_echo 'ffreep %st(1)' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 gcc_cv_as_ix86_ffreep=yes
24830 else
24831 echo "configure: failed program was" >&5
24832 cat conftest.s >&5
24833 fi
24834 rm -f conftest.o conftest.s
24835 fi
24836 fi
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24838 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24839 if test $gcc_cv_as_ix86_ffreep = yes; then
24840
24841 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24842
24843 fi
24844
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24846 $as_echo_n "checking assembler for .quad directive... " >&6; }
24847 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24849 else
24850 gcc_cv_as_ix86_quad=no
24851 if test x$gcc_cv_as != x; then
24852 $as_echo '.quad 0' > conftest.s
24853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24859 then
24860 gcc_cv_as_ix86_quad=yes
24861 else
24862 echo "configure: failed program was" >&5
24863 cat conftest.s >&5
24864 fi
24865 rm -f conftest.o conftest.s
24866 fi
24867 fi
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24869 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24870 if test $gcc_cv_as_ix86_quad = yes; then
24871
24872 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24873
24874 fi
24875
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24877 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24878 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24879 $as_echo_n "(cached) " >&6
24880 else
24881 gcc_cv_as_ix86_sahf=no
24882 if test x$gcc_cv_as != x; then
24883 $as_echo '.code64
24884 sahf' > conftest.s
24885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890 test $ac_status = 0; }; }
24891 then
24892 gcc_cv_as_ix86_sahf=yes
24893 else
24894 echo "configure: failed program was" >&5
24895 cat conftest.s >&5
24896 fi
24897 rm -f conftest.o conftest.s
24898 fi
24899 fi
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24901 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24902 if test $gcc_cv_as_ix86_sahf = yes; then
24903
24904 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24905
24906 fi
24907
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24909 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24910 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_ix86_interunit_movq=no
24914 if test x$gcc_cv_as != x; then
24915 $as_echo '.code64
24916 movq %mm0, %rax
24917 movq %rax, %xmm0' > conftest.s
24918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24923 test $ac_status = 0; }; }
24924 then
24925 gcc_cv_as_ix86_interunit_movq=yes
24926 else
24927 echo "configure: failed program was" >&5
24928 cat conftest.s >&5
24929 fi
24930 rm -f conftest.o conftest.s
24931 fi
24932 fi
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24934 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24935
24936
24937 cat >>confdefs.h <<_ACEOF
24938 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24939 _ACEOF
24940
24941
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24943 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24944 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24945 $as_echo_n "(cached) " >&6
24946 else
24947 gcc_cv_as_ix86_hle=no
24948 if test x$gcc_cv_as != x; then
24949 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24956 then
24957 gcc_cv_as_ix86_hle=yes
24958 else
24959 echo "configure: failed program was" >&5
24960 cat conftest.s >&5
24961 fi
24962 rm -f conftest.o conftest.s
24963 fi
24964 fi
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24966 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24967 if test $gcc_cv_as_ix86_hle = yes; then
24968
24969 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24970
24971 fi
24972
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24974 $as_echo_n "checking assembler for swap suffix... " >&6; }
24975 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 gcc_cv_as_ix86_swap=no
24979 if test x$gcc_cv_as != x; then
24980 $as_echo 'movl.s %esp, %ebp' > conftest.s
24981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24984 ac_status=$?
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24987 then
24988 gcc_cv_as_ix86_swap=yes
24989 else
24990 echo "configure: failed program was" >&5
24991 cat conftest.s >&5
24992 fi
24993 rm -f conftest.o conftest.s
24994 fi
24995 fi
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24997 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24998 if test $gcc_cv_as_ix86_swap = yes; then
24999
25000 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25001
25002 fi
25003
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25005 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25006 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_ix86_diff_sect_delta=no
25010 if test x$gcc_cv_as != x; then
25011 $as_echo '.section .rodata
25012 .L1:
25013 .long .L2-.L1
25014 .long .L3-.L1
25015 .text
25016 .L3: nop
25017 .L2: nop' > conftest.s
25018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023 test $ac_status = 0; }; }
25024 then
25025 gcc_cv_as_ix86_diff_sect_delta=yes
25026 else
25027 echo "configure: failed program was" >&5
25028 cat conftest.s >&5
25029 fi
25030 rm -f conftest.o conftest.s
25031 fi
25032 fi
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25034 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25035 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25036
25037 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25038
25039 fi
25040
25041 # These two are used unconditionally by i386.[ch]; it is to be defined
25042 # to 1 if the feature is present, 0 otherwise.
25043 as_ix86_gotoff_in_data_opt=
25044 if test x$gas = xyes; then
25045 as_ix86_gotoff_in_data_opt="--32"
25046 fi
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25048 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25049 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_ix86_gotoff_in_data=no
25053 if test $in_tree_gas = yes; then
25054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25055 then gcc_cv_as_ix86_gotoff_in_data=yes
25056 fi
25057 elif test x$gcc_cv_as != x; then
25058 $as_echo ' .text
25059 .L0:
25060 nop
25061 .data
25062 .long .L0@GOTOFF' > conftest.s
25063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25069 then
25070 gcc_cv_as_ix86_gotoff_in_data=yes
25071 else
25072 echo "configure: failed program was" >&5
25073 cat conftest.s >&5
25074 fi
25075 rm -f conftest.o conftest.s
25076 fi
25077 fi
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25079 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25080
25081
25082 cat >>confdefs.h <<_ACEOF
25083 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25084 _ACEOF
25085
25086
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25088 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25089 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_as_ix86_rep_lock_prefix=no
25093 if test x$gcc_cv_as != x; then
25094 $as_echo 'rep movsl
25095 rep ret
25096 rep nop
25097 rep bsf %ecx, %eax
25098 rep bsr %ecx, %eax
25099 lock addl %edi, (%eax,%esi)
25100 lock orl $0, (%esp)' > conftest.s
25101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25107 then
25108 gcc_cv_as_ix86_rep_lock_prefix=yes
25109 else
25110 echo "configure: failed program was" >&5
25111 cat conftest.s >&5
25112 fi
25113 rm -f conftest.o conftest.s
25114 fi
25115 fi
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25117 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25118 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25119
25120 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25121
25122 fi
25123
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25125 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25126 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25128 else
25129 gcc_cv_as_ix86_ud2=no
25130 if test x$gcc_cv_as != x; then
25131 $as_echo 'ud2' > conftest.s
25132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25135 ac_status=$?
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25138 then
25139 gcc_cv_as_ix86_ud2=yes
25140 else
25141 echo "configure: failed program was" >&5
25142 cat conftest.s >&5
25143 fi
25144 rm -f conftest.o conftest.s
25145 fi
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25148 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25149 if test $gcc_cv_as_ix86_ud2 = yes; then
25150
25151 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25152
25153 fi
25154
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25156 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25157 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25159 else
25160 gcc_cv_as_ix86_tlsgdplt=no
25161 if test x$gcc_cv_as != x; then
25162 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25166 ac_status=$?
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25169 then
25170 if test x$gcc_cv_ld != x \
25171 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25172 gcc_cv_as_ix86_tlsgdplt=yes
25173 fi
25174 rm -f conftest
25175 else
25176 echo "configure: failed program was" >&5
25177 cat conftest.s >&5
25178 fi
25179 rm -f conftest.o conftest.s
25180 fi
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25183 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25184 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25185
25186 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25187
25188 fi
25189
25190 conftest_s='
25191 .section .tdata,"aw'$tls_section_flag'",@progbits
25192 tls_ld:
25193 .section .text,"ax",@progbits
25194 call tls_ld@tlsldmplt'
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25196 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25197 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25199 else
25200 gcc_cv_as_ix86_tlsldmplt=no
25201 if test x$gcc_cv_as != x; then
25202 $as_echo "$conftest_s" > conftest.s
25203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25208 test $ac_status = 0; }; }
25209 then
25210 if test x$gcc_cv_ld != x \
25211 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25212 gcc_cv_as_ix86_tlsldmplt=yes
25213 fi
25214 rm -f conftest
25215 else
25216 echo "configure: failed program was" >&5
25217 cat conftest.s >&5
25218 fi
25219 rm -f conftest.o conftest.s
25220 fi
25221 fi
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25223 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25224
25225
25226 cat >>confdefs.h <<_ACEOF
25227 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25228 _ACEOF
25229
25230
25231 # Enforce 32-bit output with gas and gld.
25232 if test x$gas = xyes; then
25233 as_ix86_tls_ldm_opt="--32"
25234 fi
25235 if echo "$ld_ver" | grep GNU > /dev/null; then
25236 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25237 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25238 else
25239 ld_ix86_tls_ldm_opt="-melf_i386"
25240 fi
25241 fi
25242 conftest_s='
25243 .section .text,"ax",@progbits
25244 .globl _start
25245 .type _start, @function
25246 _start:
25247 leal value@tlsldm(%ebx), %eax
25248 call ___tls_get_addr@plt
25249
25250 .section .tdata,"aw'$tls_section_flag'",@progbits
25251 .type value, @object
25252 value:'
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25254 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25255 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 gcc_cv_as_ix86_tlsldm=no
25259 if test x$gcc_cv_as != x; then
25260 $as_echo "$conftest_s" > conftest.s
25261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25267 then
25268 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25269 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25270 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25271 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25272 gcc_cv_as_ix86_tlsldm=yes
25273 fi
25274 fi
25275 rm -f conftest
25276 else
25277 echo "configure: failed program was" >&5
25278 cat conftest.s >&5
25279 fi
25280 rm -f conftest.o conftest.s
25281 fi
25282 fi
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25284 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25285
25286
25287 cat >>confdefs.h <<_ACEOF
25288 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25289 _ACEOF
25290
25291
25292 ;;
25293
25294 ia64*-*-*)
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25296 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25297 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25299 else
25300 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25301 if test $in_tree_gas = yes; then
25302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25303 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25304 fi
25305 elif test x$gcc_cv_as != x; then
25306 $as_echo ' .text
25307 addl r15 = @ltoffx(x#), gp
25308 ;;
25309 ld8.mov r16 = [r15], x#' > conftest.s
25310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25312 (eval $ac_try) 2>&5
25313 ac_status=$?
25314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25315 test $ac_status = 0; }; }
25316 then
25317 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25318 else
25319 echo "configure: failed program was" >&5
25320 cat conftest.s >&5
25321 fi
25322 rm -f conftest.o conftest.s
25323 fi
25324 fi
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25326 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25327 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25328
25329 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25330
25331 fi
25332
25333 ;;
25334
25335 powerpc*-*-*)
25336 case $target in
25337 *-*-aix*) conftest_s=' .machine "pwr5"
25338 .csect .text[PR]
25339 mfcr 3,128';;
25340 *-*-darwin*)
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25342 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25343 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25345 else
25346 gcc_cv_as_machine_directive=no
25347 if test x$gcc_cv_as != x; then
25348 $as_echo ' .machine ppc7400' > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 gcc_cv_as_machine_directive=yes
25357 else
25358 echo "configure: failed program was" >&5
25359 cat conftest.s >&5
25360 fi
25361 rm -f conftest.o conftest.s
25362 fi
25363 fi
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25365 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25366
25367 if test x$gcc_cv_as_machine_directive != xyes; then
25368 echo "*** This target requires an assembler supporting \".machine\"" >&2
25369 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25370 test x$build = x$target && exit 1
25371 fi
25372 conftest_s=' .text
25373 mfcr r3,128';;
25374 *) conftest_s=' .machine power4
25375 .text
25376 mfcr 3,128';;
25377 esac
25378
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25380 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25381 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25383 else
25384 gcc_cv_as_powerpc_mfcrf=no
25385 if test $in_tree_gas = yes; then
25386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25387 then gcc_cv_as_powerpc_mfcrf=yes
25388 fi
25389 elif test x$gcc_cv_as != x; then
25390 $as_echo "$conftest_s" > conftest.s
25391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25397 then
25398 gcc_cv_as_powerpc_mfcrf=yes
25399 else
25400 echo "configure: failed program was" >&5
25401 cat conftest.s >&5
25402 fi
25403 rm -f conftest.o conftest.s
25404 fi
25405 fi
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25407 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25408 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25409
25410 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25411
25412 fi
25413
25414 case $target in
25415 *-*-aix*) conftest_s=' .machine "pwr5"
25416 .csect .text[PR]
25417 popcntb 3,3';;
25418 *) conftest_s=' .machine power5
25419 .text
25420 popcntb 3,3';;
25421 esac
25422
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25424 $as_echo_n "checking assembler for popcntb support... " >&6; }
25425 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25426 $as_echo_n "(cached) " >&6
25427 else
25428 gcc_cv_as_powerpc_popcntb=no
25429 if test $in_tree_gas = yes; then
25430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25431 then gcc_cv_as_powerpc_popcntb=yes
25432 fi
25433 elif test x$gcc_cv_as != x; then
25434 $as_echo "$conftest_s" > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_powerpc_popcntb=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25446 fi
25447 rm -f conftest.o conftest.s
25448 fi
25449 fi
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25451 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25452 if test $gcc_cv_as_powerpc_popcntb = yes; then
25453
25454 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25455
25456 fi
25457
25458 case $target in
25459 *-*-aix*) conftest_s=' .machine "pwr5x"
25460 .csect .text[PR]
25461 frin 1,1';;
25462 *) conftest_s=' .machine power5
25463 .text
25464 frin 1,1';;
25465 esac
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25468 $as_echo_n "checking assembler for fp round support... " >&6; }
25469 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_powerpc_fprnd=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25475 then gcc_cv_as_powerpc_fprnd=yes
25476 fi
25477 elif test x$gcc_cv_as != x; then
25478 $as_echo "$conftest_s" > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25485 then
25486 gcc_cv_as_powerpc_fprnd=yes
25487 else
25488 echo "configure: failed program was" >&5
25489 cat conftest.s >&5
25490 fi
25491 rm -f conftest.o conftest.s
25492 fi
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25495 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25496 if test $gcc_cv_as_powerpc_fprnd = yes; then
25497
25498 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25499
25500 fi
25501
25502 case $target in
25503 *-*-aix*) conftest_s=' .machine "pwr6"
25504 .csect .text[PR]
25505 mffgpr 1,3';;
25506 *) conftest_s=' .machine power6
25507 .text
25508 mffgpr 1,3';;
25509 esac
25510
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25512 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25513 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25515 else
25516 gcc_cv_as_powerpc_mfpgpr=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25519 then gcc_cv_as_powerpc_mfpgpr=yes
25520 fi
25521 elif test x$gcc_cv_as != x; then
25522 $as_echo "$conftest_s" > conftest.s
25523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25526 ac_status=$?
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25529 then
25530 gcc_cv_as_powerpc_mfpgpr=yes
25531 else
25532 echo "configure: failed program was" >&5
25533 cat conftest.s >&5
25534 fi
25535 rm -f conftest.o conftest.s
25536 fi
25537 fi
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25539 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25540 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25541
25542 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25543
25544 fi
25545
25546 case $target in
25547 *-*-aix*) conftest_s=' .csect .text[PR]
25548 LCF..0:
25549 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25550 *-*-darwin*)
25551 conftest_s=' .text
25552 LCF0:
25553 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25554 *) conftest_s=' .text
25555 .LCF0:
25556 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25557 esac
25558
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25560 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25561 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25563 else
25564 gcc_cv_as_powerpc_rel16=no
25565 if test $in_tree_gas = yes; then
25566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25567 then gcc_cv_as_powerpc_rel16=yes
25568 fi
25569 elif test x$gcc_cv_as != x; then
25570 $as_echo "$conftest_s" > conftest.s
25571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25573 (eval $ac_try) 2>&5
25574 ac_status=$?
25575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; }
25577 then
25578 gcc_cv_as_powerpc_rel16=yes
25579 else
25580 echo "configure: failed program was" >&5
25581 cat conftest.s >&5
25582 fi
25583 rm -f conftest.o conftest.s
25584 fi
25585 fi
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25587 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25588 if test $gcc_cv_as_powerpc_rel16 = yes; then
25589
25590 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25591
25592 fi
25593
25594 case $target in
25595 *-*-aix*) conftest_s=' .machine "pwr6"
25596 .csect .text[PR]
25597 cmpb 3,4,5';;
25598 *) conftest_s=' .machine power6
25599 .text
25600 cmpb 3,4,5';;
25601 esac
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25604 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25605 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_powerpc_cmpb=no
25609 if test $in_tree_gas = yes; then
25610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25611 then gcc_cv_as_powerpc_cmpb=yes
25612 fi
25613 elif test x$gcc_cv_as != x; then
25614 $as_echo "$conftest_s" > conftest.s
25615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25617 (eval $ac_try) 2>&5
25618 ac_status=$?
25619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25620 test $ac_status = 0; }; }
25621 then
25622 gcc_cv_as_powerpc_cmpb=yes
25623 else
25624 echo "configure: failed program was" >&5
25625 cat conftest.s >&5
25626 fi
25627 rm -f conftest.o conftest.s
25628 fi
25629 fi
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25631 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25632 if test $gcc_cv_as_powerpc_cmpb = yes; then
25633
25634 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25635
25636 fi
25637
25638 case $target in
25639 *-*-aix*) conftest_s=' .machine "pwr6"
25640 .csect .text[PR]
25641 dadd 1,2,3';;
25642 *) conftest_s=' .machine power6
25643 .text
25644 dadd 1,2,3';;
25645 esac
25646
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25648 $as_echo_n "checking assembler for decimal float support... " >&6; }
25649 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25651 else
25652 gcc_cv_as_powerpc_dfp=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25655 then gcc_cv_as_powerpc_dfp=yes
25656 fi
25657 elif test x$gcc_cv_as != x; then
25658 $as_echo "$conftest_s" > conftest.s
25659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25665 then
25666 gcc_cv_as_powerpc_dfp=yes
25667 else
25668 echo "configure: failed program was" >&5
25669 cat conftest.s >&5
25670 fi
25671 rm -f conftest.o conftest.s
25672 fi
25673 fi
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25675 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25676 if test $gcc_cv_as_powerpc_dfp = yes; then
25677
25678 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25679
25680 fi
25681
25682 case $target in
25683 *-*-aix*) conftest_s=' .machine "pwr7"
25684 .csect .text[PR]
25685 lxvd2x 1,2,3';;
25686 *) conftest_s=' .machine power7
25687 .text
25688 lxvd2x 1,2,3';;
25689 esac
25690
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25692 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25693 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_powerpc_vsx=no
25697 if test $in_tree_gas = yes; then
25698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25699 then gcc_cv_as_powerpc_vsx=yes
25700 fi
25701 elif test x$gcc_cv_as != x; then
25702 $as_echo "$conftest_s" > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_powerpc_vsx=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25714 fi
25715 rm -f conftest.o conftest.s
25716 fi
25717 fi
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25719 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25720 if test $gcc_cv_as_powerpc_vsx = yes; then
25721
25722 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25723
25724 fi
25725
25726 case $target in
25727 *-*-aix*) conftest_s=' .machine "pwr7"
25728 .csect .text[PR]
25729 popcntd 3,3';;
25730 *) conftest_s=' .machine power7
25731 .text
25732 popcntd 3,3';;
25733 esac
25734
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25736 $as_echo_n "checking assembler for popcntd support... " >&6; }
25737 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25739 else
25740 gcc_cv_as_powerpc_popcntd=no
25741 if test $in_tree_gas = yes; then
25742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25743 then gcc_cv_as_powerpc_popcntd=yes
25744 fi
25745 elif test x$gcc_cv_as != x; then
25746 $as_echo "$conftest_s" > conftest.s
25747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25750 ac_status=$?
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25753 then
25754 gcc_cv_as_powerpc_popcntd=yes
25755 else
25756 echo "configure: failed program was" >&5
25757 cat conftest.s >&5
25758 fi
25759 rm -f conftest.o conftest.s
25760 fi
25761 fi
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25763 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25764 if test $gcc_cv_as_powerpc_popcntd = yes; then
25765
25766 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25767
25768 fi
25769
25770 case $target in
25771 *-*-aix*) conftest_s=' .machine "pwr8"
25772 .csect .text[PR]';;
25773 *) conftest_s=' .machine power8
25774 .text';;
25775 esac
25776
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25778 $as_echo_n "checking assembler for power8 support... " >&6; }
25779 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25781 else
25782 gcc_cv_as_powerpc_power8=no
25783 if test $in_tree_gas = yes; then
25784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25785 then gcc_cv_as_powerpc_power8=yes
25786 fi
25787 elif test x$gcc_cv_as != x; then
25788 $as_echo "$conftest_s" > conftest.s
25789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25791 (eval $ac_try) 2>&5
25792 ac_status=$?
25793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25794 test $ac_status = 0; }; }
25795 then
25796 gcc_cv_as_powerpc_power8=yes
25797 else
25798 echo "configure: failed program was" >&5
25799 cat conftest.s >&5
25800 fi
25801 rm -f conftest.o conftest.s
25802 fi
25803 fi
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25805 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25806 if test $gcc_cv_as_powerpc_power8 = yes; then
25807
25808 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25809
25810 fi
25811
25812 case $target in
25813 *-*-aix*) conftest_s=' .csect .text[PR]
25814 lwsync';;
25815 *) conftest_s=' .text
25816 lwsync';;
25817 esac
25818
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25820 $as_echo_n "checking assembler for lwsync support... " >&6; }
25821 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25823 else
25824 gcc_cv_as_powerpc_lwsync=no
25825 if test $in_tree_gas = yes; then
25826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25827 then gcc_cv_as_powerpc_lwsync=yes
25828 fi
25829 elif test x$gcc_cv_as != x; then
25830 $as_echo "$conftest_s" > conftest.s
25831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25837 then
25838 gcc_cv_as_powerpc_lwsync=yes
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25842 fi
25843 rm -f conftest.o conftest.s
25844 fi
25845 fi
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25847 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25848 if test $gcc_cv_as_powerpc_lwsync = yes; then
25849
25850 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25851
25852 fi
25853
25854 case $target in
25855 *-*-aix*) conftest_s=' .machine "476"
25856 .csect .text[PR]
25857 dci 0';;
25858 *) conftest_s=' .machine "476"
25859 .text
25860 dci 0';;
25861 esac
25862
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25864 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25865 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25866 $as_echo_n "(cached) " >&6
25867 else
25868 gcc_cv_as_powerpc_dci=no
25869 if test $in_tree_gas = yes; then
25870 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25871 then gcc_cv_as_powerpc_dci=yes
25872 fi
25873 elif test x$gcc_cv_as != x; then
25874 $as_echo "$conftest_s" > conftest.s
25875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25880 test $ac_status = 0; }; }
25881 then
25882 gcc_cv_as_powerpc_dci=yes
25883 else
25884 echo "configure: failed program was" >&5
25885 cat conftest.s >&5
25886 fi
25887 rm -f conftest.o conftest.s
25888 fi
25889 fi
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25891 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25892 if test $gcc_cv_as_powerpc_dci = yes; then
25893
25894 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25895
25896 fi
25897
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25899 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25900 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25901 $as_echo_n "(cached) " >&6
25902 else
25903 gcc_cv_as_powerpc_gnu_attribute=no
25904 if test $in_tree_gas = yes; then
25905 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25906 then gcc_cv_as_powerpc_gnu_attribute=yes
25907 fi
25908 elif test x$gcc_cv_as != x; then
25909 $as_echo '.gnu_attribute 4,1' > conftest.s
25910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25913 ac_status=$?
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }
25916 then
25917 gcc_cv_as_powerpc_gnu_attribute=yes
25918 else
25919 echo "configure: failed program was" >&5
25920 cat conftest.s >&5
25921 fi
25922 rm -f conftest.o conftest.s
25923 fi
25924 fi
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25926 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25927 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25928
25929 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25930
25931 fi
25932
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25934 $as_echo_n "checking assembler for tls marker support... " >&6; }
25935 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25936 $as_echo_n "(cached) " >&6
25937 else
25938 gcc_cv_as_powerpc_tls_markers=no
25939 if test $in_tree_gas = yes; then
25940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25941 then gcc_cv_as_powerpc_tls_markers=yes
25942 fi
25943 elif test x$gcc_cv_as != x; then
25944 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25951 then
25952 gcc_cv_as_powerpc_tls_markers=yes
25953 else
25954 echo "configure: failed program was" >&5
25955 cat conftest.s >&5
25956 fi
25957 rm -f conftest.o conftest.s
25958 fi
25959 fi
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25961 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25962 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25963
25964 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25965
25966 fi
25967
25968 case $target in
25969 *-*-aix*)
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25971 $as_echo_n "checking assembler for .ref support... " >&6; }
25972 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25974 else
25975 gcc_cv_as_aix_ref=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25978 then gcc_cv_as_aix_ref=yes
25979 fi
25980 elif test x$gcc_cv_as != x; then
25981 $as_echo ' .csect stuff[rw]
25982 stuff:
25983 .long 1
25984 .extern sym
25985 .ref sym
25986 ' > conftest.s
25987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25990 ac_status=$?
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25993 then
25994 gcc_cv_as_aix_ref=yes
25995 else
25996 echo "configure: failed program was" >&5
25997 cat conftest.s >&5
25998 fi
25999 rm -f conftest.o conftest.s
26000 fi
26001 fi
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26003 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26004 if test $gcc_cv_as_aix_ref = yes; then
26005
26006 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26007
26008 fi
26009 ;;
26010 esac
26011 ;;
26012
26013 mips*-*-*)
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26015 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26016 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26019 gcc_cv_as_mips_explicit_relocs=no
26020 if test $in_tree_gas = yes; then
26021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26022 then gcc_cv_as_mips_explicit_relocs=yes
26023 fi
26024 elif test x$gcc_cv_as != x; then
26025 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26029 ac_status=$?
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26032 then
26033 gcc_cv_as_mips_explicit_relocs=yes
26034 else
26035 echo "configure: failed program was" >&5
26036 cat conftest.s >&5
26037 fi
26038 rm -f conftest.o conftest.s
26039 fi
26040 fi
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26042 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26043 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26044 if test x$target_cpu_default = x
26045 then target_cpu_default=MASK_EXPLICIT_RELOCS
26046 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26047 fi
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26050 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26051 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_mips_no_shared=no
26055 if test $in_tree_gas = yes; then
26056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26057 then gcc_cv_as_mips_no_shared=yes
26058 fi
26059 elif test x$gcc_cv_as != x; then
26060 $as_echo 'nop' > conftest.s
26061 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26064 ac_status=$?
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26067 then
26068 gcc_cv_as_mips_no_shared=yes
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26072 fi
26073 rm -f conftest.o conftest.s
26074 fi
26075 fi
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26077 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26078 if test $gcc_cv_as_mips_no_shared = yes; then
26079
26080 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26081
26082 fi
26083
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26085 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26086 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26087 $as_echo_n "(cached) " >&6
26088 else
26089 gcc_cv_as_mips_gnu_attribute=no
26090 if test $in_tree_gas = yes; then
26091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26092 then gcc_cv_as_mips_gnu_attribute=yes
26093 fi
26094 elif test x$gcc_cv_as != x; then
26095 $as_echo '.gnu_attribute 4,1' > conftest.s
26096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26098 (eval $ac_try) 2>&5
26099 ac_status=$?
26100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26101 test $ac_status = 0; }; }
26102 then
26103 gcc_cv_as_mips_gnu_attribute=yes
26104 else
26105 echo "configure: failed program was" >&5
26106 cat conftest.s >&5
26107 fi
26108 rm -f conftest.o conftest.s
26109 fi
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26112 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26113 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26114
26115 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26116
26117 fi
26118
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26120 $as_echo_n "checking assembler for .micromips support... " >&6; }
26121 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26124 gcc_cv_as_micromips_support=no
26125 if test x$gcc_cv_as != x; then
26126 $as_echo '.set micromips' > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 gcc_cv_as_micromips_support=yes
26135 else
26136 echo "configure: failed program was" >&5
26137 cat conftest.s >&5
26138 fi
26139 rm -f conftest.o conftest.s
26140 fi
26141 fi
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26143 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26144 if test $gcc_cv_as_micromips_support = yes; then
26145
26146 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26147
26148 fi
26149
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26151 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26152 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26153 $as_echo_n "(cached) " >&6
26154 else
26155 gcc_cv_as_mips_dtprelword=no
26156 if test $in_tree_gas = yes; then
26157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26158 then gcc_cv_as_mips_dtprelword=yes
26159 fi
26160 elif test x$gcc_cv_as != x; then
26161 $as_echo '.section .tdata,"awT",@progbits
26162 x:
26163 .word 2
26164 .text
26165 .dtprelword x+0x8000' > conftest.s
26166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26172 then
26173 gcc_cv_as_mips_dtprelword=yes
26174 else
26175 echo "configure: failed program was" >&5
26176 cat conftest.s >&5
26177 fi
26178 rm -f conftest.o conftest.s
26179 fi
26180 fi
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26182 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26183 if test $gcc_cv_as_mips_dtprelword = yes; then
26184
26185 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26186
26187 fi
26188
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26190 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26191 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26192 $as_echo_n "(cached) " >&6
26193 else
26194 gcc_cv_as_mips_dspr1_mult=no
26195 if test x$gcc_cv_as != x; then
26196 $as_echo ' .set mips32r2
26197 .set nodspr2
26198 .set dsp
26199 madd $ac3,$4,$5
26200 maddu $ac3,$4,$5
26201 msub $ac3,$4,$5
26202 msubu $ac3,$4,$5
26203 mult $ac3,$4,$5
26204 multu $ac3,$4,$5' > conftest.s
26205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26207 (eval $ac_try) 2>&5
26208 ac_status=$?
26209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210 test $ac_status = 0; }; }
26211 then
26212 gcc_cv_as_mips_dspr1_mult=yes
26213 else
26214 echo "configure: failed program was" >&5
26215 cat conftest.s >&5
26216 fi
26217 rm -f conftest.o conftest.s
26218 fi
26219 fi
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26221 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26222 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26223
26224 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26225
26226 fi
26227
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26229 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26230 gcc_cv_as_ld_jalr_reloc=no
26231 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26232 if test $in_tree_ld = yes ; then
26233 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
26234 && test $in_tree_ld_is_elf = yes; then
26235 gcc_cv_as_ld_jalr_reloc=yes
26236 fi
26237 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26238 echo ' .ent x' > conftest.s
26239 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26240 echo ' lw $25,%call16(y)($28)' >> conftest.s
26241 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26242 echo '1: jalr $25' >> conftest.s
26243 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26244 echo '1: jalr $25' >> conftest.s
26245 echo ' .end x' >> conftest.s
26246 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26247 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26248 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26249 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26250 gcc_cv_as_ld_jalr_reloc=yes
26251 fi
26252 fi
26253 rm -f conftest.*
26254 fi
26255 fi
26256 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26257 if test x$target_cpu_default = x; then
26258 target_cpu_default=MASK_RELAX_PIC_CALLS
26259 else
26260 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26261 fi
26262 fi
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26264 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26265
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26267 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26268 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26271 gcc_cv_ld_mips_personality_relaxation=no
26272 if test $in_tree_ld = yes ; then
26273 if test "$gcc_cv_gld_major_version" -eq 2 \
26274 -a "$gcc_cv_gld_minor_version" -ge 21 \
26275 -o "$gcc_cv_gld_major_version" -gt 2; then
26276 gcc_cv_ld_mips_personality_relaxation=yes
26277 fi
26278 elif test x$gcc_cv_as != x \
26279 -a x$gcc_cv_ld != x \
26280 -a x$gcc_cv_readelf != x ; then
26281 cat > conftest.s <<EOF
26282 .cfi_startproc
26283 .cfi_personality 0x80,indirect_ptr
26284 .ent test
26285 test:
26286 nop
26287 .end test
26288 .cfi_endproc
26289
26290 .section .data,"aw",@progbits
26291 indirect_ptr:
26292 .dc.a personality
26293 EOF
26294 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26295 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26296 if $gcc_cv_readelf -d conftest 2>&1 \
26297 | grep TEXTREL > /dev/null 2>&1; then
26298 :
26299 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26300 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26301 :
26302 else
26303 gcc_cv_ld_mips_personality_relaxation=yes
26304 fi
26305 fi
26306 fi
26307 rm -f conftest.s conftest.o conftest
26308 fi
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26310 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26311 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26312
26313 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26314
26315 fi
26316
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26318 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26319 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26321 else
26322 gcc_cv_as_mips_nan=no
26323 if test x$gcc_cv_as != x; then
26324 $as_echo '' > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 gcc_cv_as_mips_nan=yes
26333 else
26334 echo "configure: failed program was" >&5
26335 cat conftest.s >&5
26336 fi
26337 rm -f conftest.o conftest.s
26338 fi
26339 fi
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26341 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26342 if test $gcc_cv_as_mips_nan = yes; then
26343
26344 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26345
26346 fi
26347 if test x$gcc_cv_as_mips_nan = xno \
26348 && test x$with_nan != x; then
26349 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26350 fi
26351 ;;
26352 esac
26353
26354 # Mips and HP-UX need the GNU assembler.
26355 # Linux on IA64 might be able to use the Intel assembler.
26356
26357 case "$target" in
26358 mips*-*-* | *-*-hpux* )
26359 if test x$gas_flag = xyes \
26360 || test x"$host" != x"$build" \
26361 || test ! -x "$gcc_cv_as" \
26362 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26363 :
26364 else
26365 echo "*** This configuration requires the GNU assembler" >&2
26366 exit 1
26367 fi
26368 ;;
26369 esac
26370
26371 # ??? Not all targets support dwarf2 debug_line, even within a version
26372 # of gas. Moreover, we need to emit a valid instruction to trigger any
26373 # info to the output file. So, as supported targets are added to gas 2.11,
26374 # add some instruction here to (also) show we expect this might work.
26375 # ??? Once 2.11 is released, probably need to add first known working
26376 # version to the per-target configury.
26377 case "$cpu_type" in
26378 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26379 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26380 | xstormy16 | xtensa)
26381 insn="nop"
26382 ;;
26383 ia64 | s390)
26384 insn="nop 0"
26385 ;;
26386 mmix)
26387 insn="swym 0"
26388 ;;
26389 esac
26390 if test x"$insn" != x; then
26391 conftest_s="\
26392 .file 1 \"conftest.s\"
26393 .loc 1 3 0
26394 $insn"
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26396 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26397 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
26399 else
26400 gcc_cv_as_dwarf2_debug_line=no
26401 if test $in_tree_gas = yes; then
26402 if test $in_tree_gas_is_elf = yes \
26403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26404 then gcc_cv_as_dwarf2_debug_line=yes
26405 fi
26406 elif test x$gcc_cv_as != x; then
26407 $as_echo "$conftest_s" > conftest.s
26408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26410 (eval $ac_try) 2>&5
26411 ac_status=$?
26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26413 test $ac_status = 0; }; }
26414 then
26415 if test x$gcc_cv_objdump != x \
26416 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26417 | grep debug_line > /dev/null 2>&1; then
26418 gcc_cv_as_dwarf2_debug_line=yes
26419 fi
26420 else
26421 echo "configure: failed program was" >&5
26422 cat conftest.s >&5
26423 fi
26424 rm -f conftest.o conftest.s
26425 fi
26426 fi
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26428 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26429
26430
26431 # The .debug_line file table must be in the exact order that
26432 # we specified the files, since these indices are also used
26433 # by DW_AT_decl_file. Approximate this test by testing if
26434 # the assembler bitches if the same index is assigned twice.
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26436 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26437 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26438 $as_echo_n "(cached) " >&6
26439 else
26440 gcc_cv_as_dwarf2_file_buggy=no
26441 if test x$gcc_cv_as != x; then
26442 $as_echo ' .file 1 "foo.s"
26443 .file 1 "bar.s"' > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 gcc_cv_as_dwarf2_file_buggy=yes
26452 else
26453 echo "configure: failed program was" >&5
26454 cat conftest.s >&5
26455 fi
26456 rm -f conftest.o conftest.s
26457 fi
26458 fi
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26460 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26461
26462
26463 if test $gcc_cv_as_dwarf2_debug_line = yes \
26464 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26465
26466 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26467
26468 fi
26469
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26471 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26472 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26473 $as_echo_n "(cached) " >&6
26474 else
26475 gcc_cv_as_gdwarf2_flag=no
26476 if test $in_tree_gas = yes; then
26477 if test $in_tree_gas_is_elf = yes \
26478 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26479 then gcc_cv_as_gdwarf2_flag=yes
26480 fi
26481 elif test x$gcc_cv_as != x; then
26482 $as_echo "$insn" > conftest.s
26483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26489 then
26490 gcc_cv_as_gdwarf2_flag=yes
26491 else
26492 echo "configure: failed program was" >&5
26493 cat conftest.s >&5
26494 fi
26495 rm -f conftest.o conftest.s
26496 fi
26497 fi
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26499 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26500 if test $gcc_cv_as_gdwarf2_flag = yes; then
26501
26502 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26503
26504 fi
26505
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26507 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26508 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26509 $as_echo_n "(cached) " >&6
26510 else
26511 gcc_cv_as_gstabs_flag=no
26512 if test $in_tree_gas = yes; then
26513 if test $in_tree_gas_is_elf = yes \
26514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26515 then gcc_cv_as_gstabs_flag=yes
26516 fi
26517 elif test x$gcc_cv_as != x; then
26518 $as_echo "$insn" > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 gcc_cv_as_gstabs_flag=yes
26527 else
26528 echo "configure: failed program was" >&5
26529 cat conftest.s >&5
26530 fi
26531 rm -f conftest.o conftest.s
26532 fi
26533 fi
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26535 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26536 if test $gcc_cv_as_gstabs_flag = yes; then
26537
26538 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26539
26540 fi
26541
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26543 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26544 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26546 else
26547 gcc_cv_as_debug_prefix_map_flag=no
26548 if test $in_tree_gas = yes; then
26549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26550 then gcc_cv_as_debug_prefix_map_flag=yes
26551 fi
26552 elif test x$gcc_cv_as != x; then
26553 $as_echo "$insn" > conftest.s
26554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26557 ac_status=$?
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26560 then
26561 gcc_cv_as_debug_prefix_map_flag=yes
26562 else
26563 echo "configure: failed program was" >&5
26564 cat conftest.s >&5
26565 fi
26566 rm -f conftest.o conftest.s
26567 fi
26568 fi
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26570 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26571 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26572
26573 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26574
26575 fi
26576 fi
26577
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26579 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26580 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26582 else
26583 gcc_cv_as_compress_debug=no
26584 if test x$gcc_cv_as != x; then
26585 $as_echo '' > conftest.s
26586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26592 then
26593 # gas compiled without zlib cannot compress debug sections and warns
26594 # about it, but still exits successfully. So check for this, too.
26595 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26596 then
26597 gcc_cv_as_compress_debug=0
26598 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26599 then
26600 gcc_cv_as_compress_debug=1
26601 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26602 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26603 else
26604 gcc_cv_as_compress_debug=0
26605 # FIXME: Future gas versions will support ELF gABI style via
26606 # --compress-debug-sections[=type].
26607 fi
26608 else
26609 echo "configure: failed program was" >&5
26610 cat conftest.s >&5
26611 fi
26612 rm -f conftest.o conftest.s
26613 fi
26614 fi
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26616 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26617
26618
26619 cat >>confdefs.h <<_ACEOF
26620 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26621 _ACEOF
26622
26623
26624 cat >>confdefs.h <<_ACEOF
26625 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26626 _ACEOF
26627
26628
26629 cat >>confdefs.h <<_ACEOF
26630 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26631 _ACEOF
26632
26633
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26635 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26636 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26637 $as_echo_n "(cached) " >&6
26638 else
26639 gcc_cv_as_lcomm_with_alignment=no
26640 if test x$gcc_cv_as != x; then
26641 $as_echo '.lcomm bar,4,16' > conftest.s
26642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; }
26648 then
26649 gcc_cv_as_lcomm_with_alignment=yes
26650 else
26651 echo "configure: failed program was" >&5
26652 cat conftest.s >&5
26653 fi
26654 rm -f conftest.o conftest.s
26655 fi
26656 fi
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26658 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26659 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26660
26661 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26662
26663 fi
26664
26665 if test x$with_sysroot = x && test x$host = x$target \
26666 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26667 && test "$prefix" != "NONE"; then
26668
26669 cat >>confdefs.h <<_ACEOF
26670 #define PREFIX_INCLUDE_DIR "$prefix/include"
26671 _ACEOF
26672
26673 fi
26674
26675 # Determine the version of glibc, if any, used on the target.
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26677 $as_echo_n "checking for target glibc version... " >&6; }
26678
26679 # Check whether --with-glibc-version was given.
26680 if test "${with_glibc_version+set}" = set; then :
26681 withval=$with_glibc_version;
26682 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26683 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26684 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26685 else
26686 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26687 fi
26688 else
26689
26690 glibc_version_major=0
26691 glibc_version_minor=0
26692 if test -f $target_header_dir/features.h \
26693 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26694 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26695 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26696 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26697 fi
26698 fi
26699
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26701 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26702
26703 # Check whether --enable-gnu-unique-object was given.
26704 if test "${enable_gnu_unique_object+set}" = set; then :
26705 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26706 yes | no) ;;
26707 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26708 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26709 esac
26710 else
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26712 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26713 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26714 $as_echo_n "(cached) " >&6
26715 else
26716 gcc_cv_as_gnu_unique_object=no
26717 if test $in_tree_gas = yes; then
26718 if test $in_tree_gas_is_elf = yes \
26719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26720 then gcc_cv_as_gnu_unique_object=yes
26721 fi
26722 elif test x$gcc_cv_as != x; then
26723 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 gcc_cv_as_gnu_unique_object=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26735 fi
26736 rm -f conftest.o conftest.s
26737 fi
26738 fi
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26740 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26741 if test $gcc_cv_as_gnu_unique_object = yes; then
26742 # We need to unquote above to to use the definition from config.gcc.
26743 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26744
26745 if test $glibc_version_major -gt 2 \
26746 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26747 enable_gnu_unique_object=yes
26748 fi
26749
26750 fi
26751 fi
26752
26753 if test x$enable_gnu_unique_object = xyes; then
26754
26755 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26756
26757 fi
26758
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26760 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26761 if test "${gcc_cv_as_line_zero+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26763 else
26764 gcc_cv_as_line_zero=no
26765 if test $in_tree_gas = yes; then
26766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26767 then gcc_cv_as_line_zero=yes
26768 fi
26769 elif test "x$gcc_cv_as" != x; then
26770 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26771 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26776 test $ac_status = 0; }; } &&
26777 test "x`cat conftest.out`" = x
26778 then
26779 gcc_cv_as_line_zero=yes
26780 else
26781 echo "configure: failed program was" >&5
26782 cat conftest.s >&5
26783 echo "configure: error output was" >&5
26784 cat conftest.out >&5
26785 fi
26786 rm -f conftest.o conftest.s conftest.out
26787 fi
26788 fi
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26790 $as_echo "$gcc_cv_as_line_zero" >&6; }
26791 if test "x$gcc_cv_as_line_zero" = xyes; then
26792
26793 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26794
26795 fi
26796
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26798 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26799 gcc_cv_ld_eh_frame_hdr=no
26800 if test $in_tree_ld = yes ; then
26801 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
26802 && test $in_tree_ld_is_elf = yes; then
26803 gcc_cv_ld_eh_frame_hdr=yes
26804 fi
26805 elif test x$gcc_cv_ld != x; then
26806 if echo "$ld_ver" | grep GNU > /dev/null; then
26807 # Check if linker supports --eh-frame-hdr option
26808 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26809 gcc_cv_ld_eh_frame_hdr=yes
26810 fi
26811 else
26812 case "$target" in
26813 *-*-solaris2*)
26814 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26815 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26816 gcc_cv_ld_eh_frame_hdr=yes
26817 fi
26818 ;;
26819 esac
26820 fi
26821 fi
26822
26823 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26824
26825 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26826
26827 fi
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26829 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26830
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26832 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26833 gcc_cv_ld_eh_frame_ciev3=no
26834 if test $in_tree_ld = yes ; then
26835 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
26836 && test $in_tree_ld_is_elf = yes; then
26837 gcc_cv_ld_eh_frame_ciev3=yes
26838 fi
26839 elif test x$gcc_cv_ld != x; then
26840 if echo "$ld_ver" | grep GNU > /dev/null; then
26841 gcc_cv_ld_eh_frame_ciev3=yes
26842 if test 0"$ld_date" -lt 20040513; then
26843 if test -n "$ld_date"; then
26844 # If there was date string, but was earlier than 2004-05-13, fail
26845 gcc_cv_ld_eh_frame_ciev3=no
26846 elif test "$ld_vers_major" -lt 2; then
26847 gcc_cv_ld_eh_frame_ciev3=no
26848 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26849 gcc_cv_ld_eh_frame_ciev3=no
26850 fi
26851 fi
26852 else
26853 case "$target" in
26854 *-*-solaris2*)
26855 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26856 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26857 gcc_cv_ld_eh_frame_ciev3=yes
26858 fi
26859 ;;
26860 esac
26861 fi
26862 fi
26863
26864 cat >>confdefs.h <<_ACEOF
26865 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26866 _ACEOF
26867
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26869 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26870
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26872 $as_echo_n "checking linker position independent executable support... " >&6; }
26873 gcc_cv_ld_pie=no
26874 if test $in_tree_ld = yes ; then
26875 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26876 && test $in_tree_ld_is_elf = yes; then
26877 gcc_cv_ld_pie=yes
26878 fi
26879 elif test x$gcc_cv_ld != x; then
26880 # Check if linker supports -pie option
26881 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26882 gcc_cv_ld_pie=yes
26883 fi
26884 fi
26885 if test x"$gcc_cv_ld_pie" = xyes; then
26886
26887 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26888
26889 fi
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26891 $as_echo "$gcc_cv_ld_pie" >&6; }
26892
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26894 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26895 gcc_cv_ld_eh_gc_sections=no
26896 if test $in_tree_ld = yes ; then
26897 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
26898 && test $in_tree_ld_is_elf = yes; then
26899 gcc_cv_ld_eh_gc_sections=yes
26900 fi
26901 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26902 cat > conftest.s <<EOF
26903 .section .text
26904 .globl _start
26905 .type _start, @function
26906 _start:
26907 .long foo
26908 .size _start, .-_start
26909 .section .text.foo,"ax",@progbits
26910 .type foo, @function
26911 foo:
26912 .long 0
26913 .size foo, .-foo
26914 .section .gcc_except_table.foo,"a",@progbits
26915 .L0:
26916 .long 0
26917 .section .eh_frame,"a",@progbits
26918 .long .L0
26919 EOF
26920 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26921 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26922 | grep "gc-sections option ignored" > /dev/null; then
26923 gcc_cv_ld_eh_gc_sections=no
26924 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26925 | grep gcc_except_table > /dev/null; then
26926 gcc_cv_ld_eh_gc_sections=yes
26927 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26928 if test x$gcc_cv_as_comdat_group != xyes; then
26929 gcc_cv_ld_eh_gc_sections=no
26930 cat > conftest.s <<EOF
26931 .section .text
26932 .globl _start
26933 .type _start, @function
26934 _start:
26935 .long foo
26936 .size _start, .-_start
26937 .section .gnu.linkonce.t.foo,"ax",@progbits
26938 .type foo, @function
26939 foo:
26940 .long 0
26941 .size foo, .-foo
26942 .section .gcc_except_table.foo,"a",@progbits
26943 .L0:
26944 .long 0
26945 .section .eh_frame,"a",@progbits
26946 .long .L0
26947 EOF
26948 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26949 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26950 | grep "gc-sections option ignored" > /dev/null; then
26951 gcc_cv_ld_eh_gc_sections=no
26952 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26953 | grep gcc_except_table > /dev/null; then
26954 gcc_cv_ld_eh_gc_sections=yes
26955 fi
26956 fi
26957 fi
26958 fi
26959 fi
26960 rm -f conftest.s conftest.o conftest
26961 fi
26962 case "$target" in
26963 hppa*-*-linux*)
26964 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26965 gcc_cv_ld_eh_gc_sections=no
26966 ;;
26967 esac
26968 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26969
26970 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26971
26972 fi
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26974 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26975
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26977 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26978 gcc_cv_ld_eh_gc_sections_bug=no
26979 if test $in_tree_ld = yes ; then
26980 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26981 && test $in_tree_ld_is_elf = yes; then
26982 gcc_cv_ld_eh_gc_sections_bug=yes
26983 fi
26984 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26985 gcc_cv_ld_eh_gc_sections_bug=yes
26986 cat > conftest.s <<EOF
26987 .section .text
26988 .globl _start
26989 .type _start, @function
26990 _start:
26991 .long foo
26992 .size _start, .-_start
26993 .section .text.startup.foo,"ax",@progbits
26994 .type foo, @function
26995 foo:
26996 .long 0
26997 .size foo, .-foo
26998 .section .gcc_except_table.foo,"a",@progbits
26999 .L0:
27000 .long 0
27001 .section .eh_frame,"a",@progbits
27002 .long .L0
27003 EOF
27004 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27005 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27006 | grep "gc-sections option ignored" > /dev/null; then
27007 :
27008 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27009 | grep gcc_except_table > /dev/null; then
27010 gcc_cv_ld_eh_gc_sections_bug=no
27011 fi
27012 fi
27013 rm -f conftest.s conftest.o conftest
27014 fi
27015 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27016
27017 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27018
27019 fi
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27021 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27022
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27024 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27025 # gold/gld support compressed debug sections since binutils 2.19/2.21
27026 if test $in_tree_ld = yes ; then
27027 gcc_cv_ld_compress_debug=0
27028 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27029 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27030 gcc_cv_ld_compress_debug=2
27031 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27032 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27033 && test $in_tree_ld_is_elf = yes; then
27034 gcc_cv_ld_compress_debug=1
27035 fi
27036 elif echo "$ld_ver" | grep GNU > /dev/null; then
27037 gcc_cv_ld_compress_debug=1
27038 if test 0"$ld_date" -lt 20050308; then
27039 if test -n "$ld_date"; then
27040 # If there was date string, but was earlier than 2005-03-08, fail
27041 gcc_cv_ld_compress_debug=0
27042 elif test "$ld_vers_major" -lt 2; then
27043 gcc_cv_ld_compress_debug=0
27044 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27045 gcc_cv_ld_compress_debug=0
27046 fi
27047 fi
27048 if test $ld_is_gold = yes; then
27049 gcc_cv_ld_compress_debug=2
27050 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27051 fi
27052 else
27053 case "${target}" in
27054 *-*-solaris2*)
27055 # Introduced in Solaris 11.2.
27056 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27057 gcc_cv_ld_compress_debug=3
27058 gcc_cv_ld_compress_debug_option="-z compress-sections"
27059 else
27060 gcc_cv_ld_compress_debug=0
27061 fi
27062 ;;
27063 *)
27064 # Assume linkers other than GNU ld don't support compessed debug
27065 # sections.
27066 gcc_cv_ld_compress_debug=0
27067 ;;
27068 esac
27069 fi
27070
27071 cat >>confdefs.h <<_ACEOF
27072 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27073 _ACEOF
27074
27075
27076 cat >>confdefs.h <<_ACEOF
27077 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27078 _ACEOF
27079
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27081 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27082
27083 # --------
27084 # UNSORTED
27085 # --------
27086
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27088 $as_echo_n "checking linker --as-needed support... " >&6; }
27089 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27090 $as_echo_n "(cached) " >&6
27091 else
27092 gcc_cv_ld_as_needed=no
27093 gcc_cv_ld_as_needed_option='--as-needed'
27094 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27095 if test $in_tree_ld = yes ; then
27096 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27097 && test $in_tree_ld_is_elf = yes; then
27098 gcc_cv_ld_as_needed=yes
27099 fi
27100 elif test x$gcc_cv_ld != x; then
27101 # Check if linker supports --as-needed and --no-as-needed options
27102 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27103 gcc_cv_ld_as_needed=yes
27104 else
27105 case "$target" in
27106 # Solaris 2 ld always supports -z ignore/-z record.
27107 *-*-solaris2*)
27108 gcc_cv_ld_as_needed=yes
27109 gcc_cv_ld_as_needed_option="-z ignore"
27110 gcc_cv_ld_no_as_needed_option="-z record"
27111 ;;
27112 esac
27113 fi
27114 fi
27115 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27116 # dl_iterate_phdr, i.e. since Solaris 11.
27117 case "$target" in
27118 *-*-solaris2.1[1-9]*)
27119 case "$target" in
27120 i?86-*-* | x86_64-*-*)
27121 if echo "$ld_ver" | grep GNU > /dev/null; then
27122 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27123 gcc_cv_ld_as_needed=no
27124 fi
27125 ;;
27126 esac
27127 ;;
27128 *-*-solaris2*)
27129 gcc_cv_ld_as_needed=no
27130 ;;
27131 esac
27132
27133 fi
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27135 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27136 if test x"$gcc_cv_ld_as_needed" = xyes; then
27137
27138 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27139
27140
27141 cat >>confdefs.h <<_ACEOF
27142 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27143 _ACEOF
27144
27145
27146 cat >>confdefs.h <<_ACEOF
27147 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27148 _ACEOF
27149
27150 fi
27151
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27153 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27154 saved_LDFLAGS="$LDFLAGS"
27155 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27156 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27158 /* end confdefs.h. */
27159 int main(void) {return 0;}
27160 _ACEOF
27161 if ac_fn_c_try_link "$LINENO"; then :
27162 gcc_cv_ld_clearcap=yes; break
27163 else
27164 gcc_cv_ld_clearcap=no
27165 fi
27166 rm -f core conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
27168 done
27169 LDFLAGS="$saved_LDFLAGS"
27170 if test "x$gcc_cv_ld_clearcap" = xyes; then
27171
27172 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27173
27174 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27175
27176 fi
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27178 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27179
27180 case "$target:$tm_file" in
27181 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27182 case "$target" in
27183 *le-*-linux*)
27184 emul_name="-melf64lppc"
27185 ;;
27186 *-*-linux*)
27187 emul_name="-melf64ppc"
27188 ;;
27189 *-*-freebsd*)
27190 emul_name="-melf64ppc_fbsd"
27191 ;;
27192 esac
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27194 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27195 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_ld_no_dot_syms=no
27199 if test x"$ld_is_gold" = xyes; then
27200 gcc_cv_ld_no_dot_syms=yes
27201 elif test $in_tree_ld = yes ; then
27202 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
27203 gcc_cv_ld_no_dot_syms=yes
27204 fi
27205 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27206 cat > conftest1.s <<EOF
27207 .text
27208 bl .foo
27209 EOF
27210 cat > conftest2.s <<EOF
27211 .section ".opd","aw"
27212 .align 3
27213 .globl foo
27214 .type foo,@function
27215 foo:
27216 .quad .LEfoo,.TOC.@tocbase,0
27217 .text
27218 .LEfoo:
27219 blr
27220 .size foo,.-.LEfoo
27221 EOF
27222 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27223 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27224 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27225 gcc_cv_ld_no_dot_syms=yes
27226 fi
27227 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27228 fi
27229
27230 fi
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27232 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27233 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27234
27235 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27236
27237 fi
27238
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27240 $as_echo_n "checking linker large toc support... " >&6; }
27241 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_ld_large_toc=no
27245 if test x"$ld_is_gold" = xyes; then
27246 gcc_cv_ld_large_toc=yes
27247 elif test $in_tree_ld = yes ; then
27248 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
27249 gcc_cv_ld_large_toc=yes
27250 fi
27251 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27252 cat > conftest.s <<EOF
27253 .section ".tbss","awT",@nobits
27254 .align 3
27255 ie0: .space 8
27256 .global _start
27257 .text
27258 _start:
27259 addis 9,13,ie0@got@tprel@ha
27260 ld 9,ie0@got@tprel@l(9)
27261 EOF
27262 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27263 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27264 gcc_cv_ld_large_toc=yes
27265 fi
27266 rm -f conftest conftest.o conftest.s
27267 fi
27268
27269 fi
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27271 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27272 if test x"$gcc_cv_ld_large_toc" = xyes; then
27273
27274 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27275
27276 fi
27277 ;;
27278 esac
27279
27280 case "$target" in
27281 *-*-aix*)
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27283 $as_echo_n "checking linker large toc support... " >&6; }
27284 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27286 else
27287 gcc_cv_ld_large_toc=no
27288 if test x$gcc_cv_as != x ; then
27289 cat > conftest.s <<EOF
27290 .toc
27291 LC..1:
27292 .tc a[TC],a[RW]
27293 .extern a[RW]
27294 .csect .text[PR]
27295 .largetoctest:
27296 addis 9,LC..1@u(2)
27297 ld 3,LC..1@l(9)
27298 EOF
27299 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27300 gcc_cv_ld_large_toc=yes
27301 fi
27302 rm -f conftest conftest.o conftest.s
27303 fi
27304
27305 fi
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27307 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27308 if test x"$gcc_cv_ld_large_toc" = xyes; then
27309
27310 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27311
27312 fi
27313 ;;
27314 esac
27315
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27317 $as_echo_n "checking linker --build-id support... " >&6; }
27318 if test "${gcc_cv_ld_buildid+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27320 else
27321 gcc_cv_ld_buildid=no
27322 if test $in_tree_ld = yes ; then
27323 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27324 "$gcc_cv_gld_minor_version" -ge 18 -o \
27325 "$gcc_cv_gld_major_version" -gt 2 \
27326 && test $in_tree_ld_is_elf = yes; then
27327 gcc_cv_ld_buildid=yes
27328 fi
27329 elif test x$gcc_cv_ld != x; then
27330 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27331 gcc_cv_ld_buildid=yes
27332 fi
27333 fi
27334 fi
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27336 $as_echo "$gcc_cv_ld_buildid" >&6; }
27337 if test x"$gcc_cv_ld_buildid" = xyes; then
27338
27339 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27340
27341 fi
27342
27343 # Check whether --enable-linker-build-id was given.
27344 if test "${enable_linker_build_id+set}" = set; then :
27345 enableval=$enable_linker_build_id;
27346 else
27347 enable_linker_build_id=no
27348 fi
27349
27350
27351 if test x"$enable_linker_build_id" = xyes; then
27352 if test x"$gcc_cv_ld_buildid" = xyes; then
27353
27354 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27355
27356 else
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27358 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27359 fi
27360 fi
27361
27362 # In binutils 2.21, GNU ld gained support for new emulations fully
27363 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27365 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27366 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27367 $as_echo_n "(cached) " >&6
27368 else
27369 gcc_cv_ld_sol2_emulation=no
27370 if test $in_tree_ld = yes ; then
27371 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27372 "$gcc_cv_gld_minor_version" -ge 21 -o \
27373 "$gcc_cv_gld_major_version" -gt 2 \
27374 && test $in_tree_ld_is_elf = yes; then
27375 gcc_cv_ld_sol2_emulation=yes
27376 fi
27377 elif test x$gcc_cv_ld != x; then
27378 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27379 grep _sol2 > /dev/null; then
27380 gcc_cv_ld_sol2_emulation=yes
27381 fi
27382 fi
27383 fi
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27385 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27386 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27387
27388 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27389
27390 fi
27391
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27393 $as_echo_n "checking linker --sysroot support... " >&6; }
27394 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27395 $as_echo_n "(cached) " >&6
27396 else
27397 gcc_cv_ld_sysroot=no
27398 if test $in_tree_ld = yes ; then
27399 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
27400 gcc_cv_ld_sysroot=yes
27401 fi
27402 elif test x$gcc_cv_ld != x; then
27403 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27404 gcc_cv_ld_sysroot=yes
27405 fi
27406 fi
27407 fi
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27409 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27410 if test x"$gcc_cv_ld_sysroot" = xyes; then
27411
27412 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27413
27414 fi
27415
27416 # Test for stack protector support in target C library.
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27418 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27419 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27420 $as_echo_n "(cached) " >&6
27421 else
27422 gcc_cv_libc_provides_ssp=no
27423 case "$target" in
27424 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27425 # glibc 2.4 and later provides __stack_chk_fail and
27426 # either __stack_chk_guard, or TLS access to stack guard canary.
27427
27428 if test $glibc_version_major -gt 2 \
27429 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27430 gcc_cv_libc_provides_ssp=yes
27431 else
27432
27433 if test -f $target_header_dir/features.h \
27434 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27435 $target_header_dir/features.h > /dev/null; then
27436 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27437 $target_header_dir/features.h > /dev/null && \
27438 test -f $target_header_dir/bits/uClibc_config.h && \
27439 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27440 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27441 gcc_cv_libc_provides_ssp=yes
27442 fi
27443 # all versions of Bionic support stack protector
27444 elif test -f $target_header_dir/sys/cdefs.h \
27445 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27446 $target_header_dir/sys/cdefs.h > /dev/null; then
27447 gcc_cv_libc_provides_ssp=yes
27448 fi
27449 fi
27450 ;;
27451 *-*-gnu*)
27452 # Avoid complicated tests (see
27453 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27454 # simply assert that glibc does provide this, which is true for all
27455 # realistically usable GNU/Hurd configurations.
27456 gcc_cv_libc_provides_ssp=yes;;
27457 *-*-darwin* | *-*-freebsd*)
27458 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27459 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27460 gcc_cv_libc_provides_ssp=yes
27461 else
27462 echo "no __stack_chk_fail on this target"
27463 fi
27464
27465 ;;
27466 *) gcc_cv_libc_provides_ssp=no ;;
27467 esac
27468 fi
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27470 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27471
27472 if test x$gcc_cv_libc_provides_ssp = xyes; then
27473
27474 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27475
27476 fi
27477
27478 # Test for <sys/sdt.h> on the target.
27479
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27481 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27482 have_sys_sdt_h=no
27483 if test -f $target_header_dir/sys/sdt.h; then
27484 have_sys_sdt_h=yes
27485
27486 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27487
27488 fi
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27490 $as_echo "$have_sys_sdt_h" >&6; }
27491
27492 # Check if TFmode long double should be used by default or not.
27493 # Some glibc targets used DFmode long double, but with glibc 2.4
27494 # and later they can use TFmode.
27495 case "$target" in
27496 powerpc*-*-linux* | \
27497 sparc*-*-linux* | \
27498 s390*-*-linux* | \
27499 alpha*-*-linux*)
27500
27501 # Check whether --with-long-double-128 was given.
27502 if test "${with_long_double_128+set}" = set; then :
27503 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27504 else
27505
27506 if test $glibc_version_major -gt 2 \
27507 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27508 gcc_cv_target_ldbl128=yes
27509 else
27510
27511 gcc_cv_target_ldbl128=no
27512 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27513 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27514 && gcc_cv_target_ldbl128=yes
27515
27516 fi
27517 fi
27518
27519 ;;
27520 esac
27521 if test x$gcc_cv_target_ldbl128 = xyes; then
27522
27523 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27524
27525 fi
27526
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27528 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27529 gcc_cv_target_dl_iterate_phdr=unknown
27530 case "$target" in
27531 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27532 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27533 # libdl there, both complicating its use and breaking compatibility
27534 # between Solaris 10 updates.
27535 *-*-solaris2.1[1-9]*)
27536 # <link.h> needs both a dl_iterate_phdr declaration and support for
27537 # compilation with largefile support.
27538 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27539 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27540 gcc_cv_target_dl_iterate_phdr=yes
27541 else
27542 gcc_cv_target_dl_iterate_phdr=no
27543 fi
27544 ;;
27545 *-*-dragonfly* | *-*-freebsd*)
27546 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27547 gcc_cv_target_dl_iterate_phdr=yes
27548 else
27549 gcc_cv_target_dl_iterate_phdr=no
27550 fi
27551 ;;
27552 esac
27553
27554 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27555
27556 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27557
27558 fi
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27560 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27561
27562 # We no longer support different GC mechanisms. Emit an error if
27563 # the user configures with --with-gc.
27564
27565 # Check whether --with-gc was given.
27566 if test "${with_gc+set}" = set; then :
27567 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27568 fi
27569
27570
27571 # Libraries to use on the host. This will normally be set by the top
27572 # level Makefile. Here we simply capture the value for our Makefile.
27573 if test -z "${HOST_LIBS+set}"; then
27574 HOST_LIBS=
27575 fi
27576
27577
27578 # Use the system's zlib library.
27579 zlibdir=-L../zlib
27580 zlibinc="-I\$(srcdir)/../zlib"
27581
27582 # Check whether --with-system-zlib was given.
27583 if test "${with_system_zlib+set}" = set; then :
27584 withval=$with_system_zlib; zlibdir=
27585 zlibinc=
27586
27587 fi
27588
27589
27590
27591
27592
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27594 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27595 # Check whether --enable-maintainer-mode was given.
27596 if test "${enable_maintainer_mode+set}" = set; then :
27597 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27598 else
27599 maintainer_mode=no
27600 fi
27601
27602
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27604 $as_echo "$maintainer_mode" >&6; }
27605
27606 if test "$maintainer_mode" = "yes"; then
27607 MAINT=''
27608 else
27609 MAINT='#'
27610 fi
27611
27612
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27614 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27615 # Check whether --enable-link-mutex was given.
27616 if test "${enable_link_mutex+set}" = set; then :
27617 enableval=$enable_link_mutex; do_link_mutex=$enableval
27618 else
27619 do_link_mutex=no
27620 fi
27621
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27623 $as_echo "$do_link_mutex" >&6; }
27624
27625 if test "$do_link_mutex" = "yes"; then
27626 DO_LINK_MUTEX=true
27627 else
27628 DO_LINK_MUTEX=false
27629 fi
27630
27631
27632 # --------------
27633 # Language hooks
27634 # --------------
27635
27636 # Make empty files to contain the specs and options for each language.
27637 # Then add #include lines to for a compiler that has specs and/or options.
27638
27639 subdirs=
27640 lang_opt_files=
27641 lang_specs_files=
27642 lang_tree_files=
27643 # These (without "all_") are set in each config-lang.in.
27644 # `language' must be a single word so is spelled singularly.
27645 all_languages=
27646 all_compilers=
27647 all_outputs='Makefile'
27648 # List of language makefile fragments.
27649 all_lang_makefrags=
27650 # Additional files for gengtype
27651 all_gtfiles="$target_gtfiles"
27652
27653 # These are the languages that are set in --enable-languages,
27654 # and are available in the GCC tree.
27655 all_selected_languages=
27656
27657 # Add the language fragments.
27658 # Languages are added via two mechanisms. Some information must be
27659 # recorded in makefile variables, these are defined in config-lang.in.
27660 # We accumulate them and plug them into the main Makefile.
27661 # The other mechanism is a set of hooks for each of the main targets
27662 # like `clean', `install', etc.
27663
27664 language_hooks="Make-hooks"
27665
27666 for lang in ${srcdir}/*/config-lang.in
27667 do
27668 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27669
27670 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27671 if test "x$lang_alias" = x
27672 then
27673 echo "$lang doesn't set \$language." 1>&2
27674 exit 1
27675 fi
27676 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27677 subdirs="$subdirs $subdir"
27678
27679 # $gcc_subdir is where the gcc integration files are to be found
27680 # for a language, both for internal compiler purposes (compiler
27681 # sources implementing front-end to GCC tree converters), and for
27682 # build infrastructure purposes (Make-lang.in, etc.)
27683 #
27684 # This will be <subdir> (relative to $srcdir) if a line like
27685 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27686 # is found in <langdir>/config-lang.in, and will remain <langdir>
27687 # otherwise.
27688 #
27689 # Except for the language alias (fetched above), the regular
27690 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27691 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27692 # only this and the language alias.
27693
27694 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27695 if [ "$gcc_subdir" = "" ]; then
27696 gcc_subdir="$subdir"
27697 fi
27698
27699 case ",$enable_languages," in
27700 *,$lang_alias,*)
27701 all_selected_languages="$all_selected_languages $lang_alias"
27702 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27703 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27704 fi
27705 ;;
27706 esac
27707
27708 language=
27709 boot_language=
27710 compilers=
27711 outputs=
27712 gtfiles=
27713 subdir_requires=
27714 . ${srcdir}/$gcc_subdir/config-lang.in
27715 if test "x$language" = x
27716 then
27717 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27718 exit 1
27719 fi
27720
27721 ok=:
27722 case ",$enable_languages," in
27723 *,$lang_alias,*) ;;
27724 *)
27725 for i in $subdir_requires; do
27726 test -f "${srcdir}/$i/config-lang.in" && continue
27727 ok=false
27728 break
27729 done
27730 ;;
27731 esac
27732 $ok || continue
27733
27734 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27735 if test -f $srcdir/$gcc_subdir/lang.opt; then
27736 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27737 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27738 fi
27739 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27740 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27741 fi
27742 all_languages="$all_languages $language"
27743 all_compilers="$all_compilers $compilers"
27744 all_outputs="$all_outputs $outputs"
27745 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27746 case ",$enable_languages," in
27747 *,lto,*)
27748
27749 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27750
27751 enable_lto=yes
27752
27753 ;;
27754 *) ;;
27755 esac
27756 done
27757
27758 check_languages=
27759 for language in $all_selected_languages
27760 do
27761 check_languages="$check_languages check-$language"
27762 done
27763
27764 # We link each language in with a set of hooks, reached indirectly via
27765 # lang.${target}. Only do so for selected languages.
27766
27767 rm -f Make-hooks
27768 touch Make-hooks
27769 target_list="all.cross start.encap rest.encap tags \
27770 install-common install-man install-info install-pdf install-html dvi \
27771 pdf html uninstall info man srcextra srcman srcinfo \
27772 mostlyclean clean distclean maintainer-clean install-plugin"
27773
27774 for t in $target_list
27775 do
27776 x=
27777 for lang in $all_selected_languages
27778 do
27779 x="$x $lang.$t"
27780 done
27781 echo "lang.$t: $x" >> Make-hooks
27782 done
27783
27784 # --------
27785 # Option include files
27786 # --------
27787
27788 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27789 option_includes="option-includes.mk"
27790
27791
27792 # --------
27793 # UNSORTED
27794 # --------
27795
27796 # Create .gdbinit.
27797
27798 echo "dir ." > .gdbinit
27799 echo "dir ${srcdir}" >> .gdbinit
27800 if test x$gdb_needs_out_file_path = xyes
27801 then
27802 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27803 fi
27804 if test "x$subdirs" != x; then
27805 for s in $subdirs
27806 do
27807 echo "dir ${srcdir}/$s" >> .gdbinit
27808 done
27809 fi
27810 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27811 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27812
27813 # Put a breakpoint on __asan_report_error to help with debugging buffer
27814 # overflow.
27815 case "$CFLAGS" in
27816 *-fsanitize=address*)
27817 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27818 ;;
27819 esac
27820
27821 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27822
27823
27824
27825 # Find a directory in which to install a shared libgcc.
27826
27827 # Check whether --enable-version-specific-runtime-libs was given.
27828 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27829 enableval=$enable_version_specific_runtime_libs;
27830 fi
27831
27832
27833 # Substitute configuration variables
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896 # Echo link setup.
27897 if test x${build} = x${host} ; then
27898 if test x${host} = x${target} ; then
27899 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27900 else
27901 echo "Links are now set up to build a cross-compiler" 1>&2
27902 echo " from ${host} to ${target}." 1>&2
27903 fi
27904 else
27905 if test x${host} = x${target} ; then
27906 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27907 echo " for ${target}." 1>&2
27908 else
27909 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27910 echo " from ${host} to ${target}." 1>&2
27911 fi
27912 fi
27913
27914
27915
27916
27917
27918
27919 if test "x${ISLLIBS}" != "x" ; then
27920
27921 $as_echo "#define HAVE_isl 1" >>confdefs.h
27922
27923 fi
27924
27925
27926
27927 if test "x${CLOOGLIBS}" != "x" ; then
27928
27929 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27930
27931 fi
27932
27933 # Check for plugin support
27934 # Check whether --enable-plugin was given.
27935 if test "${enable_plugin+set}" = set; then :
27936 enableval=$enable_plugin; enable_plugin=$enableval
27937 else
27938 enable_plugin=yes; default_plugin=yes
27939 fi
27940
27941
27942 pluginlibs=
27943
27944 case "${host}" in
27945 *-*-darwin*)
27946 if test x$build = x$host; then
27947 export_sym_check="nm${exeext} -g"
27948 elif test x$host = x$target; then
27949 export_sym_check="$gcc_cv_nm -g"
27950 else
27951 export_sym_check=
27952 fi
27953 ;;
27954 *)
27955 if test x$build = x$host; then
27956 export_sym_check="objdump${exeext} -T"
27957 elif test x$host = x$target; then
27958 export_sym_check="$gcc_cv_objdump -T"
27959 else
27960 export_sym_check=
27961 fi
27962 ;;
27963 esac
27964
27965 if test x"$enable_plugin" = x"yes"; then
27966
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27968 $as_echo_n "checking for exported symbols... " >&6; }
27969 if test "x$export_sym_check" != x; then
27970 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27971 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27972 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27973 : # No need to use a flag
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27975 $as_echo "yes" >&6; }
27976 else
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27978 $as_echo "yes" >&6; }
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27980 $as_echo_n "checking for -rdynamic... " >&6; }
27981 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27982 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27983 plugin_rdynamic=yes
27984 pluginlibs="-rdynamic"
27985 else
27986 plugin_rdynamic=no
27987 enable_plugin=no
27988 fi
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27990 $as_echo "$plugin_rdynamic" >&6; }
27991 fi
27992 else
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27994 $as_echo "unable to check" >&6; }
27995 fi
27996
27997 # Check -ldl
27998 saved_LIBS="$LIBS"
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28000 $as_echo_n "checking for library containing dlopen... " >&6; }
28001 if test "${ac_cv_search_dlopen+set}" = set; then :
28002 $as_echo_n "(cached) " >&6
28003 else
28004 ac_func_search_save_LIBS=$LIBS
28005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006 /* end confdefs.h. */
28007
28008 /* Override any GCC internal prototype to avoid an error.
28009 Use char because int might match the return type of a GCC
28010 builtin and then its argument prototype would still apply. */
28011 #ifdef __cplusplus
28012 extern "C"
28013 #endif
28014 char dlopen ();
28015 int
28016 main ()
28017 {
28018 return dlopen ();
28019 ;
28020 return 0;
28021 }
28022 _ACEOF
28023 for ac_lib in '' dl; do
28024 if test -z "$ac_lib"; then
28025 ac_res="none required"
28026 else
28027 ac_res=-l$ac_lib
28028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28029 fi
28030 if ac_fn_c_try_link "$LINENO"; then :
28031 ac_cv_search_dlopen=$ac_res
28032 fi
28033 rm -f core conftest.err conftest.$ac_objext \
28034 conftest$ac_exeext
28035 if test "${ac_cv_search_dlopen+set}" = set; then :
28036 break
28037 fi
28038 done
28039 if test "${ac_cv_search_dlopen+set}" = set; then :
28040
28041 else
28042 ac_cv_search_dlopen=no
28043 fi
28044 rm conftest.$ac_ext
28045 LIBS=$ac_func_search_save_LIBS
28046 fi
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28048 $as_echo "$ac_cv_search_dlopen" >&6; }
28049 ac_res=$ac_cv_search_dlopen
28050 if test "$ac_res" != no; then :
28051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28052
28053 fi
28054
28055 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28056 pluginlibs="$pluginlibs -ldl"
28057 fi
28058 LIBS="$saved_LIBS"
28059
28060 # Check that we can build shared objects with -fPIC -shared
28061 saved_LDFLAGS="$LDFLAGS"
28062 saved_CFLAGS="$CFLAGS"
28063 case "${host}" in
28064 *-*-darwin*)
28065 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28066 CFLAGS="$CFLAGS -fPIC"
28067 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28068 ;;
28069 *)
28070 CFLAGS="$CFLAGS -fPIC"
28071 LDFLAGS="$LDFLAGS -fPIC -shared"
28072 ;;
28073 esac
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28075 $as_echo_n "checking for -fPIC -shared... " >&6; }
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28078 extern int X;
28079 int
28080 main ()
28081 {
28082 return X == 0;
28083 ;
28084 return 0;
28085 }
28086 _ACEOF
28087 if ac_fn_c_try_link "$LINENO"; then :
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28089 $as_echo "yes" >&6; }; have_pic_shared=yes
28090 else
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28092 $as_echo "no" >&6; }; have_pic_shared=no
28093 fi
28094 rm -f core conftest.err conftest.$ac_objext \
28095 conftest$ac_exeext conftest.$ac_ext
28096 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28097 pluginlibs=
28098 enable_plugin=no
28099 fi
28100 LDFLAGS="$saved_LDFLAGS"
28101 CFLAGS="$saved_CFLAGS"
28102
28103 # If plugin support had been requested but not available, fail.
28104 if test x"$enable_plugin" = x"no" ; then
28105 if test x"$default_plugin" != x"yes"; then
28106 as_fn_error "
28107 Building GCC with plugin support requires a host that supports
28108 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28109 fi
28110 fi
28111 fi
28112
28113
28114
28115 if test x"$enable_plugin" = x"yes"; then
28116
28117 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28118
28119 fi
28120
28121
28122 # Enable --enable-host-shared
28123 # Check whether --enable-host-shared was given.
28124 if test "${enable_host_shared+set}" = set; then :
28125 enableval=$enable_host_shared; PICFLAG=-fPIC
28126 else
28127 PICFLAG=
28128 fi
28129
28130
28131
28132
28133
28134 # Check whether --enable-libquadmath-support was given.
28135 if test "${enable_libquadmath_support+set}" = set; then :
28136 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28137 else
28138 ENABLE_LIBQUADMATH_SUPPORT=yes
28139 fi
28140
28141 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28142
28143 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28144
28145 fi
28146
28147
28148 # Specify what hash style to use by default.
28149
28150 # Check whether --with-linker-hash-style was given.
28151 if test "${with_linker_hash_style+set}" = set; then :
28152 withval=$with_linker_hash_style; case x"$withval" in
28153 xsysv)
28154 LINKER_HASH_STYLE=sysv
28155 ;;
28156 xgnu)
28157 LINKER_HASH_STYLE=gnu
28158 ;;
28159 xboth)
28160 LINKER_HASH_STYLE=both
28161 ;;
28162 *)
28163 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28164 ;;
28165 esac
28166 else
28167 LINKER_HASH_STYLE=''
28168 fi
28169
28170 if test x"${LINKER_HASH_STYLE}" != x; then
28171
28172 cat >>confdefs.h <<_ACEOF
28173 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28174 _ACEOF
28175
28176 fi
28177
28178 # Configure the subdirectories
28179 # AC_CONFIG_SUBDIRS($subdirs)
28180
28181 # Create the Makefile
28182 # and configure language subdirectories
28183 ac_config_files="$ac_config_files $all_outputs"
28184
28185
28186 ac_config_commands="$ac_config_commands default"
28187
28188 cat >confcache <<\_ACEOF
28189 # This file is a shell script that caches the results of configure
28190 # tests run on this system so they can be shared between configure
28191 # scripts and configure runs, see configure's option --config-cache.
28192 # It is not useful on other systems. If it contains results you don't
28193 # want to keep, you may remove or edit it.
28194 #
28195 # config.status only pays attention to the cache file if you give it
28196 # the --recheck option to rerun configure.
28197 #
28198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28200 # following values.
28201
28202 _ACEOF
28203
28204 # The following way of writing the cache mishandles newlines in values,
28205 # but we know of no workaround that is simple, portable, and efficient.
28206 # So, we kill variables containing newlines.
28207 # Ultrix sh set writes to stderr and can't be redirected directly,
28208 # and sets the high bit in the cache file unless we assign to the vars.
28209 (
28210 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28211 eval ac_val=\$$ac_var
28212 case $ac_val in #(
28213 *${as_nl}*)
28214 case $ac_var in #(
28215 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28217 esac
28218 case $ac_var in #(
28219 _ | IFS | as_nl) ;; #(
28220 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28221 *) { eval $ac_var=; unset $ac_var;} ;;
28222 esac ;;
28223 esac
28224 done
28225
28226 (set) 2>&1 |
28227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28228 *${as_nl}ac_space=\ *)
28229 # `set' does not quote correctly, so add quotes: double-quote
28230 # substitution turns \\\\ into \\, and sed turns \\ into \.
28231 sed -n \
28232 "s/'/'\\\\''/g;
28233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28234 ;; #(
28235 *)
28236 # `set' quotes correctly as required by POSIX, so do not add quotes.
28237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28238 ;;
28239 esac |
28240 sort
28241 ) |
28242 sed '
28243 /^ac_cv_env_/b end
28244 t clear
28245 :clear
28246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28247 t end
28248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28249 :end' >>confcache
28250 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28251 if test -w "$cache_file"; then
28252 test "x$cache_file" != "x/dev/null" &&
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28254 $as_echo "$as_me: updating cache $cache_file" >&6;}
28255 cat confcache >$cache_file
28256 else
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28259 fi
28260 fi
28261 rm -f confcache
28262
28263 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28264 # Let make expand exec_prefix.
28265 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28266
28267 DEFS=-DHAVE_CONFIG_H
28268
28269 ac_libobjs=
28270 ac_ltlibobjs=
28271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28272 # 1. Remove the extension, and $U if already installed.
28273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28274 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28276 # will be set to the directory where LIBOBJS objects are built.
28277 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28278 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28279 done
28280 LIBOBJS=$ac_libobjs
28281
28282 LTLIBOBJS=$ac_ltlibobjs
28283
28284
28285
28286
28287 : ${CONFIG_STATUS=./config.status}
28288 ac_write_fail=0
28289 ac_clean_files_save=$ac_clean_files
28290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28292 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28293 as_write_fail=0
28294 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28295 #! $SHELL
28296 # Generated by $as_me.
28297 # Run this file to recreate the current configuration.
28298 # Compiler output produced by configure, useful for debugging
28299 # configure, is in config.log if it exists.
28300
28301 debug=false
28302 ac_cs_recheck=false
28303 ac_cs_silent=false
28304
28305 SHELL=\${CONFIG_SHELL-$SHELL}
28306 export SHELL
28307 _ASEOF
28308 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28309 ## -------------------- ##
28310 ## M4sh Initialization. ##
28311 ## -------------------- ##
28312
28313 # Be more Bourne compatible
28314 DUALCASE=1; export DUALCASE # for MKS sh
28315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28316 emulate sh
28317 NULLCMD=:
28318 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28319 # is contrary to our usage. Disable this feature.
28320 alias -g '${1+"$@"}'='"$@"'
28321 setopt NO_GLOB_SUBST
28322 else
28323 case `(set -o) 2>/dev/null` in #(
28324 *posix*) :
28325 set -o posix ;; #(
28326 *) :
28327 ;;
28328 esac
28329 fi
28330
28331
28332 as_nl='
28333 '
28334 export as_nl
28335 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28336 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28337 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28339 # Prefer a ksh shell builtin over an external printf program on Solaris,
28340 # but without wasting forks for bash or zsh.
28341 if test -z "$BASH_VERSION$ZSH_VERSION" \
28342 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28343 as_echo='print -r --'
28344 as_echo_n='print -rn --'
28345 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28346 as_echo='printf %s\n'
28347 as_echo_n='printf %s'
28348 else
28349 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28350 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28351 as_echo_n='/usr/ucb/echo -n'
28352 else
28353 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28354 as_echo_n_body='eval
28355 arg=$1;
28356 case $arg in #(
28357 *"$as_nl"*)
28358 expr "X$arg" : "X\\(.*\\)$as_nl";
28359 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28360 esac;
28361 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28362 '
28363 export as_echo_n_body
28364 as_echo_n='sh -c $as_echo_n_body as_echo'
28365 fi
28366 export as_echo_body
28367 as_echo='sh -c $as_echo_body as_echo'
28368 fi
28369
28370 # The user is always right.
28371 if test "${PATH_SEPARATOR+set}" != set; then
28372 PATH_SEPARATOR=:
28373 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28374 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28375 PATH_SEPARATOR=';'
28376 }
28377 fi
28378
28379
28380 # IFS
28381 # We need space, tab and new line, in precisely that order. Quoting is
28382 # there to prevent editors from complaining about space-tab.
28383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28384 # splitting by setting IFS to empty value.)
28385 IFS=" "" $as_nl"
28386
28387 # Find who we are. Look in the path if we contain no directory separator.
28388 case $0 in #((
28389 *[\\/]* ) as_myself=$0 ;;
28390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28391 for as_dir in $PATH
28392 do
28393 IFS=$as_save_IFS
28394 test -z "$as_dir" && as_dir=.
28395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28396 done
28397 IFS=$as_save_IFS
28398
28399 ;;
28400 esac
28401 # We did not find ourselves, most probably we were run as `sh COMMAND'
28402 # in which case we are not to be found in the path.
28403 if test "x$as_myself" = x; then
28404 as_myself=$0
28405 fi
28406 if test ! -f "$as_myself"; then
28407 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28408 exit 1
28409 fi
28410
28411 # Unset variables that we do not need and which cause bugs (e.g. in
28412 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28413 # suppresses any "Segmentation fault" message there. '((' could
28414 # trigger a bug in pdksh 5.2.14.
28415 for as_var in BASH_ENV ENV MAIL MAILPATH
28416 do eval test x\${$as_var+set} = xset \
28417 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28418 done
28419 PS1='$ '
28420 PS2='> '
28421 PS4='+ '
28422
28423 # NLS nuisances.
28424 LC_ALL=C
28425 export LC_ALL
28426 LANGUAGE=C
28427 export LANGUAGE
28428
28429 # CDPATH.
28430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28431
28432
28433 # as_fn_error ERROR [LINENO LOG_FD]
28434 # ---------------------------------
28435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28437 # script with status $?, using 1 if that was 0.
28438 as_fn_error ()
28439 {
28440 as_status=$?; test $as_status -eq 0 && as_status=1
28441 if test "$3"; then
28442 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28444 fi
28445 $as_echo "$as_me: error: $1" >&2
28446 as_fn_exit $as_status
28447 } # as_fn_error
28448
28449
28450 # as_fn_set_status STATUS
28451 # -----------------------
28452 # Set $? to STATUS, without forking.
28453 as_fn_set_status ()
28454 {
28455 return $1
28456 } # as_fn_set_status
28457
28458 # as_fn_exit STATUS
28459 # -----------------
28460 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28461 as_fn_exit ()
28462 {
28463 set +e
28464 as_fn_set_status $1
28465 exit $1
28466 } # as_fn_exit
28467
28468 # as_fn_unset VAR
28469 # ---------------
28470 # Portably unset VAR.
28471 as_fn_unset ()
28472 {
28473 { eval $1=; unset $1;}
28474 }
28475 as_unset=as_fn_unset
28476 # as_fn_append VAR VALUE
28477 # ----------------------
28478 # Append the text in VALUE to the end of the definition contained in VAR. Take
28479 # advantage of any shell optimizations that allow amortized linear growth over
28480 # repeated appends, instead of the typical quadratic growth present in naive
28481 # implementations.
28482 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28483 eval 'as_fn_append ()
28484 {
28485 eval $1+=\$2
28486 }'
28487 else
28488 as_fn_append ()
28489 {
28490 eval $1=\$$1\$2
28491 }
28492 fi # as_fn_append
28493
28494 # as_fn_arith ARG...
28495 # ------------------
28496 # Perform arithmetic evaluation on the ARGs, and store the result in the
28497 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28498 # must be portable across $(()) and expr.
28499 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28500 eval 'as_fn_arith ()
28501 {
28502 as_val=$(( $* ))
28503 }'
28504 else
28505 as_fn_arith ()
28506 {
28507 as_val=`expr "$@" || test $? -eq 1`
28508 }
28509 fi # as_fn_arith
28510
28511
28512 if expr a : '\(a\)' >/dev/null 2>&1 &&
28513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28514 as_expr=expr
28515 else
28516 as_expr=false
28517 fi
28518
28519 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28520 as_basename=basename
28521 else
28522 as_basename=false
28523 fi
28524
28525 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28526 as_dirname=dirname
28527 else
28528 as_dirname=false
28529 fi
28530
28531 as_me=`$as_basename -- "$0" ||
28532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28533 X"$0" : 'X\(//\)$' \| \
28534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28535 $as_echo X/"$0" |
28536 sed '/^.*\/\([^/][^/]*\)\/*$/{
28537 s//\1/
28538 q
28539 }
28540 /^X\/\(\/\/\)$/{
28541 s//\1/
28542 q
28543 }
28544 /^X\/\(\/\).*/{
28545 s//\1/
28546 q
28547 }
28548 s/.*/./; q'`
28549
28550 # Avoid depending upon Character Ranges.
28551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28554 as_cr_digits='0123456789'
28555 as_cr_alnum=$as_cr_Letters$as_cr_digits
28556
28557 ECHO_C= ECHO_N= ECHO_T=
28558 case `echo -n x` in #(((((
28559 -n*)
28560 case `echo 'xy\c'` in
28561 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28562 xy) ECHO_C='\c';;
28563 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28564 ECHO_T=' ';;
28565 esac;;
28566 *)
28567 ECHO_N='-n';;
28568 esac
28569
28570 rm -f conf$$ conf$$.exe conf$$.file
28571 if test -d conf$$.dir; then
28572 rm -f conf$$.dir/conf$$.file
28573 else
28574 rm -f conf$$.dir
28575 mkdir conf$$.dir 2>/dev/null
28576 fi
28577 if (echo >conf$$.file) 2>/dev/null; then
28578 if ln -s conf$$.file conf$$ 2>/dev/null; then
28579 as_ln_s='ln -s'
28580 # ... but there are two gotchas:
28581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28583 # In both cases, we have to default to `cp -p'.
28584 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28585 as_ln_s='cp -p'
28586 elif ln conf$$.file conf$$ 2>/dev/null; then
28587 as_ln_s=ln
28588 else
28589 as_ln_s='cp -p'
28590 fi
28591 else
28592 as_ln_s='cp -p'
28593 fi
28594 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28595 rmdir conf$$.dir 2>/dev/null
28596
28597
28598 # as_fn_mkdir_p
28599 # -------------
28600 # Create "$as_dir" as a directory, including parents if necessary.
28601 as_fn_mkdir_p ()
28602 {
28603
28604 case $as_dir in #(
28605 -*) as_dir=./$as_dir;;
28606 esac
28607 test -d "$as_dir" || eval $as_mkdir_p || {
28608 as_dirs=
28609 while :; do
28610 case $as_dir in #(
28611 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28612 *) as_qdir=$as_dir;;
28613 esac
28614 as_dirs="'$as_qdir' $as_dirs"
28615 as_dir=`$as_dirname -- "$as_dir" ||
28616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28617 X"$as_dir" : 'X\(//\)[^/]' \| \
28618 X"$as_dir" : 'X\(//\)$' \| \
28619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28620 $as_echo X"$as_dir" |
28621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28622 s//\1/
28623 q
28624 }
28625 /^X\(\/\/\)[^/].*/{
28626 s//\1/
28627 q
28628 }
28629 /^X\(\/\/\)$/{
28630 s//\1/
28631 q
28632 }
28633 /^X\(\/\).*/{
28634 s//\1/
28635 q
28636 }
28637 s/.*/./; q'`
28638 test -d "$as_dir" && break
28639 done
28640 test -z "$as_dirs" || eval "mkdir $as_dirs"
28641 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28642
28643
28644 } # as_fn_mkdir_p
28645 if mkdir -p . 2>/dev/null; then
28646 as_mkdir_p='mkdir -p "$as_dir"'
28647 else
28648 test -d ./-p && rmdir ./-p
28649 as_mkdir_p=false
28650 fi
28651
28652 if test -x / >/dev/null 2>&1; then
28653 as_test_x='test -x'
28654 else
28655 if ls -dL / >/dev/null 2>&1; then
28656 as_ls_L_option=L
28657 else
28658 as_ls_L_option=
28659 fi
28660 as_test_x='
28661 eval sh -c '\''
28662 if test -d "$1"; then
28663 test -d "$1/.";
28664 else
28665 case $1 in #(
28666 -*)set "./$1";;
28667 esac;
28668 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28669 ???[sx]*):;;*)false;;esac;fi
28670 '\'' sh
28671 '
28672 fi
28673 as_executable_p=$as_test_x
28674
28675 # Sed expression to map a string onto a valid CPP name.
28676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28677
28678 # Sed expression to map a string onto a valid variable name.
28679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28680
28681
28682 exec 6>&1
28683 ## ----------------------------------- ##
28684 ## Main body of $CONFIG_STATUS script. ##
28685 ## ----------------------------------- ##
28686 _ASEOF
28687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28688
28689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28690 # Save the log message, to keep $0 and so on meaningful, and to
28691 # report actual input values of CONFIG_FILES etc. instead of their
28692 # values after options handling.
28693 ac_log="
28694 This file was extended by $as_me, which was
28695 generated by GNU Autoconf 2.64. Invocation command line was
28696
28697 CONFIG_FILES = $CONFIG_FILES
28698 CONFIG_HEADERS = $CONFIG_HEADERS
28699 CONFIG_LINKS = $CONFIG_LINKS
28700 CONFIG_COMMANDS = $CONFIG_COMMANDS
28701 $ $0 $@
28702
28703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28704 "
28705
28706 _ACEOF
28707
28708 case $ac_config_files in *"
28709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28710 esac
28711
28712 case $ac_config_headers in *"
28713 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28714 esac
28715
28716
28717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28718 # Files that config.status was made for.
28719 config_files="$ac_config_files"
28720 config_headers="$ac_config_headers"
28721 config_links="$ac_config_links"
28722 config_commands="$ac_config_commands"
28723
28724 _ACEOF
28725
28726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28727 ac_cs_usage="\
28728 \`$as_me' instantiates files and other configuration actions
28729 from templates according to the current configuration. Unless the files
28730 and actions are specified as TAGs, all are instantiated by default.
28731
28732 Usage: $0 [OPTION]... [TAG]...
28733
28734 -h, --help print this help, then exit
28735 -V, --version print version number and configuration settings, then exit
28736 -q, --quiet, --silent
28737 do not print progress messages
28738 -d, --debug don't remove temporary files
28739 --recheck update $as_me by reconfiguring in the same conditions
28740 --file=FILE[:TEMPLATE]
28741 instantiate the configuration file FILE
28742 --header=FILE[:TEMPLATE]
28743 instantiate the configuration header FILE
28744
28745 Configuration files:
28746 $config_files
28747
28748 Configuration headers:
28749 $config_headers
28750
28751 Configuration links:
28752 $config_links
28753
28754 Configuration commands:
28755 $config_commands
28756
28757 Report bugs to the package provider."
28758
28759 _ACEOF
28760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28761 ac_cs_version="\\
28762 config.status
28763 configured by $0, generated by GNU Autoconf 2.64,
28764 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28765
28766 Copyright (C) 2009 Free Software Foundation, Inc.
28767 This config.status script is free software; the Free Software Foundation
28768 gives unlimited permission to copy, distribute and modify it."
28769
28770 ac_pwd='$ac_pwd'
28771 srcdir='$srcdir'
28772 AWK='$AWK'
28773 test -n "\$AWK" || AWK=awk
28774 _ACEOF
28775
28776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28777 # The default lists apply if the user does not specify any file.
28778 ac_need_defaults=:
28779 while test $# != 0
28780 do
28781 case $1 in
28782 --*=*)
28783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28785 ac_shift=:
28786 ;;
28787 *)
28788 ac_option=$1
28789 ac_optarg=$2
28790 ac_shift=shift
28791 ;;
28792 esac
28793
28794 case $ac_option in
28795 # Handling of the options.
28796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28797 ac_cs_recheck=: ;;
28798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28799 $as_echo "$ac_cs_version"; exit ;;
28800 --debug | --debu | --deb | --de | --d | -d )
28801 debug=: ;;
28802 --file | --fil | --fi | --f )
28803 $ac_shift
28804 case $ac_optarg in
28805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28806 esac
28807 as_fn_append CONFIG_FILES " '$ac_optarg'"
28808 ac_need_defaults=false;;
28809 --header | --heade | --head | --hea )
28810 $ac_shift
28811 case $ac_optarg in
28812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28813 esac
28814 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28815 ac_need_defaults=false;;
28816 --he | --h)
28817 # Conflict between --help and --header
28818 as_fn_error "ambiguous option: \`$1'
28819 Try \`$0 --help' for more information.";;
28820 --help | --hel | -h )
28821 $as_echo "$ac_cs_usage"; exit ;;
28822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28824 ac_cs_silent=: ;;
28825
28826 # This is an error.
28827 -*) as_fn_error "unrecognized option: \`$1'
28828 Try \`$0 --help' for more information." ;;
28829
28830 *) as_fn_append ac_config_targets " $1"
28831 ac_need_defaults=false ;;
28832
28833 esac
28834 shift
28835 done
28836
28837 ac_configure_extra_args=
28838
28839 if $ac_cs_silent; then
28840 exec 6>/dev/null
28841 ac_configure_extra_args="$ac_configure_extra_args --silent"
28842 fi
28843
28844 _ACEOF
28845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28846 if \$ac_cs_recheck; then
28847 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28848 shift
28849 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28850 CONFIG_SHELL='$SHELL'
28851 export CONFIG_SHELL
28852 exec "\$@"
28853 fi
28854
28855 _ACEOF
28856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28857 exec 5>>config.log
28858 {
28859 echo
28860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28861 ## Running $as_me. ##
28862 _ASBOX
28863 $as_echo "$ac_log"
28864 } >&5
28865
28866 _ACEOF
28867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28868 #
28869 # INIT-COMMANDS
28870 #
28871 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28872 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28873 subdirs='$subdirs'
28874
28875 _ACEOF
28876
28877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28878
28879 # Handling of arguments.
28880 for ac_config_target in $ac_config_targets
28881 do
28882 case $ac_config_target in
28883 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28884 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28885 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28886 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28887 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28888 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28889 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28890 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28891 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28892
28893 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28894 esac
28895 done
28896
28897
28898 # If the user did not use the arguments to specify the items to instantiate,
28899 # then the envvar interface is used. Set only those that are not.
28900 # We use the long form for the default assignment because of an extremely
28901 # bizarre bug on SunOS 4.1.3.
28902 if $ac_need_defaults; then
28903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28905 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28906 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28907 fi
28908
28909 # Have a temporary directory for convenience. Make it in the build tree
28910 # simply because there is no reason against having it here, and in addition,
28911 # creating and moving files from /tmp can sometimes cause problems.
28912 # Hook for its removal unless debugging.
28913 # Note that there is a small window in which the directory will not be cleaned:
28914 # after its creation but before its name has been assigned to `$tmp'.
28915 $debug ||
28916 {
28917 tmp=
28918 trap 'exit_status=$?
28919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28920 ' 0
28921 trap 'as_fn_exit 1' 1 2 13 15
28922 }
28923 # Create a (secure) tmp directory for tmp files.
28924
28925 {
28926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28927 test -n "$tmp" && test -d "$tmp"
28928 } ||
28929 {
28930 tmp=./conf$$-$RANDOM
28931 (umask 077 && mkdir "$tmp")
28932 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28933
28934 # Set up the scripts for CONFIG_FILES section.
28935 # No need to generate them if there are no CONFIG_FILES.
28936 # This happens for instance with `./config.status config.h'.
28937 if test -n "$CONFIG_FILES"; then
28938
28939 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28940 ac_cs_awk_getline=:
28941 ac_cs_awk_pipe_init=
28942 ac_cs_awk_read_file='
28943 while ((getline aline < (F[key])) > 0)
28944 print(aline)
28945 close(F[key])'
28946 ac_cs_awk_pipe_fini=
28947 else
28948 ac_cs_awk_getline=false
28949 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28950 ac_cs_awk_read_file='
28951 print "|#_!!_#|"
28952 print "cat " F[key] " &&"
28953 '$ac_cs_awk_pipe_init
28954 # The final `:' finishes the AND list.
28955 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28956 fi
28957 ac_cr=`echo X | tr X '\015'`
28958 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28959 # But we know of no other shell where ac_cr would be empty at this
28960 # point, so we can use a bashism as a fallback.
28961 if test "x$ac_cr" = x; then
28962 eval ac_cr=\$\'\\r\'
28963 fi
28964 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28965 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28966 ac_cs_awk_cr='\r'
28967 else
28968 ac_cs_awk_cr=$ac_cr
28969 fi
28970
28971 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28972 _ACEOF
28973
28974 # Create commands to substitute file output variables.
28975 {
28976 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28977 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28978 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28979 echo "_ACAWK" &&
28980 echo "_ACEOF"
28981 } >conf$$files.sh &&
28982 . ./conf$$files.sh ||
28983 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28984 rm -f conf$$files.sh
28985
28986 {
28987 echo "cat >conf$$subs.awk <<_ACEOF" &&
28988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28989 echo "_ACEOF"
28990 } >conf$$subs.sh ||
28991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28993 ac_delim='%!_!# '
28994 for ac_last_try in false false false false false :; do
28995 . ./conf$$subs.sh ||
28996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28997
28998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28999 if test $ac_delim_n = $ac_delim_num; then
29000 break
29001 elif $ac_last_try; then
29002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29003 else
29004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29005 fi
29006 done
29007 rm -f conf$$subs.sh
29008
29009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29011 _ACEOF
29012 sed -n '
29013 h
29014 s/^/S["/; s/!.*/"]=/
29015 p
29016 g
29017 s/^[^!]*!//
29018 :repl
29019 t repl
29020 s/'"$ac_delim"'$//
29021 t delim
29022 :nl
29023 h
29024 s/\(.\{148\}\).*/\1/
29025 t more1
29026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29027 p
29028 n
29029 b repl
29030 :more1
29031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29032 p
29033 g
29034 s/.\{148\}//
29035 t nl
29036 :delim
29037 h
29038 s/\(.\{148\}\).*/\1/
29039 t more2
29040 s/["\\]/\\&/g; s/^/"/; s/$/"/
29041 p
29042 b
29043 :more2
29044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29045 p
29046 g
29047 s/.\{148\}//
29048 t delim
29049 ' <conf$$subs.awk | sed '
29050 /^[^""]/{
29051 N
29052 s/\n//
29053 }
29054 ' >>$CONFIG_STATUS || ac_write_fail=1
29055 rm -f conf$$subs.awk
29056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29057 _ACAWK
29058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29059 for (key in S) S_is_set[key] = 1
29060 FS = "\a"
29061 \$ac_cs_awk_pipe_init
29062 }
29063 {
29064 line = $ 0
29065 nfields = split(line, field, "@")
29066 substed = 0
29067 len = length(field[1])
29068 for (i = 2; i < nfields; i++) {
29069 key = field[i]
29070 keylen = length(key)
29071 if (S_is_set[key]) {
29072 value = S[key]
29073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29074 len += length(value) + length(field[++i])
29075 substed = 1
29076 } else
29077 len += 1 + keylen
29078 }
29079 if (nfields == 3 && !substed) {
29080 key = field[2]
29081 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29082 \$ac_cs_awk_read_file
29083 next
29084 }
29085 }
29086 print line
29087 }
29088 \$ac_cs_awk_pipe_fini
29089 _ACAWK
29090 _ACEOF
29091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29092 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29093 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29094 else
29095 cat
29096 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29097 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29098 _ACEOF
29099
29100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29102 # trailing colons and then remove the whole line if VPATH becomes empty
29103 # (actually we leave an empty line to preserve line numbers).
29104 if test "x$srcdir" = x.; then
29105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29106 s/:*\$(srcdir):*/:/
29107 s/:*\${srcdir}:*/:/
29108 s/:*@srcdir@:*/:/
29109 s/^\([^=]*=[ ]*\):*/\1/
29110 s/:*$//
29111 s/^[^=]*=[ ]*$//
29112 }'
29113 fi
29114
29115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29116 fi # test -n "$CONFIG_FILES"
29117
29118 # Set up the scripts for CONFIG_HEADERS section.
29119 # No need to generate them if there are no CONFIG_HEADERS.
29120 # This happens for instance with `./config.status Makefile'.
29121 if test -n "$CONFIG_HEADERS"; then
29122 cat >"$tmp/defines.awk" <<\_ACAWK ||
29123 BEGIN {
29124 _ACEOF
29125
29126 # Transform confdefs.h into an awk script `defines.awk', embedded as
29127 # here-document in config.status, that substitutes the proper values into
29128 # config.h.in to produce config.h.
29129
29130 # Create a delimiter string that does not exist in confdefs.h, to ease
29131 # handling of long lines.
29132 ac_delim='%!_!# '
29133 for ac_last_try in false false :; do
29134 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29135 if test -z "$ac_t"; then
29136 break
29137 elif $ac_last_try; then
29138 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29139 else
29140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29141 fi
29142 done
29143
29144 # For the awk script, D is an array of macro values keyed by name,
29145 # likewise P contains macro parameters if any. Preserve backslash
29146 # newline sequences.
29147
29148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29149 sed -n '
29150 s/.\{148\}/&'"$ac_delim"'/g
29151 t rset
29152 :rset
29153 s/^[ ]*#[ ]*define[ ][ ]*/ /
29154 t def
29155 d
29156 :def
29157 s/\\$//
29158 t bsnl
29159 s/["\\]/\\&/g
29160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29161 D["\1"]=" \3"/p
29162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29163 d
29164 :bsnl
29165 s/["\\]/\\&/g
29166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29167 D["\1"]=" \3\\\\\\n"\\/p
29168 t cont
29169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29170 t cont
29171 d
29172 :cont
29173 n
29174 s/.\{148\}/&'"$ac_delim"'/g
29175 t clear
29176 :clear
29177 s/\\$//
29178 t bsnlc
29179 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29180 d
29181 :bsnlc
29182 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29183 b cont
29184 ' <confdefs.h | sed '
29185 s/'"$ac_delim"'/"\\\
29186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29187
29188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29189 for (key in D) D_is_set[key] = 1
29190 FS = "\a"
29191 }
29192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29193 line = \$ 0
29194 split(line, arg, " ")
29195 if (arg[1] == "#") {
29196 defundef = arg[2]
29197 mac1 = arg[3]
29198 } else {
29199 defundef = substr(arg[1], 2)
29200 mac1 = arg[2]
29201 }
29202 split(mac1, mac2, "(") #)
29203 macro = mac2[1]
29204 prefix = substr(line, 1, index(line, defundef) - 1)
29205 if (D_is_set[macro]) {
29206 # Preserve the white space surrounding the "#".
29207 print prefix "define", macro P[macro] D[macro]
29208 next
29209 } else {
29210 # Replace #undef with comments. This is necessary, for example,
29211 # in the case of _POSIX_SOURCE, which is predefined and required
29212 # on some systems where configure will not decide to define it.
29213 if (defundef == "undef") {
29214 print "/*", prefix defundef, macro, "*/"
29215 next
29216 }
29217 }
29218 }
29219 { print }
29220 _ACAWK
29221 _ACEOF
29222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29223 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29224 fi # test -n "$CONFIG_HEADERS"
29225
29226
29227 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29228 shift
29229 for ac_tag
29230 do
29231 case $ac_tag in
29232 :[FHLC]) ac_mode=$ac_tag; continue;;
29233 esac
29234 case $ac_mode$ac_tag in
29235 :[FHL]*:*);;
29236 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29237 :[FH]-) ac_tag=-:-;;
29238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29239 esac
29240 ac_save_IFS=$IFS
29241 IFS=:
29242 set x $ac_tag
29243 IFS=$ac_save_IFS
29244 shift
29245 ac_file=$1
29246 shift
29247
29248 case $ac_mode in
29249 :L) ac_source=$1;;
29250 :[FH])
29251 ac_file_inputs=
29252 for ac_f
29253 do
29254 case $ac_f in
29255 -) ac_f="$tmp/stdin";;
29256 *) # Look for the file first in the build tree, then in the source tree
29257 # (if the path is not absolute). The absolute path cannot be DOS-style,
29258 # because $ac_f cannot contain `:'.
29259 test -f "$ac_f" ||
29260 case $ac_f in
29261 [\\/$]*) false;;
29262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29263 esac ||
29264 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29265 esac
29266 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29267 as_fn_append ac_file_inputs " '$ac_f'"
29268 done
29269
29270 # Let's still pretend it is `configure' which instantiates (i.e., don't
29271 # use $as_me), people would be surprised to read:
29272 # /* config.h. Generated by config.status. */
29273 configure_input='Generated from '`
29274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29275 `' by configure.'
29276 if test x"$ac_file" != x-; then
29277 configure_input="$ac_file. $configure_input"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29279 $as_echo "$as_me: creating $ac_file" >&6;}
29280 fi
29281 # Neutralize special characters interpreted by sed in replacement strings.
29282 case $configure_input in #(
29283 *\&* | *\|* | *\\* )
29284 ac_sed_conf_input=`$as_echo "$configure_input" |
29285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29286 *) ac_sed_conf_input=$configure_input;;
29287 esac
29288
29289 case $ac_tag in
29290 *:-:* | *:-) cat >"$tmp/stdin" \
29291 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29292 esac
29293 ;;
29294 esac
29295
29296 ac_dir=`$as_dirname -- "$ac_file" ||
29297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29298 X"$ac_file" : 'X\(//\)[^/]' \| \
29299 X"$ac_file" : 'X\(//\)$' \| \
29300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29301 $as_echo X"$ac_file" |
29302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29303 s//\1/
29304 q
29305 }
29306 /^X\(\/\/\)[^/].*/{
29307 s//\1/
29308 q
29309 }
29310 /^X\(\/\/\)$/{
29311 s//\1/
29312 q
29313 }
29314 /^X\(\/\).*/{
29315 s//\1/
29316 q
29317 }
29318 s/.*/./; q'`
29319 as_dir="$ac_dir"; as_fn_mkdir_p
29320 ac_builddir=.
29321
29322 case "$ac_dir" in
29323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29324 *)
29325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29326 # A ".." for each directory in $ac_dir_suffix.
29327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29328 case $ac_top_builddir_sub in
29329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29331 esac ;;
29332 esac
29333 ac_abs_top_builddir=$ac_pwd
29334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29335 # for backward compatibility:
29336 ac_top_builddir=$ac_top_build_prefix
29337
29338 case $srcdir in
29339 .) # We are building in place.
29340 ac_srcdir=.
29341 ac_top_srcdir=$ac_top_builddir_sub
29342 ac_abs_top_srcdir=$ac_pwd ;;
29343 [\\/]* | ?:[\\/]* ) # Absolute name.
29344 ac_srcdir=$srcdir$ac_dir_suffix;
29345 ac_top_srcdir=$srcdir
29346 ac_abs_top_srcdir=$srcdir ;;
29347 *) # Relative name.
29348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29349 ac_top_srcdir=$ac_top_build_prefix$srcdir
29350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29351 esac
29352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29353
29354
29355 case $ac_mode in
29356 :F)
29357 #
29358 # CONFIG_FILE
29359 #
29360
29361 _ACEOF
29362
29363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29364 # If the template does not know about datarootdir, expand it.
29365 # FIXME: This hack should be removed a few years after 2.60.
29366 ac_datarootdir_hack=; ac_datarootdir_seen=
29367 ac_sed_dataroot='
29368 /datarootdir/ {
29369 p
29370 q
29371 }
29372 /@datadir@/p
29373 /@docdir@/p
29374 /@infodir@/p
29375 /@localedir@/p
29376 /@mandir@/p'
29377 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29378 *datarootdir*) ac_datarootdir_seen=yes;;
29379 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29381 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29382 _ACEOF
29383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29384 ac_datarootdir_hack='
29385 s&@datadir@&$datadir&g
29386 s&@docdir@&$docdir&g
29387 s&@infodir@&$infodir&g
29388 s&@localedir@&$localedir&g
29389 s&@mandir@&$mandir&g
29390 s&\\\${datarootdir}&$datarootdir&g' ;;
29391 esac
29392 _ACEOF
29393
29394 # Neutralize VPATH when `$srcdir' = `.'.
29395 # Shell code in configure.ac might set extrasub.
29396 # FIXME: do we really want to maintain this feature?
29397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29398 ac_sed_extra="$ac_vpsub
29399 $extrasub
29400 _ACEOF
29401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29402 :t
29403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29404 s|@configure_input@|$ac_sed_conf_input|;t t
29405 s&@top_builddir@&$ac_top_builddir_sub&;t t
29406 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29407 s&@srcdir@&$ac_srcdir&;t t
29408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29409 s&@top_srcdir@&$ac_top_srcdir&;t t
29410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29411 s&@builddir@&$ac_builddir&;t t
29412 s&@abs_builddir@&$ac_abs_builddir&;t t
29413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29414 $ac_datarootdir_hack
29415 "
29416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29417 if $ac_cs_awk_getline; then
29418 $AWK -f "$tmp/subs.awk"
29419 else
29420 $AWK -f "$tmp/subs.awk" | $SHELL
29421 fi >$tmp/out \
29422 || as_fn_error "could not create $ac_file" "$LINENO" 5
29423
29424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29428 which seems to be undefined. Please make sure it is defined." >&5
29429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29430 which seems to be undefined. Please make sure it is defined." >&2;}
29431
29432 rm -f "$tmp/stdin"
29433 case $ac_file in
29434 -) cat "$tmp/out" && rm -f "$tmp/out";;
29435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29436 esac \
29437 || as_fn_error "could not create $ac_file" "$LINENO" 5
29438 ;;
29439 :H)
29440 #
29441 # CONFIG_HEADER
29442 #
29443 if test x"$ac_file" != x-; then
29444 {
29445 $as_echo "/* $configure_input */" \
29446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29447 } >"$tmp/config.h" \
29448 || as_fn_error "could not create $ac_file" "$LINENO" 5
29449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29452 else
29453 rm -f "$ac_file"
29454 mv "$tmp/config.h" "$ac_file" \
29455 || as_fn_error "could not create $ac_file" "$LINENO" 5
29456 fi
29457 else
29458 $as_echo "/* $configure_input */" \
29459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29460 || as_fn_error "could not create -" "$LINENO" 5
29461 fi
29462 ;;
29463 :L)
29464 #
29465 # CONFIG_LINK
29466 #
29467
29468 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29469 :
29470 else
29471 # Prefer the file from the source tree if names are identical.
29472 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29473 ac_source=$srcdir/$ac_source
29474 fi
29475
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29477 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29478
29479 if test ! -r "$ac_source"; then
29480 as_fn_error "$ac_source: file not found" "$LINENO" 5
29481 fi
29482 rm -f "$ac_file"
29483
29484 # Try a relative symlink, then a hard link, then a copy.
29485 case $srcdir in
29486 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29487 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29488 esac
29489 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29490 ln "$ac_source" "$ac_file" 2>/dev/null ||
29491 cp -p "$ac_source" "$ac_file" ||
29492 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29493 fi
29494 ;;
29495 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29496 $as_echo "$as_me: executing $ac_file commands" >&6;}
29497 ;;
29498 esac
29499
29500
29501 case $ac_file$ac_mode in
29502 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29503 "gccdepdir":C)
29504 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29505 for lang in $subdirs c-family common
29506 do
29507 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29508 done ;;
29509 "as":F) chmod +x as ;;
29510 "collect-ld":F) chmod +x collect-ld ;;
29511 "nm":F) chmod +x nm ;;
29512 "default":C)
29513 case ${CONFIG_HEADERS} in
29514 *auto-host.h:config.in*)
29515 echo > cstamp-h ;;
29516 esac
29517 # Make sure all the subdirs exist.
29518 for d in $subdirs doc build common c-family
29519 do
29520 test -d $d || mkdir $d
29521 done
29522 ;;
29523
29524 esac
29525 done # for ac_tag
29526
29527
29528 as_fn_exit 0
29529 _ACEOF
29530 ac_clean_files=$ac_clean_files_save
29531
29532 test $ac_write_fail = 0 ||
29533 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29534
29535
29536 # configure is writing to config.log, and then calls config.status.
29537 # config.status does its own redirection, appending to config.log.
29538 # Unfortunately, on DOS this fails, as config.log is still kept open
29539 # by configure, so config.status won't be able to write to it; its
29540 # output is simply discarded. So we exec the FD to /dev/null,
29541 # effectively closing config.log, so it can be properly (re)opened and
29542 # appended to by config.status. When coming back to configure, we
29543 # need to make the FD available again.
29544 if test "$no_create" != yes; then
29545 ac_cs_success=:
29546 ac_config_status_args=
29547 test "$silent" = yes &&
29548 ac_config_status_args="$ac_config_status_args --quiet"
29549 exec 5>/dev/null
29550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29551 exec 5>>config.log
29552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29553 # would make configure fail if this is the last instruction.
29554 $ac_cs_success || as_fn_exit $?
29555 fi
29556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29559 fi
29560
29561